Daily bump.
[official-gcc.git] / gcc / ChangeLog
blobf26544f85bcb6457d905ccc3412a45a8c0628f92
1 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
3         * tree.def (OMP_MASKED): New tree code.
4         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
5         * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
6         OMP_CLAUSE_FILTER_EXPR): Define.
7         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
8         (omp_clause_code_name): Likewise.
9         (walk_tree_1): Handle OMP_CLAUSE_FILTER.
10         * tree-nested.c (convert_nonlocal_omp_clauses,
11         convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
12         (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
13         convert_gimple_call): Handle GIMPLE_OMP_MASTER.
14         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
15         (dump_generic_node): Handle OMP_MASTER.
16         * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
17         * gimple.c (gimple_build_omp_masked): New function.
18         (gimple_copy): Handle GIMPLE_OMP_MASKED.
19         * gimple.h (gimple_build_omp_masked): Declare.
20         (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
21         (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
22         gimple_omp_masked_set_clauses): New inline functions.
23         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
24         * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
25         (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
26         * gimple-walk.c (walk_gimple_stmt): Likewise.
27         * gimple-low.c (lower_stmt): Likewise.
28         * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
29         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER.  For clauses
30         that take one expression rather than decl or constant, force
31         gimplification of that into a SSA_NAME or temporary unless min
32         invariant.
33         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
34         (gimplify_expr): Handle OMP_MASKED.
35         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
36         (estimate_num_insns): Likewise.
37         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
38         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED.  Adjust
39         diagnostics for existence of masked construct.
40         (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
41         diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
42         * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
43         Likewise.
45 2021-08-12  Uroš Bizjak  <ubizjak@gmail.com>
47         PR target/98309
48         * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
49         (ldexp<mode>3): Use avx512f_scalef<mode>2.
50         (UNSPEC_SCALEF): Move from ...
51         * config/i386/sse.md (UNSPEC_SCALEF): ... here.
53 2021-08-12  Jan Hubicka  <hubicka@ucw.cz>
55         * ipa-split.c (consider_split): Fix condition testing void functions.
57 2021-08-12  Aldy Hernandez  <aldyh@redhat.com>
59         * doc/invoke.texi: Remove docs for threader-mode param.
60         * flag-types.h (enum threader_mode): Remove.
61         * params.opt: Remove threader-mode param.
62         * tree-ssa-threadbackward.c (class back_threader): Remove
63         path_is_unreachable_p.
64         Make find_paths private.
65         Add maybe_thread and thread_through_all_blocks.
66         Remove reference marker for m_registry.
67         Remove reference marker for m_profit.
68         (back_threader::back_threader): Adjust for registry and profit not
69         being references.
70         (dump_path): Move down.
71         (debug): Move down.
72         (class thread_jumps): Remove.
73         (class back_threader_registry): Remove m_all_paths.
74         Remove destructor.
75         (thread_jumps::thread_through_all_blocks): Move to back_threader
76         class.
77         (fsm_find_thread_path): Remove
78         (back_threader::maybe_thread): New.
79         (back_threader::thread_through_all_blocks): Move from
80         thread_jumps.
81         (back_threader_registry::back_threader_registry): Remove
82         m_all_paths.
83         (back_threader_registry::~back_threader_registry): Remove.
84         (thread_jumps::find_taken_edge): Remove.
85         (thread_jumps::check_subpath_and_update_thread_path): Remove.
86         (thread_jumps::maybe_register_path): Remove.
87         (thread_jumps::handle_phi): Remove.
88         (handle_assignment_p): Remove.
89         (thread_jumps::handle_assignment): Remove.
90         (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
91         (thread_jumps::find_jump_threads_backwards): Remove.
92         (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
93         (try_thread_blocks): Rename find_jump_threads_backwards to
94         maybe_thread.
95         (pass_early_thread_jumps::execute): Same.
97 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
99         * tree-core.h (omp_clause_proc_bind_kind): Add
100         OMP_CLAUSE_PROC_BIND_PRIMARY.
101         * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
102         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
104 2021-08-12  Claudiu Zissulescu  <claziss@synopsys.com>
106         * common/config/arc/arc-common.c (arc_option_init_struct): Remove
107         fno-common reference.
108         * config/arc/arc.c (arc_override_options): Remove overriding of
109         flag_no_common.
111 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
113         PR target/101860
114         * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
115         If d->testing_p, return true after performing checks instead of
116         actually expanding the insn.
117         (expand_vec_perm_broadcast_1): Handle V32HImode - assert
118         !TARGET_AVX512BW and return false.
120 2021-08-12  Eric Botcazou  <ebotcazou@gcc.gnu.org>
122         * configure.ac (PE linker --disable-dynamicbase support): New check.
123         * configure: Regenerate.
124         * config.in: Likewise.
125         * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
126         (LINK_SPEC): Use it.
127         * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
128         (LINK_SPEC): Likewise.
130 2021-08-12  liuhongt  <hongtao.liu@intel.com>
132         PR target/101846
133         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
134         post_reload define_insn_and_split.
135         (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
136         (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
137         (*avx512f_zero_extendv16hiv16si2_2): Ditto.
138         (*avx2_zero_extendv8hiv8si2_2): Ditto.
139         (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
140         (*avx512f_zero_extendv8siv8di2_2): Ditto.
141         (*avx2_zero_extendv4siv4di2_2): Ditto.
142         (*sse4_1_zero_extendv2siv2di2_4): Ditto.
143         (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
144         mode iterator.
146 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
148         * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
149         power6 stanzas.
151 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
153         * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
155 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
157         * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
158         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
159         initialization of pcvoid_type_node here...
160         (altivec_init_builtins): ...from here.
161         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
162         RS6000_BTI_const_ptr_void.
163         (pcvoid_type_node): New macro.
165 2021-08-11  Richard Biener  <rguenther@suse.de>
167         PR target/101877
168         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
169         hard-register accesses.
171 2021-08-11  Richard Biener  <rguenther@suse.de>
173         * tree-ssa-operands.c (operands_scanner::get_expr_operands):
174         Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
175         to determine has_volatile_ops.
177 2021-08-11  Eric Botcazou  <ebotcazou@gcc.gnu.org>
179         * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
181 2021-08-11  Jan Hubicka  <hubicka@ucw.cz>
182             Alexandre Oliva  <oliva@adacore.com>
184         * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
185         dumping.
186         (modref_lattice::merge_deref): Fix handling of indirect scape points.
187         (update_escape_summary_1): Likewise.
188         (update_escape_summary): Likewise.
189         (ipa_merge_modref_summary_after_inlining): Likewise.
191 2021-08-11  Richard Biener  <rguenther@suse.de>
193         PR middle-end/101858
194         * fold-const.c (fold_binary_loc): Guard simplification
195         of  X < (cast) (1 << Y) to integer types.
197 2021-08-11  Richard Biener  <rguenther@suse.de>
199         PR tree-optimization/101861
200         * tree-vect-stmts.c (vectorizable_load): Fix error in
201         previous change with regard to gather vectorization.
203 2021-08-11  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
205         PR target/66791
206         * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
207         with constructor.
208         (vdup_n_s16): Likewise.
209         (vdup_n_s32): Likewise.
210         (vdup_n_s64): Likewise.
211         (vdup_n_u8): Likewise.
212         (vdup_n_u16): Likewise.
213         (vdup_n_u32): Likewise.
214         (vdup_n_u64): Likewise.
215         (vdup_n_p8): Likewise.
216         (vdup_n_p16): Likewise.
217         (vdup_n_p64): Likewise.
218         (vdup_n_f16): Likewise.
219         (vdup_n_f32): Likewise.
220         (vdupq_n_s8): Likewise.
221         (vdupq_n_s16): Likewise.
222         (vdupq_n_s32): Likewise.
223         (vdupq_n_s64): Likewise.
224         (vdupq_n_u8): Likewise.
225         (vdupq_n_u16): Likewise.
226         (vdupq_n_u32): Likewise.
227         (vdupq_n_u64): Likewise.
228         (vdupq_n_p8): Likewise.
229         (vdupq_n_p16): Likewise.
230         (vdupq_n_p64): Likewise.
231         (vdupq_n_f16): Likewise.
232         (vdupq_n_f32): Likewise.
233         (vmov_n_s8): Replace call to builtin with call to corresponding
234         vdup_n intrinsic.
235         (vmov_n_s16): Likewise.
236         (vmov_n_s32): Likewise.
237         (vmov_n_s64): Likewise.
238         (vmov_n_u8): Likewise.
239         (vmov_n_u16): Likewise.
240         (vmov_n_u32): Likewise.
241         (vmov_n_u64): Likewise.
242         (vmov_n_p8): Likewise.
243         (vmov_n_p16): Likewise.
244         (vmov_n_f16): Likewise.
245         (vmov_n_f32): Likewise.
246         (vmovq_n_s8): Likewise.
247         (vmovq_n_s16): Likewise.
248         (vmovq_n_s32): Likewise.
249         (vmovq_n_s64): Likewise.
250         (vmovq_n_u8): Likewise.
251         (vmovq_n_u16): Likewise.
252         (vmovq_n_u32): Likewise.
253         (vmovq_n_u64): Likewise.
254         (vmovq_n_p8): Likewise.
255         (vmovq_n_p16): Likewise.
256         (vmovq_n_f16): Likewise.
257         (vmovq_n_f32): Likewise.
258         * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
260 2021-08-11  liuhongt  <hongtao.liu@intel.com>
262         PR target/98309
263         * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
264         when TARGET_AVX512F and TARGET_SSE_MATH.
266 2021-08-10  Jakub Jelinek  <jakub@redhat.com>
268         PR target/80355
269         * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
270         for V32HImode if !TARGET_AVX512BW.
271         (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
272         If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
273         early, but actually check the permutation.
275 2021-08-10  Richard Biener  <rguenther@suse.de>
277         PR tree-optimization/101809
278         * tree-vect-stmts.c (get_load_store_type): Allow emulated
279         gathers with offset vector nunits being a constant multiple
280         of the data vector nunits.
281         (vect_get_gather_scatter_ops): Use the appropriate nunits
282         for the offset vector defs.
283         (vectorizable_store): Adjust call to
284         vect_get_gather_scatter_ops.
285         (vectorizable_load): Likewise.  Handle the case of less
286         offset vectors than data vectors.
288 2021-08-10  Jakub Jelinek  <jakub@redhat.com>
290         PR target/80355
291         * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
292         *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
293         patterns.
295 2021-08-10  Richard Biener  <rguenther@suse.de>
297         PR tree-optimization/101801
298         PR tree-optimization/101819
299         * tree-vectorizer.h (vect_emulated_vector_p): Declare.
300         * tree-vect-loop.c (vect_emulated_vector_p): New function.
301         (vectorizable_reduction): Re-instantiate a check for emulated
302         operations.
303         * tree-vect-stmts.c (vectorizable_shift): Likewise.
304         (vectorizable_operation): Likewise.  Cost emulated vector
305         operations according to the scalar sequence synthesized by
306         vector lowering.
308 2021-08-10  Richard Biener  <rguenther@suse.de>
310         PR middle-end/101824
311         * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
312         volatile in case the variable was.
314 2021-08-10  H.J. Lu  <hjl.tools@gmail.com>
316         PR target/101804
317         * config/i386/constraints.md (BC): Document for integer SSE
318         constant all bits set operand.
319         (BF): New constraint for const floating-point all bits set
320         vectors.
321         * config/i386/i386.c (standard_sse_constant_p): Likewise.
322         (standard_sse_constant_opcode): Likewise.
323         * config/i386/sse.md (sseconstm1): New mode attribute.
324         (mov<mode>_internal): Replace BC with <sseconstm1>.
326 2021-08-10  liuhongt  <hongtao.liu@intel.com>
328         * config/i386/sse.md (cond_<insn><mode>): New expander.
329         (VI248_AVX512VLBW): New mode iterator.
330         * config/i386/predicates.md
331         (nonimmediate_or_const_vec_dup_operand): New predicate.
333 2021-08-09  Andrew MacLeod  <amacleod@redhat.com>
335         PR tree-optimization/101741
336         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
337         type of parameter for toupper/tolower.
339 2021-08-09  Martin Jambor  <mjambor@suse.cz>
341         PR testsuite/101654
342         * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
344 2021-08-09  Pat Haugen  <pthaugen@linux.ibm.com>
346         * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
347         register.
348         (is_store_insn1): Verify source is a register.
350 2021-08-09  Uroš Bizjak  <ubizjak@gmail.com>
352         PR target/101812
353         * config/i386/mmx.md (<any_logic:code>v2sf3):
354         Rename from *mmx_<any_logic:code>v2sf3
356 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
358         * config/nvptx/nvptx.c: Cross-reference parts adapted in
359         'gcc/omp-oacc-neuter-broadcast.cc'.
360         * omp-low.c: Likewise.
361         * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
362         the above files.
364 2021-08-09  Julian Brown  <julian@codesourcery.com>
365             Kwok Cheung Yeung  <kcy@codesourcery.com>
366             Thomas Schwinge  <thomas@codesourcery.com>
368         * config/gcn/gcn.c (gcn_init_builtins): Override decls for
369         BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
370         BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
371         (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
372         (gcn_fork_join): Update comment.
373         * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
374         (macc_experimental_workers): Remove unused option.
376 2021-08-09  Julian Brown  <julian@codesourcery.com>
377             Nathan Sidwell  <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
378             Kwok Cheung Yeung  <kcy@codesourcery.com>
379             Thomas Schwinge  <thomas@codesourcery.com>
381         * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
382         * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
383         Add documentation hook.
384         * doc/tm.texi: Regenerate.
385         * omp-oacc-neuter-broadcast.cc: New file.
386         * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
387         (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
388         (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
389         * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
390         * target.def (goacc.create_worker_broadcast_record): Add target
391         hook.
392         * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
393         prototype.
394         * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
395         Rename prototype to...
396         (gcn_goacc_create_worker_broadcast_record): ... this.
397         * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
398         function to...
399         (gcn_goacc_create_worker_broadcast_record): ... this.
400         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
401         Rename to...
402         (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
404 2021-08-09  Tejas Belagod  <tejas.belagod@arm.com>
406         PR target/101609
407         * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
408         the right iterator.
410 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
412         * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
414 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
416         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
417         consider '-foffload-abi'.
418         * common.opt (-foffload-abi): Remove 'Var', 'Init'.
419         * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
420         Ignore.
422 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
424         * optc-gen.awk: Sanity check that 'Init' doesn't appear without
425         'Var'.
427 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
429         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
431 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
433         * doc/gty.texi (Files): Update.
435 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
437         * doc/gty.texi (Files): Fix GTY header file example.
439 2021-08-09  Roger Sayle  <roger@nextmovesoftware.com>
441         * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
442         determine the upper and lower bounds from a mask-value pair.
443         (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
444         absolute value and unsigned absolute value expressions.
445         (bit_value_binop):  Initialize *VAL's precision.
446         [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
447         upper and lower bounds of operands.  Add LE_EXPR/GE_EXPR
448         support when the operands are unknown but potentially equal.
449         [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
451 2021-08-09  Bin Cheng  <bin.cheng@linux.alibaba.com>
453         * config/aarch64/aarch64.md
454         (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
456 2021-08-08  Sergei Trofimovich  <siarheit@google.com>
458         * lra-constraints.c: Fix s/otput/output/ typo.
460 2021-08-06  Martin Sebor  <msebor@redhat.com>
462         * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
463         (expand_builtin_strcat): Same.
464         (expand_builtin_stpncpy): Same.
465         (expand_builtin_strncat): Same.
466         (check_read_access): Same.
467         (check_memop_access): Same.
468         (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
469         (expand_builtin_strnlen): Same.
470         (expand_builtin_memcpy): Same.
471         (expand_builtin_memmove): Same.
472         (expand_builtin_mempcpy): Same.
473         (expand_builtin_strcpy): Same.
474         (expand_builtin_strcpy_args): Same.
475         (expand_builtin_stpcpy_1): Same.
476         (expand_builtin_strncpy): Same.
477         (expand_builtin_memset): Same.
478         (expand_builtin_bzero): Same.
479         (expand_builtin_strcmp): Same.
480         (expand_builtin_strncmp): Same.
481         (expand_builtin): Remove handlers.
482         (fold_builtin_strlen): Add a comment.
483         * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
484         * calls.c (maybe_warn_nonstring_arg): Same.
485         * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
486         * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
487         (gimple_fold_builtin_stpcpy): Same.
488         * gimple-ssa-warn-access.cc (has_location): New function.
489         (get_location): Same.
490         (get_callee_fndecl): Same.
491         (call_nargs): Same.
492         (call_arg): Same.
493         (warn_string_no_nul): Define.
494         (unterminated_array): Same.
495         (check_nul_terminated_array): Same.
496         (maybe_warn_nonstring_arg): Same.
497         (maybe_warn_for_bound): Same.
498         (warn_for_access): Same.
499         (check_access): Same.
500         (check_memop_access): Same.
501         (check_read_access): Same.
502         (warn_dealloc_offset): Use helper functions.
503         (maybe_emit_free_warning): Same.
504         (class pass_waccess): Add members.
505         (check_strcat): New function.
506         (check_strncat): New function.
507         (check_stxcpy): New function.
508         (check_stxncpy): New function.
509         (check_strncmp): New function.
510         (pass_waccess::check_builtin): New function.
511         (pass_waccess::check): Call it.
512         * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
513         builtins.h.
514         (maybe_warn_for_bound): Same.
515         (check_access): Same.
516         (check_memop_access): Same.
517         (check_read_access): Same.
518         * pointer-query.h (struct access_data): Define a ctor overload.
520 2021-08-06  Richard Biener  <rguenther@suse.de>
522         PR tree-optimization/101801
523         * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
524         (vect_can_vectorize_without_simd_p): ... to this.
525         * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
526         (vect_can_vectorize_without_simd_p): ... to this and fold
527         in vect_min_worthwhile_factor.
528         (vect_min_worthwhile_factor): Remove.
529         (vectorizable_reduction): Adjust and remove the cost part.
530         * tree-vect-stmts.c (vectorizable_shift): Likewise.
531         (vectorizable_operation): Likewise.
533 2021-08-06  Uroš Bizjak  <ubizjak@gmail.com>
535         PR target/101797
536         * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
537         Add general_gr_operand predicate to operand 3.
539 2021-08-06  Roger Sayle  <roger@nextmovesoftware.com>
541         * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
542         CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
544 2021-08-06  Tamar Christina  <tamar.christina@arm.com>
546         * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
547         register_svprfop): Pass vec<> by pointer.
548         * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
549         * langhooks.c (lhd_simulate_enum_decl): Likewise.
550         * langhooks.h (struct lang_hooks_for_types): Likewise.
552 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
554         * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
555         __builtin_memcpy instead of constructing an additional
556         __builtin_aarch64_simd_oi one vector at a time.
557         (vst1q_bf16_x2): Likewise.
558         (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
559         an additional __builtin_aarch64_simd_ci one vector at a time.
560         (vst1q_bf16_x3): Likewise.
561         (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
562         (vst1q_bf16_x4): Likewise.
563         (vst2_bf16): Use __builtin_memcpy instead of constructing an
564         additional __builtin_aarch64_simd_oi one vector at a time.
565         (vst2q_bf16): Likewise.
566         (vst3_bf16): Use __builtin_memcpy instead of constructing an
567         additional __builtin_aarch64_simd_ci mode one vector at a
568         time.
569         (vst3q_bf16): Likewise.
570         (vst4_bf16): Use __builtin_memcpy instead of constructing an
571         additional __builtin_aarch64_simd_xi one vector at a time.
572         (vst4q_bf16): Likewise.
574 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
576         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
577         (__ST2Q_LANE_FUNC): Delete.
578         (vst2_lane_f16): Use __builtin_memcpy to copy vector
579         structure instead of constructing __builtin_aarch64_simd_oi
580         one vector at a time.
581         (vst2_lane_f32): Likewise.
582         (vst2_lane_f64): Likewise.
583         (vst2_lane_p8): Likewise.
584         (vst2_lane_p16): Likewise.
585         (vst2_lane_p64): Likewise.
586         (vst2_lane_s8): Likewise.
587         (vst2_lane_s16): Likewise.
588         (vst2_lane_s32): Likewise.
589         (vst2_lane_s64): Likewise.
590         (vst2_lane_u8): Likewise.
591         (vst2_lane_u16): Likewise.
592         (vst2_lane_u32): Likewise.
593         (vst2_lane_u64): Likewise.
594         (vst2_lane_bf16): Likewise.
595         (vst2q_lane_f16): Use __builtin_memcpy to copy vector
596         structure instead of using a union.
597         (vst2q_lane_f32): Likewise.
598         (vst2q_lane_f64): Likewise.
599         (vst2q_lane_p8): Likewise.
600         (vst2q_lane_p16): Likewise.
601         (vst2q_lane_p64): Likewise.
602         (vst2q_lane_s8): Likewise.
603         (vst2q_lane_s16): Likewise.
604         (vst2q_lane_s32): Likewise.
605         (vst2q_lane_s64): Likewise.
606         (vst2q_lane_u8): Likewise.
607         (vst2q_lane_u16): Likewise.
608         (vst2q_lane_u32): Likewise.
609         (vst2q_lane_u64): Likewise.
610         (vst2q_lane_bf16): Likewise.
612 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
614         * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
615         (__ST3Q_LANE_FUNC): Delete.
616         (vst3_lane_f16): Use __builtin_memcpy to copy vector
617         structure instead of constructing __builtin_aarch64_simd_ci
618         one vector at a time.
619         (vst3_lane_f32): Likewise.
620         (vst3_lane_f64): Likewise.
621         (vst3_lane_p8): Likewise.
622         (vst3_lane_p16): Likewise.
623         (vst3_lane_p64): Likewise.
624         (vst3_lane_s8): Likewise.
625         (vst3_lane_s16): Likewise.
626         (vst3_lane_s32): Likewise.
627         (vst3_lane_s64): Likewise.
628         (vst3_lane_u8): Likewise.
629         (vst3_lane_u16): Likewise.
630         (vst3_lane_u32): Likewise.
631         (vst3_lane_u64): Likewise.
632         (vst3_lane_bf16): Likewise.
633         (vst3q_lane_f16): Use __builtin_memcpy to copy vector
634         structure instead of using a union.
635         (vst3q_lane_f32): Likewise.
636         (vst3q_lane_f64): Likewise.
637         (vst3q_lane_p8): Likewise.
638         (vst3q_lane_p16): Likewise.
639         (vst3q_lane_p64): Likewise.
640         (vst3q_lane_s8): Likewise.
641         (vst3q_lane_s16): Likewise.
642         (vst3q_lane_s32): Likewise.
643         (vst3q_lane_s64): Likewise.
644         (vst3q_lane_u8): Likewise.
645         (vst3q_lane_u16): Likewise.
646         (vst3q_lane_u32): Likewise.
647         (vst3q_lane_u64): Likewise.
648         (vst3q_lane_bf16): Likewise.
650 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
652         * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
653         (__ST4Q_LANE_FUNC): Delete.
654         (vst4_lane_f16): Use __builtin_memcpy to copy vector
655         structure instead of constructing __builtin_aarch64_simd_xi
656         one vector at a time.
657         (vst4_lane_f32): Likewise.
658         (vst4_lane_f64): Likewise.
659         (vst4_lane_p8): Likewise.
660         (vst4_lane_p16): Likewise.
661         (vst4_lane_p64): Likewise.
662         (vst4_lane_s8): Likewise.
663         (vst4_lane_s16): Likewise.
664         (vst4_lane_s32): Likewise.
665         (vst4_lane_s64): Likewise.
666         (vst4_lane_u8): Likewise.
667         (vst4_lane_u16): Likewise.
668         (vst4_lane_u32): Likewise.
669         (vst4_lane_u64): Likewise.
670         (vst4_lane_bf16): Likewise.
671         (vst4q_lane_f16): Use __builtin_memcpy to copy vector
672         structure instead of using a union.
673         (vst4q_lane_f32): Likewise.
674         (vst4q_lane_f64): Likewise.
675         (vst4q_lane_p8): Likewise.
676         (vst4q_lane_p16): Likewise.
677         (vst4q_lane_p64): Likewise.
678         (vst4q_lane_s8): Likewise.
679         (vst4q_lane_s16): Likewise.
680         (vst4q_lane_s32): Likewise.
681         (vst4q_lane_s64): Likewise.
682         (vst4q_lane_u8): Likewise.
683         (vst4q_lane_u16): Likewise.
684         (vst4q_lane_u32): Likewise.
685         (vst4q_lane_u64): Likewise.
686         (vst4q_lane_bf16): Likewise.
688 2021-08-06  Martin Liska  <mliska@suse.cz>
690         * config/rs6000/rs6000.c (rs6000_option_override_internal): When
691         a target option is restored, it can have
692         rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
693         and error should not be emitted.
695 2021-08-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
697         * gcov-io.h (gcov_write): Declare.
698         * gcov-io.c (gcov_write): New.
699         (gcov_write_counter): Remove.
700         (gcov_write_tag_length): Likewise.
701         (gcov_write_summary): Replace gcov_write_tag_length() with calls to
702         gcov_write_unsigned().
703         * doc/invoke.texi (fprofile-info-section): Mention
704         __gcov_info_to_gdca().
706 2021-08-06  Martin Sebor  <msebor@redhat.com>
708         * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
709         arguments to by-reference.
710         (iterate_fix_dominators): Same.
711         * dominance.h (iterate_fix_dominators): Same.
712         * ipa-prop.h: Call auto_vec::to_vec_legacy.
713         * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
714         arguments to by-reference.
715         (debug_data_dependence_relation): Same.
716         (dump_data_dependence_relations): Same.
717         * tree-data-ref.h (debug_data_dependence_relation): Same.
718         (dump_data_dependence_relations): Same.
719         * tree-predcom.c (dump_chains): Same.
720         (initialize_root_vars_lm): Same.
721         (determine_unroll_factor): Same.
722         (replace_phis_by_defined_names): Same.
723         (insert_init_seqs): Same.
724         (pcom_worker::tree_predictive_commoning_loop): Call
725          auto_vec::to_vec_legacy.
726         * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
727         arguments to by-reference.
728         * tree-ssa-threadbackward.c (populate_worklist): Same.
729         (back_threader::resolve_def): Same.
730         * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
731         (vect_enhance_data_refs_alignment): Same.
732         (vect_check_lower_bound): Same.
733         (vect_prune_runtime_alias_test_list): Same.
734         (vect_permute_store_chain): Same.
735         * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
736         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
737         * tree-vectorizer.h (vect_permute_store_chain): Same.
738         * vec.c (test_init): New function.
739         (vec_c_tests): Call new function.
740         * vec.h (vec): Declare ctors, dtor, and assignment.
741         (auto_vec::vec_to_legacy): New function.
742         (vec::copy): Adjust initialization.
744 2021-08-05  H.J. Lu  <hjl.tools@gmail.com>
746         PR target/99744
747         * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
748         callee only uses GPRs.
749         * config/i386/ia32intrin.h: Revert commit 5463cee2770.
750         * config/i386/serializeintrin.h: Revert commit 71958f740f1.
751         * config/i386/x86gprintrin.h: Add
752         #pragma GCC target("general-regs-only") and #pragma GCC pop_options
753         to disable non-GPR ISAs.
755 2021-08-05  Richard Sandiford  <richard.sandiford@arm.com>
757         PR middle-end/101787
758         * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
760 2021-08-05  Richard Sandiford  <richard.sandiford@arm.com>
762         * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
763         (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
764         (vect_is_extending_load, vect_is_integer_truncation): New functions,
765         moved from aarch64.c but given different names.
766         * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
767         (aarch64_is_reduction, aarch64_reduc_type)
768         (aarch64_embedded_comparison_type, aarch64_comparison_type)
769         (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
770         in favor of the above.  Update callers accordingly.
772 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
774         PR target/101723
775         * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
776         writing .cpu directive in asm output.
777         * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
778         (arm_last_printed_arch_string): Delete.
779         (arm_last-printed_fpu_string): Delete.
780         (arm_configure_build_target): If use of floating-point/SIMD is
781         disabled, remove all fp/simd related features from the target ISA.
782         (last_arm_targ_options): New variable.
783         (arm_print_asm_arch_directives): Add new parameters.  Change order
784         of emitted directives and handle all cases here.
785         (arm_file_start): Always call arm_print_asm_arch_directives, move
786         all generation of .arch/.arch_extension here.
787         (arm_file_end): Call arm_print_asm_arch.
788         (arm_declare_function_name): Call arm_print_asm_arch_directives
789         instead of printing .arch/.fpu directives directly.
791 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
793         * config/arm/arm.c (arm_configure_build_target): Don't call
794         arm_option_reconfigure_globals.
795         (arm_option_restore): Call arm_option_reconfigure_globals after
796         reconfiguring the target.
797         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
799 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
801         * config/arm/arm.c (arm_configure_build_target): Ensure the target's
802         arch_name is always set.
804 2021-08-05  Jonathan Wright  <jonathan.wright@arm.com>
806         * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
807         of vec_select high-half from being added into Neon subtract
808         cost.
810 2021-08-05  Jonathan Wright  <jonathan.wright@arm.com>
812         * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
813         of vec_select high-half from being added into Neon add cost.
815 2021-08-05  Kewen Lin  <linkw@linux.ibm.com>
817         * cfgloop.h (loops_list::loops_list): Add one optional argument
818         root and adjust accordingly, update loop tree walking and factor
819         out to ...
820         * cfgloop.c (loops_list::walk_loop_tree): ... this.  New function.
822 2021-08-05  Eric Botcazou  <ebotcazou@gcc.gnu.org>
824         PR tree-optimization/101626
825         * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
826         reverse scalar storage order on a pointer or vector component.
828 2021-08-05  liuhongt  <hongtao.liu@intel.com>
830         * config/i386/sse.md (cond_<code><mode>): New expander.
832 2021-08-05  liuhongt  <hongtao.liu@intel.com>
834         * config/i386/sse.md (cond_<code><mode>): New expander.
836 2021-08-05  liuhongt  <hongtao.liu@intel.com>
838         * config/i386/sse.md (cond_<code><mode>): New expander.
840 2021-08-04  David Malcolm  <dmalcolm@redhat.com>
842         PR analyzer/101570
843         * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
845 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
847         PR target/101742
848         * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
849         only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
851 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
853         PR target/101772
854         * config/i386/i386-expand.c (ix86_expand_vector_move): Call
855         ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
856         data with SSE register from one memory location to another.
858 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
860         * config/s390/s390.c (expand_perm_with_vpdi): New function.
861         (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
862         * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
863         parameterized expander.
864         (*vpdi4<mode>, @vpdi4<mode>): Likewise.
866 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
868         * config/s390/s390.c (MAX_VECT_LEN): Define macro.
869         (struct expand_vec_perm_d): Define struct.
870         (expand_perm_with_merge): New function.
871         (vectorize_vec_perm_const_1): New function.
872         (s390_vectorize_vec_perm_const): New function.
873         (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
875 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
877         * config/s390/vector.md (V_HW_64): Remove mode iterator.
878         (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
879         * config/s390/vx-builtins.md
880         (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
881         V_HW_64.
883 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
885         * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
886         definition.
887         * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
888         definitions.
889         * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
890         instead of an unspec.
892 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
894         * config/s390/s390-modes.def: Add more vector modes to support
895         concatenation of two vectors.
896         * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
897         prototype.
898         (s390_expand_merge): Likewise.
899         * config/s390/s390.c (s390_expand_merge_perm_const): New function.
900         (s390_expand_merge): New function.
901         * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
902         Remove constant definitions.
903         * config/s390/vector.md (V_HW_2): Add mode iterators.
904         (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
905         (vec_2x_nelts, vec_2x_wide): New mode attributes.
906         (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
907         New pattern definitions.
908         (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
909         (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
910         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
911         (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
912         vec merge.
913         * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
914         in vector.md.
915         (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
916         emit vec merge pattern.
918 2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>
920         * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
921         Define.
922         (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
923         vec_select high-half from being added into Neon multiply
924         cost.
925         * rtlanal.c (vec_series_highpart_p): Define.
926         * rtlanal.h (vec_series_highpart_p): Declare.
928 2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>
930         * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
931         Define.
932         (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
933         vec_select cost from being added into Neon multiply cost.
935 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
937         * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
938         which old_loop_vinfo is an epilogue loop that handles a constant
939         number of iterations.
941 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
943         * tree-vect-loop.c (vect_analyze_loop): Print a dump message
944         when a reanalyzed loop fails to be cheaper than the current
945         main loop.
947 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
949         * config/aarch64/aarch64.c: Fix a typo.
951 2021-08-04  Vincent Lefèvre  <vincent-gcc@vinc17.net>
953         PR gcov-profile/101773
954         * gcov-io.c (gcov_close): Check return code of a fclose.
956 2021-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
958         PR ada/101575
959         * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
960         .file statement when needed.
962 2021-08-04  Richard Biener  <rguenther@suse.de>
964         * tree-vect-data-refs.c (vect_check_gather_scatter):
965         Include widening conversions only when the result is
966         still handed by native gather or the current offset
967         size not already matches the data size.
968         Also succeed analysis in case there's no native support,
969         noted by a IFN_LAST ifn and a NULL decl.
970         (vect_analyze_data_refs): Always consider gathers.
971         * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
972         Test for no IFN gather rather than decl gather.
973         * tree-vect-stmts.c (vect_model_load_cost): Pass in the
974         gather-scatter info and cost emulated gathers accordingly.
975         (vect_truncate_gather_scatter_offset): Properly test for
976         no IFN gather.
977         (vect_use_strided_gather_scatters_p): Likewise.
978         (get_load_store_type): Handle emulated gathers and its
979         restrictions.
980         (vectorizable_load): Likewise.  Emulate them by extracting
981         scalar offsets, doing scalar loads and a vector construct.
983 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
985         PR target/101742
986         * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
987         argument to set m_max_size.
988         (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
989         (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
990         (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
992 2021-08-04  Roger Sayle  <roger@nextmovesoftware.com>
993             Marc Glisse  <marc.glisse@inria.fr>
995         * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
996         (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
997         tree_nonzero_bits to ensure that operands are bit-wise disjoint.
999 2021-08-04  Richard Biener  <rguenther@suse.de>
1001         * tree-ssa-forwprop.c (pass_forwprop::execute): Split
1002         out code to decompose vector loads ...
1003         (optimize_vector_load): ... here.  Generalize it to
1004         handle intermediate widening and TARGET_MEM_REF loads
1005         and apply it to loads with a supported vector mode as well.
1007 2021-08-04  Richard Biener  <rguenther@suse.de>
1009         PR tree-optimization/101756
1010         * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
1011         the result of the reduction epilogue is compatible to the original
1012         scalar result.
1014 2021-08-04  liuhongt  <hongtao.liu@intel.com>
1016         PR target/101743
1017         * config/i386/i386.md (peephole2): Refine predicate from
1018         register_operand to general_reg_operand.
1020 2021-08-04  Aldy Hernandez  <aldyh@redhat.com>
1022         * gimple-range-path.h (path_range_query::dump): Mark override.
1024 2021-08-04  Richard Biener  <rguenther@suse.de>
1026         PR tree-optimization/101769
1027         * tree-tailcall.c (eliminate_tail_call): Add the created loop
1028         for the first recursion and return it via the new output parameter.
1029         (optimize_tail_call): Pass through new output param.
1030         (tree_optimize_tail_calls_1): After creating all latches,
1031         add the created loop to the loop tree.  Do not mark loops for fixup.
1033 2021-08-04  Martin Liska  <mliska@suse.cz>
1035         * doc/invoke.texi: Document threader-mode param.
1037 2021-08-04  liuhongt  <hongtao.liu@intel.com>
1039         * config/i386/sse.md (cond_fma<mode>): New expander.
1040         (cond_fms<mode>): Ditto.
1041         (cond_fnma<mode>): Ditto.
1042         (cond_fnms<mode>): Ditto.
1044 2021-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
1046         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
1048 2021-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
1050         * config/rs6000/constraints.md: Remove "e" from the list of available
1051         constraint characters.
1053 2021-08-03  Eugene Rozenfeld  <erozen@microsoft.com>
1055         PR gcov-profile/71672
1056         * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
1058 2021-08-03  Paul A. Clarke  <pc@us.ibm.com>
1060         * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
1062 2021-08-03  H.J. Lu  <hjl.tools@gmail.com>
1064         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
1065         try XMM31 to avoid vzeroupper.
1067 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1069         * doc/invoke.texi: Document -mtune=neoverse-512tvb and
1070         -mcpu=neoverse-512tvb.
1071         * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
1072         * config/aarch64/aarch64-tune.md: Regenerate.
1073         * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
1074         (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
1075         (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
1076         (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
1077         (aarch64_adjust_body_cost): Likewise.
1079 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1081         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
1082         record issue information for operations that occur in the
1083         innermost loop.
1085 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1087         * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
1088         parameter.  Detect cases in which an Advanced SIMD MLA would almost
1089         certainly require a MOV.
1090         (aarch64_count_ops): Update accordingly.
1092 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1094         * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
1095         function, split out from...
1096         (aarch64_detect_vector_stmt_subtype): ...here.
1097         (aarch64_add_stmt_cost): Treat extracting element 0 as free.
1099 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1101         * config/aarch64/aarch64-protos.h (sve_vec_cost):
1102         Add gather_load_x32_cost and gather_load_x64_cost.
1103         * config/aarch64/aarch64.c (generic_sve_vector_cost)
1104         (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
1105         accordingly, using the values given by the scalar_load * number
1106         of elements calculation that we used previously.
1107         (aarch64_detect_vector_stmt_subtype): Use the new fields.
1109 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1111         * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
1112         function, split out from...
1113         (aarch64_adjust_body_cost): ...here.
1115 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1117         * config/aarch64/fractional-cost.h: New file.
1118         * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
1119         and cost_fraction.h.
1120         (vec_cost_fraction): New typedef.
1121         (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
1122         (aarch64_detect_vector_stmt_subtype): Likewise.
1123         (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
1124         (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
1125         for cycle counts.
1126         (aarch64_adjust_body_cost): Likewise.
1127         (aarch64_test_cost_fraction): New function.
1128         (aarch64_run_selftests): Call it.
1130 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1132         * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
1133         into a bitmask.
1134         * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
1135         accordingly.
1136         (aarch64_estimated_poly_value): Likewise.  Use the least significant
1137         set bit for the minimum and likely values.  Use the most significant
1138         set bit for the maximum value.
1140 2021-08-03  liuhongt  <hongtao.liu@intel.com>
1142         * config/i386/sse.md (cond_<insn><mode>): New expander.
1143         (cond_mul<mode>): Ditto.
1145 2021-08-03  Kewen Lin  <linkw@linux.ibm.com>
1147         * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
1149 2021-08-03  liuhongt  <hongtao.liu@intel.com>
1151         * config/i386/sse.md (cond_<insn><mode>):New expander.
1152         (cond_mul<mode>): Ditto.
1153         (cond_div<mode>): Ditto.
1155 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
1157         * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
1158         check stack_realign_needed for stack realignment.
1159         (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
1160         than the largest integer supported by vector register.
1161         * config/i386/i386.h (MAX_MOVE_MAX): New.  Set to 64.
1162         (MOVE_MAX): Set to bytes of the largest integer supported by
1163         vector register.
1164         (STORE_MAX_PIECES): New.
1166 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
1168         * config/i386/i386-expand.c (ix86_expand_vector_move): Call
1169         ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
1170         data from one memory location to another.
1172 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
1174         PR middle-end/90773
1175         * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
1177 2021-08-02  Aldy Hernandez  <aldyh@redhat.com>
1179         PR tree-optimization/101724
1180         * params.opt: Remove --param=threader-iterative.
1181         * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
1182         iterative mode.
1184 2021-08-02  Tom de Vries  <tdevries@suse.de>
1186         PR middle-end/101665
1187         * doc/extend.texi (nonnull attribute): Improve documentation.
1189 2021-08-02  Andrew Pinski  <apinski@marvell.com>
1191         PR rtl-optimization/101683
1192         * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
1194 2021-08-02  Roger Sayle  <roger@nextmovesoftware.com>
1196         * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
1197         Renamed from cond_removal_in_popcount_clz_ctz_pattern.
1198         Add support for BSWAP, FFS, PARITY and CLRSB builtins.
1199         (tree_ssa_phiop_worker): Update call to function above.
1201 2021-08-01  H.J. Lu  <hjl.tools@gmail.com>
1203         PR target/78103
1204         * config/i386/i386.md (bsr_rex64_1_zext): New.
1205         (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
1206         with gen_bsr_rex64_1_zext.
1208 2021-07-31  Jakub Jelinek  <jakub@redhat.com>
1210         PR target/78103
1211         * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
1212         define_insn patterns.
1213         (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
1214         Add combine splitters for constant - clz.
1215         (clz<mode>2): Use a temporary pseudo for bsr result.
1217 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
1219         * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
1220         _mm_floor_sd, _mm_floor_ss): New.
1222 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
1224         * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
1225         _mm_ceil_sd, _mm_ceil_ss): New.
1227 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
1229         * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
1230         _mm_blend_ps, _mm_blendv_ps): New.
1232 2021-07-30  Roger Sayle  <roger@nextmovesoftware.com>
1233             Uroš Bizjak  <ubizjak@gmail.com>
1235         * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
1236         to generate a conditional move using the carry flag after sub $1.
1237         (peephole2): Eliminate a register-to-register move by inverting
1238         the condition of a conditional move.
1240 2021-07-30  Hans-Peter Nilsson  <hp@bitrange.com>
1242         * config/mmix/mmix.md ("call", "call_value", "*call_real")
1243         ("*call_value_real"): Don't generate rtx mentioning the generic
1244         operands 1 and 2 to "call", and similarly for "call_value".
1245         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
1246         (mmix_print_operand): Use '!' instead of 'p'.
1248 2021-07-30  Hans-Peter Nilsson  <hp@bitrange.com>
1250         * doc/md.texi (call): Correct information about operand 2.
1251         * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
1253 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
1255         * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
1257 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
1259         * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
1261 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
1263         * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
1264         const_basic_block..
1265         (*::get_bb_range): Ditto.
1266         (*::bb_range_p): Ditto.
1267         * gimple-range-cache.h: Change prototypes.
1269 2021-07-30  H.J. Lu  <hjl.tools@gmail.com>
1271         PR middle-end/90773
1272         * builtins.c (builtin_memcpy_read_str): Change the mode argument
1273         from scalar_int_mode to fixed_size_mode.
1274         (builtin_strncpy_read_str): Likewise.
1275         (gen_memset_value_from_prev): New function.
1276         (builtin_memset_read_str): Change the mode argument from
1277         scalar_int_mode to fixed_size_mode.  Use gen_memset_value_from_prev
1278         and support CONST_VECTOR.
1279         (builtin_memset_gen_str): Likewise.
1280         (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
1281         constfun.
1282         * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
1283         with fixed_size_mode.
1284         (builtin_memset_read_str): Likewise.
1285         * expr.c (widest_int_mode_for_size): Renamed to ...
1286         (widest_fixed_size_mode_for_size): Add a bool argument to
1287         indicate if QI vector mode can be used.
1288         (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
1289         instead of widest_int_mode_for_size.
1290         (pieces_addr::adjust): Change the mode argument from
1291         scalar_int_mode to fixed_size_mode.
1292         (op_by_pieces_d): Make m_len read-only.  Add a bool member,
1293         m_qi_vector_mode, to indicate that QI vector mode can be used.
1294         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
1295         initialize m_qi_vector_mode.  Call widest_fixed_size_mode_for_size
1296         instead of widest_int_mode_for_size.
1297         (op_by_pieces_d::get_usable_mode): Change the mode argument from
1298         scalar_int_mode to fixed_size_mode.  Call
1299         widest_fixed_size_mode_for_size instead of
1300         widest_int_mode_for_size.
1301         (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
1302         function to return the smallest integer or QI vector mode.
1303         (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
1304         instead of widest_int_mode_for_size.  Call
1305         smallest_fixed_size_mode_for_size instead of
1306         smallest_int_mode_for_size.
1307         (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
1308         indicate that QI vector mode can be used and pass it to
1309         op_by_pieces_d::op_by_pieces_d.
1310         (can_store_by_pieces): Call widest_fixed_size_mode_for_size
1311         instead of widest_int_mode_for_size.  Pass memsetp to
1312         widest_fixed_size_mode_for_size to support QI vector mode.
1313         Allow all CONST_VECTORs for memset if vec_duplicate is supported.
1314         (store_by_pieces): Pass memsetp to
1315         store_by_pieces_d::store_by_pieces_d.
1316         (clear_by_pieces_1): Removed.
1317         (clear_by_pieces): Replace clear_by_pieces_1 with
1318         builtin_memset_read_str and pass true to store_by_pieces_d to
1319         support vector mode broadcast.
1320         (string_cst_read_str): Change the mode argument from
1321         scalar_int_mode to fixed_size_mode.
1322         * expr.h (by_pieces_constfn): Change scalar_int_mode to
1323         fixed_size_mode.
1324         (by_pieces_prev): Likewise.
1325         * rtl.h (lowpart_subreg_regno): New.
1326         * rtlanal.c (lowpart_subreg_regno): New.  A wrapper around
1327         simplify_subreg_regno.
1328         * target.def (gen_memset_scratch_rtx): New hook.
1329         * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
1330         * doc/tm.texi: Regenerated.
1332 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
1334         PR target/94780
1335         * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
1336           TARGET_EXPR instead of MODIFY_EXPR.
1338 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
1340         PR target/101132
1341         * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
1342         * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
1343         * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
1344           expander.
1345           (vec_cmpu<IMSA:mode><mode_i>): New expander.
1347 2021-07-30  H.J. Lu  <hjl.tools@gmail.com>
1349         PR target/101685
1350         * config/i386/i386-options.c (ix86_option_override_internal):
1351         Don't enable LZCNT/POPCNT if they have been disabled explicitly.
1353 2021-07-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
1355         PR target/66791
1356         * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
1357         explicitly dereferencing __a.
1358         (vld1_s64): Likewise.
1359         (vld1_u64): Likewise.
1360         * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
1361         and change to VAR13.
1363 2021-07-30  Aldy Hernandez  <aldyh@redhat.com>
1365         * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
1366         use of m_range_analyzer.
1367         (loop_versioning::lv_dom_walker::before_dom_children): Same.
1368         (loop_versioning::lv_dom_walker::after_dom_children): Remove.
1369         (loop_versioning::prune_loop_conditions): Replace vr_values use
1370         with range_query interface.
1371         (pass_loop_versioning::execute): Use ranger.
1373 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
1375         PR ipa/101396
1376         * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
1377           enum values, and emit a warning if they mismatch.
1379 2021-07-30  Kewen Lin  <linkw@linux.ibm.com>
1381         * cfgloop.h (as_const): New function.
1382         (class loop_iterator): Rename to ...
1383         (class loops_list): ... this.
1384         (loop_iterator::next): Rename to ...
1385         (loops_list::Iter::fill_curr_loop): ... this and adjust.
1386         (loop_iterator::loop_iterator): Rename to ...
1387         (loops_list::loops_list): ... this and adjust.
1388         (loops_list::Iter): New class.
1389         (loops_list::iterator): New type.
1390         (loops_list::const_iterator): New type.
1391         (loops_list::begin): New function.
1392         (loops_list::end): Likewise.
1393         (loops_list::begin const): Likewise.
1394         (loops_list::end const): Likewise.
1395         (FOR_EACH_LOOP): Remove.
1396         (FOR_EACH_LOOP_FN): Remove.
1397         * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
1398         for loop with loops_list instance.
1399         (sort_sibling_loops): Likewise.
1400         (disambiguate_loops_with_multiple_latches): Likewise.
1401         (verify_loop_structure): Likewise.
1402         * cfgloopmanip.c (create_preheaders): Likewise.
1403         (force_single_succ_latches): Likewise.
1404         * config/aarch64/falkor-tag-collision-avoidance.c
1405         (execute_tag_collision_avoidance): Likewise.
1406         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
1407         * config/s390/s390.c (s390_adjust_loops): Likewise.
1408         * doc/loop.texi: Likewise.
1409         * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
1410         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
1411         * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
1412         (loop_versioning::make_versioning_decisions): Likewise.
1413         * gimple-ssa-split-paths.c (split_paths): Likewise.
1414         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
1415         * graphite.c (canonicalize_loop_form): Likewise.
1416         (graphite_transform_loops): Likewise.
1417         * ipa-fnsummary.c (analyze_function_body): Likewise.
1418         * ipa-pure-const.c (analyze_function): Likewise.
1419         * loop-doloop.c (doloop_optimize_loops): Likewise.
1420         * loop-init.c (loop_optimizer_finalize): Likewise.
1421         (fix_loop_structure): Likewise.
1422         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1423         (move_loop_invariants): Likewise.
1424         * loop-unroll.c (decide_unrolling): Likewise.
1425         (unroll_loops): Likewise.
1426         * modulo-sched.c (sms_schedule): Likewise.
1427         * predict.c (predict_loops): Likewise.
1428         (pass_profile::execute): Likewise.
1429         * profile.c (branch_prob): Likewise.
1430         * sel-sched-ir.c (sel_finish_pipelining): Likewise.
1431         (sel_find_rgns): Likewise.
1432         * tree-cfg.c (replace_loop_annotate): Likewise.
1433         (replace_uses_by): Likewise.
1434         (move_sese_region_to_fn): Likewise.
1435         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
1436         * tree-loop-distribution.c (loop_distribution::execute): Likewise.
1437         * tree-parloops.c (parallelize_loops): Likewise.
1438         * tree-predcom.c (tree_predictive_commoning): Likewise.
1439         * tree-scalar-evolution.c (scev_initialize): Likewise.
1440         (scev_reset): Likewise.
1441         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
1442         * tree-ssa-live.c (remove_unused_locals): Likewise.
1443         * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
1444         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1445         (tree_ssa_lim_initialize): Likewise.
1446         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
1447         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
1448         * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
1449         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
1450         (free_numbers_of_iterations_estimates): Likewise.
1451         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
1452         * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
1453         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
1454         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
1455         (pass_scev_cprop::execute): Likewise.
1456         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
1457         * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
1458         * tree-ssa-threadupdate.c
1459         (jump_thread_path_registry::thread_through_all_blocks): Likewise.
1460         * tree-vectorizer.c (vectorize_loops): Likewise.
1461         * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
1463 2021-07-29  Hans-Peter Nilsson  <hp@bitrange.com>
1465         * config/mmix/mmix.c (mmix_function_arg_1): Avoid
1466         generating a VOIDmode register for e.g the
1467         function_arg_info::end_marker.
1469 2021-07-29  Jeff Law  <jeffreyalaw@gmail.com>
1471         * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
1472         * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
1473         (cc mode_attr): Similarly.
1474         (ccz subst_attr): Similarly.
1475         * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
1476         * config/h8300/testcompare.md: Remove various cc0 based patterns
1477         that had been commented out.  Add pattern to set CCZ from a bit
1478         test.
1480 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
1481             Julian Brown  <julian@codesourcery.com>
1482             Kwok Cheung Yeung  <kcy@codesourcery.com>
1484         * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
1485         'update_stmt' after modification.
1486         (pass_oacc_loop_designation): New function, extracted out of...
1487         (pass_oacc_device_lower): ... this.
1488         (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
1489         (make_pass_oacc_loop_designation): New
1490         * passes.def: Add it.
1491         * tree-parloops.c (create_parallel_loop): Adjust.
1492         * tree-pass.h (make_pass_oacc_loop_designation): New.
1494 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
1496         * flag-types.h (enum threader_mode): New.
1497         * params.opt: Add entry for --param=threader-mode.
1498         * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
1499         (class back_threader): New.
1500         (back_threader::back_threader): New.
1501         (back_threader::~back_threader): New.
1502         (back_threader::maybe_register_path): New.
1503         (back_threader::find_taken_edge): New.
1504         (back_threader::find_taken_edge_switch): New.
1505         (back_threader::find_taken_edge_cond): New.
1506         (back_threader::resolve_def): New.
1507         (back_threader::resolve_phi): New.
1508         (back_threader::find_paths_to_names): New.
1509         (back_threader::find_paths): New.
1510         (dump_path): New.
1511         (debug): New.
1512         (thread_jumps::find_jump_threads_backwards): Call ranger threader.
1513         (thread_jumps::find_jump_threads_backwards_with_ranger): New.
1514         (pass_thread_jumps::execute): Abstract out code...
1515         (try_thread_blocks): ...here.
1516         * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
1517         Abstract out threading candidate code to...
1518         (single_succ_to_potentially_threadable_block): ...here.
1519         * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
1520         New.
1521         * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
1522         * tree-ssa-threadupdate.h (class jump_thread_path_registry):
1523         Return bool from register_jump_thread.
1525 2021-07-29  Andreas Krebbel  <krebbel@linux.ibm.com>
1527         * target.def: in0 and in1 do not need to be registers.
1528         * doc/tm.texi: Regenerate.
1530 2021-07-29  liuhongt  <hongtao.liu@intel.com>
1532         PR target/39821
1533         * config/i386/i386.c (ix86_widen_mult_cost): New function.
1534         (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
1535         WIDEN_MULT_EXPR.
1537 2021-07-29  Jiufu Guo  <guojiufu@linux.ibm.com>
1539         PR target/61837
1540         * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
1541         (rs6000_preferred_doloop_mode): New hook.
1542         * doc/tm.texi: Regenerate.
1543         * doc/tm.texi.in: Add hook preferred_doloop_mode.
1544         * target.def (preferred_doloop_mode): New hook.
1545         * targhooks.c (default_preferred_doloop_mode): New hook.
1546         * targhooks.h (default_preferred_doloop_mode): New hook.
1547         * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
1548         (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
1549         and compute_doloop_base_on_mode.
1551 2021-07-28  Martin Sebor  <msebor@redhat.com>
1553         PR middle-end/101494
1554         * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
1555         and size computation.
1557 2021-07-28  Martin Sebor  <msebor@redhat.com>
1559         PR middle-end/101601
1560         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
1561         a pointless test.
1562         Handle pointers to functions.
1564 2021-07-28  Martin Sebor  <msebor@redhat.com>
1566         * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
1567         * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
1568         * builtins.c (compute_objsize_r): Move to pointer-query.cc.
1569         (access_ref::access_ref): Same.
1570         (access_ref::phi): Same.
1571         (access_ref::get_ref): Same.
1572         (access_ref::size_remaining): Same.
1573         (access_ref::offset_in_range): Same.
1574         (access_ref::add_offset): Same.
1575         (access_ref::inform_access): Same.
1576         (ssa_name_limit_t::visit_phi): Same.
1577         (ssa_name_limit_t::leave_phi): Same.
1578         (ssa_name_limit_t::next): Same.
1579         (ssa_name_limit_t::next_phi): Same.
1580         (ssa_name_limit_t::~ssa_name_limit_t): Same.
1581         (pointer_query::pointer_query): Same.
1582         (pointer_query::get_ref): Same.
1583         (pointer_query::put_ref): Same.
1584         (pointer_query::flush_cache): Same.
1585         (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
1586         (check_nul_terminated_array): Same.
1587         (unterminated_array): Same.
1588         (maybe_warn_for_bound): Same.
1589         (check_read_access): Same.
1590         (warn_for_access): Same.
1591         (get_size_range): Same.
1592         (check_access): Same.
1593         (gimple_call_alloc_size): Move to tree.c.
1594         (gimple_parm_array_size): Move to pointer-query.cc.
1595         (get_offset_range): Same.
1596         (gimple_call_return_array): Same.
1597         (handle_min_max_size): Same.
1598         (handle_array_ref): Same.
1599         (handle_mem_ref): Same.
1600         (compute_objsize): Same.
1601         (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
1602         (call_dealloc_argno): Same.
1603         (fndecl_dealloc_argno): Same.
1604         (new_delete_mismatch_p): Same.
1605         (matching_alloc_calls_p): Same.
1606         (warn_dealloc_offset): Same.
1607         (maybe_emit_free_warning): Same.
1608         * builtins.h (check_nul_terminated_array): Move to
1609         gimple-ssa-warn-access.h.
1610         (check_nul_terminated_array): Same.
1611         (warn_string_no_nul): Same.
1612         (unterminated_array): Same.
1613         (class ssa_name_limit_t): Same.
1614         (class pointer_query): Same.
1615         (struct access_ref): Same.
1616         (class range_query): Same.
1617         (struct access_data): Same.
1618         (gimple_call_alloc_size): Same.
1619         (gimple_parm_array_size): Same.
1620         (compute_objsize): Same.
1621         (class access_data): Same.
1622         (maybe_emit_free_warning): Same.
1623         * calls.c (initialize_argument_information): Remove call to
1624         maybe_emit_free_warning.
1625         * gimple-array-bounds.cc: Include new header..
1626         * gimple-fold.c: Same.
1627         * gimple-ssa-sprintf.c: Same.
1628         * gimple-ssa-warn-restrict.c: Same.
1629         * passes.def: Add pass_warn_access.
1630         * tree-pass.h (make_pass_warn_access): Declare.
1631         * tree-ssa-strlen.c: Include new headers.
1632         * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
1633         * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
1634         * gimple-ssa-warn-access.cc: New file.
1635         * gimple-ssa-warn-access.h: New file.
1636         * pointer-query.cc: New file.
1637         * pointer-query.h: New file.
1639 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
1641         PR middle-end/101624
1642         * ubsan.c (maybe_instrument_pointer_overflow,
1643         instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
1644         PARM_DECLs or RESULT_DECLs.
1645         * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
1647 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
1649         PR middle-end/101642
1650         * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
1651         to type of bswap16 for comparison.
1652         (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
1654 2021-07-28  Richard Biener  <rguenther@suse.de>
1656         PR tree-optimization/101615
1657         * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
1658         at CTOR SLP graph entries.
1660 2021-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1662         * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
1663         Add "r,w" alternative.
1665 2021-07-28  H.J. Lu  <hjl.tools@gmail.com>
1667         PR target/101456
1668         * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
1669         AVX_U128_DIRTY when all bits are zero.
1671 2021-07-28  Richard Biener  <rguenther@suse.de>
1673         PR tree-optimization/101615
1674         * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
1675         external nodes cannot be permuted so make them perm_out 0.
1677 2021-07-28  Andrew Stubbs  <ams@codesourcery.com>
1679         PR target/100208
1680         * config.in: Regenerate.
1681         * config/gcn/gcn-hsa.h (A_FIJI): New define.
1682         (A_900): New define.
1683         (A_906): New define.
1684         (A_908): New define.
1685         (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
1686         * config/gcn/gcn.c (output_file_start): Adjust attributes according
1687         to the assembler capabilities.
1688         * config/gcn/mkoffload.c (main): Likewise.
1689         * configure: Regenerate.
1690         * configure.ac: Add tests for LLVM assembler attribute features.
1692 2021-07-28  Andrew MacLeod  <amacleod@redhat.com>
1694         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
1695         cond_false and cond_true on branches.
1697 2021-07-28  Bin Cheng  <bin.cheng@linux.alibaba.com>
1699         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
1700         gcc_stablesort.
1702 2021-07-28  Bin Cheng  <bin.cheng@linux.alibaba.com>
1704         * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
1706 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
1708         PR target/101611
1709         * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
1710         and vashrv4di3 expander, where the latter requires just TARGET_AVX2
1711         and has special !TARGET_AVX512VL expansion.
1712         (vashrv2di3<mask_name>): Rename to ...
1713         (vashrv2di3): ... this.  Change condition to TARGET_XOP || TARGET_AVX2
1714         and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
1716 2021-07-28  Martin Uecker  <muecker@gwdg.de>
1718         * calls.c (maybe_warn_rdwr_sizes): Correct argument
1719         numbers in warning that were switched.
1721 2021-07-28  Kewen Lin  <linkw@linux.ibm.com>
1723         PR tree-optimization/101596
1724         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
1725         by using new_type's precision instead.
1727 2021-07-28  liuhongt  <hongtao.liu@intel.com>
1729         PR target/99881
1730         * config/i386/i386.h (processor_costs): Add new member
1731         integer_to_sse.
1732         * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
1733         i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
1734         geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
1735         bdver_cost, znver1_cost, znver2_cost, znver3_cost,
1736         btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
1737         nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
1738         generic_cost, core_cost): Initialize integer_to_sse same value
1739         as sse_op.
1740         (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
1741         * config/i386/i386.c (ix86_builtin_vectorization_cost):
1742         Use integer_to_sse instead of sse_op to calculate the cost of
1743         vec_construct.
1745 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
1747         * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
1748         function.
1749         (write_init_file): Call write_ovld_static_init.
1751 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
1753         * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
1754         function.
1755         (write_init_file): Call write_bif_static_init.
1757 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
1759         * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
1760         (TYPE_MAP_SIZE): New macro.
1761         (type_map): New initialized variable.
1762         (typemap_cmp): New function.
1763         (write_type_node): Likewise.
1764         (write_fntype_init): Implement.
1766 2021-07-27  Martin Sebor  <msebor@redhat.com>
1768         PR tree-optimization/101584
1769         * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
1770         (check_defs): Call it.
1772 2021-07-27  Aldy Hernandez  <aldyh@redhat.com>
1774         * tree-ssa-dom.c (dom_jump_threader_simplifier):
1775         Put avail_exprs_stack in the class, instead of passing it to
1776         jump_threader_simplifier.
1777         (dom_jump_threader_simplifier::simplify): Add state argument.
1778         (dom_opt_dom_walker): Add state.
1779         (pass_dominator::execute): Pass state to threader.
1780         (dom_opt_dom_walker::before_dom_children): Use state.
1781         * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
1782         arguments by state.
1783         (jump_threader::record_temporary_equivalences_from_phis):
1784         Register equivalences through the state variable.
1785         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
1786         Record ranges in a statement through the state variable.
1787         (jump_threader::simplify_control_stmt_condition): Pass state to
1788         simplify.
1789         (jump_threader::simplify_control_stmt_condition_1): Same.
1790         (jump_threader::thread_around_empty_blocks): Remove obsolete
1791         comment.
1792         (jump_threader::thread_through_normal_block): Record equivalences
1793         on edge through the state variable.
1794         (jump_threader::thread_across_edge): Abstract state pushing.
1795         (jt_state::jt_state): New.
1796         (jt_state::push): New.
1797         (jt_state::pop): New.
1798         (jt_state::register_equiv): New.
1799         (jt_state::record_ranges_from_stmt): New.
1800         (jt_state::register_equivs_on_edge): New.
1801         (jump_threader_simplifier::jump_threader_simplifier): Move from
1802         header.
1803         (jump_threader_simplifier::simplify): Add state argument.
1804         * tree-ssa-threadedge.h (class jt_state): New.
1805         (class jump_threader): Add state to constructor.
1806         (class jump_threader_simplifier): Add state to simplify.  Remove
1807         avail_exprs_stack from class.
1808         * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
1809         argument.
1810         (vrp_jump_threader::vrp_jump_threader): Add state.
1811         (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
1813 2021-07-27  Aldy Hernandez  <aldyh@redhat.com>
1815         * Makefile.in (OBJS): Add gimple-range-path.o.
1816         * gimple-range-path.cc: New file.
1817         * gimple-range-path.h: New file.
1819 2021-07-27  Jonathan Wright  <jonathan.wright@arm.com>
1821         * config/aarch64/aarch64-simd.md: Push sign/zero-extension
1822         inside vec_duplicate for all patterns.
1823         * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
1824         Push sign/zero-extension inside vec_duplicate.
1826 2021-07-27  Richard Biener  <rguenther@suse.de>
1828         PR tree-optimization/101573
1829         * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
1830         looking at uninitialized PHI arg defs in some constrained cases.
1831         (warn_uninitialized_vars): Call it.
1832         (execute_early_warn_uninitialized): Calculate dominators.
1834 2021-07-27  Richard Biener  <rguenther@suse.de>
1836         PR tree-optimization/39821
1837         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
1838         vector_stmt for widening arithmetic.
1839         (vectorizable_conversion): Adjust.
1841 2021-07-27  Martin Jambor  <mjambor@suse.cz>
1843         * cgraph.h (ipa_replace_map): New field force_load_ref.
1844         * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
1845         aded new flag load_dereferenced, adjusted comments.
1846         (ipa_get_param_dereferenced): New function.
1847         (ipa_set_param_dereferenced): Likewise.
1848         * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
1849         * ipa-cp.c: Include gimple.h.
1850         (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
1851         (get_replacement_map): New parameter force_load_ref, set the
1852         appropriate flag in ipa_replace_map if set.
1853         (struct symbol_and_index_together): New type.
1854         (adjust_refs_in_act_callers): New function.
1855         (adjust_references_in_caller): Likewise.
1856         (create_specialized_node): When appropriate, call
1857         adjust_references_in_caller and force only load references.
1858         * ipa-prop.c (load_from_dereferenced_name): New function.
1859         (ipa_analyze_controlled_uses): Also detect loads from a
1860         dereference, harden testing of call statements.
1861         (ipa_write_node_info): Stream the dereferenced flag.
1862         (ipa_read_node_info): Likewise.
1863         (ipa_set_jf_constant): Also create refdesc when jump function
1864         references a variable.
1865         (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
1866         also on references of variables and return a symtab_node.  Adjust
1867         all callers.
1868         (propagate_controlled_uses): Also remove references to VAR_DECLs.
1870 2021-07-27  Jakub Jelinek  <jakub@redhat.com>
1872         PR middle-end/101586
1873         * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
1874         positions above or equal to sz except for diagnostics of flexible
1875         array members.
1877 2021-07-26  Andrew MacLeod  <amacleod@redhat.com>
1879         PR tree-optimization/78888
1880         * gimple-range-fold.cc (get_letter_range): New.
1881         (fold_using_range::range_of_builtin_call): Call get_letter_range.
1883 2021-07-26  Andrew MacLeod  <amacleod@redhat.com>
1885         PR tree-optimization/78888
1886         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
1887         for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
1889 2021-07-26  Roger Sayle  <roger@nextmovesoftware.com>
1890             Marc Glisse  <marc.glisse@inria.fr>
1892         * match.pd (rotate): Simplify equality/inequality of rotations.
1893         (bswap): Simplify equality/inequality tests of byte swapping.
1895 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
1897         * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
1898         New.
1900 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
1902         * range-op.cc (operator_lshift::fold_range): Pass rel to
1903         base class fold_range.
1904         (operator_rshift::fold_range): Same.
1906 2021-07-26  Ashimida  <ashimida@linux.alibaba.com>
1908         PR driver/101447
1909         * toplev.h (min_align_loops_log): Remove declaration.
1910         (min_align_jumps_log, min_align_labels_log): Likewise.
1911         (min_align_functions_log): Likewise.
1913 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
1915         * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
1916         with range_query.
1917         (execute_vrp): Abstract out simplification of conditionals...
1918         (simplify_casted_conds): ...here.
1920 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
1922         * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
1923         Add gimple argument.
1924         (array_bounds_checker::check_array_ref): Same.
1925         (array_bounds_checker::check_addr_expr): Same.
1926         (array_bounds_checker::check_array_bounds): Pass statement to
1927         check_array_bounds and check_addr_expr.
1928         * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
1929         (check_addr_expr): Same.
1930         (get_value_range): Same.
1932 2021-07-26  Tamar Christina  <tamar.christina@arm.com>
1934         * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
1935         (sdot_prod, udot_prod): ... This.
1936         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
1937         into...
1938         (<sur>dot_prod<vsi2qi>): ... this.
1939         (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
1940         Change operands order.
1941         (<sur>sadv16qi): Use new operands order.
1942         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
1943         vdotq_s32): Use new RTL ordering.
1945 2021-07-26  Tamar Christina  <tamar.christina@arm.com>
1947         * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
1948         aarch64_types_ternop_suss_qualifiers): New.
1949         * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
1950         * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
1951         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
1953 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
1955         PR rtl-optimization/101562
1956         * expmed.c (store_integral_bit_field): Only use movstrict_optab
1957         if the operand isn't paradoxical.
1959 2021-07-23  Aldy Hernandez  <aldyh@redhat.com>
1961         * gimple-array-bounds.h (class array_bounds_checker): Change
1962         ranges type to range_query.
1964 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
1966         * config/aarch64/arm_neon.h (vst1_s64_x2): Use
1967         __builtin_memcpy instead of constructing
1968         __builtin_aarch64_simd_oi one vector at a time.
1969         (vst1_u64_x2): Likewise.
1970         (vst1_f64_x2): Likewise.
1971         (vst1_s8_x2): Likewise.
1972         (vst1_p8_x2): Likewise.
1973         (vst1_s16_x2): Likewise.
1974         (vst1_p16_x2): Likewise.
1975         (vst1_s32_x2): Likewise.
1976         (vst1_u8_x2): Likewise.
1977         (vst1_u16_x2): Likewise.
1978         (vst1_u32_x2): Likewise.
1979         (vst1_f16_x2): Likewise.
1980         (vst1_f32_x2): Likewise.
1981         (vst1_p64_x2): Likewise.
1982         (vst1q_s8_x2): Likewise.
1983         (vst1q_p8_x2): Likewise.
1984         (vst1q_s16_x2): Likewise.
1985         (vst1q_p16_x2): Likewise.
1986         (vst1q_s32_x2): Likewise.
1987         (vst1q_s64_x2): Likewise.
1988         (vst1q_u8_x2): Likewise.
1989         (vst1q_u16_x2): Likewise.
1990         (vst1q_u32_x2): Likewise.
1991         (vst1q_u64_x2): Likewise.
1992         (vst1q_f16_x2): Likewise.
1993         (vst1q_f32_x2): Likewise.
1994         (vst1q_f64_x2): Likewise.
1995         (vst1q_p64_x2): Likewise.
1997 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
1999         * config/aarch64/arm_neon.h (vst1_s64_x3): Use
2000         __builtin_memcpy instead of constructing
2001         __builtin_aarch64_simd_ci one vector at a time.
2002         (vst1_u64_x3): Likewise.
2003         (vst1_f64_x3): Likewise.
2004         (vst1_s8_x3): Likewise.
2005         (vst1_p8_x3): Likewise.
2006         (vst1_s16_x3): Likewise.
2007         (vst1_p16_x3): Likewise.
2008         (vst1_s32_x3): Likewise.
2009         (vst1_u8_x3): Likewise.
2010         (vst1_u16_x3): Likewise.
2011         (vst1_u32_x3): Likewise.
2012         (vst1_f16_x3): Likewise.
2013         (vst1_f32_x3): Likewise.
2014         (vst1_p64_x3): Likewise.
2015         (vst1q_s8_x3): Likewise.
2016         (vst1q_p8_x3): Likewise.
2017         (vst1q_s16_x3): Likewise.
2018         (vst1q_p16_x3): Likewise.
2019         (vst1q_s32_x3): Likewise.
2020         (vst1q_s64_x3): Likewise.
2021         (vst1q_u8_x3): Likewise.
2022         (vst1q_u16_x3): Likewise.
2023         (vst1q_u32_x3): Likewise.
2024         (vst1q_u64_x3): Likewise.
2025         (vst1q_f16_x3): Likewise.
2026         (vst1q_f32_x3): Likewise.
2027         (vst1q_f64_x3): Likewise.
2028         (vst1q_p64_x3): Likewise.
2030 2021-07-23  H.J. Lu  <hjl.tools@gmail.com>
2032         PR target/101504
2033         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
2034         hard register when LRA is in progress.
2036 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2038         * config/aarch64/arm_neon.h (vst1_s8_x4): Use
2039         __builtin_memcpy instead of using a union.
2040         (vst1q_s8_x4): Likewise.
2041         (vst1_s16_x4): Likewise.
2042         (vst1q_s16_x4): Likewise.
2043         (vst1_s32_x4): Likewise.
2044         (vst1q_s32_x4): Likewise.
2045         (vst1_u8_x4): Likewise.
2046         (vst1q_u8_x4): Likewise.
2047         (vst1_u16_x4): Likewise.
2048         (vst1q_u16_x4): Likewise.
2049         (vst1_u32_x4): Likewise.
2050         (vst1q_u32_x4): Likewise.
2051         (vst1_f16_x4): Likewise.
2052         (vst1q_f16_x4): Likewise.
2053         (vst1_f32_x4): Likewise.
2054         (vst1q_f32_x4): Likewise.
2055         (vst1_p8_x4): Likewise.
2056         (vst1q_p8_x4): Likewise.
2057         (vst1_p16_x4): Likewise.
2058         (vst1q_p16_x4): Likewise.
2059         (vst1_s64_x4): Likewise.
2060         (vst1_u64_x4): Likewise.
2061         (vst1_p64_x4): Likewise.
2062         (vst1q_s64_x4): Likewise.
2063         (vst1q_u64_x4): Likewise.
2064         (vst1q_p64_x4): Likewise.
2065         (vst1_f64_x4): Likewise.
2066         (vst1q_f64_x4): Likewise.
2068 2021-07-23  Jonathan Wrightt  <jonathan.wright@arm.com>
2070         * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
2071         instead of constructing __builtin_aarch64_simd_oi one vector
2072         at a time.
2073         (vst2_u64): Likewise.
2074         (vst2_f64): Likewise.
2075         (vst2_s8): Likewise.
2076         (vst2_p8): Likewise.
2077         (vst2_s16): Likewise.
2078         (vst2_p16): Likewise.
2079         (vst2_s32): Likewise.
2080         (vst2_u8): Likewise.
2081         (vst2_u16): Likewise.
2082         (vst2_u32): Likewise.
2083         (vst2_f16): Likewise.
2084         (vst2_f32): Likewise.
2085         (vst2_p64): Likewise.
2086         (vst2q_s8): Likewise.
2087         (vst2q_p8): Likewise.
2088         (vst2q_s16): Likewise.
2089         (vst2q_p16): Likewise.
2090         (vst2q_s32): Likewise.
2091         (vst2q_s64): Likewise.
2092         (vst2q_u8): Likewise.
2093         (vst2q_u16): Likewise.
2094         (vst2q_u32): Likewise.
2095         (vst2q_u64): Likewise.
2096         (vst2q_f16): Likewise.
2097         (vst2q_f32): Likewise.
2098         (vst2q_f64): Likewise.
2099         (vst2q_p64): Likewise.
2101 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2103         * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
2104         instead of constructing __builtin_aarch64_simd_ci one vector
2105         at a time.
2106         (vst3_u64): Likewise.
2107         (vst3_f64): Likewise.
2108         (vst3_s8): Likewise.
2109         (vst3_p8): Likewise.
2110         (vst3_s16): Likewise.
2111         (vst3_p16): Likewise.
2112         (vst3_s32): Likewise.
2113         (vst3_u8): Likewise.
2114         (vst3_u16): Likewise.
2115         (vst3_u32): Likewise.
2116         (vst3_f16): Likewise.
2117         (vst3_f32): Likewise.
2118         (vst3_p64): Likewise.
2119         (vst3q_s8): Likewise.
2120         (vst3q_p8): Likewise.
2121         (vst3q_s16): Likewise.
2122         (vst3q_p16): Likewise.
2123         (vst3q_s32): Likewise.
2124         (vst3q_s64): Likewise.
2125         (vst3q_u8): Likewise.
2126         (vst3q_u16): Likewise.
2127         (vst3q_u32): Likewise.
2128         (vst3q_u64): Likewise.
2129         (vst3q_f16): Likewise.
2130         (vst3q_f32): Likewise.
2131         (vst3q_f64): Likewise.
2132         (vst3q_p64): Likewise.
2134 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2136         * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
2137         instead of constructing __builtin_aarch64_simd_xi one vector
2138         at a time.
2139         (vst4_u64): Likewise.
2140         (vst4_f64): Likewise.
2141         (vst4_s8): Likewise.
2142         (vst4_p8): Likewise.
2143         (vst4_s16): Likewise.
2144         (vst4_p16): Likewise.
2145         (vst4_s32): Likewise.
2146         (vst4_u8): Likewise.
2147         (vst4_u16): Likewise.
2148         (vst4_u32): Likewise.
2149         (vst4_f16): Likewise.
2150         (vst4_f32): Likewise.
2151         (vst4_p64): Likewise.
2152         (vst4q_s8): Likewise.
2153         (vst4q_p8): Likewise.
2154         (vst4q_s16): Likewise.
2155         (vst4q_p16): Likewise.
2156         (vst4q_s32): Likewise.
2157         (vst4q_s64): Likewise.
2158         (vst4q_u8): Likewise.
2159         (vst4q_u16): Likewise.
2160         (vst4q_u32): Likewise.
2161         (vst4q_u64): Likewise.
2162         (vst4q_f16): Likewise.
2163         (vst4q_f32): Likewise.
2164         (vst4q_f64): Likewise.
2165         (vst4q_p64): Likewise.
2167 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2169         * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
2170         instead of constructing __builtin_aarch64_simd_oi one vector
2171         at a time.
2172         (vtbx4_u8): Likewise.
2173         (vtbx4_p8): Likewise.
2175 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2177         * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
2178         instead of constructing __builtin_aarch64_simd_oi one vector
2179         at a time.
2180         (vtbl3_u8): Likewise.
2181         (vtbl3_p8): Likewise.
2182         (vtbl4_s8): Likewise.
2183         (vtbl4_u8): Likewise.
2184         (vtbl4_p8): Likewise.
2186 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2188         * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
2189         instead of constructing __builtin_aarch64_simd_oi one vector
2190         at a time.
2191         (vqtbx2_u8): Likewise.
2192         (vqtbx2_p8): Likewise.
2193         (vqtbx2q_s8): Likewise.
2194         (vqtbx2q_u8): Likewise.
2195         (vqtbx2q_p8): Likewise.
2196         (vqtbx3_s8): Use __builtin_memcpy instead of constructing
2197         __builtin_aarch64_simd_ci one vector at a time.
2198         (vqtbx3_u8): Likewise.
2199         (vqtbx3_p8): Likewise.
2200         (vqtbx3q_s8): Likewise.
2201         (vqtbx3q_u8): Likewise.
2202         (vqtbx3q_p8): Likewise.
2203         (vqtbx4_s8): Use __builtin_memcpy instead of constructing
2204         __builtin_aarch64_simd_xi one vector at a time.
2205         (vqtbx4_u8): Likewise.
2206         (vqtbx4_p8): Likewise.
2207         (vqtbx4q_s8): Likewise.
2208         (vqtbx4q_u8): Likewise.
2209         (vqtbx4q_p8): Likewise.
2211 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2213         * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
2214         instead of constructing __builtin_aarch64_simd_oi one vector
2215         at a time.
2216         (vqtbl2_u8): Likewise.
2217         (vqtbl2_p8): Likewise.
2218         (vqtbl2q_s8): Likewise.
2219         (vqtbl2q_u8): Likewise.
2220         (vqtbl2q_p8): Likewise.
2221         (vqtbl3_s8): Use __builtin_memcpy instead of constructing
2222         __builtin_aarch64_simd_ci one vector at a time.
2223         (vqtbl3_u8): Likewise.
2224         (vqtbl3_p8): Likewise.
2225         (vqtbl3q_s8): Likewise.
2226         (vqtbl3q_u8): Likewise.
2227         (vqtbl3q_p8): Likewise.
2228         (vqtbl4_s8): Use __builtin_memcpy instead of constructing
2229         __builtin_aarch64_simd_xi one vector at a time.
2230         (vqtbl4_u8): Likewise.
2231         (vqtbl4_p8): Likewise.
2232         (vqtbl4q_s8): Likewise.
2233         (vqtbl4q_u8): Likewise.
2234         (vqtbl4q_p8): Likewise.
2236 2021-07-23  Haochen Gui  <guihaoc@gcc.gnu.org>
2238         PR target/100952
2239         * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
2241 2021-07-22  Andrew Pinski  <apinski@marvell.com>
2243         PR tree-optimization/10153
2244         * tree-tailcall.c (create_tailcall_accumulator):
2245         Don't call fold_convert as the type should be correct already.
2246         (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
2247         of integer_{one,zero}_node for the call of create_tailcall_accumulator.
2249 2021-07-22  Aldy Hernandez  <aldyh@redhat.com>
2251         * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
2252         varying_p check for null/non-null check.
2254 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
2256         PR tree-optimization/101511
2257         * value-relation.cc (relation_oracle::query_relation): Check if ssa1
2258         is in ssa2's equiv set, and don't trap if so.
2260 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
2262         PR tree-optimization/101497
2263         * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
2264         for undefined.
2266 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
2268         PR tree-optimization/101496
2269         * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
2270         first, then vrp_visit_cond_Stmt.
2272 2021-07-22  liuhongt  <hongtao.liu@intel.com>
2274         * config/i386/i386-expand.c
2275         (ix86_broadcast_from_integer_constant): Rename to ..
2276         (ix86_broadcast_from_constant): .. this, and extend it to
2277         handle float mode.
2278         (ix86_expand_vector_move): Extend to float mode.
2279         * config/i386/i386-features.c
2280         (replace_constant_pool_with_broadcast): Remove.
2281         (remove_partial_avx_dependency_gate): Ditto.
2282         (constant_pool_broadcast): Ditto.
2283         (class pass_constant_pool_broadcast): Ditto.
2284         (make_pass_constant_pool_broadcast): Ditto.
2285         (remove_partial_avx_dependency): Adjust gate.
2286         * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
2287         * config/i386/i386-protos.h
2288         (make_pass_constant_pool_broadcast): Remove.
2290 2021-07-22  liuhongt  <hongtao.liu@intel.com>
2292         * config/i386/constraints.md (Wb): New constraint.
2293         (Ww): Ditto.
2294         * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
2295         shift.
2296         (*ashlqi3_1): Ditto.
2297         (*<insn><mode>3_1): Split to ..
2298         (*ashr<mode>3_1): this, ...
2299         (*lshr<mode>3_1): and this, also extend this pattern to avx512
2300         mask registers.
2301         (*<insn><mode>3_1): Split to ..
2302         (*ashr<mode>3_1): this, ...
2303         (*lshrqi3_1): and this, also extend this pattern to avx512
2304         mask registers.
2305         (*lshrhi3_1): And this, also extend this pattern to avx512
2306         mask registers.
2307         * config/i386/sse.md (k<code><mode>): New define_split after
2308         it to convert generic shift pattern to mask shift ones.
2310 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
2311             Joseph Myers  <joseph@codesourcery.com>
2312             Cesar Philippidis  <cesar@codesourcery.com>
2314         * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
2315         * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
2316         Handle it.
2317         * tree-pretty-print.c (dump_omp_clause): Likewise.
2318         * omp-general.c (oacc_verify_routine_clauses): Likewise.
2319         * gimplify.c (gimplify_scan_omp_clauses)
2320         (gimplify_adjust_omp_clauses): Likewise.
2321         * tree-nested.c (convert_nonlocal_omp_clauses)
2322         (convert_local_omp_clauses): Likewise.
2323         * omp-low.c (scan_sharing_clauses): Likewise.
2324         * omp-offload.c (execute_oacc_device_lower): Update.
2326 2021-07-21  Martin Sebor  <msebor@redhat.com>
2328         * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
2330 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
2332         * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
2333         Implement.
2335 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
2337         * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
2338         callback function.
2339         (write_fntype_init): New stub function.
2340         (write_init_bif_table): Likewise.
2341         (write_init_ovld_table): New function.
2342         (write_init_file): Implement.
2344 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
2346         * config/rs6000/rs6000-gen-builtins.c
2347         (write_autogenerated_header): New function.
2348         (write_decls): Likewise.
2349         (write_extern_fntype): New callback function.
2350         (write_header_file): Implement.
2352 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
2354         * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
2355         Implement.
2357 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
2359         * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
2360         function.
2361         (complete_base_type): Likewise.
2362         (construct_fntype_id): Likewise.
2363         (parse_bif_entry): Call contruct_fntype_id.
2364         (parse_ovld_entry): Likewise.
2366 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
2368         * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
2369         (MAXOVLDSTANZAS): New macro.
2370         (ovld_stanzas): New variable.
2371         (curr_ovld_stanza): Likewise.
2372         (MAXOVLDS): New macro.
2373         (ovlddata): New struct.
2374         (ovlds): New variable.
2375         (curr_ovld): Likewise.
2376         (max_ovld_args): Likewise.
2377         (parse_ovld_entry): New function.
2378         (parse_ovld_stanza): Likewise.
2379         (parse_ovld): Implement.
2381 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
2383         * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
2384         Implement.
2386 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
2388         * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
2389         (parse_prototype): Implement.
2391 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
2393         * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
2394         (curr_bif_stanza): New variable.
2395         (stanza_entry): New struct.
2396         (stanza_map): New initialized variable.
2397         (enable_string): Likewise.
2398         (fnkinds): New enum.
2399         (typelist): New struct.
2400         (attrinfo): Likewise.
2401         (MAXRESTROPNDS): New macro.
2402         (prototype): New struct.
2403         (MAXBIFS): New macro.
2404         (bifdata): New struct.
2405         (bifs): New variable.
2406         (curr_bif): Likewise.
2407         (bif_order): Likewise.
2408         (bif_index): Likewise.
2409         (fatal): New function.
2410         (stanza_name_to_stanza): Likewise.
2411         (parse_bif_attrs): New stub function.
2412         (parse_prototype): Likewise.
2413         (parse_bif_entry): New function.
2414         (parse_bif_stanza): Likewise.
2415         (parse_bif): Implement.
2416         (set_bif_order): New function.
2417         (create_bif_order): Implement.
2419 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
2421         * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
2422         (num_bifs): New variable.
2423         (num_ovld_stanzas): Likewise.
2424         (num_ovlds): Likewise.
2425         (parse_codes): New enum.
2426         (bif_rbt): New variable.
2427         (ovld_rbt): Likewise.
2428         (fntype_rbt): Likewise.
2429         (bifo_rbt): Likewise.
2430         (parse_bif): New stub function.
2431         (create_bif_order): Likewise.
2432         (parse_ovld): Likewise.
2433         (write_header_file): Likewise.
2434         (write_init_file): Likewise.
2435         (write_defines_file): Likewise.
2436         (delete_output_files): New function.
2437         (main): Likewise.
2439 2021-07-21  H.J. Lu  <hjl.tools@gmail.com>
2441         PR target/101549
2442         * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
2443         from CRC32 _builtin functions.
2445 2021-07-21  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2447         * coverage.c (build_gcov_info_var_registration): Mark the object placed
2448         in the linker set as referenced so that it does not get optimized away.
2450 2021-07-21  Kito Cheng  <kito.cheng@sifive.com>
2452         Revert:
2453         2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
2455         * config.gcc (riscv*-*-*): Detect which python is available.
2457 2021-07-21  Jakub Jelinek  <jakub@redhat.com>
2459         PR middle-end/101535
2460         * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
2461         contexts in which decl isn't privatized and for ORT_TARGET return
2462         false if decl is mapped.
2464 2021-07-21  Richard Sandiford  <richard.sandiford@arm.com>
2466         * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
2467         (tree_loop_unroll_and_jam): Run value-numbering on a loop that
2468         has been successfully unrolled.
2470 2021-07-21  Richard Sandiford  <richard.sandiford@arm.com>
2472         * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
2473         exit condition if no tail loop is needed, and if the original exit
2474         condition should therefore be kept as-is.
2475         (tree_transform_and_unroll_loop): Handle that case here too.
2477 2021-07-21  Kewen Lin  <linkw@linux.ibm.com>
2479         * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
2480         by reference.
2481         (free_data_refs): Likewise.
2482         * tree-data-ref.h (free_dependence_relations): Likewise.
2483         (free_data_refs): Likewise.
2484         * tree-predcom.c (struct chain): Use auto_vec instead of vec for
2485         members.
2486         (struct component): Likewise.
2487         (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
2488         (pcom_worker::~pcom_worker): Likewise.
2489         (pcom_worker::release_chain): Adjust as auto_vec changes.
2490         (pcom_worker::loop): Rename to ...
2491         (pcom_worker::m_loop): ... this.
2492         (pcom_worker::datarefs): Rename to ...
2493         (pcom_worker::m_datarefs): ... this.  Use auto_vec instead of vec.
2494         (pcom_worker::dependences): Rename to ...
2495         (pcom_worker::m_dependences): ... this.  Use auto_vec instead of vec.
2496         (pcom_worker::chains): Rename to ...
2497         (pcom_worker::m_chains): ... this.  Use auto_vec instead of vec.
2498         (pcom_worker::looparound_phis): Rename to ...
2499         (pcom_worker::m_looparound_phis): ... this.  Use auto_vec instead of
2500         vec.
2501         (pcom_worker::cache): Rename to ...
2502         (pcom_worker::m_cache): ... this.  Use auto_vec instead of vec.
2503         (pcom_worker::release_chain): Adjust for auto_vec changes.
2504         (pcom_worker::release_chains): Adjust for auto_vec and renaming
2505         changes.
2506         (release_component): Remove.
2507         (release_components): Adjust for release_component removal.
2508         (component_of): Adjust to use vec.
2509         (merge_comps): Likewise.
2510         (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
2511         (pcom_worker::determine_offset): Likewise.
2512         (class comp_ptrs): Remove.
2513         (pcom_worker::split_data_refs_to_components): Adjust for renaming
2514         changes, for comp_ptrs removal with auto_vec.
2515         (pcom_worker::suitable_component_p): Adjust for renaming changes.
2516         (pcom_worker::filter_suitable_components): Adjust for release_component
2517         removal.
2518         (pcom_worker::valid_initializer_p): Adjust for renaming changes.
2519         (pcom_worker::find_looparound_phi): Likewise.
2520         (pcom_worker::add_looparound_copies): Likewise.
2521         (pcom_worker::determine_roots_comp): Likewise.
2522         (pcom_worker::single_nonlooparound_use): Likewise.
2523         (pcom_worker::execute_pred_commoning_chain): Likewise.
2524         (pcom_worker::execute_pred_commoning): Likewise.
2525         (pcom_worker::try_combine_chains): Likewise.
2526         (pcom_worker::prepare_initializers_chain): Likewise.
2527         (pcom_worker::prepare_initializers): Likewise.
2528         (pcom_worker::prepare_finalizers_chain): Likewise.
2529         (pcom_worker::prepare_finalizers): Likewise.
2530         (pcom_worker::tree_predictive_commoning_loop): Likewise.
2532 2021-07-20  Martin Sebor  <msebor@redhat.com>
2534         PR middle-end/101397
2535         * builtins.c (gimple_call_return_array): Add argument.  Correct
2536         offsets for memchr, mempcpy, stpcpy, and stpncpy.
2537         (compute_objsize_r): Adjust offset computation for argument returning
2538         built-ins.
2540 2021-07-20  Martin Sebor  <msebor@redhat.com>
2542         PR middle-end/101300
2543         * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
2545 2021-07-20  Jeff Law  <jlaw@localhost.localdomain>
2547         * function.c (assign_parm_setup_block): Use adjust_address instead
2548         of change_address to preserve MEM_EXPR and friends.
2550 2021-07-20  Martin Sebor  <msebor@redhat.com>
2552         * cfgloop.h (single_likely_exit): Adjust by-value argument to
2553         by-const-reference.
2554         * cfgloopanal.c (single_likely_exit): Same.
2555         * cgraph.h (struct cgraph_node): Same.
2556         * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
2557         * genautomata.c (merge_states): Same.
2558         * genextract.c (VEC_char_to_string): Same.
2559         * genmatch.c (dt_node::gen_kids_1): Same.
2560         (walk_captures): Adjust by-value argument to by-reference.
2561         * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
2562         to by-const-reference.
2563         * gimple.c (gimple_build_call_vec): Same.
2564         (gimple_build_call_internal_vec): Same.
2565         (gimple_build_switch): Same.
2566         (sort_case_labels): Same.
2567         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
2568         by-reference.
2569         * gimple.h (gimple_build_call_vec): Adjust by-value argument to
2570         by-const-reference.
2571         (gimple_build_call_internal_vec): Same.
2572         (gimple_build_switch): Same.
2573         (sort_case_labels): Same.
2574         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
2575         by-reference.
2576         * haifa-sched.c (calc_priorities): Adjust by-value argument to
2577         by-const-reference.
2578         (sched_init_luids): Same.
2579         (haifa_init_h_i_d): Same.
2580         * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
2581         (adjust_callers_for_value_intersection): Adjust by-value argument to
2582         by-reference.
2583         (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
2584         by-const-reference.
2585         (find_more_contexts_for_caller_subset): Same.
2586         (find_aggregate_values_for_callers_subset): Same.
2587         (copy_useful_known_contexts): Same.
2588         * ipa-fnsummary.c (remap_edge_summaries): Same.
2589         (remap_freqcounting_predicate): Same.
2590         * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
2591         by-reference.
2592         * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
2593         to by-const-reference.
2594         * ipa-predicate.h (predicate::remap_after_inlining): Same.
2595         * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
2596         * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
2597         * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
2598         * read-rtl.c (add_overload_instance): Same.
2599         * rtl.h (native_decode_rtx): Same.
2600         (native_decode_vector_rtx): Same.
2601         * sched-int.h (sched_init_luids): Same.
2602         (haifa_init_h_i_d): Same.
2603         * simplify-rtx.c (native_decode_vector_rtx): Same.
2604         (native_decode_rtx): Same.
2605         * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
2606         (shrink_wrap_one_built_in_call_with_conds): Same.
2607         (shrink_wrap_conditional_dead_built_in_calls): Same.
2608         * tree-data-ref.c (create_runtime_alias_checks): Same.
2609         (compute_all_dependences): Same.
2610         * tree-data-ref.h (compute_all_dependences): Same.
2611         (create_runtime_alias_checks): Same.
2612         (index_in_loop_nest): Same.
2613         * tree-if-conv.c (mask_exists): Same.
2614         * tree-loop-distribution.c (class loop_distribution): Same.
2615         (loop_distribution::create_rdg_vertices): Same.
2616         (dump_rdg_partitions): Same.
2617         (debug_rdg_partitions): Same.
2618         (partition_contains_all_rw): Same.
2619         (loop_distribution::distribute_loop): Same.
2620         * tree-parloops.c (oacc_entry_exit_ok_1): Same.
2621         (oacc_entry_exit_single_gang): Same.
2622         * tree-ssa-loop-im.c (hoist_memory_references): Same.
2623         (loop_suitable_for_sm): Same.
2624         * tree-ssa-loop-niter.c (bound_index): Same.
2625         * tree-ssa-reassoc.c (update_ops): Same.
2626         (swap_ops_for_binary_stmt): Same.
2627         (rewrite_expr_tree): Same.
2628         (rewrite_expr_tree_parallel): Same.
2629         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
2630         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
2631         * tree-ssa-structalias.c (process_all_all_constraints): Same.
2632         (make_constraints_to): Same.
2633         (handle_lhs_call): Same.
2634         (find_func_aliases_for_builtin_call): Same.
2635         (sort_fieldstack): Same.
2636         (check_for_overlaps): Same.
2637         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
2638         (vect_create_cond_for_unequal_addrs): Same.
2639         (vect_create_cond_for_lower_bounds): Same.
2640         (vect_create_cond_for_alias_checks): Same.
2641         * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
2642         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
2643         (vect_make_slp_decision): Same.
2644         (vect_slp_bbs): Same.
2645         (duplicate_and_interleave): Same.
2646         (vect_transform_slp_perm_load): Same.
2647         (vect_schedule_slp): Same.
2648         * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
2649         (vect_schedule_slp): Same.
2650         (duplicate_and_interleave): Same.
2651         * tree.c (build_vector_from_ctor): Same.
2652         (build_vector): Same.
2653         (check_vector_cst): Same.
2654         (check_vector_cst_duplicate): Same.
2655         (check_vector_cst_fill): Same.
2656         (check_vector_cst_stepped): Same.
2657         * tree.h (build_vector_from_ctor): Same.
2659 2021-07-20  Jakub Jelinek  <jakub@redhat.com>
2661         PR target/101384
2662         * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
2663         type from bool to int.
2664         * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
2665         EASY_VECTOR_MSB case if either step or copies is not 1.
2666         (vspltis_shifted): Fix comment typo.
2667         (easy_altivec_constant): Change return type from bool to int, instead
2668         of returning true return byte size of the element mode that should be
2669         used to synthetize the constant.
2670         * config/rs6000/predicates.md (easy_vector_constant_msb): Require
2671         that vspltis_shifted is 0, handle the case where easy_altivec_constant
2672         assumes using different vector mode from CONST_VECTOR's mode.
2673         * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
2674         easy_altivec_constant to determine mode in which -1 >> -1 should be
2675         performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
2677 2021-07-20  Richard Biener  <rguenther@suse.de>
2679         PR debug/101473
2680         * dwarf2out.h (dwarf_file_data): Add key member.
2681         * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
2682         (dwarf_file_hasher::hash): Hash key.
2683         (lookup_filename): Remap the filename and store it in the
2684         filename member of dwarf_file_data when creating a new
2685         dwarf_file_data.
2686         (file_name_acquire): Do not remap the filename again.
2687         (maybe_emit_file): Likewise.
2689 2021-07-20  Jonathan Wright  <jonathan.wright@arm.com>
2691         * config/aarch64/aarch64-simd-builtins.def: Use two variant
2692         generators for all TBL/TBX intrinsics and rename to
2693         consistent forms: qtbl[1234] or qtbx[1234].
2694         * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
2695         Rename to...
2696         (aarch64_qtbl1<mode>): This.
2697         (aarch64_tbx1<mode>): Rename to...
2698         (aarch64_qtbx1<mode>): This.
2699         (aarch64_tbl2v16qi): Delete.
2700         (aarch64_tbl3<mode>): Rename to...
2701         (aarch64_qtbl2<mode>): This.
2702         (aarch64_tbx4<mode>): Rename to...
2703         (aarch64_qtbx2<mode>): This.
2704         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
2705         renamed qtbl1 and qtbl2 RTL patterns.
2706         * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
2707         RTL pattern.
2708         (vqtbl1_s8): Likewise.
2709         (vqtbl1_u8): Likewise.
2710         (vqtbl1q_p8): Likewise.
2711         (vqtbl1q_s8): Likewise.
2712         (vqtbl1q_u8): Likewise.
2713         (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
2714         (vqtbx1_u8): Likewise.
2715         (vqtbx1_p8): Likewise.
2716         (vqtbx1q_s8): Likewise.
2717         (vqtbx1q_u8): Likewise.
2718         (vqtbx1q_p8): Likewise.
2719         (vtbl1_s8): Use renamed qtbl1 RTL pattern.
2720         (vtbl1_u8): Likewise.
2721         (vtbl1_p8): Likewise.
2722         (vtbl2_s8): Likewise
2723         (vtbl2_u8): Likewise.
2724         (vtbl2_p8): Likewise.
2725         (vtbl3_s8): Use renamed qtbl2 RTL pattern.
2726         (vtbl3_u8): Likewise.
2727         (vtbl3_p8): Likewise.
2728         (vtbl4_s8): Likewise.
2729         (vtbl4_u8): Likewise.
2730         (vtbl4_p8): Likewise.
2731         (vtbx2_s8): Use renamed qtbx2 RTL pattern.
2732         (vtbx2_u8): Likewise.
2733         (vtbx2_p8): Likewise.
2734         (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
2735         (vqtbl2_u8): Likewise.
2736         (vqtbl2_p8): Likewise.
2737         (vqtbl2q_s8): Likewise.
2738         (vqtbl2q_u8): Likewise.
2739         (vqtbl2q_p8): Likewise.
2740         (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
2741         (vqtbx2_u8): Likewise.
2742         (vqtbx2_p8): Likewise.
2743         (vqtbx2q_s8): Likewise.
2744         (vqtbx2q_u8): Likewise.
2745         (vqtbx2q_p8): Likewise.
2746         (vtbx4_s8): Likewise.
2747         (vtbx4_u8): Likewise.
2748         (vtbx4_p8): Likewise.
2750 2021-07-20  Uroš Bizjak  <ubizjak@gmail.com>
2752         PR target/100182
2753         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
2754         Remove.
2755         (define_peephole2 atomic_loaddi_fpu): Ditto.
2757 2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
2759         * config.gcc (riscv*-*-*): Detect which python is available.
2761 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
2763         * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
2764         (smul<mode>3_highpart): ... this.
2765         (mulhu_<mode>): Rename to...
2766         (umul<mode>3_highpart): ... this.
2767         * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
2768         MULHU_V2DI, MULHU_V4SI): Adjust.
2770 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
2772         PR tree-optimization/100696
2773         * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
2774         * internal-fn.def (IFN_MULH): New internal function.
2775         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
2776         recog normal multiply highpart as IFN_MULH.
2777         * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
2778         function CFN_MULH.
2780 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
2782         * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
2783         (BTF_DEBUGGING_INFO): Likewise.
2784         * doc/tm.texi.in: Document the new macros.
2785         * doc/tm.texi: Regenerated.
2786         * toplev.c: Guard initialization of debug hooks.
2788 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
2790         * flags.h (ctf_debuginfo_p): New function declaration.
2791         * opts.c (ctf_debuginfo_p): New function definition.
2793 2021-07-19  Andrew Stubbs  <ams@codesourcery.com>
2795         PR target/100208
2796         * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
2797         (ASM_SPEC): Set -mattr for xnack and sram-ecc.
2798         * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
2799         * config/gcn/gcn-valu.md: Add a warning comment.
2800         * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
2801         (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
2802         * config/gcn/gcn.md: Add a warning comment.
2803         * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
2804         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
2805         SRAM-ECC flag.
2806         (EF_AMDGPU_XNACK): New.
2807         (EF_AMDGPU_SRAM_ECC): New.
2808         (elf_flags): New.
2809         (copy_early_debug_info): Use elf_flags.
2810         (main): Handle -mxnack and -msram-ecc options.
2811         * doc/invoke.texi: Document -mxnack and -msram-ecc.
2813 2021-07-19  Andrew Pinski  <apinski@marvell.com>
2815         PR target/101205
2816         * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
2817         (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
2819 2021-07-19  Richard Biener  <rguenther@suse.de>
2821         PR tree-optimization/101505
2822         * tree-vect-patterns.c (vect_determine_precisions): Walk
2823         PHIs also for loop vectorization.
2825 2021-07-19  Richard Biener  <rguenther@suse.de>
2827         * gimple.h (gimple_expr_type): Remove.
2828         * doc/gimple.texi: Remove gimple_expr_type documentation.
2830 2021-07-19  Richard Biener  <rguenther@suse.de>
2832         * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
2833         (ao_ref_init_from_vn_reference): Likewise.
2834         (fully_constant_reference): Likewise.
2835         (vn_reference_lookup_call): Do not set vr->type to random
2836         values.
2837         * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
2838         without a value.
2839         * tree-vect-generic.c (expand_vector_piecewise): Pass in
2840         whether we expanded parallel.
2841         (expand_vector_parallel): Adjust.
2842         (expand_vector_addition): Likewise.
2843         (expand_vector_comparison): Likewise.
2844         (expand_vector_operation): Likewise.
2845         (expand_vector_scalar_condition): Likewise.
2846         (expand_vector_conversion): Likewise.
2848 2021-07-19  Richard Biener  <rguenther@suse.de>
2850         * tree-vrp.c (register_edge_assert_for_2): Use the
2851         type from the LHS.
2852         (vrp_folder::fold_predicate_in): Likewise.
2853         * vr-values.c (gimple_assign_nonzero_p): Likewise.
2854         (vr_values::extract_range_from_comparison): Likewise.
2855         (vr_values::extract_range_from_ubsan_builtin): Use the
2856         type of the first operand.
2857         (vr_values::extract_range_basic): Push down type
2858         computation, use the appropriate LHS.
2859         (vr_values::extract_range_from_assignment): Use the
2860         type of the LHS.
2862 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
2864         PR target/101492
2865         * common/config/i386/i386-common.c (ix86_handle_option): For
2866         -mgeneral-regs-only, enable the GPR only instructions which are
2867         enabled implicitly by SSE ISAs unless they have been disabled
2868         explicitly.
2870 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
2872         PR target/101495
2873         * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
2874         ix86_avx_u128_mode_needed.
2875         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
2876         returns AVX register.
2878 2021-07-17  Jan Hubicka  <hubicka@ucw.cz>
2880         * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
2881         (handle_const_call): Liekise
2882         (handle_pure_call): Liekise
2884 2021-07-17  Andrew MacLeod  <amacleod@redhat.com>
2886         PR tree-optimization/96542
2887         * range-op.cc (range_operator::wi_fold_in_parts): New.
2888         (range_operator::fold_range): Call wi_fold_in_parts.
2889         (operator_lshift::wi_fold): Fix broken lshift by [0,0].
2890         * range-op.h (wi_fold_in_parts): Add prototype.
2892 2021-07-16  David Malcolm  <dmalcolm@redhat.com>
2894         * doc/analyzer.texi: Add __analyzer_dump_state.
2896 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
2898         * config/rs6000/rbtree.c: New file.
2899         * config/rs6000/rbtree.h: New file.
2901 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
2903         * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
2904         (typeinfo): Add restr field.
2905         (match_bracketed_pair): New function.
2906         (match_const_restriction): Implement.
2908 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
2910         * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
2912 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
2914         * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
2915         (basetype): Likewise.
2916         (typeinfo): Likewise.
2917         (handle_pointer): New function.
2918         (match_basetype): New stub function.
2919         (match_const_restriction): Likewise.
2920         (match_type): New function.
2922 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
2924         * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
2925         function.
2926         (advance_line): Likewise.
2927         (safe_inc_pos): Likewise.
2928         (match_identifier): Likewise.
2929         (match_integer): Likewise.
2930         (match_to_right_bracket): Likewise.
2932 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
2934         * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
2935         (ovld_file): Likewise.
2936         (header_file): Likewise.
2937         (init_file): Likewise.
2938         (defines_file): Likewise.
2939         (pgm_path): Likewise.
2940         (bif_path): Likewise.
2941         (ovld_path): Likewise.
2942         (header_path): Likewise.
2943         (init_path): Likewise.
2944         (defines_path): Likewise.
2945         (LINELEN): New macro.
2946         (linebuf): New variable.
2947         (line): Likewise.
2948         (pos): Likewise.
2949         (diag): Likewise.
2950         (bif_diag): New function.
2951         (ovld_diag): Likewise.
2953 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
2955         * config/rs6000/rs6000-builtin-new.def: New.
2956         * config/rs6000/rs6000-overload.def: New.
2958 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
2960         * config/rs6000/rs6000-gen-builtins.c: New.
2962 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
2964         * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
2965         (s-gtype): Depend on EXTRA_GTYPE_DEPS.
2966         * gengtype-state.c (state_writer::write_state_file_list): Add a
2967         parameter to the fileslist expression for the number of build
2968         headers to scan.
2969         (read_state_files_list): Detect build headers and strip the
2970         initial "./" or ".\" from their names.
2971         * gengtype.c (build_headers): New global variable.
2972         (num_build_headers): Likewise.
2973         (open_base_files): Emit #include for each build header.
2974         (main): Detect and count build headers.
2975         * gengtype.h (build_headers): New extern variable.
2976         (num_build_headers): Likewise.
2978 2021-07-16  Richard Biener   <rguenther@suse.de>
2980         * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
2981         the type of the LHS.
2982         (find_bswap_or_nop_1): Likewise.
2983         (find_bswap_or_nop): Likewise.
2984         * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
2985         prototype.
2986         * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
2987         Remove unused parameters, pass in the scalar type.  Fix
2988         internal store function handling.
2989         * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
2990         (vect_get_vector_types_for_stmt): Move down check for
2991         existing vector stmt after we've determined a scalar type.
2992         Pass down the used scalar type to vect_get_smallest_scalar_type.
2993         * tree-vect-generic.c (expand_vector_condition): Use
2994         the type of the LHS.
2995         (expand_vector_scalar_condition): Likewise.
2996         (expand_vector_operations_1): Likewise.
2997         * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
2998         (vect_recog_dot_prod_pattern): Likewise.
2999         (vect_recog_sad_pattern): Likewise.
3000         (vect_recog_widen_op_pattern): Likewise.
3001         (vect_recog_widen_sum_pattern): Likewise.
3002         (vect_recog_mixed_size_cond_pattern): Likewise.
3004 2021-07-16  Jan Hubicka  <hubicka@ucw.cz>
3006         * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
3007         (dump_eaf_flags): Dump EAF_NOT_RETURNED
3008         (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
3009         and EAF_NOT_RETURNED.
3010         (modref_summary::useful_p): Likewise.
3011         (modref_summary_lto::useful_p): Likewise.
3012         (struct) modref_summary_lto: Use eaf_fleags_t.
3013         (deref_flags): Handle EAF_NOT_RETURNED.
3014         (struct escape_point): Use min_flags.
3015         (modref_lattice::init): Add EAF_NOT_RETURNED.
3016         (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
3017         (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
3018         handle call flags.
3019         (analyze_parms): Also analyze const functions; update conition on
3020         flags usefulness.
3021         (modref_write): Update streaming.
3022         (read_section): Update streaming.
3023         (remap_arg_flags): Use eaf_flags_t.
3024         (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
3025         * ipa-modref.h: (eaf_flags_t): New typedef.
3026         (struct modref_summary): Use eaf_flags_t.
3027         * tree-core.h (EAF_NOT_RETURNED): New constant.
3029 2021-07-16  Richard Biener  <rguenther@suse.de>
3031         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
3032         the type of the LHS.
3033         (gimple_assign_nonnegative_warnv_p): Likewise.
3034         (gimple_call_nonnegative_warnv_p): Likewise.  Return false
3035         if the call has no LHS.
3036         * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
3037         * tree-eh.c (stmt_could_throw_1_p): Likewise.
3038         * tree-inline.c (insert_init_stmt): Likewise.
3039         * tree-ssa-loop-niter.c (get_val_for): Likewise.
3040         * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
3041         the def.
3042         * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
3043         gassign *.  Use the type of the lhs.
3044         (vn_nary_op_lookup_stmt): Adjust.
3045         (vn_nary_op_insert_stmt): Likewise.
3047 2021-07-16  Ilya Leoshkevich  <iii@linux.ibm.com>
3049         * config/s390/predicates.md (bras_sym_operand): Accept all
3050         functions in 64-bit mode, use UNSPEC_PLT31.
3051         (larl_operand): Use UNSPEC_PLT31.
3052         * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
3053         (legitimize_pic_address): Likewise.
3054         (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
3055         use UNSPEC_PLT31.
3056         (s390_delegitimize_address): Use UNSPEC_PLT31.
3057         (s390_output_addr_const_extra): Likewise.
3058         (print_operand): Add @PLT to TLS calls, handle %K.
3059         (s390_function_profiler): Mark __fentry__/_mcount as function,
3060         use %K, use UNSPEC_PLT31.
3061         (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
3062         (s390_emit_call): Use UNSPEC_PLT31.
3063         (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
3064         * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
3065         (*movdi_64): Use %K.
3066         (reload_base_64): Likewise.
3067         (*sibcall_brc): Likewise.
3068         (*sibcall_brcl): Likewise.
3069         (*sibcall_value_brc): Likewise.
3070         (*sibcall_value_brcl): Likewise.
3071         (*bras): Likewise.
3072         (*brasl): Likewise.
3073         (*bras_r): Likewise.
3074         (*brasl_r): Likewise.
3075         (*bras_tls): Likewise.
3076         (*brasl_tls): Likewise.
3077         (main_base_64): Likewise.
3078         (reload_base_64): Likewise.
3079         (@split_stack_call<mode>): Likewise.
3081 2021-07-16  Richard Biener  <rguenther@suse.de>
3083         PR tree-optimization/101467
3084         * tree-vect-stmts.c (vect_gen_while): Properly guard
3085         make_temp_ssa_name usage.
3087 2021-07-16  Cooper Qu  <cooper.qu@linux.alibaba.com>
3089         * config.gcc: Don't use forked print-sysroot-suffix.sh and
3090         t-sysroot-suffix for C-SKY.
3091         * config/csky/print-sysroot-suffix.sh: Delete.
3092         * config/csky/t-csky-linux: Delete.
3093         * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
3094         instead of CSKY_MULTILIB_DIRNAMES.
3096 2021-07-16  Richard Biener  <rguenther@suse.de>
3098         * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
3099         conversion issues with the partial reduction of the reused
3100         vector accumulator.
3102 2021-07-16  Richard Biener  <rguenther@suse.de>
3104         * config/i386/i386-options.c (ix86_option_override_internal): Set
3105         param_vect_partial_vector_usage to zero if not set.
3107 2021-07-15  Uroš Bizjak  <ubizjak@gmail.com>
3109         PR target/101346
3110         * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
3111         (VALID_INT_MODE_P): Add SDmode and DDmode.
3112         Add TDmode for TARGET_64BIT.
3113         (VALID_DFP_MODE_P): Remove.
3114         * config/i386/i386.c (ix86_hard_regno_mode_ok):
3115         Do not use VALID_DFP_MODE_P.
3117 2021-07-15  Andrew MacLeod  <amacleod@redhat.com>
3119         * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
3120         gimple_range_type.
3121         (fold_using_range::fold_stmt): Ditto.
3122         (fold_using_range::range_of_range_op): Ditto.
3123         (fold_using_range::range_of_phi): Ditto.
3124         (fold_using_range::range_of_call): Ditto.
3125         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
3126         (fold_using_range::range_of_builtin_call): Ditto.
3127         (fold_using_range::range_of_cond_expr): Ditto.
3128         * gimple-range-fold.h (gimple_range_type): New.
3130 2021-07-15  Martin Sebor  <msebor@redhat.com>
3132         PR middle-end/97027
3133         * tree-ssa-strlen.c (handle_assign): New function.
3134         (maybe_warn_overflow): Add argument.
3135         (nonzero_bytes_for_type): New function.
3136         (count_nonzero_bytes): Handle more tree types.  Call
3137         nonzero_bytes_for_tye.
3138         (count_nonzero_bytes): Handle types.
3139         (handle_store): Handle stores from function calls.
3140         (strlen_check_and_optimize_call): Move code to handle_assign.  Call
3141         it for assignments from function calls.
3143 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
3145         PR analyzer/95006
3146         PR analyzer/94713
3147         PR analyzer/94714
3148         * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
3150 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
3152         * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
3154 2021-07-15  Martin Sebor  <msebor@redhat.com>
3156         PR c/101289
3157         PR c/97548
3158         * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
3159         (operand_compare::verify_hash_value): Same.
3160         * tree-core.h (OEP_DECL_NAME): New.
3162 2021-07-15  Martin Jambor  <mjambor@suse.cz>
3164         * profile-count.h (profile_count::value): Change the return type to
3165         uint64_t.
3166         * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
3167         statement.
3168         * tree-cfg.c (dump_function_to_file): Likewise.
3170 2021-07-15  Bill Schmidt  <wschmidt@linux.ibm.com>
3172         PR target/101129
3173         * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
3174         (rs6000_analyze_swaps): Insns containing a subreg of a mult are
3175         not swappable.
3177 2021-07-15  Richard Biener  <rguenther@suse.de>
3179         * tree-vectorizer.h (vect_gen_while): Match up with
3180         vect_gen_while_not.
3181         * tree-vect-stmts.c (vect_gen_while): Adjust API to that
3182         of vect_gen_while_not.
3183         (vect_gen_while_not): Adjust.
3184         * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
3186 2021-07-15  Aldy Hernandez  <aldyh@redhat.com>
3188         * gimple-range-cache.cc (non_null_ref::adjust_range): New.
3189         (ranger_cache::range_of_def): Call adjust_range.
3190         (ranger_cache::entry_range): Same.
3191         * gimple-range-cache.h (non_null_ref::adjust_range): New.
3192         * gimple-range.cc (gimple_ranger::range_of_expr): Call
3193         adjust_range.
3194         (gimple_ranger::range_on_entry): Same.
3196 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
3198         Revert:
3199         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
3201         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
3203 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
3205         Revert:
3206         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
3208         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
3209         (sdot_prod, udot_prod): ...These.
3210         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
3211         (aarch64_<sur>dot<vsi2qi>): Rename to...
3212         (<sur>dot_prod<vsi2qi>): ...This.
3213         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
3214         Update builtins.
3216 2021-07-15  Jakub Jelinek  <jakub@redhat.com>
3218         PR middle-end/101437
3219         * gimplify.c (gimplify_expr): Throw away volatile reads from empty
3220         types even if they have non-BLKmode TYPE_MODE.
3222 2021-07-15  Richard Biener  <rguenther@suse.de>
3224         PR driver/101383
3225         * gcc.c (process_command): Process -gtoggle like process_options
3226         would after parsing options.
3228 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
3230         * cfgexpand.c (expand_asm_loc): Adjust.
3231         (expand_asm_stmt): Likewise.
3232         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
3233         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
3234         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
3235         * config/avr/avr.c (avr_md_asm_adjust): Likewise.
3236         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
3237         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
3238         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
3239         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
3240         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
3241         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
3242         * config/s390/s390.c (s390_md_asm_adjust): Likewise.
3243         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
3244         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
3245         * doc/tm.texi: Regenerate.
3246         * target.def: Add location argument to md_asm_adjust.
3248 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
3250         * tree-diagnostic.c (diagnostic_report_current_function): Use the
3251         diagnostic's location, not input_location.
3253 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
3255         * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
3256         diagnostics.
3257         (expand_asm_stmt): Likewise.
3259 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
3261         * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
3262         addressed memory rtx, if any.
3263         (rs6000_split_multireg_move): Fix code formatting.
3264         Handle MMA build built-ins with operands in adjacent memory locations.
3266 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
3268         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
3269         in the file.
3271 2021-07-14  Jason Merrill  <jason@redhat.com>
3273         * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
3275 2021-07-14  Jason Merrill  <jason@redhat.com>
3277         * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
3278         C++.
3280 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
3282         * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
3283         Remove erroneous line.
3285 2021-07-14  Andrew MacLeod  <amacleod@redhat.com>
3287         * params.opt (param_evrp_mode): Change default.
3289 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
3291         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
3292         (sdot_prod, udot_prod): ...These.
3293         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
3294         (aarch64_<sur>dot<vsi2qi>): Rename to...
3295         (<sur>dot_prod<vsi2qi>): ...This.
3296         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
3297         Update builtins.
3299 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
3301         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
3303 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
3305         * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
3307 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
3309         * config/arm/neon.md (usdot_prod<vsi2qi>): New.
3311 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
3313         * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
3314         (usdot_prod<vsi2qi>): ... This.
3315         * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
3316         (usdot_prod): ...This.
3317         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
3318         * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
3319         Rename to...
3320         (@<sur>dot_prod<vsi2qi>): ...This.
3321         * config/aarch64/aarch64-sve-builtins-base.cc
3322         (svusdot_impl::expand): Use it.
3324 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
3326         * optabs.def (usdot_prod_optab): New.
3327         * doc/md.texi: Document it and clarify other dot prod optabs.
3328         * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
3329         * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
3330         * optabs.c (expand_widen_pattern_expr): Likewise.
3331         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
3332         * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
3333         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
3334         optab subtype.
3335         (vect_widened_op_tree): Optionally ignore
3336         mismatch types.
3337         (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
3339 2021-07-14  H.J. Lu  <hjl.tools@gmail.com>
3341         PR target/101395
3342         * config/i386/driver-i386.c (host_detect_local_cpu): Check
3343         "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
3344         Enable UINTR only for 64-bit codegen.
3345         * config/i386/i386-options.c
3346         (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
3347         in 64-bit mode.
3348         * config/i386/i386.h (ARCH_ARG): New.
3349         (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
3350         "[arch|tune] 64" for 64-bit codegen.
3352 2021-07-14  Richard Biener  <rguenther@suse.de>
3354         PR tree-optimization/101445
3355         * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
3356         of the IV in the correct direction for negative stride
3357         accesses.
3359 2021-07-14  Jakub Jelinek  <jakub@redhat.com>
3361         PR go/101407
3362         * godump.c (godump_str_hash): New type.
3363         (godump_container::pot_dummy_types): Use string_hash instead of
3364         ptr_hash in the hash_set.
3366 2021-07-14  Richard Biener  <rguenther@suse.de>
3368         * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
3369         vector types where the old vector type has a multiple of
3370         the new vector type elements.
3371         (vect_create_partial_epilog): New function, split out from...
3372         (vect_create_epilog_for_reduction): ... here.
3373         (vect_transform_cycle_phi): Reduce the re-used accumulator
3374         to the new vector type.
3376 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
3378         * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
3379         non-'t'-sized arg check.
3381 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
3383         * tree-cfg.c (cleanup_dead_labels_eh): Update
3384         post_landing_pad label upon change of landing pad block's
3385         primary label.
3386         (cleanup_dead_labels): Check that a removed label is not that
3387         of a landing pad.
3389 2021-07-13  Jonathan Wright  <jonathan.wright@arm.com>
3391         * combine.c (combine_simplify_rtx): Add vec_select -> subreg
3392         simplification.
3393         * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
3394         Add Neon to general purpose register case for zero-extend
3395         pattern.
3396         * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
3397         case to prevent some cases opting to go through memory.
3398         * cse.c (fold_rtx): Add vec_select -> subreg simplification.
3399         * rtl.c (rtvec_series_p): Define predicate to determine
3400         whether a vector contains a linear series of integers.
3401         * rtl.h (rtvec_series_p): Define.
3402         * rtlanal.c (vec_series_lowpart_p): Define predicate to
3403         determine if a vector selection is equivalent to the low part
3404         of the vector.
3405         * rtlanal.h (vec_series_lowpart_p): Define.
3406         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
3407         Add vec_select -> subreg simplification.
3409 2021-07-13  Paul A. Clarke  <pc@us.ibm.com>
3411         * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
3412         _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
3413         _mm_test_mix_ones_zeros): New.
3415 2021-07-13  Roger Sayle  <roger@nextmovesoftware.com>
3416             Richard Biener  <rguenther@suse.de>
3418         * gimple.c (gimple_could_trap_p_1):  Make S argument a
3419         "const gimple*".  Preserve constness in call to
3420         gimple_asm_volatile_p.
3421         (gimple_could_trap_p): Make S argument a "const gimple*".
3422         * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
3423         Update function prototypes.
3425 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
3427         * tree-vectorizer.h (vect_reusable_accumulator): New structure.
3428         (_loop_vec_info::main_loop_edge): New field.
3429         (_loop_vec_info::skip_main_loop_edge): Likewise.
3430         (_loop_vec_info::skip_this_loop_edge): Likewise.
3431         (_loop_vec_info::reusable_accumulators): Likewise.
3432         (_stmt_vec_info::reduc_scalar_results): Likewise.
3433         (_stmt_vec_info::reused_accumulator): Likewise.
3434         (vect_get_main_loop_result): Declare.
3435         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3436         reduc_scalar_inputs.
3437         (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
3438         * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
3439         (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
3440         skip_main_loop_edge and skip_this_loop_edge fields.
3441         * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
3442         (vect_emit_reduction_init_stmts): New function.
3443         (get_initial_def_for_reduction): Use it.
3444         (get_initial_defs_for_reduction): Likewise.  Change the vinfo
3445         parameter to a loop_vec_info.
3446         (vect_create_epilog_for_reduction): Store the scalar results
3447         in the reduc_info.  If an epilogue loop is reusing an accumulator
3448         from the main loop, and if the epilogue loop can also be skipped,
3449         try to place the reduction code in the join block.  Record
3450         accumulators that could potentially be reused by epilogue loops.
3451         (vect_transform_cycle_phi): When vectorizing epilogue loops,
3452         try to reuse accumulators from the main loop.  Record the initial
3453         value in reduc_info for non-SLP reductions too.
3455 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
3457         * tree-vect-loop.c (get_initial_def_for_reduction): Remove
3458         adjustment handling.  Take the neutral value as an argument,
3459         in place of the code argument.
3460         (vect_transform_cycle_phi): Update accordingly.  Handle the
3461         initial values of cond reductions separately from code reductions.
3462         Choose the adjustment here rather than in
3463         get_initial_def_for_reduction.  Sink the splat of vec_initial_def.
3465 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
3467         * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
3468         (neutral_op_for_reduction): ...this, providing a more general
3469         interface.
3470         (vect_create_epilog_for_reduction): Update accordingly.
3471         (vectorizable_reduction): Likewise.
3472         (vect_transform_cycle_phi): Likewise.
3474 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
3476         * tree-vect-loop.c (get_initial_def_for_reduction): Take the
3477         reduc_info instead of the original stmt_vec_info.
3478         (vect_transform_cycle_phi): Update accordingly.
3480 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
3482         * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
3483         reduc_info as an additional parameter.
3484         (vect_transform_cycle_phi): Update accordingly.
3486 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
3488         * tree-vectorizer.h: Include tree-ssa-operands.h.
3489         (vect_phi_initial_value): New function.
3490         * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
3491         (get_initial_defs_for_reduction, info_for_reduction): Likewise.
3492         (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
3493         (vect_transform_cycle_phi, vectorizable_induction): Likewise.
3495 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
3497         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
3498         the phi results to vectype after creating them.  Remove later
3499         conversion code that thus becomes redundant.
3501 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
3503         * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
3504         the new_phis vector with a reduc_inputs vector.  Combine handling
3505         of reduction chains and ncopies > 1.
3507 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
3509         * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
3510         scalar_results to group_size elements after reducing down from
3511         N*group_size elements.  Construct an array_slice of the live-out
3512         stmts and assert that there is one stmt per scalar result.
3514 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
3516         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
3517         nested_in_vect_loop and use double_reduc everywhere.  Remove dead
3518         assignment to "loop".
3520 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
3522         * internal-fn.c (vectorized_internal_fn_supported_p): Handle
3523         vector types first.  For scalar types, consider both the preferred
3524         vector mode and the alternative vector modes.
3525         * optabs-query.c (can_vec_mask_load_store_p): Use the same
3526         structure as above, in particular using related_vector_mode
3527         for modes provided by autovectorize_vector_modes.
3529 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
3530             Richard Biener  <rguenther@suse.de>
3532         PR tree-optimization/101419
3533         * tree-pass.h (PROP_objsz): Define.
3534         (make_pass_early_object_sizes): Declare.
3535         * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
3536         there to pass_early_object_sizes, drop parameter.
3537         (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
3538         drop parameter, move pass_post_ipa_warn right after that.
3539         * tree-object-size.c (pass_object_sizes::execute): Rename to...
3540         (object_sizes_execute): ... this.  Add insert_min_max_p argument.
3541         (pass_data_object_sizes): Move after object_sizes_execute.
3542         (pass_object_sizes): Likewise.  In execute method call
3543         object_sizes_execute, drop set_pass_param method and insert_min_max_p
3544         non-static data member and its initializer in the ctor.
3545         (pass_data_early_object_sizes, pass_early_object_sizes,
3546         make_pass_early_object_sizes): New.
3547         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
3548         (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
3550 2021-07-13  Kito Cheng  <kito.cheng@sifive.com>
3552         PR target/101275
3553         * config/riscv/constraints.md ("S"): Update description and remove
3554         @internal.
3555         * doc/md.texi (Machine Constraints): Document the 'S' constraints
3556         for RISC-V.
3558 2021-07-13  Richard Biener  <rguenther@suse.de>
3560         Revert:
3561         2021-07-12  Richard Biener  <rguenther@suse.de>
3563         * tree-vect-slp.c (vect_slp_region): Show the number of
3564         SLP graph entries in the optimization message.
3566 2021-07-13  Michael Meissner  <meissner@linux.ibm.com>
3568         * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
3569         value to to long.
3570         * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
3571         return type to long.
3572         * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
3573         type to long.
3575 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
3577         * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
3578         Query relation between the 2 operands and use it.
3580 2021-07-12  Sergei Trofimovich  <siarheit@google.com>
3582         * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
3584 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
3586         PR target/101424
3587         * config/i386/predicates.md (vec_setm_sse41_operand):
3588         Rename from vec_setm_operand.
3589         (vec_setm_avx2_operand): New predicate.
3590         * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
3591         Use vec_setm_sse41_operand as operand 2 predicate.
3592         (vec_set<V_256_512:mode): New expander.
3593         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
3594         as operand 2 predicate.
3596 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
3598         PR tree-optimization/101335
3599         * range-op.cc (operator_cast::lhs_op1_relation): Delete.
3601 2021-07-12  Andrew Pinski  <apinski@marvell.com>
3603         * tree-ssa-phiopt.c (match_simplify_replacement): Move
3604         insert of the sequence before the movement of the
3605         statement. Check if to see if the statement is used
3606         outside of the original phi to see if we should move it.
3608 2021-07-12  Richard Biener  <rguenther@suse.de>
3610         * dump-context.h (debug_dump_context::debug_dump_context):
3611         Add FILE * parameter defaulted to stderr.
3612         * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
3613         * tree-vect-slp.c (dot_slp_tree): New functions.
3615 2021-07-12  Richard Biener  <rguenther@suse.de>
3617         PR tree-optimization/101373
3618         * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
3619         references when the BB may not return.
3620         (compute_avail): Pass in the function we're working on and
3621         replace cfun references with it.  Externally throwing
3622         const calls also possibly terminate the function.
3623         (pass_pre::execute): Pass down the function we're working on.
3624         * gcse.c (compute_hash_table_work): Externally throwing
3625         const/pure calls also need record_last_mem_set_info.
3626         * postreload-gcse.c (record_opr_changes): Looping or externally
3627         throwing const/pure calls also need record_last_mem_set_info.
3629 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
3631         * recog.c (memory_address_addr_space_p): Change the type to bool.
3632         Return true/false instead of 1/0.
3633         (offsettable_memref_p): Ditto.
3634         (offsettable_nonstrict_memref_p): Ditto.
3635         (offsettable_address_addr_space_p): Ditto.
3636         Change the type of addressp indirect function to bool.
3637         * recog.h (memory_address_addr_space_p): Change the type to bool.
3638         (strict_memory_address_addr_space_p): Ditto.
3639         (offsettable_memref_p): Ditto.
3640         (offsettable_nonstrict_memref_p): Ditto.
3641         (offsettable_address_addr_space_p): Ditto.
3642         * reload.c (maybe_memory_address_addr_space_p): Ditto.
3643         (strict_memory_address_addr_space_p): Change the type to bool.
3644         Return true/false instead of 1/0.
3645         (maybe_memory_address_addr_space_p): Change the type to bool.
3647 2021-07-12  Richard Biener  <rguenther@suse.de>
3649         * tree-vect-slp.c (vect_slp_region): Show the number of
3650         SLP graph entries in the optimization message.
3652 2021-07-12  Richard Biener  <rguenther@suse.de>
3654         PR tree-optimization/101394
3655         * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
3656         copies from abnormals for a full redundancy.
3658 2021-07-12  Richard Biener  <rguenther@suse.de>
3660         PR middle-end/101423
3661         * gimple.c (gimple_could_trap_p_1): Internal function calls
3662         do not trap.
3663         * tree-eh.c (tree_could_trap_p): Likewise.
3665 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
3667         PR target/66791
3668         * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
3669         __a * __b.
3670         (vmulq_n_u32): Likewise.
3671         (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
3672         (vmulq_n_f32): Likewise.
3673         (vmul_n_f16): Likewise.
3674         (vmulq_n_f16): Likewise.
3676 2021-07-12  Martin Liska  <mliska@suse.cz>
3678         PR sanitizer/101425
3679         * gcc.c (check_offload_target_name): Call
3680           candidates_list_and_hint only if we have a candidate.
3682 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
3684         PR target/98435
3685         * config/arm/neon.md (vec_init): Move to ...
3686         * config/arm/vec-common.md (vec_init): ... here.
3687         Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
3689 2021-07-12  Roger Sayle  <roger@nextmovesoftware.com>
3691         PR tree-optimization/101403
3692         * match.pd ((T)bswap(X)>>C): Correctly handle cases where
3693         signedness of the shift is not the same as the signedness of
3694         the type extension.
3696 2021-07-09  Roger Sayle  <roger@nextmovesoftware.com>
3697             Uroš Bizjak  <ubizjak@gmail.com>
3699         * config/i386/i386.md (*divmodsi4_const): Optimize SImode
3700         divmod of a constant numerator with new define_insn_and_split.
3702 2021-07-09  Iain Sandoe  <iain@sandoe.co.uk>
3704         PR target/100152
3705         * config/i386/i386-expand.c (ix86_expand_call): If a call is
3706         to a non-local-binding, or local but to a public symbol, then
3707         assume that it might be indirected via the lazy symbol binder.
3708         Mark R10 and R10 as clobbered in that case.
3710 2021-07-09  Eric Botcazou  <ebotcazou@adacore.com>
3712         PR target/101377
3713         * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
3714         the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
3715         and HAVE_LD_BROKEN_PE_DWARF5 is defined.
3717 2021-07-09  Uroš Bizjak  <ubizjak@gmail.com>
3719         * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
3720         log2 range of operands[3] to [1,31].
3721         (*udivmodsi4_pow2_zext_2): Ditto.  Correct insn RTX pattern.
3723 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
3725         * doc/md.texi: Don't split @smallexample in multiple @groups.
3727 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
3729         * doc/md.texi: Add missing 'see' word.
3731 2021-07-09  Andrew Pinski  <apinski@marvell.com>
3733         * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
3734         to take sequence and gimple_match_op.  Accept the case where
3735         op is a SSA_NAME and one statement in the sequence.
3736         Also allow constants.
3737         (gimple_simplify_phiopt): Always pass a sequence to resimplify.
3738         Update call to phiopt_early_allow.  Discard the sequence if not
3739         used.
3741 2021-07-09  Xi Ruoyao  <xry111@mengyan1223.wang>
3743         PR target/100760
3744         PR target/100761
3745         PR target/100762
3746         * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
3747         instead of ISA_HAS_MSA.
3748         (mips_expand_vec_unpack): Likewise.
3749         (mips_expand_vector_init): Likewise.
3751 2021-07-09  Kewen Lin  <linkw@linux.ibm.com>
3753         * config/rs6000/vsx.md (mods_<mode>): Rename to...
3754         (mod<mode>3): ... this.
3755         (modu_<mode>): Rename to...
3756         (umod<mode>3): ... this.
3757         * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
3758         MODU_V4SI): Adjust.
3760 2021-07-08  Jeff Law  <jeffreyalaw@gmail.com>
3762         * config/h8300/shiftrotate.md (variable shifts): Expose condition
3763         code handling for the test before the loop.
3765 2021-07-08  Martin Jambor  <mjambor@suse.cz>
3767         PR ipa/101066
3768         * ipa-sra.c (class isra_call_summary): New member
3769         m_before_any_store, initialize it in the constructor.
3770         (isra_call_summary::dump): Dump the new field.
3771         (ipa_sra_call_summaries::duplicate): Copy it.
3772         (process_scan_results): Set it.
3773         (isra_write_edge_summary): Stream it.
3774         (isra_read_edge_summary): Likewise.
3775         (param_splitting_across_edge): Only override
3776         safe_to_import_accesses if m_before_any_store is set.
3778 2021-07-08  Martin Sebor  <msebor@redhat.com>
3780         PR bootstrap/101374
3781         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
3782         Use Object Size Type 0 instead of 1.
3784 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
3786         * tree-vect-loop.c (vectorizable_reduction): Remove always-true
3787         if condition.
3789 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
3791         * match.pd: Simplify an extend-operate-truncate sequence involving
3792         a POLY_INT_CST.
3794 2021-07-08  Roger Sayle  <roger@nextmovesoftware.com>
3795             Richard Biener  <rguenther@suse.de>
3797         PR tree-optimization/40210
3798         * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
3799         (x>>C3)&C2 when possible.  Simplify bswap(x)>>C1 as ((T)x)>>C2
3800         when possible.  Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
3802 2021-07-08  Uroš Bizjak  <ubizjak@gmail.com>
3804         PR target/100637
3805         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
3806         Handle V4QI mode.
3807         * config/i386/mmx.md (V_32): New mode iterator.
3808         (mov<V_32:mode>): Use V_32 mode iterator.
3809         (*mov<V_32:mode>_internal): Ditto.
3810         (*push<V_32:mode>2_rex64): Ditto.
3811         (*push<V_32:mode>2): Ditto.
3812         (movmisalign<V_32:mode>): Ditto.
3813         (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
3814         (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
3815         (vec_unpacks_lo_v4qi): New expander.
3816         (vec_unpacks_hi_v4qi): Ditto.
3817         (vec_unpacku_lo_v4qi): Ditto.
3818         (vec_unpacku_hi_v4qi): Ditto.
3819         * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
3820         (VALID_INT_MODE_P): Ditto.
3822 2021-07-08  Michael Meissner  <meissner@linux.ibm.com>
3824         PR target/100809
3825         * config/rs6000/rs6000.md (udivti3): New insn.
3826         (divti3): New insn.
3827         (umodti3): New insn.
3828         (modti3): New insn.
3830 2021-07-07  Martin Sebor  <msebor@redhat.com>
3832         PR tree-optimization/100137
3833         PR tree-optimization/99121
3834         PR tree-optimization/97027
3835         * builtins.c (access_ref::access_ref): Also set offmax.
3836         (access_ref::offset_in_range): Define new function.
3837         (access_ref::add_offset): Set offmax.
3838         (access_ref::inform_access): Handle access_none.
3839         (handle_mem_ref): Clear ostype.
3840         (compute_objsize_r): Handle ASSERT_EXPR.
3841         * builtins.h (struct access_ref): Add offmax member.
3842         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
3843         compute_objsize() and simplify.
3845 2021-07-07  Peter Bergner  <bergner@linux.ibm.com>
3847         * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
3848         and VSX_BUILTIN_STXVP.
3850 2021-07-07  Martin Sebor  <msebor@redhat.com>
3852         PR target/101363
3853         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
3854         a stray %K from error_at() missed in r12-2088.
3856 2021-07-07  Richard Biener  <rguenther@suse.de>
3858         PR tree-optimization/99728
3859         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
3860         aggregate copies.
3861         (mem_refs_may_alias_p): Add assert we handled aggregate
3862         copies elsewhere.
3863         (sm_seq_valid_bb): Give up when running into aggregate copies.
3864         (ref_indep_loop_p): Handle aggregate copies as never
3865         being invariant themselves but allow other refs to be
3866         disambiguated against them.
3867         (can_sm_ref_p): Do not try to apply store-motion to aggregate
3868         copies.
3870 2021-07-06  Indu Bhagat  <indu.bhagat@oracle.com>
3872         PR debug/101283
3873         * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
3874         number of bits.
3876 2021-07-06  Martin Sebor  <msebor@redhat.com>
3878         * gimple-pretty-print.c (percent_G_format): Remove.
3879         * tree-diagnostic.c (default_tree_printer): Remove calls.
3880         * tree-pretty-print.c (percent_K_format): Remove.
3881         * tree-pretty-print.h (percent_K_format): Remove.
3883 2021-07-06  Martin Sebor  <msebor@redhat.com>
3885         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
3886         Remove %K and use error_at.
3887         (aarch64_expand_fcmla_builtin): Same.
3888         (aarch64_expand_builtin_tme): Same.
3889         (aarch64_expand_builtin_memtag): Same.
3890         * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
3891         (arm_expand_builtin): Same.
3892         * config/arm/arm.c (bounds_check): Same.
3894 2021-07-06  Martin Sebor  <msebor@redhat.com>
3896         * builtins.c (warn_string_no_nul): Remove %G.
3897         (maybe_warn_for_bound): Same.
3898         (warn_for_access): Same.
3899         (check_access): Same.
3900         (check_strncat_sizes): Same.
3901         (expand_builtin_strncat): Same.
3902         (expand_builtin_strncmp): Same.
3903         (expand_builtin): Same.
3904         (expand_builtin_object_size): Same.
3905         (warn_dealloc_offset): Same.
3906         (maybe_emit_free_warning): Same.
3907         * calls.c (maybe_warn_alloc_args_overflow): Same.
3908         (maybe_warn_nonstring_arg): Same.
3909         (maybe_warn_rdwr_sizes): Same.
3910         * expr.c (expand_expr_real_1): Remove %K.
3911         * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
3912         (gimple_fold_builtin_strncat): Same.
3913         * gimple-ssa-sprintf.c (format_directive): Same.
3914         (handle_printf_call): Same.
3915         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
3916         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
3917         (maybe_diag_access_bounds): Same.  Call gimple_location.
3918         (check_bounds_or_overlap): Same.
3919         * trans-mem.c (ipa_tm_scan_irr_block): Remove %K.  Simplify.
3920         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
3921         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
3922         (maybe_diag_stxncpy_trunc): Same.
3923         (handle_builtin_stxncpy_strncat): Same.
3924         (maybe_warn_pointless_strcmp): Same.
3925         * tree-ssa-uninit.c (maybe_warn_operand): Same.
3927 2021-07-06  Uroš Bizjak  <ubizjak@gmail.com>
3929         PR target/97194
3930         * config/i386/predicates.md (vec_setm_operand): Enable
3931         register_operand for TARGET_SSE4_1.
3932         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
3933         as operand 2 predicate.  Call ix86_expand_vector_set_var
3934         for non-constant index operand.
3935         (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
3936         Call ix86_expand_vector_set_var for non-constant index operand.
3938 2021-07-06  Jeff Law  <jeffreyalaw@gmail.com>
3940         * config/h8300/jumpcall.md (*branch): When possible, generate
3941         the comparison in CCZN mode.
3942         * config/h8300/predicates.md (simple_memory_operand): Reject all
3943         auto-increment addressing modes.
3945 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
3947         PR bootstrap/100246
3948         * config/i386/i386.h (struct stringop_algs): Define a CTOR for
3949         this type.
3951 2021-07-06  Richard Biener  <rguenther@suse.de>
3953         * doc/md.texi (vec_fmaddsub<mode>4): Document.
3954         (vec_fmsubadd<mode>4): Likewise.
3955         * optabs.def (vec_fmaddsub$a4): Add.
3956         (vec_fmsubadd$a4): Likewise.
3957         * internal-fn.def (IFN_VEC_FMADDSUB): Add.
3958         (IFN_VEC_FMSUBADD): Likewise.
3959         * tree-vect-slp-patterns.c (addsub_pattern::recognize):
3960         Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
3961         (addsub_pattern::build): Likewise.
3962         * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
3963         and CFN_VEC_FMSUBADD are not transparent for permutes.
3964         * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
3965         (vec_fmsubadd<mode>4): Likewise.
3967 2021-07-06  Richard Biener  <rguenther@suse.de>
3969         * doc/invoke.texi (fmove-loop-stores): Document.
3970         * common.opt (fmove-loop-stores): New option.
3971         * opts.c (default_options_table): Enable -fmove-loop-stores
3972         at -O1 but not -Og.
3973         * tree-ssa-loop-im.c (pass_lim::execute): Pass
3974         flag_move_loop_stores instead of true to
3975         loop_invariant_motion_in_fun.
3977 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
3979         * doc/install.texi: Document --with-dsymutil.
3981 2021-07-06  Andrew Pinski  <apinski@marvell.com>
3983         PR tree-optimization/101256
3984         * dbgcnt.def (phiopt_edge_range): New counter.
3985         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
3986         Check to make sure the new name is defined in the same
3987         bb as the conditional before duplicating range info.
3988         Also add debug counter.
3990 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
3992         PR rtl-optimization/100328
3993         * config/i386/i386-options.c (ix86_option_override_internal):
3994         Set param_ira_consider_dup_in_all_alts to 0.
3996 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
3998         PR rtl-optimization/100328
3999         * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
4000         parameter.
4001         * ira.c (ira_get_dup_out_num): Adjust as parameter
4002         param_ira_consider_dup_in_all_alts.
4003         * params.opt (ira-consider-dup-in-all-alts): New.
4004         * ira-conflicts.c (process_regs_for_copy): Add one parameter
4005         single_input_op_has_cstr_p.
4006         (get_freq_for_shuffle_copy): New function.
4007         (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
4008         * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
4010 2021-07-05  Jeff Law  <jeffreyalaw@gmail.com>
4012         * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
4013         generate condition code aware RTL directly.
4015 2021-07-05  Andrew Pinski  <apinski@marvell.com>
4017         PR tree-optimization/101039
4018         * match.pd (A CMP 0 ? A : -A): New patterns.
4019         * tree-ssa-phiopt.c (abs_replacement): Delete function.
4020         (tree_ssa_phiopt_worker): Don't call abs_replacement.
4021         Update comment about abs_replacement.
4023 2021-07-05  Andrew Pinski  <apinski@marvell.com>
4025         * tree-ssa-phiopt.c (gimple_simplify_phiopt):
4026         If "A ? B : C" fails to simplify, try "(!A) ? C : B".
4028 2021-07-05  Andrew Pinski  <apinski@marvell.com>
4030         * tree-ssa-phiopt.c (match_simplify_replacement):
4031         Add early_p argument. Call gimple_simplify_phiopt
4032         instead of gimple_simplify.
4033         (tree_ssa_phiopt_worker): Update call to
4034         match_simplify_replacement and allow unconditionally.
4035         (phiopt_early_allow): New function.
4036         (gimple_simplify_phiopt): New function.
4038 2021-07-05  Andrew Pinski  <apinski@marvell.com>
4040         PR middle-end/101237
4041         * fold-const.c (negate_expr_p): Remove call to element_mode
4042         and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
4043         HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
4044         (fold_negate_expr_1): Likewise.
4045         (const_unop): Likewise.
4046         (fold_cond_expr_with_comparison): Likewise.
4047         (fold_binary_loc): Likewise.
4048         (fold_ternary_loc): Likewise.
4049         (tree_call_nonnegative_warnv_p): Likewise.
4050         * match.pd (-(A + B) -> (-B) - A): Likewise.
4052 2021-07-05  Iain Sandoe  <iain@sandoe.co.uk>
4054         * configure.ac: Handle --with-dsymutil in the same way as we
4055         do for the assembler and linker.  (DEFAULT_DSYMUTIL): New.
4056         Extract the type and version for the dsymutil configured or
4057         found by the default searches.
4058         * config.in: Regenerated.
4059         * configure: Regenerated.
4060         * collect2.c (do_dsymutil): Handle locating dsymutil in the
4061         same way as for the assembler and  linker.
4062         * config/darwin.h (DSYMUTIL): Delete.
4063         * gcc.c: Report a configured dsymutil correctly.
4064         * exec-tool.in: Allow for dsymutil.
4066 2021-07-05  Uroš Bizjak  <ubizjak@gmail.com>
4068         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
4069         Handle V4QI and V2HI modes.
4070         (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
4071         Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
4072         (expand_vec_perm_pshufb): Rewrite to use switch statemets.
4073         Handle 4-byte dual operands with TARGET_XOP and single operands
4074         with TARGET_SSSE3.  Emit mmx_ppermv32 for TARGET_XOP and
4075         mmx_pshufbv4qi3 for TARGET_SSSE3.
4076         (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
4077         (expand_vec_perm_interleave2): Allow 4-byte vector modes.
4078         (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
4079         (expand_vec_perm_even_odd_1): Handle V4QI mode.
4080         (expand_vec_perm_broadcast_1): Handle V4QI mode.
4081         (ix86_vectorize_vec_perm_const): Handle V4QI mode.
4082         * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
4083         (mmx_pshufbv4qi3): Ditto.
4084         (*mmx_pblendw32): Ditto.
4085         (*mmx_pblendw64): Rename from *mmx_pblendw.
4086         (mmx_punpckhbw_low): New insn_and_split pattern.
4087         (mmx_punpcklbw_low): Ditto.
4089 2021-07-05  Richard Biener  <rguenther@suse.de>
4091         * tree-vect-loop-manip.c (vect_loop_versioning): Do not
4092         set LOOP_C_INFINITE on the vectorized loop.
4094 2021-07-05  Richard Biener  <rguenther@suse.de>
4096         PR middle-end/101291
4097         * cfgloopmanip.c (loop_version): Set the loop copy of the
4098         versioned loop to the new loop.
4100 2021-07-04  Iain Sandoe  <iain@sandoe.co.uk>
4102         PR target/100269
4103         * config.gcc: Ensure that Darwin biarch definitions are
4104         added before i386.h.
4105         * config/i386/darwin.h (TARGET_64BIT): Remove.
4106         (PR80556_WORKAROUND): New.
4107         (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
4108         (DARWIN_SUBARCH_SPEC): New.
4109         * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
4110         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
4111         (REAL_LIBGCC_SPEC): Remove.
4112         * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
4113         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
4114         (REAL_LIBGCC_SPEC): Remove.
4116 2021-07-03  H.J. Lu  <hjl.tools@gmail.com>
4118         PR middle-end/101294
4119         * expr.c (store_constructor): Don't use vec_duplicate on vector.
4121 2021-07-02  Martin Sebor  <msebor@redhat.com>
4123         PR middle-end/98871
4124         PR middle-end/98512
4125         * diagnostic.c (get_any_inlining_info): New.
4126         (update_effective_level_from_pragmas): Handle inlining context.
4127         (diagnostic_enabled): Same.
4128         (diagnostic_report_diagnostic): Same.
4129         * diagnostic.h (struct diagnostic_info): Add ctor.
4130         (struct diagnostic_context): Add new member.
4131         * tree-diagnostic.c (set_inlining_locations): New.
4132         (tree_diagnostics_defaults): Set new callback pointer.
4134 2021-07-02  Peter Bergner  <bergner@linux.ibm.com>
4136         * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
4137         New macros.
4138         (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
4139         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
4140         lxvp and stxvp built-ins.
4141         (mma_init_builtins): Handle lxvp and stxvp built-ins.
4142         (builtin_function_type): Likewise.
4143         * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
4145 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
4147         * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
4148         additional argument for the code.
4149         * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
4150         argument for the code.  Just return if the ZN bits are useful or
4151         not rather than the old style CC_* enums.
4152         * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
4153         more generic shiftqi patterns.
4154         (shifthi_noscratch, shiftsi_noscratch): Similarly.
4155         (shiftqi_noscratch_set_flags): New pattern.
4156         (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
4158 2021-07-02  Andrew MacLeod  <amacleod@redhat.com>
4160         PR tree-optimization/101223
4161         * range-op.cc (build_lt): Add -1 for signed values.
4162         (built_gt): Subtract -1 for signed values.
4164 2021-07-02  David Faust  <david.faust@oracle.com>
4166         * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
4167         (btf_asm_type): Likewise.
4169 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
4171         * config/h8300/h8300-protos.h (output_a_shift): Make first argument
4172         an array of rtx rather than a pointer to rtx.  Add code argument.
4173         (compute_a_shift_length): Similarly.
4174         * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
4175         shift itself isn't an operand.  Create dummy operand[0] to carry
4176         a mode and pass a suitable rtx code to compute_a_shift_length.
4177         (get_shift_alg): Adjust operand number of clobber in output templates.
4178         (output_a_shift): Make first argument an array of rtx rather than
4179         a pointer to rtx.  Add code argument for the type of shift.
4180         Adjust now that the shift itself is no longer an operand.
4181         (compute_a_shift_length): Similarly.
4182         * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
4183         iterator rather than nshift_operator.
4184         (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
4185         (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
4186         and compute_a_shift_length.
4187         (shiftqi_noscratch_clobber_flags): Likewise.
4188         (shifthi_noscratch_clobber_flags): Likewise.
4189         (shiftsi_noscratch_clobber_flags): Likewise.
4191 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
4193         PR debug/101283
4194         * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
4195         dsymutil for BTF/CTF.
4197 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
4199         PR debug/101283
4200         * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
4201         segment to include BTF.
4202         (BTF_INFO_SECTION_NAME): New.
4204 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
4206         * config/m32r/m32r-protos.h (call_operand): Adjust return type.
4207         (small_data_operand, memreg_operand, small_insn_p): Likewise.
4208         * config/m32r/m32r.c (call_operand): Adjust return type.
4209         (small_data_operand, memreg_operand): Likewise.
4211 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
4213         * config/frv/frv-protos.h  (integer_register_operand): Adjust return
4214         type.
4215         (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
4216         (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
4217         (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
4218         (move_source_operand, move_destination_operand): Likewise.
4219         (condexec_source_operand, condexec_dest_operand): Likewise.
4220         (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
4221         (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
4222         (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
4223         (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
4224         (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
4225         (even_fpr_operand, odd_fpr_operand): Likewise.
4226         (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
4227         (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
4228         (uint4_operand, uint1_operand, int_2word_operand): Likewise
4229         (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
4230         (relational_operator, float_relational_operator): Likewise.
4231         (ccr_eqne_operator, minmax_operator): Likewise.
4232         (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
4233         (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
4234         (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
4235         (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
4236         (quad_acc_operand, accg_operand): Likewise.
4238 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
4240         * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
4241         return type to a bool.
4242         (nonimmediate_nonstack_operand): Likewise.
4243         (xstormy16_splittable_below100_operand): Likewise.
4244         * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
4245         return type.
4246         (xstormy16_splittable_below100_operand): Likewise.
4248 2021-07-02  Richard Biener  <rguenther@suse.de>
4250         PR tree-optimization/101293
4251         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
4252         with combined offsets.
4253         (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
4254         combined with the rest of the offset.
4256 2021-07-02  Eric Botcazou  <ebotcazou@adacore.com>
4258         * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
4259         PIC encodings for PE-COFF targets.
4261 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
4263         PR target/101286
4264         * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
4265         Return nullptr for TImode inner mode.
4267 2021-07-02  Richard Biener  <rguenther@suse.de>
4269         PR tree-optimization/101280
4270         PR tree-optimization/101173
4271         * gimple-loop-interchange.cc
4272         (tree_loop_interchange::valid_data_dependences): Properly
4273         guard all dependence checks with DDR_REVERSED_P or its
4274         inverse.
4276 2021-07-02  Hongyu Wang  <hongyu.wang@intel.com>
4278         * config/i386/i386-expand.c (ix86_expand_builtin):
4279         Add branch to clear odata when ZF is set for asedecenc_expand
4280         and wideaesdecenc_expand.
4282 2021-07-02  Eugene Rozenfeld  <erozen@microsoft.com>
4284         * config/i386/gcc-auto-profile: regenerate
4286 2021-07-02  liuhongt  <hongtao.liu@intel.com>
4288         * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
4289         (trunc<mode><pmov_dst_4_lower>2): this.
4291 2021-07-01  David Malcolm  <dmalcolm@redhat.com>
4293         * diagnostic.h (diagnostic_context::m_file_cache): New field.
4294         * input.c (class fcache): Rename to...
4295         (class file_cache_slot): ...this, making most members private and
4296         prefixing fields with "m_".
4297         (file_cache_slot::get_file_path): New accessor.
4298         (file_cache_slot::get_use_count): New accessor.
4299         (file_cache_slot::missing_trailing_newline_p): New accessor.
4300         (file_cache_slot::inc_use_count): New.
4301         (fcache_buffer_size): Move to...
4302         (file_cache_slot::buffer_size): ...here.
4303         (fcache_line_record_size): Move to...
4304         (file_cache_slot::line_record_size): ...here.
4305         (fcache_tab): Delete, in favor of global_dc->m_file_cache.
4306         (fcache_tab_size): Move to file_cache::num_file_slots.
4307         (diagnostic_file_cache_init): Update for move of fcache_tab
4308         to global_dc->m_file_cache.
4309         (diagnostic_file_cache_fini): Likewise.
4310         (lookup_file_in_cache_tab): Convert to...
4311         (file_cache::lookup_file): ...this.
4312         (diagnostics_file_cache_forcibly_evict_file): Update for move of
4313         fcache_tab to global_dc->m_file_cache, moving most of
4314         implementation to...
4315         (file_cache::forcibly_evict_file): ...this new function and...
4316         (file_cache_slot::evict): ...this new function.
4317         (evicted_cache_tab_entry): Convert to...
4318         (file_cache::evicted_cache_tab_entry): ...this.
4319         (add_file_to_cache_tab): Convert to...
4320         (file_cache::add_file): ...this, moving bulk of implementation
4321         to...
4322         (file_cache_slot::create): ..this new function.
4323         (file_cache::file_cache): New.
4324         (file_cache::~file_cache): New.
4325         (lookup_or_add_file_to_cache_tab): Convert to...
4326         (file_cache::lookup_or_add_file): ..this new function.
4327         (fcache::fcache): Rename to...
4328         (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
4329         to fields.
4330         (fcache::~fcache): Rename to...
4331         (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
4332         to fields.
4333         (needs_read): Convert to...
4334         (file_cache_slot::needs_read_p): ...this.
4335         (needs_grow): Convert to...
4336         (file_cache_slot::needs_grow_p): ...this.
4337         (maybe_grow): Convert to...
4338         (file_cache_slot::maybe_grow): ...this.
4339         (read_data): Convert to...
4340         (file_cache_slot::read_data): ...this.
4341         (maybe_read_data): Convert to...
4342         (file_cache_slot::maybe_read_data): ...this.
4343         (get_next_line): Convert to...
4344         (file_cache_slot::get_next_line): ...this.
4345         (goto_next_line): Convert to...
4346         (file_cache_slot::goto_next_line): ...this.
4347         (read_line_num): Convert to...
4348         (file_cache_slot::read_line_num): ...this.
4349         (location_get_source_line): Update for moving of globals to
4350         global_dc->m_file_cache.
4351         (location_missing_trailing_newline): Likewise.
4352         * input.h (class file_cache_slot): New forward decl.
4353         (class file_cache): New.
4355 2021-07-01  Michael Meissner  <meissner@linux.ibm.com>
4357         * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
4358         128-bit floating point conditional move support.
4359         (have_compare_and_set_mask): Add IEEE 128-bit floating point
4360         types.
4361         * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
4362         (mov<mode>cc_p10, IEEE128 iterator): New insn.
4363         (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
4364         (fpmask<mode>, IEEE128 iterator): New insn.
4365         (xxsel<mode>, IEEE128 iterator): New insn.
4367 2021-07-01  Iain Sandoe  <iain@sandoe.co.uk>
4369         PR debug/101283
4370         * config/darwin.h (CTF_INFO_SECTION_NAME): New.
4372 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
4374         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
4375         Make it global.
4376         * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
4377         New prototype.
4378         * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
4379         (vec_duplicate<mode>): New expander.
4381 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
4383         PR target/100865
4384         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
4385         New prototype.
4386         (ix86_byte_broadcast): New function.
4387         (ix86_convert_const_wide_int_to_broadcast): Likewise.
4388         (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
4389         size is 16 bytes or bigger.
4390         (ix86_broadcast_from_integer_constant): New function.
4391         (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
4392         to broadcast if mode size is 16 bytes or bigger.
4393         * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
4394         prototype.
4395         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
4397 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
4399         * config/i386/predicates.md (ix86_endbr_immediate_operand):
4400         Return true/false instead of 1/0.
4401         (movq_parallel): Ditto.
4403 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
4405         * recog.c (general_operand): Return true/false instead of 1/0.
4406         (register_operand): Ditto.
4407         (immediate_operand): Ditto.
4408         (const_int_operand): Ditto.
4409         (const_scalar_int_operand): Ditto.
4410         (const_double_operand): Ditto.
4411         (push_operand): Ditto.
4412         (pop_operand): Ditto.
4413         (memory_operand): Ditto.
4414         (indirect_operand): Ditto.
4416 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
4418         * genpreds.c (write_predicate_subfunction):
4419         Change the type of written subfunction to bool.
4420         (write_one_predicate_function):
4421         Change the type of written function to bool.
4422         (write_tm_preds_h): Ditto.
4423         * recog.h (*insn_operand_predicate_fn): Change the type to bool.
4424         * recog.c (general_operand): Change the type to bool.
4425         (address_operand): Ditto.
4426         (register_operand): Ditto.
4427         (pmode_register_operand): Ditto.
4428         (scratch_operand): Ditto.
4429         (immediate_operand): Ditto.
4430         (const_int_operand): Ditto.
4431         (const_scalar_int_operand): Ditto.
4432         (const_double_operand): Ditto.
4433         (nonimmediate_operand): Ditto.
4434         (nonmemory_operand): Ditto.
4435         (push_operand): Ditto.
4436         (pop_operand): Ditto.
4437         (memory_operand): Ditto.
4438         (indirect_operand): Ditto.
4439         (ordered_comparison_operator): Ditto.
4440         (comparison_operator): Ditto.
4441         * config/i386/i386-expand.c (ix86_expand_sse_cmp):
4442         Change the type of indirect predicate function to bool.
4443         * config/rs6000/rs6000.c (easy_vector_constant):
4444         Change the type to bool.
4445         * config/mips/mips-protos.h (m16_based_address_p):
4446         Change the type of operand 3 to bool.
4448 2021-07-01  Richard Biener  <rguenther@suse.de>
4450         PR tree-optimization/101280
4451         PR tree-optimization/101173
4452         * gimple-loop-interchange.cc
4453         (tree_loop_interchange::valid_data_dependences): Revert
4454         previous change and instead correctly handle DDR_REVERSED_P
4455         dependence.
4457 2021-07-01  Richard Biener  <rguenther@suse.de>
4459         PR tree-optimization/101278
4460         * tree-ssa-dse.c (dse_classify_store): First check for
4461         uses, then ignore stmt for chaining purposes.
4463 2021-07-01  Richard Biener  <rguenther@suse.de>
4465         PR tree-optimization/100778
4466         * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
4467         vectorized ops ahead of their scalar BB.
4469 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
4471         PR target/101044
4472         * config/i386/i386.md (*nabs<dwi>2_doubleword):
4473         New insn_and_split pattern.
4474         (*nabs<dwi>2_1): Ditto.
4475         * config/i386/i386-features.c
4476         (general_scalar_chain::compute_convert_gain):
4477         Handle (NEG (ABS (...))) RTX.  Rewrite src code
4478         scanner as switch statement.
4479         (general_scalar_chain::convert_insn):
4480         Handle (NEG (ABS (...))) RTX.
4481         (general_scalar_to_vector_candidate_p):
4482         Detect  (NEG (ABS (...))) RTX.  Reorder case statements
4483         for (AND (NOT (...) ...)) fallthrough.
4485 2021-07-01  Richard Biener  <rguenther@suse.de>
4487         PR tree-optimization/101178
4488         * tree-vect-slp.c (slpg_vertex::materialize): Remove.
4489         (slpg::perm_in): Add.
4490         (slpg::get_perm_in): Remove.
4491         (slpg::get_perm_materialized): Add.
4492         (vect_optimize_slp): Handle VEC_PERM nodes more optimally
4493         during permute propagation and materialization.
4495 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
4497         PR debug/101266
4498         * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
4500 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
4502         PR middle-end/94366
4503         * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
4504         is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
4505         use boolean_type_node instead of integer_type_node as NE_EXPR type.
4506         (lower_reduction_clauses): Likewise.
4508 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4510         * config/gcn/gcn.c: Include dwarf2.h.
4511         (gcn_addr_space_debug): New function.
4512         (TARGET_ADDR_SPACE_DEBUG): New hook.
4514 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4516         * common/config/gcn/gcn-common.c
4517         (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
4518         * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
4519         when emitting CFI.
4520         (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
4521         (gcn_frame_pointer_rqd): New function.
4522         (TARGET_FRAME_POINTER_REQUIRED): New hook.
4524 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4526         * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
4527         prologue register saves.
4528         (gcn_debug_unwind_info): Use UI_DWARF2.
4529         (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
4530         (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
4531         * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
4532         (DWARF_LINK_REGISTER): New define.
4533         (FIRST_PSEUDO_REGISTER): Increment.
4534         (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
4535         (CALL_USED_REGISTERS): Likewise.
4536         (REGISTER_NAMES): Likewise.
4538 2021-06-30  Richard Biener  <rguenther@suse.de>
4540         PR tree-optimization/101267
4541         * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
4542         API and use SLP compatible interface of vect_is_simple_use.
4543         Reject not vectorized SLP defs for callers that do not support
4544         that.
4545         (vect_check_store_rhs): Handle masked stores and pass down
4546         the appropriate operator index.
4547         (vectorizable_call): Adjust.
4548         (vectorizable_store): Likewise.
4549         (vectorizable_load): Likewise.  Handle SLP pecularity of
4550         masked loads.
4551         (vect_is_simple_use): Remove special-casing of masked stores.
4553 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
4555         * common.opt (foffload): Remove help as Driver only.
4556         * gcc.c (display_help): Add -foffload.
4558 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
4560         * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
4561         (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
4562         a candidate list; better inform no offload target is configured
4563         and fix hint extraction when passed target is not '\0' at [len].
4564         * common.opt (foffload): Add tailing '.'.
4565         (foffload-options): Likewise; fix flag name in the help string.
4567 2021-06-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
4569         PR target/66791
4570         * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
4571         (vcage_f32): Gate comparison on __FAST_MATH__.
4572         (vcageq_f32): Likewise.
4573         (vcale_f32): Likewise.
4574         (vcaleq_f32): Likewise.
4575         (vcagt_f32): Likewise.
4576         (vcagtq_f32): Likewise.
4577         (vcalt_f32): Likewise.
4578         (vcaltq_f32): Likewise.
4579         (vcage_f16): Likewise.
4580         (vcageq_f16): Likewise.
4581         (vcale_f16): Likewise.
4582         (vcaleq_f16): Likewise.
4583         (vcagt_f16): Likewise.
4584         (vcagtq_f16): Likewise.
4585         (vcalt_f16): Likewise.
4586         (vcaltq_f16): Likewise.
4588 2021-06-30  Richard Biener  <rguenther@suse.de>
4590         PR tree-optimization/101264
4591         * tree-vect-slp.c (vect_optimize_slp): Propagate the
4592         computed perm_in to all "any" permute successors
4593         we cannot de-duplicate immediately.
4595 2021-06-30  liuhongt  <hongtao.liu@intel.com>
4597         PR target/101248
4598         * config/i386/sse.md
4599         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
4600         Refined to ..
4601         (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
4602         this.
4603         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
4604         * config/i386/subst.md (maskz_scalar): New define_subst.
4605         (maskz_scalar_name): New subst_attr.
4606         (maskz_scalar_op5): Ditto.
4607         (round_saeonly_maskz_scalar_op5): Ditto.
4608         (round_saeonly_maskz_scalar_operand5): Ditto.
4610 2021-06-30  David Edelsohn  <dje.gcc@gmail.com>
4612         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
4613         Increase code CSECT alignment to at least 32 bytes.
4614         * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
4615         alignment designation.
4617 2021-06-29  Sergei Trofimovich  <siarheit@google.com>
4619         * doc/generic.texi: Fix s/net yet/not yet/ typo.
4621 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
4623         PR tree-optimization/101254
4624         * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
4625         wrapping/non-wrapping when setting the result range.
4627 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
4629         * value-query.cc (gimple_range_global): Allow phis.
4631 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
4633         * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
4634         (simplify_using_ranges::op_with_boolean_value_range_p): Add a
4635         statement for location context.
4636         (check_for_binary_op_overflow): Ditto.
4637         (simplify_using_ranges::get_vr_for_comparison): Ditto.
4638         (simplify_using_ranges::compare_name_with_value): Ditto.
4639         (simplify_using_ranges::compare_names): Ditto.
4640         (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
4641         (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
4642         (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
4643         (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
4644         (simplify_using_ranges::two_valued_val_range_p): Ditto.
4645         (simplify_using_ranges::simplify): Ditto.
4646         * vr-values.h: Adjust prototypes.
4648 2021-06-29  Uroš Bizjak  <ubizjak@gmail.com>
4650         PR target/95046
4651         * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
4653 2021-06-29  Julian Brown  <julian@codesourcery.com>
4655         * config/gcn/gcn.c (gcn_init_libfuncs): New function.
4656         (TARGET_INIT_LIBFUNCS): Define target hook using above function.
4657         * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
4658         otherwise.
4659         (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
4660         (MAX_FIXED_MODE_SIZE): Change to 128.
4662 2021-06-29  Julian Brown  <julian@codesourcery.com>
4664         * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
4665         (s_mnemonic): Add clrsb.
4666         (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
4667         (clrsb<mode>2): Add expander for SImode/DImode.
4669 2021-06-29  Julian Brown  <julian@codesourcery.com>
4671         * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
4672         muldi3): Add patterns.
4674 2021-06-29  Julian Brown  <julian@codesourcery.com>
4676         * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
4677         (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
4679 2021-06-29  Julian Brown  <julian@codesourcery.com>
4681         * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
4683 2021-06-29  Joseph Myers  <joseph@codesourcery.com>
4685         * btfout.c, ctfout.c: Include "memmodel.h".
4687 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4689         * gcc.c (check_offload_target_name): Cast len argument to
4690         %q.*s to 'int'; avoid -Wstringop-truncation warning.
4692 2021-06-29  Richard Biener  <rguenther@suse.de>
4694         * tree-vect-slp.c (vect_optimize_slp): Forward propagate
4695         to "any" permute nodes and relax "any" permute proapgation
4696         during iterative backward propagation.
4698 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4700         PR other/67300
4701         * common.opt (-foffload=): Update description.
4702         (-foffload-options=): New.
4703         * doc/invoke.texi (C Language Options): Document
4704         -foffload and -foffload-options.
4705         * gcc.c (check_offload_target_name): New, split off from
4706         handle_foffload_option.
4707         (check_foffload_target_names): New.
4708         (handle_foffload_option): Handle -foffload=default.
4709         (driver_handle_option): Update for -foffload-options.
4710         * lto-opts.c (lto_write_options): Use -foffload-options
4711         instead of -foffload.
4712         * lto-wrapper.c (merge_and_complain, append_offload_options):
4713         Likewise.
4714         * opts.c (common_handle_option): Likewise.
4716 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4718         * doc/invoke.texi (C Language Options): Sort options
4719         alphabetically in optlist and also the description itself.
4720         Remove leftover -fallow-single-precision from and add missing
4721         -fgnu-tm to the optlist.
4723 2021-06-29  Richard Biener  <rguenther@suse.de>
4725         * tree-vect-slp.c (slpg_vertex::visited): Remove.
4726         (vect_slp_perms_eq): Handle -1 permutes.
4727         (vect_optimize_slp): Rewrite permute propagation.
4729 2021-06-29  Jakub Jelinek  <jakub@redhat.com>
4731         PR c++/101210
4732         * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
4733         perform the optimization in GENERIC when sanitizing and x has a
4734         reference type.
4736 2021-06-29  Richard Biener  <rguenther@suse.de>
4738         PR tree-optimization/101242
4739         * tree-vect-slp.c (vect_slp_build_vertices): Force-add
4740         PHIs with not represented initial values as leafs.
4742 2021-06-29  Jan-Benedict Glaw  <jbglaw@getslash.de>
4744         * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
4745         * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
4746         "register" keyword.
4747         (pdp11_initial_elimination_offset) Remove unused variable.
4748         (pdp11_cmp_length) Ditto.
4749         (pdp11_insn_cost): Ditto, and fix signedness warning.
4751 2021-06-29  David Edelsohn  <dje.gcc@gmail.com>
4753         * btfout.c: Include tm_p.h.
4754         * ctfout.c: Same.
4756 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
4758         * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
4759         frame related.
4760         (bpf_expand_epilogue): Likewise.
4761         * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
4762         Do not define DBX_DEBUGGING_INFO.
4764 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
4766         * doc/invoke.texi: Document the CTF and BTF debug info options.
4768 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
4769             David Faust  <david.faust@oracle.com>
4770             Jose E. Marchesi  <jose.marchesi@oracle.com>
4771             Weimin Pan  <weimin.pan@oracle.com>
4773         * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
4774         GTFILES.  Add new object files.
4775         * common.opt: Add CTF and BTF debug info options.
4776         * btfout.c: New file.
4777         * ctfc.c: Likewise.
4778         * ctfc.h: Likewise.
4779         * ctfout.c: Likewise.
4780         * dwarf2ctf.c: Likewise.
4781         * dwarf2ctf.h: Likewise.
4782         * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
4783         BTF_DEBUG.
4784         * dwarf2out.c (dwarf2out_source_line): Likewise.
4785         (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
4786         be generated.
4787         (debug_format_do_cu): New function.
4788         (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
4789         them if requested.
4790         Include dwarf2ctf.c.
4791         * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
4792         formats.
4793         * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
4794         (CTF_DEBUG): New bitmask.
4795         (BTF_DEBUG): Likewise.
4796         (enum ctf_debug_info_levels): New enum.
4797         * gengtype.c (open_base_files): Handle ctfc.h.
4798         (main): Handle uint32_t type.
4799         * flags.h (btf_debuginfo_p): New definition.
4800         (dwarf_based_debuginfo_p): Likewise.
4801         * opts.c (debug_type_names): Add entries for CTF and BTF.
4802         (btf_debuginfo_p): New function.
4803         (dwarf_based_debuginfo_p): Likewise.
4804         (common_handle_option): Handle -gctfN and -gbtf options.
4805         (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
4806         * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
4807         frontend is not C.
4809 2021-06-28  Jose E. Marchesi  <jose.marchesi@oracle.com>
4811         * dwarf2out.c (AT_class): Function is no longer static.
4812         (AT_int): Likewise.
4813         (AT_unsigned): Likewise.
4814         (AT_loc): Likewise.
4815         (get_AT): Likewise.
4816         (get_AT_string): Likewise.
4817         (get_AT_flag): Likewise.
4818         (get_AT_unsigned): Likewise.
4819         (get_AT_ref): Likewise.
4820         (new_die_raw): Likewise.
4821         (lookup_decl_die): Likewise.
4822         (base_type_die): Likewise.
4823         (add_name_attribute): Likewise.
4824         (add_AT_int): Likewise.
4825         (add_AT_unsigned): Likewise.
4826         (add_AT_loc): Likewise.
4827         (dw_get_die_tag): New function.
4828         (dw_get_die_child): Likewise.
4829         (dw_get_die_sib): Likewise.
4830         (struct dwarf_file_data): Move from here to dwarf2out.h
4831         (struct dw_attr_struct): Likewise.
4832         * dwarf2out.h: Analogous changes.
4834 2021-06-28  Martin Jambor  <mjambor@suse.cz>
4836         PR ipa/93385
4837         * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
4838         members m_dead_stmts and m_dead_ssas.
4839         * ipa-param-manipulation.c
4840         (ipa_param_body_adjustments::mark_dead_statements): New function.
4841         (ipa_param_body_adjustments::common_initialization): Call it on
4842         all removed but not split parameters.
4843         (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
4844         new mwmbers.
4845         (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
4846         are dead.
4847         * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
4848         dead debug statements.
4849         (copy_phis_for_bb): Do not copy dead PHI nodes.
4851 2021-06-28  Martin Jambor  <mjambor@suse.cz>
4853         PR ipa/93385
4854         * symtab-clones.h (clone_info): Removed member param_adjustments.
4855         * ipa-param-manipulation.h: Adjust initial comment to reflect how we
4856         deal with pass-through splits now.
4857         (ipa_param_performed_split): Removed.
4858         (ipa_param_adjustments::modify_call): Adjusted parameters.
4859         (class ipa_param_body_adjustments): Adjusted parameters of
4860         register_replacement, modify_gimple_stmt and modify_call_stmt.
4861         (ipa_verify_edge_has_no_modifications): Declare.
4862         (ipa_edge_modifications_finalize): Declare.
4863         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
4864         performed_splits processing, pas only edge to padjs->modify_call,
4865         check that call arguments were not modified if they should not have
4866         been.
4867         * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
4868         splits.
4869         * ipa-param-manipulation.c (struct pass_through_split_map): New type.
4870         (ipa_edge_modification_info): Likewise.
4871         (ipa_edge_modification_sum): Likewise.
4872         (ipa_edge_modifications): New edge summary.
4873         (ipa_verify_edge_has_no_modifications): New function.
4874         (transitive_split_p): Removed.
4875         (transitive_split_map): Likewise.
4876         (init_transitive_splits): Likewise.
4877         (ipa_param_adjustments::modify_call): Adjusted to use the new edge
4878         summary instead of performed_splits.
4879         (ipa_param_body_adjustments::register_replacement): Drop dummy
4880         parameter, set base_index of the created ipa_param_body_replacement.
4881         (phi_arg_will_live_p): New function.
4882         (ipa_param_body_adjustments::common_initialization): Do not create
4883         IPA_SRA dummy decls.
4884         (simple_tree_swap_info): Removed.
4885         (remap_split_decl_to_dummy): Likewise.
4886         (record_argument_state_1): New function.
4887         (record_argument_state): Likewise.
4888         (ipa_param_body_adjustments::modify_call_stmt): New parameter
4889         orig_stmt.  Do not work with dummy decls, save necessary info about
4890         changes to ipa_edge_modifications.
4891         (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
4892         orig_stmt, pass it to modify_call_stmt.
4893         (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
4894         modify_gimple_stmt.
4895         (ipa_edge_modifications_finalize): New function.
4896         * tree-inline.c (remap_gimple_stmt): Pass original statement to
4897         modify_gimple_stmt.
4898         (copy_phis_for_bb): Do not copy dead PHI nodes.
4899         (expand_call_inline): Do not remap performed_splits.
4900         (update_clone_info): Likewise.
4901         * toplev.c: Include ipa-param-manipulation.h.
4902         (toplev::finalize): Call ipa_edge_modifications_finalize.
4904 2021-06-28  Andrew Pinski  <apinski@marvell.com>
4906         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
4907         info if we're the only things setting the target PHI.
4908         (value_replacement): Don't duplicate range here.
4909         (minmax_replacement): Likewise.
4911 2021-06-28  Richard Biener  <rguenther@suse.de>
4913         PR tree-optimization/101229
4914         * gimple-walk.c (gimple_walk_op): Handle PHIs.
4916 2021-06-28  Martin Liska  <mliska@suse.cz>
4918         * config/v850/v850.c (construct_dispose_instruction): Allocate
4919         a bigger buffer.
4920         (construct_prepare_instruction): Likewise.
4922 2021-06-28  Martin Liska  <mliska@suse.cz>
4924         * config/v850/v850.c (v850_option_override): Build default
4925         target node.
4926         (v850_can_inline_p): New.  Allow MASK_PROLOG_FUNCTION to be
4927         ignored for inlining.
4928         (TARGET_CAN_INLINE_P): New.
4930 2021-06-28  Richard Biener  <rguenther@suse.de>
4932         PR tree-optimization/101207
4933         * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
4934         permute eliding for load permutations properly.
4936 2021-06-28  Richard Biener  <rguenther@suse.de>
4938         PR tree-optimization/101173
4939         * gimple-loop-interchange.cc
4940         (tree_loop_interchange::valid_data_dependences): Disallow outer
4941         loop dependence distance of zero.
4943 2021-06-28  liuhongt  <hongtao.liu@intel.com>
4945         PR target/100648
4946         * config/i386/sse.md (*avx_cmp<mode>3_lt): New
4947         define_insn_and_split.
4948         (*avx_cmp<mode>3_ltint): Ditto.
4949         (*avx2_pcmp<mode>3_3): Ditto.
4950         (*avx2_pcmp<mode>3_4): Ditto.
4951         (*avx2_pcmp<mode>3_5): Ditto.
4953 2021-06-28  liuhongt  <hongtao.liu@intel.com>
4955         * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
4956         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
4957         IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
4958         IX86_BUILTIN_PBLENDVB128): Replace icode with
4959         CODE_FOR_nothing.
4960         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
4961         builtins.
4962         * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
4963         New pre_reload splitter.
4965 2021-06-27  Andrew Pinski  <apinski@marvell.com>
4967         PR middle-end/101230
4968         * fold-const.c (fold_ternary_loc): Check
4969         the return value of invert_tree_comparison.
4971 2021-06-27  David Edelsohn  <dje.gcc@gmail.com>
4973         * config.gcc: Add SPDX License Identifier.
4974         (powerpc-ibm-aix789): Default to aix73.h.
4975         (powerpc-ibm-aix7.2.*.*): New stanza.
4976         * config/rs6000/aix72.h: Add SPDX License Identifier.
4977         * config/rs6000/aix73.h: New file.
4979 2021-06-26  Jason Merrill  <jason@redhat.com>
4981         * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
4983 2021-06-26  Andrew Pinski  <apinski@marvell.com>
4985         * genmatch.c (lower_cond): Copy for_subst_vec
4986         for the simplify also.
4987         (lower): Swap the order for lower_for and lower_cond.
4989 2021-06-26  Andrew Pinski  <apinski@marvell.com>
4991         * tree-ssa-phiopt.c (match_simplify_replacement): Reset
4992         flow senatitive info on the moved ssa set.
4994 2021-06-26  Andrew Pinski  <apinski@marvell.com>
4996         * fold-const.c (fold_cond_expr_with_comparison):
4997         Exand arg0 into comp_code, arg00, and arg01.
4998         (fold_ternary_loc): Use invert_tree_comparison
4999         instead of fold_invert_truthvalue for the case
5000         where we have A CMP B ? C : A.
5002 2021-06-25  Martin Sebor  <msebor@redhat.com>
5004         PR middle-end/101216
5005         * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
5007 2021-06-25  Jeff Law  <jeffreyalaw@gmail.com>
5009         * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
5011 2021-06-25  Richard Biener  <rguenther@suse.de>
5013         PR tree-optimization/101202
5014         * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
5015         failed nodes.
5017 2021-06-25  Richard Biener  <rguenther@suse.de>
5019         * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
5020         STMT_VINFO_REDUC_DEF from the original representative.
5022 2021-06-25  Martin Sebor  <msebor@redhat.com>
5024         * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
5025         gimple_no_warning_p and gimple_set_no_warning with
5026         warning_suppressed_p, and suppress_warning.
5027         (c_strlen): Same.
5028         (maybe_warn_for_bound): Same.
5029         (warn_for_access): Same.
5030         (check_access): Same.
5031         (expand_builtin_strncmp): Same.
5032         (fold_builtin_varargs): Same.
5033         * calls.c (maybe_warn_nonstring_arg): Same.
5034         (maybe_warn_rdwr_sizes): Same.
5035         * cfgexpand.c (expand_call_stmt): Same.
5036         * cgraphunit.c (check_global_declaration): Same.
5037         * fold-const.c (fold_undefer_overflow_warnings): Same.
5038         (fold_truth_not_expr): Same.
5039         (fold_unary_loc): Same.
5040         (fold_checksum_tree): Same.
5041         * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
5042         (array_bounds_checker::check_mem_ref): Same.
5043         (array_bounds_checker::check_addr_expr): Same.
5044         (array_bounds_checker::check_array_bounds): Same.
5045         * gimple-expr.c (copy_var_decl): Same.
5046         * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
5047         (gimple_fold_builtin_strncat): Same.
5048         (gimple_fold_builtin_stxcpy_chk): Same.
5049         (gimple_fold_builtin_stpcpy): Same.
5050         (gimple_fold_builtin_sprintf): Same.
5051         (fold_stmt_1): Same.
5052         * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
5053         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
5054         * gimple-ssa-sprintf.c (handle_printf_call): Same.
5055         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
5056         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
5057         * gimple-ssa-warn-restrict.h: Adjust declarations.
5058         (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
5059         gimple_no_warning_p and gimple_set_no_warning with
5060         warning_suppressed_p, and suppress_warning.
5061         (check_call): Same.
5062         (check_bounds_or_overlap): Same.
5063         * gimple.c (gimple_build_call_from_tree): Same.
5064         * gimplify.c (gimplify_return_expr): Same.
5065         (gimplify_cond_expr): Same.
5066         (gimplify_modify_expr_complex_part): Same.
5067         (gimplify_modify_expr): Same.
5068         (gimple_push_cleanup): Same.
5069         (gimplify_expr): Same.
5070         * omp-expand.c (expand_omp_for_generic): Same.
5071         (expand_omp_taskloop_for_outer): Same.
5072         * omp-low.c (lower_rec_input_clauses): Same.
5073         (lower_lastprivate_clauses): Same.
5074         (lower_send_clauses): Same.
5075         (lower_omp_target): Same.
5076         * tree-cfg.c (pass_warn_function_return::execute): Same.
5077         * tree-complex.c (create_one_component_var): Same.
5078         * tree-inline.c (remap_gimple_op_r): Same.
5079         (copy_tree_body_r): Same.
5080         (declare_return_variable): Same.
5081         (expand_call_inline): Same.
5082         * tree-nested.c (lookup_field_for_decl): Same.
5083         * tree-sra.c (create_access_replacement): Same.
5084         (generate_subtree_copies): Same.
5085         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
5086         * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
5087         * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
5088         * tree-ssa-loop-im.c (execute_sm): Same.
5089         * tree-ssa-phiopt.c (cond_store_replacement): Same.
5090         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
5091         (handle_builtin_strcpy): Same.
5092         (maybe_diag_stxncpy_trunc): Same.
5093         (handle_builtin_stxncpy_strncat): Same.
5094         (handle_builtin_strcat): Same.
5095         * tree-ssa-uninit.c (get_no_uninit_warning): Same.
5096         (set_no_uninit_warning): Same.
5097         (uninit_undefined_value_p): Same.
5098         (warn_uninit): Same.
5099         (maybe_warn_operand): Same.
5100         * tree-vrp.c (compare_values_warnv): Same.
5101         * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
5102         (test_for_singularity): Same.
5103         * gimple.h (warning_suppressed_p): New function.
5104         (suppress_warning): Same.
5105         (copy_no_warning): Same.
5106         (gimple_set_block): Call gimple_set_location.
5107         (gimple_set_location): Call copy_warning.
5109 2021-06-25  Martin Sebor  <msebor@redhat.com>
5111         * tree.h (warning_suppressed_at, copy_warning,
5112         warning_suppressed_p, suppress_warning): New functions.
5114 2021-06-25  Martin Sebor  <msebor@redhat.com>
5116         * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
5117         * gengtype.c (open_base_files): Add diagnostic-spec.h.
5118         * diagnostic-spec.c: New file.
5119         * diagnostic-spec.h: New file.
5120         * tree.h (no_warning, all_warnings, suppress_warning_at): New
5121         declarations.
5122         * warning-control.cc: New file.
5124 2021-06-25  liuhongt  <hongtao.liu@intel.com>
5126         PR target/101185
5127         * config/i386/i386.c (x86_order_regs_for_local_alloc):
5128         Revert r12-1669.
5130 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
5132         PR tree-optimization/101189
5133         * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
5134         LHS range of condition to postfold routine.
5135         (fold_using_range::postfold_gcond_edges): Only process the TRUE or
5136         FALSE edge if the LHS range supports it being taken.
5137         * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
5139 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
5141         * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
5142         (relation_oracle::find_relation_block): Check correct bitmap.
5143         (relation_oracle::dump): Do not dump NULL blocks.
5145 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
5147         * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
5148         range_on_edge instead of manually calculating.
5150 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
5152         * range-op.cc: Fix comment.
5154 2021-06-24  Uroš Bizjak  <ubizjak@gmail.com>
5156         PR target/89021
5157         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
5158         Handle V8QI and V4HI modes.
5159         * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
5160         New insn pattern.
5161         (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
5162         (mmxpackmode): New mode attribute.
5163         (vec_pack_trunc_<mmxpackmode:mode>): New expander.
5164         (mmxunpackmode): New mode attribute.
5165         (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
5166         (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
5167         (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
5168         (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
5169         * config/i386/i386.md (extsuffix): Move from ...
5170         * config/i386/sse.md: ... here.
5172 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
5174         * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
5175         (dwarf2out_finish): ...instead of here.
5177 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
5179         * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
5180         (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
5181         (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
5182         * configure: Regenerate.
5184 2021-06-24  Richard Biener  <rguenther@suse.de>
5186         * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
5187         vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
5188         (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
5190 2021-06-24  Richard Biener  <rguenther@suse.de>
5192         * config/i386/sse.md (avx_addsubv4df3): Rename to
5193         vec_addsubv4df3.
5194         (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
5195         (sse3_addsubv2df3): Rename to vec_addsubv2df3.
5196         (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
5197         * config/i386/i386-builtin.def: Adjust.
5198         * internal-fn.def (VEC_ADDSUB): New internal optab fn.
5199         * optabs.def (vec_addsub_optab): New optab.
5200         * tree-vect-slp-patterns.c (class addsub_pattern): New.
5201         (slp_patterns): Add addsub_pattern.
5202         * tree-vect-slp.c (vect_optimize_slp): Disable propagation
5203         across CFN_VEC_ADDSUB.
5204         * tree-vectorizer.h (vect_pattern::vect_pattern): Make
5205         m_ops optional.
5206         * doc/md.texi (vec_addsub<mode>3): Document.
5208 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
5210         PR middle-end/101170
5211         * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
5212         where regno + subreg_regno_offset wraps around use 0 as starting
5213         regno.
5215 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
5217         PR middle-end/101172
5218         * stor-layout.c (finish_bitfield_representative): If nextf has
5219         error_mark_node type, set repr type to error_mark_node too.
5221 2021-06-24  Ilya Leoshkevich  <iii@linux.ibm.com>
5223         * config/s390/s390.c (s390_function_profiler): Ignore labelno
5224         parameter.
5225         * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
5227 2021-06-24  Richard Biener  <rguenther@suse.de>
5229         * tree-vect-slp.c (vect_optimize_slp): Do not propagate
5230         across operations that have different semantics on different
5231         lanes.
5233 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
5235         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
5236         * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
5237         with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
5238         of non-decl OMP_CLAUSE_DECL.  For OMP_CLAUSE_IN_REDUCTION on
5239         OMP_TARGET user outer_ctx instead of ctx for placeholders and
5240         initializer/combiner gimplification.
5241         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
5242         on target constructs.
5243         (lower_rec_input_clauses): Likewise.
5244         (lower_omp_target): Likewise.
5245         * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
5246         on target if in_reduction is present.
5248 2021-06-24  Kewen Lin  <linkw@linux.ibm.com>
5250         * tree-predcom.c (class pcom_worker): New class.
5251         (release_chain): Renamed to...
5252         (pcom_worker::release_chain): ...this.
5253         (release_chains): Renamed to...
5254         (pcom_worker::release_chains): ...this.
5255         (aff_combination_dr_offset): Renamed to...
5256         (pcom_worker::aff_combination_dr_offset): ...this.
5257         (determine_offset): Renamed to...
5258         (pcom_worker::determine_offset): ...this.
5259         (class comp_ptrs): New class.
5260         (split_data_refs_to_components): Renamed to...
5261         (pcom_worker::split_data_refs_to_components): ...this,
5262         and update with class comp_ptrs.
5263         (suitable_component_p): Renamed to...
5264         (pcom_worker::suitable_component_p): ...this.
5265         (filter_suitable_components): Renamed to...
5266         (pcom_worker::filter_suitable_components): ...this.
5267         (valid_initializer_p): Renamed to...
5268         (pcom_worker::valid_initializer_p): ...this.
5269         (find_looparound_phi): Renamed to...
5270         (pcom_worker::find_looparound_phi): ...this.
5271         (add_looparound_copies): Renamed to...
5272         (pcom_worker::add_looparound_copies): ...this.
5273         (determine_roots_comp): Renamed to...
5274         (pcom_worker::determine_roots_comp): ...this.
5275         (determine_roots): Renamed to...
5276         (pcom_worker::determine_roots): ...this.
5277         (single_nonlooparound_use): Renamed to...
5278         (pcom_worker::single_nonlooparound_use): ...this.
5279         (remove_stmt): Renamed to...
5280         (pcom_worker::remove_stmt): ...this.
5281         (execute_pred_commoning_chain): Renamed to...
5282         (pcom_worker::execute_pred_commoning_chain): ...this.
5283         (execute_pred_commoning): Renamed to...
5284         (pcom_worker::execute_pred_commoning): ...this.
5285         (struct epcc_data): New member worker.
5286         (execute_pred_commoning_cbck): Call execute_pred_commoning
5287         with pcom_worker pointer.
5288         (find_use_stmt): Renamed to...
5289         (pcom_worker::find_use_stmt): ...this.
5290         (find_associative_operation_root): Renamed to...
5291         (pcom_worker::find_associative_operation_root): ...this.
5292         (find_common_use_stmt): Renamed to...
5293         (pcom_worker::find_common_use_stmt): ...this.
5294         (combinable_refs_p): Renamed to...
5295         (pcom_worker::combinable_refs_p): ...this.
5296         (reassociate_to_the_same_stmt): Renamed to...
5297         (pcom_worker::reassociate_to_the_same_stmt): ...this.
5298         (stmt_combining_refs): Renamed to...
5299         (pcom_worker::stmt_combining_refs): ...this.
5300         (combine_chains): Renamed to...
5301         (pcom_worker::combine_chains): ...this.
5302         (try_combine_chains): Renamed to...
5303         (pcom_worker::try_combine_chains): ...this.
5304         (prepare_initializers_chain): Renamed to...
5305         (pcom_worker::prepare_initializers_chain): ...this.
5306         (prepare_initializers): Renamed to...
5307         (pcom_worker::prepare_initializers): ...this.
5308         (prepare_finalizers_chain): Renamed to...
5309         (pcom_worker::prepare_finalizers_chain): ...this.
5310         (prepare_finalizers): Renamed to...
5311         (pcom_worker::prepare_finalizers): ...this.
5312         (tree_predictive_commoning_loop): Renamed to...
5313         (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
5314         some calls and remove some cleanup code.
5315         (tree_predictive_commoning): Adjusted to use pcom_worker instance.
5316         (static variable looparound_phis): Remove.
5317         (static variable name_expansions): Remove.
5319 2021-06-24  Richard Biener  <rguenther@suse.de>
5321         * tree-vect-slp.c (slpg_vertex): New struct.
5322         (vect_slp_build_vertices): Adjust.
5323         (vect_optimize_slp): Likewise.  Maintain an outgoing permute
5324         and a materialized one.
5326 2021-06-24  Richard Biener  <rguenther@suse.de>
5328         PR tree-optimization/101105
5329         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5330         Only ignore steps when they are equal or scalar order is preserved.
5332 2021-06-24  liuhongt  <hongtao.liu@intel.com>
5334         PR target/98434
5335         * config/i386/i386-expand.c (ix86_expand_vec_interleave):
5336         Adjust comments for ix86_expand_vecop_qihi2.
5337         (ix86_expand_vecmul_qihi): Renamed to ..
5338         (ix86_expand_vecop_qihi2): Adjust function prototype to
5339         support shift operation, add static to definition.
5340         (ix86_expand_vec_shift_qihi_constant): Add static to definition.
5341         (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
5342         ix86_expand_vec_shift_qihi_constant.
5343         * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
5344         (ix86_expand_vec_shift_qihi_constant): Deleted.
5345         * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
5346         iterator.
5347         (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
5348         condition TARGET_64BIT.
5349         (mul<mode>3): Ditto.
5350         (<insn><mode>3): Ditto.
5351         (vlshr<mode>3): Extend to support avx512 vlshr.
5352         (v<insn><mode>3): New expander for
5353         vashr/vlshr/vashl.
5354         (v<insn>v8qi3): Ditto.
5355         (vashrv8hi3<mask_name>): Renamed to ..
5356         (vashr<mode>3): And extend to support V16QImode for avx512.
5357         (vashrv16qi3): Deleted.
5358         (vashrv2di3<mask_name>): Extend expander to support avx512
5359         instruction.
5361 2021-06-23  Dimitar Dimitrov  <dimitar@dinux.eu>
5363         * doc/lto.texi (Design Overview): Update that slim objects are
5364         the default.
5366 2021-06-23  Aaron Sawdey  <acsawdey@linux.ibm.com>
5368         * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
5369         of OTHER_POWER10_MASKS so it will not be enabled by default.
5371 2021-06-23  Richard Biener  <rguenther@suse.de>
5372             Martin Jambor  <mjambor@suse.cz>
5374         * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
5375         param replacement unconditionally.  Adjust comment.
5377 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
5379         * Makefile.in (OBJS): Add gimple-range-fold.o
5380         * gimple-range-fold.cc: New.
5381         * gimple-range-fold.h: New.
5382         * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
5383         (gimple_range_calc_op2): Ditto.
5384         * gimple-range-gori.h: Move prototypes to here.
5385         * gimple-range.cc: Adjust include files.
5386         (fur_source:fur_source): Relocate to gimple-range-fold.cc.
5387         (fur_source::get_operand): Ditto.
5388         (fur_source::get_phi_operand): Ditto.
5389         (fur_source::query_relation): Ditto.
5390         (fur_source::register_relation): Ditto.
5391         (class fur_edge): Ditto.
5392         (fur_edge::fur_edge): Ditto.
5393         (fur_edge::get_operand): Ditto.
5394         (fur_edge::get_phi_operand): Ditto.
5395         (fur_stmt::fur_stmt): Ditto.
5396         (fur_stmt::get_operand): Ditto.
5397         (fur_stmt::get_phi_operand): Ditto.
5398         (fur_stmt::query_relation): Ditto.
5399         (class fur_depend): Relocate to gimple-range-fold.h.
5400         (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
5401         (fur_depend::register_relation): Ditto.
5402         (fur_depend::register_relation): Ditto.
5403         (class fur_list): Ditto.
5404         (fur_list::fur_list): Ditto.
5405         (fur_list::get_operand): Ditto.
5406         (fur_list::get_phi_operand): Ditto.
5407         (fold_range): Ditto.
5408         (adjust_pointer_diff_expr): Ditto.
5409         (gimple_range_adjustment): Ditto.
5410         (gimple_range_base_of_assignment): Ditto.
5411         (gimple_range_operand1): Ditto.
5412         (gimple_range_operand2): Ditto.
5413         (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
5414         (gimple_range_calc_op2): Ditto.
5415         (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
5416         (fold_using_range::range_of_range_op): Ditto.
5417         (fold_using_range::range_of_address): Ditto.
5418         (fold_using_range::range_of_phi): Ditto.
5419         (fold_using_range::range_of_call): Ditto.
5420         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
5421         (fold_using_range::range_of_builtin_call): Ditto.
5422         (fold_using_range::range_of_cond_expr): Ditto.
5423         (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
5424         (fold_using_range::relation_fold_and_or): Ditto.
5425         (fold_using_range::postfold_gcond_edges): Ditto.
5426         * gimple-range.h: Add gimple-range-fold.h to include files. Change
5427         GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
5428         (gimple_range_handler): Relocate to gimple-range-fold.h.
5429         (gimple_range_ssa_p): Ditto.
5430         (range_compatible_p): Ditto.
5431         (class fur_source): Ditto.
5432         (class fur_stmt): Ditto.
5433         (class fold_using_range): Ditto.
5434         (gimple_range_calc_op1): Relocate to gimple-range-gori.h
5435         (gimple_range_calc_op2): Ditto.
5437 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
5439         PR tree-optimization/101148
5440         PR tree-optimization/101014
5441         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
5442         (ranger_cache::~ranger_cache): Adjust.
5443         (ranger_cache::block_range): Check if propagation disallowed.
5444         (ranger_cache::propagate_cache): Disallow propagation if new value
5445         can't be stored properly.
5446         * gimple-range-cache.h (ranger_cache::m_propfail): New member.
5448 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
5450         * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
5451         (sbr_vector::set_bb_range): Return true.
5452         (class sbr_sparse_bitmap): Adjust.
5453         (sbr_sparse_bitmap::set_bb_range): Return value.
5454         (block_range_cache::set_bb_range): Return value.
5455         (ranger_cache::propagate_cache): Use return value to print msg.
5456         * gimple-range-cache.h (class block_range_cache): Adjust.
5458 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
5460         * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
5462 2021-06-23  Jeff Law  <jeffreyalaw@gmail.com>
5464         * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
5465         so this pattern can be used for test/compare removal.  Pass
5466         current insn to compute_logical_op_length and output_logical_op.
5467         * config/h8300/h8300.c (compute_logical_op_cc): Remove.
5468         (h8300_and_costs): Add argument to compute_logical_op_length.
5469         (output_logical_op): Add new argument.  Use it to determine if the
5470         condition codes are used and adjust the output accordingly.
5471         (compute_logical_op_length): Add new argument and update length
5472         computations when condition codes are used.
5473         * config/h8300/h8300-protos.h (compute_logical_op_length): Update
5474         prototype.
5475         (output_logical_op): Likewise.
5477 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
5479         PR target/89021
5480         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
5481         Handle 64bit modes for TARGET_XOP.  Use indirect gen_* functions.
5482         * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
5483         * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
5484         * config/i386/sse.md (unspec): ... here.
5486 2021-06-23  Martin Liska  <mliska@suse.cz>
5488         PR target/98636
5489         * optc-save-gen.awk: Put back arm_fp16_format to
5490         checked_options.
5492 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
5494         PR target/101175
5495         * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
5496         (bsr): Ditto.
5497         (*bsrhi): Remove.
5498         (clz<mode>2): Update RTX pattern for additions.
5500 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
5502         PR middle-end/101167
5503         * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
5504         and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
5506 2021-06-22  Sergei Trofimovich  <siarheit@google.com>
5508         * doc/rtl.texi: drop unbalanced parenthesis.
5510 2021-06-22  Richard Biener  <rguenther@suse.de>
5512         PR middle-end/101156
5513         * gimplify.c (gimplify_expr): Remove premature incorrect
5514         optimization.
5516 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
5518         PR tree-optimization/101159
5519         * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
5520         comment typos.
5522 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
5524         PR middle-end/101160
5525         * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
5526         clear crtl->return_rtx instead of keeping it referencing a pseudo.
5528 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
5529             Andrew Pinski  <apinski@marvell.com>
5531         PR tree-optimization/101162
5532         * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
5533         types.
5535 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
5537         * range-op.cc (range_relational_tests): New.
5538         (range_op_tests): Call range_relational_tests.
5540 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
5542         * range-op.cc (operator_cast::lhs_op1_relation): New.
5543         (operator_identity::lhs_op1_relation): Mew.
5545 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
5547         * range-op.cc (operator_minus::op1_op2_relation_effect): New.
5549 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
5551         * range-op.cc (operator_plus::lhs_op1_relation): New.
5552         (operator_plus::lhs_op2_relation): New.
5554 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
5556         * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
5557         relation_oracle if dominators exist.
5558         (ranger_cache::~ranger_cache): Dispose of oracle.
5559         (ranger_cache::dump_bb): Dump oracle.
5560         * gimple-range.cc (fur_source::fur_source): New.
5561         (fur_source::get_operand): Use mmeber query.
5562         (fur_source::get_phi_operand): Use member_query.
5563         (fur_source::query_relation): New.
5564         (fur_source::register_dependency): Delete.
5565         (fur_source::register_relation): New.
5566         (fur_edge::fur_edge): Adjust.
5567         (fur_edge::get_phi_operand): Fix comment.
5568         (fur_edge::query): Delete.
5569         (fur_stmt::fur_stmt): Adjust.
5570         (fur_stmt::query): Delete.
5571         (fur_depend::fur_depend): Adjust.
5572         (fur_depend::register_relation): New.
5573         (fur_depend::register_relation): New.
5574         (fur_list::fur_list): Adjust.
5575         (fur_list::get_operand): Use member query.
5576         (fold_using_range::range_of_range_op): Process and query relations.
5577         (fold_using_range::range_of_address): Adjust dependency call.
5578         (fold_using_range::range_of_phi): Ditto.
5579         (gimple_ranger::gimple_ranger): New.  Use ranger_ache oracle.
5580         (fold_using_range::relation_fold_and_or): New.
5581         (fold_using_range::postfold_gcond_edges): New.
5582         * gimple-range.h (class gimple_ranger): Adjust.
5583         (class fur_source): Adjust members.
5584         (class fur_stmt): Ditto.
5585         (class fold_using_range): Ditto.
5587 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
5589         * range-op.cc (range_operator::wi_fold): Apply relation effect.
5590         (range_operator::fold_range): Adjust and apply relation effect.
5591         (*::fold_range): Add relation parameters.
5592         (*::op1_range): Ditto.
5593         (*::op2_range): Ditto.
5594         (range_operator::lhs_op1_relation): New.
5595         (range_operator::lhs_op2_relation): New.
5596         (range_operator::op1_op2_relation): New.
5597         (range_operator::op1_op2_relation_effect): New.
5598         (relop_early_resolve): New.
5599         (operator_equal::op1_op2_relation): New.
5600         (operator_equal::fold_range): Call relop_early_resolve.
5601         (operator_not_equal::op1_op2_relation): New.
5602         (operator_not_equal::fold_range): Call relop_early_resolve.
5603         (operator_lt::op1_op2_relation): New.
5604         (operator_lt::fold_range): Call relop_early_resolve.
5605         (operator_le::op1_op2_relation): New.
5606         (operator_le::fold_range): Call relop_early_resolve.
5607         (operator_gt::op1_op2_relation): New.
5608         (operator_gt::fold_range): Call relop_early_resolve.
5609         (operator_ge::op1_op2_relation): New.
5610         (operator_ge::fold_range): Call relop_early_resolve.
5611         * range-op.h (class range_operator): Adjust parameters and methods.
5613 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
5615         * Makefile.in (OBJS): Add value-relation.o.
5616         * gimple-range.h: Adjust include files.
5617         * tree-data-ref.c: Adjust include file order.
5618         * value-query.cc (range_query::get_value_range): Default to no oracle.
5619         (range_query::query_relation): New.
5620         (range_query::query_relation): New.
5621         * value-query.h (class range_query): Adjust.
5622         * value-relation.cc: New.
5623         * value-relation.h: New.
5625 2021-06-22  Richard Biener  <rguenther@suse.de>
5627         PR tree-optimization/101151
5628         * tree-ssa-sink.c (statement_sink_location): Expand irreducible
5629         region check.
5631 2021-06-22  Jojo R  <rjiejie@linux.alibaba.com>
5633         * config/riscv/riscv.c (thead_c906_tune_info): New.
5634         (riscv_tune_info_table): Use new tune.
5636 2021-06-22  Richard Biener  <rguenther@suse.de>
5638         PR tree-optimization/101158
5639         * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
5640         checking after checking for matching operation.
5642 2021-06-22  Richard Biener  <rguenther@suse.de>
5644         PR tree-optimization/101159
5645         * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
5646         missing NULL vectype check.
5648 2021-06-22  Richard Biener  <rguenther@suse.de>
5650         PR tree-optimization/101154
5651         * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
5653 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
5655         PR target/11877
5656         * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
5657         * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
5658         * config/i386/i386.c (ix86_expand_prologue): Clear it.
5659         * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
5660         Remove "" from match_operand.  Emit new insns using emit_move_insn and
5661         set ix86_last_zero_store_uid to INSN_UID of the last store.
5662         Add peephole2s for 1/2/4 stores of const0_rtx following previous
5663         successful peep2s.
5665 2021-06-22  Martin Liska  <mliska@suse.cz>
5667         * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
5668         was changed.
5670 2021-06-22  Martin Liska  <mliska@suse.cz>
5672         * gcov-io.h: Remove padding entries.
5674 2021-06-22  liuhongt  <hongtao.liu@intel.com>
5676         PR tree-optimization/97770
5677         * tree-vect-patterns.c (vect_recog_popcount_pattern):
5678         New.
5679         (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
5681 2021-06-22  liuhongt  <hongtao.liu@intel.com>
5683         PR target/100267
5684         * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
5685         * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
5686         (expand<mode>_mask): this ..
5687         (*expand<mode>_mask): New pre_reload splitter to transform
5688         v{,p}expand* to vmov* when mask is zero, all ones, or has all
5689         ones in it's lower part, otherwise still generate
5690         v{,p}expand*.
5692 2021-06-22  liuhongt  <hongtao.liu@intel.com>
5694         PR target/100310
5695         * config/i386/i386-expand.c
5696         (ix86_expand_special_args_builtin): Keep constm1_operand only
5697         if it satisfies insn's operand predicate.
5699 2021-06-21  Jason Merrill  <jason@redhat.com>
5701         PR target/88529
5702         * df-scan.c (df_ref_record): Check that regno < endregno.
5703         * function.c (assign_parms, expand_function_end): Do nothing with a
5704         TYPE_EMPTY_P result.
5706 2021-06-21  Richard Biener  <rguenther@suse.de>
5708         PR tree-optimization/101120
5709         * tree-vect-data-refs.c (bump_vector_ptr): Fold the
5710         built increment.
5711         * tree-vect-slp.c (vect_transform_slp_perm_load): Add
5712         DR chain DCE capability.
5713         * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
5714         * tree-vect-stmts.c (vectorizable_load): Remove unused
5715         loads in the DR chain for SLP.
5717 2021-06-21  Jakub Jelinek  <jakub@redhat.com>
5719         PR inline-asm/100785
5720         * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
5721         output or input operands were already error_mark_node.
5722         * cfgexpand.c (expand_asm_stmt): If errors are emitted,
5723         remove all inputs, outputs and clobbers from the asm and
5724         set template to "".
5726 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
5728         * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
5729         (vceq_s16): Likewise.
5730         (vceq_s32): Likewise.
5731         (vceq_u8): Likewise.
5732         (vceq_u16): Likewise.
5733         (vceq_u32): Likewise.
5734         (vceq_p8): Likewise.
5735         (vceqq_s8): Likewise.
5736         (vceqq_s16): Likewise.
5737         (vceqq_s32): Likewise.
5738         (vceqq_u8): Likewise.
5739         (vceqq_u16): Likewise.
5740         (vceqq_u32): Likewise.
5741         (vceqq_p8): Likewise.
5742         (vceq_f32): Gate __a == __b on __FAST_MATH__.
5743         (vceqq_f32): Likewise.
5744         (vceq_f16): Likewise.
5745         (vceqq_f16): Likewise.
5747 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
5749         PR target/97906
5750         * config/arm/iterators.md (NEON_VACMP): Remove.
5751         * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
5752         iterator.
5753         (neon_vca<cmp_op><mode>_insn): Likewise.
5754         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
5755         NEON_VACMP.
5757 2021-06-21  Richard Biener  <rguenther@suse.de>
5759         PR tree-optimization/101121
5760         * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
5761         when we just lack a stmt with the desired op when doing permutation.
5762         (vect_build_slp_tree): When caching a failed SLP build attempt
5763         assert that at least one lane is marked as not matching.
5765 2021-06-21  liuhongt  <hongtao.liu@intel.com>
5767         PR target/101142
5768         * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
5769         register alternative.
5770         (*and<mode>_1): Ditto.
5771         (*andqi_1): Ditto.
5772         (*andn<mode>_1): Ditto.
5773         (*<code><mode>_1): Ditto.
5774         (*<code>qi_1): Ditto.
5775         (*one_cmpl<mode>2_1): Ditto.
5776         (*one_cmplsi2_1_zext): Ditto.
5777         (*one_cmplqi2_1): Ditto.
5778         * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
5779         the order of mask registers to be before general registers.
5781 2021-06-21  Roger Sayle  <roger@nextmovesoftware.com>
5783         PR target/11877
5784         * config/i386/i386.md: New define_peephole2s to shrink writing
5785         1, 2 or 4 consecutive zeros to memory when optimizing for size.
5787 2021-06-18  Jeff Law  <jeffreyalaw@gmail.com>
5789         * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
5790         * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
5791         more efficient code when the source can be trivially simplified.
5793 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
5795         * gimple-range-cache.cc (ranger_cache::range_of_def):  Calculate
5796         a range if global is not available.
5797         (ranger_cache::entry_range): Fallback to range_of_def.
5798         * gimple-range-cache.h (range_of_def): Adjust prototype.
5800 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
5802         PR tree-optimization/101014
5803         * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
5804         value list.
5805         (ranger_cache::~ranger_cache): Ditto.
5806         (ranger_cache::enable_new_values): Delete.
5807         (ranger_cache::push_poor_value): Delete.
5808         (ranger_cache::range_of_def): Remove poor value processing.
5809         (ranger_cache::entry_range): Ditto.
5810         (ranger_cache::fill_block_cache): Ditto.
5811         * gimple-range-cache.h (class ranger_cache): Remove poor value members.
5812         * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
5813         * gimple-range.h (class gimple_ranger): Adjust.
5815 2021-06-18  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
5817         PR target/100856
5818         * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
5819         derived from arm_canon_arch.
5820         (arm_canon_arch_option): Call it.
5821         (arm_canon_arch_multilib_option): New function.
5822         * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
5823         * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
5824         (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
5825         (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
5826         (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
5827         * config/arm/arm.opt (mlibarch): New option.
5828         * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
5829         of march on RHS with mlibarch.
5831 2021-06-18  Marcel Vollweiler  <marcel@codesourcery.com>
5833         * config.in: Regenerate.
5834         * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
5835         functions.
5836         * configure: Regenerate.
5837         * configure.ac: Fix for global_load assembler functions.
5839 2021-06-18  Richard Biener  <rguenther@suse.de>
5841         PR tree-optimization/101112
5842         * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
5843         to lookup a pattern stmt def.
5845 2021-06-18  Jakub Jelinek  <jakub@redhat.com>
5847         PR middle-end/101062
5848         * stor-layout.c (finish_bitfield_layout): Don't add bitfield
5849         representatives in QUAL_UNION_TYPE.
5851 2021-06-18  Andrew Pinski  <apinski@marvell.com>
5853         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
5854         Add counting of how many times it is done.
5855         (factor_out_conditional_conversion): Likewise.
5856         (match_simplify_replacement): Likewise.
5857         (value_replacement): Likewise.
5858         (spaceship_replacement): Likewise.
5859         (cond_store_replacement): Likewise.
5860         (cond_if_else_store_replacement_1): Likewise.
5861         (hoist_adjacent_loads): Likewise.
5863 2021-06-18  Andrew Pinski  <apinski@marvell.com>
5865         * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
5866         types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
5867         (verify_gimple_assign_binary): Reject point and offset types on
5868         MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
5869         FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
5870         FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
5872 2021-06-18  Michael Meissner  <meissner@linux.ibm.com>
5874         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
5875         3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
5876         * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
5877         New insns.
5879 2021-06-17  Aaron Sawdey  <acsawdey@linux.ibm.com>
5881         * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
5882         earlyclobber to alts 0/1.
5883         (gen_addadd): Add earlyclobber to alts 0/1.
5884         * config/rs6000/fusion.md: Regenerate file.
5886 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
5888         * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
5890 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
5892         * gimple-range-cache.cc: Comment cleanups.
5893         * gimple-range-gori.cc: Comment cleanups.
5894         * gimple-range.cc: Comment/spacing cleanups
5895         * value-range.h: Comment cleanups.
5897 2021-06-17  H.J. Lu  <hjl.tools@gmail.com>
5899         PR target/100704
5900         * calls.c (expand_call): Replace PUSH_ARGS with
5901         targetm.calls.push_argument (0).
5902         (emit_library_call_value_1): Likewise.
5903         * defaults.h (PUSH_ARGS): Removed.
5904         (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
5905         targetm.calls.push_argument (0).
5906         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5907         (emit_push_insn): Pass the number bytes to push to
5908         targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
5909         * hooks.c (hook_bool_uint_true): New.
5910         * hooks.h (hook_bool_uint_true): Likewise.
5911         * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
5912         targetm.calls.push_argument (0).
5913         * target.def (push_argument): Add a targetm.calls hook.
5914         * targhooks.c (default_push_argument): New.
5915         * targhooks.h (default_push_argument): Likewise.
5916         * config/bpf/bpf.h (PUSH_ARGS): Removed.
5917         * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
5918         * config/cr16/cr16.h (PUSH_ARGS): Removed.
5919         * config/i386/i386.c (ix86_push_argument): New.
5920         (TARGET_PUSH_ARGUMENT): Likewise.
5921         * config/i386/i386.h (PUSH_ARGS): Removed.
5922         * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
5923         * config/m32c/m32c.h (PUSH_ARGS): Removed.
5924         * config/nios2/nios2.h (PUSH_ARGS): Likewise.
5925         * config/pru/pru.h (PUSH_ARGS): Likewise.
5926         * doc/tm.texi.in: Remove PUSH_ARGS documentation.  Add
5927         TARGET_PUSH_ARGUMENT hook.
5928         * doc/tm.texi: Regenerated.
5930 2021-06-17  Uroš Bizjak  <ubizjak@gmail.com>
5932         PR target/97194
5933         * config/i386/i386-expand.c (expand_vector_set_var):
5934         Handle V2FS mode remapping.  Pass TARGET_MMX_WITH_SSE to
5935         ix86_expand_vector_init_duplicate.
5936         (ix86_expand_vector_init_duplicate): Emit insv_1 for
5937         QImode for !TARGET_PARTIAL_REG_STALL.
5938         * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
5939         * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
5940         as operand 2 predicate.  Call ix86_expand_vector_set_var
5941         for non-constant index operand.
5942         (vec_setv2si): Ditto.
5943         (vec_setv4hi): Ditto.
5944         (vec_setv8qi): ditto.
5946 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
5948         PR tree-optimization/100790
5949         * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
5950         code.
5952 2021-06-17  Martin Liska  <mliska@suse.cz>
5954         * doc/invoke.texi: Use consistently -O1 instead of -O.
5956 2021-06-17  Martin Liska  <mliska@suse.cz>
5958         * gcov-io.h: Update documentation entry about string format.
5960 2021-06-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
5962         PR target/100871
5963         * config/s390/vecintrin.h (vec_doublee): Fix to use
5964           __builtin_s390_vflls.
5965         (vec_floate): Fix to use __builtin_s390_vflrd.
5967 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
5969         * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
5970         * dominance.h (get_dominated_to_depth): Likewise.
5971         (get_all_dominated_blocks): Likewise.
5972         * cfgcleanup.c (delete_unreachable_blocks): Adjust.
5973         * gcse.c (hoist_code): Likewise.
5974         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
5975         * tree-parloops.c (oacc_entry_exit_ok): Likewise.
5976         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5977         * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
5979 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
5981         * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
5982         * dominance.h (get_dominated_by_region): Likewise.
5983         * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
5984         (gimple_duplicate_sese_tail): Likewise.
5985         (move_sese_region_to_fn): Likewise.
5987 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
5989         * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
5990         * dominance.h (get_dominated_by): Likewise.
5991         * auto-profile.c (afdo_find_equiv_class): Adjust.
5992         * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
5993         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
5994         * tree-cfg.c (test_linear_chain): Likewise.
5995         (test_diamond): Likewise.
5997 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
5999         * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
6000         * cfgloopanal.c (get_loop_hot_path): Likewise.
6001         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
6003 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
6005         * cgraph.c (cgraph_node::collect_callers): Return
6006         auto_vec<cgraph_edge *>.
6007         * cgraph.h (cgraph_node::collect_callers): Likewise.
6008         * ipa-cp.c (create_specialized_node): Adjust.
6009         (decide_about_value): Likewise.
6010         (decide_whether_version_node): Likewise.
6011         * ipa-sra.c (process_isra_node_results): Likewise.
6013 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
6015         * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
6016         (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
6017         constructor.
6018         (auto_vec<T, 0>::operator=): Define move assignment and delete copy
6019         assignment.
6021 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
6023         * gimple-range.cc (debug_seed_ranger): New.
6024         (dump_ranger): New.
6025         (debug_ranger): New.
6027 2021-06-17  Richard Biener   <rguenther@suse.de>
6029         PR tree-optimization/54400
6030         * tree-vectorizer.h (enum slp_instance_kind): Add
6031         slp_inst_kind_bb_reduc.
6032         (reduction_fn_for_scalar_code): Declare.
6033         * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
6034         Check SLP_INSTANCE_KIND instead of looking at the
6035         representative.
6036         (vect_slp_analyze_instance_alignment): Likewise.
6037         * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
6038         * tree-vect-slp.c (vect_slp_linearize_chain): Split out
6039         chain linearization from vect_build_slp_tree_2 and generalize
6040         for the use of BB reduction vectorization.
6041         (vect_build_slp_tree_2): Adjust accordingly.
6042         (vect_optimize_slp): Elide permutes at the root of BB reduction
6043         instances.
6044         (vectorizable_bb_reduc_epilogue): New function.
6045         (vect_slp_prune_covered_roots): Likewise.
6046         (vect_slp_analyze_operations): Use them.
6047         (vect_slp_check_for_constructors): Recognize associatable
6048         chains for BB reduction vectorization.
6049         (vectorize_slp_instance_root_stmt): Generate code for the
6050         BB reduction epilogue.
6052 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
6054         * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
6055         may_recompute_p.
6056         (gori_compute::may_recompute_p): New.
6057         (gori_compute::outgoing_edge_range_p): Perform recomputations.
6058         * gimple-range-gori.h (class gori_compute): Add prototype.
6060 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
6062         * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
6063         true when a range can be calculated.
6064         * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
6066 2021-06-16  Martin Sebor  <msebor@redhat.com>
6068         * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
6069         Correct documented defaults.
6071 2021-06-16  Andrew MacLeod  <amacleod@redhat.com>
6073         * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
6074         m_new_value_p directly.
6076 2021-06-16  Uroš Bizjak  <ubizjak@gmail.com>
6078         PR target/89021
6079         * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
6080         Handle 64bit modes for TARGET_SSE4_1.
6081         (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
6082         (expand_vec_perm_even_odd_pack): Handle V4HI mode.
6083         (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
6084         expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
6085         expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
6086         * config/i386/mmx.md (mmx_packusdw): New insn pattern.
6088 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
6090         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
6091         Change to an expander that emits the correct instruction
6092         depending on endianness.
6093         (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
6094         (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
6096 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
6098         * config/aarch64/aarch64-simd-builtins.def: Split generator
6099         for aarch64_<su>qmovn builtins into scalar and vector
6100         variants.
6101         * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
6102         Define.
6103         (aarch64_<su>qmovn<mode>_insn_be): Define.
6104         (aarch64_<su>qmovn<mode>): Split into scalar and vector
6105         variants. Change vector variant to an expander that emits the
6106         correct instruction depending on endianness.
6108 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
6110         * config/aarch64/aarch64-simd-builtins.def: Split generator
6111         for aarch64_sqmovun builtins into scalar and vector variants.
6112         * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
6113         Split into scalar and vector variants. Change vector variant
6114         to an expander that emits the correct instruction depending
6115         on endianness.
6116         (aarch64_sqmovun<mode>_insn_le): Define.
6117         (aarch64_sqmovun<mode>_insn_be): Define.
6119 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
6121         * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
6122         Define - modeling zero-high-half semantics.
6123         (aarch64_xtn<mode>): Change to an expander that emits the
6124         appropriate instruction depending on endianness.
6125         (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
6126         semantics.
6127         (aarch64_xtn2<mode>_le): Rename to...
6128         (aarch64_xtn2<mode>_insn_le): This.
6129         (aarch64_xtn2<mode>_be): Rename to...
6130         (aarch64_xtn2<mode>_insn_be): This.
6131         (vec_pack_trunc_<mode>): Emit truncation instruction instead
6132         of aarch64_xtn.
6133         * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
6134         attribute iterator.
6136 2021-06-16  Martin Jambor  <mjambor@suse.cz>
6138         PR tree-optimization/100453
6139         * tree-sra.c (create_access): Disqualify any const candidates
6140         which are written to.
6141         (sra_modify_expr): Do not store sub-replacements back to a const base.
6142         (handle_unscalarized_data_in_subtree): Likewise.
6143         (sra_modify_assign): Likewise.  Earlier, use TREE_READONLy test
6144         instead of constant_decl_p.
6146 2021-06-16  Jakub Jelinek  <jakub@redhat.com>
6148         PR middle-end/101062
6149         * stor-layout.c (finish_bitfield_representative): For fields in unions
6150         assume nextf is always NULL.
6151         (finish_bitfield_layout): Compute bit field representatives also in
6152         unions, but handle it as if each bitfield was the only field in the
6153         aggregate.
6155 2021-06-16  Richard Biener  <rguenther@suse.de>
6157         PR tree-optimization/101088
6158         * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
6159         supported refs on edges.  Do not assert same ref but
6160         different kind stores are unsuported but mark them so.
6161         (hoist_memory_references): Only look for supported refs
6162         on exits.
6164 2021-06-16  Roger Sayle  <roger@nextmovesoftware.com>
6166         PR rtl-optimization/46235
6167         * config/i386/i386.md: New define_split for bt followed by cmov.
6168         (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
6169         (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
6170         (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
6171         by setnc with zero extension.
6173 2021-06-16  Richard Biener  <rguenther@suse.de>
6175         PR tree-optimization/101083
6176         * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
6177         vectype as argument.
6178         (vect_build_slp_tree_2): Adjust.
6180 2021-06-15  Martin Sebor  <msebor@redhat.com>
6182         PR middle-end/100876
6183         * builtins.c: (gimple_call_return_array): Account for size_t
6184         mangling as either unsigned int or unsigned long
6186 2021-06-15  Jeff Law  <jeffreyalaw@gmail.com>
6188         * compare-elim.c (try_eliminate_compare): Run DCE to clean things
6189         up before eliminating comparisons.
6191 2021-06-15  Aldy Hernandez  <aldyh@redhat.com>
6193         * range-op.cc (operator_bitwise_or::wi_fold): Make sure
6194         nonzero|X is nonzero.
6195         (range_op_bitwise_and_tests): Add tests for above.
6197 2021-06-15  Carl Love  <cel@us.ibm.com>
6199         PR target/101022
6200         * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
6201         enum definition.
6202         (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
6203         definitions.
6205 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
6207         PR fortran/92568
6208         * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
6209         (struct gimplify_omp_ctx): Extend defaultmap array by one.
6210         (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
6211         (omp_notice_variable): Update type classification for Fortran.
6212         (gimplify_scan_omp_clauses): Update calls for new argument; handle
6213         GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
6214         * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
6215         * langhooks.c (lhd_omp_scalar_p): Likewise.
6216         (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
6217         (LANG_HOOKS_DECLS): Add them.
6218         * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
6219         omp_scalar_p pointer type to include the new bool argument.
6221 2021-06-15  David Malcolm  <dmalcolm@redhat.com>
6223         * doc/analyzer.texi
6224         (Special Functions for Debugging the Analyzer): Add
6225         __analyzer_dump_capacity.
6227 2021-06-15  Jakub Jelinek  <jakub@redhat.com>
6229         PR target/101046
6230         * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
6231         case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
6233 2021-06-15  Richard Biener  <rguenther@suse.de>
6235         * cfgloopanal.c (mark_irreducible_loops): Use a dominance
6236         check to identify loop latches.
6237         * cfgloop.c (verify_loop_structure): Likewise.
6238         * loop-init.c (apply_loop_flags): Allow marked irreducible
6239         regions even with multiple latches.
6240         * predict.c (rebuild_frequencies): Simplify.
6242 2021-06-15  Richard Biener  <rguenther@suse.de>
6244         * tree-ssa-threadupdate.c
6245         (jump_thread_path_registry::mark_threaded_blocks): Assert we
6246         have marked irreducible regions.
6248 2021-06-14  Martin Sebor  <msebor@redhat.com>
6250         PR c++/100876
6251         * builtins.c (gimple_call_return_array): Check for attribute fn spec.
6252         Handle calls to placement new.
6253         (ndecl_dealloc_argno): Avoid placement delete.
6255 2021-06-14  Peter Bergner  <bergner@linux.ibm.com>
6257         PR target/100777
6258         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
6259         create_tmp_reg_or_ssa_name().
6261 2021-06-14  Andrew MacLeod  <amacleod@redhat.com>
6263         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
6264         (ranger_cache::enable_new_values): Set to specified value and
6265         return the old value.
6266         (ranger_cache::disable_new_values): Delete.
6267         (ranger_cache::fill_block_cache): Disable non 1st order derived
6268         poor values.
6269         * gimple-range-cache.h (ranger_cache): Adjust prototypes.
6270         * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
6272 2021-06-14  Uroš Bizjak  <ubizjak@gmail.com>
6274         PR target/101058
6275         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
6276         Return true early when testing with V2HImode.
6277         * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
6279 2021-06-14  Christophe Lyon  <christophe.lyon@linaro.org>
6281         * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
6282         (mve_vec_unpack<US>_hi_<mode>): New pattern.
6283         (@mve_vec_pack_trunc_lo_<mode>): New pattern.
6284         (mve_vmovntq_<supf><mode>): Prefix with '@'.
6285         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
6286         vec-common.md.
6287         (vec_unpack<US>_lo_<mode>): Likewise.
6288         (vec_pack_trunc_<mode>): Rename to
6289         neon_quad_vec_pack_trunc_<mode>.
6290         * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
6291         pattern.
6292         (vec_unpack<US>_lo_<mode>): New.
6293         (vec_pack_trunc_<mode>): New.
6295 2021-06-14  Richard Biener  <rguenther@suse.de>
6297         PR tree-optimization/100934
6298         * tree-ssa-dom.c (pass_dominator::execute): Properly
6299         mark irreducible regions.
6301 2021-06-14  Martin Liska  <mliska@suse.cz>
6303         * doc/invoke.texi: Put r{...} on the same line as @item.
6305 2021-06-14  Martin Liska  <mliska@suse.cz>
6307         * doc/invoke.texi: Add missing newline.
6309 2021-06-14  Martin Liska  <mliska@suse.cz>
6311         * doc/invoke.texi: Remove '+' charasters.
6313 2021-06-14  Claudiu Zissulescu  <claziss@synopsys.com>
6315         * config.gcc (arc): Add support for with_cpu option.
6316         * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
6318 2021-06-14  Richard Biener  <rguenther@suse.de>
6320         PR tree-optimization/101031
6321         * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
6322         instead of size when accounting for a possibly string
6323         terminating nul.
6325 2021-06-14  Martin Liska  <mliska@suse.cz>
6327         * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
6329 2021-06-14  Aldy Hernandez  <aldyh@redhat.com>
6331         * value-query.cc (gimple_range_global): Call get_range_global
6332         if called after inlining.
6334 2021-06-13  Uroš Bizjak  <ubizjak@gmail.com>
6336         PR target/101021
6337         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
6338         Emit constant permutation insn directly from here.
6340 2021-06-13  Trevor Saunders  <tbsaunde@tbsaunde.org>
6342         * attribs.c (find_attribute_namespace): Iterate over vec<> with
6343         range based for.
6344         * auto-profile.c (afdo_find_equiv_class): Likewise.
6345         * gcc.c (do_specs_vec): Likewise.
6346         (do_spec_1): Likewise.
6347         (driver::set_up_specs): Likewise.
6348         * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
6349         * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
6350         (imm_store_chain_info::try_coalesce_bswap): Likewise.
6351         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
6352         (get_location_for_stmts): Likewise.
6353         * graphite-poly.c (print_iteration_domains): Likewise.
6354         (free_poly_bb): Likewise.
6355         (remove_gbbs_in_scop): Likewise.
6356         (free_scop): Likewise.
6357         (dump_gbb_cases): Likewise.
6358         (dump_gbb_conditions): Likewise.
6359         (print_pdrs): Likewise.
6360         (print_scop): Likewise.
6361         * ifcvt.c (cond_move_process_if_block): Likewise.
6362         * lower-subreg.c (decompose_multiword_subregs): Likewise.
6363         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
6364         * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
6365         * sel-sched-dump.c (dump_insn_vector): Likewise.
6366         * store-motion.c (store_ops_ok): Likewise.
6367         (store_killed_in_insn): Likewise.
6368         * timevar.c (timer::named_items::print): Likewise.
6369         * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
6370         (cleanup_tree_cfg_noloop): Likewise.
6371         * tree-data-ref.c (dump_data_references): Likewise.
6372         (print_dir_vectors): Likewise.
6373         (print_dist_vectors): Likewise.
6374         (dump_data_dependence_relations): Likewise.
6375         (dump_dist_dir_vectors): Likewise.
6376         (dump_ddrs): Likewise.
6377         (create_runtime_alias_checks): Likewise.
6378         (free_subscripts): Likewise.
6379         (save_dist_v): Likewise.
6380         (save_dir_v): Likewise.
6381         (invariant_access_functions): Likewise.
6382         (same_access_functions): Likewise.
6383         (access_functions_are_affine_or_constant_p): Likewise.
6384         (find_data_references_in_stmt): Likewise.
6385         (graphite_find_data_references_in_stmt): Likewise.
6386         (free_dependence_relations): Likewise.
6387         (free_data_refs): Likewise.
6388         * tree-inline.c (copy_debug_stmts): Likewise.
6389         * tree-into-ssa.c (dump_currdefs): Likewise.
6390         (rewrite_update_phi_arguments): Likewise.
6391         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
6392         * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
6393         Likewise.
6394         (vect_slp_analyze_node_dependences): Likewise.
6395         (vect_slp_analyze_instance_dependence): Likewise.
6396         (vect_record_base_alignments): Likewise.
6397         (vect_get_peeling_costs_all_drs): Likewise.
6398         (vect_peeling_supportable): Likewise.
6399         * tree-vectorizer.c (vec_info::~vec_info): Likewise.
6400         (vec_info::free_stmt_vec_infos): Likewise.
6402 2021-06-13  Jeff Law  <jeffreyalaw@gmail.com>
6404         * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
6405         (andqi3_1<cczn>): Removed.
6406         (<ors>qi3_1): Do not split for IOR/XOR a single bit.
6407         (H8/SX bit logicals): Split out from other patterns.
6408         * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
6409         mulqihi3_const_clobber_flags.
6410         (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
6412 2021-06-13  H.J. Lu  <hjl.tools@gmail.com>
6414         PR target/101023
6415         * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
6416         to true if red zone is used.
6417         (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
6418         ix86_red_zone_used.
6419         * config/i386/i386.h (machine_function): Add red_zone_used.
6420         (ix86_red_zone_size): Removed.
6421         (ix86_red_zone_used): New.
6422         * config/i386/i386.md (peephole2 patterns): Replace
6423         ix86_red_zone_size with ix86_red_zone_used.
6425 2021-06-12  Jason Merrill  <jason@redhat.com>
6427         * doc/extend.texi (unused variable attribute): Applies to
6428         structure fields as well.
6430 2021-06-12  Eugene Rozenfeld  <erozen@microsoft.com>
6432         * auto-profile.c (read_profile): fix a typo in an error string
6434 2021-06-11  Thomas Schwinge  <thomas@codesourcery.com>
6436         * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
6437         default argument.
6438         * tree-pretty-print.c (dump_omp_clauses): Update.
6439         (dump_generic_node) <OMP_CLAUSE>: Use it.
6441 2021-06-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
6443         PR target/101016
6444         * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
6445         int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
6446         the polymorphic variants matching code.
6447         (__arm_vld1q_z): Likewise.
6448         (__arm_vld2q): Likewise.
6449         (__arm_vld4q): Likewise.
6450         (__arm_vldrbq_gather_offset): Likewise.
6451         (__arm_vldrbq_gather_offset_z): Likewise.
6453 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
6455         PR tree-optimization/96392
6456         * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
6458 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
6460         PR tree-optimization/96392
6461         * fold-const.c (fold_real_zero_addition_p): Take both arguments
6462         of the addition or subtraction, not just the zero.  Use this
6463         other argument in tests for signaling NaNs and signed zeros.
6464         (tree_expr_maybe_real_minus_zero_p): New predicate.
6465         * fold-const.h (fold_real_zero_addition_p): Update prototype.
6466         (tree_expr_maybe_real_minus_zero_p): New function prototype.
6467         * match.pd: Update calls to fold_real_zero_addition_p.
6468         Replace HONOR_NANS with tree_expr_maybe_nan_p.
6469         Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
6470         Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
6471         * tree-ssa-reassoc.c (eliminate_using_constants): Update
6472         call to fold_real_zero_addition_p.
6474 2021-06-11  Richard Biener  <rguenther@suse.de>
6476         PR tree-optimization/101025
6477         * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
6478         all refs that require dependence checking.
6480 2021-06-11  Richard Biener  <rguenther@suse.de>
6482         PR tree-optimization/101028
6483         * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
6484         reassoc discovery fails fatally, mark appropriate lanes
6485         in matches[] so.
6487 2021-06-11  Richard Biener  <rguenther@suse.de>
6489         PR tree-optimization/101026
6490         * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
6491         have a representative for the associated chain nodes.
6493 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
6495         PR rtl-optimization/101008
6496         * simplify-rtx.c (relational_result): New function.
6497         (simplify_logical_relational_operation,
6498         simplify_relational_operation): Use it.
6500 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
6502         PR target/101007
6503         * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
6505 2021-06-11  Uroš Bizjak  <ubizjak@gmail.com>
6507         PR target/101021
6508         * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
6509         false if the permutation can be implemented with constant
6510         permutation instruction in wider mode.
6511         (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
6512         Handle V8QImode and V4HImode.
6514 2021-06-11  Martin Liska  <mliska@suse.cz>
6516         PR gcov-profile/100788
6517         * common.opt: Add new option.
6518         * coverage.c (coverage_begin_function): Emit warning instead on
6519         the internal compiler error.
6520         * doc/invoke.texi: Document the option.
6521         * toplev.c (process_options): Enable it by default.
6523 2021-06-11  Richard Biener  <rguenther@suse.de>
6525         PR middle-end/101009
6526         * tree-data-ref.c (build_classic_dist_vector_1): Make sure
6527         to set *init_b to true when we encounter a constant equal
6528         index pair.
6529         (compute_affine_dependence): Also dump the actual DR_REF.
6531 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
6533         PR tree-optimization/100984
6534         * gimple-ssa-evrp.c  (ssa_equiv_stack): Use auto_vec for
6535         replacements table.
6536         (ssa_equiv_stack::~ssa_equiv_stack): Remove.
6538 2021-06-11  Kewen Lin  <linkw@linux.ibm.com>
6540         * config/rs6000/rs6000.md
6541         (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
6542         define_insn_and_split.
6544 2021-06-11  Richard Biener  <rguenther@suse.de>
6546         * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
6547         to sort operands of the associative chain.
6549 2021-06-11  Richard Biener  <rguenther@suse.de>
6551         * system.h (gcc_stablesort_r): Declare.
6552         * sort.cc (gcc_sort_r): Support stable sort.
6553         (gcc_stablesort_r): Define.
6554         * vec.h (vec<>::stablesort): Add.
6556 2021-06-10  Uroš Bizjak  <ubizjak@gmail.com>
6558         PR target/89021
6559         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
6560         Handle V2SF mode.  Emit SHUFPS to fixup unpack-high for V2SF mode.
6561         (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
6562         (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
6563         (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
6564         (expand_vec_perm_interleave2): Handle 64bit modes.
6565         (expand_vec_perm_even_odd_pack): Handle V8QI mode.
6566         (expand_vec_perm_even_odd_1): Ditto.
6567         (ix86_vectorize_vec_perm_const): Ditto.
6568         * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
6569         * config/i386/sse.md: ... here.
6570         * config/i386/mmx.md (*vec_interleave_lowv2sf):
6571         New insn_and_split pattern.
6572         (*vec_interleave_highv2sf): Ditto.
6573         (mmx_pshufbv8qi3): New insn pattern.
6574         (*mmx_pblendw): Ditto.
6576 2021-06-10  Peter Bergner  <bergner@linux.ibm.com>
6578         * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
6579         (build_acc): Likewise.
6580         * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
6581         source operands in little-endian mode.
6582         (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
6583         (mma_init_builtins): Likewise.
6584         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
6585         ordering for the MMA assemble and build source operands.
6586         * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
6587         Document.
6588         (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
6589         documentation.
6591 2021-06-10  Jeff Law  <jeffreyalaw@gmail.com>
6593         * config/h8300/h8300.c (select_cc_mode): Handle MEM.  Use
6594         REG_P.
6595         * config/h8300/extensions.md: Replace _clobber_flags patterns
6596         with <cczn>.
6598 2021-06-10  Robin Dapp  <rdapp@linux.ibm.com>
6600         * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
6601         (vcond_mask_<mode><tointvec>): this.
6603 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
6604             Thomas Schwinge  <thomas@codesourcery.com>
6606         * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
6607         (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
6608         * gimple.h (enum gf_mask): Split
6609         'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
6610         'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
6611         'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
6612         (is_gimple_omp_oacc): Update.
6613         * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
6614         * gimplify.c (gimplify_omp_target_update): Likewise.
6615         * omp-expand.c (expand_omp_target, build_omp_regions_1)
6616         (omp_make_gimple_edges): Likewise.
6617         * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
6618         Likewise.
6620 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
6622         * value-query.cc (value_query::value_on_edge): Rename name to
6623         expr.
6624         (range_query::range_on_edge): Same.
6625         (range_query::value_of_expr): Same.
6626         (range_query::value_on_edge): Same.
6627         * value-query.h (class value_query): Same.
6628         (class range_query): Same.
6630 2021-06-10  Richard Biener  <rguenther@suse.de>
6632         PR tree-optimization/101003
6633         * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
6634         use the pattern stmt defs when linearizing a chain.
6636 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
6638         PR debug/100852
6639         * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
6640         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
6642 2021-06-10  Clement Chigot  <clement.chigot@atos.net>
6644         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
6645         * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
6647 2021-06-09  Andrew Pinski  <apinski@marvell.com>
6649         PR tree-optimization/100925
6650         * match.pd (a ? CST1 : CST2): Limit transformations
6651         that would produce a negative to integeral types only.
6652         Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
6654 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
6656         Revert:
6657         2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
6659         * doc/tm.texi: Correctly update.
6661 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
6663         * doc/tm.texi: Correctly update.
6665 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
6667         PR other/100735
6668         * doc/tm.texi.in (Trampolines): Add a missing blank line.
6670 2021-06-09  Paul Eggert  <eggert@cs.ucla.edu>
6672         PR other/100735
6673         * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
6674         and -ftrampolines work only with Ada.
6675         * doc/tm.texi.in (Trampolines): Likewise.
6676         * doc/tm.texi: Regenerated.
6678 2021-06-09  Carl Love  <cel@us.ibm.com>
6680         * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
6681         Add define for new builtins.
6682         * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
6683         * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL):  Add
6684         overloaded builtin definitions.
6685         (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
6686         VSIGNEXTSD2Q):  Add builtin expansions.
6687         (SIGNEXT): Add P10 overload definition.
6688         * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
6689         P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
6690         * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
6691         (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
6692         vsignextend_si_v2di)[VIlong]: Add define_expand.
6693         Make define_insn vsx_sign_extend_si_v2di visible.
6694         * doc/extend.texi:  Add documentation for the vec_signexti,
6695         vec_signextll builtins and vec_signextq.
6697 2021-06-09  Carl Love  <cel@us.ibm.com>
6699         * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
6700         __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
6701         __floattikf_sw, __floatuntikf_sw respectively.
6702         * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
6703         fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
6704         define_insn for mode IEEE 128.
6706 2021-06-09  Carl Love  <cel@us.ibm.com>
6708         * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
6709         Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
6710         * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
6711         (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
6712         (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
6713         * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
6714         uses of VSX_TI to VEC_TI.
6716 2021-06-09  Carl Love  <cel@us.ibm.com>
6718         * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
6720 2021-06-09  Carl Love  <cel@us.ibm.com>
6722         * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
6723         builtins.
6724         * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
6725         UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
6726         (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
6727         altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
6728         altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
6729         altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
6730         altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
6731         define_insn.
6732         (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
6733         vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
6734         altivec_vrlqnm): New define_expands.
6735         * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
6736         VCMPGTUT_P): Add macro expansions.
6737         (BU_P10V_AV_P): Add builtin predicate definition.
6738         (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
6739         CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
6740         VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
6741         VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
6742         MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
6743         (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
6744         * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
6745         P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
6746         P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
6747         P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
6748         P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
6749         P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
6750         P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
6751         P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
6752         P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
6753         P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
6754         P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
6755         P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
6756         P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
6757         P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
6758         P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
6759         P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
6760         P10V_BUILTIN_MODU_V1TI):
6761         New overloaded definitions.
6762         (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
6763         P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
6764         P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
6765         P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
6766         P10V_BUILTIN_CMPLE_U1TI]: New case statements.
6767         (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
6768         New assignments.
6769         (altivec_init_builtins): New E_V1TImode case statement.
6770         (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
6771         P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
6772         P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
6773         P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
6774         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
6775         E_V1TImode]: New case statements.
6776         * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
6777         value RS6000_BTI_bool_V1TI.
6778         * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
6779         vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
6780         vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
6781         vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
6782         vlshrv1ti3, vashrv1ti3): New define_expands.
6783         * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
6784         UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
6785         UNSPEC_VSX_MODUQ): New unspecs.
6786         (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
6787         vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
6788         define_insns.
6789         (vcmpnet): New define_expand.
6790         * doc/extend.texi: Add documentation for the new builtins vec_rl,
6791         vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
6792         vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
6793         vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
6794         vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
6795         vec_any_ge, vec_any_le.
6797 2021-06-09  Carl Love  <cel@us.ibm.com>
6799         * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
6800         bug in argument generation.
6802 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
6804         * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
6805         (VCLZQ): Remove.
6806         * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
6807         remove <supf> iterator.
6808         (mve_vclzq_u<mode>): New.
6809         * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
6810         (neon_vclz<mode): Move to ...
6811         * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
6812         * config/arm/vec-common.md: ... here. Add support for MVE.
6814 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
6816         * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
6817         (@mve_vrhaddq_<supf><mode): Likewise.
6818         * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
6819         * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
6820         (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
6822 2021-06-09  imba-tjd  <109224573@qq.com>
6824         * doc/invoke.texi: Fix typo.
6826 2021-06-09  Roger Sayle  <roger@nextmovesoftware.com>
6828         PR middle-end/53267
6829         * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
6830         Support evaluation of fmod/fmodf/fmodl at compile-time.
6832 2021-06-09  Richard Biener  <rguenther@suse.de>
6834         PR tree-optimization/100981
6835         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6836         gimple_get_lhs to also handle calls.
6837         * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
6838         reduction info.
6840 2021-06-09  Richard Biener  <rguenther@suse.de>
6842         PR tree-optimization/97832
6843         * tree-vectorizer.h (_slp_tree::failed): New.
6844         * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
6845         failed member.
6846         (_slp_tree::~_slp_tree): Free failed.
6847         (vect_build_slp_tree): Retain failed nodes and record
6848         matches in them, copying that back out when running
6849         into a cached fail.  Dump start and end of discovery.
6850         (dt_sort_cmp): New.
6851         (vect_build_slp_tree_2): Handle associatable chains
6852         together doing more aggressive operand swapping.
6854 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
6856         PR target/100896
6857         * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
6858         GNU targets.
6859         * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
6860         Linux and GNU targets.
6862 2021-06-09  Richard Biener  <rguenther@suse.de>
6864         * tree-vect-stmts.c (vect_is_simple_use): Always get dt
6865         from the stmt.
6867 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
6869         * config/arc/arc.md (loop_end): Change it to
6870         define_insn_and_split.
6872 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
6874         * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
6875         (machi): New pattern.
6876         (umaddhisi4): Use VMAC2HU instruction.
6877         (umachi): New pattern.
6879 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
6881         * config/arc/arc-protos.h (arc_split_move_p): New prototype.
6882         * config/arc/arc.c (arc_split_move_p): New function.
6883         (arc_split_move): Clean up.
6884         * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
6885         (movdf_insn): Likewise.
6886         * config/arc/simdext.md (mov<VWH>_insn): Likewise.
6888 2021-06-09  Uroš Bizjak  <ubizjak@gmail.com>
6890         PR target/100936
6891         * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
6892         argument to "raw".  Do not emit segment overrides when "raw" is true.
6894 2021-06-09  Martin Liska  <mliska@suse.cz>
6896         * doc/gcov.texi: Create a proper JSON files.
6897         * doc/invoke.texi: Remove dots in order to make it a valid
6898         JSON object.
6900 2021-06-09  Xionghu Luo  <luoxhu@linux.ibm.com>
6902         * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
6903         (insn_is_load_p): Use pattern_is_rotate64.
6904         (insn_is_swap_p): Likewise.
6905         (quad_aligned_load_p): Likewise.
6906         (const_load_sequence_p): Likewise.
6907         (replace_swapped_aligned_load): Likewise.
6908         (recombine_lvx_pattern): Likewise.
6909         (recombine_stvx_pattern): Likewise.
6911 2021-06-09  Andrew MacLeod  <amacleod@redhat.com>
6913         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
6914         fur_stmt source record.
6915         * gimple-range.cc (fur_source::get_operand): Generic range query.
6916         (fur_source::get_phi_operand): New.
6917         (fur_source::register_dependency): New.
6918         (fur_source::query): New.
6919         (class fur_edge): New.  Edge source for operands.
6920         (fur_edge::fur_edge): New.
6921         (fur_edge::get_operand): New.
6922         (fur_edge::get_phi_operand): New.
6923         (fur_edge::query): New.
6924         (fur_stmt::fur_stmt): New.
6925         (fur_stmt::get_operand): New.
6926         (fur_stmt::get_phi_operand): New.
6927         (fur_stmt::query): New.
6928         (class fur_depend): New.  Statement source and process dependencies.
6929         (fur_depend::fur_depend): New.
6930         (fur_depend::register_dependency): New.
6931         (class fur_list): New.  List source for operands.
6932         (fur_list::fur_list): New.
6933         (fur_list::get_operand): New.
6934         (fur_list::get_phi_operand): New.
6935         (fold_range): New.  Instantiate appropriate fur_source class and fold.
6936         (fold_using_range::range_of_range_op): Use new API.
6937         (fold_using_range::range_of_address): Ditto.
6938         (fold_using_range::range_of_phi): Ditto.
6939         (imple_ranger::fold_range_internal): Use fur_depend class.
6940         (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
6941         * gimple-range.h (class fur_source): Now a base class.
6942         (class fur_stmt): New.
6943         (fold_range): New prototypes.
6944         (fur_source::fur_source): Delete.
6946 2021-06-08  Andrew Pinski  <apinski@marvell.com>
6948         PR tree-optimization/25290
6949         * tree-ssa-phiopt.c (xor_replacement): Delete.
6950         (tree_ssa_phiopt_worker): Delete use of xor_replacement.
6951         (match_simplify_replacement): Allow one cheap preparation
6952         statement that can be moved to before the if.
6954 2021-06-08  Pat Haugen  <pthaugen@linux.ibm.com>
6956         * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
6957         power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
6959 2021-06-08  Jeff Law  <jeffreyalaw@gmail.com>
6961         * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
6962         Create length attribute on define_insn_and_split.  Only split for cases which we
6963         know will use AND.
6964         (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags.  Only handle AND here and
6965         fix length computation.
6966         (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
6968 2021-06-08  Richard Biener  <rguenther@suse.de>
6970         PR tree-optimization/100923
6971         * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
6972         the operand vector to be valueized.
6973         (valueize_refs): Likewise.
6974         (valueize_shared_reference_ops_from_ref): Adjust.
6975         (valueize_shared_reference_ops_from_call): Likewise.
6976         (vn_reference_lookup_3): Likewise.
6977         (vn_reference_lookup_pieces): Likewise.  Re-valueize
6978         with honoring availability when we are about to create
6979         the ao_ref and valueized before.
6980         (vn_reference_lookup): Likewise.
6981         (vn_reference_insert_pieces): Adjust.
6983 2021-06-08  Richard Biener  <rguenther@suse.de>
6985         * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
6986         (_slp_instance::root_stmts): ... a vector.
6987         (SLP_INSTANCE_ROOT_STMT): Rename to ...
6988         (SLP_INSTANCE_ROOT_STMTS): ... this.
6989         (slp_root::root): Change to...
6990         (slp_root::roots): ... a vector.
6991         (slp_root::slp_root): Adjust.
6992         * tree-vect-slp.c (_slp_instance::location): Adjust.
6993         (vect_free_slp_instance): Release the root stmt vector.
6994         (vect_build_slp_instance): Adjust.
6995         (vect_analyze_slp): Likewise.
6996         (_bb_vec_info::~_bb_vec_info): Likewise.
6997         (vect_slp_analyze_operations): Likewise.
6998         (vect_bb_vectorization_profitable_p): Likewise.  Adjust
6999         costs for the root stmt.
7000         (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
7001         as root stmts.
7002         (vect_slp_analyze_bb_1): Simplify by marking all root stmts
7003         as pure_slp.
7004         (vectorize_slp_instance_root_stmt): Adjust.
7005         (vect_schedule_slp): Likewise.
7007 2021-06-08  Aldy Hernandez  <aldyh@redhat.com>
7009         * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
7010         (ssa_equiv_stack::ssa_equiv_stack): New.
7011         (ssa_equiv_stack::~ssa_equiv_stack): New.
7012         (ssa_equiv_stack::enter): New.
7013         (ssa_equiv_stack::leave): New.
7014         (ssa_equiv_stack::push_replacement): New.
7015         (ssa_equiv_stack::get_replacement): New.
7016         (is_pointer_ssa): New.
7017         (class pointer_equiv_analyzer): New.
7018         (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
7019         (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
7020         (pointer_equiv_analyzer::set_global_equiv): New.
7021         (pointer_equiv_analyzer::set_cond_equiv): New.
7022         (pointer_equiv_analyzer::get_equiv): New.
7023         (pointer_equiv_analyzer::enter): New.
7024         (pointer_equiv_analyzer::leave): New.
7025         (pointer_equiv_analyzer::get_equiv_expr): New.
7026         (pta_valueize): New.
7027         (pointer_equiv_analyzer::visit_stmt): New.
7028         (pointer_equiv_analyzer::visit_edge): New.
7029         (hybrid_folder::value_of_expr): Call PTA.
7030         (hybrid_folder::value_on_edge): Same.
7031         (hybrid_folder::pre_fold_bb): New.
7032         (hybrid_folder::post_fold_bb): New.
7033         (hybrid_folder::pre_fold_stmt): New.
7034         (rvrp_folder::pre_fold_bb): New.
7035         (rvrp_folder::post_fold_bb): New.
7036         (rvrp_folder::pre_fold_stmt): New.
7037         (rvrp_folder::value_of_expr): Call PTA.
7038         (rvrp_folder::value_on_edge): Same.
7040 2021-06-08  Jakub Jelinek  <jakub@redhat.com>
7042         PR c++/100957
7043         * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
7044         check TREE_CODE if OMP_CLAUSE_DECL is NULL.
7046 2021-06-08  Richard Biener  <rguenther@suse.de>
7048         PR middle-end/100951
7049         * tree-vect-generic.c (expand_vector_piecewise): Build a
7050         VECTOR_CST if all elements are constant.
7051         (expand_vector_condition): Likewise.
7052         (lower_vec_perm): Likewise.
7053         (expand_vector_conversion): Likewise.
7055 2021-06-08  Martin Liska  <mliska@suse.cz>
7057         * doc/invoke.texi: Document new param evrp-sparse-threshold.
7059 2021-06-08  Martin Liska  <mliska@suse.cz>
7061         * genautomata.c (create_automata): Fix typo.
7063 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
7065         PR tree-optimization/100794
7066         * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
7067         allow_unroll_p and only allow unrolling when it's true.
7068         (tree_predictive_commoning): Add parameter allow_unroll_p and
7069         adjust for it.
7070         (run_tree_predictive_commoning): Likewise.
7071         (pass_predcom::gate): Check flag_tree_loop_vectorize and
7072         global_options_set.x_flag_predictive_commoning.
7073         (pass_predcom::execute): Adjust for allow_unroll_p.
7075 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
7077         * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
7078         (tree_predictive_commoning_loop): Factor some cleanup stuffs into
7079         lambda function cleanup, remove scev_reset call, and adjust return
7080         value.
7081         (tree_predictive_commoning): Adjust for different changed values,
7082         only set flag TODO_update_ssa_only_virtuals if changed.
7083         (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
7084         from todo_flags_finish.
7086 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
7088         * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
7089         (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
7090         (sbr_sparse_bitmap::bitmap_set_quad): New.
7091         (sbr_sparse_bitmap::bitmap_get_quad): New.
7092         (sbr_sparse_bitmap::set_bb_range): New.
7093         (sbr_sparse_bitmap::get_bb_range): New.
7094         (sbr_sparse_bitmap::bb_range_p): New.
7095         (block_range_cache::block_range_cache): initialize bitmap obstack.
7096         (block_range_cache::~block_range_cache): Destruct obstack.
7097         (block_range_cache::set_bb_range): Decide when to utilze the
7098         sparse on entry cache.
7099         * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
7100         * params.opt (-param=evrp-sparse-threshold): New.
7102 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
7104         * bitmap.c (bitmap_set_aligned_chunk): New.
7105         (bitmap_get_aligned_chunk): New.
7106         (test_aligned_chunk): New.
7107         (bitmap_c_tests): Call test_aligned_chunk.
7108         * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
7110 2021-06-07  Uroš Bizjak  <ubizjak@gmail.com>
7112         PR target/100637
7113         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
7114         Handle V4QI mode.
7115         (ix86_expand_vector_init_one_nonzero): Ditto.
7116         (ix86_expand_vector_init_one_var): Ditto.
7117         (ix86_expand_vector_init_general): Ditto.
7118         * config/i386/mmx.md (vec_initv4qiqi): New expander.
7120 2021-06-07  Jeff Law  <jeffreyalaw@gmail.com>
7122         * config/h8300/movepush.md: Change most _clobber_flags
7123         patterns to instead use <cczn> subst.
7124         (movsi_cczn): New pattern with usable CC cases split out.
7125         (movsi_h8sx_cczn): Likewise.
7127 2021-06-07  Martin Liska  <mliska@suse.cz>
7129         * common/common-target.def: Split long lines and replace them
7130         with '\n\'.
7131         * target.def: Likewise.
7132         * doc/tm.texi: Re-generated.
7134 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
7136         PR target/100887
7137         * fold-const.c (fold_read_from_vector): Return NULL if trying to
7138         read from a CONSTRUCTOR with vector type elements.
7140 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
7142         PR middle-end/100898
7143         * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
7144         should copy any arguments.  Don't call gimple_call_num_args
7145         on id->call_stmt or call_stmt more than once.
7147 2021-06-07  liuhongt  <hongtao.liu@intel.com>
7149         PR target/100885
7150         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
7151         constraints.
7152         (<insn>v4siv4di2): Delete constraints for define_expand.
7154 2021-06-07  liuhongt  <hongtao.liu@intel.com>
7156         PR target/82735
7157         * config/i386/i386-expand.c (ix86_expand_builtin): Remove
7158         assignment of cfun->machine->has_explicit_vzeroupper.
7159         * config/i386/i386-features.c
7160         (ix86_add_reg_usage_to_vzerouppers): Delete.
7161         (ix86_add_reg_usage_to_vzeroupper): Ditto.
7162         (rest_of_handle_insert_vzeroupper): Remove
7163         ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
7164         of the function.
7165         (gate): Remove cfun->machine->has_explicit_vzeroupper.
7166         * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
7167         Declared.
7168         * config/i386/i386.c (ix86_insn_callee_abi): New function.
7169         (ix86_initialize_callee_abi): Ditto.
7170         (ix86_expand_avx_vzeroupper): Ditto.
7171         (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
7172         ABI.
7173         (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
7174         (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
7175         directly.
7176         * config/i386/i386.h (struct GTY(()) machine_function): Delete
7177         has_explicit_vzeroupper.
7178         * config/i386/i386.md (enum unspec): New member
7179         UNSPEC_CALLEE_ABI.
7180         (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
7181         define_constants for insn callee abi index.
7182         * config/i386/predicates.md (vzeroupper_pattern): Adjust.
7183         * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
7184         (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
7185         (*avx_vzeroupper): Rename to ..
7186         (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
7187         call_insn which has a special vzeroupper ABI.
7188         (*avx_vzeroupper_1): Deleted.
7190 2021-06-07  liuhongt  <hongtao.liu@intel.com>
7192         PR target/82735
7193         * df-scan.c (df_get_call_refs): When call_insn is a fake call,
7194         it won't use stack pointer reg.
7195         * final.c (leaf_function_p): When call_insn is a fake call, it
7196         won't affect caller as a leaf function.
7197         * reg-stack.c (callee_clobbers_any_stack_reg): New.
7198         (subst_stack_regs): When call_insn doesn't clobber any stack
7199         reg, don't clear the arguments.
7200         * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
7201         a insn.
7202         * shrink-wrap.c (requires_stack_frame_p): No need for stack
7203         frame for a fake call.
7204         * rtl.h (FAKE_CALL_P): New macro.
7206 2021-06-06  Eric Botcazou  <ebotcazou@adacore.com>
7208         * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
7209         to...
7210         (sparc_order_regs_for_local_alloc): ...this.
7211         (sparc_leaf_reg_remap): Declare.
7212         * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
7213         (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
7214         * config/sparc/sparc.c (leaf_reg_remap): Delete.
7215         (order_regs_for_local_alloc): Rename to...
7216         (sparc_order_regs_for_local_alloc): ...this.
7217         (sparc_leaf_reg_remap): New function.
7218         (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
7220 2021-06-06  David Edelsohn  <dje.gcc@gmail.com>
7222         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
7223         Use assemble_name to output BSS section name.
7225 2021-06-06  Uroš Bizjak  <ubizjak@gmail.com>
7227         * config/i386/constraints.md (Bs):
7228         Remove boolean operators from match_test RTX.
7229         (Bw): Ditto.
7230         (L): Ditto.
7231         (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
7232         (Wz): Ditto.
7234 2021-06-06  Martin Liska  <mliska@suse.cz>
7236         * doc/extend.texi: Add missing @headitem.
7237         * doc/invoke.texi: Likewise.
7238         * doc/objc.texi: Likewise.
7240 2021-06-06  Martin Liska  <mliska@suse.cz>
7242         * genhooks.c (emit_findices): Remove unused function.
7243         (emit_documentation): Do not call emit_findices
7244         and do not search for @Fcode directives.
7246 2021-06-06  Martin Liska  <mliska@suse.cz>
7248         * doc/invoke.texi: Remove extra character.
7250 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
7252         * config/sh/sh.md (doloop_end_split): Fix empty split condition.
7254 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
7256         * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
7257         *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
7258         *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
7259         *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
7261 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
7263         * config/or1k/or1k.md (*movdi): Fix empty split condition.
7265 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
7267         * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
7268         split condition.
7270 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
7272         * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
7273         *zero_extendsidi2): Fix empty split condition.
7275 2021-06-05  Jeff Law  <jeffreyalaw@gmail.com>
7277         * config/h8300/addsub.md: Fix split condition in define_insn_and_split
7278         patterns.
7279         * config/h8300/bitfield.md: Likewise.
7280         * config/h8300/combiner.md: Likewise.
7281         * config/h8300/divmod.md: Likewise.
7282         * config/h8300/extensions.md: Likewise.
7283         * config/h8300/jumpcall.md: Likewise.
7284         * config/h8300/movepush.md: Likewise.
7285         * config/h8300/multiply.md: Likewise.
7286         * config/h8300/other.md: Likewise.
7287         * config/h8300/shiftrotate.md: Likewise.
7288         * config/h8300/logical.md: Likewise.  Fix split pattern to use
7289         code iterator that somehow slipped through.
7291 2021-06-04  Tobias Burnus  <tobias@codesourcery.com>
7293         PR middle-end/100905
7294         * tree-nested.c (convert_nonlocal_omp_clauses,
7295         convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
7297 2021-06-04  Martin Sebor  <msebor@redhat.com>
7299         PR middle-end/100732
7300         * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
7301         with either source or destination argument of invalid type.
7302         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
7303         calls with arguments of invalid type.
7305 2021-06-04  Martin Sebor  <msebor@redhat.com>
7307         * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
7308         order.
7309         (attr_access::vla_bounds): Also handle VLA bounds.
7311 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
7313         * config/i386/predicates.md (GOT_memory_operand):
7314         Implement using match_code RTXes.
7315         (GOT32_symbol_operand): Ditto.
7317 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
7319         PR target/100637
7320         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
7321         Handle V2HI mode.
7322         (ix86_expand_vector_init_general): Ditto.
7323         Use SImode instead of word_mode for logic operations
7324         when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
7325         (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
7326         implemented by expand_vec_perm_1.
7327         (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
7328         should be implemented using standard shuffle patterns.
7329         (ix86_vectorize_vec_perm_const): Handle V2HImode.  Add V4HI and
7330         V2HI modes to modes, implementable with shuffle for one operand.
7331         * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
7332         (*pshufw_1): New insn pattern.
7333         (*vec_dupv2hi): Ditto.
7334         (vec_initv2hihi): New expander.
7336 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
7338         * config/arm/vfp.md (no_literal_pool_df_immediate,
7339         no_literal_pool_sf_immediate): Fix empty split condition.
7341 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
7343         * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
7344         *tls_dynamic_gnu2_combine_32): Fix empty split condition.
7345         * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
7346         *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
7347         *<sse4_1_avx2>_pblendvb_lt): Likewise.
7349 2021-06-04  Jakub Jelinek  <jakub@redhat.com>
7351         PR target/100887
7352         * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
7353         concatenation from half-sized modes with TImode elements.
7355 2021-06-04  Claudiu Zissulescu  <claziss@synopsys.com>
7357         * config/arc/arc.c (arc_override_options): Disable millicode
7358         thunks when RF16 is on.
7360 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
7362         * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
7364 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
7366         * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
7367         Replace PROMOTE_MODE marco with its content.
7369 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
7371         * config/cris/cris.md (*addi_reload): Fix empty split condition.
7373 2021-06-03  Jim Wilson  <jimw@sifive.com>
7375         * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
7376         turn it on for all riscv targets.
7378 2021-06-03  Uroš Bizjak  <ubizjak@gmail.com>
7380         PR target/100637
7381         * config/i386/i386-expand.c (ix86_expand_vector_set):
7382         Handle V2HI and V4QI modes.
7383         (ix86_expand_vector_extract): Ditto.
7384         * config/i386/mmx.md (*pinsrw): New insn pattern.
7385         (*pinsrb): Ditto.
7386         (*pextrw): Ditto.
7387         (*pextrw_zext): Ditto.
7388         (*pextrb): Ditto.
7389         (*pextrb_zext): Ditto.
7390         (vec_setv2hi): New expander.
7391         (vec_extractv2hihi): Ditto.
7392         (vec_setv4qi): Ditto.
7393         (vec_extractv4qiqi): Ditto.
7394         (vec_setv8qi): Enable only for TARGET_SSE4_1.
7395         (vec_extractv8qiqi): Ditto.
7397 2021-06-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
7399         * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
7400         order to subf instruction.
7401         * config/rs6000/fusion.md: Regenerate.
7403 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
7405         * calls.c (get_size_range): Use range_of_expr instead of
7406         determine_value_range.
7407         * tree-affine.c (expr_to_aff_combination): Same.
7408         * tree-data-ref.c (split_constant_offset): Same.
7409         * tree-vrp.c (determine_value_range_1): Remove.
7410         (determine_value_range): Remove.
7411         * tree-vrp.h (determine_value_range): Remove.
7413 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
7415         * function-tests.c (test_ranges): Call gimple_range_tests.
7416         * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
7417         to get_tree_range.
7418         * gimple-range.cc (fur_source::get_operand): Do not call
7419         get_tree_range or gimple_range_global.
7420         get_tree_range.
7421         (get_tree_range): Move to value-query.cc.
7422         Call get_arith_expr_range.
7423         (gimple_ranger::range_of_expr): Add argument to get_tree_range.
7424         Include gimple-range-tests.cc.
7425         * gimple-range.h (fold_range): Add argument.
7426         (get_tree_range): Remove.
7427         * selftest.h (gimple_range_tests): New.
7428         * value-query.cc (global_range_query::range_of_expr): Add
7429         stmt argument.
7430         (range_query::get_tree_range): Move from gimple-range.cc.
7431         * value-query.h (class range_query): Add get_tree_range and
7432         get_arith_expr_range.  Make fur_source a friend.
7433         * vr-values.c (vr_values::range_of_expr): Pass stmt to
7434         get_tree_range.
7435         * gimple-range-tests.cc: New file.
7437 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
7439         * gimple-range.cc (gimple_ranger::export_global_ranges): Call
7440           update_global_range.
7441         * value-query.cc (update_global_range): New.
7442         * value-query.h (update_global_range): New.
7444 2021-06-03  David Malcolm  <dmalcolm@redhat.com>
7446         * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
7447         printing the same location twice if there are fix-it hints,
7448         multiple locations, or a label.
7450 2021-06-03  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7452         * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
7453         thresholds to narrow the upper bound on epilogue iterations.
7455 2021-06-03  Christophe Lyon  <christophe.lyon@linaro.org>
7457         * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
7458         (mve_vabsq_s<mode>): Likewise.
7459         * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
7460         * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
7461         * config/arm/vec-common.md (neg<mode>2): Rename to
7462         <absneg_str><mode>2.
7464 2021-06-03  Claudiu Zissulescu  <claziss@synopsys.com>
7466         * common/config/arc/arc-common.c (arc_option_optimization_table):
7467         Remove malign-call.
7468         * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
7469         * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
7470         (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
7471         * config/arc/arc.md (abssi2_mixed): Remove pattern.
7472         * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
7473         (malign-call): Likewise.
7474         (mmixed-code): Likewise.
7475         * doc/invoke.texi (ARC): Update doc.
7477 2021-06-03  Martin Liska  <mliska@suse.cz>
7479         * common.opt: Use proper Enum values.
7480         * opts.c (COVERAGE_SANITIZER_OPT): Remove.
7481         (parse_sanitizer_options): Handle only sanitizer_opts.
7482         (common_handle_option): Just assign value.
7484 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
7486         PR ipa/99122
7487         * tree-inline.c (inline_forbidden_p): Remove test on return type.
7489 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
7491         * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
7492         DW_OP_GNU_variable_value referencing an existing DIE at file scope.
7493         (type_byte_size): Inline into...
7494         (add_byte_size_attribute): ...this and call add_scalar_info.
7496 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
7498         * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
7499         (typed_binop_from_tree): New function.
7500         (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
7501         turn a divide by a power of 2 into a shift.
7502         <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
7503         size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
7504         typed divide by calling typed_binop_from_tree.
7506 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
7508         * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
7509         (is_handled_procedure_type): Likewise.
7510         (struct loc_descr_context): Add strict_signedness field.
7511         (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
7512         DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
7513         (resolve_args_picking): Minor tweak.
7514         (function_to_dwarf_procedure): Initialize strict_signedness field.
7515         (type_byte_size): Likewise.
7516         (field_byte_offset): Likewise.
7517         (gen_descr_array_type_die): Likewise.
7518         (gen_variant_part): Likewise.
7519         (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
7520         to true when a context is present before evaluating the arguments.
7521         <COND_EXPR>: Do not generate a useless comparison with zero.
7522         When dereferencing an address, if strict_signedness is true and the
7523         type is small and signed, use DW_OP_deref_type to do the dereference
7524         and then DW_OP_convert to convert back to the generic type.
7526 2021-06-03  Jakub Jelinek  <jakub@redhat.com>
7528         PR c++/100859
7529         * tree-inline.c (copy_tree_body_r): Handle iterators on
7530         OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
7532 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
7534         * config/arc/arc.md (*bbit_di): Remove.
7536 2021-06-02  Christoph Muellner  <cmuellner@gcc.gnu.org>
7538         PR rtl-optimization/100264
7539         * ree.c (get_sub_rtx): Ignore SET expressions without register
7540         destinations and remove assertion, as it is not valid anymore
7541         with this new behaviour.
7542         (merge_def_and_ext): Eliminate destination check for register
7543         as such SET expressions can't occur anymore.
7544         (combine_reaching_defs): Likewise.
7546 2021-06-02  Jakub Jelinek  <jakub@redhat.com>
7548         PR target/100841
7549         * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
7550         -Wtype-limits warnings.
7551         (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
7552         in operands to avoid -Wsign-compare warnings.
7554 2021-06-02  Pat Haugen  <pthaugen@linux.ibm.com>
7556         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
7557         gen_frame_store.
7559 2021-06-02  Vineet Gupta  <vgupta@synopsys.com>
7561         * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
7563 2021-06-02  Ilya Leoshkevich  <iii@linux.ibm.com>
7565         * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
7566         constraint.
7567         * config/s390/subst.md(cconly_subst): Use a single constraint
7568         in (match_scratch).
7570 2021-06-02  Martin Liska  <mliska@suse.cz>
7572         * ipa-icf.h: Use auto_vec for memory_access_types.
7574 2021-06-02  Jeff Law  <jeffreyalaw@gmail.com>
7576         * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
7577         argument from prototype.
7578         (output_logical_op): Add rtx_code argument.
7579         (compute_logical_op_length): Likewise.
7580         * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
7581         to compute_a_shift_length.
7582         (output_logical_op); New argument with the rtx code rather than
7583         extracting it from an operand.  Handle QImode too.
7584         (compute_logical_op_length): Similary.
7585         (compute_a_shift_length): Drop unused argument.
7586         * config/h8300/h8300.md (logicals): New code iterator.
7587         * config/h8300/logical.md (<code><mode>3 expander): Combine
7588         the "and" expander with the "ior"/"xor" expander.
7589         (bclr<mode>msx): Combine the QI/HI mode patterns.
7590         (<logical><mode>3 insns): Use code iterator rather than match_operator.
7591         Handle QImode as well.   Update call to output_logical_op and
7592         compute_logical_op_length to pass in rtx_code
7593         Fix split condition on all define_insn_and_split patterns.
7594         (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
7595         the flags and setting ZN via existing define_subst.
7596         * config/h8300/shiftrotate.md: Drop unused argument from
7597         calls to compute_a_shift_length.
7598         Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
7600 2021-06-01  Andrew Pinski  <apinski@marvell.com>
7602         PR tree-optimization/25290
7603         * tree-ssa-phiopt.c (match_simplify_replacement):
7604         New function.
7605         (tree_ssa_phiopt_worker): Use match_simplify_replacement.
7606         (two_value_replacement): Change the comment about
7607         conditional_replacement.
7608         (conditional_replacement): Delete.
7610 2021-06-01  Andrew Pinski  <apinski@marvell.com>
7612         PR tree-optimization/95481
7613         * tree-tailcall.c (find_tail_calls): Handle empty typed
7614         return decls.
7616 2021-06-01  Andrew Pinski  <apinski@marvell.com>
7618         * gimplify.c (zero_sized_field_decl): Delete
7619         (zero_sized_type): Delete
7620         (gimplify_init_ctor_eval): Use is_empty_type instead
7621         of zero_sized_field_decl.
7622         (gimplify_modify_expr): Use is_empty_type instead of
7623         zero_sized_type.
7625 2021-06-01  Jason Merrill  <jason@redhat.com>
7627         PR c++/91859
7628         * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
7630 2021-06-01  Jason Merrill  <jason@redhat.com>
7632         PR c++/94492
7633         * diagnostic.h (warning_enabled_at): Declare.
7634         * diagnostic.c (diagnostic_enabled): Factor out from...
7635         (diagnostic_report_diagnostic): ...here.
7636         (warning_enabled_at): New.
7638 2021-06-01  Aldy Hernandez  <aldyh@redhat.com>
7640         * gimple-ssa-evrp.c: Enable exporting of global ranges.
7642 2021-06-01  Martin Liska  <mliska@suse.cz>
7644         PR other/100826
7645         * doc/invoke.texi: Mention that -fgcse-after-reload
7646         is enabled with -O3.
7648 2021-06-01  liuhongt  <hongtao.liu@intel.com>
7650         PR tree-optimization/98365
7651         * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
7652         (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
7653         (convert_scalar_cond_reduction): Ditto.
7654         (predicate_scalar_phi): Ditto.
7656 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
7658         PR tree-optimization/100781
7659         * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
7660         value calculation by default.
7661         (ranger_cache::enable_new_values): New.
7662         (ranger_cache::disable_new_values): New.
7663         (ranger_cache::push_poor_value): Check if new values are allowed.
7664         * gimple-range-cache.h (class ranger_cache): New member/methods.
7665         * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
7666         statement, and disable/renable new value calculation.
7668 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
7670         * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
7671         (ranger_cache::range_of_def): New.
7672         (ranger_cache::entry_range): New.
7673         (ranger_cache::exit_range): New.
7674         (ranger_cache::range_of_expr): Adjust.
7675         (ranger_cache::range_on_edge): Adjust.
7676         (ranger_cache::propagate_cache): Call exit_range directly.
7677         * gimple-range-cache.h (class ranger_cache): Adjust.
7679 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
7681         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
7682         gori_compute being a member rather than base class.
7683         dervied call to member call.
7684         (ranger_cache::dump): No longer dump gori_map.
7685         (ranger_cache::dump_bb): New.
7686         (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
7687         being a member rather than base class.
7688         (ranger_cache::set_global_range): Ditto.
7689         (ranger_cache::ssa_range_in_bb): Ditto.
7690         (ranger_cache::range_of_expr): New.
7691         (ranger_cache::range_on_edge): New.
7692         (ranger_cache::block_range): Adjust for gori_computes.  Debug changes.
7693         (ranger_cache::propagate_cache):  Adjust debugging output.
7694         (ranger_cache::fill_block_cache): Adjust for gori_computes.  Debug
7695         output changes.
7696         * gimple-range-cache.h (class ranger_cache): Make gori_compute a
7697         member, and inherit from range_query instead.
7698         (ranger_cache::dump_bb): New. split from dump.
7699         * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
7700         (gori_compute::expr_range_at_stmt): Delete.
7701         (gori_compute::compute_name_range_op): Delete.
7702         (gori_compute::compute_operand_range_switch): Add fur_source.
7703         (gori_compute::compute_operand_range): Add fur_source param, inline
7704         old compute_name_range_op and optimize_logical_operands.
7705         (struct tf_range): Delete.
7706         (gori_compute::logical_combine): Adjust
7707         (gori_compute::optimize_logical_operands): Delete.
7708         (gori_compute::compute_logical_operands_in_chain): Delete.
7709         (gori_compute::compute_logical_operands): Adjust.
7710         (gori_compute::compute_operand1_range): Adjust to fur_source.
7711         (gori_compute::compute_operand2_range): Ditto.
7712         (gori_compute::compute_operand1_and_operand2_range): Ditto.
7713         (gori_compute::outgoing_edge_range_p): Add range_query parameter,
7714         and adjust to fur_source.
7715         * gimple-range-gori.h (class gori_compute): Simplify and adjust to
7716         range_query and fur_source.
7717         * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
7718         from the ranger_cache..
7719         (gimple_ranger::fold_range_internal): Adjust to base class change of
7720         ranger_cache.
7721         (gimple_ranger::dump_bb): Adjust dump.
7722         * gimple-range.h (gimple_ranger):export gori computes object.
7724 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
7726         PR tree-optimization/100774
7727         * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
7728         Constant values are also not stale.
7729         (ranger_cache::set_global_range): Range invariant values should also
7730         have the correct timestamp.
7732 2021-05-31  Martin Liska  <mliska@suse.cz>
7734         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
7735         Unpack FUNCTION_DECL_DECL_TYPE.
7736         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
7737         Stream FUNCTION_DECL_DECL_TYPE instead of
7738         DECL_IS_OPERATOR_NEW_P.
7739         * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
7740         macro.
7741         (DECL_IS_OPERATOR_NEW_P): Likewise.
7742         (DECL_IS_OPERATOR_DELETE_P): Likewise.
7743         (DECL_LAMBDA_FUNCTION_P): Likewise.
7745 2021-05-31  Richard Biener  <rguenther@suse.de>
7747         PR c++/88601
7748         * internal-fn.c (expand_SHUFFLEVECTOR): Define.
7749         * internal-fn.def (SHUFFLEVECTOR): New.
7750         * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
7751         * doc/extend.texi: Document __builtin_shufflevector.
7753 2021-05-31  Peter Bergner  <bergner@linux.ibm.com>
7755         PR target/99842
7756         * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
7757         indexed form addresses.
7759 2021-05-29  Jeff Law  <jlaw@tachyum.com>
7761         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
7762         parameter.  Call callers fixed.
7763         (push): Likewise.
7764         (output_plussi): Add FALLTHRU markers.
7765         (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
7767 2021-05-29  Jakub Jelinek  <jakub@redhat.com>
7769         PR middle-end/99928
7770         * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
7771         combined with parallel, make sure to add shared clause to
7772         parallel for explicit linear clause.
7774 2021-05-29  Aldy Hernandez  <aldyh@redhat.com>
7776         PR tree-optimization/100787
7777         * gimple-ssa-evrp.c: Disable exporting of global ranges.
7779 2021-05-28  Jason Merrill  <jason@redhat.com>
7781         * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
7782         operator--, operator*, operator==, and operator!=.
7783         (class tsi_range): New.
7785 2021-05-28  Richard Biener  <rguenther@suse.de>
7787         PR tree-optimization/100778
7788         * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
7789         trapping ops in different BBs.
7791 2021-05-28  Richard Biener  <rguenther@suse.de>
7793         PR ipa/100791
7794         * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
7795         copy fntype from original call.
7797 2021-05-28  Martin Liska  <mliska@suse.cz>
7799         PR gcov-profile/100751
7800         * doc/gcov.texi: Revert partially a hunk that was wrong.
7802 2021-05-28  Cooper Qu  <cooper.qu@linux.alibaba.com>
7804         * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
7805         Defined.
7806         (HAVE_sync_compare_and_swaphi): Likewise.
7807         (HAVE_sync_compare_and_swapsi): Likewise.
7809 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
7811         PR middle-end/99928
7812         * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
7814 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
7816         * gimplify.c (gimplify_omp_affinity): New.
7817         (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
7818         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
7819         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
7820         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
7821         (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
7823 2021-05-28  Joern Rennecke  <joern.rennecke@riscy-ip.com>
7824             Richard Biener   <rguenther@suse.de>
7826         * match.pd <popcount & / + pattern matching>:
7827         When generating popcount directly fails, try doing it in two halves.
7829 2021-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7831         * Makefile.in (generated_files): Add gimple-match.c and
7832         generic-match.c
7834 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7836         * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
7838 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7840         * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
7842 2021-05-28  Kewen Lin  <linkw@linux.ibm.com>
7844         PR tree-optimization/99398
7845         * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
7846         where the fed operands are CTOR/CST and propagated through
7847         VIEW_CONVERT_EXPR.  Call vec_perm_indices::new_shrunk_vector.
7848         * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
7849         function.
7850         * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
7851         declare.
7853 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
7855         * config/i386/mmx.md (addv2sf3): Do not call
7856         ix86_fixup_binary_operands_no_copy.
7857         (subv2sf3): Ditto.
7858         (mulv2sf3): Ditto.
7859         (<smaxmin:code>v2sf3): Ditto.
7860         (<plusminus:insn><MMXMODEI:mode>3): Ditto.
7861         (<plusminus:insn><VI_32:mode>3): Remove expander.
7862         (<plusminus:insn><VI_32:mode>3): Rename from
7863         "*<plusminus:insn><VI_32:mode>3".
7864         (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
7865         (mulv2hi3): Remove expander.
7866         (mulv2hi3): Rename from *mulv2hi3.
7867         (<s>mulv2hi3_highpart): Remove expander.
7868         (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
7869         (<smaxmin:code><MMXMODE14:mode>3): Rename from
7870         "*mmx_<smaxmin:code><MMXMODE14:mode>3".
7871         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
7872         (SMAXMIN_MMXMODEI): Remove mode iterator.
7873         (<smaxmin:code>v4hi3): New expander.
7874         (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
7875         (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
7876         (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
7877         (SMAXMIN_VI_32): Remove mode iterator.
7878         (<umaxmin:code><MMXMODE24:mode>3): Rename from
7879         "*mmx_<umaxmin:code><MMXMODE24:mode>3".
7880         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
7881         (UMAXMIN_MMXMODEI): Remove mode iterator.
7882         (<umaxmin:code>v8qi3): New expander.
7883         (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
7884         (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
7885         (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
7886         (UMAXMIN_VI_32): Remove mode iterator.
7887         (<any_shift:insn>v2hi3): Remove expander.
7888         (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
7889         (<any_logic:code><MMXMODEI:mode>3): Do not call
7890         ix86_fixup_binary_operands_no_copy.
7891         (<any_logic:code><VI_32:mode>3): Remove expander.
7892         (<any_logic:code><VI_32:mode>3): Rename from
7893         "*<any_logic:code><VI_32:mode>3".
7894         (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
7895         * config/i386/sse.md (div<VF2:mode>3): Do not call
7896         ix86_fixup_binary_operands_no_copy.
7897         (div<VF1:mode>3): Ditto.
7898         (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
7899         (smulhrsv4hi3): Ditto.
7900         (smulhrsv2hi3): Ditto.
7902 2021-05-27  Martin Sebor  <msebor@redhat.com>
7904         * ggc.h (gt_ggc_mx): Add overloads for all integers.
7905         (gt_pch_nx):  Same.
7906         * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
7907         integers.
7908         (hash_map::operator==): New function.
7910 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
7912         PR target/100637
7913         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
7914         For TARGET_XOP bypass SSE comparisons for all supported vector modes.
7915         * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
7916         (*xop_maskcmp<VI_32:mode>3): Ditto.
7917         (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
7918         (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
7920 2021-05-27  Richard Earnshaw  <rearnsha@arm.com>
7922         PR target/100767
7923         * config/arm/arm.c (arm_configure_build_target): Remove parameter
7924         opts_set, directly check opts parameters for being non-null.
7925         (arm_option_restore): Update call to arm_configure_build_target.
7926         (arm_option_override): Likewise.
7927         (arm_can_inline_p): Likewise.
7928         (arm_valid_target_attribute_tree): Likewise.
7929         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
7930         * config/arm/arm-protos.h (arm_configure_build_target): Adjust
7931         prototype.
7933 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
7935         * vr-values.c (simplify_conversion_using_ranges): Use
7936         get_range_query instead of get_global_range_query.
7938 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
7940         * gimple-range.cc (get_range_global): Move to value-query.cc.
7941         (gimple_range_global): Same.
7942         (get_global_range_query): Same.
7943         (global_range_query::range_of_expr): Same.
7944         * gimple-range.h (class global_range_query): Move to
7945         value-query.h.
7946         (gimple_range_global): Same.
7947         * tree-ssanames.c (get_range_info): Move to value-query.cc.
7948         (get_ptr_nonnull): Same.
7949         * tree-ssanames.h (get_range_info): Remove.
7950         (get_ptr_nonnull): Remove.
7951         * value-query.cc (get_ssa_name_range_info): Move from
7952         tree-ssanames.c.
7953         (get_ssa_name_ptr_info_nonnull): Same.
7954         (get_range_global): Move from gimple-range.cc.
7955         (gimple_range_global): Same.
7956         (get_global_range_query): Same.
7957         (global_range_query::range_of_expr): Same.
7958         * value-query.h (class global_range_query): Move from
7959         gimple-range.h.
7960         (gimple_range_global): Same.
7962 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
7964         PR target/100637
7965         * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
7966         (uavgv2hi3_ceil): Ditto.
7968 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7970         PR c/100653
7971         * doc/extend.texi (scalar_storage_order): Rephrase slightly.
7973 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
7975         * tree-ssanames.c (get_range_info): Merge both copies of
7976         get_range_info into one that works with irange.
7977         * tree-ssanames.h (get_range_info): Remove version that works on
7978         wide_ints.
7980 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
7982         * builtins.c (check_nul_terminated_array): Convert to get_range_query.
7983         (expand_builtin_strnlen): Same.
7984         (determine_block_size): Same.
7985         * fold-const.c (expr_not_equal_to): Same.
7986         * gimple-fold.c (size_must_be_zero_p): Same.
7987         * gimple-match-head.c: Include gimple-range.h.
7988         * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
7989         * gimple-ssa-warn-restrict.c
7990         (builtin_memref::extend_offset_range): Same.
7991         * graphite-sese-to-poly.c (add_param_constraints): Same.
7992         * internal-fn.c (get_min_precision): Same.
7993         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
7994         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
7995         * match.pd: Same.
7996         * tree-data-ref.c (split_constant_offset): Same.
7997         (dr_step_indicator): Same.
7998         * tree-dfa.c (get_ref_base_and_extent): Same.
7999         * tree-scalar-evolution.c (iv_can_overflow_p): Same.
8000         * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
8001         (determine_value_range): Same.
8002         (record_nonwrapping_iv): Same.
8003         (infer_loop_bounds_from_signedness): Same.
8004         (scev_var_range_cant_overflow): Same.
8005         * tree-ssa-phiopt.c (two_value_replacement): Same.
8006         * tree-ssa-pre.c (insert_into_preds_of_block): Same.
8007         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
8008         * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
8009         (get_range): Same.
8010         (dump_strlen_info): Same.
8011         (set_strlen_range): Same.
8012         (maybe_diag_stxncpy_trunc): Same.
8013         (get_len_or_size): Same.
8014         (handle_integral_assign): Same.
8015         * tree-ssa-structalias.c (find_what_p_points_to): Same.
8016         * tree-ssa-uninit.c (find_var_cmp_const): Same.
8017         * tree-switch-conversion.c (bit_test_cluster::emit): Same.
8018         * tree-vect-patterns.c (vect_get_range_info): Same.
8019         (vect_recog_divmod_pattern): Same.
8020         * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
8021         (register_edge_assert_for_2): Same.
8022         (determine_value_range_1): Same.
8023         * tree.c (get_range_pos_neg): Same.
8024         * vr-values.c (vr_values::get_lattice_entry): Same.
8025         (vr_values::update_value_range): Same.
8026         (simplify_conversion_using_ranges): Same.
8028 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
8030         * gimple-ssa-warn-alloca.c (alloca_call_type): Use
8031           get_range_query instead of query argument.
8032         (pass_walloca::execute): Enable and disable global ranger.
8034 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
8036         * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
8037         enable_ranger.
8038         (rvrp_folder::~rvrp_folder): Call disable_ranger.
8039         (hybrid_folder::hybrid_folder): Call enable_ranger.
8040         (hybrid_folder::~hybrid_folder): Call disable_ranger.
8042 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
8044         * function.c (allocate_struct_function): Set cfun->x_range_query.
8045         * function.h (struct function): Declare x_range_query.
8046         (get_range_query): New.
8047         (get_global_range_query): New.
8048         * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
8049         Remove call to safe_grow_cleared.
8050         * gimple-range.cc (get_range_global): New.
8051         (gimple_range_global): Move from gimple-range.h.
8052         (get_global_range_query): New.
8053         (global_range_query::range_of_expr): New.
8054         (enable_ranger): New.
8055         (disable_ranger): New.
8056         * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
8057         (class global_range_query): New.
8058         (enable_ranger): New.
8059         (disable_ranger): New.
8060         * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
8061         dump_all_value_ranges to dump.
8062         * tree-vrp.c (vrp_prop::finalize): Same.
8063         * value-query.cc (range_query::dump): New.
8064         * value-query.h (range_query::dump): New.
8065         * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
8066         (vr_values::dump): ...this.
8067         * vr-values.h (class vr_values): Rename dump_all_value_ranges to
8068         dump and make virtual.
8070 2021-05-26  Uroš Bizjak  <ubizjak@gmail.com>
8072         * config/i386/i386.c (ix86_autovectorize_vector_modes):
8073         Add V4QImode and V16QImode for TARGET_SSE2.
8074         * doc/sourcebuild.texi (Vector-specific attributes):
8075         Add vect64 and vect32 description.
8077 2021-05-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8079         * gimple-range-gori.cc (range_def_chain::register_dependency):
8080         Resize m_def_chain when needed.
8082 2021-05-26  Christophe Lyon  <christophe.lyon@linaro.org>
8084         * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
8085         * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
8086         * config/arm/vec-common.md: .. here. Add support for MVE.
8088 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
8090         * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
8091         register keywords.
8092         * config/microblaze/microblaze.c (microblaze_legitimize_address,
8093         call_internal1,
8094         microblaze_option_override, print_operand): Likewise.
8095         * config/microblaze/microblaze.md (call_internal_plt,
8096         call_value_intern_plt, call_value_intern): Likewise.
8097         * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
8098         * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
8099         call_value_multiple_internal1): Likewise.
8100         * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
8102 2021-05-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8104         * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
8105         arc_ccfsm_advance, symbolic_reference_mentioned_p,
8106         arc_raw_symbolic_reference_mentioned_p): Remove register
8107         keyword.
8109 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
8111         PR libgomp/100573
8112         * omp-low.c: Include omp-offload.h.
8113         (create_omp_child_function): If current_function_decl has
8114         "omp declare target" attribute and is_gimple_omp_offloaded,
8115         remove that attribute from the copy of attribute list and
8116         add "omp target entrypoint" attribute instead.
8117         (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
8118         variables for offloading if in omp_maybe_offloaded_ctx.
8119         * omp-offload.c (pass_omp_target_link::execute): Nullify second
8120         argument to GOMP_target_data_ext in offloaded code.
8122 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
8124         * config/csky/csky.c (csky_can_change_mode_class): Delete.
8125         For csky, HF/SF mode use the low bits of VREGS.
8127 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
8129         * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
8130         DECL which is a reference for OMP.
8132 2021-05-26  Martin Liska  <mliska@suse.cz>
8134         PR gcov-profile/100751
8135         * doc/gcov.texi: Document that __gcov_dump can be called just
8136         once and that __gcov_reset resets run-time counters.
8138 2021-05-26  Martin Liska  <mliska@suse.cz>
8140         * doc/install.texi: Port relevant part from install-old.texi
8141         and re-generate list of CPUs and systems.
8143 2021-05-26  Martin Liska  <mliska@suse.cz>
8145         * Makefile.in: Remove it.
8146         * doc/include/fdl.texi: Update next/previous chapters.
8147         * doc/install.texi: Likewise.
8148         * doc/install-old.texi: Removed.
8150 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
8152         * config/csky/csky.c (ck810_legitimate_index_p): Support
8153         "base + index" with DF mode.
8154         * config/csky/constraints.md ("Y"): New constraint for memory operands
8155         without index register.
8156         * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
8157         when mov between memory and general registers, and lower their priority.
8158         * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
8160 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
8162         * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
8164 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
8166         * config/csky/csky.md (untyped_call): Emit clobber for return
8167         registers to mark them used.
8169 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
8171         * config/csky/csky.md (cskyv2_sextend_ldbs): New.
8173 2021-05-26  Andrew Pinski  <apinski@marvell.com>
8175         * match.pd (x < 0 ? ~y : y): New patterns.
8177 2021-05-26  Andrew Pinski  <apinski@marvell.com>
8179         * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
8180         A?POW2:0 and A?0:POW2.
8182 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
8184         * gimple-range-gori.cc (class logical_stmt_cache): Delete
8185         (logical_stmt_cache::logical_stmt_cache ): Delete.
8186         (logical_stmt_cache::~logical_stmt_cache): Delete.
8187         (logical_stmt_cache::cache_entry::dump): Delete.
8188         (logical_stmt_cache::get_range): Delete.
8189         (logical_stmt_cache::cached_name ): Delete.
8190         (logical_stmt_cache::same_cached_name): Delete.
8191         (logical_stmt_cache::cacheable_p): Delete.
8192         (logical_stmt_cache::slot_diagnostics ): Delete.
8193         (logical_stmt_cache::dump): Delete.
8194         (gori_compute_cache::gori_compute_cache): Delete.
8195         (gori_compute_cache::~gori_compute_cache): Delete.
8196         (gori_compute_cache::compute_operand_range): Delete.
8197         (gori_compute_cache::cache_stmt): Delete.
8198         * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
8199         virtual.
8200         (class gori_compute_cache): Delete.
8202 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
8204         * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
8205         intead of m_cache.
8206         (fold_using_range::range_of_address): Adjust.
8207         (fold_using_range::range_of_phi): Adjust.
8208         * gimple-range.h (class fur_source): Adjust.
8209         (fur_source::fur_source): Adjust.
8211 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
8213         * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
8214         from expr_range_in_bb and adjust.
8215         (gori_compute::compute_name_range_op): Adjust.
8216         (gori_compute::optimize_logical_operands): Adjust.
8217         (gori_compute::compute_logical_operands_in_chain): Adjust.
8218         (gori_compute::compute_operand1_range): Adjust.
8219         (gori_compute::compute_operand2_range): Adjust.
8220         (ori_compute_cache::cache_stmt): Adjust.
8221         * gimple-range-gori.h (gori_compute): Rename prototype.
8223 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
8225         * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
8226         checked only after range_of_stmt, not range_on_entry.
8227         (gimple_ranger::range_on_entry): Check for non-null in any
8228         predecessor block, if it is not already non-null.
8229         (gimple_ranger::range_on_exit): DOnt check for non-null after
8230         range on entry call.
8231         (gimple_ranger::dump_bb): New.  Split from dump.
8232         (gimple_ranger::dump): Adjust.
8233         * gimple-range.h (class gimple_ranger): Adjust.
8235 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
8237         * gimple-range-cache.cc (struct range_timestamp): Delete.
8238         (class temporal_cache): Adjust.
8239         (temporal_cache::get_timestamp): Delete.
8240         (temporal_cache::set_dependency): Delete.
8241         (temporal_cache::temporal_value): Adjust.
8242         (temporal_cache::current_p): Take dependencies as params.
8243         (temporal_cache::set_timestamp): Adjust.
8244         (temporal_cache::set_always_current): Adjust.
8245         (ranger_cache::get_non_stale_global_range): Adjust.
8246         (ranger_cache::register_dependency): Delete.
8247         * gimple-range-cache.h (class range_cache): Adjust.
8249 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
8251         * gimple-range-gori.cc (range_def_chain::range_def_chain): init
8252         bitmap obstack.
8253         (range_def_chain::~range_def_chain): Dispose of obstack rather than
8254         each individual bitmap.
8255         (range_def_chain::set_import): New.
8256         (range_def_chain::get_imports): New.
8257         (range_def_chain::chain_import_p): New.
8258         (range_def_chain::register_dependency): Rename from build_def_chain
8259         and set imports.
8260         (range_def_chain::def_chain_in_bitmap_p): New.
8261         (range_def_chain::add_def_chain_to_bitmap): New.
8262         (range_def_chain::has_def_chain): Just check first depenedence.
8263         (range_def_chain::get_def_chain): Process imports, use generic
8264         register_dependency routine.
8265         (range_def_chain::dump): New.
8266         (gori_map::gori_map): Allocate import list.
8267         (gori_map::~gori_map): Release imports.
8268         (gori_map::exports): Check for past allocated block size.
8269         (gori_map::imports): New.
8270         (gori_map::def_chain_in_export_p): Delete.
8271         (gori_map::is_import_p): New.
8272         (gori_map::maybe_add_gori): Handle imports.
8273         (gori_map::dump): Adjust output, add imports.
8274         (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
8275         (gori_export_iterator::gori_export_iterator): New.
8276         (gori_export_iterator::next): New.
8277         (gori_export_iterator::get_name): New.
8278         * gimple-range-gori.h (range_def_chain): Add imports and direct
8279         dependecies via struct rdc.
8280         (range_def_chain::depend1): New.
8281         (range_def_chain::depend2): New.
8282         (class gori_map): Adjust.
8283         (FOR_EACH_GORI_IMPORT_NAME): New.
8284         (FOR_EACH_GORI_EXPORT_NAME): New.
8285         (class gori_export_iterator): New.
8287 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
8289         * gimple-range-cache.cc (ranger_cache::ranger_cache):  Move initial
8290         export cache filling to here.
8291         * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
8293 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
8295         * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
8296         (gori_map): Move to gimple-range-gori.h.
8297         (gori_compute::gori_compute): Adjust.
8298         (gori_compute::~gori_compute): Delete.
8299         (gori_compute::compute_operand_range_switch): Adjust.
8300         (gori_compute::compute_operand_range): Adjust.
8301         (gori_compute::compute_logical_operands): Adjust.
8302         (gori_compute::has_edge_range_p ): Adjust.
8303         (gori_compute::set_range_invariant): Delete.
8304         (gori_compute::dump): Adjust.
8305         (gori_compute::outgoing_edge_range_p): Adjust.
8306         * gimple-range-gori.h (class range_def_chain): Relocate here.
8307         (class gori_map): Relocate here.
8308         (class gori_compute): Inherit from gori_map, and adjust.
8310 2021-05-25  Aldy Hernandez  <aldyh@redhat.com>
8312         * value-range.cc (range_tests_legacy): Use
8313         build_nonstandard_integer_type instead of int and short.
8315 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8317         * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
8318         when really creating an initialization statement for it.
8320 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8322         * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
8324 2021-05-25  Kito Cheng  <kito.cheng@sifive.com>
8326         * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
8328 2021-05-25  Martin Liska  <mliska@suse.cz>
8330         PR tree-optimization/92860
8331         PR target/99592
8332         * optc-save-gen.awk: Remove exceptions.
8334 2021-05-25  Martin Liska  <mliska@suse.cz>
8336         * asan.h (sanitize_coverage_p): New function.
8337         * doc/extend.texi: Document it.
8338         * fold-const.c (fold_range_test): Use sanitize_flags_p
8339         instead of flag_sanitize_coverage.
8340         (fold_truth_andor): Likewise.
8341         * sancov.c: Likewise.
8342         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
8343         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
8344         -fsanitize-coverage when inlining.
8346 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
8348         * config/csky/csky-modes.def : Fix copyright.
8350 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
8352         * config/csky/csky-modes.def : Amend copyright.
8353         * config/csky/csky_insn_fpuv2.md : Likewise.
8354         * config/csky/csky_insn_fpuv3.md : Likewise.
8356 2021-05-25  Richard Biener  <rguenther@suse.de>
8358         PR middle-end/100727
8359         * calls.c (initialize_argument_information): Explicitely test
8360         for WITH_SIZE_EXPR.
8361         * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
8363 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
8365         * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
8366         HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
8367         the signle definition. The signle definition may not work well
8368         at simplify_subreg_regno().
8369         (HARD_FRAME_POINTER_REGNUM): New.
8370         (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
8371         * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
8372         csky_initial_elimination_offset, csky_expand_prologue,
8373         csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
8375 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
8377         * config/csky/csky.c (csky_option_override):
8378         Init csky_arch_isa_features[] in advance, so TARGET_DSP
8379         and TARGET_DIV can be set well.
8381 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
8383         * config/csky/constraints.md ("l", "h"): Delete.
8384         * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
8385         REG_CLASS_CONTENTS):  Delete LO_REGS and HI_REGS.
8386         * config/csky/csky.c (regno_reg_classm,
8387         csky_secondary_reload, csky_register_move_cost):
8388         Use HILO_REGS instead of LO_REGS and HI_REGS.
8390 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
8392         * config/csky/constraints.md ("W"): New constriant for mem operand
8393         with base reg, index register.
8394         ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
8395         "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
8396         constraint.
8397         ("Dv"): New constraint for const double value that can be used at
8398         fmovi instruction.
8399         * config/csky/csky-modes.def (HFmode): New mode.
8400         * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
8401         to "csky_valid_mem_constraint_operand" and support new constraint
8402         "W".
8403         (csky_get_movedouble_length): New.
8404         (fpuv3_output_move): New.
8405         (fpuv3_const_double): New.
8406         * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
8407         (decompose_csky_address): Refine.
8408         (csky_print_operand): New "CONST_DOUBLE" operand.
8409         (csky_output_move): Support fpv3 instructions.
8410         (csky_get_movedouble_length): New.
8411         (fpuv3_output_move): New.
8412         (fpuv3_const_double): New.
8413         (csky_emit_compare): Cover float comparsion.
8414         (csky_emit_compare_float): Refine.
8415         (csky_vaild_fpuv2_mem_operand): Rename to
8416         "csky_valid_mem_constraint_operand" and support new constraint "W".
8417         (ck860_rtx_costs): New.
8418         (csky_rtx_costs): Add the cost calculation of CK860.
8419         (regno_reg_class): New vregs for fpuv3.
8420         (csky_dbx_regno): Likewise.
8421         (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
8422         (csky_conditional_register_usage): Suporrot fpuv3.
8423         (csky_dwarf_register_span): Suporrot fpuv3.
8424         (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
8425         (ck810_legitimate_index_p): Support fp16.
8426         * config/csky/csky.h (TARGET_TLS): ADD CK860.
8427         (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
8428         (TARGET_SINGLE_FPU): Support fpuv3.
8429         (TARGET_SUPPORT_FPV3): New.
8430         (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
8431         (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
8432          REG_CLASS_CONTENTS): Support fpuv3.
8433         * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
8434         (csky_movsf_fpv2): Likewise.
8435         (ck801_movsf): Likewise.
8436         (csky_movsf): Likewise.
8437         (movdf): Likewise.
8438         (csky_movdf_fpv2): Likewise.
8439         (ck801_movdf): Likewise.
8440         (csky_movdf): Likewise.
8441         (movsicc): Refine. Use "comparison_operatior" instead of
8442         "ordered_comparison_operatior".
8443         (addsicc): Likewise.
8444         (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
8445         (call_value_internal_vh): New.
8446         * config/csky/csky_cores.def (CK860): New arch and cpu.
8447         (fpv3_hf): New.
8448         (fpv3_hsf): New.
8449         (fpv3_sdf): New.
8450         (fpv3): New.
8451         * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
8452         into emit-patterns and match-patterns, remain the emit-patterns here,
8453         and move the match-patterns to csky_insn_fpuv2.md or
8454         csky_insn_fpuv3.md.
8455         * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
8456         * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
8457         isntructions.
8458         * config/csky/csky_isa.def (fcr): New.
8459         (fpv3_hi): New.
8460         (fpv3_hf): New.
8461         (fpv3_sf): New.
8462         (fpv3_df): New.
8463         (CK860): New definition for ck860.
8464         * config/csky/csky_tables.opt (ck860): New processors ck860,
8465         ck860f. And new arch ck860.
8466         (fpv3_hf): New.
8467         (fpv3_hsf): New.
8468         (fpv3_hdf): New.
8469         (fpv3): New.
8470         * config/csky/predicates.md (csky_float_comparsion_operator): Delete
8471         "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
8472         * config/csky/t-csky-elf: Support 860.
8473         * config/csky/t-csky-linux: Likewise.
8474         * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
8476 2021-05-24  Aaron Sawdey  <acsawdey@linux.ibm.com>
8478         * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
8479         add generation of logical-add and add-logical fusion pairs.
8480         * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
8481         and powerpc mask.
8482         * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
8483         logical-add and add-logical fusion by default.
8484         * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
8485         -mpower10-fusion-add-logical options.
8486         * config/rs6000/fusion.md: Regenerate file.
8488 2021-05-24  Aldy Hernandez  <aldyh@redhat.com>
8490         * value-range.cc (irange::legacy_equal_p): Check type when
8491         comparing VR_VARYING types.
8492         (range_tests_legacy): Test comparing VARYING ranges of different
8493         sizes.
8495 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
8497         * config/aarch64/aarch64.c (neoversen1_tunings):
8498         Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
8500 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
8502         * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
8503         extern weak symbols.  Limit symbol offsets for non-GOT symbols with
8504         PIC/PIE.
8506 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
8508         * config/arm/neon.md (vec_load_lanesxi<mode>)
8509         (vec_store_lanexoi<mode>): Move ...
8510         * config/arm/vec-common.md: here.
8512 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
8514         * config/arm/neon.md (vec_load_lanesoi<mode>)
8515         (vec_store_lanesoi<mode>): Move ...
8516         * config/arm/vec-common.md: here.
8518 2021-05-24  liuhongt  <hongtao.liu@intel.com>
8520         PR target/100660
8521         * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
8522         stmt with GIMPLE_NOP when lhs doesn't exist.
8524 2021-05-23  Uroš Bizjak  <ubizjak@gmail.com>
8526         PR target/100722
8527         * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
8528         New instruction pattern.
8529         (*push<VI_32:mode>2): Ditto.
8530         (push splitter for SSE registers): New splitter.
8532 2021-05-23  Andrew Pinski  <apinski@marvell.com>
8534         * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
8536 2021-05-22  Aaron Sawdey  <acsawdey@linux.ibm.com>
8538         * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
8539         * config/rs6000/fusion.md: Regenerate file.
8541 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
8543         * config/rs6000/genfusion.pl (gen_addadd): New function.
8544         * config/rs6000/fusion.md: Regenerate file.
8545         * config/rs6000/rs6000-cpus.def: Add
8546         OPTION_MASK_P10_FUSION_2ADD to masks.
8547         * config/rs6000/rs6000.c (rs6000_option_override_internal):
8548         Handle default value of OPTION_MASK_P10_FUSION_2ADD.
8549         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
8551 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
8553         PR middle-end/99928
8554         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
8555         * gimplify.c (enum gimplify_omp_var_data): Fix up
8556         GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
8557         (omp_lastprivate_for_combined_outer_constructs): If combined target
8558         has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
8559         GOVD_MAP | GOVD_SEEN.
8560         (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
8561         firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
8562         (gimplify_adjust_omp_clauses): For firstprivate clauses with
8563         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
8564         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
8565         let it be replaced by implicit map clause.
8567 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
8569         PR middle-end/99928
8570         * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
8571         function.
8572         (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
8573         (gimplify_omp_for): Likewise.
8575 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
8577         PR middle-end/90115
8578         * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
8579         'external' in blocks.
8581 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
8583         PR middle-end/90115
8584         * flag-types.h (enum openacc_privatization): New.
8585         * params.opt (-param=openacc-privatization): New.
8586         * doc/invoke.texi (openacc-privatization): Document it.
8587         * omp-general.h (get_openacc_privatization_dump_flags): New
8588         function.
8589         * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
8590         * omp-offload.c (execute_oacc_device_lower)
8591         <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
8592         * target.def (goacc.adjust_private_decl): Add 'location_t'
8593         parameter.
8594         * doc/tm.texi: Regenerate.
8595         * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
8596         * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
8597         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
8598         Likewise.  Preserve it for...
8599         (nvptx_goacc_expand_var_decl): ... use here.
8601 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
8603         * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
8604         DejaGnu selector.
8606 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
8608         PR middle-end/90115
8609         * omp-low.c (oacc_privatization_candidate_p): New function.
8610         (oacc_privatization_scan_clause_chain)
8611         (oacc_privatization_scan_decl_chain): Use it.  Also
8612         'gcc_checking_assert' that we're not seeing duplicates.
8614 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
8616         PR middle-end/90115
8617         * omp-offload.c (execute_oacc_device_lower): Skip processing if no
8618         work to be done.
8620 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
8622         PR middle-end/90115
8623         * omp-offload.c (execute_oacc_device_lower): Explain.
8625 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
8627         PR middle-end/90115
8628         * omp-offload.c (execute_oacc_device_lower)
8629         <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
8630         case, too.
8631         * internal-fn.c (expand_UNIQUE): Don't expect
8632         'IFN_UNIQUE_OACC_PRIVATE'.
8634 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
8636         PR middle-end/90115
8637         * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
8639 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
8641         PR middle-end/90115
8642         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
8643         (nvptx_goacc_expand_var_decl): Tighten.
8645 2021-05-21  Julian Brown  <julian@codesourcery.com>
8646             Chung-Lin Tang  <cltang@codesourcery.com>
8647             Thomas Schwinge  <thomas@codesourcery.com>
8649         PR middle-end/90115
8650         * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
8651         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
8652         * doc/tm.texi: Regenerate.
8653         * expr.c (expand_expr_real_1): Expand decls using the
8654         expand_var_decl OpenACC hook if defined.
8655         * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
8656         * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
8657         * omp-low.c (omp_context): Add oacc_privatization_candidates
8658         field.
8659         (lower_oacc_reductions): Add PRIVATE_MARKER parameter.  Insert
8660         before fork.
8661         (lower_oacc_head_tail): Add PRIVATE_MARKER parameter.  Modify
8662         private marker's gimple call arguments, and pass it to
8663         lower_oacc_reductions.
8664         (oacc_privatization_scan_clause_chain)
8665         (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
8666         New functions.
8667         (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
8668         * omp-offload.c (convert.h): Include.
8669         (oacc_loop_xform_head_tail): Treat private-variable markers like
8670         fork/join when transforming head/tail sequences.
8671         (struct var_decl_rewrite_info): Add struct.
8672         (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
8673         (execute_oacc_device_lower): Support rewriting gang-private
8674         variables using target hook, and fix up addr_expr and var_decl
8675         nodes afterwards.
8676         * target.def (adjust_private_decl, expand_var_decl): New hooks.
8677         * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
8678         Rename to...
8679         (gcn_goacc_adjust_private_decl): ...this.
8680         * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
8681         Rename to...
8682         (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
8683         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
8684         definition using gcn_goacc_adjust_gangprivate_decl...
8685         (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
8686         gcn_goacc_adjust_private_decl.
8687         * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
8688         (gang_private_shared_size): New global variable.
8689         (gang_private_shared_align): Likewise.
8690         (gang_private_shared_sym): Likewise.
8691         (gang_private_shared_hmap): Likewise.
8692         (nvptx_option_override): Initialize these.
8693         (nvptx_file_end): Output gang_private_shared_sym.
8694         (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
8695         New functions.
8696         (nvptx_set_current_function): Clear gang_private_shared_hmap.
8697         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
8698         (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
8700 2021-05-21  H.J. Lu  <hjl.tools@gmail.com>
8702         * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
8704 2021-05-21  Richard Biener  <rguenther@suse.de>
8705             H.J. Lu  <hjl.tools@gmail.com>
8707         PR middle-end/90773
8708         * expr.c (expand_constructor): Elide expand_constructor if
8709         move by pieces is preferred.
8711 2021-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8713         * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
8714         Take a flag and mode value as arguments.
8715         (aarch64_modifies_global_state_p): Likewise.
8716         (aarch64_reads_global_state_p): Likewise.
8717         (aarch64_could_trap_p): Likewise.
8718         (aarch64_get_attributes): Likewise.
8719         (aarch64_init_simd_builtins): Adjust callsite of above.
8720         (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
8721         function attributes to apply to builtins.
8722         (aarch64_init_crc32_builtins): Likewise.
8723         (aarch64_init_builtin_rsqrt): Likewise.
8725 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
8727         * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
8728         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
8729         (gen_2logical): Use new fusion types.
8730         * config/rs6000/fusion.md: Regenerate.
8732 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
8734         PR target/100637
8735         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
8736         Handle V4QI and V2HI modes.
8737         (ix86_expand_sse_movcc): Ditto.
8738         * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
8739         New instruction pattern.
8740         (*eq<VI_32:mode>3): Ditto.
8741         (*gt<VI_32:mode>3): Ditto.
8742         (*xop_pcmov_<VI_32:mode>): Ditto.
8743         (mmx_pblendvb32): Ditto.
8744         (mmx_pblendvb64): Rename from mmx_pblendvb.
8745         (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
8746         (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
8747         (vcond<VI_32:mode><VI_32:mode>): Ditto.
8748         (vcondu<VI_32:mode><VI_32:mode>): Ditto.
8749         (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
8751 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
8753         PR tree-optimization/94589
8754         * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
8755         rhs2, treat x <= 4 equivalently to x < 5 etc.  In cmp1 and cmp2 (if
8756         not the same as cmp3) treat <= the same as < and >= the same as >.
8757         Don't require that cond2_phi_edge is true edge, instead take
8758         false/true edges into account based on cmp1/cmp2 comparison kinds.
8760 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
8762         PR target/100637
8763         * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
8764         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
8765         from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
8766         using SMAXMIN_MMXMODEI mode iterator.
8767         (*<smaxmin:code>v4qi3): New insn pattern.
8768         (*<smaxmin:code>v2hi3): Ditto.
8769         (SMAXMIN_VI_32): New mode iterator.
8770         (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
8771         (UMAXMIN_MMXMODEI): New mode iterator.
8772         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
8773         from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
8774         using UMAXMIN_MMXMODEI mode iterator.
8775         (*<umaxmin:code>v4qi3): New insn pattern.
8776         (*<umaxmin:code>v2hi3): Ditto.
8777         (UMAXMIN_VI_32): New mode iterator.
8778         (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
8779         (abs<VI_32:mode>2): New insn pattern.
8780         (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
8781         * config/i386/sse.md: ... here.
8783 2021-05-20  Clement Chigot  <clement.chigot@atos.net>
8784             David Edelsohn  <dje.gcc@gmail.com>
8786         * collect2.c (scan_prog_file): Issue non-fatal warning for
8787         non-COFF files.
8789 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
8791         * doc/invoke.texi (-Wno-c++11-extensions)
8792         (-Wno-c++14-extensions, -Wno-c++17-extensions)
8793         (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
8794         new options.
8796 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
8798         * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
8799         * config/darwin.c (darwin_override_options): Likewise.
8800         * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
8801         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
8802         (DWARF2_FRAME_REG_OUT): Likewise.
8803         * config/mips/mips.c (mips_output_filename): Likewise.
8804         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
8805         Likewise.
8806         (rs6000_dbx_register_number): Likewise.
8807         * dbxout.c: Include flags.h.
8808         * dwarf2cfi.c (cfi_label_required_p): Likewise.
8809         (dwarf2out_do_frame): Likewise.
8810         * except.c: Include flags.h.
8811         * final.c (dwarf2_debug_info_emitted_p): Likewise.
8812         (final_scan_insn_1): Likewise.
8813         * flags.h (dwarf_debuginfo_p): New function declaration.
8814         * opts.c (dwarf_debuginfo_p): New function definition.
8815         * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
8816         * toplev.c (process_options): Likewise.
8818 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
8820         * common.opt: Change type to support bitmasks.
8821         * flag-types.h (enum debug_info_type): Rename enumerator constants.
8822         (NO_DEBUG): New bitmask.
8823         (DBX_DEBUG): Likewise.
8824         (DWARF2_DEBUG): Likewise.
8825         (XCOFF_DEBUG): Likewise.
8826         (VMS_DEBUG): Likewise.
8827         (VMS_AND_DWARF2_DEBUG): Likewise.
8828         * flags.h (debug_set_to_format): New function declaration.
8829         (debug_set_count): Likewise.
8830         (debug_set_names): Likewise.
8831         * opts.c (debug_type_masks): Array of bitmasks for debug formats.
8832         (debug_set_to_format): New function definition.
8833         (debug_set_count): Likewise.
8834         (debug_set_names): Likewise.
8835         (set_debug_level): Update access to debug_type_names.
8836         * toplev.c: Likewise.
8838 2021-05-20  Martin Sebor  <msebor@redhat.com>
8840         PR middle-end/100684
8841         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
8843 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
8845         PR target/100701
8846         * config/i386/i386.md (isa): Remove x64_bmi.
8847         (enabled): Remove x64_bmi.
8848         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
8849         Remove general register alternative.
8850         (*andnot<VI_32:mode>3): Ditto.
8851         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
8852         (*<any_logic:code><VI_32:mode>3): Ditto.
8854 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
8856         * config/arm/arm.c: Include head files tree-vectorizer.h and
8857         cfgloop.h.
8859 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
8861         PR target/100637
8862         * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
8863         (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
8864         (<s>mulv4hi3_highpart): New expander.
8865         (*<s>mulv2hi3_highpart): New insn pattern.
8866         (<s>mulv2hi3_higpart): New expander.
8867         (*<any_shift:insn>v2hi3): New insn pattern.
8868         (<any_shift:insn>v2hi3): New expander.
8869         * config/i386/sse.md (smulhrsv2hi3): New expander.
8870         (*smulhrsv2hi3): New insn pattern.
8872 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
8874         * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
8875         parameter.
8876         * params.opt (vect-inner-loop-cost-factor): New.
8877         * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
8878         50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
8879         tree-vectorizer.h and its required ones.
8880         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
8881         hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
8882         * config/arm/arm.c (arm_add_stmt_cost): Likewise.
8883         * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
8884         * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
8885         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
8886         Likewise.
8887         (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
8888         * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
8889         (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
8891 2021-05-20  Christophe Lyon  <christophe.lyon@linaro.org>
8892             Torbjörn Svensson  <torbjorn.svensson@st.com>
8894         PR c/42579
8895         * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
8897 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
8899         PR middle-end/99928
8900         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
8901         explicit linear clause when combined with target, make it map(tofrom:)
8902         instead of no clause or firstprivate.
8904 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
8906         PR tree-optimization/94589
8907         * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
8908         of integral conversions.
8910 2021-05-19  Andrew MacLeod  <amacleod@redhat.com>
8912         * gimple-range.cc (fur_source::get_operand): New.
8913         (gimple_range_fold): Delete.
8914         (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
8915         (fold_using_range::range_of_range_op): Move from gimple_ranger.
8916         (fold_using_range::range_of_address): Ditto.
8917         (fold_using_range::range_of_phi): Ditto.
8918         (fold_using_range::range_of_call): Ditto.
8919         (fold_using_range::range_of_builtin_ubsan_call): Move from
8920         range_of_builtin_ubsan_call.
8921         (fold_using_range::range_of_builtin_call): Move from
8922         range_of_builtin_call.
8923         (gimple_ranger::range_of_builtin_call): Delete.
8924         (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
8925         (gimple_ranger::fold_range_internal): New.
8926         (gimple_ranger::range_of_stmt): Use new fold_using_range API.
8927         (fold_using_range::range_of_ssa_name_with_loop_info): Move from
8928         gimple_ranger.  Improve ranges of SSA_NAMES when possible.
8929         * gimple-range.h (gimple_ranger): Remove various range_of routines.
8930         (class fur_source): New.
8931         (class fold_using_range): New.
8932         (fur_source::fur_source): New.
8933         (fold_range): New.
8934         * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
8935         instead of range_of_builtin_call.
8937 2021-05-19  Jonathan Wakely  <jwakely@redhat.com>
8939         * doc/cpp.texi (Common Predefined Macros): Update documentation
8940         for the __GXX_EXPERIMENTAL_CXX0X__ macro.
8942 2021-05-19  Alex Coplan  <alex.coplan@arm.com>
8944         PR target/100333
8945         * config/arm/arm.md (nonsecure_call_internal): Always ensure
8946         callee's address is in a register.
8948 2021-05-19  Geng Qi  <gengqi@linux.alibaba.com>
8950         * common/config/riscv/riscv-common.c
8951         (riscv_subset_list::parsing_subset_version): Properly parse the letter
8952         'p' in '-march'.
8953         (riscv_subset_list::parse_std_ext,
8954          riscv_subset_list::parse_multiletter_ext): To handle errors generated
8955         in riscv_subset_list::parsing_subset_version.
8957 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
8959         * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
8960         type attribute in patterns generating XTN(2).
8962 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
8964         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
8965         Remove as duplicate of...
8966         (aarch64_xtn<mode>): This.
8967         (aarch64_xtn2<mode>_le): Move position in file.
8968         (aarch64_xtn2<mode>_be): Move position in file.
8969         (aarch64_xtn2<mode>): Move position in file.
8970         (vec_pack_trunc_<mode>): Define as an expander.
8972 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
8974         * config/aarch64/aarch64-simd-builtins.def: Split builtin
8975         generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
8976         separate scalar and vector generators.
8977         * config/aarch64/aarch64-simd.md
8978         (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
8979         split into...
8980         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
8981         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
8982         * config/aarch64/iterators.md: Define SD_HSDI iterator.
8984 2021-05-19  Jonathn Wright  <jonathan.wright@arm.com>
8986         * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
8987         of UNSPEC_SQXTUN2.
8988         * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
8990 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
8992         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
8993         Implement as an expand emitting a big/little endian
8994         instruction pattern.
8995         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
8996         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
8998 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
9000         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
9001         Implement as an expand emitting a big/little endian
9002         instruction pattern.
9003         (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
9004         (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
9005         * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
9006         UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
9008 2021-05-19  Richard Biener  <rguenther@suse.de>
9010         PR middle-end/100672
9011         * fold-const.c (fold_negate_expr_1): Use element_precision.
9012         (negate_expr_p): Likewise.
9014 2021-05-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9016         * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
9017         (pred_load): New int attribute.
9018         * config/aarch64/aarch64-sve.md
9019         (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
9020         SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
9021         * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
9022         code_for_aarch64_load.
9024 2021-05-19  Richard Biener  <rguenther@suse.de>
9026         * cfgexpand.c (discover_nonconstant_array_refs_r): Make
9027         sure TARGET_MEM_REF bases are expanded as memory.
9028         * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
9029         Do not mark TARGET_MEM_REF bases addressable.
9030         * tree-ssa.c (non_rewritable_mem_ref_base): Handle
9031         TARGET_MEM_REF bases as never rewritable.
9032         * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
9033         walk TARGET_MEM_REF bases as address-takens.
9034         * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
9036 2021-05-19  Richard Biener  <rguenther@suse.de>
9038         * builtins.c (get_object_alignment_1): Strip outer
9039         WITH_SIZE_EXPR.
9040         * tree-dfa.c (get_ref_base_and_extent): Handle outer
9041         WITH_SIZE_EXPR for size processing and process the
9042         containing ref.
9043         * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
9044         outer WITH_SIZE_EXPR.
9045         (ao_ref_base_alias_ptr_type): Likewise.
9046         (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
9047         and handle that accordingly, stripping it for the
9048         core alias workers.
9049         * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
9050         looking through it instead of returning NULL.
9052 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
9054         PR middle-end/100576
9055         * builtins.c (check_read_access): Convert bound to size_type_node if
9056         non-NULL.
9058 2021-05-19  Richard Biener  <rguenther@suse.de>
9060         * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
9061         (verify_types_in_gimple_reference): ... here.  Sanitize.
9062         (verify_gimple_call): Verify references in LHS and arguments.
9063         (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
9065 2021-05-19  Uroš Bizjak  <ubizjak@gmail.com>
9067         * config/i386/i386.h (VALID_INT_MODE_P):
9068         Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
9069         * config/i386/i386.md (isa): Add x64_bmi.
9070         (enabled): Handle x64_bmi.
9071         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
9072         Add alternative using 64bit general registers.
9073         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
9075 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
9077         PR middle-end/99928
9078         * tree.h (OMP_MASTER_COMBINED): Define.
9079         * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
9080         handling for outer combined/composite constructs to a loop.
9081         Handle lastprivate on combined target.
9082         (gimplify_expr): Formatting fix.
9084 2021-05-19  Xionghu Luo  <luoxhu@linux.ibm.com>
9086         * passes.def: Add sink_code pass before store_merging.
9087         * tree-ssa-sink.c (pass_sink_code:clone): New.
9089 2021-05-18  Bill Schmidt  <wschmidt@linux.ibm.com>
9091         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
9092         rs6000_special_adjust_field_align_p.
9093         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
9094         * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
9095         Remove ABI warning.
9096         (rs6000_function_arg): Likewise.
9097         * config/rs6000/rs6000-protos.h
9098         (rs6000_special_adjust_field_align_p): Remove prototype.
9099         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
9100         Remove.
9101         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
9102         rs6000_special_adjust_field_align_p.
9104 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
9106         PR target/100637
9107         * config/i386/i386.h (VALID_SSE2_REG_MODE):
9108         Add V4QI and V2HI modes.
9109         (VALID_INT_MODE_P): Ditto.
9110         * config/i386/mmx.md (VI_32): New mode iterator.
9111         (mmxvecsize): Handle V4QI and V2HI.
9112         (Yv_Yw): Ditto.
9113         (mov<VI_32:mode>): New expander.
9114         (*mov<mode>_internal): New insn pattern.
9115         (movmisalign<VI_32:mode>): New expander.
9116         (neg<VI_32:mode>): New expander.
9117         (<plusminus:insn><VI_32:mode>3): New expander.
9118         (*<plusminus:insn><VI_32:mode>3): New insn pattern.
9119         (mulv2hi3): New expander.
9120         (*mulv2hi3): New insn pattern.
9121         (one_cmpl<VI_32:mode>2): New expander.
9122         (*andnot<VI_32:mode>3): New insn pattern.
9123         (<any_logic:code><VI_32:mode>3): New expander.
9124         (*<any_logic:code><VI_32:mode>3): New insn pattern.
9126 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
9128         * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
9129         Fix a mode mismatch with operand 1.
9131 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
9133         PR target/100626
9134         * config/i386/i386-expand.c (split_double_mode): Return
9135         temporary register when simplify_gen_subreg fails with
9136         the high half od the paradoxical subreg.
9138 2021-05-18  Richard Biener  <rguenther@suse.de>
9140         * cfgexpand.c (expand_one_var): Pass in forced_stack_var
9141         and honor it when expanding.
9142         (expand_used_vars_for_block): Pass through forced_stack_var.
9143         (expand_used_vars): Likewise.
9144         (discover_nonconstant_array_refs_r): Set bits in
9145         forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
9146         (avoid_type_punning_on_regs): Likewise.
9147         (discover_nonconstant_array_refs): Likewise.
9148         (pass_expand::execute): Create and pass down forced_stack_var
9149         bitmap.  For parameters and returns temporarily set
9150         TREE_ADDRESSABLE when expand_function_start.
9152 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
9154         * doc/sourcebuild.texi: Document 'dg-note'.
9156 2021-05-18  Tobias Burnus  <tobias@codesourcery.com>
9158         PR other/100598
9159         * configure: Regenerate.
9160         * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
9162 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
9164         * gimple.h (is_gimple_omp_oacc): Tighten.
9165         * omp-low.c (check_omp_nesting_restrictions): Adjust.
9167 2021-05-18  Richard Biener  <rguenther@suse.de>
9169         * tree-ssa-operands.c (mark_address_taken): Simplify.
9171 2021-05-18  Martin Liska  <mliska@suse.cz>
9173         * config/gcn/mkoffload.c (STR): Redefine.
9174         * config/i386/intelmic-mkoffload.c (STR): Likewise.
9175         * config/nvptx/mkoffload.c (STR): Likewise.
9177 2021-05-18  Martin Liska  <mliska@suse.cz>
9179         * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
9180         Use startswith function instead of strncmp.
9181         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
9182         * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
9183         * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
9184         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
9185         * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
9186         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
9187         * config/arm/arm.c (arm_file_start): Likewise.
9188         (arm_valid_target_attribute_rec): Likewise.
9189         (thumb1_md_asm_adjust): Likewise.
9190         * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
9191         * config/avr/avr.c (STR_PREFIX_P): Likewise.
9192         (avr_set_current_function): Likewise.
9193         (avr_handle_addr_attribute): Likewise.
9194         (avr_asm_output_aligned_decl_common): Likewise.
9195         (avr_asm_named_section): Likewise.
9196         (avr_section_type_flags): Likewise.
9197         (avr_asm_select_section): Likewise.
9198         * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
9199         (c6x_section_type_flags): Likewise.
9200         * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
9201         (darwin_objc_declare_unresolved_class_reference): Likewise.
9202         (darwin_objc_declare_class_definition): Likewise.
9203         * config/darwin.c (indirect_data): Likewise.
9204         (darwin_encode_section_info): Likewise.
9205         (darwin_objc2_section): Likewise.
9206         (darwin_objc1_section): Likewise.
9207         (machopic_select_section): Likewise.
9208         (darwin_globalize_label): Likewise.
9209         (darwin_label_is_anonymous_local_objc_name): Likewise.
9210         (darwin_asm_named_section): Likewise.
9211         (darwin_asm_output_dwarf_offset): Likewise.
9212         * config/frv/frv.c (frv_string_begins_with): Likewise.
9213         (frv_in_small_data_p): Likewise.
9214         * config/gcn/mkoffload.c (STR): Likewise.
9215         (main): Likewise.
9216         * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
9217         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
9218         * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
9219         (ix86_md_asm_adjust): Likewise.
9220         * config/i386/intelmic-mkoffload.c (STR): Likewise.
9221         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
9222         (i386_pe_file_end): Likewise.
9223         * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
9224         (ia64_section_type_flags): Likewise.
9225         * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
9226         * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
9227         (mips16_stub_function_p): Likewise.
9228         (mips_function_rodata_section): Likewise.
9229         * config/msp430/msp430.c (msp430_mcu_name): Likewise.
9230         (msp430_function_section): Likewise.
9231         (msp430_section_type_flags): Likewise.
9232         (msp430_expand_helper): Likewise.
9233         * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
9234         (nios2_valid_target_attribute_rec): Likewise.
9235         * config/nvptx/mkoffload.c (process): Likewise.
9236         (STR): Likewise.
9237         * config/pa/som.h: Likewise.
9238         * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
9239         * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
9240         * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
9241         (rs6000_inner_target_options): Likewise.
9242         * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
9243         * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
9244         * config/vax/vax.c (vax_output_int_move): Likewise.
9245         * config/vms/vms-ld.c (startswith): Likewise.
9246         (process_args): Likewise.
9247         (main): Likewise.
9248         * config/vms/vms.c: Likewise.
9250 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
9252         PR rtl-optimization/100590
9253         * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
9254         they are NONJUMP_INSN_P.
9256 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
9258         PR c++/100580
9259         * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
9260         DECL_ASSEMBLER_NAME on the fn_decl.
9262 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
9264         PR tree-optimization/94589
9265         * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
9266         phi result used in (res & ~1) == 0 comparison as res >= 0 as
9267         res == 2 would be UB with -ffinite-math-only.
9269 2021-05-18  Martin Liska  <mliska@suse.cz>
9271         * Makefile.in: genversion.o should depend on DATESTAMP.
9273 2021-05-18  Claudiu Zissulescu  <claziss@synopsys.com>
9275         * config/arc/simdext.md (negv2si2): Remove round bracket.
9277 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
9279         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
9280         _Bool as macro expanding to _Bool.
9282 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
9284         PR c++/100281
9285         * tree.c (build_reference_type_for_mode)
9286         (build_pointer_type_for_mode): Pick pointer mode if MODE argument
9287         is VOIDmode.
9288         (build_reference_type, build_pointer_type): Invoke
9289         build_*_type_for_mode with VOIDmode.
9291 2021-05-17  Andrew MacLeod  <amacleod@redhat.com>
9293         PR tree-optimization/100512
9294         * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
9295         and non-zero pointer ranges as invariant.
9296         * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
9297         processing from here.
9299 2021-05-17  Tom de Vries  <tdevries@suse.de>
9301         PR target/100497
9302         * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
9303         * config/nvptx/nvptx.c (nvptx_output_barrier)
9304         (nvptx_output_atomic_insn): New function.
9305         (nvptx_print_operand): Add support for 'B'.
9306         * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
9307         insns.
9309 2021-05-17  Aldy Hernandez  <aldyh@redhat.com>
9311         PR tree-optimization/100349
9312         * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
9313           NULL.
9315 2021-05-17  Tamar Christina  <tamar.christina@arm.com>
9317         * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
9318         (host_detect_local_cpu): Use it.
9320 2021-05-17  Martin Liska  <mliska@suse.cz>
9322         * doc/invoke.texi: Add 2 missing dots.
9324 2021-05-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
9326         PR bootstrap/100552
9327         * configure.ac: Replace pattern substitution with call to sed.
9328         * configure: Regenerate.
9330 2021-05-17  Richard Biener  <rguenther@suse.de>
9332         PR middle-end/100582
9333         * tree.c (array_at_struct_end_p): Get to the base of the
9334         reference before looking for the underlying decl.
9336 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
9338         * genoutput.c (validate_insn_alternatives) Make "wrong number of
9339         alternatives" message more specific, and remove assumption on where
9340         the problem is.
9342 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
9344         * config/arm/iterators.md (V16): New iterator.
9345         (VH_cvtto): New iterator.
9346         (v_cmp_result): Added V4HF and V8HF support.
9347         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
9348         (vcond<mode><mode>): Likewise.
9349         (vcond_mask_<mode><v_cmp_result>): Likewise.
9350         (vcond<VH_cvtto><mode>): New expander.
9352 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
9354         * config/arm/arm-protos.h (arm_expand_vector_compare): Update
9355         prototype.
9356         * config/arm/arm.c (arm_expand_vector_compare): Add support for
9357         MVE.
9358         (arm_expand_vcond): Likewise.
9359         * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
9360         VCMPEQQ_N_S, VCMPNEQ_N_S.
9361         (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
9362         * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
9363         (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
9364         (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
9365         (@mve_vpselq_<supf><mode>): Likewise.
9366         (@mve_vpselq_f<mode>"): Likewise.
9367         * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
9368         and move to vec-common.md.
9369         (vec_cmpu<mode><mode>): Likewise.
9370         (vcond<mode><mode>): Likewise.
9371         (vcond<V_cvtto><mode>): Likewise.
9372         (vcondu<mode><v_cmp_result>): Likewise.
9373         (vcond_mask_<mode><v_cmp_result>): Likewise.
9374         * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
9375         (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
9376         (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
9377         (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
9378         (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
9379         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
9380         from neon.md.
9381         (vec_cmpu<mode><mode>): Likewise.
9382         (vcond<mode><mode>): Likewise.
9383         (vcond<V_cvtto><mode>): Likewise.
9384         (vcondu<mode><v_cmp_result>): Likewise.
9385         (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
9386         condition.
9388 2021-05-17  liuhongt  <hongtao.liu@intel.com>
9390         PR target/100549
9391         * config/i386/i386.c (ix86_gimple_fold_builtin): Use
9392         gsi_insert_seq_before instead.
9394 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
9396         * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
9397         (arm_sat_ok): ...this.
9399 2021-05-17  Martin Liska  <mliska@suse.cz>
9401         * lto-wrapper.c (merge_flto_options): Factor out a new function.
9402         (merge_and_complain): Use it.
9403         (run_gcc): Merge also linker command line -flto=foo argument
9404         with IL files.
9406 2021-05-16  Christophe Lyon  <christophe.lyon@linaro.org>
9408         * config/arm/arm.h (CPP_SPEC): Remove error message about
9409         -mlittle-endian/-mbig-endian conflict.
9411 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
9413         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9414         __ROP_PROTECT__ if -mrop-protect is selected.
9416 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
9418         * config/rs6000/rs6000-internal.h (rs6000_stack): Add
9419         rop_hash_save_offset and rop_hash_size.
9420         * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
9421         rop_hash_size and rop_hash_save_offset.
9422         (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
9423         (rs6000_emit_prologue): Emit hashst[p] in prologue.
9424         (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
9425         * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
9426         UNSPEC_HASHCHK.
9427         (hashst): New define_insn.
9428         (hashchk): Likewise.
9430 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
9432         * config/rs6000/rs6000.c (rs6000_option_override_internal):
9433         Disable shrink wrap when inserting ROP-protect instructions.
9434         * config/rs6000/rs6000.opt (mrop-protect): New option.
9435         (mprivileged): Likewise.
9436         * doc/invoke.texi: Document mrop-protect and mprivileged.
9438 2021-05-15  Hans-Peter Nilsson  <hp@axis.com>
9440         * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
9441         "Remove CC0".
9443 2021-05-15  Martin Jambor  <mjambor@suse.cz>
9445         Revert:
9446         2021-05-13  Martin Jambor  <mjambor@suse.cz>
9448         PR tree-optimization/100453
9449         * tree-sra.c (sra_modify_assign): All const base accesses do not
9450         need refreshing, not just those from decl_pool.
9451         (sra_modify_assign): Do not refresh into a const base decl.
9453 2021-05-15  Jakub Jelinek  <jakub@redhat.com>
9455         PR rtl-optimization/100342
9456         * regcprop.c (copy_value): When copying a source reg in a wider
9457         mode than it has recorded for the value, adjust recorded destination
9458         mode too or punt if !REG_CAN_CHANGE_MODE_P.
9460 2021-05-14  Jason Merrill  <jason@redhat.com>
9462         * intl.h: Add comments.
9464 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9466         * config/aarch64/aarch64-simd.md
9467         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
9468         (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
9469         (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
9470         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
9471         (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
9472         (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
9473         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
9474         (aarch64_sqdmlsl2_n<mode>_internal): ... This...
9475         (aarch64_sqdmlal2_n<mode>_internal): ... And this.
9477 2021-05-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9479         PR target/66791
9480         * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
9481         boolean logic equivalent.
9482         (vtst_s16): Likewise.
9483         (vtst_s32): Likewise.
9484         (vtst_u8): Likewise.
9485         (vtst_u16): Likewise.
9486         (vtst_u32): Likewise.
9487         (vtst_p8): Likewise.
9488         (vtst_p16): Likewise.
9489         (vtstq_s8): Likewise.
9490         (vtstq_s16): Likewise.
9491         (vtstq_s32): Likewise.
9492         (vtstq_u8): Likewise.
9493         (vtstq_u16): Likewise.
9494         (vtstq_u32): Likewise.
9495         (vtstq_p8): Likewise.
9496         (vtstq_p16): Likewise.
9497         * config/arm/arm_neon_builtins.def: Remove entry for vtst.
9498         * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
9500 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9502         * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
9503         (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
9504         (aarch64_sqdmlsl2<mode>): Delete.
9505         (aarch64_sqdmlal2_lane<mode>): Merge this...
9506         (aarch64_sqdmlsl2_lane<mode>): ... And this...
9507         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
9508         (aarch64_sqdmlal2_laneq<mode>): Merge this...
9509         (aarch64_sqdmlsl2_laneq<mode>): ... And this...
9510         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
9511         (aarch64_sqdmlal2_n<mode>): Merge this...
9512         (aarch64_sqdmlsl2_n<mode>): ... And this...
9513         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
9515 2021-05-13  Martin Sebor  <msebor@redhat.com>
9517         PR middle-end/100574
9518         * builtins.c (access_ref::get_ref): Improve detection of PHIs with
9519         all null arguments.
9521 2021-05-13  Martin Sebor  <msebor@redhat.com>
9523         PR tree-optimization/93100
9524         PR middle-end/98583
9525         * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
9526         don't modify referenced objects.
9528 2021-05-13  Martin Jambor  <mjambor@suse.cz>
9530         PR tree-optimization/100453
9531         * tree-sra.c (sra_modify_assign): All const base accesses do not
9532         need refreshing, not just those from decl_pool.
9533         (sra_modify_assign): Do not refresh into a const base decl.
9535 2021-05-13  Martin Liska  <mliska@suse.cz>
9537         * tree-ssa-dom.c: Remove m_simplifier.
9539 2021-05-13  Richard Earnshaw  <rearnsha@arm.com>
9541         PR target/100563
9542         * config/arm/arm.c (arm_canonicalize_comparison): Correctly
9543         canonicalize DImode inequality comparisons against the
9544         maximum integral value.
9546 2021-05-13  Jakub Jelinek  <jakub@redhat.com>
9548         PR tree-optimization/98856
9549         * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
9550         Expect V2DI and V4DI arithmetic right shifts to be emulated.
9551         (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
9552         caller.
9553         * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
9554         expand_vec_perm_2perm_pblendv): New functions.
9555         (ix86_expand_vec_perm_const_1): Use them.
9556         * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
9557         (<mask_codefor>ashr<mode>3<mask_name>): ... this.
9558         (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
9559         (ashrv4di3): New define_expand.
9560         (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
9561         and !TARGET_AVX512VL expansion.
9563 2021-05-13  Uroš Bizjak  <ubizjak@gmail.com>
9565         PR target/100581
9566         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
9567         sizes < 16 to a register when constructing vpcmov pattern.
9568         * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
9570 2021-05-13  Martin Liska  <mliska@suse.cz>
9572         * gcov-io.c (gcov_write_block): Remove.
9573         (gcov_write_words): Likewise.
9574         (gcov_read_words): Re-implement using gcov_read_bytes.
9575         (gcov_allocate): Remove.
9576         (GCOV_BLOCK_SIZE): Likewise.
9577         (struct gcov_var): Remove most of the fields.
9578         (gcov_position): Implement with ftell.
9579         (gcov_rewrite): Remove setting of start and offset fields.
9580         (from_file): Re-format.
9581         (gcov_open): Remove setbuf call. It should not be needed.
9582         (gcov_close): Remove internal buffer handling.
9583         (gcov_magic): Use __builtin_bswap32.
9584         (gcov_write_counter): Use directly gcov_write_unsigned.
9585         (gcov_write_string): Use direct fwrite and do not round
9586         to 4 bytes.
9587         (gcov_seek): Use directly fseek.
9588         (gcov_write_tag): Use gcov_write_unsigned directly.
9589         (gcov_write_length): Likewise.
9590         (gcov_write_tag_length): Likewise.
9591         (gcov_read_bytes): Use directly fread.
9592         (gcov_read_unsigned): Use gcov_read_words.
9593         (gcov_read_counter): Likewise.
9594         (gcov_read_string): Use gcov_read_bytes.
9595         * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
9596         that size is not in bytes, but words (4B).
9597         (GCOV_TAG_FUNCTION_LENGTH): Likewise.
9598         (GCOV_TAG_ARCS_LENGTH): Likewise.
9599         (GCOV_TAG_ARCS_NUM): Likewise.
9600         (GCOV_TAG_COUNTER_LENGTH): Likewise.
9601         (GCOV_TAG_COUNTER_NUM): Likewise.
9602         (GCOV_TAG_SUMMARY_LENGTH): Likewise.
9604 2021-05-13  liuhongt  <hongtao.liu@intel.com>
9606         PR target/94680
9607         * config/i386/sse.md (ssedoublevecmode): Add attribute for
9608         V64QI/V32HI/V16SI/V4DI.
9609         (ssehalfvecmode): Add attribute for V2DI/V2DF.
9610         (*vec_concatv4si_0): Extend to VI124_128.
9611         (*vec_concat<mode>_0): New pre-reload splitter.
9612         * config/i386/predicates.md (movq_parallel): New predicate.
9614 2021-05-13  Alexandre Oliva  <oliva@adacore.com>
9616         * targhooks.c (default_zero_call_used_regs): Retry using
9617         successfully-zeroed registers as sources.
9619 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
9621         * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
9623 2021-05-12  Aldy Hernandez  <aldyh@redhat.com>
9625         PR c/100521
9626         * gimple-range.cc (range_of_builtin_call): Skip out on
9627           processing __builtin_clz when varying.
9629 2021-05-12  Tom de Vries  <tdevries@suse.de>
9631         PR target/96005
9632         * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
9633         * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
9634         to ptx_version_option.
9635         * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
9636         * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
9637         (define_insn "nvptx_vote_ballot"): Use sync variant for
9638         TARGET_PTX_6_3.
9639         * config/nvptx/nvptx.opt (ptx_version): Add enum.
9640         (mptx): Add option.
9641         * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
9643 2021-05-12  Richard Biener  <rguenther@suse.de>
9645         PR tree-optimization/100566
9646         * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
9647         allow_back for all edge queries.
9649 2021-05-12  liuhongt  <hongtao.liu@intel.com>
9651         PR target/99908
9652         * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
9653         splitters for pblendvb of NOT mask register.
9655 2021-05-12  Richard Biener  <rguenther@suse.de>
9657         PR tree-optimization/100519
9658         * tree-ssa-reassoc.c (can_associate_p): Split into...
9659         (can_associate_op_p): ... this
9660         (can_associate_type_p): ... and this.
9661         (is_reassociable_op): Call can_associate_op_p.
9662         (break_up_subtract_bb): Call the appropriate predicates.
9663         (reassociate_bb): Likewise.
9665 2021-05-12  Martin Liska  <mliska@suse.cz>
9667         * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
9668         (run_gcc): Use -flto argument detection for merged
9669         fdecoded_options.
9671 2021-05-12  Martin Liska  <mliska@suse.cz>
9673         * lto-wrapper.c (print_lto_docs_link): New function.
9674         (run_gcc): Print warning about missing job server detection
9675         after we know NR of partitions. Do the same for -flto{,=1}.
9676         * opts.c (get_option_html_page): Support -flto option.
9678 2021-05-12  Martin Liska  <mliska@suse.cz>
9680         * lto-wrapper.c (get_options_from_collect_gcc_options): Change
9681         return type.
9682         (append_option): Remove.
9683         (find_option): Rework to use the vector type.
9684         (remove_option): Remove.
9685         (merge_and_complain): Use vectors for cl_decoded_option data
9686         type arguments.
9687         (append_compiler_options): Likewise.
9688         (append_diag_options): Likewise.
9689         (append_linker_options): Likewise.
9690         (append_offload_options): Likewise.
9691         (compile_offload_image): Likewise.
9692         (compile_images_for_offload_targets): Likewise.
9693         (find_and_merge_options): Likewise.
9694         (run_gcc): Likewise.
9696 2021-05-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9698         PR debug/100515
9699         * dwarf2out.c (dwarf2out_finish): Set
9700         have_multiple_function_sections with multi-range text_section.
9702 2021-05-12  Martin Liska  <mliska@suse.cz>
9704         PR bootstrap/100560
9705         * Makefile.in: Remove version.h from linker command line.
9707 2021-05-12  Richard Biener  <rguenther@suse.de>
9709         PR middle-end/100547
9710         * rtl.h (rtvec_alloc): Make argument size_t.
9711         * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
9713 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
9715         PR middle-end/100508
9716         * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
9717         type, don't reuse DECL_RTL if it has different mode, instead force
9718         creation of a new DEBUG_EXPR.
9720 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
9721             Marc Glisse  <marc.glisse@inria.fr>
9723         PR tree-optimization/94589
9724         * match.pd ((X & Y) == X -> (X & ~Y) == 0,
9725         (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
9727 2021-05-12  Uroš Bizjak  <ubizjak@gmail.com>
9729         PR target/98218
9730         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
9731         * config/i386/mmx.md (MMXMODE124): New mode iterator.
9732         (V2FI): Ditto.
9733         (mmxintvecmode): New mode attribute.
9734         (mmxintvecmodelower): Ditto.
9735         (*mmx_maskcmpv2sf3_comm): New insn pattern.
9736         (*mmx_maskcmpv2sf3): Ditto.
9737         (vec_cmpv2sfv2si): New expander.
9738         (vcond<V2FI:mode>v2si): Ditto.
9739         (mmx_vlendvps): New insn pattern.
9740         (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
9741         (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
9742         (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
9744 2021-05-11  Martin Sebor  <msebor@redhat.com>
9746         PR middle-end/21433
9747         * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
9749 2021-05-11  Richard Biener  <rguenther@suse.de>
9751         * gimple-fold.c (gimple_fold_call): Do not call
9752         maybe_fold_reference on call arguments or the static chain.
9753         (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
9754         inputs.
9756 2021-05-11  Martin Liska  <mliska@suse.cz>
9758         * builtins.def (DEF_HSAIL_BUILTIN): Remove.
9759         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
9760         (DEF_HSAIL_SAT_BUILTIN): Likewise.
9761         (DEF_HSAIL_INTR_BUILTIN): Likewise.
9762         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
9763         * doc/frontends.texi: Remove BRIG.
9764         * doc/install.texi: Likewise.
9765         * doc/invoke.texi: Likewise.
9766         * doc/standards.texi: Likewise.
9767         * brig-builtins.def: Removed.
9768         * brig/ChangeLog: Removed.
9769         * brig/Make-lang.in: Removed.
9770         * brig/brig-builtins.h: Removed.
9771         * brig/brig-c.h: Removed.
9772         * brig/brig-lang.c: Removed.
9773         * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
9774         * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
9775         * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
9776         * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
9777         * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
9778         * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
9779         * brig/brigfrontend/brig-code-entry-handler.h: Removed.
9780         * brig/brigfrontend/brig-comment-handler.cc: Removed.
9781         * brig/brigfrontend/brig-control-handler.cc: Removed.
9782         * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
9783         * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
9784         * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
9785         * brig/brigfrontend/brig-function-handler.cc: Removed.
9786         * brig/brigfrontend/brig-function.cc: Removed.
9787         * brig/brigfrontend/brig-function.h: Removed.
9788         * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
9789         * brig/brigfrontend/brig-label-handler.cc: Removed.
9790         * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
9791         * brig/brigfrontend/brig-machine.c: Removed.
9792         * brig/brigfrontend/brig-machine.h: Removed.
9793         * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
9794         * brig/brigfrontend/brig-module-handler.cc: Removed.
9795         * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
9796         * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
9797         * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
9798         * brig/brigfrontend/brig-to-generic.cc: Removed.
9799         * brig/brigfrontend/brig-to-generic.h: Removed.
9800         * brig/brigfrontend/brig-util.cc: Removed.
9801         * brig/brigfrontend/brig-util.h: Removed.
9802         * brig/brigfrontend/brig-variable-handler.cc: Removed.
9803         * brig/brigfrontend/hsa-brig-format.h: Removed.
9804         * brig/brigfrontend/phsa.h: Removed.
9805         * brig/brigspec.c: Removed.
9806         * brig/config-lang.in: Removed.
9807         * brig/gccbrig.texi: Removed.
9808         * brig/lang-specs.h: Removed.
9809         * brig/lang.opt: Removed.
9811 2021-05-11  Richard Biener  <rguenther@suse.de>
9813         PR ipa/100513
9814         * ipa-param-manipulation.c
9815         (ipa_param_body_adjustments::modify_call_stmt): Avoid
9816         altering SSA_NAME_DEF_STMT by adjusting the calls LHS
9817         via gimple_call_lhs_ptr.
9819 2021-05-11  Alex Coplan  <alex.coplan@arm.com>
9821         PR target/99725
9822         * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
9823         Avoid emitting CFA adjusts on the sp if we have the fp.
9825 2021-05-11  Richard Sandiford  <richard.sandiford@arm.com>
9827         * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
9828         (VMULD): New iterator.
9829         (VCOND): Handle V4HF and V8HF.
9830         (VCONQ): Fix entry for V2SF.
9831         * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
9832         instead of VMUL.  Use a 64-bit vector mode for the indexed operand.
9833         (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
9834         (mul_laneq<mode>3): ...this define_insn.  Use VMUL instead of VDQSF.
9835         Use a 128-bit vector mode for the indexed operand.  Use stype for
9836         the scheduling type.
9838 2021-05-11  Richard Biener  <rguenther@suse.de>
9840         * gimple-fold.c (maybe_fold_reference): Only return
9841         is_gimple_min_invariant values.
9843 2021-05-11  Richard Biener  <rguenther@suse.de>
9845         PR middle-end/100509
9846         * gimple-fold.c (fold_gimple_assign): Only call
9847         get_symbol_constant_value on register type symbols.
9849 2021-05-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
9850             Joe Ramsay   <joe.ramsay@arm.com>
9852         PR target/100419
9853         * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
9854         (__arm_vcmpneq): Remove duplicate definition.
9855         (__arm_vstrwq_scatter_offset_p): Likewise.
9856         (__arm_vmaxq_x): Likewise.
9857         (__arm_vmlsdavaq): Likewise.
9858         (__arm_vmlsdavaxq): Likewise.
9859         (__arm_vmlsdavq_p): Likewise.
9860         (__arm_vmlsdavxq_p): Likewise.
9861         (__arm_vrmlaldavhaq): Likewise.
9862         (__arm_vstrbq_p): Likewise.
9863         (__arm_vstrbq_scatter_offset): Likewise.
9864         (__arm_vstrbq_scatter_offset_p): Likewise.
9865         (__arm_vstrdq_scatter_offset): Likewise.
9866         (__arm_vstrdq_scatter_offset_p): Likewise.
9867         (__arm_vstrdq_scatter_shifted_offset): Likewise.
9868         (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
9870 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
9872         PR middle-end/100471
9873         * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
9874         is 0, bypass the reduction loop including
9875         GOMP_taskgroup_reduction_unregister call.
9877 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
9879         * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
9880         costing_for_scalar.
9881         (rs6000_density_test): Early return if costing_for_scalar is true.
9882         (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
9884 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
9886         * doc/tm.texi: Regenerated.
9887         * target.def (init_cost): Add new parameter costing_for_scalar.
9888         * targhooks.c (default_init_cost): Adjust for new parameter.
9889         * targhooks.h (default_init_cost): Likewise.
9890         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
9891         (vect_compute_single_scalar_iteration_cost): Likewise.
9892         (vect_analyze_loop_2): Likewise.
9893         * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
9894         (vect_bb_vectorization_profitable_p): Likewise.
9895         * tree-vectorizer.h (init_cost): Likewise.
9896         * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
9897         * config/i386/i386.c (ix86_init_cost): Likewise.
9898         * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
9900 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
9902         * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
9903         vect_nonmem and moved into...
9904         (struct rs6000_cost_data): ...here.
9905         (rs6000_init_cost): Use vect_nonmem of cost_data instead.
9906         (rs6000_add_stmt_cost): Likewise.
9907         (rs6000_finish_cost): Likewise.
9909 2021-05-10  Eric Botcazou  <ebotcazou@adacore.com>
9911         * range-op.cc (get_bool_state): Adjust head comment.
9912         (operator_not_equal::op1_range): Fix comment.
9913         (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
9915 2021-05-10  Martin Sebor  <msebor@redhat.com>
9917         PR middle-end/100425
9918         PR middle-end/100510
9919         * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
9920         (pass_walloca::xlimit_certain_p): ...to this.
9921         (pass_walloca::gate): Execute for any kind of handled warning.
9922         (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
9923         warnings when xlimit_certain_p is set.
9925 2021-05-10  Pat Haugen  <pthaugen@linux.ibm.com>
9927         * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
9928         Return ALTIVEC_REGS if that is best_class.
9929         (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
9931 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
9933         * config/arm/arm.h (CPP_SPEC): Remove error message about
9934         -mfloat-abi.
9936 2021-05-10  Martin Jambor  <mjambor@suse.cz>
9938         * ipa-prop.h (IPA_NODE_REF): Removed.
9939         (IPA_NODE_REF_GET_CREATE): Likewise.
9940         (IPA_EDGE_REF): Likewise.
9941         (IPA_EDGE_REF_GET_CREATE): Likewise.
9942         (IS_VALID_JUMP_FUNC_INDEX): Likewise.
9943         * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
9944         use of ipa_node_params_sum.
9945         (ipcp_versionable_function_p): Likewise.
9946         (push_node_to_stack): Likewise.
9947         (pop_node_from_stack): Likewise.
9948         (set_single_call_flag): Replaced two IPA_NODE_REF with one single
9949         direct use of ipa_node_params_sum.
9950         (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
9951         ipa_node_params_sum.
9952         (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
9953         ipa_edge_args_sum.
9954         (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
9955         use of ipa_node_params_sum.
9956         (self_recursively_generated_p): Likewise.
9957         (propagate_scalar_across_jump_function): Likewise.
9958         (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
9959         direct use of ipa_edge_args_sum, moved the lookup after the early
9960         exit.  Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
9961         (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
9962         direct uses of ipa_node_params_sum.
9963         (propagate_vr_across_jump_function): Likewise.
9964         (propagate_aggregate_lattice): Likewise.
9965         (propagate_aggs_across_jump_function): Likewise.
9966         (propagate_constants_across_call): Likewise, also replaced
9967         IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
9968         (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
9969         of ipa_node_params_sum.
9970         (estimate_local_effects): Likewise.
9971         (add_all_node_vals_to_toposort): Likewise.
9972         (propagate_constants_topo): Likewise.
9973         (ipcp_propagate_stage): Likewise.
9974         (ipcp_discover_new_direct_edges): Likewise.
9975         (calls_same_node_or_its_all_contexts_clone_p): Likewise.
9976         (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
9977         (get_info_about_necessary_edges): Likewise.
9978         (want_remove_some_param_p): Likewise.
9979         (create_specialized_node): Likewise.
9980         (self_recursive_pass_through_p): Likewise.
9981         (self_recursive_agg_pass_through_p): Likewise.
9982         (find_more_scalar_values_for_callers_subset): Likewise and also
9983         replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
9984         case replacing two of those with a single query.
9985         (find_more_contexts_for_caller_subset): Likewise for the
9986         ipa_polymorphic_call_context overload.
9987         (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
9988         use of ipa_edge_args_sum.  Replaced IPA_NODE_REF with direct uses of
9989         ipa_node_params_sum.
9990         (find_aggregate_values_for_callers_subset): Likewise, also reusing
9991         results of ipa_edge_args_sum->get.
9992         (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
9993         direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
9994         direct use of ipa_edge_args_sum.
9995         (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
9996         summary query after the early exit and reused the result later.
9997         (decide_about_value): Replaced IPA_NODE_REF with a direct use of
9998         ipa_node_params_sum.
9999         (decide_whether_version_node): Likewise.  Removed re-querying for
10000         summaries after cloning.
10001         (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
10002         ipa_node_params_sum.
10003         (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
10004         some queries.
10005         (identify_dead_nodes): Likewise.
10006         (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
10007         ipa_node_params_sum.
10008         (ipcp_store_vr_results): Likewise.
10009         * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
10010         (ipa_fn_summary_t::duplicate): Likewise.
10011         (analyze_function_body): Likewise.
10012         (estimate_calls_size_and_time): Likewise.
10013         (ipa_cached_call_context::duplicate_from): Likewise.
10014         (ipa_call_context::equal_to): Likewise.
10015         (remap_edge_params): Likewise.
10016         (ipa_merge_fn_summary_after_inlining): Likewise.
10017         (inline_read_section): Likewise.
10018         * ipa-icf.c (sem_function::param_used_p): Likewise.
10019         * ipa-modref.c (compute_parm_map): Likewise.
10020         (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
10021         ipa_edge_args_sum.
10022         (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
10023         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
10024         ipa_edge_args_sum.
10025         * ipa-profile.c (check_argument_count): Likewise.
10026         * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
10027         with a direct use of ipa_node_params_sum.
10028         (ipa_initialize_node_params): Likewise.
10029         (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
10030         direct use of ipa_edge_args_sum and reused the query result.
10031         (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
10032         direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
10033         direct use of ipa_edge_args_sum.
10034         (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
10035         ipa_node_params_sum and reused the result of the query.
10036         (ipa_analyze_node): Likewise.
10037         (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
10038         of ipa_node_params_sum.
10039         (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
10040         direct uses of ipa_edge_args_sum.
10041         (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
10042         direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
10043         direct use of ipa_edge_args_sum.  Removed superficial re-querying the
10044         top edge summary.
10045         (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
10046         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
10047         ipa_edge_args_sum.
10048         (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
10049         direct use of ipa_edge_args_sum.
10050         (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
10051         use of ipa_node_params_sum.
10052         (ipa_print_node_params): Likewise.
10053         (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
10054         direct uses of ipa_edge_args_sum.
10055         (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
10056         ipa_edge_args_sum.
10057         (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
10058         ipa_node_params_sum.
10059         (ipa_prop_write_jump_functions): Likewise.  Move variable node to the
10060         scopes where it is used.
10062 2021-05-10  Uroš Bizjak  <ubizjak@gmail.com>
10064         * config/i386/i386-expand.c (ix86_expand_sse_movcc)
10065         <case E_V2SImode>: Force op_true to register.
10067 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
10069         * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
10070         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
10071         (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
10072         patterns.
10073         (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
10074         (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
10075         (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
10076         (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
10077         (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
10078         (mve_vcmpneq_n_f<mode>): Remove.
10079         * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
10080         (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
10081         (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
10083 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
10085         * config/arm/iterators.md (MVE_COMPARISONS): New.
10086         (mve_cmp_op): New.
10087         (mve_cmp_type): New.
10088         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
10089         mve_vcmp patterns.
10090         (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
10091         (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
10092         (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
10093         (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
10094         (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
10095         (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
10096         (mve_vcmpneq_n_<mode>): Remove.
10098 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
10100         * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
10101         * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
10102         * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
10103         names.
10105 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
10107         * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
10108         (vcmpneq_n_u): Likewise.
10109         (vcmpeqq_u,): Likewise.
10110         (vcmpeqq_n_u): Likewise.
10111         * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
10112         VCMPEQQ_N_U and VCMPNEQ_N_U.
10113         * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
10114         (mve_vcmpeqq_n): Likewise.
10115         (mve_vcmpeqq): Likewise.
10116         (mve_vcmpneq_n): Likewise.
10118 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
10120         * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
10121         the 's' version of the builtin.
10123 2021-05-10  Richard Biener  <rguenther@suse.de>
10125         PR tree-optimization/100492
10126         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
10127         Find nothing when the loop contains an irreducible region.
10129 2021-05-10  Richard Biener  <rguenther@suse.de>
10131         PR middle-end/100464
10132         PR c++/100468
10133         * gimple-fold.c (canonicalize_constructor_val): Do not set
10134         TREE_ADDRESSABLE.
10136 2021-05-10  Richard Biener  <rguenther@suse.de>
10138         PR tree-optimization/100434
10139         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10140         call LHS.
10141         (dse_optimize_stmt): Handle call LHS by dropping the
10142         LHS or the whole call if it doesn't have other
10143         side-effects.
10144         (pass_dse::execute): Adjust.
10146 2021-05-10  Martin Liska  <mliska@suse.cz>
10148         * Makefile.in: Add missing genversion rule.
10150 2021-05-10  Alex Coplan  <alex.coplan@arm.com>
10152         PR target/99960
10153         * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
10154         vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
10156 2021-05-10  Martin Liska  <mliska@suse.cz>
10158         * builtins.c (is_builtin_name): Use startswith
10159         function instead of strncmp.
10160         * collect2.c (main): Likewise.
10161         (has_lto_section): Likewise.
10162         (scan_libraries): Likewise.
10163         * coverage.c (coverage_checksum_string): Likewise.
10164         (coverage_init): Likewise.
10165         * dwarf2out.c (is_cxx): Likewise.
10166         (gen_compile_unit_die): Likewise.
10167         * gcc-ar.c (main): Likewise.
10168         * gcc.c (init_spec): Likewise.
10169         (read_specs): Likewise.
10170         (execute): Likewise.
10171         (check_live_switch): Likewise.
10172         * genattrtab.c (write_attr_case): Likewise.
10173         (IS_ATTR_GROUP): Likewise.
10174         * gencfn-macros.c (main): Likewise.
10175         * gengtype.c (type_for_name): Likewise.
10176         (gen_rtx_next): Likewise.
10177         (get_file_langdir): Likewise.
10178         (write_local): Likewise.
10179         * genmatch.c (get_operator): Likewise.
10180         (get_operand_type): Likewise.
10181         (expr::gen_transform): Likewise.
10182         * genoutput.c (validate_optab_operands): Likewise.
10183         * incpath.c (add_sysroot_to_chain): Likewise.
10184         * langhooks.c (lang_GNU_C): Likewise.
10185         (lang_GNU_CXX): Likewise.
10186         (lang_GNU_Fortran): Likewise.
10187         (lang_GNU_OBJC): Likewise.
10188         * lto-wrapper.c (run_gcc): Likewise.
10189         * omp-general.c (omp_max_simt_vf): Likewise.
10190         * omp-low.c (omp_runtime_api_call): Likewise.
10191         * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
10192         * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
10193         * real.c (real_from_string): Likewise.
10194         * selftest.c (assert_str_startswith): Likewise.
10195         * timevar.c (timer::validate_phases): Likewise.
10196         * tree.c (get_file_function_name): Likewise.
10197         * ubsan.c (ubsan_use_new_style_p): Likewise.
10198         * varasm.c (default_function_rodata_section): Likewise.
10199         (incorporeal_function_p): Likewise.
10200         (default_section_type_flags): Likewise.
10201         * system.h (startswith): Define startswith.
10203 2021-05-10  Martin Liska  <mliska@suse.cz>
10205         * bitmap.h (class auto_bitmap): Remove
10206         __cplusplus >= 201103.
10207         * config/aarch64/aarch64.c: Likewise.
10208         * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
10209         Likewise.
10210         * sbitmap.h: Likewise.
10212 2021-05-10  Martin Liska  <mliska@suse.cz>
10214         * Makefile.in: Rename gcov-iov to genversion and depend
10215         on version.h (instead of gcov-iov.h).
10216         * gcov-io.h: Include version.h instread of gcov-iov.h.
10217         * gengtype-state.c (read_state_version): Likewise.
10218         * gcov-iov.c: Moved to...
10219         * genversion.c: ...here.
10220         * lto-streamer.h (LTO_major_version): Define it with
10221         GCC_major_version.
10222         * version.c: Removed.
10223         * version.h: Removed.
10225 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
10227         * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
10228         * config/arc/simdext.md (VCT): Add predicates for iterator
10229         elements.
10230         (EMUVEC): Define.
10231         (voptab): Likewise.
10232         (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
10233         (<voptab>v2si3): New patterns.
10234         (neg): Likewise.
10235         (reduc_plus_scal_v4hi): Likewise.
10236         (reduc_plus_scal_v2si): Likewise.
10237         (vec_duplicatev2si): Likewise.
10238         (vec_duplicatev4hi): Likewise.
10240 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
10242         * config/arc/simdext.md: Format and cleanup file.
10244 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
10246         * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
10247         only when munaligned-access option is on.
10248         (movmisalign<mode>): Likewise.
10250 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
10252         * common/config/arc/arc-common.c (arc_handle_option): Remove dot
10253         from string.
10254         * config/arc/arc.c (arc_reorg): Remove underscore from string.
10256 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
10258         * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
10259         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
10260         * config/arc/arc.md (clrsbsi2): Cleanup pattern.
10261         (norm_f): Likewise.
10262         (ffs): Likewise.
10263         (ffs_f): Likewise.
10264         (clzsi2): Use fls instruction when available.
10265         (arc_clzsi2): Likewise.
10267 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
10269         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
10271 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
10273         * doc/extend.texi (__builtin_arc_sr): Swap arguments.
10275 2021-05-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10277         PR middle-end/100467
10278         * toplev.c (compile_file): Call insn_locations_init before
10279         targetm.asm_out.code_end.
10281 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
10283         Revert:
10284         2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
10286         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
10288 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
10289             Andrew Stubbs  <amd@codesourcery.com>
10291         PR target/100418
10292         * builtins.c (try_store_by_multiple_pieces): Use force_operand for
10293         emit_move_insn operands.
10295 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
10297         * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
10298         location for the outgoing edges of an empty block.
10299         * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
10300         type by means of the get_array_descr_info langhook, if it is set and
10301         returns true.  Remove obsolete code dealing with unnamed subtypes.
10303 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
10305         * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
10306         (sbr_vector): Renamed from ssa_block_cache.
10307         (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
10308         (ssa_block_ranges::~ssa_block_ranges): Remove.
10309         (sbr_vector::set_bb_range): Use varying and undefined cached values.
10310         (ssa_block_ranges::set_bb_varying): Remove.
10311         (sbr_vector::get_bb_range): Adjust assert.
10312         (sbr_vector::bb_range_p): Adjust assert.
10313         (~block_range_cache): No freeing loop required.
10314         (block_range_cache::get_block_ranges): Remove.
10315         (block_range_cache::set_bb_range): Inline get_block_ranges.
10316         (block_range_cache::set_bb_varying): Remove.
10317         * gimple-range-cache.h (set_bb_varying): Remove prototype.
10318         * value-range.h (irange_allocator::get_memory): New.
10320 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
10322         * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
10323         dominator tree is available and requested.
10324         (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
10325         (ranger_cache::fill_block_cache): Don't search dom tree here either.
10326         * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
10328 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
10330         * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
10331         only PHI nodes better.
10333 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
10335         * gimple-range-edge.h (gimple_outgoing_range): Rename from
10336         outgoing_range.
10337         (gcond_edge_range): Export prototype.
10338         * gimple-range-edge.cc (gcond_edge_range): New.
10339         (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
10340         * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
10342 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
10344         * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
10345         default range into a temp and allocate only what is needed.
10347 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
10349         * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
10351 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
10353         * gimple-range.h (gimple_range_global): Pick up parameter initial
10354         values, and use-before defined locals are UNDEFINED.
10356 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
10358         * doc/extend.texi (scalar_storage_order): Mention effect on pointer
10359         and vector fields.
10360         * tree.h (reverse_storage_order_for_component_p): Return false if
10361         the type is a pointer.
10363 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
10365         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
10367 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
10369         PR target/98218
10370         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
10371         Handle V8QI, V4HI and V2SI modes.
10372         * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
10373         * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
10374         * config/i386/i386.md (unspec): ... here.
10376 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
10377             Tom de Vries  <tdevries@suse.de>
10379         * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
10380         a truth_value_p reduction variable is nonintegral.
10382 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
10384         PR target/100445
10385         * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
10386         Return false for mode sizes < 16.
10388 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
10390         PR target/100445
10391         * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
10393 2021-05-06  Martin Jambor  <mjambor@suse.cz>
10395         * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
10396         when there is no function summary.
10397         (ipa_sra_summarize_function): produce edge summaries even when
10398         bailing out early.
10400 2021-05-06  Tom Tromey  <tom@tromey.com>
10402         * godump.c (string_hash_eq): Remove.
10403         (go_finish): Use htab_eq_string.
10405 2021-05-06  Tom Tromey  <tom@tromey.com>
10407         * gengtype-state.c (read_state): Use htab_eq_string.
10408         (string_eq): Remove.
10410 2021-05-06  Tom Tromey  <tom@tromey.com>
10412         * gensupport.c (htab_eq_string): Remove.
10414 2021-05-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10416         PR ipa/97937
10417         * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
10418         * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
10419         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
10420         set_ignored_loc callbacks.
10421         * debug.c (do_nothing_debug_hooks): Likewise.
10422         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10423         * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
10424         (in_text_section_p, last_text_label, last_cold_label,
10425         switch_text_ranges, switch_cold_ranges): New data items.
10426         (dwarf2out_note_section_used): Remove.
10427         (dwarf2out_begin_prologue): Set fde->ignored_debug and
10428         in_text_section_p.
10429         (mark_ignored_debug_section): New helper function.
10430         (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
10431         mark_ignored_debug_section.
10432         (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
10433         (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
10434         (size_of_aranges): Adjust formula for multi-part text ranges size.
10435         (output_aranges): Output multi-part text ranges.
10436         (dwarf2out_set_ignored_loc): New callback function.
10437         (dwarf2out_finish): Output multi-part text ranges.
10438         (dwarf2out_c_finalize): Clear new data items.
10439         * final.c (final_start_function_1): Call set_ignored_loc callback.
10440         (final_scan_insn_1): Likewise.
10441         * ggc-page.c (gt_ggc_mx): New helper function.
10442         * stringpool.c (gt_pch_nx): Likewise.
10444 2021-05-06  Richard Biener  <rguenther@suse.de>
10446         * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
10447         (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
10448         (TV_TREE_INTO_SSA): New.
10449         * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
10450         (rewrite_blocks): Likewise.
10451         (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
10453 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
10455         * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
10456         abs_replacement, xor_replacement,
10457         cond_removal_in_popcount_clz_ctz_pattern,
10458         replace_phi_edge_with_variable): Change type of phi argument from
10459         gimple * to gphi *.
10461 2021-05-06  Richard Biener  <rguenther@suse.de>
10463         * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
10464         Output an opt-info message.
10465         (do_split_loop_on_cond): Likewise.
10466         (tree_ssa_split_loops): Update SSA form here.
10468 2021-05-06  Richard Biener  <rguenther@suse.de>
10470         * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
10471         return variable removal.
10473 2021-05-06  Marius Hillenbrand  <mhillen@linux.ibm.com>
10475         * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
10476         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
10477         (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
10478         operand.
10479         * config/s390/s390.c (s390_const_operand_ok): Remove unused
10480         values.
10482 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
10484         PR tree-optimization/94589
10485         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
10486         spaceship_replacement.
10487         (cond_only_block_p, spaceship_replacement): New functions.
10489 2021-05-06  Richard Biener  <rguenther@suse.de>
10491         PR ipa/100373
10492         * tree-emutls.c (gen_emutls_addr): Pass in whether we're
10493         dealing with a debug use and only query existing addresses
10494         if so.
10495         (lower_emutls_1): Avoid splitting out addresses for debug
10496         stmts, reset the debug stmt when we fail to find existing
10497         lowered addresses.
10498         (lower_emutls_phi_arg): Set wi.stmt.
10500 2021-05-06  Christoph Muellner  <cmuellner@gcc.gnu.org>
10502         PR target/100266
10503         * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
10504         * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
10505         (stack_protect_test): Use cbranch helper.
10507 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
10509         PR target/100402
10510         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
10511         always return the establisher frame for __builtin_frame_address (0).
10513 2021-05-05  Ivan Sorokin  <vanyacpp@gmail.com>
10515         PR target/91400
10516         * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
10517         (ix86_cpu_model_var): Likewise.
10518         (ix86_cpu_features2_type_node): Likewise.
10519         (ix86_cpu_features2_var): Likewise.
10520         (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
10521         their types.
10523 2021-05-05  Martin Sebor  <msebor@redhat.com>
10525         * passes.def (pass_warn_printf): Run after SSA.
10527 2021-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10529         * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
10530         * config/arm/predicates.md (minus_one_operand): New predicate.
10532 2021-05-05  Jeff Law  <jlaw@tachyum.com>
10534         * config/avr/avr.md: Remove references to CC_STATUS_INIT.
10536 2021-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
10538         PR rtl-optimization/100263
10539         * postreload.c (move2add_valid_value_p): Ensure register can
10540         change mode.
10542 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
10544         PR rtl-optimization/100411
10545         * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
10546         and beginning of function markers.
10548 2021-05-05  Jeff Law  <jlaw@tachyum.com>
10550         * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
10551         * config/cr16/cr16.c (notice_update_cc): Remove.
10552         * config/cr16/cr16-protos.h (notice_update_cc): Remove.
10554 2021-05-05  Uroš Bizjak  <ubizjak@gmail.com>
10556         PR target/98218
10557         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
10558         Handle V8QI, V4HI and V2SI modes.
10559         * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
10560         (ix86_build_signbit_mask): Ditto.
10561         * config/i386/mmx.md (MMXMODE14): New mode iterator.
10562         (<smaxmin:code><MMXMODE14:mode>3): New expander.
10563         (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
10564         (<umaxmin:code><MMXMODE24:mode>3): New expander.
10565         (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
10566         (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
10567         (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
10568         (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
10569         (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
10570         (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
10572 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
10574         * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
10575         not expand the VALUE_EXPR of variables put in the non-local frame.
10576         * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
10577         to be ignored for debug info, ensure its variable offsets are not.
10579 2021-05-05  Richard Biener  <rguenther@suse.de>
10581         PR tree-optimization/79333
10582         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
10583         Fold stmt following SSA edges.
10585 2021-05-05  Richard Biener  <rguenther@suse.de>
10587         PR middle-end/100394
10588         * calls.c (expand_call): Preserve possibly throwing calls.
10589         * cfgexpand.c (expand_call_stmt): When a call can throw signal
10590         RTL expansion there are side-effects.
10591         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
10592         mark all possibly throwing stmts necessary unless we can elide
10593         dead EH.
10594         * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
10595         -fdelete-dead-exceptions.
10596         * tree.h (DECL_PURE_P): Add note about exceptions.
10598 2021-05-05  Alexandre Oliva  <oliva@adacore.com>
10600         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
10601         unconditional.
10603 2021-05-04  David Edelsohn  <dje.gcc@gmail.com>
10605         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
10606         get_fnname_from_decl for name of thunk.
10607         * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
10608         and ASM_OUTPUT_LABEL.
10609         (rs6000_xcoff_declare_function_name): Use assemble_name and
10610         ASM_OUTPUT_LABEL.
10611         (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
10612         (rs6000_xcoff_encode_section_info): Don't add mapping class
10613         for aliases.  Always add [DS] mapping class to primary
10614         FUNCTION_DECL.
10615         (rs6000_asm_weaken_decl): Don't explicitly add [DS].
10617 2021-05-04  Martin Sebor  <msebor@redhat.com>
10619         PR middle-end/100307
10620         * builtins.c (compute_objsize_r): Clear base0 for pointers.
10622 2021-05-04  Jeff Law  <jlaw@tachyum.com>
10624         * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
10626 2021-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
10628         * caller-save.c: Remove CC0.
10629         * cfgcleanup.c: Remove CC0.
10630         * cfgrtl.c: Remove CC0.
10631         * combine.c: Remove CC0.
10632         * compare-elim.c: Remove CC0.
10633         * conditions.h: Remove CC0.
10634         * config/h8300/h8300.h: Remove CC0.
10635         * config/h8300/h8300-protos.h: Remove CC0.
10636         * config/h8300/peepholes.md: Remove CC0.
10637         * config/i386/x86-tune-sched.c: Remove CC0.
10638         * config/m68k/m68k.c: Remove CC0.
10639         * config/rl78/rl78.c: Remove CC0.
10640         * config/sparc/sparc.c: Remove CC0.
10641         * config/xtensa/xtensa.c: Remove CC0.
10642         (gen_conditional_move):  Use pc_rtx instead of cc0_rtx in a piece of
10643         RTL where that is used as a placeholder only.
10644         * cprop.c: Remove CC0.
10645         * cse.c: Remove CC0.
10646         * cselib.c: Remove CC0.
10647         * df-problems.c: Remove CC0.
10648         * df-scan.c: Remove CC0.
10649         * doc/md.texi: Remove CC0.  Adjust an example.
10650         * doc/rtl.texi: Remove CC0.  Adjust an example.
10651         * doc/tm.texi: Regenerate.
10652         * doc/tm.texi.in: Remove CC0.
10653         * emit-rtl.c: Remove CC0.
10654         * final.c: Remove CC0.
10655         * fwprop.c: Remove CC0.
10656         * gcse-common.c: Remove CC0.
10657         * gcse.c: Remove CC0.
10658         * genattrtab.c: Remove CC0.
10659         * genconfig.c: Remove CC0.
10660         * genemit.c: Remove CC0.
10661         * genextract.c: Remove CC0.
10662         * gengenrtl.c: Remove CC0.
10663         * genrecog.c: Remove CC0.
10664         * haifa-sched.c: Remove CC0.
10665         * ifcvt.c: Remove CC0.
10666         * ira-costs.c: Remove CC0.
10667         * ira.c: Remove CC0.
10668         * jump.c: Remove CC0.
10669         * loop-invariant.c: Remove CC0.
10670         * lra-constraints.c: Remove CC0.
10671         * lra-eliminations.c: Remove CC0.
10672         * optabs.c: Remove CC0.
10673         * postreload-gcse.c: Remove CC0.
10674         * postreload.c: Remove CC0.
10675         * print-rtl.c: Remove CC0.
10676         * read-rtl-function.c: Remove CC0.
10677         * reg-notes.def: Remove CC0.
10678         * reg-stack.c: Remove CC0.
10679         * reginfo.c: Remove CC0.
10680         * regrename.c: Remove CC0.
10681         * reload.c: Remove CC0.
10682         * reload1.c: Remove CC0.
10683         * reorg.c: Remove CC0.
10684         * resource.c: Remove CC0.
10685         * rtl.c: Remove CC0.
10686         * rtl.def: Remove CC0.
10687         * rtl.h: Remove CC0.
10688         * rtlanal.c: Remove CC0.
10689         * sched-deps.c: Remove CC0.
10690         * sched-rgn.c: Remove CC0.
10691         * shrink-wrap.c: Remove CC0.
10692         * simplify-rtx.c: Remove CC0.
10693         * system.h: Remove CC0.  Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
10694         CC_STATUS_MDEP, and CC_STATUS.
10695         * target.def: Remove CC0.
10696         * valtrack.c: Remove CC0.
10697         * var-tracking.c: Remove CC0.
10699 2021-05-04  Richard Biener  <rguenther@suse.de>
10701         PR tree-optimization/100414
10702         * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
10703         info here.
10704         (tree_ssa_phiopt_worker): But unconditionally here.
10706 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
10708         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
10709         && and || with floating-point and complex arguments.
10711 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
10713         * tree-inline.c (insert_debug_decl_map): Delete.
10714         (copy_debug_stmt): Minor tweak.
10715         (setup_one_parameter): Do not use a variable if the value is either
10716         a read-only DECL or a non-addressable local variable in the caller.
10717         In this case, insert the debug-only variable in the map manually.
10718         (expand_call_inline): Do not generate a CLOBBER for these values.
10719         * tree-inline.h (debug_map): Minor tweak.
10721 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
10723         * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
10724         * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
10726 2021-05-04  Richard Biener  <rguenther@suse.de>
10728         PR tree-optimization/100329
10729         * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
10730         asm goto defs.
10731         (insert_stmt_after): Assert we're not running into asm goto.
10733 2021-05-04  Richard Biener  <rguenther@suse.de>
10735         PR tree-optimization/100398
10736         * tree-ssa-dse.c (pass_dse::execute): Preserve control
10737         altering stmts.
10739 2021-05-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10741         * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
10743 2021-05-04  Alexandre Oliva  <oliva@adacore.com>
10745         * builtins.c (try_store_by_multiple_pieces): New.
10746         (expand_builtin_memset_args): Use it.  If target_char_cast
10747         fails, proceed as for non-constant val.  Pass len's ctz to...
10748         * expr.c (clear_storage_hints): ... this.  Try store by
10749         multiple pieces after setmem.
10750         (clear_storage): Adjust.
10751         * expr.h (clear_storage_hints): Likewise.
10752         (try_store_by_multiple_pieces): Declare.
10753         * passes.def: Replace the last copy_prop with ccp.
10755 2021-05-03  Tom de Vries  <tdevries@suse.de>
10757         PR target/100321
10758         * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
10759         reduction.
10761 2021-05-03  Richard Biener  <rguenther@suse.de>
10763         * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
10765 2021-05-03  Richard Biener  <rguenther@suse.de>
10767         * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
10768         (dse_dom_walker): Remove.
10769         (dse_dom_walker::dse_optimize_stmt): Rename...
10770         (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
10771         (dse_dom_walker::before_dom_children): Inline ...
10772         (pass_dse::execute): ... here.  Perform a reverse program
10773         order walk.
10775 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
10777         PR bootstrap/99703
10778         * configure: Regenerated.
10780 2021-05-03  Ilya Leoshkevich  <iii@linux.ibm.com>
10782         PR target/100217
10783         * config/s390/s390.c (s390_hard_fp_reg_p): New function.
10784         (s390_md_asm_adjust): Handle hard registers.
10786 2021-05-03  Jakub Jelinek  <jakub@redhat.com>
10788         PR tree-optimization/100382
10789         * tree-ssa-dse.c: Include tree-eh.h.
10790         (dse_dom_walker::before_dom_children): Don't remove stmts if
10791         stmt_unremovable_because_of_non_call_eh_p is true.
10793 2021-05-02  David Edelsohn  <dje.gcc@gmail.com>
10795         * varasm.c (compute_reloc_for_var): Split out from...
10796         (get_variable_section): Use it.
10797         * output.h (compute_reloc_for_var): Declare.
10798         * config/rs6000/rs6000-protos.h
10799         (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
10800         unsigned int.
10801         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
10802         Don't append storage mapping class to symbol.
10803         (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
10804         Don't convert TLS BSS to common.
10805         (rs6000_xcoff_unique_section): Don't fall back to select_secton.
10806         (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
10807         bss_initializer.
10808         (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
10809         mapping class.
10810         (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
10811         If align is 0 from TLS class, use the same rules as varasm.c
10812         If not common, switch to BSS section manually.
10813         If common, emit appropriate comm or lcomm directive.
10814         (rs6000_xcoff_encode_section_info): Add logic to append all
10815         storage mapping classes.
10816         (rs6000_asm_weaken_decl): Adjust for qualname symbols.
10817         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
10818         rs6000_xcoff_asm_output_aligned_decl_common.
10819         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
10820         rs6000_xcoff_asm_output_aligned_decl_common.
10821         (ASM_OUTPUT_TLS_COMMON): Use
10822         rs6000_xcoff_asm_output_aligned_decl_common.
10824 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
10826         PR target/100375
10827         * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
10828         as first argument of pseudo_node_t constructors.
10830 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
10832         PR target/100336
10833         * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
10835 2021-05-01  Aldy Hernandez  <aldyh@redhat.com>
10837         * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
10838         (gt_pch_nx (int_range<1> *&)): New.
10839         (gt_ggc_mx (int_range<1> *&)): New.
10840         * value-range.h (class irange): Add GTY support for
10841         the base class.
10843 2021-05-01  Geng Qi  <gengqi@linux.alibaba.com>
10845         * doc/options.texi (Negative): Change either or to both and.
10847 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
10849         * config/aarch64/aarch64-simd-builtins.def: Add
10850         float_ml[as][q]_laneq builtin generator macros.
10851         * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
10852         (aarch64_float_mla_laneq<mode>): Define.
10853         (aarch64_float_mls_laneq<mode>): Define.
10854         * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
10855         instead of GCC vector extensions.
10856         (vmlaq_laneq_f32): Likewise.
10857         (vmls_laneq_f32): Likewise.
10858         (vmlsq_laneq_f32): Likewise.
10860 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
10862         * config/aarch64/aarch64-simd-builtins.def: Add
10863         float_ml[as]_lane builtin generator macros.
10864         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
10865         Rename to...
10866         (mul_lane<mode>3): This, and re-order arguments.
10867         (aarch64_float_mla_lane<mode>): Define.
10868         (aarch64_float_mls_lane<mode>): Define.
10869         * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
10870         instead of GCC vector extensions.
10871         (vmlaq_lane_f32): Likewise.
10872         (vmls_lane_f32): Likewise.
10873         (vmlsq_lane_f32): Likewise.
10875 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
10877         * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
10878         builtin generator macros.
10879         * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
10880         Define.
10881         (aarch64_float_mls<mode>): Define.
10882         * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
10883         instead of relying on GCC vector extensions.
10884         (vmla_f64): Likewise.
10885         (vmlaq_f32): Likewise.
10886         (vmlaq_f64): Likewise.
10887         (vmls_f32): Likewise.
10888         (vmls_f64): Likewise.
10889         (vmlsq_f32): Likewise.
10890         (vmlsq_f64): Likewise.
10891         * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
10893 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
10895         * config/aarch64/aarch64-simd-builtins.def: Add
10896         float_ml[as]_n_builtin generator macros.
10897         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
10898         Rename to...
10899         (mul_n<mode>3): This, and re-order arguments.
10900         (aarch64_float_mla_n<mode>): Define.
10901         (aarch64_float_mls_n<mode>): Define.
10902         * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
10903         instead of inline asm.
10904         (vmlaq_n_f32): Likewise.
10905         (vmls_n_f32): Likewise.
10906         (vmlsq_n_f32): Likewise.
10908 2021-04-30  Jonathan Wright  <joanthan.wright@arm.com>
10910         * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
10911         builtin generator macros.
10912         * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
10913         (aarch64_pmull_hiv16qi_insn): Define.
10914         (aarch64_pmull_hiv16qi): Define.
10915         * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
10916         instead of inline asm.
10917         (vmull_p8): Likewise.
10919 2021-04-30  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
10921         * config/avr/avr.md: Adjust peepholes to match and
10922         generate parallels with clobber of REG_CC.
10923         (mov<mode>_insn): Rename to mov<mode>_insn_split.
10924         (*mov<mode>_insn): Rename to mov<mode>_insn.
10926 2021-04-30  David Edelsohn  <dje.gcc@gmail.com>
10928         * varasm.c (use_blocks_for_decl_p): Don't use section anchors
10929         for VAR_DECLs if -fdata-sections enabled.
10931 2021-04-30  Michael Meissner  <meissner@linux.ibm.com>
10933         PR bootstrap/100327
10934         * config/rs6000/rs6000.c
10935         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
10936         (rs6000_libgcc_floating_mode_supported_p): New target hook.
10938 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
10940         * tree-ssa-threadbackward.c (class thread_jumps): Split out code
10941         from here...
10942         (class back_threader_registry): ...to here...
10943         (class back_threader_profitability): ...and here...
10944         (thread_jumps::thread_through_all_blocks): Remove argument.
10945         (back_threader_registry::back_threader_registry): New.
10946         (back_threader_registry::~back_threader_registry): New.
10947         (back_threader_registry::thread_through_all_blocks): New.
10948         (thread_jumps::profitable_jump_thread_path): Move from here...
10949         (back_threader_profitability::profitable_path_p): ...to here.
10950         (thread_jumps::find_taken_edge): New.
10951         (thread_jumps::convert_and_register_current_path): Move...
10952         (back_threader_registry::register_path): ...to here.
10953         (thread_jumps::register_jump_thread_path_if_profitable): Move...
10954         (thread_jumps::maybe_register_path): ...to here.
10955         (thread_jumps::handle_phi): Call find_taken_edge and
10956         maybe_register_path.
10957         (thread_jumps::handle_assignment): Same.
10958         (thread_jumps::fsm_find_control_statement_thread_paths): Remove
10959         tree argument to handle_phi and handle_assignment.
10960         (thread_jumps::find_jump_threads_backwards): Set m_name.  Remove
10961         set of m_speed_p and m_max_threaded_paths.
10962         (pass_thread_jumps::execute): Remove second argument from
10963         find_jump_threads_backwards.
10964         (pass_early_thread_jumps::execute): Same.
10966 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
10968         * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
10969         (class dom_opt_dom_walker): Initialize some class variables.
10970         (pass_dominator::execute): Pass evrp_range_analyzer and
10971         dom_jump_threader_simplifier to dom_opt_dom_walker.
10972         Adjust for some functions moving into classes.
10973         (simplify_stmt_for_jump_threading): Adjust and move to...
10974         (jump_threader_simplifier::simplify): ...here.
10975         (dom_opt_dom_walker::before_dom_children): Adjust for
10976         m_evrp_range_analyzer.
10977         (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
10978         (test_for_singularity): Place in dom_opt_dom_walker class.
10979         (dom_opt_dom_walker::optimize_stmt): The argument
10980         evrp_range_analyzer is now a class field.
10981         * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
10982         (thread_jumps::thread_through_all_blocks): New.
10983         (thread_jumps::convert_and_register_current_path): Use m_registry.
10984         (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
10985         being in the threader class.
10986         (pass_early_thread_jumps::execute): Same.
10987         * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
10988         (jump_threader::jump_threader): ...here.
10989         (threadedge_finalize_values): Move...
10990         (jump_threader::~jump_threader): ...here.
10991         (jump_threader::remove_jump_threads_including): New.
10992         (jump_threader::thread_through_all_blocks): New.
10993         (record_temporary_equivalences_from_phis): Move...
10994         (jump_threader::record_temporary_equivalences_from_phis): ...here.
10995         (record_temporary_equivalences_from_stmts_at_dest): Move...
10996         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
10997         Here...
10998         (simplify_control_stmt_condition_1): Move to jump_threader class.
10999         (simplify_control_stmt_condition): Move...
11000         (jump_threader::simplify_control_stmt_condition): ...here.
11001         (thread_around_empty_blocks): Move...
11002         (jump_threader::thread_around_empty_blocks): ...here.
11003         (thread_through_normal_block): Move...
11004         (jump_threader::thread_through_normal_block): ...here.
11005         (thread_across_edge): Move...
11006         (jump_threader::thread_across_edge): ...here.
11007         (thread_outgoing_edges): Move...
11008         (jump_threader::thread_outgoing_edges): ...here.
11009         * tree-ssa-threadedge.h: Move externally facing functings...
11010         (class jump_threader): ...here...
11011         (class jump_threader_simplifier): ...and here.
11012         * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
11013         (jump_thread_path_allocator::jump_thread_path_allocator): New.
11014         (jump_thread_path_allocator::~jump_thread_path_allocator): New.
11015         (jump_thread_path_allocator::allocate_thread_edge): New.
11016         (jump_thread_path_allocator::allocate_thread_path): New.
11017         (jump_thread_path_registry::jump_thread_path_registry): New.
11018         (jump_thread_path_registry::~jump_thread_path_registry): New.
11019         (jump_thread_path_registry::allocate_thread_edge): New.
11020         (jump_thread_path_registry::allocate_thread_path): New.
11021         (dump_jump_thread_path): Make extern.
11022         (debug (const vec<jump_thread_edge *> &path)): New.
11023         (struct removed_edges): Move to tree-ssa-threadupdate.h.
11024         (struct thread_stats_d): Remove.
11025         (remove_ctrl_stmt_and_useless_edges): Make static.
11026         (lookup_redirection_data): Move...
11027         (jump_thread_path_registry::lookup_redirection_data): ...here.
11028         (ssa_redirect_edges): Make static.
11029         (thread_block_1): Move...
11030         (jump_thread_path_registry::thread_block_1): ...here.
11031         (thread_block): Move...
11032         (jump_thread_path_registry::thread_block): ...here.
11033         (thread_through_loop_header):  Move...
11034         (jump_thread_path_registry::thread_through_loop_header): ...here.
11035         (mark_threaded_blocks): Move...
11036         (jump_thread_path_registry::mark_threaded_blocks): ...here.
11037         (debug_path): Move...
11038         (jump_thread_path_registry::debug_path): ...here.
11039         (debug_all_paths): Move...
11040         (jump_thread_path_registry::dump): ..here.
11041         (rewire_first_differing_edge): Move...
11042         (jump_thread_path_registry::rewire_first_differing_edge): ...here.
11043         (adjust_paths_after_duplication): Move...
11044         (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
11045         (duplicate_thread_path): Move...
11046         (jump_thread_path_registry::duplicate_thread_path): ..here.
11047         (remove_jump_threads_including): Move...
11048         (jump_thread_path_registry::remove_jump_threads_including): ...here.
11049         (thread_through_all_blocks): Move to...
11050         (jump_thread_path_registry::thread_through_all_blocks): ...here.
11051         (delete_jump_thread_path): Remove.
11052         (register_jump_thread): Move...
11053         (jump_thread_path_registry::register_jump_thread): ...here.
11054         * tree-ssa-threadupdate.h: Move externally facing functions...
11055         (class jump_thread_path_allocator): ...here...
11056         (class jump_thread_path_registry): ...and here.
11057         (thread_through_all_blocks): Remove.
11058         (struct removed_edges): New.
11059         (register_jump_thread): Remove.
11060         (remove_jump_threads_including): Remove.
11061         (delete_jump_thread_path): Remove.
11062         (remove_ctrl_stmt_and_useless_edges): Remove.
11063         (free_dom_edge_info): New prototype.
11064         * tree-vrp.c: Remove x_vr_values hack.
11065         (class vrp_jump_threader_simplifier): New.
11066         (vrp_jump_threader_simplifier::simplify): New.
11067         (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
11068         Remove m_dummy_cond.
11069         Instantiate m_simplifier and m_threader.
11070         (vrp_jump_threader::thread_through_all_blocks): New.
11071         (vrp_jump_threader::simplify_stmt): Remove.
11072         (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
11073         Remove x_vr_values hack.
11074         (execute_vrp): Adjust for thread_through_all_blocks being in a
11075         class.
11077 2021-04-30  Christophe Lyon  <christophe.lyon@linaro.org>
11079         * genflags.c (gen_insn): Print failed expansion string.
11081 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
11083         * expr.c (alignment_for_piecewise_move): Call mode_for_size
11084         without limit to MAX_FIXED_MODE_SIZE.
11086 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
11088         PR middle-end/90773
11089         * builtins.c (builtin_memset_gen_str): Don't use return from
11090         simplify_gen_subreg.
11092 2021-04-30  Uroš Bizjak  <ubizjak@gmail.com>
11094         PR target/98060
11095         * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
11096         (*addsi3_carry_zext_0r): Ditto.
11097         (*sub<mode>3_carry_0): Ditto.
11098         (*subsi3_carry_zext_0r): Ditto.
11099         * config/i386/predicates.md (ix86_carry_flag_unset_operator):
11100         New predicate.
11101         * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
11102         Also consider ix86_carry_flag_unset_operator to calculate
11103         the cost of adc/sbb insn.
11105 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
11107         PR rtl-optimization/100225
11108         PR rtl-optimization/84878
11109         * modulo-sched.c (sms_schedule): Use note_stores to skip loops
11110         where we have an instruction which touches (writes) any hard
11111         register from df->regular_block_artificial_uses set.
11112         Allow not-single-set instruction only right before basic block
11113         tail.
11115 2021-04-30  Geng Qi  <gengqi@linux.alibaba.com>
11117         * config/riscv/riscv.opt (march=,mabi=): Negative itself.
11119 2021-04-30  LevyHsu  <admin@levyhsu.com>
11121         * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
11122         * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
11123         * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
11124         (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
11126 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
11128         * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
11130 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
11132         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
11133         (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this.  Enclose in do/while(0).
11134         * config/i386/i386.c: Adjust.
11135         * config/i386/i386.md: Adjust.
11136         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
11137         * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11138         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11139         * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11140         * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11141         * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11142         * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11143         * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11144         * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11145         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11146         (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
11148 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
11150         * config/i386/i386-expand.c (ix86_expand_int_compare):
11151         Swap operands of GTU and LEU comparison to emit carry flag comparison.
11152         * config/i386/i386.md (*add<mode>3_carry_0): Change insn
11153         predicate to allow more combine opportunities with memory operands.
11154         (*sub<mode>3_carry_0): Ditto.
11156 2021-04-29  Richard Sandiford  <richard.sandiford@arm.com>
11158         PR rtl-optimization/100303
11159         * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
11160         boolean that indicates whether the use will only be used in
11161         debug instructions.  Treat it in the same way that existing
11162         cross-EBB debug references would be handled if so.
11163         (function_info::make_uses_available): Likewise.
11164         * rtl-ssa/functions.h (function_info::make_uses_available): Update
11165         prototype accordingly.
11166         (function_info::make_uses_available): Likewise.
11167         * fwprop.c (try_fwprop_subst): Update call accordingly.
11169 2021-04-29  Jeff Law  <jlaw@tachyum.com>
11171         * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
11172         of RTX_CODE guard.
11174 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
11175             Richard Biener  <rguenther@suse.de>
11177         PR target/100312
11178         * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
11179         (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
11180         (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
11181         (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
11182         (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
11183         to PURE_ARGS category.
11184         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
11185         Handle PURE_ARGS category.
11186         * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
11188 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
11190         * configure.ac: Check for the presence of sys/locking.h header and
11191         for whether _LK_LOCK is supported by _locking.
11192         * configure: Regenerate.
11193         * config.in: Likewise.
11194         * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
11195         * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
11196         * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
11198 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
11200         * config/i386/predicates.md (fcmov_comparison_operator):
11201         Do not check for trivial FP comparison operator.
11202         <case GEU, case LTU>: Allow CCGZmode.
11203         <case GTU, case LEU>: Do not allow CCCmode.
11204         (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
11205         (ix86_carry_flag_operator): Match only LTU and UNLT code.
11206         Do not check for trivial FP comparison operator.  Allow CCGZmode.
11208 2021-04-29  Tom de Vries  <tdevries@suse.de>
11210         * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
11211         fd->loop.step by either step or orig_step.
11213 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
11215         * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
11216         (load_got_register): Do the PIC dance here.
11217         (sparc_legitimize_tls_address): Simplify.
11218         (sparc_emit_probe_stack_range): Likewise.
11219         (sparc32_initialize_trampoline): Likewise.
11220         (sparc64_initialize_trampoline): Likewise.
11221         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
11222         (probe_stack_range<P:mode>): Likewise.
11223         (flush<P:mode>): Likewise.
11224         (tgd_hi22<P:mode>): Likewise.
11225         (tgd_lo10<P:mode>): Likewise.
11226         (tgd_add<P:mode>): Likewise.
11227         (tgd_call<P:mode>): Likewise.
11228         (tldm_hi22<P:mode>): Likewise.
11229         (tldm_lo10<P:mode>): Likewise.
11230         (tldm_add<P:mode>): Likewise.
11231         (tldm_call<P:mode>): Likewise.
11232         (tldo_hix22<P:mode>): Likewise.
11233         (tldo_lox10<P:mode>): Likewise.
11234         (tldo_add<P:mode>): Likewise.
11235         (tie_hi22<P:mode>): Likewise.
11236         (tie_lo10<P:mode>): Likewise.
11237         (tie_add<P:mode>): Likewise.
11238         (tle_hix22<P:mode>): Likewise.
11239         (tle_lox10<P:mode>): Likewise.
11240         (stack_protect_setsi): Rename to...
11241         (stack_protect_set32): ...this.
11242         (stack_protect_setdi): Rename to...
11243         (stack_protect_set64): ...this.
11244         (stack_protect_set): Adjust calls to above.
11245         (stack_protect_testsi): Rename to...
11246         (stack_protect_test32): ...this.
11247         (stack_protect_testdi): Rename to...
11248         (stack_protect_test64): ...this.
11249         (stack_protect_test): Adjust calls to above.
11251 2021-04-29  H.J. Lu  <hjl.tools@gmail.com>
11253         PR middle-end/90773
11254         * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
11255         (builtin_strncpy_read_str): Likewise.
11256         (builtin_memset_read_str): Add an argument for the previous RTL
11257         information and generate the new RTL from the previous RTL info.
11258         (builtin_memset_gen_str): Likewise.
11259         * builtins.h (builtin_strncpy_read_str): Update the prototype.
11260         (builtin_memset_read_str): Likewise.
11261         * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
11262         returns true, round up size and alignment to the widest integer
11263         mode for maximum size.
11264         (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
11265         and pass it to m_constfn.
11266         (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
11267         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
11268         initialize m_push.  Initialize m_overlap_op_by_pieces with
11269         targetm.overlap_op_by_pieces_p ().
11270         (op_by_pieces_d::run): Pass the previous RTL information to
11271         pieces_addr::adjust and generate overlapping operations if
11272         m_overlap_op_by_pieces is true.
11273         (PUSHG_P): New.
11274         (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
11275         change.
11276         (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
11277         change.
11278         (can_store_by_pieces): Use by_pieces_constfn on constfun.
11279         (store_by_pieces): Use by_pieces_constfn on constfun.  Updated
11280         for op_by_pieces_d change.
11281         (clear_by_pieces_1): Add a dummy argument.
11282         (clear_by_pieces): Updated for op_by_pieces_d change.
11283         (compare_by_pieces_d::compare_by_pieces_d): Likewise.
11284         (string_cst_read_str): Add a dummy argument.
11285         * expr.h (by_pieces_constfn): Add a dummy argument.
11286         (by_pieces_prev): New.
11287         * target.def (overlap_op_by_pieces_p): New target hook.
11288         * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
11289         * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
11290         * doc/tm.texi: Regenerated.
11292 2021-04-29  Richard Biener  <rguenther@suse.de>
11294         PR tree-optimization/100253
11295         * tree-vect-stmts.c (vectorizable_load): Do not assume
11296         element alignment when DR_MISALIGNMENT is -1.
11297         (vectorizable_store): Likewise.
11299 2021-04-29  Jakub Jelinek  <jakub@redhat.com>
11301         PR target/100302
11302         * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
11303         absu_hwi instead of abs_hwi.
11305 2021-04-29  Richard Biener  <rguenther@suse.de>
11307         PR middle-end/38474
11308         * tree-ssa-structalias.c (add_graph_edge): Avoid direct
11309         forwarding when indirect forwarding through ESCAPED
11310         alread happens.
11312 2021-04-29  Tom de Vries  <tdevries@suse.de>
11314         PR target/100232
11315         * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
11316         (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
11317         (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
11318         (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
11320 2021-04-29  Richard Biener  <rguenther@suse.de>
11322         PR tree-optimization/99912
11323         * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
11324         (dse_dom_walker::todo): Likewise.
11325         (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
11326         caller.
11327         (dse_dom_walker::before_dom_children): Remove trivially
11328         dead SSA defs and schedule CFG cleanup if we removed all
11329         PHIs in a block.
11330         (pass_dse::execute): Get TODO as computed by the DOM walker
11331         and return it.  Wipe dominator info earlier.
11333 2021-04-29  Richard Biener  <rguenther@suse.de>
11335         PR ipa/100308
11336         * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
11337         Track blocks to cleanup EH in new m_need_eh_cleanup.
11338         (ipcp_modif_dom_walker::cleanup_eh): New.
11339         (ipcp_transform_function): Release dominator info before
11340         doing EH cleanup.
11342 2021-04-29  Martin Sebor  <msebor@redhat.com>
11344         PR middle-end/100250
11345         * attribs.c (attr_access::array_as_string): Avoid dereferencing
11346         a pointer when it's null.
11348 2021-04-29  Martin Sebor  <msebor@redhat.com>
11350         * Makefile.in (OBJS): Add ipa-free-lang-data.o.
11351         * ipa-free-lang-data.cc: New file.
11352         * tree.c: Move pass free_lang_data to file above.
11353          (build_array_type_1): Declare extern.
11354         * tree.h (build_array_type_1): Declare.
11356 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
11358         * config/aarch64/aarch64-simd-builtins.def: Modify comment to
11359         make consistent with updated RTL pattern.
11360         * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
11361         Implement using ss_truncate and us_truncate rather than
11362         unspecs.
11363         * config/aarch64/iterators.md: Remove redundant unspecs and
11364         iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
11366 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
11368         * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
11369         attributes consistent with those defined in arm_neon.h.
11371 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
11373         * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
11374         attributes consistent with those defined in arm_neon.h.
11376 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
11378         * config/aarch64/aarch64-simd-builtins.def: Add
11379         float_trunc_rodd builtin generator macros.
11380         * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
11381         Define.
11382         (aarch64_float_trunc_rodd_lo_v2sf): Define.
11383         (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
11384         (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
11385         (aarch64_float_trunc_rodd_hi_v4sf): Define.
11386         * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
11387         instead of inline asm.
11388         (vcvtx_high_f32_f64): Likewise.
11389         (vcvtxd_f32_f64): Likewise.
11390         * config/aarch64/iterators.md: Add FCVTXN unspec.
11392 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
11394         * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
11395         generator macros.
11396         * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
11397         Define.
11398         * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
11399         instead of inline asm.
11400         (vqtbx1_u8): Likewise.
11401         (vqtbx1_p8): Likewise.
11402         (vqtbx1q_s8): Likewise.
11403         (vqtbx1q_u8): Likewise.
11404         (vqtbx1q_p8): Likewise.
11405         (vtbx2_s8): Likewise.
11406         (vtbx2_u8): Likewise.
11407         (vtbx2_p8): Likewise.
11409 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
11411         * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
11412         generator macros.
11413         * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
11414         instead of inline asm.
11415         (vqtbl1_s8): Likewise.
11416         (vqtbl1_u8): Likewise.
11417         (vqtbl1q_p8): Likewise.
11418         (vqtbl1q_s8): Likewise.
11419         (vqtbl1q_u8): Likewise.
11420         (vtbl1_s8): Likewise.
11421         (vtbl1_u8): Likewise.
11422         (vtbl1_p8): Likewise.
11423         (vtbl2_s8): Likewise.
11424         (vtbl2_u8): Likewise.
11425         (vtbl2_p8): Likewise.
11427 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
11429         * config/aarch64/aarch64-simd-builtins.def: Add polynomial
11430         ssri_n buitin generator macro.
11431         * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
11432         instead of inline asm.
11433         (vsri_n_p16): Likewise.
11434         (vsri_n_p64): Likewise.
11435         (vsriq_n_p8): Likewise.
11436         (vsriq_n_p16): Likewise.
11437         (vsriq_n_p64): Likewise.
11439 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
11441         * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
11442         iterator for polynomial ssli_n builtin generator macro.
11443         * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
11444         instead of inline asm.
11445         (vsli_n_p16): Likewise.
11446         (vsliq_n_p8): Likewise.
11447         (vsliq_n_p16): Likewise.
11448         * config/aarch64/iterators.md: Define VALLP mode iterator.
11450 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
11452         * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
11453         iterator to generate [su]adalp RTL builtins.
11454         * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
11455         [su]adalp RTL pattern.
11456         * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
11457         instead of inline asm.
11458         (vpadal_u32): Likewise.
11460 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
11462         * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
11463         builtin generator macros.
11464         * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
11465         Define.
11466         * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
11467         instead of inline asm.
11468         (vpaddl_s16): Likewise.
11469         (vpaddl_s32): Likewise.
11470         (vpaddl_u8): Likewise.
11471         (vpaddl_u16): Likewise.
11472         (vpaddl_u32): Likewise.
11473         (vpaddlq_s8): Likewise.
11474         (vpaddlq_s16): Likewise.
11475         (vpaddlq_s32): Likewise.
11476         (vpaddlq_u8): Likewise.
11477         (vpaddlq_u16): Likewise.
11478         (vpaddlq_u32): Liwewise.
11479         * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
11480         appropriate attributes.
11482 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
11484         * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
11485         for aarch64_addp<mode> builtin macro generator.
11486         * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
11487         aarch64_addp<mode> RTL pattern.
11488         * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
11489         instead of inline asm.
11490         (vpaddq_s16): Likewise.
11491         (vpaddq_s32): Likewise.
11492         (vpaddq_s64): Likewise.
11493         (vpaddq_u8): Likewise.
11494         (vpaddq_u16): Likewise.
11495         (vpaddq_u32): Likewise.
11496         (vpaddq_u64): Likewise.
11498 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
11500         * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
11501         builtin generator macros.
11502         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
11503         Define.
11504         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
11505         instead of inline asm.
11506         (vqdmulh_n_s32): Likewise.
11507         (vqdmulhq_n_s16): Likewise.
11508         (vqdmulhq_n_s32): Likewise.
11509         (vqrdmulh_n_s16): Likewise.
11510         (vqrdmulh_n_s32): Likewise.
11511         (vqrdmulhq_n_s16): Likewise.
11512         (vqrdmulhq_n_s32): Likewise.
11514 2021-04-28  Tobias Burnus  <tobias@codesourcery.com>
11516         * doc/install.texi (--enable-offload-defaulted): Document.
11518 2021-04-28  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
11520         * config/avr/avr-dimode.md: Turn existing patterns into
11521         define_insn_and_split style patterns where the splitter
11522         adds a clobber of the condition code register.  Drop "cc"
11523         attribute.  Add new patterns to match output of
11524         the splitters.
11525         * config/avr/avr-fixed.md: Likewise.
11526         * config/avr/avr.c (cc_reg_rtx): New.
11527         (avr_parallel_insn_from_insns): Adjust insn count
11528         for removal of set of cc0.
11529         (avr_is_casesi_sequence): Likewise.
11530         (avr_casei_sequence_check_operands): Likewise.
11531         (avr_optimize_casesi): Likewise. Also insert
11532         new insns after jump_insn.
11533         (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
11534         for removal of set of cc0.
11535         (avr_init_expanders): Initialize cc_reg_rtx.
11536         (avr_regno_reg_class): Handle REG_CC.
11537         (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
11538         (avr_notice_update_cc): Remove function.
11539         (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
11540         (compare_condition): Adjust for PARALLEL with
11541         REG_CC clobber.
11542         (out_shift_with_cnt): Likewise.
11543         (ashlhi3_out): Likewise.
11544         (ashrhi3_out): Likewise.
11545         (lshrhi3_out): Likewise.
11546         (avr_class_max_nregs): Return single reg for REG_CC.
11547         (avr_compare_pattern): Check for REG_CC instead
11548         of cc0_rtx.
11549         (avr_reorg_remove_redundant_compare): Likewise.
11550         (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
11551         (avr_hard_regno_nregs): Return single reg for REG_CC.
11552         (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
11553         (avr_md_asm_adjust): Clobber REG_CC.
11554         (TARGET_HARD_REGNO_NREGS): Define.
11555         (TARGET_CLASS_MAX_NREGS): Define.
11556         (TARGET_MD_ASM_ADJUST): Define.
11557         * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
11558         for REG_CC.
11559         (enum reg_class): Add CC_REG class.
11560         (NOTICE_UPDATE_CC): Remove.
11561         (CC_OVERFLOW_UNUSABLE): Remove.
11562         (CC_NO_CARRY): Remove.
11563         * config/avr/avr.md: Turn existing patterns into
11564         define_insn_and_split style patterns where the splitter
11565         adds a clobber of the condition code register.  Drop "cc"
11566         attribute.  Add new patterns to match output of
11567         the splitters.
11568         (sez): Remove unused pattern.
11570 2021-04-28  Richard Earnshaw  <rearnsha@arm.com>
11572         PR target/100311
11573         * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
11574         used in HImode.
11576 2021-04-28  Richard Sandiford  <richard.sandiford@arm.com>
11578         PR target/100305
11579         * config/aarch64/constraints.md (Utq): Require the address to
11580         be valid for both the element mode and for V2DImode.
11582 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
11583             Tobias Burnus  <tobias@codesourcery.com>
11585         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
11586         * gcc.c (process_command): New variable.
11587         (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
11588         set it if -foffload is defaulted.
11589         * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
11590         (compile_offload_image): If OFFLOAD_DEFAULTED and
11591         OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
11592         if corresponding mkoffload can't be found.
11593         (compile_images_for_offload_targets): Likewise.  Free and clear
11594         offload_names if no valid offload is found.
11595         * config.in: Regenerate.
11596         * configure: Regenerate.
11598 2021-04-28  Richard Biener  <rguenther@suse.de>
11600         PR tree-optimization/100292
11601         * tree-vect-generic.c (expand_vector_condition): Do not fold
11602         the comparisons.
11604 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
11606         * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
11607         * config/rs6000/aix64.opt (m64): New.
11608         (m32): New.
11610 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
11612         * config/vax/vax.c (print_operand_address, vax_address_cost_1)
11613         (index_term_p): Handle ASHIFT too.
11615 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
11617         * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
11618         (sync_lock_test_and_set<mode>): Adjust accordingly.
11619         (sync_lock_release<mode>): Likewise.
11621 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
11623         * config/vax/vax-protos.h (adjacent_operands_p): Remove
11624         prototype.
11625         * config/vax/vax.c (adjacent_operands_p): Remove.
11627 2021-04-27  Maciej W. Rozycki  <macro@linux-mips.org>
11629         * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
11630         through to the non-conditional execution case if getting the
11631         condition for conditional execution has failed.
11633 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
11635         PR middle-end/100284
11636         * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
11637         * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
11638         than asserting on it.
11640 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
11642         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
11643         with TARGET_AIX_OS.
11645 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
11647         PR target/94177
11648         * calls.c (precompute_register_parameters): Additionally test
11649         targetm.precompute_tls_p to pre-compute argument.
11650         * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
11651         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
11652         * target.def (precompute_tls_p): New.
11653         * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
11654         * doc/tm.texi: Regenerated.
11656 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
11658         PR target/100200
11659         * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
11660         back to HOST_WIDE_INT.
11662 2021-04-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11664         PR target/100106
11665         * simplify-rtx.c (simplify_context::simplify_subreg): Check the
11666         memory alignment for the outer mode.
11668 2021-04-27  H.J. Lu  <hjl.tools@gmail.com>
11670         PR middle-end/90773
11671         * expr.c (op_by_pieces_d::get_usable_mode): New member function.
11672         (op_by_pieces_d::run): Cange a while loop to a do-while loop.
11674 2021-04-27  Alex Coplan  <alex.coplan@arm.com>
11676         PR target/99977
11677         * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
11678         with negative immediates: ensure we expand cbranchsi4_scratch
11679         correctly and ensure we satisfy its constraints.
11680         * config/arm/sync.md
11681         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
11682         attempt to tie two output operands together with constraints;
11683         collapse two alternatives.
11684         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
11685         * config/arm/thumb1.md (cbranchsi4_neg_late): New.
11687 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
11689         PR target/100200
11690         * config/aarch64/predicates.md (aarch64_sub_immediate,
11691         aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
11692         * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
11693         * config/aarch64/aarch64.c (aarch64_print_operand,
11694         aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
11696 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
11698         PR tree-optimization/100239
11699         * tree-vect-generic.c (lower_vec_perm): Don't accept constant
11700         permutations with all indices from the first zero element as vec_shl.
11702 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
11704         PR rtl-optimization/100254
11705         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
11706         last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
11708 2021-04-27  Richard Biener  <rguenther@suse.de>
11710         PR tree-optimization/99912
11711         * passes.def: Add comment about new TODO_remove_unused_locals.
11712         * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
11713         at start.
11715 2021-04-27  Richard Biener  <rguenther@suse.de>
11717         PR tree-optimization/99912
11718         * passes.def (pass_all_optimizations): Add pass_dse before
11719         the first pass_dce, move the first pass_dse before the
11720         pass_dce following pass_pre.
11722 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
11724         PR tree-optimization/95527
11725         * generic-match-head.c: Include tm.h.
11726         * gimple-match-head.c: Include tm.h.
11727         * match.pd (CLZ == INTEGER_CST): Don't use
11728         #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
11729         if clz == CFN_CLZ.  Add missing val declaration.
11730         (CTZ cmp CST): New simplifications.
11732 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
11734         PR tree-optimization/96696
11735         * expr.c (expand_expr_divmod): New function.
11736         (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
11737         divisions.  Formatting fixes.
11738         <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
11739         cheaper.
11741 2021-04-27  Martin Jambor  <mjambor@suse.cz>
11743         PR ipa/99951
11744         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
11745         If removing a call statement LHS SSA name, release it.
11747 2021-04-27  Richard Earnshaw  <rearnsha@arm.com>
11749         PR target/100236
11750         * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
11751         is valid before including it in the mask.
11753 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
11755         PR target/100270
11756         * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
11757         SVE attributes.
11759 2021-04-27  Richard Biener  <rguenther@suse.de>
11761         PR tree-optimization/100051
11762         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
11763         disambiguator based on access size vs. decl size.
11765 2021-04-27  Richard Biener  <rguenther@suse.de>
11767         PR tree-optimization/100278
11768         * tree-ssa-pre.c (compute_avail): Give up when we cannot
11769         adjust TBAA beacuse of mismatching bases.
11771 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
11773         PR target/99405
11774         * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
11775         For any_rotate define_insn_split and following splitters, use
11776         SWI iterator instead of SWI48.
11778 2021-04-27  Richard Biener  <rguenther@suse.de>
11780         PR tree-optimization/99776
11781         * match.pd (bit_field_ref (ctor)): Relax element extract
11782         type compatibility checks.
11784 2021-04-27  Cui,Lili  <lili.cui@intel.com>
11786         * common/config/i386/i386-common.c (processor_names):
11787         Sync processor_names with processor_type.
11788         * config/i386/i386-options.c (processor_cost_table):
11789         Sync processor_cost_table with processor_type.
11791 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
11793         * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
11794         (irange::set): Call irange_set_1bit_anti_range for handling all
11795         1-bit ranges.  Fall through on ~[MIN,MAX].
11797 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
11799         * value-range.cc (irange::legacy_num_pairs): Remove.
11800         (irange::invert): Change gcc_assert to gcc_checking_assert.
11801         * value-range.h (irange::num_pairs): Adjust for a cached
11802         num_pairs().  Also, rename all gcc_assert's to
11803         gcc_checking_assert's.
11805 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
11807         * value-range.cc (irange::operator=): Set m_kind.
11808         (irange::copy_to_legacy): Handle varying and undefined sources
11809         as a legacy copy since they can be easily copied.
11810         (irange::irange_set): Set m_kind.
11811         (irange::irange_set_anti_range): Same.
11812         (irange::set): Rename normalize_min_max to normalize_kind.
11813         (irange::verify_range): Adjust for multi-ranges having the
11814         m_kind field set.
11815         (irange::irange_union): Set m_kind.
11816         (irange::irange_intersect): Same.
11817         (irange::invert): Same.
11818         * value-range.h (irange::kind): Always return m_kind.
11819         (irange::varying_p): Rename to...
11820         (irange::varying_comptaible_p): ...this.
11821         (irange::undefined_p): Only look at m_kind.
11822         (irange::irange): Always set VR_UNDEFINED if applicable.
11823         (irange::set_undefined): Always set VR_UNDEFINED.
11824         (irange::set_varying): Always set m_kind to VR_VARYING.
11825         (irange::normalize_min_max): Rename to...
11826         (irange::normalize_kind): ...this.
11828 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
11830         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
11831         Adjust for constant_p including varying_p.
11832         * tree-vrp.c (vrp_prop::finalize): Same.
11833         (determine_value_range): Same.
11834         * vr-values.c (vr_values::range_of_expr): Same.
11835         * value-range.cc (irange::symbolic_p): Do not check varying_p.
11836         (irange::constant_p): Same.
11838 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
11840         * value-range.cc (irange::legacy_lower_bound): Replace
11841           !undefined_p check with num_ranges > 0.
11842         (irange::legacy_upper_bound): Same.
11843         * value-range.h (irange::type): Same.
11844         (irange::lower_bound): Same.
11845         (irange::upper_bound): Same.
11847 2021-04-26  Richard Biener  <rguenther@suse.de>
11849         PR tree-optimization/99956
11850         * gimple-loop-interchange.cc (compute_access_stride):
11851         Try instantiating the access in a shallower loop nest
11852         if instantiating failed.
11853         (compute_access_strides): Pass adjustable loop_nest
11854         to compute_access_stride.
11856 2021-04-26  Christophe Lyon  <christophe.lyon@linaro.org>
11858         * doc/sourcebuild.texi (arm_cmse_hw): Document.
11860 2021-04-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11862         * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
11864 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
11865             Nathan Sidwell  <nathan@codesourcery.com>
11866             Tom de Vries  <vries@codesourcery.com>
11867             Julian Brown  <julian@codesourcery.com>
11868             Kwok Cheung Yeung  <kcy@codesourcery.com>
11870         * omp-offload.c (oacc_validate_dims): Implement
11871         '-Wopenacc-parallelism'.
11872         * doc/invoke.texi (-Wopenacc-parallelism): Document.
11874 2021-04-26  Richard Biener  <rguenther@suse.de>
11876         * tree-cfg.h (gimplify_build1): Remove.
11877         (gimplify_build2): Likewise.
11878         (gimplify_build3): Likewise.
11879         * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
11880         (gimplify_build2): Likewise.
11881         (gimplify_build3): Likewise.
11882         * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
11883         Modernize.
11884         (gimplify_build2): Likewise.
11885         (gimplify_build3): Likewise.
11886         (tree_vec_extract): Use resimplify with following SSA edges.
11887         (expand_vector_parallel): Avoid passing NULL size/bitpos
11888         to tree_vec_extract.
11889         * expr.c (store_constructor): Deal with zero-element CTORs.
11890         * match.pd (bit_field_ref <vector CTOR>): Make sure to
11891         produce vector constants when possible.
11893 2021-04-26  Richard Biener  <rguenther@suse.de>
11895         * tree-complex.c: Include gimple-fold.h.
11896         (expand_complex_addition): Use gimple_build.
11897         (expand_complex_multiplication_components): Likewise.
11898         (expand_complex_multiplication): Likewise.
11899         (expand_complex_div_straight): Likewise.
11900         (expand_complex_div_wide): Likewise.
11901         (expand_complex_division): Likewise.
11902         (expand_complex_conjugate): Likewise.
11903         (expand_complex_comparison): Likewise.
11905 2021-04-26  Richard Biener  <rguenther@suse.de>
11907         * tree-ssa-phiopt.c (two_value_replacement): Remove use
11908         of legacy gimplify_buildN API.
11910 2021-04-26  Richard Biener  <rguenther@suse.de>
11912         PR tree-optimization/99473
11913         * tree-ssa-phiopt.c (cond_store_replacement): Handle all
11914         stores.
11916 2021-04-26  Richard Biener  <rguenther@suse.de>
11918         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
11919         Use replace_call_with_value.
11921 2021-04-26  Richard Biener  <rguenther@suse.de>
11923         * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
11924         (update_gimple_call): Likewise.
11925         (update_call_from_tree): Likewise.
11926         * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
11927         (valid_gimple_call_p): Likewise.
11928         (move_ssa_defining_stmt_for_defs): Likewise.
11929         (finish_update_gimple_call): Likewise.
11930         (update_gimple_call): Likewise.
11931         (update_call_from_tree): Likewise.
11932         (propagate_tree_value_into_stmt): Use replace_call_with_value.
11933         * gimple-fold.h (update_gimple_call): Declare.
11934         * gimple-fold.c (valid_gimple_rhs_p): Move here from
11935         tree-ssa-propagate.c.
11936         (update_gimple_call): Likewise.
11937         (valid_gimple_call_p): Likewise.
11938         (finish_update_gimple_call): Likewise, and simplify.
11939         (gimplify_and_update_call_from_tree): Implement
11940         update_call_from_tree functionality, avoid excessive
11941         push/pop_gimplify_context.
11942         (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
11943         (gimple_fold_call): Likewise.
11944         * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
11945         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
11946         (pass_fold_builtins::execute): Likewise.
11947         (optimize_stack_restore): Use replace_call_with_value.
11948         * tree-cfg.c (fold_loop_internal_call): Likewise.
11949         * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
11950         only gimplify_and_update_call_from_tree.
11951         * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
11952         (handle_builtin_strchr): Likewise.
11953         * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
11955 2021-04-26  Jakub Jelinek  <jakub@redhat.com>
11957         PR debug/100255
11958         * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
11959         vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
11960         register keywords.
11962 2021-04-25  liuhongt  <hongtao.liu@intel.com>
11964         PR target/98911
11965         * config/i386/i386-builtin.def (BDESC): Change the icode of
11966         the following builtins to CODE_FOR_nothing.
11967         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
11968         IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
11969         IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
11970         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
11971         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
11972         IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
11973         IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
11974         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
11975         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
11976         * config/i386/sse.md (avx2_eq<mode>3): Deleted.
11977         (sse2_eq<mode>3): Ditto.
11978         (sse4_1_eqv2di3): Ditto.
11979         (sse2_gt<mode>3): Rename to ..
11980         (*sse2_gt<mode>3): .. this.
11982 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
11984         Revert:
11985         2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
11987         PR target/100152
11988         * config/darwin.c (darwin_binds_local_p): Assume that any
11989         public symbol might be interposed for PIC code. Update function
11990         header comment to reflect current Darwin capability.
11992 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
11994         PR target/100152
11995         * config/darwin.c (darwin_binds_local_p): Assume that any
11996         public symbol might be interposed for PIC code. Update function
11997         header comment to reflect current Darwin capability.
11999 2021-04-24  Richard Sandiford  <richard.sandiford@arm.com>
12001         * doc/sourcebuild.texi: Document no-opts and any-opts target
12002         selectors.
12004 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
12006         * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
12008 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
12010         * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
12012 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
12014         PR target/100041
12015         * config/i386/i386-options.c (ix86_option_override_internal):
12016         Error out when -m96bit-long-double is used with 64bit targets.
12017         * config/i386/i386.md (*pushxf_rounded): Remove pattern.
12019 2021-04-23  Martin Liska  <mliska@suse.cz>
12021         * lto-wrapper.c: Remove FIXME about usage of
12022         hardware_concurrency. The function is not on par with
12023         what we have now.
12025 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
12027         PR target/100182
12028         * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
12029         Copy operand 3 to operand 4.  Use sse_reg_operand
12030         as operand 3 predicate.
12031         (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
12032         (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
12033         (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
12034         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
12035         Copy operand 1 to operand 0.
12036         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
12037         (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
12038         (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
12040 2021-04-23  Alex Coplan  <alex.coplan@arm.com>
12042         PR rtl-optimization/100230
12043         * early-remat.c (early_remat::sort_candidates): Use delete[]
12044         instead of delete for array allocated with new[].
12046 2021-04-23  Richard Biener  <rguenther@suse.de>
12048         * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
12049         (capture_info::capture_info): Likewise.
12050         (capture_info::walk_match): Likewise.
12051         (expr::gen_transform): Likewise.
12052         (dt_simplify::gen_1): Likewise.
12053         * gimple-match-head.c (maybe_resimplify_conditional_op):
12054         Remove VEC_COND_EXPR special-casing.
12055         (gimple_simplify): Likewise.
12056         * gimple.c (gimple_could_trap_p_1): Adjust.
12057         * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
12058         to participate in PRE.
12060 2021-04-23  Richard Biener  <rguenther@suse.de>
12062         * cfganal.c (connect_infinite_loops_to_exit): First call
12063         add_noreturn_fake_exit_edges.
12064         * ipa-sra.c (process_scan_results): Do not call the now redundant
12065         add_noreturn_fake_exit_edges.
12066         * predict.c (tree_estimate_probability): Likewise.
12067         (rebuild_frequencies): Likewise.
12068         * store-motion.c (one_store_motion_pass): Likewise.
12070 2021-04-23  Richard Biener  <rguenther@suse.de>
12072         PR tree-optimization/100222
12073         * predict.c (pass_profile::execute): Remove redundant call to
12074         mark_irreducible_loops.
12075         (report_predictor_hitrates): Likewise.
12077 2021-04-23  Richard Biener  <rguenther@suse.de>
12079         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
12080         valid_gimple_rhs_p by instead gimplifying to one.
12082 2021-04-23  Richard Biener  <rguenther@suse.de>
12084         PR tree-optimization/99971
12085         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
12086         Always use TBAA for loads.
12088 2021-04-23  liuhongt  <hongtao.liu@intel.com>
12090         PR target/100093
12091         * config/i386/i386-options.c (ix86_option_override_internal):
12092         Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
12093         when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
12094         by target attribute.
12096 2021-04-23  David Edelsohn  <dje.gcc@gmail.com>
12098         * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
12099         DWARF2_DEBUG.
12100         * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
12102 2021-04-22  David Edelsohn  <dje.gcc@gmail.com>
12104         * config.gcc (powerpc-ibm-aix6.*): Remove.
12105         * config/rs6000/aix61.h: Delete.
12107 2021-04-22  Martin Liska  <mliska@suse.cz>
12109         PR testsuite/100159
12110         PR testsuite/100192
12111         * builtins.c (expand_builtin): Fix typos and missing comments.
12112         * dwarf2out.c (gen_subprogram_die): Likewise.
12113         (gen_struct_or_union_type_die): Likewise.
12115 2021-04-22  Uroš Bizjak  <ubizjak@gmail.com>
12117         PR target/100119
12118         * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
12119         Remove the sign with FE_DOWNWARD, where x - x = -0.0.
12121 2021-04-21  Iain Sandoe  <iain@sandoe.co.uk>
12123         * config/i386/darwin.h (TARGET_64BIT): Remove definition
12124         based on TARGET_ISA_64BIT.
12125         (TARGET_64BIT_P): Remove definition based on
12126         TARGET_ISA_64BIT_P().
12128 2021-04-21  Martin Liska  <mliska@suse.cz>
12130         Revert:
12131         2021-04-21  Martin Liska  <mliska@suse.cz>
12133         * lto-wrapper.c (cpuset_popcount): Remove.
12134         (init_num_threads): Remove and use hardware_concurrency.
12136 2021-04-21  Martin Liska  <mliska@suse.cz>
12138         PR jit/98615
12139         * main.c (main): Call toplev::finalize in CHECKING_P mode.
12140         * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
12141         when incremental LTO linking happens.
12143 2021-04-21  Martin Liska  <mliska@suse.cz>
12145         * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
12146         makeserver cannot be detected, then use -flto=N fallback.
12148 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
12150         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
12151         default to yes for aarch64-linux-gnu.
12152         * configure: Regenerate.
12154 2021-04-21  Martin Liska  <mliska@suse.cz>
12156         * lto-wrapper.c (cpuset_popcount): Remove.
12157         (init_num_threads): Remove and use hardware_concurrency.
12159 2021-04-21  Martin Liska  <mliska@suse.cz>
12161         * config/i386/i386.c: Remove superfluous || TARGET_MACHO
12162         which remains to be '(... || 0)' and clang complains about it.
12163         * dwarf2out.c (AT_vms_delta): Declare conditionally.
12164         (add_AT_vms_delta): Likewise.
12165         * tree.c (fld_simplified_type): Use rather more common pattern
12166         for disabling of something (#if 0).
12167         (get_tree_code_name): Likewise.
12168         (verify_type_variant): Likewise.
12170 2021-04-21  Martin Liska  <mliska@suse.cz>
12172         * config/i386/i386-expand.c (decide_alignment): Use newly named
12173         macro TARGET_CPU_P.
12174         * config/i386/i386.c (ix86_decompose_address): Likewise.
12175         (ix86_address_cost): Likewise.
12176         (ix86_lea_outperforms): Likewise.
12177         (ix86_avoid_lea_for_addr): Likewise.
12178         (ix86_add_stmt_cost): Likewise.
12179         * config/i386/i386.h (TARGET_*): Remove.
12180         (TARGET_CPU_P): New macro.
12181         * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
12182         * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
12183         (swap_top_of_ready_list): Likewise.
12184         (ix86_atom_sched_reorder): Likewise.
12185         * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
12186         * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
12188 2021-04-21  Martin Liska  <mliska@suse.cz>
12190         * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
12191         Define.
12192         (SET_TARGET_NO_SAHF): Likewise.
12193         (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
12194         (SET_TARGET_PREFETCH_SSE): Likewise.
12195         (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
12196         (SET_TARGET_NO_TUNE): Likewise.
12197         (TARGET_EXPLICIT_NO_80387_P): Likewise.
12198         (SET_TARGET_NO_80387): Likewise.
12199         (DEF_PTA): New.
12200         * config/i386/i386.h (TARGET_*): Remove.
12201         * opth-gen.awk: Generate new used macros.
12203 2021-04-21  Martin Liska  <mliska@suse.cz>
12205         * config/i386/i386.h (PTA_*): Remove.
12206         (enum pta_flag): New.
12207         (DEF_PTA): Generate PTA_* values from i386-isa.def.
12208         * config/i386/i386-isa.def: New file.
12210 2021-04-21  Alex Coplan  <alex.coplan@arm.com>
12212         PR target/99988
12213         * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
12214         (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
12215         jump table targets.
12217 2021-04-21  H.J. Lu  <hjl.tools@gmail.com>
12219         * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
12220         x86_64-*-* targets.
12221         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
12222         New.
12223         (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
12224         (ix86_handle_option): Handle -mmwait.
12225         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
12226         Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
12227         __builtin_ia32_monitor and __builtin_ia32_mwait.
12228         * config/i386/i386-options.c (isa2_opts): Add -mmwait.
12229         (ix86_valid_target_attribute_inner_p): Likewise.
12230         (ix86_option_override_internal): Enable mwait/monitor
12231         instructions for -msse3.
12232         * config/i386/i386.h (TARGET_MWAIT): New.
12233         (TARGET_MWAIT_P): Likewise.
12234         * config/i386/i386.opt: Add -mmwait.
12235         * config/i386/mwaitintrin.h: New file.
12236         * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
12237         * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
12238         TARGET_MWAIT.
12239         (@sse3_monitor_<mode>): Likewise.
12240         * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
12241         * doc/extend.texi: Document mwait target attribute.
12242         * doc/invoke.texi: Document -mmwait.
12244 2021-04-21  Martin Liska  <mliska@suse.cz>
12246         * config/i386/i386-options.c (DEF_ENUM): Remove it.
12247         * config/i386/i386-opts.h (DEF_ENUM): Likewise.
12248         * config/i386/stringop.def (DEF_ENUM): Likewise.
12250 2021-04-21  Martin Liska  <mliska@suse.cz>
12252         * tree-cfg.c (gimple_verify_flow_info): Use qD instead
12253         of print_generic_expr.
12255 2021-04-21  Jakub Jelinek  <jakub@redhat.com>
12257         PR rtl-optimization/100148
12258         * cprop.c (constprop_register): Use next_nondebug_insn instead of
12259         NEXT_INSN.
12261 2021-04-21  Martin Liska  <mliska@suse.cz>
12263         PR ipa/98815
12264         * cgraphunit.c (cgraph_node::analyze): Remove duplicate
12265         free_dominance_info calls.
12267 2021-04-21  Richard Biener  <rguenther@suse.de>
12269         * gimple-fold.c (maybe_fold_reference): Remove is_lhs
12270         parameter (and assume it to be false).
12271         (fold_gimple_assign): Adjust, remove all callers of
12272         maybe_fold_reference calling it with is_lhs true.
12273         (gimple_fold_call): Likewise.
12274         (fold_stmt_1): Likewise.
12276 2021-04-21  Richard Biener  <rguenther@suse.de>
12278         * fold-const.c (pedantic_non_lvalue_loc): Remove.
12279         (fold_binary_loc): Adjust.
12280         (fold_ternary_loc): Likewise.
12282 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
12284         PR middle-end/100130
12285         * varasm.c (get_block_for_decl): Make sure that any use of the
12286         retain attribute matches the section's retain flag.
12287         (switch_to_section): Check for retain mismatches even when
12288         changing sections, but do not warn if the given decl is the
12289         section's named.decl.
12290         (output_object_block): Pass the first decl in the block (if any)
12291         to switch_to_section.
12293 2021-04-20  H.J. Lu  <hjl.tools@gmail.com>
12295         * config/i386/i386-c.c (ix86_target_macros_internal): Define
12296         __CRC32__ for -mcrc32.
12297         * config/i386/i386-options.c (ix86_option_override_internal):
12298         Enable crc32 instruction for -msse4.2.
12299         * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
12300         check.
12301         (sse4_2_crc32di): Likewise.
12302         * config/i386/ia32intrin.h: Use crc32 target option for CRC32
12303         intrinsics.
12305 2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>
12307         PR target/100108
12308         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
12309         OPTION_MASK_ISEL.
12311 2021-04-20  Martin Liska  <mliska@suse.cz>
12313         * doc/invoke.texi: Fix typo.
12314         * params.opt: Likewise.
12316 2021-04-20  Martin Liska  <mliska@suse.cz>
12318         * doc/invoke.texi: Document new param.
12320 2021-04-19  Andrew MacLeod  <amacleod@redhat.com>
12322         PR tree-optimization/100081
12323         * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
12324         rather than gori_compute_cache.
12325         * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
12326         (range_def_chain::m_logical_depth): New member.
12327         (range_def_chain::range_def_chain): Initialize m_logical_depth.
12328         (range_def_chain::get_def_chain): Don't build defchains through more
12329         than LOGICAL_LIMIT logical expressions.
12330         * params.opt (param_ranger_logical_depth): New.
12332 2021-04-19  Richard Earnshaw  <rearnsha@arm.com>
12334         PR target/100067
12335         * config/arm/arm.c (arm_configure_build_target): Do not strip
12336         extended FPU/SIMD feature bits from the target ISA when -mfpu
12337         is specified (partial revert of r11-8168).
12339 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
12341         * params.opt (-param=openacc-kernels=): Add.
12342         * omp-oacc-kernels-decompose.cc
12343         (pass_omp_oacc_kernels_decompose::gate): Use it.
12344         * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
12345         (--param): ... here, 'openacc-kernels'.
12347 2021-04-19  Martin Liska  <mliska@suse.cz>
12349         PR c/100143
12350         * gengtype.c (finish_root_table): Align function arguments
12351         in between declaration and definition.
12353 2021-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12355         * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
12356         frames larger than the SEH maximum frame size.
12358 2021-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
12360         PR rtl-optimization/99927
12361         * combine.c (distribute_notes) [REG_UNUSED]: If the register already
12362         is dead, just drop it.
12364 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12366         PR d/99914
12367         * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
12368         * doc/tm.texi: Regenerate.
12369         * doc/tm.texi.in (D language and ABI): Add @hook for
12370         TARGET_D_TEMPLATES_ALWAYS_COMDAT.
12372 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12374         * config/darwin-d.c (darwin_d_handle_target_object_format): New
12375         function.
12376         (darwin_d_register_target_info): New function.
12377         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
12378         * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
12379         function.
12380         (dragonfly_d_register_target_info): New function.
12381         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
12382         * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
12383         function.
12384         (freebsd_d_register_target_info): New function.
12385         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
12386         * config/glibc-d.c (glibc_d_handle_target_object_format): New
12387         function.
12388         (glibc_d_register_target_info): New function.
12389         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
12390         * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
12391         function.
12392         (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
12393         as handler for objectFormat key.
12394         * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
12395         function.
12396         (winnt_d_register_target_info): New function.
12397         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
12398         * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
12399         function.
12400         (netbsd_d_register_target_info): New function.
12401         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
12402         * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
12403         function.
12404         (openbsd_d_register_target_info): New function.
12405         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
12406         * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
12407         (pa_d_register_target_info): Add pa_d_handle_target_object_format as
12408         handler for objectFormat key.
12409         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
12410         function.
12411         (rs6000_d_register_target_info): Add
12412         rs6000_d_handle_target_object_format as handler for objectFormat key.
12413         * config/sol2-d.c (solaris_d_handle_target_object_format): New
12414         function.
12415         (solaris_d_register_target_info): New function.
12416         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
12418 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
12420         PR target/91710
12421         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
12422         abi_break argument from bool * to unsigned *, store there the pre-GCC 9
12423         alignment.
12424         (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
12425         (aarch64_function_arg_regno_p): Likewise.  Only emit -Wpsabi note if
12426         the old and new alignment after applying MIN/MAX to it is different.
12428 2021-04-16  Tamar Christina  <tamar.christina@arm.com>
12430         PR target/100048
12431         * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
12432         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
12433         TRN optab.
12434         * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
12436 2021-04-16  Bill Schmidt  <wschmidt@linux.ibm.com>
12438         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
12439         this section and its subsections.
12441 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
12443         PR target/100075
12444         * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
12445         define_insn patterns.
12447 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
12449         PR rtl-optimization/98689
12450         * reg-notes.def (UNTYPED_CALL): New note.
12451         * combine.c (distribute_notes): Handle it.
12452         * emit-rtl.c (try_split): Likewise.
12453         * rtlanal.c (rtx_properties::try_to_add_insn): Likewise.  Assume
12454         that calls with the note implicitly set all return value registers.
12455         * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
12456         to untyped_calls.
12458 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
12460         PR rtl-optimization/99596
12461         * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
12462         register accesses for const calls.  Assume that pure functions
12463         can only read from global registers.  Ignore cases in which
12464         the stack pointer has been marked global.
12466 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
12468         PR target/99767
12469         * tree-vect-loop.c (vect_transform_loop): Don't remove just
12470         dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
12471         them by their last argument.
12473 2021-04-15  Martin Liska  <mliska@suse.cz>
12475         * doc/invoke.texi: Other params don't use it, remove it.
12477 2021-04-15  Richard Biener  <rguenther@suse.de>
12479         * gimple-builder.h: Add deprecation note.
12481 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
12483         PR c++/98852
12484         * attribs.h (restrict_type_identity_attributes_to): Declare.
12485         * attribs.c (restrict_type_identity_attributes_to): New function.
12487 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
12489         PR c/98852
12490         * attribs.h (affects_type_identity_attributes): Declare.
12491         * attribs.c (remove_attributes_matching): New function.
12492         (affects_type_identity_attributes): Likewise.
12494 2021-04-15  Jakub Jelinek  <jakub@redhat.com>
12496         PR target/100056
12497         * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
12498         Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
12499         ZERO_EXTEND, SIGN_EXTEND or AND.
12501 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
12503         PR rtl-optimization/99929
12504         * rtl.h (same_vector_encodings_p): New function.
12505         * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
12506         * cselib.c (rtx_equal_for_cselib_1): Likewise.
12507         * jump.c (rtx_renumbered_equal_p): Likewise.
12508         * lra-constraints.c (operands_match_p): Likewise.
12509         * reload.c (operands_match_p): Likewise.
12510         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
12512 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
12514         * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
12515         more information about variable-length CONST_VECTORs.
12517 2021-04-14  Vladimir N. Makarov  <vmakarov@redhat.com>
12519         PR rtl-optimization/100066
12520         * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
12521         ordered modes when choosing splitting mode for hard reg.
12523 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
12525         PR target/99246
12526         * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
12527         New function.
12528         (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
12530 2021-04-14  Andreas Krebbel  <krebbel@linux.ibm.com>
12532         * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
12533         for mask operand types.
12534         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
12535         (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
12536         operand.
12537         (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
12538         immediate operand.
12539         * config/s390/s390.c (s390_const_operand_ok): Check the new
12540         operand types and generate a list of valid values.
12542 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
12544         * doc/tm.texi: Regenerate.
12545         * doc/tm.texi.in (D language and ABI): Add @hook for
12546         TARGET_D_REGISTER_OS_TARGET_INFO.
12548 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
12550         * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
12551         function.
12552         (aarch64_d_register_target_info): New function.
12553         * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
12554         Declare.
12555         * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
12556         Define.
12557         * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
12558         (arm_d_register_target_info): New function.
12559         * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
12560         * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12561         * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
12562         (ix86_d_register_target_info): New function.
12563         * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
12564         * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12565         * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
12566         (mips_d_register_target_info): New function.
12567         * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
12568         * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12569         * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
12570         (pa_d_register_target_info): New function.
12571         * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
12572         * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12573         * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
12574         function.
12575         (riscv_d_register_target_info): New function.
12576         * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
12577         * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12578         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
12579         function.
12580         (rs6000_d_register_target_info): New function.
12581         * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
12582         Declare.
12583         * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12584         * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
12585         (s390_d_register_target_info): New function.
12586         * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
12587         * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12588         * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
12589         function.
12590         (sparc_d_register_target_info): New function.
12591         * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
12592         * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
12593         * doc/tm.texi: Regenerate.
12594         * doc/tm.texi.in (D language and ABI): Add @hook for
12595         TARGET_D_REGISTER_CPU_TARGET_INFO.
12597 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
12599         * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
12600         * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
12601         * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
12602         * doc/tm.texi: Regenerate.
12603         * doc/tm.texi.in (D language and ABI): Add @hook for
12604         TARGET_D_HAS_STDCALL_CONVENTION.
12606 2021-04-14  Richard Biener  <rguenther@suse.de>
12608         * tree-cfg.c (verify_gimple_assign_ternary): Verify that
12609         VEC_COND_EXPRs have a gimple_val condition.
12610         * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
12611         can no longer have a GENERIC condition.
12613 2021-04-14  Richard Earnshaw  <rearnsha@arm.com>
12615         PR target/100067
12616         * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
12617         from the isa_delta when -mfpu has been used.
12618         (arm_options_perform_arch_sanity_checks): It's the architecture that
12619         lacks an FPU not the processor.
12621 2021-04-13  Richard Biener  <rguenther@suse.de>
12623         PR tree-optimization/100053
12624         * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
12625         not use optimistic dominance queries for backedges to validate
12626         predicated values.
12627         (dominated_by_p_w_unex): Add parameter to ignore executable
12628         state on backedges.
12629         (rpo_elim::eliminate_avail): Adjust.
12631 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
12633         PR target/100028
12634         * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
12635         *aarch64_bfxilsi_extrdi): New define_insn patterns.
12637 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
12639         PR target/99648
12640         * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
12641         outermode, return NULL if the result doesn't encode back to the
12642         original byte sequence.
12643         (simplify_gen_subreg): Don't create SUBREGs from constants to
12644         MODE_COMPOSITE_P outermode.
12646 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
12648         PR rtl-optimization/99905
12649         * combine.c (expand_compound_operation): If pos + len > modewidth,
12650         perform the right shift by pos in inner_mode and then convert to mode,
12651         instead of trying to simplify a shift of rtx with inner_mode by pos
12652         as if it was a shift in mode.
12654 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
12656         PR debug/99830
12657         * combine.c (simplify_and_const_int_1): Don't optimize varop
12658         away if it has side-effects.
12660 2021-04-12  Martin Liska  <mliska@suse.cz>
12662         * doc/extend.texi: Escape @smallexample content.
12664 2021-04-12  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
12666         * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
12667           alternative in order to load a DFP zero.
12669 2021-04-12  Martin Liska  <mliska@suse.cz>
12671         * doc/extend.texi: Be more precise in documentation
12672         of symver attribute.
12674 2021-04-12  Martin Liska  <mliska@suse.cz>
12676         PR sanitizer/99877
12677         * gimplify.c (gimplify_expr): Right now, we unpoison all
12678         variables before a goto <dest>. We should not do it if we are
12679         in a omp context.
12681 2021-04-12  Cui,Lili  <lili.cui@intel.com>
12683         * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
12684         rocketlake.
12685         * common/config/i386/i386-common.c (processor_names): Add
12686         rocketlake.
12687         (processor_alias_table): Add rocketlake.
12688         * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
12689         INTEL_COREI7_ROCKETLAKE.
12690         * config.gcc: Add -march=rocketlake.
12691         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12692         rocketlake.
12693         * config/i386/i386-options.c (m_ROCKETLAKE)  : Define.
12694         (processor_cost_table): Add rocketlake cost.
12695         * config/i386/i386.h (ix86_size_cost) : Define
12696         TARGET_ROCKETLAKE.
12697         (processor_type) : Add PROCESSOR_ROCKETLAKE.
12698         (PTA_ROCKETLAKE): Ditto.
12699         * doc/extend.texi: Add rocketlake.
12700         * doc/invoke.texi: Add rocketlake.
12702 2021-04-12  Cui,Lili  <lili.cui@intel.com>
12704         * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
12705         * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
12706         * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
12707         * doc/invoke.texi: Change alderlake ISA list.
12709 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
12711         PR middle-end/98088
12712         * omp-expand.c (expand_oacc_collapse_init): Update condition in
12713         a gcc_assert.
12715 2021-04-10  H.J. Lu  <hjl.tools@gmail.com>
12717         PR target/99744
12718         * config/i386/serializeintrin.h (_serialize): Defined as macro.
12720 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
12722         PR lto/99849
12723         * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
12724         just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
12726 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
12728         PR middle-end/99989
12729         * gimple-ssa-warn-alloca.c
12730         (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
12731         0 with integer precision unconditionally.
12733 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
12735         PR rtl-optimization/98601
12736         * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
12737         not just for BLKmode, but also for VOIDmode.  For STRICT_ALIGNMENT
12738         unaligned_mems handle VOIDmode like BLKmode.
12740 2021-04-10  Jan Hubicka  <hubicka@ucw.cz>
12742         PR lto/99857
12743         * tree.c (free_lang_data_in_decl): Do not release body of
12744         declare_variant_alt.
12746 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
12748         * config/aarch64/aarch64.c (aarch64_option_restore): If the
12749         architecture was specified explicitly and the tuning wasn't,
12750         tune for the architecture rather than the configured default CPU.
12752 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
12754         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
12755         as the temporary register.
12757 2021-04-09  Martin Liska  <mliska@suse.cz>
12759         * doc/extend.texi: Move non-target attributes on the top level.
12761 2021-04-09  Martin Liska  <mliska@suse.cz>
12763         * doc/invoke.texi: Document minimum and maximum value of the
12764         argument for both supported compression algorithms.
12766 2021-04-08  David Edelsohn  <dje.gcc@gmail.com>
12768         * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
12769         TLS BSS before TLS data.
12770         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
12772 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
12774         * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
12776 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
12778         * match.pd: Extend vec_cond folds to handle shifts.
12780 2021-04-08  Maciej W. Rozycki  <macro@orcam.me.uk>
12782         * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
12783         peephole.
12785 2021-04-08  Alex Coplan  <alex.coplan@arm.com>
12787         PR target/99647
12788         * config/arm/iterators.md (MVE_vecs): New.
12789         (V_elem): Also handle V2DF.
12790         * config/arm/mve.md (*mve_mov<mode>): Rename to ...
12791         (*mve_vdup<mode>): ... this. Remove second alternative since
12792         vec_duplicate of const_int is not canonical RTL, and we don't
12793         want to match symbol_refs.
12794         (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
12796 2021-04-08  Xionghu Luo  <luoxhu@linux.ibm.com>
12798         * fold-const.c (fold_single_bit_test): Fix typo.
12799         * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
12800         instead.
12802 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
12804         PR tree-optimization/97513
12805         * tree-vect-slp.c (vect_add_slp_permutation): New function,
12806         split out from...
12807         (vectorizable_slp_permutation): ...here.  Detect cases in which
12808         all VEC_PERM_EXPRs are guaranteed to have the same stepped
12809         permute vector and only generate one permute vector for that case.
12810         Extend that case to handle variable-length vectors.
12812 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
12814         PR tree-optimization/99873
12815         * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
12816         (vect_build_slp_instance): Don't split store groups that could
12817         use IFN_STORE_LANES.
12819 2021-04-07  Jakub Jelinek  <jakub@redhat.com>
12821         PR target/99872
12822         * varasm.c (output_constant_pool_contents): Don't strip name encoding
12823         from XSTR (desc->sym, 0) or from label before passing those to
12824         ASM_OUTPUT_DEF.
12826 2021-04-07  Richard Biener  <rguenther@suse.de>
12828         PR tree-optimization/99954
12829         * tree-loop-distribution.c: Include tree-affine.h.
12830         (generate_memcpy_builtin): Try using tree-affine to prove
12831         non-overlap.
12832         (loop_distribution::classify_builtin_ldst): Always classify
12833         as PKIND_MEMMOVE.
12835 2021-04-07  Richard Biener  <rguenther@suse.de>
12837         PR tree-optimization/99947
12838         * tree-vect-loop.c (vectorizable_induction): Pre-allocate
12839         steps vector to avoid pushing elements from the reallocated
12840         vector.
12842 2021-04-07  Richard Biener  <rguenther@suse.de>
12844         * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
12845         * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
12846         printing...
12847         * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
12848         function.
12849         (debug_vn_reference_ops): New.
12851 2021-04-07  Bin Cheng  <bin.cheng@linux.alibaba.com>
12853         PR tree-optimization/98736
12854         * tree-loop-distribution.c
12855         * (loop_distribution::bb_top_order_init):
12856         Compute RPO with programing order preserved by calling function
12857         rev_post_order_and_mark_dfs_back_seme.
12859 2021-04-06  Vladimir N. Makarov  <vmakarov@redhat.com>
12861         PR target/99781
12862         * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
12863         * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
12864         functions.
12865         (process_bb_lives): Don't update biggest mode of hard reg for
12866         implicit in multi-register group.  Use the new functions for
12867         updating dead_set and unused_set by register notes.
12869 2021-04-06  Xianmiao Qu  <xianmiao_qu@c-sky.com>
12871         * config/csky/csky_pipeline_ck802.md : Use insn reservation name
12872         instead of *.
12874 2021-04-06  H.J. Lu  <hjl.tools@gmail.com>
12876         * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
12877         (skylake_memset): Likewise.
12878         (skylake_cost): Change CLEAR_RATIO to 17.
12879         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
12880         Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
12881         m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
12883 2021-04-06  Richard Biener  <rguenther@suse.de>
12885         PR tree-optimization/99880
12886         * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
12887         set vectorized defs of relevant PHIs.
12889 2021-04-06  Richard Biener  <rguenther@suse.de>
12891         PR tree-optimization/99924
12892         * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
12893         nodes w/o scalar stmts as visited.
12895 2021-04-06  Alex Coplan  <alex.coplan@arm.com>
12897         PR target/99748
12898         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
12899         PCS for [su]fix_optab.
12901 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
12903         * config/darwin.c (machopic_legitimize_pic_address): Check
12904         that the current pic register is one of the hard reg set
12905         before setting liveness.
12907 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
12909         * config/darwin.c (machopic_legitimize_pic_address): Fix
12910         whitespace, remove unused code.
12912 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
12914         PR tree-optimization/99882
12915         * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
12916         pointer type.
12918 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
12920         PR rtl-optimization/99863
12921         * dse.c (replace_read): Drop regs_live argument.  Instead of
12922         regs_live, use store_insn->fixed_regs_live if non-NULL,
12923         otherwise punt if insns sequence clobbers or sets any hard
12924         registers.
12926 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
12928         PR testsuite/98125
12929         * targhooks.h (default_print_patchable_function_entry_1): Declare.
12930         * targhooks.c (default_print_patchable_function_entry_1): New function,
12931         copied from default_print_patchable_function_entry with an added flags
12932         argument.
12933         (default_print_patchable_function_entry): Rewritten into a small
12934         wrapper around default_print_patchable_function_entry_1.
12935         * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
12936         Redefine.
12937         (rs6000_print_patchable_function_entry): New function.
12939 2021-04-02  Eric Botcazou  <ebotcazou@adacore.com>
12941         * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
12943 2021-04-01  Jason Merrill  <jason@redhat.com>
12945         PR c++/98481
12946         * common.opt: Document v15 and v16.
12948 2021-04-01  Richard Biener  <rguenther@suse.de>
12950         PR tree-optimization/99863
12951         * gimplify.c (gimplify_init_constructor): Recompute vector
12952         constructor flags.
12954 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
12956         * doc/extend.texi (symver attribute): Fix up syntax errors
12957         in the examples.
12959 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
12961         PR tree-optimization/96573
12962         * gimple-ssa-store-merging.c (init_symbolic_number): Handle
12963         also pointer types.
12965 2021-04-01  Richard Biener  <rguenther@suse.de>
12967         PR tree-optimization/99856
12968         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
12969         precision to vector element precision.
12971 2021-04-01  Martin Jambor  <mjambor@suse.cz>
12973         PR tree-optimization/97009
12974         * tree-sra.c (access_or_its_child_written): New function.
12975         (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
12976         test.
12978 2021-03-31  Jan Hubicka  <hubicka@ucw.cz>
12980         PR ipa/98265
12981         * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
12983 2021-03-31  Pat Haugen  <pthaugen@linux.ibm.com>
12985         PR target/99133
12986         * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
12987         xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
12988         xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
12989         * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
12990         mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
12991         mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
12992         Likewise.
12993         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
12994         * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
12995         (define_attr "prefixed"): Update initializer.
12997 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
12999         PR debug/99490
13000         * dwarf2out.c (debug_ranges_dwo_section): New variable.
13001         (DW_RANGES_IDX_SKELETON): Define.
13002         (struct dw_ranges): Add begin_entry and end_entry members.
13003         (DEBUG_DWO_RNGLISTS_SECTION): Define.
13004         (add_ranges_num): Adjust r initializer for addition of *_entry
13005         members.
13006         (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
13007         set idx to DW_RANGES_IDX_SKELETON.
13008         (use_distinct_base_address_for_range): New function.
13009         (index_rnglists): Don't set r->idx if it is equal to
13010         DW_RANGES_IDX_SKELETON.  Initialize r->begin_entry and
13011         r->end_entry for -gsplit-dwarf if those will be needed by
13012         output_rnglists.
13013         (output_rnglists): Add DWO argument.  If true, switch to
13014         debug_ranges_dwo_section rather than debug_ranges_section.
13015         Adjust l1/l2 label indexes.  Only output the offset table when
13016         dwo is true and don't include in there the skeleton range
13017         entry if present.  For -gsplit-dwarf, skip ranges that belong
13018         to the other rnglists section.  Change return type from void
13019         to bool and return true if there are any range entries for
13020         the other section.  For dwarf_split_debug_info use
13021         DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
13022         entries instead of DW_RLE_start_end, DW_RLE_start_length and
13023         DW_RLE_base_address.  Use use_distinct_base_address_for_range.
13024         (init_sections_and_labels): Initialize debug_ranges_dwo_section
13025         if -gsplit-dwarf and DWARF >= 5.  Adjust ranges_section_label
13026         and range_base_label indexes.
13027         (dwarf2out_finish): Call index_rnglists earlier before finalizing
13028         .debug_addr.  Never emit DW_AT_rnglists_base attribute.  For
13029         -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
13030         with different dwo arguments.
13031         (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
13033 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
13035         PR tree-optimization/98268
13036         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
13037         recompute_tree_invariant_for_addr_expr after successfully
13038         folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
13040 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
13042         PR tree-optimization/99726
13043         * tree-data-ref.c (create_intersect_range_checks_index): Bail
13044         out if there is more than one access function SCEV for the loop
13045         being versioned.
13047 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
13049         PR rtl-optimization/97141
13050         PR rtl-optimization/98726
13051         * emit-rtl.c (valid_for_const_vector_p): Return true for
13052         CONST_POLY_INT_P.
13053         * rtx-vector-builder.h (rtx_vector_builder::step): Return a
13054         poly_wide_int instead of a wide_int.
13055         (rtx_vector_builder::apply_set): Take a poly_wide_int instead
13056         of a wide_int.
13057         * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
13058         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
13059         false for CONST_VECTORs that cannot be forced to memory.
13060         * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
13061         is too complex to force to memory, build it up from individual
13062         elements instead.
13064 2021-03-31  Jan Hubicka  <jh@suse.cz>
13066         PR lto/99447
13067         * cgraph.c (cgraph_node::release_body): Fix overactive check.
13069 2021-03-31  Christophe Lyon  <christophe.lyon@linaro.org>
13071         PR target/99786
13072         * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
13073         for V4HI and V2SI.
13075 2021-03-31  H.J. Lu  <hjl.tools@gmail.com>
13077         * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
13078         For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
13079         to SImode.
13080         (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
13081         "rep movsb/stosb" only for known sizes.
13082         * config/i386/i386-options.c (processor_cost_table): Use Ice
13083         Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
13084         Rapids and Alder Lake.
13085         * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
13086         * config/i386/x86-tune-costs.h (icelake_memcpy): New.
13087         (icelake_memset): Likewise.
13088         (icelake_cost): Likewise.
13089         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
13090         New.
13092 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
13094         PR target/98119
13095         * config/aarch64/aarch64.c
13096         (aarch64_vectorize_preferred_vector_alignment): Query the size
13097         of the provided SVE vector; do not assume that all SVE vectors
13098         have the same size.
13100 2021-03-31  Jan Hubicka  <jh@suse.cz>
13102         PR lto/99447
13103         * cgraph.c (cgraph_node::release_body): Remove all callers and
13104         references.
13105         * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
13106         * cgraphunit.c (cgraph_node::expand): And here.
13108 2021-03-31  Martin Liska  <mliska@suse.cz>
13110         * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
13111         and one negated condition.
13113 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
13114             Richard Sandiford  <richard.sandiford@arm.com>
13116         PR target/99813
13117         * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
13118         constraints on operands[2] and similarly 0 and rk constraints
13119         on operands[1] corresponding to that.
13121 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
13123         PR bootstrap/98860
13124         * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
13125         linker doesn't support DWARF sections new in DWARF5.
13126         * config/i386/i386-options.c (ix86_option_override_internal): Default
13127         to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
13128         targets.
13129         * config.in: Regenerated.
13130         * configure: Regenerated.
13132 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13134         PR target/99820
13135         * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
13136         available issue_info before using it.
13138 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13140         PR target/99822
13141         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
13142         in operand 1.
13144 2021-03-30  Xionghu Luo  <luoxhu@linux.ibm.com>
13146         PR target/99718
13147         * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
13148         (altivec_lvsl_reg_<mode>): ... this.
13149         (altivec_lvsr_reg): Change to ...
13150         (altivec_lvsr_reg_<mode>): ... this.
13151         * config/rs6000/predicates.md (vec_set_index_operand): New.
13152         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13153         Enable 32bit variable vec_insert for all TARGET_VSX.
13154         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
13155         Enable 32bit variable vec_insert for p9 and above.
13156         (rs6000_expand_vector_set_var_p8): Rename to ...
13157         (rs6000_expand_vector_set_var_p7): ... this.
13158         (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
13159         position.
13160         * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
13161         * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
13162         gen_altivec_lvsr_reg_di.
13164 2021-03-30  H.J. Lu  <hjl.tools@gmail.com>
13166         PR target/99744
13167         * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
13168         (__rdtscp): Likewise.
13170 2021-03-30  Tamar Christina  <tamar.christina@arm.com>
13172         PR tree-optimization/99825
13173         * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
13174         Reject non-mult 2 lanes.
13176 2021-03-30  Richard Earnshaw  <rearnsha@arm.com>
13178         PR target/99773
13179         * config/arm/arm.c (arm_file_start): Fix emission of
13180         Tag_ABI_VFP_args attribute.
13182 2021-03-30  Richard Biener  <rguenther@suse.de>
13184         PR tree-optimization/99824
13185         * stor-layout.c (set_min_and_max_values_for_integral_type):
13186         Assert the precision is within the bounds of
13187         WIDE_INT_MAX_PRECISION.
13188         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
13189         the outermost component ref only to lower the access size
13190         and initialize that from the access type.
13192 2021-03-30  Richard Sandiford  <richard.sandiford@arm.com>
13194         PR target/98136
13195         * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
13196         CONST_INTs to aarch64_expand_mov_immediate when called after RA.
13198 2021-03-30  Mihailo Stojanovic  <mihailo.stojanovic@typhoon-hil.com>
13200         * config/aarch64/aarch64.md
13201         (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
13202         attribute to disambiguate between SIMD and FP variants of the
13203         instruction.
13205 2021-03-29  Jan Hubicka  <hubicka@ucw.cz>
13207         * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
13208         (analyze_ssa_name_flags): Fix typo in comment.
13210 2021-03-29  Alex Coplan  <alex.coplan@arm.com>
13212         PR target/99216
13213         * config/aarch64/aarch64-sve-builtins.cc
13214         (function_builder::add_function): Add placeholder_p argument, use
13215         placeholder decls if this is set.
13216         (function_builder::add_unique_function): Instead of conditionally adding
13217         direct overloads, unconditionally add either a direct overload or a
13218         placeholder.
13219         (function_builder::add_overloaded_function): Set placeholder_p if we're
13220         using C++ overloads. Use the obstack for string storage instead
13221         of relying on the tree nodes.
13222         (function_builder::add_overloaded_functions): Don't return early for
13223         m_direct_overloads: we need to add placeholders.
13224         * config/aarch64/aarch64-sve-builtins.h
13225         (function_builder::add_function): Add placeholder_p argument.
13227 2021-03-29  Richard Biener  <rguenther@suse.de>
13229         PR tree-optimization/99807
13230         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
13231         assert below VEC_PERM handling.
13233 2021-03-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13235         PR target/99037
13236         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
13237         aarch64_simd_or_scalar_imm_zero to match zeroes.  Remove pattern
13238         matching const_int 0.
13239         (move_lo_quad_internal_be_<mode>): Likewise.
13240         (move_lo_quad_<mode>): Update for the above.
13241         * config/aarch64/iterators.md (VQ_2E): Delete.
13243 2021-03-29  Jakub Jelinek  <jakub@redhat.com>
13245         PR tree-optimization/99777
13246         * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
13247         types other than scalar integral types.
13249 2021-03-28  David Edelsohn  <dje.gcc@gmail.com>
13251         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
13252         XCOFF TLS reloc decorations.
13254 2021-03-28  Gerald Pfeifer  <gerald@pfeifer.com>
13256         * doc/analyzer.texi (Analyzer Internals): Update link to
13257         "A Memory Model for Static Analysis of C Programs".
13259 2021-03-26  David Edelsohn  <dje.gcc@gmail.com>
13261         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
13262         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
13263         Declare.
13264         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
13265         (rs6000_special_round_type_align): Recursively check innermost first
13266         field.
13268 2021-03-26  Jakub Jelinek  <jakub@redhat.com>
13270         PR debug/99334
13271         * dwarf2out.h (struct dw_fde_node): Add rule18 member.
13272         * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
13273         assignment with drap_reg active, queue reg save for hfp with offset 0
13274         and flush queued reg saves.  When handling a push with rule18,
13275         defer queueing reg save for hfp and just assert the offset is 0.
13276         (scan_trace): Assert that fde->rule18 is false.
13278 2021-03-26  Vladimir Makarov  <vmakarov@redhat.com>
13280         PR target/99766
13281         * ira-costs.c (record_reg_classes): Put case with
13282         CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
13283         * ira.c (ira_setup_alts): Ditto.
13284         * lra-constraints.c (process_alt_operands): Ditto.
13285         * recog.c (asm_operand_ok): Ditto.
13286         * reload.c (find_reloads): Ditto.
13288 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13290         * config/aarch64/aarch64-protos.h
13291         (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
13292         (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
13293         * config/aarch64/aarch64.c (generic_addrcost_table): Update
13294         accordingly, using the same costs as for post_modify.
13295         (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
13296         (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
13297         (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
13298         (a64fx_addrcost_table): Likewise.
13299         (neoversev1_addrcost_table): New.
13300         (neoversev1_tunings): Use neoversev1_addrcost_table.
13301         (aarch64_address_cost): Use the new post_modify costs for CImode
13302         and XImode.
13304 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13306         * config/aarch64/aarch64.opt
13307         (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
13308         * doc/invoke.texi: Document it.
13309         * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
13310         (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
13311         (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
13312         (aarch64_vec_issue_info): New structures.
13313         (cpu_vector_cost): Write comments above the variables rather
13314         than to the side.
13315         (cpu_vector_cost::issue_info): New member variable.
13316         * config/aarch64/aarch64.c: Include gimple-pretty-print.h
13317         and tree-ssa-loop-niter.h.
13318         (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
13319         (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
13320         (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
13321         (thunderx3t110_vector_cost): Initialize issue_info to null.
13322         (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
13323         (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
13324         (neoversev1_vector_cost): Use them.
13325         (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
13326         (aarch64_vector_costs::saw_sve_only_op): New member variable.
13327         (aarch64_vector_costs::num_vector_iterations): Likewise.
13328         (aarch64_vector_costs::scalar_ops): Likewise.
13329         (aarch64_vector_costs::advsimd_ops): Likewise.
13330         (aarch64_vector_costs::sve_ops): Likewise.
13331         (aarch64_vector_costs::seen_loads): Likewise.
13332         (aarch64_simd_vec_costs_for_flags): New function.
13333         (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
13334         Count the number of predicate operations required by SVE WHILE
13335         instructions.
13336         (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
13337         (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
13338         (aarch64_count_ops): Likewise.
13339         (aarch64_add_stmt_cost): Record whether see an SVE operation
13340         that cannot currently be implementing using Advanced SIMD.
13341         Record issue information about the scalar, Advanced SIMD
13342         and (where relevant) SVE versions of a loop.
13343         (aarch64_vec_op_count::dump): New function.
13344         (aarch64_sve_op_count::dump): Likewise.
13345         (aarch64_estimate_min_cycles_per_iter): Likewise.
13346         (aarch64_adjust_body_cost): If issue information is available,
13347         try to compare the issue rates of the various loop implementations
13348         and increase or decrease the vector body cost accordingly.
13350 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13352         * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
13353         Assume a zero cost for induction phis.
13355 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13357         * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
13358         function.
13359         (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
13360         vector comparisons.
13362 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13364         * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
13365         New function.
13366         (aarch64_add_stmt_cost): Call it.
13368 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13370         * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
13371         New tuning parameter.
13372         * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
13373         (aarch64_estimated_sve_vq): New function.
13374         (aarch64_vector_costs::analyzed_vinfo): New member variable.
13375         (aarch64_vector_costs::is_loop): Likewise.
13376         (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
13377         (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
13378         (aarch64_record_potential_advsimd_unrolling): New function.
13379         (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
13380         (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
13381         aarch64_analyze_bb_vinfo on the first use of a costs structure.
13382         Detect whether we're vectorizing a loop for SVE that might be
13383         completely unrolled if it used Advanced SIMD instead.
13384         (aarch64_adjust_body_cost_for_latency): New function.
13385         (aarch64_finish_cost): Call it.
13387 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13389         * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
13390         (aarch64_init_cost): New function.
13391         (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
13392         the default unsigned[3].
13393         (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
13394         (TARGET_VECTORIZE_INIT_COST): Override.
13395         (TARGET_VECTORIZE_FINISH_COST): Likewise.
13396         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
13398 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13400         * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
13401         (neoversev1_sve_vector_cost): New cost structures.
13402         (neoversev1_vector_cost): Likewise.
13403         (neoversev1_tunings): Use them.  Enable use_new_vector_costs.
13405 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13407         * config/aarch64/aarch64-protos.h
13408         (sve_vec_cost::scatter_store_elt_cost): New member variable.
13409         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
13410         accordingly, taking the cost from the cost of a scalar_store.
13411         (a64fx_sve_vector_cost): Likewise.
13412         (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
13414 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13416         * config/aarch64/aarch64-protos.h
13417         (simd_vec_cost::store_elt_extra_cost): New member variable.
13418         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
13419         accordingly, using the vec_to_scalar cost for the new field.
13420         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
13421         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
13422         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
13423         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
13424         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
13425         (thunderx3t110_advsimd_vector_cost): Likewise.
13426         (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
13428 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13430         * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
13431         (simd_vec_cost::ld3_st3_permute_cost): New member variables.
13432         (simd_vec_cost::ld4_st4_permute_cost): Likewise.
13433         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
13434         accordingly, using zero for the new costs.
13435         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
13436         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
13437         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
13438         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
13439         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
13440         (thunderx3t110_advsimd_vector_cost): Likewise.
13441         (aarch64_ld234_st234_vectors): New function.
13442         (aarch64_adjust_stmt_cost): Likewise.
13443         (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
13444         the new vector costs.
13446 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13448         * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
13449         derived class of simd_vec_cost.  Add information about CLAST[AB]
13450         and FADDA instructions.
13451         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
13452         accordingly, using the vec_to_scalar costs for the new fields.
13453         (a64fx_sve_vector_cost): Likewise.
13454         (aarch64_reduc_type): New function.
13455         (aarch64_sve_in_loop_reduction_latency): Likewise.
13456         (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
13457         Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
13458         that occur in the loop body.
13459         (aarch64_add_stmt_cost): Update call accordingly.
13461 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
13463         * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
13464         New tuning flag.
13465         * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
13466         above the fields rather than to the right.
13467         (simd_vec_cost::reduc_i8_cost): New member variable.
13468         (simd_vec_cost::reduc_i16_cost): Likewise.
13469         (simd_vec_cost::reduc_i32_cost): Likewise.
13470         (simd_vec_cost::reduc_i64_cost): Likewise.
13471         (simd_vec_cost::reduc_f16_cost): Likewise.
13472         (simd_vec_cost::reduc_f32_cost): Likewise.
13473         (simd_vec_cost::reduc_f64_cost): Likewise.
13474         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
13475         accordingly, using the vec_to_scalar_cost for the new fields.
13476         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
13477         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
13478         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
13479         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
13480         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
13481         (thunderx3t110_advsimd_vector_cost): Likewise.
13482         (aarch64_use_new_vector_costs_p): New function.
13483         (aarch64_simd_vec_costs): New function, split out from...
13484         (aarch64_builtin_vectorization_cost): ...here.
13485         (aarch64_is_reduction): New function.
13486         (aarch64_detect_vector_stmt_subtype): Likewise.
13487         (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
13488         using the new vector costs.
13490 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
13492         PR ipa/99466
13493         * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
13494         TLS declarations as public.
13496 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
13498         * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
13499         * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
13500         * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
13501         * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
13502         * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
13503         * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
13504         * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
13505         * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
13506         * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
13508 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
13510         PR d/91595
13511         * config.gcc (*-*-cygwin*): Add winnt-d.o
13512         (*-*-mingw*): Likewise.
13513         * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
13514         * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
13515         * config/i386/t-cygming: Add winnt-d.o.
13516         * config/i386/winnt-d.c: New file.
13518 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
13520         * config/freebsd-d.c: Include memmodel.h.
13522 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
13524         PR d/99691
13525         * config.gcc (*-*-openbsd*): Add openbsd-d.o.
13526         * config/t-openbsd: Add openbsd-d.o.
13527         * config/openbsd-d.c: New file.
13529 2021-03-25  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
13531         PR tree-optimization/96974
13532         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
13533         with graceful exit.
13535 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
13537         Revert:
13538         2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
13540         PR target/98209
13541         PR target/99744
13542         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
13543         always_inline in system headers.
13545 2021-03-25  Kewen Lin  <linkw@linux.ibm.com>
13547         * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
13549 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
13551         PR c++/99565
13552         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
13553         * fold-const.c (operand_compare::operand_equal_p): Don't compare
13554         field offsets if OEP_ADDRESS_OF_SAME_FIELD.
13556 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
13558         PR target/98209
13559         PR target/99744
13560         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
13561         always_inline in system headers.
13563 2021-03-25  Richard Biener  <rguenther@suse.de>
13565         PR tree-optimization/99746
13566         * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
13567         the scalar stmt as patterned.  Instead set up required things
13568         manually.
13570 2021-03-25  Xionghu Luo  <luoxhu@linux.ibm.com>
13572         * config/rs6000/rs6000.c (power8_costs): Change l2 cache
13573         from 256 to 512.
13575 2021-03-24  Martin Liska  <mliska@suse.cz>
13577         PR target/99753
13578         * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
13579         error.
13580         * config/i386/i386-options.c (ix86_option_override_internal):
13581         Add run-time assert.
13583 2021-03-24  Martin Jambor  <mjambor@suse.cz>
13585         PR ipa/99122
13586         * ipa-cp.c (initialize_node_lattices): Mark as bottom all
13587         parameters with unknown type.
13588         (ipacp_value_safe_for_type): New function.
13589         (propagate_vals_across_arith_jfunc): Verify that the constant type
13590         can be used for a type of the formal parameter.
13591         (propagate_vals_across_ancestor): Likewise.
13592         (propagate_scalar_across_jump_function): Likewise.  Pass the type
13593         also to propagate_vals_across_ancestor.
13595 2021-03-24  Christophe Lyon  <christophe.lyon@linaro.org>
13597         PR target/99727
13598         * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
13599         constraint.
13600         (movmisalign<mode>_mve_load): Likewise.
13602 2021-03-24  Jakub Jelinek  <jakub@redhat.com>
13604         PR target/99724
13605         * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
13606         movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
13608 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
13610         * doc/sourcebuild.texi (sysconf): New effective target.
13612 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
13614         * config/i386/predicates.md (reg_or_const_vec_operand): New.
13615         * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
13616         the now *-prefixed insn_and_split, turn the splitter const vec
13617         into an input for the insn, making it an ignored immediate for
13618         non-split cases, and loaded into the scratch register
13619         otherwise.
13621 2021-03-23  Vladimir N. Makarov  <vmakarov@redhat.com>
13623         PR target/99581
13624         * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
13625         Use define_relaxed_memory_constraint for them.
13627 2021-03-23  Iain Sandoe  <iain@sandoe.co.uk>
13629         PR target/99733
13630         * config/host-darwin.c (darwin_gt_pch_use_address): Add a
13631         colon to the diagnostic message.
13633 2021-03-23  Ilya Leoshkevich  <iii@linux.ibm.com>
13635         * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
13636         set_info's uses.
13637         (try_fwprop_subst_note): Use set_info instead of insn_info.
13638         (try_fwprop_subst_pattern): Likewise.
13639         (try_fwprop_subst_notes): Likewise.
13640         (try_fwprop_subst): Likewise.
13641         (forward_propagate_subreg): Likewise.
13642         (forward_propagate_and_simplify): Likewise.
13643         (forward_propagate_into): Likewise.
13644         * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
13645         method.
13646         (set_info::single_nondebug_insn_use): Likewise.
13647         (set_info::single_phi_use): Likewise.
13648         * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
13649         method.
13650         (set_info::single_nondebug_insn_use): Likewise.
13651         (set_info::single_phi_use): Likewise.
13653 2021-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
13655         * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
13657 2021-03-23  Jakub Jelinek  <jakub@redhat.com>
13659         PR target/99540
13660         * config/aarch64/aarch64.c (aarch64_add_offset): Tell
13661         expand_mult to perform an unsigned rather than a signed
13662         multiplication.
13664 2021-03-23  H.J. Lu  <hjl.tools@gmail.com>
13666         PR target/99704
13667         * config/i386/cpuid.h (__cpuid): Add __volatile__.
13668         (__cpuid_count): Likewise.
13670 2021-03-23  Richard Biener  <rguenther@suse.de>
13672         PR tree-optimization/99721
13673         * tree-vect-slp.c (vect_slp_analyze_node_operations):
13674         Make sure we can schedule the node.
13676 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
13678         * config/riscv/riscv.c (riscv_subword): Take endianness into
13679         account when calculating the byte offset.
13681 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
13683         * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
13684         * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
13685         (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
13686         (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
13687         (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
13688         new predicate "subreg_lowpart_operator"
13690 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
13692         * config/riscv/riscv.c (riscv_swap_instruction): New function
13693         to byteswap an SImode rtx containing an instruction.
13694         (riscv_trampoline_init): Byteswap the generated instructions
13695         when needed.
13697 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
13699         * common/config/riscv/riscv-common.c
13700         (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
13701         * config.gcc (riscv32be-*, riscv64be-*): Set
13702         TARGET_BIG_ENDIAN_DEFAULT to 1.
13703         * config/riscv/elf.h (LINK_SPEC): Change -melf* value
13704         depending on default endianness.
13705         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
13706         * config/riscv/linux.h (LINK_SPEC): Likewise.
13707         * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
13708         default endianness.
13709         * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
13711 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
13713         * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
13714         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
13715         * config/riscv/linux.h (LINK_SPEC): Likewise.
13716         * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
13717         -mlittle-endian.
13718         (BYTES_BIG_ENDIAN): Handle big endian.
13719         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13720         * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
13721         options.
13722         * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
13724 2021-03-23  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
13726         * regcprop.c (find_oldest_value_reg): Ask target whether
13727           different mode is fine for replacement register.
13729 2021-03-23  Aldy Hernandez  <aldyh@redhat.com>
13731         PR tree-optimization/99296
13732         * value-range.cc (irange::irange_set_1bit_anti_range): New.
13733         (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
13734         * value-range.h (irange::irange_set_1bit_anti_range): New.
13736 2021-03-22  Vladimir N. Makarov  <vmakarov@redhat.com>
13738         PR target/99581
13739         * config/aarch64/constraints.md (UtQ): Use
13740         define_relaxed_memory_constraint for it.
13741         * doc/md.texi (define_relaxed_memory_constraint): Describe it.
13742         * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
13743         * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
13744         (have_relaxed_memory_constraints): New static var.
13745         (relaxed_memory_start, relaxed_memory_end): Ditto.
13746         (add_constraint): Add arg is_relaxed_memory.  Check name for
13747         relaxed memory.  Set up is_relaxed_memory in constraint_data and
13748         have_relaxed_memory_constraints.  Adjust calls.
13749         (choose_enum_order): Process relaxed memory.
13750         (write_tm_preds_h): Ditto.
13751         (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
13752         * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
13753         * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
13754         * ira-lives.c (single_reg_class): Use
13755         insn_extra_relaxed_memory_constraint.
13756         * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
13757         * lra-constraints.c (valid_address_p): Use
13758         insn_extra_relaxed_memory_constraint instead of other memory
13759         constraints.
13760         (process_alt_operands): Process CT_RELAXED_MEMORY.
13761         (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
13762         * recog.c (asm_operand_ok, preprocess_constraints): Process
13763         CT_RELAXED_MEMORY.
13764         * reload.c (find_reloads): Ditto.
13765         * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
13766         * stmt.c (parse_input_constraint): Use
13767         insn_extra_relaxed_memory_constraint.
13769 2021-03-22  Segher Boessenkool  <segher@kernel.crashing.org>
13771         PR target/97926
13772         * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
13773         there are no NaNs.
13775 2021-03-22  Alex Coplan  <alex.coplan@arm.com>
13777         PR target/97252
13778         * config/arm/arm-protos.h (neon_make_constant): Add generate
13779         argument to guard emitting insns, default to true.
13780         * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
13781         CONST_VECTORs which neon_make_constant can't handle.
13782         (neon_vdup_constant): Add generate argument, avoid emitting
13783         insns if it's not set.
13784         (neon_make_constant): Plumb new generate argument through.
13785         * config/arm/constraints.md (Ui): New. Use it...
13786         * config/arm/mve.md (*mve_mov<mode>): ... here.
13787         * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
13788         synthesize constants.
13790 2021-03-22  Richard Biener  <rguenther@suse.de>
13792         * debug.h: Add deprecation warning.
13794 2021-03-22  Richard Biener  <rguenther@suse.de>
13796         PR tree-optimization/99694
13797         * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
13798         PHI result.
13800 2021-03-22  Kito Cheng  <kito.cheng@sifive.com>
13802         PR target/99702
13803         * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
13804         after type checking.
13806 2021-03-22  Jakub Jelinek  <jakub@redhat.com>
13808         PR debug/99562
13809         PR debug/66728
13810         * dwarf2out.c (get_full_len): Use get_precision rather than
13811         min_precision.
13812         (add_const_value_attribute): Make sure add_AT_wide argument has
13813         precision prec rather than some very wide one.
13815 2021-03-22  Kewen Lin  <linkw@linux.ibm.com>
13817         * config/rs6000/rs6000.md (*rotldi3_insert_sf,
13818         *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
13819         floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
13820         floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
13821         *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
13822         fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
13823         *round32<mode>2_fprs, *roundu32<mode>2_fprs,
13824         *fix_trunc<mode>si2_internal): Fix empty split condition.
13825         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
13826         vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
13827         *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
13828         *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
13830 2021-03-22  Xionghu Luo  <luoxhu@linux.ibm.com>
13832         PR target/98914
13833         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
13834         Convert idx to DImode.
13835         (rs6000_expand_vector_set_var_p8): Likewise.
13837 2021-03-21  Jakub Jelinek  <jakub@redhat.com>
13839         PR debug/99388
13840         * dwarf2out.c (insert_float): Change return type from void to
13841         unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
13842         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
13843         Adjust callers.
13845 2021-03-20  H.J. Lu  <hjl.tools@gmail.com>
13847         PR target/99679
13848         * config/i386/i386.c (construct_container): Check cfun != NULL
13849         before accessing silent_p.
13851 2021-03-20  Ahamed Husni  <ahamedhusni73@gmail.com>
13853         * asan.c: Fix typos in comments.
13855 2021-03-20  Vladimir N. Makarov  <vmakarov@redhat.com>
13857         PR rtl-optimization/99680
13858         * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
13859         (process_address_1): Check empty constraint before using
13860         CONSTRAINT_LEN.
13862 2021-03-19  Pat Haugen  <pthaugen@linux.ibm.com>
13864         * config/rs6000/rs6000.c (power10_cost): New.
13865         (rs6000_option_override_internal): Set Power10 costs.
13866         (rs6000_issue_rate): Set Power10 issue rate.
13867         * config/rs6000/power10.md: Rewrite for Power10.
13869 2021-03-19  Vladimir N. Makarov  <vmakarov@redhat.com>
13871         PR target/99663
13872         * lra-constraints.c (process_address_1): Don't use unknown
13873         constraint for address constraint.
13875 2021-03-19  Iain Sandoe  <iain@sandoe.co.uk>
13877         PR target/99661
13878         * config.gcc (powerpc-*-darwin8): Delete the reference to
13879         the now removed darwin8.h.
13881 2021-03-19  Olivier Hainque  <hainque@adacore.com>
13883         PR target/99660
13884         * config/vxworksae.h (VX_CPU_PREFIX): Define.
13886 2021-03-19  John David Anglin  <danglin@gcc.gnu.org>
13888         * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
13890 2021-03-19  Tamar Christina  <tamar.christina@arm.com>
13892         PR tree-optimization/99656
13893         * tree-vect-slp-patterns.c (linear_loads_p,
13894         complex_add_pattern::matches, is_eq_or_top,
13895         vect_validate_multiplication, complex_mul_pattern::matches,
13896         complex_fms_pattern::matches): Remove complex_perm_kinds_t.
13897         * tree-vectorizer.h: (complex_load_perm_t): Removed.
13898         (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
13899         complex_load_perm_t.
13901 2021-03-19  H.J. Lu  <hjl.tools@gmail.com>
13903         PR target/99652
13904         * config/i386/i386-options.c (ix86_init_machine_status): Set
13905         silent_p to true.
13906         * config/i386/i386.c (init_cumulative_args): Set silent_p to
13907         false.
13908         (construct_container): Return early for return and argument
13909         errors if silent_p is true.
13910         * config/i386/i386.h (machine_function): Add silent_p.
13912 2021-03-19  Jakub Jelinek  <jakub@redhat.com>
13914         PR target/99593
13915         * config/arm/constraints.md (Ds): New constraint.
13916         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
13917         constraint instead of w,Dm.
13919 2021-03-19  Andrew Stubbs  <ams@codesourcery.com>
13921         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
13922         in error message.
13924 2021-03-19  Eric Botcazou  <ebotcazou@adacore.com>
13926         PR middle-end/99641
13927         * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
13928         array type, do the computation of the current position in sizetype.
13930 2021-03-18  Vladimir N. Makarov  <vmakarov@redhat.com>
13932         PR target/99422
13933         * lra-constraints.c (process_address_1): Use lookup_constraint
13934         only for a single constraint.
13936 2021-03-18  Martin Sebor  <msebor@redhat.com>
13938         PR middle-end/99502
13939         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
13940         (inbounds_memaccess_p): ...to this.  Check the ending offset of
13941         the accessed member.
13943 2021-03-18  Andrew Stubbs  <ams@codesourcery.com>
13945         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
13946           %> quote markers to error messages.
13947         (gcn_goacc_validate_dims): Likewise.
13948         (gcn_conditional_register_usage): Remove exclaimation mark from error
13949         message.
13950         (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
13952 2021-03-18  Jan Hubicka  <hubicka@ucw.cz>
13954         * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
13955         integer divides1.
13957 2021-03-18  Sinan Lin  <sinan@isrc.iscas.ac.cn>
13958             Kito Cheng  <kito.cheng@sifive.com>
13960         * config/riscv/riscv.c (riscv_block_move_straight): Change type
13961         to unsigned HOST_WIDE_INT for parameter and local variable with
13962         HOST_WIDE_INT type.
13963         (riscv_adjust_block_mem): Ditto.
13964         (riscv_block_move_loop): Ditto.
13965         (riscv_expand_block_move): Ditto.
13967 2021-03-18  Nick Clifton  <nickc@redhat.com>
13969         * config/v850/v850.c (construct_restore_jr): Increase static
13970          buffer size.
13971         (construct_save_jarl): Likewise.
13972         * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
13974 2021-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13976         * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
13977         (aarch64_override_options_internal): Use it.
13978         (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
13979         tune_flags.
13981 2021-03-17  Sandra Loosemore  <sandra@codesourcery.com>
13983         * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
13984         error message format issues.
13985         (nios2_option_override): Likewise.
13986         (nios2_expand_fpu_builtin): Likewise.
13987         (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
13988         truncation warning.
13989         (nios2_expand_custom_builtin): More error message format fixes.
13990         (nios2_expand_rdwrctl_builtin): Likewise.
13991         (nios2_expand_rdprs_builtin): Likewise.
13992         (nios2_expand_eni_builtin): Likewise.
13993         (nios2_expand_builtin): Likewise.
13994         (nios2_register_custom_code): Likewise.
13995         (nios2_valid_target_attribute_rec): Likewise.
13996         (nios2_add_insn_asm): Fix uninitialized variable warning.
13998 2021-03-17  Jan Hubicka  <jh@suse.cz>
14000         * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
14001         of gather to match reality.
14002         * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
14004 2021-03-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14006         * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
14007         to compare against CC_REG rather than NE.
14009 2021-03-17  H.J. Lu  <hjl.tools@gmail.com>
14011         PR target/99504
14012         * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
14013         inline assembly statements.
14014         (ix86_print_operand): Update 'P' handling for -fno-plt.
14016 2021-03-17  Tamar Christina  <tamar.christina@arm.com>
14018         PR target/99542
14019         * config/aarch64/aarch64.c
14020         (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
14022 2021-03-16  Segher Boessenkool  <segher@kernel.crashing.org>
14024         PR target/98092
14025         * config/rs6000/predicates.md (branch_comparison_operator): Allow
14026         ordered and unordered for CCFPmode, if flag_finite_math_only.
14028 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
14030         PR target/99600
14031         * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
14032         rather than ASHIFT.
14033         * config/i386/i386.md (mult by 1248 into ashift): New splitter.
14035 2021-03-16  Martin Liska  <mliska@suse.cz>
14037         PR target/99592
14038         * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
14039         cl_optimization_compare function.
14041 2021-03-16  Ilya Leoshkevich  <iii@linux.ibm.com>
14043         * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
14044         as "v".
14046 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
14048         PR target/99563
14049         * config/i386/i386.h (struct machine_function): Add
14050         has_explicit_vzeroupper bitfield.
14051         * config/i386/i386-expand.c (ix86_expand_builtin): Set
14052         cfun->machine->has_explicit_vzeroupper when expanding
14053         IX86_BUILTIN_VZEROUPPER.
14054         * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
14055         Do the mode switching only when TARGET_VZEROUPPER, expensive
14056         optimizations turned on and not optimizing for size.
14057         (pass_insert_vzeroupper::gate): Enable even when
14058         cfun->machine->has_explicit_vzeroupper is set.
14060 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
14062         PR target/99542
14063         * config/aarch64/aarch64.c
14064         (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
14065         definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
14066         instead of DECL_ARGUMENTS.  Ignore types for uniform arguments.
14068 2021-03-15  Richard Biener  <rguenther@suse.de>
14070         PR tree-optimization/98834
14071         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
14072         subsetting by truncating the access size.
14074 2021-03-15  Jan Hubicka  <hubicka@ucw.cz>
14076         * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
14077         * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
14078         of znver2_cost.
14080 2021-03-15  Martin Liska  <mliska@suse.cz>
14082         * spellcheck.c: Add missing comma in initialization.
14084 2021-03-14  Uroš Bizjak  <ubizjak@gmail.com>
14086         * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
14087         alternative 2 and alternative 1 with alternative 3 using
14088         YW register constraint.
14089         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
14090         using YW register constraint.
14091         (*vec_extractv16qi_zext): Ditto.
14092         (*vec_extractv4si): Merge alternatives 4 and 5
14093         using Yw register constraint.
14094         (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
14096 2021-03-13  Martin Sebor  <msebor@redhat.com>
14098         PR tree-optimization/99489
14099         * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
14100         is not a call statement.
14102 2021-03-13  Jakub Jelinek  <jakub@redhat.com>
14104         PR tree-optimization/99544
14105         * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
14106         if for vector types multiplication can't be done in type's mode.
14108 2021-03-12  Eric Botcazou  <ebotcazou@adacore.com>
14110         PR target/99422
14111         * config/sparc/constraints.md (w): Rename to...
14112         (W): ... this and ditch previous implementation.
14113         * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
14114         (*movdf_insn_sp64): Likewise.
14115         (*mov<VM64:mode>_insn_sp64): Likewise.
14116         * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
14117         w with W.
14118         (atomic_compare_and_swap_leon3_1): Likewise.
14119         (*atomic_compare_and_swapdi_v8plus): Likewise.
14120         * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
14121         architecture and add missing address validity check during LRA.
14123 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
14125         PR fortran/98858
14126         * gimplify.c (omp_add_variable): Handle NULL_TREE as size
14127         occuring for assumed-size arrays in use_device_{ptr,addr}.
14129 2021-03-12  Jakub Jelinek  <jakub@redhat.com>
14131         PR target/99321
14132         * config/i386/constraints.md (YW): New internal constraint.
14133         * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
14134         (*<sse2_avx2>_<insn><mode>3<mask_name>,
14135         *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
14136         *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
14137         constraints.
14138         (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
14139         (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
14140         avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
14141         into one, use Yw instead of former x,v.
14142         (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
14143         the last alternative.
14144         (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
14145         <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
14146         *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
14147         <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
14148         into one, use <v_Yw> instead of former x,v.
14149         (avx2_interleave_highv32qi<mask_name>,
14150         vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
14151         constraints.  Add && <mask_avx512bw_condition> to condition.
14152         (avx2_interleave_lowv32qi<mask_name>,
14153         vec_interleave_lowv16qi<mask_name>,
14154         avx2_interleave_highv16hi<mask_name>,
14155         vec_interleave_highv8hi<mask_name>,
14156         avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
14157         avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
14158         avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
14159         avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
14160         *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
14161         Yw instead of v in constraints.
14162         * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
14163         (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
14164         instead of Yv in constraints.
14165         (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
14166         *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
14167         *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
14168         mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
14169         *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
14170         constraints.
14171         (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
14172         *mmx_pextrb_zext): Use YW instead of Yv in constraints.
14173         (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
14174         (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
14175         two, one with just x, another isa avx512vl with v.
14177 2021-03-12  Martin Liska  <mliska@suse.cz>
14179         * doc/invoke.texi: Add missing param documentation.
14181 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
14183         PR analyzer/96374
14184         * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
14185         analyzer/trimmed-graph.o.
14186         * doc/analyzer.texi (Analyzer Paths): Rewrite description of
14187         feasibility checking to reflect new implementation.
14188         * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
14189         option.
14190         * shortest-paths.h (shortest_paths::get_shortest_distance): New.
14192 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
14194         * digraph.cc (selftest::test_shortest_paths): Update
14195         shortest_paths init for new param.  Add test of
14196         SPS_TO_GIVEN_TARGET.
14197         * shortest-paths.h (enum shortest_path_sense): New.
14198         (shortest_paths::shortest_paths): Add "sense" param.
14199         Update for renamings.  Generalize to use "sense" param.
14200         (shortest_paths::get_shortest_path): Rename param.
14201         (shortest_paths::m_sense): New field.
14202         (shortest_paths::m_prev): Rename...
14203         (shortest_paths::m_best_edge): ...to this.
14204         (shortest_paths::get_shortest_path): Update for renamings.
14205         Conditionalize flipping of path on sense of traversal.
14207 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
14209         * digraph.cc (selftest::test_shortest_paths): Add test coverage
14210         for paths from B and C.
14211         * shortest-paths.h (shortest_paths::shortest_paths): Handle
14212         unreachable nodes, rather than asserting.
14214 2021-03-11  David Edelsohn  <dje.gcc@gmail.com>
14216         PR target/99094
14217         * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
14218         xcoff_tbss_section_name.
14219         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
14220         * xcoffout.c (xcoff_tbss_section_name): Delete.
14221         * xcoffout.h (xcoff_tbss_section_name): Delete.
14223 2021-03-11  Richard Biener  <rguenther@suse.de>
14225         PR tree-optimization/99523
14226         * tree-cfg.c (dump_function_to_file): Dump SSA names
14227         w/o identifier to the decls section as well, not only those
14228         without a VAR_DECL.
14230 2021-03-11  Jakub Jelinek  <jakub@redhat.com>
14232         PR ipa/99517
14233         * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
14234         function calls with lhs fail if the lhs don't have compatible types.
14236 2021-03-11  Hans-Peter Nilsson  <hp@axis.com>
14238         * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
14239         Change FRAME_POINTER_REGNUM to correspond to a new faked
14240         register faked_fp, part of GENNONACR_REGS like faked_ap.
14241         (CRIS_FAKED_REGS_CONTENTS): New helper macro.
14242         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
14243         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
14244         (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
14245         * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
14246         register.
14247         (CRIS_REAL_FP_REGNUM): New constant.
14248         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
14249         for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
14250         (cris_initial_elimination_offset): Handle elimination changes
14251         to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
14252         and add one from FRAME_POINTER_REGNUM to
14253         HARD_FRAME_POINTER_REGNUM.
14254         (cris_expand_prologue, cris_expand_epilogue): Emit code for
14255         hard_frame_pointer_rtx instead of frame_pointer_rtx.
14257 2021-03-10  David Edelsohn  <dje.gcc@gmail.com>
14259         PR target/99492
14260         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
14261         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
14263 2021-03-10  Vladimir N. Makarov  <vmakarov@redhat.com>
14265         PR target/99422
14266         * lra-constraints.c (process_address_1): Don't check unknown
14267         constraint, use X for empty constraint.
14269 2021-03-10  Alex Coplan  <alex.coplan@arm.com>
14271         * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
14272         Fix typo in comment describing "is_ha" argument.
14274 2021-03-10  John David Anglin  <danglin@gcc.gnu.org>
14276         * doc/sourcebuild.texi: Document LRA target selector.
14278 2021-03-10  David Malcolm  <dmalcolm@redhat.com>
14280         * doc/ux.texi: Add subsection contrasting interactive versus
14281         batch usage of GCC.
14283 2021-03-10  Joel Hutton  <joel.hutton@arm.com>
14285         PR target/99102
14286         * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
14287         check condition.
14288         (vectorizable_load): Fix gather load mask check condition.
14290 2021-03-10  Richard Biener  <rguenther@suse.de>
14292         PR tree-optimization/99510
14293         * tree.c (check_aligned_type): Check that the candidate
14294         has TYPE_USER_ALIGN set instead of matching with the
14295         original type.
14297 2021-03-10  Eric Botcazou  <ebotcazou@adacore.com>
14299         * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
14300         float and vector integer modes only if the mode is not larger.
14302 2021-03-10  Hans-Peter Nilsson  <hp@axis.com>
14304         * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
14306 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
14308         * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
14309         constraints > 9.
14310         * ira-lives.c (single_reg_class): Ditto.
14312 2021-03-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14314         * config.gcc (aarch64-*-rtems*): Include general rtems.h after
14315         the architecture-specific rtems.h.
14316         (aarch64-*-rtems*): Likewise.
14317         (arm*-*-rtems*): Likewise.
14318         (epiphany-*-rtems*): Likewise.
14319         (riscv*-*-rtems*): Likewise.
14321 2021-03-09  Jakub Jelinek  <jakub@redhat.com>
14323         PR tree-optimization/99305
14324         * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
14325         before integer_all_onesp instead of vice versa.
14327 2021-03-09  Richard Earnshaw  <rearnsha@arm.com>
14329         * common/config/arm/arm-common.c (arm_config_default): Change type
14330         of 'i' to unsigned.
14332 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
14334         PR target/99454
14335         * lra-constraints.c (process_address_1): Process constraint 'g'
14336         separately and digital constraints containing more one digit.
14338 2021-03-09  Nick Clifton  <nickc@redhat.com>
14340         * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
14341         (DWARF"_DEBUGGING_INFO): Define.
14343 2021-03-09  Eric Botcazou  <ebotcazou@adacore.com>
14345         PR c++/90448
14346         * calls.c (initialize_argument_information): When the argument
14347         is passed by reference, do not make a copy in a thunk only if
14348         the argument is already in memory.  Remove redundant test for
14349         the case of callee copy.
14351 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
14353         PR target/99454
14354         * lra-constraints.c (process_address_1): Process 0..9 constraints
14355         in process_address_1.
14357 2021-03-09  Andreas Krebbel  <krebbel@linux.ibm.com>
14359         * config/s390/s390.c (struct s390_processor processor_table):
14360         Binutils name string must not be empty.
14362 2021-03-09  Claudiu Zissulescu  <claziss@synopsys.com>
14364         * config/arc/arc.c (arc_attr_type): Remove function.
14366 2021-03-09  Martin Liska  <mliska@suse.cz>
14368         PR target/99464
14369         * config/i386/i386-options.c (ix86_option_override_internal):
14370         Set isa_flags for OPTS argument and not for the global
14371         global_options.
14373 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
14375         * config/rs6000/predicates.md (ds_form_mem_operand): Check
14376         in correct code.
14378 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
14380         PR target/99070
14381         * config/rs6000/predicates.md (ds_form_mem_operand) New
14382         predicate.
14383         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
14384         ds_form_mem_operand in ld/lwa patterns.
14385         * config/rs6000/fusion.md: Regenerate file.
14387 2021-03-08  Martin Sebor  <msebor@redhat.com>
14389         PR middle-end/98266
14390         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
14391         (array_bounds_checker::check_array_bounds): Call it.
14393 2021-03-08  Martin Sebor  <msebor@redhat.com>
14395         PR middle-end/97631
14396         * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
14397         (handle_builtin_stxncpy_strncat): Rename locals.  Determine
14398         destination size from allocation calls.  Issue a more appropriate
14399         kind of warning.
14400         (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
14401         (handle_builtin_memset): Same.
14403 2021-03-08  Peter Bergner  <bergner@linux.ibm.com>
14405         PR target/98959
14406         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
14407         to ensure we do not have an Altivec style address.
14408         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
14409         an Altivec style address.
14410         (*vsx_le_perm_store_<mode>): Likewise.
14411         (splitters after *vsx_le_perm_store_<mode>): Likewise.
14412         (vsx_load_<mode>): Disable special expander if passed an Altivec
14413         style address.
14414         (vsx_store_<mode>): Likewise.
14416 2021-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14418         PR target/99437
14419         * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
14420         (aarch64_simd_shift_imm_vec_hi): Likewise.
14421         (aarch64_simd_shift_imm_vec_si): Likewise.
14422         (aarch64_simd_shift_imm_vec_di): Likewise.
14423         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
14424         predicate from above.
14425         (aarch64_shrn<mode>_insn_be): Likewise.
14426         (aarch64_rshrn<mode>_insn_le): Likewise.
14427         (aarch64_rshrn<mode>_insn_be): Likewise.
14428         (aarch64_shrn2<mode>_insn_le): Likewise.
14429         (aarch64_shrn2<mode>_insn_be): Likewise.
14430         (aarch64_rshrn2<mode>_insn_le): Likewise.
14431         (aarch64_rshrn2<mode>_insn_be): Likewise.
14433 2021-03-08  Vladimir N. Makarov  <vmakarov@redhat.com>
14435         PR target/99422
14436         * lra-constraints.c (skip_contraint_modifiers): New function.
14437         (process_address_1): Use it before lookup_constraint call.
14439 2021-03-08  Martin Liska  <mliska@suse.cz>
14441         PR target/99463
14442         * config/i386/i386-options.c (ix86_option_override_internal):
14443         Enable UINTR and HRESET for -march that supports it.
14445 2021-03-08  Ilya Leoshkevich  <iii@linux.ibm.com>
14447         * config/s390/s390.c (f_constraint_p): New function.
14448         (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
14449         (TARGET_MD_ASM_ADJUST): Likewise.
14451 2021-03-08  Tobias Burnus  <tobias@codesourcery.com>
14453         PR fortran/97927
14454         * tree-nested.c (convert_local_reference_stmt): Avoid calling
14455         lookup_field_for_decl for Fortran module (= namespace context).
14457 2021-03-08  Andreas Krebbel  <krebbel@linux.ibm.com>
14459         * config/s390/s390.c (s390_expand_vec_compare): Implement <0
14460         comparison with arithmetic right shift.
14461         (s390_expand_vcond): No need for a force_reg anymore.
14462         s390_vec_compare will do it.
14463         * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
14464         immediate operands.
14466 2021-03-07  Jakub Jelinek  <jakub@redhat.com>
14468         PR target/99321
14469         * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
14470         but TARGET_AVX512BW or TARGET_AVX512VL is not set.  Adjust description
14471         and comment.
14472         * config/i386/sse.md (v_Yw): New define_mode_attr.
14473         (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
14474         *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
14475         in constraints.
14476         * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
14477         xYw in constraints.
14479 2021-03-06  Julian Brown  <julian@codesourcery.com>
14481         * tree-pretty-print.c (dump_generic_node): Emit non-generic
14482         address space info for aggregates.
14484 2021-03-06  Hans-Peter Nilsson  <hp@axis.com>
14486         * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
14488 2021-03-05  Jakub Jelinek  <jakub@redhat.com>
14490         PR middle-end/99322
14491         * tree-cfg.c (bb_to_omp_idx): New variable.
14492         (execute_build_cfg): Release the bb_to_omp_idx vector after
14493         cleanup_tree_cfg returns.
14494         (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
14495         for bb_to_omp_idx being a vec<int> instead of pointer to array
14496         of ints.
14497         (make_edges): Remove bb_to_omp_idx local variable, don't pass
14498         it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
14499         vec<int> instead of pointer to array of ints and don't free/release
14500         it at the end.
14501         (remove_bb): When removing a bb and placing forced label somewhere
14502         else, ensure it is put into the same OpenMP region during cfg
14503         pass if possible or to entry successor as fallback.  Unregister
14504         bb from bb_to_omp_idx.
14506 2021-03-05  Vladimir N. Makarov  <vmakarov@redhat.com>
14508         PR target/99378
14509         * lra-constraints.c (process_address_1): Skip decomposing address
14510         for asm insn operand with unknown constraint.
14512 2021-03-05  Martin Jambor  <mjambor@suse.cz>
14514         PR ipa/98078
14515         * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
14516         corresponding speculative edges if we are about to resolve
14517         sepculation.  Make edge direct (and so resolve speculations) before
14518         removing it from call_site_hash.
14519         (cgraph_edge::make_direct): Relax the initial assert to allow calling
14520         the function on speculative direct edges.
14522 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
14524         PR rtl-optimization/99376
14525         * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
14526         of low-order zero bits is too large, set the result to 0 directly.
14528 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
14530         PR middle-end/93235
14531         * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
14532         SUBREG and a SUBREG to op_mode can't be created.
14534 2021-03-04  Alex Coplan  <alex.coplan@arm.com>
14536         PR target/99381
14537         * config/aarch64/aarch64-sve-builtins.cc
14538         (function_resolver::require_vector_type): Handle error_mark_node.
14540 2021-03-04  Ilya Leoshkevich  <iii@linux.ibm.com>
14542         * cfgexpand.c (expand_asm_loc): Pass new parameter.
14543         (expand_asm_stmt): Likewise.
14544         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
14545         parameter.
14546         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
14547         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
14548         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
14549         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
14550         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
14551         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
14552         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
14553         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
14554         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
14555         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
14556         * doc/tm.texi (md_asm_adjust): Likewise.
14557         * target.def (md_asm_adjust): Likewise.
14559 2021-03-04  Richard Biener  <rguenther@suse.de>
14561         PR middle-end/97855
14562         * tree-pretty-print.c: Poison pp_printf.
14563         (dump_decl_name): Avoid use of pp_printf.
14564         (dump_block_node): Likewise.
14565         (dump_generic_node): Likewise.
14567 2021-03-04  Martin Sebor  <msebor@redhat.com>
14569         PR middle-end/96963
14570         PR middle-end/94655
14571         * builtins.c (handle_array_ref): New helper.
14572         (handle_mem_ref): New helper.
14573         (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
14574         into new helper functions.  Correct a workaround for vectorized
14575         assignments.
14577 2021-03-03  Pat Haugen  <pthaugen@linux.ibm.com>
14579         * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
14580         floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
14581         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
14582         *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
14583         attribute for Power10.
14584         * config/rs6000/mma.md (*movoo): Likewise.
14585         * config/rs6000/rs6000.md (define_attr "size"): Add 256.
14586         (define_mode_attr bits): Add DD/TD modes.
14587         * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
14588         store_conditionalpti): Update size attribute for Power10.
14590 2021-03-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14592         PR bootstrap/92002
14593         * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
14594         -Wuninitialized, -Wmaybe-uninitialized.
14595         (wide-int.o-warn): Likewise.
14597 2021-03-03  Richard Earnshaw  <rearnsha@arm.com>
14599         * common/config/arm/arm-common.c: Include configargs.h.
14600         (arm_config_default): New function.
14601         (arm_target_mode): Renamed from arm_target_thumb_only.  Handle
14602         processors that do not support Thumb.  Take into account the
14603         --with-mode configuration setting for selecting the default.
14604         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
14605         (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
14607 2021-03-03  Martin Liska  <mliska@suse.cz>
14609         PR gcov-profile/97461
14610         * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
14612 2021-03-03  Eric Botcazou  <ebotcazou@adacore.com>
14614         PR target/99234
14615         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
14616         point back the hard frame pointer to its default location when the
14617         frame is larger than SEH_MAX_FRAME_SIZE.
14619 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
14621         PR target/99321
14622         * config/i386/predicates.md (logic_operator): New define_predicate.
14623         * config/i386/i386.md (mov + mem using comm arith peephole2):
14624         Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
14625         and the inner mode is [QH]Imode.
14627 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
14629         PR debug/99090
14630         * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
14631         (new_loc_list): Clear end_entry.
14632         (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
14633         if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx.  Fix comment
14634         typo.
14635         (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
14636         initialize also end_entry.
14638 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
14640         PR target/99085
14641         * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
14642         partitions, if in non-layout mode after reorder_blocks also move
14643         affected blocks to ensure a single partition transition.
14645 2021-03-03  Jason Merrill  <jason@redhat.com>
14647         PR c++/96078
14648         * cgraphunit.c (process_function_and_variable_attributes): Don't
14649         warn about flatten on an alias if the target also has it.
14650         * cgraph.h (symtab_node::get_alias_target_tree): New.
14652 2021-03-02  David Edelsohn  <dje.gcc@gmail.com>
14654         * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
14655         period to symbol name.
14656         (tls_get_addr_internal<mode>): Same.
14658 2021-03-02  David Malcolm  <dmalcolm@redhat.com>
14660         PR c/99323
14661         * diagnostic-show-locus.c
14662         (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
14663         column 0.
14665 2021-03-02  Martin Sebor  <msebor@redhat.com>
14667         PR middle-end/99276
14668         * builtins.c (warn_for_access): Remove stray warning text.
14670 2021-03-02  Martin Sebor  <msebor@redhat.com>
14672         PR middle-end/99295
14673         * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
14674         property.
14676 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
14678         PR debug/99319
14679         * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
14680         -gdwarf-5 -gstrict-dwarf.  For -gsplit-dwarf -gdwarf-5 use
14681         DW_MACRO_*_strx instead of DW_MACRO_*_strp.  Handle
14682         DW_MACRO_define_strx and DW_MACRO_undef_strx.
14683         (save_macinfo_strings): Use DW_MACRO_*_str* even with
14684         -gdwarf-5 -gstrict-dwarf.  Handle DW_MACRO_define_strx and
14685         DW_MACRO_undef_strx.
14687 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
14689         * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
14690         builtin signature.
14691         (BT_FN_V8HI_V8HI_UINT): Likewise.
14692         (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
14693         * config/s390/s390-builtins.def (B_NNPA): New macro definition.
14694         (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
14695         New builtin definitions.
14696         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
14697         vector extension version.
14698         * config/s390/s390.c (s390_expand_builtin): Check if builtins are
14699         available with current -march level.
14700         * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
14701         (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
14702         (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
14703         * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
14704         (vec_extend_to_fp32_lo): Likewise.
14705         (vec_round_from_fp32): Likewise.
14706         (vec_convert_to_fp16): Likewise.
14707         (vec_convert_from_fp16): Likewise.
14708         * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
14709         (vclfnls_v8hi): Likewise.
14710         (vcrnfs_v8hi): Likewise.
14711         (vcfn_v8hi): Likewise.
14712         (vcnf_v8hi): Likewise.
14714 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
14716         * common/config/s390/s390-common.c (processor_flags_table): New entry.
14717         * config.gcc: Enable arch14 for --with-arch and --with-tune.
14718         * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
14719         arch14 for unknown CPU models.
14720         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
14721         * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
14722         (s390_get_sched_attrmask): Likewise.
14723         (s390_get_unit_mask): Likewise.
14724         * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
14725         (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
14726         (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
14727         (TARGET_NNPA_P): New macro definitions.
14728         * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
14729         * config/s390/s390.opt: Add PROCESSOR_ARCH14.
14731 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
14733         PR middle-end/95757
14734         * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
14735         condition.  Call register_edge_assert_for_1 for == 0, != 0, == 1 and
14736         != 1 comparisons if name is lhs of a comparison.
14738 2021-03-01  Iain Sandoe  <iain@sandoe.co.uk>
14740         PR target/44107
14741         PR target/48097
14742         * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
14743         * config/darwin.c (darwin_should_restore_cfa_state): New.
14744         * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
14745         * doc/tm.texi: Regenerated.
14746         * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
14747         * dwarf2cfi.c (connect_traces): If the target requests, restore
14748         the CFA expression after a DW_CFA_restore.
14749         * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
14751 2021-03-01  Martin Liska  <mliska@suse.cz>
14753         PR target/99313
14754         * optc-save-gen.awk: Add 4 more exceptions.
14756 2021-03-01  Nathan Sidwell  <nathan@acm.org>
14758         PR c++/99294
14759         * tree.h (TYPE_ALIGN_RAW): New accessor.
14760         (TYPE_ALIGN): Use it.
14762 2021-03-01  Jan Hubicka  <jh@suse.cz>
14764         PR ipa/98338
14765         * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
14767 2021-03-01  Eric Botcazou  <ebotcazou@adacore.com>
14769         PR target/99234
14770         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
14771         point the hard frame pointer to the SSE register save area instead
14772         of the general register save area.  Perform only minimal adjustment
14773         for small frames if it is initially not correctly aligned.
14774         (ix86_expand_prologue): Remove early saves for a SEH target.
14775         * config/i386/winnt.c (struct seh_frame_state): Document constraint.
14777 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
14779         PR c/99304
14780         * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
14781         typo - referneced -> referenced.
14782         * tree.c (component_ref_size): Fix comment typo -
14783         refernce -> reference.
14784         * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
14785         traling -> trailing.
14786         (aliasing_component_refs_p): Fix comment typos -
14787         refernce -> reference and refernece -> reference and
14788         traling -> trailing.
14789         (nonoverlapping_refs_since_match_p): Fix comment typo -
14790         referneces -> references.
14791         * doc/invoke.texi (--param modref-max-bases): Fix a typo -
14792         referneces -> references.
14794 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
14796         * config/host-darwin.c (darwin_gt_pch_use_address): Modify
14797         diagnostic message to avoid use of a contraction and format
14798         warning.
14800 2021-02-27  Jakub Jelinek  <jakub@redhat.com>
14802         PR other/99288
14803         * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
14804         HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
14805         * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
14806         HOST_WIDE_INT_PRINT_DEC in inform format string.  Fix comment
14807         typos.
14809 2021-02-26  Richard Biener  <rguenther@suse.de>
14811         PR middle-end/99281
14812         * expr.c (store_field): For calls with return-slot optimization
14813         and addressable return type expand the store directly.
14815 2021-02-26  Richard Biener  <rguenther@suse.de>
14817         PR c/99275
14818         * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
14820 2021-02-26  Peter Bergner  <bergner@linux.ibm.com>
14822         PR target/99279
14823         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
14824         with an "if" test.
14826 2021-02-26  Aaron Sawdey  <acsawdey@linux.ibm.com>
14828         * config.gcc: Add rs6000-pcrel-opt.o.
14829         * config/rs6000/rs6000-pcrel-opt.c: New file.
14830         * config/rs6000/pcrel-opt.md: New file.
14831         * config/rs6000/predicates.md: Add d_form_memory predicate.
14832         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
14833         * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
14834         * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
14835         pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
14836         and make_pass_pcrel_opt().
14837         * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
14838         (rs6000_option_override_internal): Add pcrel-opt.
14839         (rs6000_delegitimize_address): Support pcrel-opt.
14840         (rs6000_opt_masks): Add pcrel-opt.
14841         (pcrel_opt_valid_mem_p): New function.
14842         (reg_to_non_prefixed): Make global.
14843         (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
14844         (output_pcrel_opt_reloc): New function.
14845         * config/rs6000/rs6000.md (loads_extern_addr): New attr.
14846         (pcrel_extern_addr): Set loads_extern_addr.
14847         Add include for pcrel-opt.md.
14848         * config/rs6000/rs6000.opt: Add -mpcrel-opt.
14849         * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
14850         pcrel-opt.md.
14852 2021-02-26  YunQiang Su  <yunqiang.su@cipunited.com>
14854         PR target/98996
14855         * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
14856         If TARGET_64BIT and dest is SUBREG, we check the width, if it
14857         equal to SImode, we use SImode operation, just like what we are
14858         doing for REG one.
14860 2021-02-26  Marek Polacek  <polacek@redhat.com>
14862         * builtins.c (warn_for_access): Fix typos.
14864 2021-02-25  Iain Sandoe  <iain@sandoe.co.uk>
14866         * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
14867         mark in front of the immediate quantity.
14868         (<optab>_rolsi3_uxtw): Likewise.
14870 2021-02-25  Richard Earnshaw  <rearnsha@arm.com>
14872         PR target/99271
14873         * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
14874         (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
14875         (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
14876         address and disable when the FPCXT is not available.
14877         (nonsecure_call_value_reg_thumb2): Likewise.
14879 2021-02-25  Nathan Sidwell  <nathan@acm.org>
14881         PR c++/99166
14882         * doc/invoke.texi (flang-info-module-cmi): Renamed option.
14884 2021-02-25  Tamar Christina  <tamar.christina@arm.com>
14886         * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
14888 2021-02-25  Richard Biener  <rguenther@suse.de>
14890         PR tree-optimization/99253
14891         * tree-vect-loop.c (check_reduction_path): First compute
14892         code, then verify out-of-loop uses.
14894 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
14896         PR target/95798
14897         * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
14899 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
14901         PR tree-optimization/80635
14902         * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
14903         VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
14904         has mode precision.
14906 2021-02-25  Richard Biener  <rguenther@suse.de>
14908         * tree-vect-slp.c (optimize_load_redistribution_1): Delay
14909         load_map population.
14910         (vect_match_slp_patterns_2): Revert part of last change.
14911         (vect_analyze_slp): Do not interleave optimize_load_redistribution
14912         with pattern detection but do it afterwards.  Dump the
14913         whole SLP graph after pattern recognition and load
14914         redistribution optimization finished.
14916 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
14918         PR fortran/99226
14919         * omp-low.c (struct omp_context): Add teams_nested_p and
14920         nonteams_nested_p members.
14921         (scan_omp_target): Diagnose teams nested inside of target with other
14922         directives strictly nested inside of the same target.
14923         (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
14924         ctx->nonteams_nested_p as needed.
14926 2021-02-24  Vladimir N. Makarov  <vmakarov@redhat.com>
14928         PR inline-asm/99123
14929         * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
14931 2021-02-24  Hans-Peter Nilsson  <hp@axis.com>
14933         * config/cris/cris.c (cris_expand_prologue): Set
14934         current_function_static_stack_size, if flag_stack_usage_info.
14936 2021-02-24  Pat Haugen  <pthaugen@linux.ibm.com>
14938         * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
14939         (rs6000_final_prescan_insn): Adjust.
14940         (rs6000_asm_output_opcode): Likewise.
14942 2021-02-24  Martin Sebor  <msebor@redhat.com>
14944         PR middle-end/97172
14945         * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
14946         from function arguments.
14948 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
14950         PR tree-optimization/99220
14951         * tree-vect-slp.c (optimize_load_redistribution_1): Remove
14952         node from cache when it's about to be deleted.
14954 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
14956         PR tree-optimization/99225
14957         * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
14958         to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
14959         build_int_cst (..., 1).  Formatting fixes.
14961 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
14963         PR tree-optimization/99149
14964         * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
14965         buffer.
14966         (vect_slp_reset_pattern): Remove.
14967         (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
14968         (complex_mul_pattern::build, complex_fma_pattern::build,
14969         complex_fms_pattern::build): Fix ref counts.
14970         * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
14971         when node is being deleted.
14972         (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
14973         (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
14974         stores.
14975         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
14977 2021-02-24  Matthias Klose  <doko@ubuntu.com>
14979         Revert:
14980         2020-12-07  Matthias Klose  <doko@ubuntu.com>
14982         * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
14983         and ENABLE_RTL_FLAG_CHECKING.
14985 2021-02-24  Richard Biener  <rguenther@suse.de>
14987         PR c/99224
14988         * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
14990 2021-02-23  Peter Bergner  <bergner@linux.ibm.com>
14992         * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
14993         (vsx_assemble_pair): ...to this.
14994         (*mma_assemble_pair): Rename from this...
14995         (*vsx_assemble_pair): ...to this.
14996         (mma_disassemble_pair): Rename from this...
14997         (vsx_disassemble_pair): ...to this.
14998         (*mma_disassemble_pair): Rename from this...
14999         (*vsx_disassemble_pair): ...to this.
15000         * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
15001         BU_COMPAT): New macros.
15002         (mma_assemble_pair): Rename from this...
15003         (vsx_assemble_pair): ...to this.
15004         (mma_disassemble_pair): Rename from this...
15005         (vsx_disassemble_pair): ...to this.
15006         (mma_assemble_pair): New compatibility built-in.
15007         (mma_disassemble_pair): Likewise.
15008         * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
15009         (RS6000_BUILTIN_COMPAT): Define.
15010         (bdesc_compat): New.
15011         (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
15012         (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
15013         and VSX_BUILTIN_ASSEMBLE_PAIR.
15014         (rs6000_init_builtins): Register compatibility built-ins.
15015         (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
15016         VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
15017         VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
15018         * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
15019         (__builtin_vsx_assemble_pair): ...to this.
15020         (__builtin_mma_disassemble_pair): Rename from this...
15021         (__builtin_vsx_disassemble_pair): ...to this.
15023 2021-02-23  Martin Liska  <mliska@suse.cz>
15025         PR sanitizer/99168
15026         * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
15027         with different alignment. That leads to an invalid red zone
15028         size allocated in runtime.
15030 2021-02-23  Jakub Jelinek  <jakub@redhat.com>
15032         PR tree-optimization/99204
15033         * fold-const.c (fold_read_from_constant_string): Check that
15034         tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
15036 2021-02-23  Segher Boessenkool  <segher@kernel.crashing.org>
15037             Kewen Lin  <linkw@gcc.gnu.org>
15039         * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
15040         (rotl<mode>3_insert_3): ...this.
15041         (plus_ior_xor): New code_iterator.
15042         (define_split for GPR rl*imi): New splitter.
15043         * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
15044         for integer merging.
15046 2021-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15048         * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
15049         Define.
15050         * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
15051         into a register when the above is enabled.
15052         * config/aarch64/aarch64.c (neoversev1_tunings):
15053         AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
15054         (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
15056 2021-02-22  Hans-Peter Nilsson  <hp@axis.com>
15058         * config/cris/cris.c (cris_print_operand) <'T'>: Change
15059         valid operand from is now an addi mult-value to shift-value.
15060         * config/cris/cris.md (*addi): Change expression of scaled
15061         operand from mult to ashift.
15062         * config/cris/cris.md (*addi_reload): New insn_and_split.
15064 2021-02-22  John David Anglin  <danglin@gcc.gnu.org>
15066         PR target/85074
15067         * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
15068         hook_bool_const_tree_hwi_hwi_const_tree_true.
15069         (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
15071 2021-02-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
15073         PR rtl-optimization/98791
15074         * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
15075         for unordered modes.
15077 2021-02-22  Martin Liska  <mliska@suse.cz>
15079         * tree-inline.c (inline_forbidden_p): Set
15080         inline_forbidden_reason.
15082 2021-02-22  Richard Biener  <rguenther@suse.de>
15084         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
15085         costed subgraph.
15087 2021-02-22  Richard Biener  <rguenther@suse.de>
15089         PR tree-optimization/99165
15090         * gimple-ssa-store-merging.c (pass_store_merging::process_store):
15091         Accumulate changed to ret.
15093 2021-02-21  Uros Bizjak  <ubizjak@gmail.com>
15095         Revert:
15096         2020-12-09  Uroš Bizjak  <ubizjak@gmail.com>
15098         * config/i386/i386.h (REG_ALLOC_ORDER): Remove
15100 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
15102         PR target/99134
15103         * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
15104         pattern.
15105         (trunctf<DFP_ALL:mode>2): Likewise.
15106         (trunctdtf2_vr): Likewise.
15107         (trunctdtf2): Likewise.
15108         (extend<DFP_ALL:mode>tf2_vr): Likewise.
15109         (extend<DFP_ALL:mode>tf2): Likewise.
15110         (extendtftd2_vr): Likewise.
15111         (extendtftd2): Likewise.
15113 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
15115         * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
15116         add memory alternative.
15117         (tf_to_fprx2): New pattern.
15119 2021-02-19  Martin Sebor  <msebor@redhat.com>
15121         PR c/97172
15122         * attribs.c (init_attr_rdwr_indices): Guard vblist use.
15123         (attr_access::free_lang_data): Remove a spurious test.
15125 2021-02-19  Nathan Sidwell  <nathan@acm.org>
15127         * doc/invoke.texi (flang-info-module-read): Document.
15129 2021-02-19  Martin Liska  <mliska@suse.cz>
15131         PR translation/99167
15132         * params.opt: Fix typo.
15134 2021-02-19  Richard Biener  <rguenther@suse.de>
15136         PR middle-end/99122
15137         * tree-inline.c (inline_forbidden_p): Do not inline functions
15138         with VLA arguments or return value.
15140 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
15142         PR target/98998
15143         * config/arm/arm.md (*stack_protect_combined_set_insn,
15144         *stack_protect_combined_test_insn): If force_const_mem result
15145         is not valid general operand, force its address into the destination
15146         register first.
15148 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
15150         PR ipa/99034
15151         * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
15152         pad or non-local label, put FORCED_LABELs from bb b after that label
15153         rather than before it.
15155 2021-02-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
15157         PR target/98657
15158         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
15159         expand_vector_broadcast' to emit the vec_duplicate operand.
15161 2021-02-18  Vladimir N. Makarov  <vmakarov@redhat.com>
15163         PR rtl-optimization/96264
15164         * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
15165         hard regs.
15167 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
15169         PR target/99113
15170         * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
15171         looking up the retain attribute.
15172         (resolve_unique_section): Likewise.
15173         (get_variable_section): Likewise.
15174         (switch_to_section): Likewise.  Warn when a symbol without the
15175         retain attribute and a symbol with the retain attribute are
15176         placed in the section with the same name, instead of the used
15177         attribute.
15178         * doc/extend.texi: Document the "retain" attribute.
15180 2021-02-18  Nathan Sidwell  <nathan@acm.org>
15182         PR c++/99023
15183         * doc/invoke.texi (flang-info-include-translate): Document header
15184         lookup behaviour.
15186 2021-02-18  Richard Biener  <rguenther@suse.de>
15188         PR middle-end/99122
15189         * ipa-fnsummary.c (analyze_function_body): Set
15190         CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
15191         * tree-inline.c (insert_init_debug_bind): Pass NULL for
15192         error_mark_node values.
15193         (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
15194         values.
15195         (setup_one_parameter): Delay force_value_to_type until when
15196         it's needed.
15198 2021-02-18  Hans-Peter Nilsson  <hp@axis.com>
15200         PR tree-optimization/99142
15201         * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
15203 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
15205         * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
15206         wide_int_bitmask::wide_int_bitmask (uint64_t),
15207         wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
15208         wide_int_bitmask::operator ~ () const,
15209         wide_int_bitmask::operator | (wide_int_bitmask) const,
15210         wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
15211         instead of inline.
15212         * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
15213         PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
15214         PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
15215         PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
15216         PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
15217         PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
15218         PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
15219         PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
15220         PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
15221         PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
15222         PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
15223         PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
15224         PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
15225         PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
15226         PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
15227         PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
15228         PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
15229         PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
15230         PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
15231         PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
15232         PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
15233         PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
15234         PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
15235         PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
15237 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
15239         PR middle-end/99109
15240         * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
15241         (build_printable_array_type): ... this.  Add nelts argument.  For
15242         overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead.  If
15243         nelts, call build_array_type_nelts.
15244         (array_bounds_checker::check_mem_ref): Use build_printable_array_type
15245         instead of build_zero_elt_array_type and build_array_type_nelts.
15247 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
15249         PR target/99104
15250         * config/i386/i386.c (distance_non_agu_define): Don't call
15251         extract_insn_cached here.
15252         (ix86_lea_outperforms): Save and restore recog_data around call
15253         to distance_non_agu_define and distance_agu_use.
15254         (ix86_ok_to_clobber_flags): Remove.
15255         (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
15256         (ix86_avoid_lea_for_addr): Likewise.  Adjust function comment.
15257         * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
15258         into define_insn.  Move the splitting to define_peephole2 and
15259         check there using peep2_regno_dead_p if FLAGS_REG is dead.
15261 2021-02-17  Julian Brown  <julian@codesourcery.com>
15263         * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
15264         for non-decls.
15266 2021-02-17  Xi Ruoyao  <xry111@mengyan1223.wang>
15268         PR target/98491
15269         * config/mips/mips.c (mips_symbol_insns): Do not use
15270         MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
15272 2021-02-16  Vladimir N. Makarov  <vmakarov@redhat.com>
15274         PR inline-asm/98096
15275         * stmt.c (resolve_operand_name_1): Take inout operands into account
15276         for access to labels by names.
15277         * doc/extend.texi: Describe counting operands for accessing labels.
15279 2021-02-16  Richard Biener  <rguenther@suse.de>
15281         PR tree-optimization/38474
15282         * tree-ssa-structalias.c (variable_info::address_taken): New.
15283         (new_var_info): Initialize address_taken.
15284         (process_constraint): Set address_taken.
15285         (solve_constraints): Use the new address_taken flag rather
15286         than is_reg_var for sorting variables.
15287         (dump_constraint): Dump the variable number if the name
15288         is just NULL.
15290 2021-02-16  Jakub Jelinek  <jakub@redhat.com>
15292         PR target/99100
15293         * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
15294         multiply by 4096 and for inbranch by 8192.
15295         * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
15296         return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
15298 2021-02-15  Maya Rashish  <coypu@sdf.org>
15300         * config/aarch64/aarch64.c (aarch64_init_builtins):
15301         Call SUBTARGET_INIT_BUILTINS.
15303 2021-02-15  Peter Bergner  <bergner@linux.ibm.com>
15305         PR rtl-optimization/98872
15306         * init-regs.c (initialize_uninitialized_regs): Skip initialization
15307         if CONST0_RTX is NULL.
15309 2021-02-15  Richard Sandiford  <richard.sandiford@arm.com>
15311         PR rtl-optimization/98863
15312         * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
15313         (function_info::build_info): Turn into a declaration, moving the
15314         definition to internals.h.
15315         (function_info::bb_walker): Declare.
15316         (function_info::create_reg_use): Likewise.
15317         (function_info::calculate_potential_phi_regs): Take a build_info
15318         parameter.
15319         (function_info::place_phis, function_info::create_ebbs): Declare.
15320         (function_info::calculate_ebb_live_in_for_debug): Likewise.
15321         (function_info::populate_backedge_phis): Delete.
15322         (function_info::start_block, function_info::end_block): Declare.
15323         (function_info::populate_phi_inputs): Delete.
15324         (function_info::m_potential_phi_regs): Move information to build_info.
15325         * rtl-ssa/internals.h: New file.
15326         (function_info::bb_phi_info): New class.
15327         (function_info::build_info): Moved from functions.h.
15328         Add a constructor and destructor.
15329         (function_info::build_info::ebb_use): Delete.
15330         (function_info::build_info::ebb_def): Likewise.
15331         (function_info::build_info::bb_live_out): Likewise.
15332         (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
15333         (function_info::build_info::potential_phi_regs): Likewise.
15334         (function_info::build_info::potential_phi_regs_for_debug): Likewise.
15335         (function_info::build_info::ebb_def_regs): Likewise.
15336         (function_info::build_info::bb_phis): Likewise.
15337         (function_info::build_info::bb_mem_live_out): Likewise.
15338         (function_info::build_info::bb_to_rpo): Likewise.
15339         (function_info::build_info::def_stack): Likewise.
15340         (function_info::build_info::old_def_stack_limit): Likewise.
15341         * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
15342         Remove the regno argument.  Push the previous definition onto the
15343         definition stack where necessary.
15344         * rtl-ssa/accesses.cc: Include internals.h.
15345         * rtl-ssa/changes.cc: Likewise.
15346         * rtl-ssa/blocks.cc: Likewise.
15347         (function_info::build_info::build_info): Define.
15348         (function_info::build_info::~build_info): Likewise.
15349         (function_info::bb_walker): New class.
15350         (function_info::bb_walker::bb_walker): Define.
15351         (function_info::add_live_out_use): Convert a logarithmic-complexity
15352         test into a linear one.  Allow the same definition to be passed
15353         multiple times.
15354         (function_info::calculate_potential_phi_regs): Moved from
15355         functions.cc.  Take a build_info parameter and store the
15356         information there instead.
15357         (function_info::place_phis): New function.
15358         (function_info::add_entry_block_defs): Update call to record_reg_def.
15359         (function_info::calculate_ebb_live_in_for_debug): New function.
15360         (function_info::add_phi_nodes): Use bb_phis to decide which
15361         registers need phi nodes and initialize ebb_def_regs accordingly.
15362         Do not add degenerate phis here.
15363         (function_info::add_artificial_accesses): Use create_reg_use.
15364         Assert that all definitions are listed in the DF LR sets.
15365         Update call to record_reg_def.
15366         (function_info::record_block_live_out): Record live-out register
15367         values in the phis of successor blocks.  Use the live-out set
15368         when processing the last block in an EBB, instead of always
15369         using the live-in sets of successor blocks.  AND the live sets
15370         with the set of registers that have been defined in the EBB,
15371         rather than with all potential phi registers.  Cope correctly
15372         with branches back to the start of the current EBB.
15373         (function_info::start_block): New function.
15374         (function_info::end_block): Likewise.
15375         (function_info::populate_phi_inputs): Likewise.
15376         (function_info::create_ebbs): Likewise.
15377         (function_info::process_all_blocks): Rewrite into a multi-phase
15378         process.
15379         * rtl-ssa/functions.cc: Include internals.h.
15380         (function_info::calculate_potential_phi_regs): Move to blocks.cc.
15381         (function_info::init_function_data): Remove caller.
15382         * rtl-ssa/insns.cc: Include internals.h
15383         (function_info::create_reg_use): New function.  Lazily any
15384         degenerate phis needed by the linear RPO view.
15385         (function_info::record_use): Use create_reg_use.  When processing
15386         debug uses, use potential_phi_regs and test it before checking
15387         whether the register is live on entry to the current EBB.  Lazily
15388         calculate ebb_live_in_for_debug.
15389         (function_info::record_call_clobbers): Update call to record_reg_def.
15390         (function_info::record_def): Likewise.
15392 2021-02-15  Martin Liska  <mliska@suse.cz>
15394         * toplev.c (init_asm_output): Free output of
15395         gen_command_line_string function.
15396         (process_options): Likewise.
15398 2021-02-15  Martin Liska  <mliska@suse.cz>
15400         * params.opt: Add 2 missing Param keywords.
15402 2021-02-15  Eric Botcazou  <ebotcazou@adacore.com>
15404         * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
15406 2021-02-15  Jakub Jelinek  <jakub@redhat.com>
15408         PR tree-optimization/99079
15409         * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
15410         useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check.  Instead
15411         require both type and TREE_TYPE (@1) to be integral types and either
15412         type having smaller or equal precision, or TREE_TYPE (@1) being
15413         unsigned type, or type being signed type.  If TREE_TYPE (@1)
15414         doesn't have wrapping overflow, perform the subtraction of one in
15415         unsigned type.
15417 2021-02-14  Jan Hubicka  <hubicka@ucw.cz>
15418             Richard Biener  <rguether@suse.de>
15420         PR ipa/97346
15421         * ipa-reference.c (ipa_init): Only conditinally initialize
15422         reference_vars_to_consider.
15423         (propagate): Conditionally deninitialize reference_vars_to_consider.
15424         (ipa_reference_write_optimization_summary): Sanity check that
15425         reference_vars_to_consider is not allocated.
15427 2021-02-13  Levy Hsu  <admin@levyhsu.com>
15429         PR target/97417
15430         * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
15431         extend parameter to get_si_mem_base_reg declaration.
15432         (get_si_mem_base_reg): Add extend parameter.  Set it.
15433         (analyze): Pass extend arg to get_si_mem_base_reg.
15434         (transform): Likewise.  Use it when rewriting mems.
15435         * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
15436         loads and emit sign/zero extending load followed by subreg move.
15438 2021-02-13  Jim Wilson  <jimw@sifive.com>
15440         PR target/97417
15441         * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
15442         exit when !reload_completed.  Only perform check for compressed reg
15443         if reload_completed.
15444         (riscv_rtx_costs): In MEM case, when optimizing for size and
15445         shorten memrefs, if not compressible, then increase cost.
15447 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
15449         PR rtl-optimization/98439
15450         * recog.c (pass_split_before_regstack::gate): Enable even when
15451         pass_split_before_sched2 is enabled if -fselective-scheduling2 is
15452         on.
15454 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
15456         PR target/96166
15457         * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
15458         swap of V2SImode elements in memory into DImode memory rotate by 32.
15460 2021-02-12  Martin Sebor  <msebor@redhat.com>
15462         * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
15464 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
15466         * rtl-ssa/accesses.cc (function_info::make_use_available): Use
15467         m_temp_obstack rather than m_obstack to allocate the temporary use.
15469 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
15471         * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
15472         as read-modify operations.
15474 2021-02-12  Richard Biener  <rguenther@suse.de>
15476         PR middle-end/38474
15477         * ipa-fnsummary.c (unmodified_parm_1): Only walk when
15478         fbi->aa_walk_budget is bigger than zero.  Update
15479         fbi->aa_walk_budget.
15480         (param_change_prob): Likewise.
15481         * ipa-prop.c (detect_type_change_from_memory_writes):
15482         Properly account walk_aliased_vdefs.
15483         (parm_preserved_before_stmt_p): Canonicalize updates.
15484         (parm_ref_data_preserved_p): Likewise.
15485         (parm_ref_data_pass_through_p): Likewise.
15486         (determine_known_aggregate_parts): Account own alias queries.
15488 2021-02-12  Martin Liska  <mliska@suse.cz>
15490         * opts-common.c (decode_cmdline_option): Release werror_arg.
15491         * opts.c (gen_producer_string): Release output of
15492         gen_command_line_string.
15494 2021-02-12  Richard Biener  <rguenther@suse.de>
15496         PR tree-optimization/38474
15497         * params.opt (-param=max-store-chains-to-track=): New param.
15498         (-param=max-stores-to-track=): Likewise.
15499         * doc/invoke.texi (max-store-chains-to-track): Document.
15500         (max-stores-to-track): Likewise.
15501         * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
15502         New.
15503         (pass_store_merging::m_n_stores): Likewise.
15504         (pass_store_merging::terminate_and_process_chain): Update
15505         m_n_stores and m_n_chains.
15506         (pass_store_merging::process_store): Likewise.   Terminate
15507         oldest chains if the number of stores or chains get too large.
15508         (imm_store_chain_info::terminate_and_process_chain): Dump
15509         chain length.
15511 2021-02-11  Eric Botcazou  <ebotcazou@adacore.com>
15513         * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
15514         the cold section, emit a nop before the directive if the previous
15515         active instruction can throw.
15517 2021-02-11  Peter Bergner  <bergner@linux.ibm.com>
15519         PR target/99041
15520         * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
15521         memory addresses that are legal for quad word accesses.
15523 2021-02-11  Andrea Corallo  <andrea.corallo@arm.com>
15525         PR target/98931
15526         * config/arm/thumb2.md (*doloop_end_internal): Generate
15527         alternative sequence to handle long range branches.
15529 2021-02-11  Joel Hutton  <joel.hutton@arm.com>
15531         PR tree-optimization/98772
15532         * optabs-tree.c (supportable_half_widening_operation): New function
15533         to check for supportable V8QI->V8HI widening patterns.
15534         * optabs-tree.h (supportable_half_widening_operation): New function.
15535         * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
15536         to create promotion stmts for V8QI->V8HI widening patterns.
15537         (vectorizable_conversion): Add case for V8QI->V8HI.
15539 2021-02-11  Richard Biener  <rguenther@suse.de>
15541         * sparseset.h (SPARSESET_ELT_BITS): Remove.
15542         (SPARSESET_ELT_TYPE): Use unsigned int.
15543         * fwprop.c: Do not include sparseset.h.
15545 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
15547         PR c++/99035
15548         * varasm.c (declare_weak): For -fsyntax-only, allow even
15549         TREE_ASM_WRITTEN function decls.
15551 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
15553         PR target/99025
15554         * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
15555         <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
15556         <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
15557         <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
15558         calling simplify_gen_subreg on it.
15560 2021-02-10  Martin Liska  <mliska@suse.cz>
15562         * config/nvptx/nvptx.c (nvptx_option_override): Use
15563         flag_patchable_function_entry instead of the removed
15564         function_entry_patch_area_size.
15566 2021-02-10  Martin Liska  <mliska@suse.cz>
15568         PR tree-optimization/99002
15569         PR tree-optimization/99026
15570         * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
15571         leak when adjacent cases are merged.
15572         * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
15573         release_clusters.
15574         (make_pass_lower_switch): Remove trailing whitespace.
15575         * tree-switch-conversion.h (release_clusters): New.
15577 2021-02-10  Richard Biener  <rguenther@suse.de>
15579         PR rtl-optimization/99054
15580         * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
15581         (fixup_partitions): Adjust.
15582         (rtl_verify_edges): Likewise.
15584 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
15586         PR middle-end/99007
15587         * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
15588         temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
15589         calls.
15591 2021-02-10  Richard Biener  <rguenther@suse.de>
15593         PR ipa/99029
15594         * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
15595         for callees.
15597 2021-02-10  Richard Biener  <rguenther@suse.de>
15599         PR tree-optimization/99024
15600         * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
15601         clear loop->aux if it is associated with the destroyed loop_vinfo.
15603 2021-02-10  Martin Liska  <mliska@suse.cz>
15605         PR tree-optimization/99002
15606         * gimple-if-to-switch.cc (find_conditions): Fix memory leak
15607         in the function.
15609 2021-02-10  Martin Liska  <mliska@suse.cz>
15611         PR ipa/99003
15612         * ipa-icf.c (sem_item::add_reference): Fix memory leak when
15613         a reference exists.
15615 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
15617         PR debug/98755
15618         * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
15619         at class scope for DWARF5+.
15621 2021-02-09  Eric Botcazou  <ebotcazou@adacore.com>
15623         PR rtl-optimization/96015
15624         * reorg.c (skip_consecutive_labels): Minor comment tweaks.
15625         (relax_delay_slots): When deleting a jump to the next active
15626         instruction over a barrier, first delete the barrier if the
15627         jump is the only way to reach the target label.
15629 2021-02-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
15631         * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
15632         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
15633         vector multiplies and vect.alu for SSRA.
15634         * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
15635         vect.mul cost field.
15636         * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
15637         * config/arm/arm.c: Likewise.
15639 2021-02-09  Richard Biener  <rguenther@suse.de>
15641         PR tree-optimization/98863
15642         * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
15643         * tree-ssa-sccvn.c (last_pushed_avail): New global.
15644         (rpo_elim::eliminate_push_avail): Chain pushed avails.
15645         (unwind_state::avail_top): Add.
15646         (do_unwind): Rewrite unwinding of avail entries.
15647         (do_rpo_vn): Initialize last_pushed_avail and
15648         avail_top of the undo state.
15650 2021-02-09  Jakub Jelinek  <jakub@redhat.com>
15652         PR middle-end/99004
15653         * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
15654         const char * to char * and free those pointers after use.
15656 2021-02-09  Richard Biener  <rguenther@suse.de>
15658         PR tree-optimization/99017
15659         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
15660         zero vector cost entries.
15662 2021-02-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
15664         PR middle-end/98974
15665         * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
15666         parameter in vectorizable_condition.
15668 2021-02-08  Richard Biener  <rguenther@suse.de>
15670         PR lto/96591
15671         * tree.c (walk_tree_1): Walk VECTOR_CST elements.
15673 2021-02-08  Martin Liska  <mliska@suse.cz>
15675         PR lto/98971
15676         * cfgexpand.c (pass_expand::execute): Parse per-function option
15677         flag_patchable_function_entry and use it.
15678         * common.opt: Remove function_entry_patch_area_size and
15679         function_entry_patch_area_start global variables.
15680         * opts.c (parse_and_check_patch_area): New function.
15681         (common_handle_option): Use it.
15682         * opts.h (parse_and_check_patch_area): New function.
15683         * toplev.c (process_options): Parse and use
15684         function_entry_patch_area_size.
15686 2021-02-08  Martin Sebor  <msebor@redhat.com>
15688         * doc/extend.texi (attribute malloc): Correct typos.
15690 2021-02-05  Nathan Sidwell  <nathan@acm.org>
15692         PR driver/98943
15693         * gcc.c (driver::maybe_run_linker): Check for input file
15694         accessibility if not linking.
15696 2021-02-05  Richard Biener  <rguenther@suse.de>
15698         PR tree-optimization/98855
15699         * tree-vectorizer.h (add_stmt_cost): New overload.
15700         * tree-vect-slp.c (li_cost_vec_cmp): New.
15701         (vect_bb_slp_scalar_cost): Cost individual loop regions
15702         separately.  Account for the scalar instance root stmt.
15704 2021-02-05  Tom de Vries  <tdevries@suse.de>
15706         PR debug/98656
15707         * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
15708         argument.
15709         (bit_test_cluster::emit): Reuse location_t for newly created
15710         gswitch statement.
15711         (switch_decision_tree::try_switch_expansion): Preserve
15712         location_t.
15713         * tree-switch-conversion.h: Change function signatures.
15715 2021-02-05  Jakub Jelinek  <jakub@redhat.com>
15717         PR target/98957
15718         * config/i386/i386-options.c (m_NONE, m_ALL): Define.
15719         * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
15720         X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
15721         (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
15723 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15725         * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
15726         * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
15727         * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
15728         (vget_high_f16): Reimplement using new builtin.
15729         (vget_high_f32): Likewise.
15730         (vget_high_f64): Likewise.
15731         (vget_high_p8): Likewise.
15732         (vget_high_p16): Likewise.
15733         (vget_high_p64): Likewise.
15734         (vget_high_s8): Likewise.
15735         (vget_high_s16): Likewise.
15736         (vget_high_s32): Likewise.
15737         (vget_high_s64): Likewise.
15738         (vget_high_u8): Likewise.
15739         (vget_high_u16): Likewise.
15740         (vget_high_u32): Likewise.
15741         (vget_high_u64): Likewise.
15743 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15745         * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
15746         * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
15747         * config/aarch64/arm_neon.h (__GET_LOW): Delete.
15748         (vget_low_f16): Reimplement using new builtin.
15749         (vget_low_f32): Likewise.
15750         (vget_low_f64): Likewise.
15751         (vget_low_p8): Likewise.
15752         (vget_low_p16): Likewise.
15753         (vget_low_p64): Likewise.
15754         (vget_low_s8): Likewise.
15755         (vget_low_s16): Likewise.
15756         (vget_low_s32): Likewise.
15757         (vget_low_s64): Likewise.
15758         (vget_low_u8): Likewise.
15759         (vget_low_u16): Likewise.
15760         (vget_low_u32): Likewise.
15761         (vget_low_u64): Likewise.
15763 2021-02-05  Kito Cheng  <kito.cheng@sifive.com>
15765         * gcc.c (print_multilib_info): Check all required argument is provided
15766         by default arg.
15768 2021-02-05  liuhongt  <hongtao.liu@intel.com>
15770         PR target/98537
15771         * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
15772         generate integer mask comparison for 128/256-bits vector when
15773         op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
15774         delete redundant !maskcmp condition.
15775         (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
15776         here.
15777         (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
15778         condition directly to if (maskcmp), add extra check for
15779         cmpmode, it should be MODE_INT.
15780         (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
15781         parameters op_true/op_false.
15782         (ix86_use_mask_cmp_p): New.
15784 2021-02-05  liuhongt  <hongtao.liu@intel.com>
15786         PR target/98172
15787         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
15788         Remove m_GENERIC from ~list.
15789         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
15791 2021-02-04  David Malcolm  <dmalcolm@redhat.com>
15793         PR c/97932
15794         * diagnostic-show-locus.c (compatible_locations_p): Require
15795         locations in the same macro map to be either both from the
15796         macro definition, or both from the macro arguments.
15798 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
15800         * config/aarch64/aarch64-simd-builtins.def: Add
15801         [su]mull_hi_lane[q] builtin generator macros.
15802         * config/aarch64/aarch64-simd.md
15803         (aarch64_<su>mull_hi_lane<mode>_insn): Define.
15804         (aarch64_<su>mull_hi_lane<mode>): Define.
15805         (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
15806         (aarch64_<su>mull_hi_laneq<mode>): Define.
15807         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
15808         builtin instead of inline asm.
15809         (vmull_high_lane_s32): Likewise.
15810         (vmull_high_lane_u16): Likewise.
15811         (vmull_high_lane_u32): Likewise.
15812         (vmull_high_laneq_s16): Likewise.
15813         (vmull_high_laneq_s32): Likewise.
15814         (vmull_high_laneq_u16): Likewise.
15815         (vmull_high_laneq_u32): Liekwise.
15817 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
15819         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
15820         builtin generator macros.
15821         * config/aarch64/aarch64-simd.md
15822         (aarch64_<su>mull_hi_n<mode>_insn): Define.
15823         (aarch64_<su>mull_hi_n<mode>): Define.
15824         * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
15825         instead of inline asm.
15826         (vmull_high_n_s32): Likewise.
15827         (vmull_high_n_u16): Likewise.
15828         (vmull_high_n_u32): Likewise.
15830 2021-02-04  Richard Biener  <rguenther@suse.de>
15832         PR tree-optimization/98855
15833         * tree-vect-loop.c (vectorizable_phi): Do not cost
15834         single-argument PHIs.
15835         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
15836         * tree-vect-stmts.c (vectorizable_bswap): Also perform
15837         costing for SLP operation.
15839 2021-02-04  Martin Liska  <mliska@suse.cz>
15841         * doc/extend.texi: Mention -mprefer-vector-width in target
15842         attributes.
15844 2021-02-03  Martin Sebor  <msebor@redhat.com>
15846         PR tree-optimization/98937
15847         * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
15848         Flush pointer_query cache.
15850 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
15852         * config/rs6000/genfusion.pl (gen_2logical): Add missing
15853         fixes based on patch review.
15854         * config/rs6000/fusion.md: Regenerate file.
15856 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
15858         * config/rs6000/t-rs6000: Comment out auto generation of
15859         fusion.md for now.
15861 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
15863         * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
15864         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
15865         (output_file_start): Add gfx908.
15866         * config/gcn/gcn.opt (gpu_type): Add gfx908.
15867         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
15868         (MULTILIB_DIRNAMES): Add gfx908.
15869         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
15870         (main): Recognize gfx908.
15871         * config/gcn/t-omp-device: Add gfx908.
15873 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
15875         * config/aarch64/aarch64-simd-builtins.def: Add
15876         [su]mlsl_hi_lane[q] builtin macro generators.
15877         * config/aarch64/aarch64-simd.md
15878         (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
15879         (aarch64_<su>mlsl_hi_lane<mode>): Define.
15880         (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
15881         (aarch64_<su>mlsl_hi_laneq<mode>): Define.
15882         * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
15883         builtin instead of inline asm.
15884         (vmlsl_high_lane_s32): Likewise.
15885         (vmlsl_high_lane_u16): Likewise.
15886         (vmlsl_high_lane_u32): Likewise.
15887         (vmlsl_high_laneq_s16): Likewise.
15888         (vmlsl_high_laneq_s32): Likewise.
15889         (vmlsl_high_laneq_u16): Likewise.
15890         (vmlsl_high_laneq_u32): Likewise.
15891         (vmlal_high_laneq_u32): Likewise.
15893 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
15895         * config/aarch64/aarch64-simd-builtins.def: Add
15896         [su]mlal_hi_lane[q] builtin generator macros.
15897         * config/aarch64/aarch64-simd.md
15898         (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
15899         (aarch64_<su>mlal_hi_lane<mode>): Define.
15900         (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
15901         (aarch64_<su>mlal_hi_laneq<mode>): Define.
15902         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
15903         builtin instead of inline asm.
15904         (vmlal_high_lane_s32): Likewise.
15905         (vmlal_high_lane_u16): Likewise.
15906         (vmlal_high_lane_u32): Likewise.
15907         (vmlal_high_laneq_s16): Likewise.
15908         (vmlal_high_laneq_s32): Likewise.
15909         (vmlal_high_laneq_u16): Likewise.
15910         (vmlal_high_laneq_u32): Likewise.
15912 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
15914         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
15915         builtin generator macros.
15916         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
15917         Define.
15918         (aarch64_<su>mlsl_hi_n<mode>): Define.
15919         * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
15920         instead of inline asm.
15921         (vmlsl_high_n_s32): Likewise.
15922         (vmlsl_high_n_u16): Likewise.
15923         (vmlsl_high_n_u32): Likewise.
15925 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
15927         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
15928         builtin generator macros.
15929         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
15930         Define.
15931         (aarch64_<su>mlal_hi_n<mode>): Define.
15932         * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
15933         instead of inline asm.
15934         (vmlal_high_n_s32): Likewise.
15935         (vmlal_high_n_u16): Likewise.
15936         (vmlal_high_n_u32): Likewise.
15938 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
15940         * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
15941         generator macros.
15942         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
15943         Rename to...
15944         (aarch64_<su>mlal_hi<mode>_insn): This.
15945         (aarch64_<su>mlal_hi<mode>): Define.
15946         * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
15947         instead of inline asm.
15948         (vmlal_high_s16): Likewise.
15949         (vmlal_high_s32): Likewise.
15950         (vmlal_high_u8): Likewise.
15951         (vmlal_high_u16): Likewise.
15952         (vmlal_high_u32): Likewise.
15954 2021-02-03  Ilya Leoshkevich  <iii@linux.ibm.com>
15956         * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
15957         after calling alter_subreg() on a (mem).
15959 2021-02-03  Martin Liska  <mliska@suse.cz>
15961         PR lto/98912
15962         * lto-streamer-out.c (produce_lto_section): Fill up missing
15963         padding.
15964         * lto-streamer.h (struct lto_section): Add _padding field.
15966 2021-02-03  Richard Biener  <rguenther@suse.de>
15968         * lto-streamer.c (lto_get_section_name): Free temporary
15969         buffer.
15970         * tree-loop-distribution.c
15971         (loop_distribution::merge_dep_scc_partitions): Free edge data.
15973 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
15975         PR middle-end/97487
15976         * ifcvt.c (noce_can_force_operand): New function.
15977         (noce_emit_move_insn): Use it.
15978         (noce_try_sign_mask): Likewise.  Formatting fix.
15980 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
15982         PR middle-end/97971
15983         * lra-constraints.c (process_alt_operands): For inline asm, don't call
15984         fatal_insn, but instead return false.
15986 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
15988         PR tree-optimization/98287
15989         * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
15990         for V1DImode.
15992 2021-02-03  Tamar Christina  <tamar.christina@arm.com>
15994         PR tree-optimization/98928
15995         * tree-vect-loop.c (vect_analyze_loop_2): Change
15996         STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
15997         * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
15998         * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
15999         (class _stmt_vec_info): Add slp_vect_pattern_only_p.
16001 2021-02-02  Richard Biener  <rguenther@suse.de>
16003         * gimple-loop-interchange.cc (prepare_data_references):
16004         Release vectors.
16005         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
16006         * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
16007         * tree-vect-stmts.c (vectorizable_condition): Do not
16008         allocate vectors.
16009         (vectorizable_comparison): Likewise.
16011 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16013         * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
16014         * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
16015         * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
16016         (vrsqrteq_u32): Likewise.
16018 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16020         * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
16021         * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
16022         (aarch64_sqxtun2<mode>_be): Likewise.
16023         (aarch64_sqxtun2<mode>): Likewise.
16024         * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
16025         (vqmovun_high_s32): Likewise.
16026         (vqmovun_high_s64): Likewise.
16027         * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
16029 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16031         * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
16032         AUTO_FP flags.
16033         (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
16035 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16037         * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
16038         fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
16039         fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
16040         ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
16041         fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
16042         fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
16043         fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
16044         fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
16046 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16048         * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
16049         * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
16050         ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
16052 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16054         * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
16055         uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
16057 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16059         * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
16060         vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
16061         vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
16062         ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
16063         udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
16064         ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
16065         ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
16066         ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
16067         NONE builtin flags.
16069 2021-02-02  Jakub Jelinek  <jakub@redhat.com>
16071         PR tree-optimization/98848
16072         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
16073         STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
16075 2021-02-02  Kito Cheng  <kito.cheng@sifive.com>
16077         PR target/98743
16078         * expr.c: Check mode before calling store_expr.
16080 2021-02-02  Christophe Lyon  <christophe.lyon@linaro.org>
16082         * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
16083         (VORNQ): Remove.
16084         * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
16085         instruction using expression ior.
16086         (mve_vornq_u<mode>): New expander.
16087         (mve_vornq_f<mode>): Use ior code instead of unspec.
16088         * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
16090 2021-02-02  Alexandre Oliva  <oliva@adacore.com>
16092         * tree-nested.c (convert_nonlocal_reference_op): Move
16093         current_function_decl restore after re-gimplification.
16094         (convert_local_reference_op): Likewise.
16096 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16098         * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
16099         Define builtins.
16100         * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
16101         Define.
16102         (aarch64_rshrn<mode>_insn_be): Likewise.
16103         (aarch64_rshrn<mode>): Likewise.
16104         (aarch64_rshrn2<mode>_insn_le): Likewise.
16105         (aarch64_rshrn2<mode>_insn_be): Likewise.
16106         (aarch64_rshrn2<mode>): Likewise.
16107         * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
16108         * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
16109         using builtin.
16110         (vrshrn_high_n_s32): Likewise.
16111         (vrshrn_high_n_s64): Likewise.
16112         (vrshrn_high_n_u16): Likewise.
16113         (vrshrn_high_n_u32): Likewise.
16114         (vrshrn_high_n_u64): Likewise.
16115         (vrshrn_n_s16): Likewise.
16116         (vrshrn_n_s32): Likewise.
16117         (vrshrn_n_s64): Likewise.
16118         (vrshrn_n_u16): Likewise.
16119         (vrshrn_n_u32): Likewise.
16120         (vrshrn_n_u64): Likewise.
16122 2021-02-01  Sergei Trofimovich  <siarheit@google.com>
16124         PR tree-optimization/98499
16125         * ipa-modref.c (analyze_ssa_name_flags): treat RVO
16126         conservatively and assume all possible side-effects.
16128 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16130         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
16131         vec_unpacku_hi_): Define builtins.
16132         * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
16133         builtin.
16134         (vmovl_high_s16): Likewise.
16135         (vmovl_high_s32): Likewise.
16136         (vmovl_high_u8): Likewise.
16137         (vmovl_high_u16): Likewise.
16138         (vmovl_high_u32): Likewise.
16140 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16142         * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
16143         Define builtins.
16144         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
16145         pattern.
16146         * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
16147         UNSPEC_UABDL.
16148         * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
16149         builtin.
16150         (vabdl_s16): Likewise.
16151         (vabdl_s32): Likewise.
16152         (vabdl_u8): Likewise.
16153         (vabdl_u16): Likewise.
16154         (vabdl_u32): Likewise.
16155         * config/aarch64/iterators.md (ABDL): New int iterator.
16156         (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
16158 2021-02-01  Martin Sebor  <msebor@redhat.com>
16160         * tree.h (BLOCK_VARS): Add comment.
16161         (BLOCK_SUBBLOCKS): Same.
16162         (BLOCK_SUPERCONTEXT): Same.
16163         (BLOCK_ABSTRACT_ORIGIN): Same.
16164         (inlined_function_outer_scope_p): Same.
16166 2021-02-01  Martin Sebor  <msebor@redhat.com>
16168         PR middle-end/97172
16169         * attribs.c (attr_access::free_lang_data): Define new function.
16170         * attribs.h (attr_access::free_lang_data): Declare new function.
16172 2021-02-01  Richard Biener  <rguenther@suse.de>
16174         * vec.h (auto_vec::auto_vec): Add memory stat parameters
16175         and pass them on.
16176         * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
16178 2021-02-01  Tamar Christina  <tamar.christina@arm.com>
16180         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
16181         aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
16183 2021-02-01  Richard Biener  <rguenther@suse.de>
16185         PR rtl-optimization/98863
16186         * config/i386/i386-features.c (convert_scalars_to_vector):
16187         Set DF_RD_PRUNE_DEAD_DEFS.
16189 2021-01-31  Eric Botcazou  <ebotcazou@adacore.com>
16191         * system.h (SIZE_MAX): Define if not already defined.
16193 2021-01-30  Aaron Sawdey  <acsawdey@linux.ibm.com>
16195         * config/rs6000/genfusion.pl (gen_2logical): New function to
16196         generate patterns for logical-logical fusion.
16197         * config/rs6000/fusion.md: Regenerated patterns.
16198         * config/rs6000/rs6000-cpus.def: Add
16199         OPTION_MASK_P10_FUSION_2LOGICAL.
16200         * config/rs6000/rs6000.c (rs6000_option_override_internal):
16201         Enable logical-logical fusion for p10.
16202         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
16204 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
16206         * config/rs6000/rs6000.opt: Add periods to new AIX options.
16208 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
16210         * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
16211         (mabi=vec-default): New.
16212         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
16213         __EXTABI__ for AIX Vector extended ABI.
16214         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
16215         extabi info.
16216         (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
16217         are non-volatile.
16218         * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
16220 2021-01-30  Jakub Jelinek  <jakub@redhat.com>
16222         * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
16223         DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
16225 2021-01-29  Vladimir N. Makarov  <vmakarov@redhat.com>
16227         PR target/97701
16228         * lra-constraints.c (in_class_p): Don't narrow class only for REG
16229         or MEM.
16231 2021-01-29  Will Schmidt  <will_schmidt@vnet.ibm.com>
16233         * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
16234         clauses for CODE_FOR_vsx_xvcvuxddp_scale and
16235         CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
16237 2021-01-29  Andrew MacLeod  <amacleod@redhat.com>
16239         PR tree-optimization/98866
16240         * gimple-range-gori.h (gori_compute:set_range_invariant): New.
16241         * gimple-range-gori.cc (gori_map::set_range_invariant): New.
16242         (gori_map::m_maybe_invariant): Rename from all_outgoing.
16243         (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
16244         (gori_map::is_export_p): Ditto.
16245         (gori_map::calculate_gori): Ditto.
16246         (gori_compute::set_range_invariant): New.
16247         * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
16248         invariant for pointers evaluating to [1, +INF].
16250 2021-01-29  Richard Biener  <rguenther@suse.de>
16252         PR rtl-optimization/98863
16253         * config/i386/i386-features.c (remove_partial_avx_dependency):
16254         Do not perform DF analysis.
16255         (pass_data_remove_partial_avx_dependency): Remove
16256         TODO_df_finish.
16258 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
16260         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
16261         builtin generator macros.
16262         * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
16263         Define.
16264         * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
16265         instead of inline asm.
16266         (vmull_n_s32): Likewise.
16267         (vmull_n_u16): Likewise.
16268         (vmull_n_u32): Likewise.
16270 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16272         * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
16273         Define builtins.
16274         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
16275         Rename to...
16276         (aarch64_<sur>abdl2<mode>): ... This.
16277         (<sur>sadv16qi): Adjust use of above.
16278         * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
16279         builtin.
16280         (vabdl_high_s16): Likewise.
16281         (vabdl_high_s32): Likewise.
16282         (vabdl_high_u8): Likewise.
16283         (vabdl_high_u16): Likewise.
16284         (vabdl_high_u32): Likewise.
16286 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16288         * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
16289         builtin.
16290         (uabal2): Likewise.
16291         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
16292         pattern.
16293         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
16294         UNSPEC_UABAL2.
16295         * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
16296         builtin.
16297         (vabal_high_s16): Likewise.
16298         (vabal_high_s32): Likewise.
16299         (vabal_high_u8): Likewise.
16300         (vabal_high_u16): Likewise.
16301         (vabal_high_u32): Likewise.
16302         * config/aarch64/iterators.md (ABAL2): New mode iterator.
16303         (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
16305 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16307         * config/aarch64/aarch64-simd-builtins.def (sabal): Define
16308         builtin.
16309         (uabal): Likewise.
16310         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
16311         Rename to...
16312         (aarch64_<sur>abal<mode>): ... This
16313         (<sur>sadv16qi): Adust use of the above.
16314         * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
16315         builtin.
16316         (vabal_s16): Likewise.
16317         (vabal_s32): Likewise.
16318         (vabal_u8): Likewise.
16319         (vabal_u16): Likewise.
16320         (vabal_u32): Likewise.
16322 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16324         * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
16325         Define builtins.
16326         * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
16327         Define.
16328         * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
16329         builtin.
16330         (vaddlv_s16): Likewise.
16331         (vaddlv_u8): Likewise.
16332         (vaddlv_u16): Likewise.
16333         (vaddlvq_s8): Likewise.
16334         (vaddlvq_s16): Likewise.
16335         (vaddlvq_s32): Likewise.
16336         (vaddlvq_u8): Likewise.
16337         (vaddlvq_u16): Likewise.
16338         (vaddlvq_u32): Likewise.
16339         (vaddlv_s32): Likewise.
16340         (vaddlv_u32): Likewise.
16341         * config/aarch64/iterators.md (VDQV_L): New mode iterator.
16342         (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
16343         (Vwstype): New mode attribute.
16344         (Vwsuf): Likewise.
16345         (VWIDE_S): Likewise.
16346         (USADDLV): New int iterator.
16347         (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
16349 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
16351         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
16352         builtin generator macros.
16353         * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
16354         Define.
16355         * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
16356         instead of inline asm.
16357         (vmlsl_lane_s32): Likewise.
16358         (vmlsl_lane_u16): Likewise.
16359         (vmlsl_lane_u32): Likewise.
16360         (vmlsl_laneq_s16): Likewise.
16361         (vmlsl_laneq_s32): Likewise.
16362         (vmlsl_laneq_u16): Likewise.
16363         (vmlsl_laneq_u32): Likewise.
16365 2021-01-29  Richard Biener  <rguenther@suse.de>
16367         * doc/invoke.texi (--param max-gcse-memory): Document unit
16368         of size.
16369         * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
16370         * params.opt (--param max-gcse-memory): Adjust default and
16371         document unit of size.
16373 2021-01-29  Richard Biener  <rguenther@suse.de>
16375         PR rtl-optimization/98863
16376         * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
16377         HOST_WIDE_INT for the memory estimate.
16379 2021-01-29  Bin Cheng  <bin.cheng@linux.alibaba.com>
16380             Richard Biener  <rguenther@suse.de>
16382         PR tree-optimization/97627
16383         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
16384         Do not analyze fake edges.
16386 2021-01-29  Richard Biener  <rguenther@suse.de>
16388         PR rtl-optimization/98144
16389         * df.h (df_mir_bb_info): Add con_visited member.
16390         * df-problems.c (df_mir_alloc): Initialize con_visited,
16391         do not fully populate IN and OUT.
16392         (df_mir_reset): Likewise.
16393         (df_mir_confluence_0): Set con_visited.
16394         (df_mir_confluence_n): Properly handle implicitely
16395         fully populated IN and OUT as designated by con_visited
16396         and update con_visited accordingly.
16398 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
16400         PR target/98849
16401         * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
16402         vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
16403         && !TARGET_REALLY_IWMMXT to conditions.
16405 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
16407         PR debug/98331
16408         * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
16409         a BARRIER.
16411 2021-01-28  Marek Polacek  <polacek@redhat.com>
16413         PR c++/94775
16414         * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
16415         the main variant, maybe reset it in its variants too.
16416         * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
16417         (check_aligned_type): Check if TYPE_USER_ALIGN match.
16419 2021-01-28  Christophe Lyon  <christophe.lyon@linaro.org>
16421         PR target/98730
16422         * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
16423         of constant zero for comparisons.
16425 2021-01-28  Michael Meissner  <meissner@linux.ibm.com>
16427         * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
16428         support for mapping built-in function names for long double
16429         built-in functions if long double is IEEE 128-bit.
16431 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
16433         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
16434         builtin generator macros.
16435         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
16436         Define.
16437         * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
16438         instead of inline asm.
16439         (vmlsl_n_s32): Likewise.
16440         (vmlsl_n_u16): Likewise.
16441         (vmlsl_n_u32): Likewise.
16443 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
16445         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
16446         builtin generator macros.
16447         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
16448         Define.
16449         * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
16450         instead of inline asm.
16451         (vmlal_n_s32): Likewise.
16452         (vmlal_n_u16): Likewise.
16453         (vmlal_n_u32): Likewise.
16455 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16457         * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
16458         builtin.
16459         * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
16460         Define.
16461         (aarch64_shrn2<mode>_insn_be): Likewise.
16462         (aarch64_shrn2<mode>): Likewise.
16463         * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
16464         using builtins.
16465         (vshrn_high_n_s32): Likewise.
16466         (vshrn_high_n_s64): Likewise.
16467         (vshrn_high_n_u16): Likewise.
16468         (vshrn_high_n_u32): Likewise.
16469         (vshrn_high_n_u64): Likewise.
16471 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16473         * config/aarch64/aarch64-simd-builtins.def (shrn): Define
16474         builtin.
16475         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
16476         Define.
16477         (aarch64_shrn<mode>_insn_be): Likewise.
16478         (aarch64_shrn<mode>): Likewise.
16479         * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
16480         builtins.
16481         (vshrn_n_s32): Likewise.
16482         (vshrn_n_s64): Likewise.
16483         (vshrn_n_u16): Likewise.
16484         (vshrn_n_u32): Likewise.
16485         (vshrn_n_u64): Likewise.
16486         * config/aarch64/iterators.md (vn_mode): New mode attribute.
16488 2021-01-28  Richard Biener  <rguenther@suse.de>
16490         PR rtl-optimization/80960
16491         * dse.c (check_mem_read_rtx): Call get_addr on the
16492         offsetted address.
16494 2021-01-28  Xionghu Luo  <luoxhu@linux.ibm.com>
16495             David Edelsohn  <dje.gcc@gmail.com>
16497         PR target/98799
16498         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16499         Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
16500         when -m32.
16501         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
16502         Delete.
16503         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
16504         wrapper call rs6000_expand_vector_set_var for cleanup.  Call
16505         rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
16506         directly.
16507         (rs6000_expand_vector_set_var): Delete.
16508         (rs6000_expand_vector_set_var_p9): Make static.
16509         (rs6000_expand_vector_set_var_p8): Make static.
16511 2021-01-28  Xing GUO  <higuoxing@gmail.com>
16513         * common/config/riscv/riscv-common.c
16514         (riscv_subset_list::parsing_subset_version): Fix -march option parsing
16515         when `p` extension exists.
16517 2021-01-27  Vladimir N. Makarov  <vmakarov@redhat.com>
16519         PR rtl-optimization/97684
16520         * ira.c (ira): Call ira_set_pseudo_classes before
16521         update_equiv_regs when it is necessary.
16523 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
16525         PR target/98853
16526         * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
16527         %w0, %w1 and %2 instead of %0, %1 and %2.
16529 2021-01-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
16531         * config/rs6000/genfusion.pl: New script to generate
16532         define_insn_and_split patterns so combine can arrange fused
16533         instructions next to each other.
16534         * config/rs6000/fusion.md: New file, generated fused instruction
16535         patterns for combine.
16536         * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
16537         (non_update_memory_operand): New predicate.
16538         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
16539         OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
16540         POWERPC_MASKS.
16541         * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
16542         prototype.
16543         * config/rs6000/rs6000.c (rs6000_option_override_internal):
16544         Automatically set OPTION_MASK_P10_FUSION and
16545         OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
16546         (rs600_opt_masks): Allow -mpower10-fusion
16547         in function attributes.
16548         (address_is_non_pfx_d_or_x): New function.
16549         * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
16550         * config/rs6000/rs6000.md: Include fusion.md.
16551         * config/rs6000/rs6000.opt: Add -mpower10-fusion
16552         and -mpower10-fusion-ld-cmpi.
16553         * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
16555 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
16557         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
16558         builtin generator macros.
16559         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
16560         Rename to...
16561         (aarch64_<su>mlal<mode>): This.
16562         * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
16563         instead of inline asm.
16564         (vmlal_s16): Likewise.
16565         (vmlal_s32): Likewise.
16566         (vmlal_u8): Likewise.
16567         (vmlal_u16): Likewise.
16568         (vmlal_u32): Likewise.
16570 2021-01-27  Richard Biener  <rguenther@suse.de>
16572         PR tree-optimization/98854
16573         * tree-vect-slp.c (vect_build_slp_tree_2): Also build
16574         PHIs from scalars when the number of CTORs matches the
16575         number of children.
16577 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
16579         * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
16580         generator macro.
16581         * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
16582         Rename to...
16583         (aarch64_mls_n<mode>): This.
16584         * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
16585         instead of asm.
16586         (vmls_n_s32): Likewise.
16587         (vmls_n_u16): Likewise.
16588         (vmls_n_u32): Likewise.
16589         (vmlsq_n_s16): Likewise.
16590         (vmlsq_n_s32): Likewise.
16591         (vmlsq_n_u16): Likewise.
16592         (vmlsq_n_u32): Likewise.
16594 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
16596         * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
16597         generator macro.
16598         * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
16599         than asm.
16600         (vmls_s16): Likewise.
16601         (vmls_s32): Likewise.
16602         (vmls_u8): Likewise.
16603         (vmls_u16): Likewise.
16604         (vmls_u32): Likewise.
16605         (vmlsq_s8): Likewise.
16606         (vmlsq_s16): Likewise.
16607         (vmlsq_s32): Likewise.
16608         (vmlsq_u8): Likewise.
16609         (vmlsq_u16): Likewise.
16610         (vmlsq_u32): Likewise.
16612 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
16614         * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
16615         generator macro.
16616         * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
16617         Rename to...
16618         (aarch64_mla_n<mode>): This.
16619         * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
16620         instead of asm.
16621         (vmla_n_s32): Likewise.
16622         (vmla_n_u16): Likewise.
16623         (vmla_n_u32): Likewise.
16624         (vmlaq_n_s16): Likewise.
16625         (vmlaq_n_s32): Likewise.
16626         (vmlaq_n_u16): Likewise.
16627         (vmlaq_n_u32): Likewise.
16629 2021-01-27  liuhongt  <hongtao.liu@intel.com>
16631         PR target/98833
16632         * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
16633         (*sse2_eq<mode>3): Ditto.
16635 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
16637         * tree-pass.h (PROP_trees): Rename to ...
16638         (PROP_gimple): ... this.
16639         * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
16640         * passes.c (execute_function_dump, execute_function_todo,
16641         execute_one_ipa_transform_pass, execute_one_pass): Likewise.
16642         * varpool.c (ctor_for_folding): Likewise.
16644 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
16646         PR tree-optimization/97260
16647         * varpool.c: Include tree-pass.h.
16648         (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
16649         non-TREE_SIDE_EFFECTS automatic variables.
16651 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
16653         * doc/cpp.texi (__cplusplus): Document value for -std=c++23
16654         or -std=gnu++23.
16655         * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
16656         * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
16657         (gen_compile_unit_die): Recognise C++23.
16659 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
16661         PR bootstrap/98839
16662         * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
16663         in comparison.
16665 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
16667         PR target/98681
16668         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
16669         Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
16670         and INTVAL (mask).  Add && INTVAL (mask) > 0 condition.
16672 2021-01-26  Richard Biener  <rguenther@suse.de>
16674         * gimple-pretty-print.c (dump_binary_rhs): Handle
16675         VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
16677 2021-01-26  Richard Biener  <rguenther@suse.de>
16679         PR middle-end/98726
16680         * tree.h (vector_cst_int_elt): Remove.
16681         * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
16682         make static.
16684 2021-01-26  Andrew Stubbs  <ams@codesourcery.com>
16686         * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
16687         for V64DFmode min/max reductions.
16689 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
16691         * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
16692         as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
16693         two halves, one with x and the other with const0_rtx, ordered
16694         depending on endianity.
16696 2021-01-26  Alexandre Oliva  <oliva@adacore.com>
16698         * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
16699         temporaries not seen in binding block, and not about to be
16700         added as gimple variables.
16702 2021-01-25  Martin Sebor  <msebor@redhat.com>
16704         PR c++/98646
16705         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
16707 2021-01-25  Martin Liska  <mliska@suse.cz>
16709         * value-prof.c (get_nth_most_common_value): Use %s instead
16710         of %qs string.
16712 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
16714         PR debug/98811
16715         * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
16716         readelf -wi is able to read the emitted .debug_info back.
16717         * configure: Regenerated.
16719 2021-01-25  Martin Liska  <mliska@suse.cz>
16721         PR gcov-profile/98739
16722         * common.opt: Add missing sign symbol.
16723         * value-prof.c (get_nth_most_common_value): Restore handling
16724         of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
16725         PROFILE_REPRODUCIBILITY_MULTITHREADED.
16727 2021-01-25  Richard Biener  <rguenther@suse.de>
16729         PR middle-end/98807
16730         * tree.c (vector_element_bits): Always use precision of
16731         the element type for boolean vectors.
16733 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16735         * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
16736         (ENDFILE_SPEC): Evaluate qnolinkcmds.
16738 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16740         * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
16741         nostartfiles handling since this is already done by
16742         LINK_COMMAND_SPEC.  Evaluate qnolinkcmds.
16743         (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
16744         is already done by LINK_COMMAND_SPEC.
16745         (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
16746         this is already done by LINK_COMMAND_SPEC.  Remove qnolinkcmds
16747         evaluation.
16749 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
16751         PR testsuite/98771
16752         * fold-const-call.c (host_size_t_cst_p): Renamed to ...
16753         (size_t_cst_p): ... this.  Check and store unsigned HOST_WIDE_INT
16754         value rather than host size_t.
16755         (fold_const_call): Change type of s2 from size_t to
16756         unsigned HOST_WIDE_INT.  Use size_t_cst_p instead of
16757         host_size_t_cst_p.  For strncmp calls, pass MIN (s2, SIZE_MAX)
16758         instead of s2 as last argument.
16760 2021-01-25  Tamar Christina  <tamar.christina@arm.com>
16762         * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
16763         VCMLA_OP, VCMUL_OP): New.
16764         * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
16765         * config/arm/neon.md (cmul<conj_op><mode>3): New.
16766         * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
16767         UNSPEC_VCMUL_CONJ): New.
16768         * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
16769         cml<fcmac1><conj_op><mode>4): New.
16771 2021-01-23  Jakub Jelinek  <jakub@redhat.com>
16773         PR testsuite/97301
16774         * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
16776 2021-01-22  Jonathan Wright  <jonathan.wright@arm.com>
16778         * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
16779         generator macro.
16780         * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
16781         than asm.
16782         (vmla_s16): Likewise.
16783         (vmla_s32): Likewise.
16784         (vmla_u8): Likewise.
16785         (vmla_u16): Likewise.
16786         (vmla_u32): Likewise.
16787         (vmlaq_s8): Likewise.
16788         (vmlaq_s16): Likewise.
16789         (vmlaq_s32): Likewise.
16790         (vmlaq_u8): Likewise.
16791         (vmlaq_u16): Likewise.
16792         (vmlaq_u32): Likewise.
16794 2021-01-22  David Malcolm  <dmalcolm@redhat.com>
16796         * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
16797         directive.
16799 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
16801         PR debug/98796
16802         * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
16803         filenames to emit, still emit the required 0 index directory and
16804         filename entries that match DW_AT_comp_dir and DW_AT_name of the
16805         compilation unit.
16807 2021-01-22  Marek Polacek  <polacek@redhat.com>
16809         PR c++/98545
16810         * doc/invoke.texi: Update C++ ABI Version 15 description.
16812 2021-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16814         PR tree-optimization/98766
16815         * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
16816         comparing against type size with param_avoid_fma_max_bits.
16818 2021-01-22  Richard Biener  <rguenther@suse.de>
16820         PR middle-end/98793
16821         * tree.c (vector_element_bits): Key single-bit bool vector on
16822         integer mode rather than not vector mode.
16824 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
16826         PR target/98093
16827         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16828         Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
16829         platforms.
16830         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
16831         to call different path for P8 and P9.
16832         (rs6000_expand_vector_set_var_p9): New function.
16833         (rs6000_expand_vector_set_var_p8): New function.
16835 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
16837         PR target/79251
16838         PR target/98065
16839         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16840         Ajdust variable index vec_insert from address dereference to
16841         ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
16842         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
16843         New declaration.
16844         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
16846 2021-01-22  Martin Liska  <mliska@suse.cz>
16848         PR gcov-profile/98739
16849         * profile.c (compute_value_histograms): Drop time profile for
16850         -fprofile-reproducible=multithreaded.
16852 2021-01-22  Nathan Sidwell  <nathan@acm.org>
16854         * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
16855         existence here.
16857 2021-01-22  Richard Biener  <rguenther@suse.de>
16859         PR middle-end/98773
16860         * tree-data-ref.c (initalize_matrix_A): Revert previous
16861         change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
16863 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
16865         PR tree-optimization/90248
16866         * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
16867         X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
16868         simplifications.
16869         (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
16870         X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
16872 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
16874         PR tree-optimization/98255
16875         * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
16876         extend index - low_bound from sizetype's precision rather than index
16877         precision.
16878         (get_addr_base_and_unit_offset_1): Likewise.
16879         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
16880         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
16882 2021-01-22  Richard Biener  <rguenther@suse.de>
16884         PR tree-optimization/98786
16885         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
16886         adding new uses of abnormals.  Verify we deal with a conditional
16887         conversion.
16889 2021-01-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16891         PR target/98636
16892         * optc-save-gen.awk: Add arm_fp16_format to checked_options.
16894 2021-01-22  liuhongt  <hongtao.liu@intel.com>
16896         PR target/96891
16897         PR target/98348
16898         * config/i386/sse.md (VI_128_256): New mode iterator.
16899         (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
16900          *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
16901          *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
16902         define_insn_and_split to lower avx512 vector comparison to avx
16903         version when dest is vector.
16904         (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
16905         define_insn_and_split for negating the comparison result.
16906         * config/i386/predicates.md (float_vector_all_ones_operand):
16907         New predicate.
16908         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
16909         general NOT operator without UNSPEC_MASKOP.
16911 2021-01-21  Vladimir N. Makarov  <vmakarov@redhat.com>
16913         PR rtl-optimization/98777
16914         * lra-int.h (lra_pmode_pseudo): New extern.
16915         * lra.c (lra_pmode_pseudo): New global.
16916         (lra): Set it up.
16917         * lra-eliminations.c (eliminate_regs_in_insn): Use it.
16919 2021-01-21  Ilya Leoshkevich  <iii@linux.ibm.com>
16921         * fwprop.c (fwprop_propagation::classify_result): Allow
16922         (subreg (mem)) simplifications.
16924 2021-01-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16926         * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
16927         Split into...
16928         (aarch64_sqdmlal<mode>): ... This...
16929         (aarch64_sqdmlsl<mode>): ... And this.
16930         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
16931         (aarch64_sqdmlal_lane<mode>): ... This...
16932         (aarch64_sqdmlsl_lane<mode>): ... And this.
16933         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
16934         (aarch64_sqdmlsl_laneq<mode>): ... This...
16935         (aarch64_sqdmlal_laneq<mode>):  ... And this.
16936         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
16937         (aarch64_sqdmlsl_n<mode>): ... This...
16938         (aarch64_sqdmlal_n<mode>): ... And this.
16939         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
16940         (aarch64_sqdmlal2<mode>_internal): ... This...
16941         (aarch64_sqdmlsl2<mode>_internal): ... And this.
16943 2021-01-21  Christophe Lyon  <christophe.lyon@linaro.org>
16945         * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
16947 2021-01-21  Andrea Corallo  <andrea.corallo@arm.com>
16949         PR target/96372
16950         * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
16952 2021-01-21  liuhongt  <hongtao.liu@intel.com>
16954         PR rtl-optimization/98694
16955         * regcprop.c (copy_value): If SRC had been assigned a mode
16956         narrower than the copy, we can't link DEST into the chain even
16957         they have same hard_regno_nregs(i.e. HImode/SImode in i386
16958         backend).
16960 2021-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16962         * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
16963         Convert to define_insn_and_split.  Split into simple move when moving
16964         bottom element.
16966 2021-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
16968         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
16969         Adjust comment.  Simplify code.
16971 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
16973         PR debug/98765
16974         * dwarf2out.c (reset_indirect_string): Also reset indirect strings
16975         with DW_FORM_line_strp form.
16976         (prune_unused_types_update_strings): Don't add into debug_str_hash
16977         indirect strings with DW_FORM_line_strp form.
16978         (adjust_name_comp_dir): New function.
16979         (dwarf2out_finish): Call it on CU DIEs after resetting
16980         debug_line_str_hash.
16982 2021-01-20  Vladimir N. Makarov  <vmakarov@redhat.com>
16984         PR rtl-optimization/98722
16985         * lra-eliminations.c (eliminate_regs_in_insn): Check that target
16986         has no 3-op add insn to transform insns containing two pluses.
16988 2021-01-20  Richard Biener  <rguenther@suse.de>
16990         * hwint.h (add_hwi): New function.
16991         (mul_hwi): Likewise.
16992         * tree-data-ref.c (initialize_matrix_A): Properly translate
16993         tree constants and avoid HOST_WIDE_INT_MIN.
16994         (lambda_matrix_row_add): Avoid undefined integer overflow
16995         and return true on such overflow.
16996         (lambda_matrix_right_hermite): Handle overflow from
16997         lambda_matrix_row_add gracefully.  Simplify previous fix.
16998         (analyze_subscript_affine_affine): Likewise.
17000 2021-01-20  Eugene Rozenfeld  <erozen@microsoft.com>
17002         PR tree-optimization/96674
17003         * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
17004         x >= y && y != XXX_MIN --> x > y - 1
17006 2021-01-20  Richard Sandiford  <richard.sandiford@arm.com>
17008         PR tree-optimization/98535
17009         * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
17010         If the high and low permutes are the same, remove the high permutes
17011         from the working set and only continue with the low ones.
17013 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
17015         PR tree-optimization/98721
17016         * builtins.c (access_ref::inform_access): Don't assume
17017         SSA_NAME_IDENTIFIER must be non-NULL.  Print messages about
17018         object whenever allocfn is NULL, rather than only when DECL_P
17019         is true.  Use %qE instead of %qD for that.  Formatting fixes.
17021 2021-01-20  Richard Biener  <rguenther@suse.de>
17023         PR tree-optimization/98758
17024         * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
17025         (lambda_matrix_right_hermite): Avoid undefinedness with
17026         signed integer abs and multiplication.
17027         (analyze_subscript_affine_affine): Use lambda_int.
17029 2021-01-20  David Malcolm  <dmalcolm@redhat.com>
17031         PR debug/98751
17032         * dwarf2out.c (output_line_info): Rename static variable
17033         "generation", moving it out of the function to...
17034         (output_line_info_generation): New.
17035         (init_sections_and_labels): Likewise, renaming the variable to...
17036         (init_sections_and_labels_generation): New.
17037         (dwarf2out_c_finalize): Reset the new variables.
17039 2021-01-19  Martin Sebor  <msebor@redhat.com>
17041         PR middle-end/98664
17042         * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
17043         all functions, even if they're not declared artificial or inline.
17044         * tree.c (tree_inlined_location): Use macro expansion location
17045         only if scope traversal fails to expose one.
17047 2021-01-19  Richard Sandiford  <richard.sandiford@arm.com>
17049         PR rtl-optimization/92294
17050         * alias.c (compare_base_symbol_refs): Take an extra parameter
17051         and add the distance between two symbols to it.  Enshrine in
17052         comments that -1 means "either 0 or 1, but we can't tell
17053         which at compile time".
17054         (memrefs_conflict_p): Update call accordingly.
17055         (rtx_equal_for_memref_p): Likewise.  Take the distance between symbols
17056         into account.
17058 2021-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17060         * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
17061         sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
17062         uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
17063         sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
17064         sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
17065         sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
17066         sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
17067         sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
17068         sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
17069         uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
17070         sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
17071         sqmovun): Use NONE flags.
17073 2021-01-19  Richard Biener  <rguenther@suse.de>
17075         PR ipa/98330
17076         * ipa-modref.c (analyze_stmt): Only record a summary for a
17077         direct call.
17079 2021-01-19  Richard Biener  <rguenther@suse.de>
17081         PR middle-end/98638
17082         * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
17084 2021-01-19  Daniel Hellstrom  <daniel@gaisler.com>
17086         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
17087         built-in define __FIX_LEON3FT_TN0018.
17089 2021-01-19  Richard Biener  <rguenther@suse.de>
17091         PR ipa/97673
17092         * tree-inline.c (tree_function_versioning): Set input_location
17093         to UNKNOWN_LOCATION throughout the function.
17095 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
17097         PR fortran/98476
17098         * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
17100 2021-01-19  Martin Jambor  <mjambor@suse.cz>
17102         PR ipa/98690
17103         * ipa-sra.c (ssa_name_only_returned_p): New parameter fun.  Check
17104         whether non-call exceptions allow removal of a statement.
17105         (isra_analyze_call): Pass the appropriate function to
17106         ssa_name_only_returned_p.
17108 2021-01-19  Geng Qi  <gengqi@linux.alibaba.com>
17110         * config/riscv/arch-canonicalize (longext_sort): New function for
17111          sorting 'multi-letter'.
17112         * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
17113         'alts'. The 'arch' may not be the first of 'alts'.
17114         (_expand_combination): Add underline for the 'ext' without '*'.
17115         This is because, a single-letter extension can always be treated well
17116         with a '_' prefix, but it cannot be separated out if it is appended
17117         to a multi-letter.
17119 2021-01-18  Vladimir N. Makarov  <vmakarov@redhat.com>
17121         PR target/97847
17122         * ira.c (ira): Skip abnormal critical edge splitting.
17124 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
17126         PR tree-optimization/98727
17127         * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
17128         second .MUL_OVERFLOW operand for signed multiplication with overflow
17129         checking if the second operand of multiplication is not constant.
17131 2021-01-18  David Edelsohn  <dje.gcc@gmail.com>
17133         * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
17134         defaults to version 4.
17136 2021-01-18  David Malcolm  <dmalcolm@redhat.com>
17138         * attribs.h (fndecl_dealloc_argno): New decl.
17139         * builtins.c (call_dealloc_argno): Split out second half of
17140         function into...
17141         (fndecl_dealloc_argno): New.
17142         * doc/extend.texi (Common Function Attributes): Document the
17143         interaction between the analyzer and the malloc attribute.
17144         * doc/invoke.texi (Static Analyzer Options): Likewise.
17146 2021-01-17  David Edelsohn  <dje.gcc@gmail.com>
17148         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
17149         dwarf_version to 4.
17150         * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
17152 2021-01-17  Martin Jambor  <mjambor@suse.cz>
17154         PR ipa/98222
17155         * cgraph.c (clone_of_p): Check also former_clone_of as we climb
17156         the clone tree.
17158 2021-01-17  Mark Wielaard  <mark@klomp.org>
17160         * common.opt (gdwarf-): Init(5).
17161         * doc/invoke.texi (-gdwarf): Document default to 5.
17163 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
17165         * builtin-types.def
17166         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
17167         to...
17168         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
17169         ...this.  Add extra argument.
17170         * gimplify.c (omp_default_clause): Ensure that event handle is
17171         firstprivate in a task region.
17172         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
17173         (gimplify_adjust_omp_clauses): Likewise.
17174         * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
17175         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
17176         * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
17177         if detach clause specified.  Add detach argument when generating
17178         call to GOMP_task.
17179         * omp-low.c (scan_sharing_clauses): Setup data environment for detach
17180         clause.
17181         (finish_taskreg_scan): Move field for variable containing the event
17182         handle to the front of the struct.
17183         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH.  Fix
17184         ordering.
17185         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
17186         OMP_CLAUSE_DETACH clause.
17187         (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
17188         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
17189         * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
17190         Fix ordering.
17191         (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH.  Fix
17192         ordering.
17193         (walk_tree_1): Handle OMP_CLAUSE_DETACH.
17195 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17197         * config/nios2/t-rtems: Reset all MULTILIB_* variables.  Shorten
17198         multilib directory names.  Use MULTILIB_REQUIRED instead of
17199         MULTILIB_EXCEPTIONS.  Add -mhw-mul -mhw-mulx -mhw-div
17200         -mcustom-fpu-cfg=fph2 multilib.
17202 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17204         * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
17205         (nios2_init_fpu_configs): Provide register values for new
17206         -mcustom-fpu-cfg=fph2 option variant.
17207         * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
17208         variant.
17210 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17212         * config/nios2/nios2.c (nios2_custom_check_insns): Remove
17213         custom instruction warnings.
17215 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
17217         PR tree-optimization/96669
17218         * match.pd ((CST << x) & 1 -> x == 0): New simplification.
17220 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
17222         PR tree-optimization/96271
17223         * passes.def: Pass false argument to first two pass_cd_dce
17224         instances and true to last instance.  Add comment that
17225         last instance rewrites no longer addressed locals.
17226         * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
17227         initialize it.
17228         (pass_cd_dce::set_pass_param): New method.
17229         (pass_cd_dce::execute): Return TODO_update_address_taken from
17230         last cd_dce instance.
17232 2021-01-15  Carl Love  <cel@us.ibm.com>
17234         * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
17235         New defines.
17236         * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
17237         * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
17238         DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
17239         DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
17240         MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
17241         Add builtin define.
17242         (MULH, DIVE, MOD):  Add new BU_P10_OVERLOAD_2 definitions.
17243         * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
17244         VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
17245         New overloaded definitions.
17246         (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
17247         P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
17248         P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
17249         P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
17250         P10V_BUILTIN_MULHU_V4SI]: Add case
17251         statement for builtins.
17252         * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
17253         * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
17254         (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
17255         (vsx_mul_v2di): Add if TARGET_POWER10 statement.
17256         (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
17257         (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
17258         mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
17259         Add define_insn, mode is VIlong.
17260         * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
17261         Add builtin descriptions.
17263 2021-01-15  Eric Botcazou  <ebotcazou@adacore.com>
17265         * final.c (final_start_function_1): Reset force_source_line.
17267 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
17269         PR tree-optimization/96669
17270         * match.pd (((1 << A) & 1) != 0 -> A == 0,
17271         ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
17272         possibly different power of two constants and to right shift too.
17274 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
17276         PR tree-optimization/96681
17277         * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
17278         ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
17279         ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
17280         ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
17282 2021-01-15  Alexandre Oliva  <oliva@adacore.com>
17284         * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
17286 2021-01-15  Tamar Christina  <tamar.christina@arm.com>
17288         * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
17289         cmul<conj_op><mode>3): New.
17290         * config/aarch64/iterators.md (UNSPEC_FCMUL,
17291         UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
17292         UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
17293         FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
17294         sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
17295         (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
17296         (rot_op): Renamed to conj_op.
17297         * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
17298         cmul<conj_op><mode>3): New.
17299         * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
17300         cmul<conj_op><mode>3): New.
17302 2021-01-15  David Malcolm  <dmalcolm@redhat.com>
17304         PR bootstrap/98696
17305         * diagnostic.c
17306         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
17307         Escape the tempfile name when constructing the expected output.
17309 2021-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17311         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
17312         Rename to...
17313         (aarch64_<su>mlsl_hi<mode>): ... This.
17314         (aarch64_<su>mlsl_hi<mode>): Define.
17315         (*aarch64_<su>mlsl<mode): Rename to...
17316         (aarch64_<su>mlsl<mode): ... This.
17317         * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
17318         smlsl_hi, umlsl_hi): Define builtins.
17319         * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
17320         vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
17321         vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
17322         vmlsl_u16, vmlsl_u32): Reimplement with builtins.
17324 2021-01-15  Uroš Bizjak  <ubizjak@gmail.com>
17326         * config/i386/i386-c.c (ix86_target_macros):
17327         Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
17329 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
17331         PR target/88836
17332         * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
17333         * Makefile.in (RTL_SSA_H): New variable.
17334         * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
17335         * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
17336         * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
17337         pass_combine.
17338         * config/aarch64/aarch64-cc-fusion.cc: New file.
17340 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
17342         * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
17343         calling cancel_changes for changes that no longer exist.
17345 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
17347         * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
17348         (function_info::reg_defs): ...this.
17349         * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
17350         (function_info::reg_defs): ...this.
17352 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
17354         PR target/71233
17355         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
17357 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
17359         Revert:
17360         2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
17362         PR target/71233
17363         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
17365 2021-01-15  Richard Biener  <rguenther@suse.de>
17367         PR tree-optimization/96376
17368         * tree-vect-stmts.c (get_load_store_type): Disregard alignment
17369         for VMAT_INVARIANT.
17371 2021-01-15  Martin Liska  <mliska@suse.cz>
17373         * doc/install.texi: Document that some tests need pytest module.
17374         * doc/sourcebuild.texi: Likewise.
17376 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
17378         PR target/71233
17379         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
17381 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
17383         * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
17384         (mve_vshrq_n_u<mode>_imm): Likewise.
17385         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
17386         * config/arm/vec-common.md: ... here.
17388 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
17390         * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
17391         vec-commond.md.
17392         * config/arm/neon.md (vashl<mode>3): Delete.
17393         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
17394         (vasl<mode>3): New expander.
17396 2021-01-15  Richard Biener  <rguenther@suse.de>
17398         PR tree-optimization/98685
17399         * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
17400         of vector extern defs.
17402 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
17404         PR jit/98586
17405         * diagnostic.c (diagnostic_kind_text): Break out this array
17406         from...
17407         (diagnostic_build_prefix): ...here.
17408         (fancy_abort): Detect when diagnostic_initialize has not yet been
17409         called and fall back to a minimal implementation of printing the
17410         ICE, rather than segfaulting in internal_error.
17412 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
17414         * diagnostic.c (diagnostic_initialize): Eliminate
17415         parseable_fixits_p in favor of initializing extra_output_kind from
17416         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
17417         (convert_column_unit): New function, split out from...
17418         (diagnostic_converted_column): ...this.
17419         (print_parseable_fixits): Add "column_unit" and "tabstop" params.
17420         Use them to call convert_column_unit on the column values.
17421         (diagnostic_report_diagnostic): Eliminate conditional on
17422         parseable_fixits_p in favor of a switch statement on
17423         extra_output_kind, passing the appropriate values to the new
17424         params of print_parseable_fixits.
17425         (selftest::test_print_parseable_fixits_none): Update for new
17426         params of print_parseable_fixits.
17427         (selftest::test_print_parseable_fixits_insert): Likewise.
17428         (selftest::test_print_parseable_fixits_remove): Likewise.
17429         (selftest::test_print_parseable_fixits_replace): Likewise.
17430         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
17431         New.
17432         (selftest::diagnostic_c_tests): Call it.
17433         * diagnostic.h (enum diagnostics_extra_output_kind): New.
17434         (diagnostic_context::parseable_fixits_p): Delete field in favor
17435         of...
17436         (diagnostic_context::extra_output_kind): ...this new field.
17437         * doc/invoke.texi (Environment Variables): Add
17438         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
17439         * opts.c (common_handle_option): Update handling of
17440         OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
17441         fields.
17443 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
17445         * tree-vect-slp-patterns.c (class complex_operations_pattern,
17446         complex_operations_pattern::matches,
17447         complex_operations_pattern::recognize,
17448         complex_operations_pattern::build): New.
17449         (slp_patterns): Use it.
17451 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
17453         * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
17454         * optabs.def (cmls_optab, cmls_conj_optab): New.
17455         * doc/md.texi: Document them.
17456         * tree-vect-slp-patterns.c (class complex_fms_pattern,
17457         complex_fms_pattern::matches, complex_fms_pattern::recognize,
17458         complex_fms_pattern::build): New.
17460 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
17462         * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
17463         * optabs.def (cmla_optab, cmla_conj_optab): New.
17464         * doc/md.texi: Document them.
17465         * tree-vect-slp-patterns.c (vect_match_call_p,
17466         class complex_fma_pattern, vect_slp_reset_pattern,
17467         complex_fma_pattern::matches, complex_fma_pattern::recognize,
17468         complex_fma_pattern::build): New.
17470 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
17472         * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
17473         * optabs.def (cmul_optab, cmul_conj_optab): New.
17474         * doc/md.texi: Document them.
17475         * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
17476         vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
17477         vect_build_combine_node, class complex_mul_pattern,
17478         complex_mul_pattern::matches, complex_mul_pattern::recognize,
17479         complex_mul_pattern::build): New.
17481 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
17483         * tree-vect-slp.c (optimize_load_redistribution_1): New.
17484         (optimize_load_redistribution, vect_is_slp_load_node): New.
17485         (vect_match_slp_patterns): Use it.
17487 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
17489         * tree-vect-slp-patterns.c (complex_add_pattern::build):
17490         Elide nodes.
17492 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
17494         * config/gcn/mkoffload.c (main): Create an offload image only in
17495         64-bit configurations.
17497 2021-01-14  H.J. Lu  <hjl.tools@gmail.com>
17499         PR target/98667
17500         * config/i386/i386-options.c (ix86_option_override_internal):
17501         Issue an error for -fcf-protection with CF_BRANCH when compiling
17502         for 32-bit non-TARGET_CMOV targets.
17504 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
17506         PR target/98671
17507         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
17508         Remove declaration and initialization of shadow variable "ret".
17509         (ix86_option_override_internal): Remove delcaration of
17510         shadow variable "i".  Redeclare shadowed variable to unsigned.
17511         * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
17512         * config/i386/i386-builtins.c (get_builtin_code_for_version):
17513         Update for redeclaration.
17514         * config/i386/i386.h (pta_size): Ditto.
17516 2021-01-14  Richard Biener  <rguenther@suse.de>
17518         PR tree-optimization/98674
17519         * tree-data-ref.c (base_supports_access_fn_components_p): New.
17520         (initialize_data_dependence_relation): For two bases without
17521         possible access fns resort to type size equality when determining
17522         shape compatibility.
17524 2021-01-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17526         PR target/66791
17527         * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
17528         <=, >= operators in vcle and vcge intrinsics respectively.
17529         * config/arm/arm_neon_builtins.def: Remove entry for
17530         vcge and vcgeu.
17532 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
17534         PR target/98671
17535         * config/i386/i386-options.c (ix86_function_specific_save):
17536         Remove redundant assignment to opts->x_ix86_branch_cost.
17537         * config/i386/i386.c (ix86_prefetch_sse):
17538         Rename from x86_prefetch_sse.  Update all uses.
17539         * config/i386/i386.h: Update for rename.
17540         * config/i386/i386-options.h: Ditto.
17542 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
17544         PR target/98670
17545         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
17546         *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
17547         Use Bm instead of m for non-avx.  Add isa attribute.
17549 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
17551         PR tree-optimization/96688
17552         * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
17553         ~X can be simplified.
17555 2021-01-14  Richard Sandiford  <richard.sandiford@arm.com>
17557         * tree-vect-stmts.c (vect_model_load_cost): Account for unused
17558         IFN_LOAD_LANES results.
17560 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17562         * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
17563         Define.
17564         (aarch64_xtn<mode>): Likewise.
17565         * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
17566         Define
17567         builtins.
17568         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
17569         builtin.
17570         (vmovl_s16): Likewise.
17571         (vmovl_s32): Likewise.
17572         (vmovl_u8): Likewise.
17573         (vmovl_u16): Likewise.
17574         (vmovl_u32): Likewise.
17575         (vmovn_s16): Likewise.
17576         (vmovn_s32): Likewise.
17577         (vmovn_s64): Likewise.
17578         (vmovn_u16): Likewise.
17579         (vmovn_u32): Likewise.
17580         (vmovn_u64): Likewise.
17582 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17584         * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
17585         Define.
17586         (aarch64_<su>qxtn2<mode>_be): Likewise.
17587         (aarch64_<su>qxtn2<mode>): Likewise.
17588         * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
17589         Define builtins.
17590         * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
17591         (su): Handle ss_truncate and us_truncate.
17592         * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
17593         builtin.
17594         (vqmovn_high_s32): Likewise.
17595         (vqmovn_high_s64): Likewise.
17596         (vqmovn_high_u16): Likewise.
17597         (vqmovn_high_u32): Likewise.
17598         (vqmovn_high_u64): Likewise.
17600 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17602         * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
17603         Define.
17604         (aarch64_xtn2<mode>_be): Likewise.
17605         (aarch64_xtn2<mode>): Likewise.
17606         * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
17607         builtins.
17608         * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
17609         builtins.
17610         (vmovn_high_s32): Likewise.
17611         (vmovn_high_s64): Likewise.
17612         (vmovn_high_u16): Likewise.
17613         (vmovn_high_u32): Likewise.
17614         (vmovn_high_u64): Likewise.
17616 2021-01-13  Stafford Horne  <shorne@gmail.com>
17618         * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
17620 2021-01-13  Stafford Horne  <shorne@gmail.com>
17622         * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
17624 2021-01-13  Stafford Horne  <shorne@gmail.com>
17626         * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
17627           define for __or1k_hard_float__.
17629 2021-01-13  Stafford Horne  <shorne@gmail.com>
17631         * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
17632         (PROFILE_HOOK): Define to call _mcount.
17633         (FUNCTION_PROFILER): Change from abort to no-op.
17635 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
17637         PR tree-optimization/96691
17638         * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
17639         (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
17640         (~D ^ C) or (D ^ C) can be simplified.
17642 2021-01-13  Richard Biener  <rguenther@suse.de>
17644         PR tree-optimization/92645
17645         * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
17646         until after vector lowering.
17648 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
17650         * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
17651         to SVE_I.
17652         (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
17653         (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
17655 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
17657         * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
17658         to SVE_I.
17659         (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
17660         (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
17662 2021-01-13  Richard Biener  <rguenther@suse.de>
17664         PR tree-optimization/92645
17665         * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
17666         BIT_FIELD_REF argument.
17667         (vect_build_slp_tree_2): Record the desired vector type
17668         on the external vector def.
17669         (vectorizable_slp_permutation): Handle required punning
17670         of existing vector defs.
17672 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
17674         * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
17676 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
17678         * config/sh/sh.md (movsf_ie): Remove operands[2] test.
17680 2021-01-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17682         * config.gcc [$target == *-*-gnu*]: Enable
17683         'default_gnu_indirect_function'.
17685 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
17687         PR target/95905
17688         * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
17689         registers before calling targetm.vectorize.vec_perm_const, only after
17690         that.
17691         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
17692         two argument permutation when one operand is zero vector and only
17693         after that force operands into registers.
17694         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
17695         define_insn_and_split pattern.
17696         (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
17697         (*avx512f_zero_extendv16hiv16si2_1): Likewise.
17698         (*avx2_zero_extendv8hiv8si2_1): Likewise.
17699         (*avx512f_zero_extendv8siv8di2_1): Likewise.
17700         (*avx2_zero_extendv4siv4di2_1): Likewise.
17701         * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
17702         into registers.
17703         * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
17704         * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
17705         * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
17706         * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
17707         * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
17708         * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise.  Use std::swap.
17710 2021-01-13  Martin Liska  <mliska@suse.cz>
17712         PR tree-optimization/98455
17713         * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
17714         Record also virtual PHIs.
17715         (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
17716         conditionally.
17718 2021-01-13  Jonathan Wakely  <jwakely@redhat.com>
17720         * doc/invoke.texi (C++ Modules): Fix typos.
17722 2021-01-13  Richard Biener  <rguenther@suse.de>
17724         PR tree-optimization/98640
17725         * tree-ssa-sccvn.c (visit_nary_op): Do not try to
17726         handle plus or minus from a truncated operand to be
17727         sign-extended.
17729 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
17731         PR target/96938
17732         * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
17733         define_insn_and_split patterns.
17734         (splitter after *btr<mode>_2): New splitter.
17736 2021-01-13  Martin Liska  <mliska@suse.cz>
17738         PR ipa/98652
17739         * cgraphunit.c (analyze_functions): Remove dead code.
17741 2021-01-13  Qian Jianhua  <qianjh@cn.fujitsu.com>
17743         * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
17744         * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
17745         (a64fx_regmove_cost, a64fx_vector_cost): New.
17746         (a64fx_tunings): Use the new added cost tables.
17748 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
17750         PR target/95905
17751         * config/i386/predicates.md (pmovzx_parallel): New predicate.
17752         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
17753         define_insn_and_split pattern.
17754         (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
17755         (*sse4_1_zero_extendv2siv2di2_3): Likewise.
17757 2021-01-13  Julian Brown  <julian@codesourcery.com>
17759         * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
17760         to fix v0 register.
17762 2021-01-13  Julian Brown  <julian@codesourcery.com>
17764         * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
17765         on entry to a BB.
17767 2021-01-13  Julian Brown  <julian@codesourcery.com>
17769         * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
17770         for reciprocal-approximation instructions.
17771         (div<mode>3): Use fused multiply-accumulate operations for reciprocal
17772         refinement and division result.
17773         * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
17775 2021-01-13  Julian Brown  <julian@codesourcery.com>
17777         * config/gcn/gcn-valu.md (subdf): Rename to...
17778         (subdf3): This.
17780 2021-01-12  Martin Liska  <mliska@suse.cz>
17782         * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
17784 2021-01-12  Andrea Corallo  <andrea.corallo@arm.com>
17786         * function-abi.h: Fix typo.
17788 2021-01-12  Christophe Lyon  <christophe.lyon@linaro.org>
17790         PR target/97875
17791         PR target/97875
17792         * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
17793         (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
17794         (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
17795         (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
17796         (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
17797         (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
17798         (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
17799         (ARM_HAVE_NEON_V2DI_LDST): Likewise.
17800         (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
17801         (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
17802         (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
17803         (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
17804         (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
17805         (ARM_HAVE_V2DI_LDST): Likewise.
17806         * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
17807         (*movmisalign<mode>_mve_load): New pattern.
17808         * config/arm/neon.md (movmisalign<mode>): Move to ...
17809         * config/arm/vec-common.md: ... here.
17811 2021-01-12  Vladimir N. Makarov  <vmakarov@redhat.com>
17813         PR target/97969
17814         * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
17815         of pattern 'plus (plus (hard reg, const), pseudo)'.
17817 2021-01-12  Richard Biener  <rguenther@suse.de>
17819         PR tree-optimization/98550
17820         * tree-vect-slp.c (vect_record_max_nunits): Check whether
17821         the group size is a multiple of the vector element count.
17822         (vect_build_slp_tree_1): When we need to fail because
17823         the vector type choosen causes unrolling do so lazily
17824         without affecting matches only at the end to guide group splitting.
17826 2021-01-12  Martin Liska  <mliska@suse.cz>
17828         PR c++/97284
17829         * optc-save-gen.awk: Compare also n_target_save vars with
17830         strcmp.
17832 2021-01-12  Martin Liska  <mliska@suse.cz>
17834         * gcov.c (source_info::debug): New.
17835         (print_usage): Add --debug (-D) option.
17836         (process_args): Likewise.
17837         (generate_results): Call src->debug after
17838         accumulate_line_counts.
17839         (read_graph_file): Properly assign id for EXIT_BLOCK.
17840         * profile.c (branch_prob): Dump function body before it is
17841         instrumented.
17843 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
17845         PR tree-optimization/98629
17846         * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
17847         unless returning non-zero.
17849 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
17851         PR tree-optimization/95731
17852         * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
17853         x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
17854         (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
17855         only after optimize_range_tests_var_bound.
17857 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
17859         * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
17860         * configure: Regenerated.
17862 2021-01-12  liuhongt  <hongtao.liu@intel.com>
17864         PR target/98612
17865         * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
17866         Deleted.
17867         * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
17868         dead code.
17870 2021-01-12  Alexandre Oliva  <oliva@adacore.com>
17872         * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
17873         declare.
17874         (auto_end_imm_use_stmt_traverse): New struct.
17875         (FOR_EACH_IMM_USE_STMT): Use it.
17876         (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
17877         along with uses...
17878         * gimple-ssa-strength-reduction.c: ... here, ...
17879         * graphite-scop-detection.c: ... here, ...
17880         * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
17881         * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
17882         * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
17883         * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
17884         * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
17885         * tree-vect-slp.c: ... and here, ...
17886         * doc/tree-ssa.texi: ... and the example here.
17888 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
17890         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
17891         SVE_FULL_I to SVE_I.  Generate an UNSPEC_PRED_X.
17892         (*sdiv_pow2<mode>3): New pattern.
17893         (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
17894         Wrap the ASRD in an UNSPEC_PRED_X.
17895         (*cond_<sve_int_op><mode>_2): Likewise.  Replace the UNSPEC_PRED_X
17896         predicate with a constant PTRUE, if it isn't already.
17897         (*cond_<sve_int_op><mode>_z): Replace with...
17898         (*cond_<sve_int_op><mode>_any): ...this new pattern.
17900 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
17902         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
17903         SVE_FULL_I to SVE_I.
17904         (*cond_bic<mode>_any): Likewise.
17906 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
17908         * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
17909         (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
17910         to SVE_I.
17912 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
17914         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
17915         SVE_FULL_I to SVE_I.
17916         (*aarch64_cond_<su>abd<mode>_2): Likewise.
17917         (*aarch64_cond_<su>abd<mode>_any): Likewise.
17918         (@aarch64_pred_<su>abd<mode>): Likewise.  Use UNSPEC_PRED_X
17919         for the max and min but not for the minus.
17920         (*aarch64_cond_<su>abd<mode>_3): New pattern.
17922 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
17924         * config/aarch64/iterators.md (SVE_24I): New iterator.
17925         * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
17926         SVE_FULL_SDI to SVE_24I.  Use containers rather than elements.
17928 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
17930         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
17931         (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
17932         to SVE_I.
17933         (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
17934         (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
17935         (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
17936         (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
17938 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
17940         * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
17941         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
17942         (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
17943         to SVE_I.
17945 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
17947         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
17948         (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
17949         (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
17951 2021-01-11  Martin Liska  <mliska@suse.cz>
17953         PR jit/98615
17954         * symtab-clones.h (clone_info::release): Release
17955         symtab::m_clones with ggc_delete as it's a GGC memory.
17957 2021-01-11  Matthias Klose  <doko@ubuntu.com>
17959         * Makefile.in (LINK_PROGRESS): Show the link target.
17961 2021-01-11  Richard Biener  <rguenther@suse.de>
17963         PR tree-optimization/91403
17964         * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
17965         single-element interleaving group size at 4096 elements.
17967 2021-01-11  Richard Biener  <rguenther@suse.de>
17969         PR tree-optimization/98526
17970         * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
17971         of the actual reduction op for the regular case.
17972         (vectorizable_reduction): Cost the stmts
17973         vect_transform_reduction produces here.
17975 2021-01-11  Andreas Krebbel  <krebbel@linux.ibm.com>
17977         * tree-ssa-forwprop.c (simplify_vector_constructor): For
17978         big-endian, use UNPACK[_FLOAT]_HI.
17980 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
17982         * tree-vect-slp-patterns.c (class complex_pattern,
17983         class complex_add_pattern): Add parameters to matches.
17984         (complex_add_pattern::build): Free memory.
17985         (complex_add_pattern::matches): Move validation end of match.
17986         (complex_add_pattern::recognize): Likewise.
17988 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
17990         * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
17992 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
17994         * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
17996 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
17998         PR tree-optimization/95867
17999         * tree-ssa-math-opts.h: New header.
18000         * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
18001         (powi_as_mults): No longer static.  Use build_one_cst instead of
18002         build_real.  Formatting fix.
18003         * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
18004         (attempt_builtin_powi): Handle multiplication reassociation without
18005         powi_fndecl using powi_as_mults.
18006         (reassociate_bb): For integral types don't require
18007         -funsafe-math-optimizations to call attempt_builtin_powi.
18009 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
18011         PR tree-optimization/95852
18012         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
18013         mul_stmts parameter type to vec<gimple *> &.  Before cond_stmt
18014         allow in the bb any of the stmts in that vector, div_stmt and
18015         up to 3 cast stmts.
18016         (arith_cast_equal_p): New function.
18017         (arith_overflow_check_p): Add cast_stmt argument, handle signed
18018         multiply overflow checks.
18019         (match_arith_overflow): Adjust caller.  Handle signed multiply
18020         overflow checks.
18022 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
18024         PR tree-optimization/95852
18025         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
18026         (uaddsub_overflow_check_p): Renamed to ...
18027         (arith_overflow_check_p): ... this.  Handle also multiplication
18028         with overflow check.
18029         (match_uaddsub_overflow): Renamed to ...
18030         (match_arith_overflow): ... this.  Add cfg_changed argument.  Handle
18031         also multiplication with overflow check.  Adjust function comment.
18032         (math_opts_dom_walker::after_dom_children): Adjust callers.  Call
18033         match_arith_overflow also for MULT_EXPR.
18035 2021-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18037         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
18038         __builtin_convertvector.
18039         (vmovl_s16): Likewise.
18040         (vmovl_s32): Likewise.
18041         (vmovl_u8): Likewise.
18042         (vmovl_u16): Likewise.
18043         (vmovl_u32): Likewise.
18044         (vmovn_s16): Likewise.
18045         (vmovn_s32): Likewise.
18046         (vmovn_s64): Likewise.
18047         (vmovn_u16): Likewise.
18048         (vmovn_u32): Likewise.
18049         (vmovn_u64): Likewise.
18051 2021-01-11  Martin Liska  <mliska@suse.cz>
18053         * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
18054         (if_chain::is_beneficial): Delete clusters
18055         (find_conditions): Make second argument of conditions_in_bbs a
18056         pointer so that we control over it's lifetime.
18057         (pass_if_to_switch::execute): Delete them.
18059 2021-01-11  Kewen Lin  <linkw@linux.ibm.com>
18061         * ira.c (move_unallocated_pseudos): Check other_reg and skip if
18062         it isn't set.
18064 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
18066         * config/vax/vax.md (cc): Remove mode attribute.
18067         (subst_<cc>, subst_f<cc>): Rename to...
18068         (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
18069         (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
18070         (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
18071         (*branch_<mode>, *branch_<mode>_reversed): Likewise.
18073 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
18075         * config/vax/vax.md (subst_f<cc>): Add mode to operands and
18076         `const_double_zero'.
18078 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
18080         * config/pdp11/pdp11.md (PDPfp): New mode iterator.
18081         (fcc_cc, fcc_ccnz): Use it.  Add mode to `const_double_zero' and
18082         operands.
18084 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
18086         * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
18087         rtx.
18088         * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
18089         with `const_double_zero'.
18090         * doc/rtl.texi (Constant Expression Types): Document it.
18092 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
18094         PR c++/98556
18095         * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
18096         POINTER_DIFF_EXPR to be any integral type.
18098 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
18100         PR rtl-optimization/98603
18101         * function.c (instantiate_virtual_regs_in_insn): For asm goto
18102         with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
18103         if any, set ASM_OPERANDS mode to VOIDmode and change
18104         ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
18106 2021-01-09  Alexandre Oliva  <oliva@gnu.org>
18108         PR debug/97714
18109         * final.c (notice_source_line): Narrow down the condition to
18110         skip a line-0 marker.
18112 2021-01-08  Sergei Trofimovich  <siarheit@google.com>
18114         * ipa-modref.c (merge_call_side_effects): Fix
18115         linebreak split by reordering two print calls.
18117 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
18119         * config/s390/vector.md (*tf_to_fprx2_0): Rename from
18120         "*mov_tf_to_fprx2_0" for consistency, fix constraint.
18121         (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
18122         consistency, fix constraint.
18124 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
18126         * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
18127         callables instead of mask values.
18128         (struct target_flag_set_p): New predicate.
18129         (s390_cpu_cpp_builtins_internal): Define or undefine
18130         __LONG_DOUBLE_VX__ macro.
18132 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
18134         PR target/98482
18135         * config/i386/i386.c (x86_function_profiler): Use R10 and R11
18136         to call mcount in large model with PIC for NO_PROFILE_COUNTERS
18137         targets.
18139 2021-01-08  Richard Biener  <rguenther@suse.de>
18141         * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
18143 2021-01-08  Richard Biener  <rguenther@suse.de>
18145         * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
18146         (vect_build_slp_tree): On cache hit release the matched
18147         scalar stmts vector.
18148         * tree-vect-stmts.c (vectorizable_store): Properly free
18149         vec_oprnds before possibly gathering them again.
18151 2021-01-08  Richard Biener  <rguenther@suse.de>
18153         PR tree-optimization/98544
18154         * tree-vect-slp.c (vect_optimize_slp): Always materialize
18155         permutes at a permute node.
18157 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
18159         PR target/98482
18160         * config/i386/i386.c (x86_function_profiler): Use R10 to call
18161         mcount in large model.  Sorry for large model with PIC.
18163 2021-01-08  Jakub Jelinek  <jakub@redhat.com>
18165         PR target/98585
18166         * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
18167         ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
18168         ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
18169         TargetSave and initialize for variables with enum types.
18170         (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
18171         mstack-protector-guard-symbol=): Add Save.
18172         * config/i386/i386-options.c (ix86_function_specific_save,
18173         ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
18174         x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
18175         x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
18176         x_ix86_veclibabi_type.
18178 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
18180         * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
18181         SVE_FULL_I to SVE_I.
18182         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
18184 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
18186         * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
18187         SVE_FULL_I to SVE_I.
18188         (*cond_uxt<mode>_any): Likewise.
18190 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18192         * config/aarch64/iterators.md (Vwhalf): New iterator.
18193         * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
18194         Rename to...
18195         (aarch64_<sur>adalp<mode>): ... This.  Make more
18196         builtin-friendly.
18197         (<sur>sadv16qi): Adjust callsite of the above.
18198         * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
18199         builtins.
18200         * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
18201         builtins.
18202         (vpadal_s16): Likewise.
18203         (vpadal_u8): Likewise.
18204         (vpadal_u16): Likewise.
18205         (vpadalq_s8): Likewise.
18206         (vpadalq_s16): Likewise.
18207         (vpadalq_s32): Likewise.
18208         (vpadalq_u8): Likewise.
18209         (vpadalq_u16): Likewise.
18210         (vpadalq_u32): Likewise.
18212 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18214         * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
18215         Rename to...
18216         (aarch64_<su>abd<mode>): ... This.
18217         (<sur>sadv16qi): Adjust callsite of the above.
18218         * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
18219         builtins.
18220         * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
18221         builtin.
18222         (vabd_s16): Likewise.
18223         (vabd_s32): Likewise.
18224         (vabd_u8): Likewise.
18225         (vabd_u16): Likewise.
18226         (vabd_u32): Likewise.
18227         (vabdq_s8): Likewise.
18228         (vabdq_s16): Likewise.
18229         (vabdq_s32): Likewise.
18230         (vabdq_u8): Likewise.
18231         (vabdq_u16): Likewise.
18232         (vabdq_u32): Likewise.
18234 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18236         * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
18237         builtins.
18238         * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
18239         (vaba_s16): Likewise.
18240         (vaba_s32): Likewise.
18241         (vaba_u8): Likewise.
18242         (vaba_u16): Likewise.
18243         (vaba_u32): Likewise.
18244         (vabaq_s8): Likewise.
18245         (vabaq_s16): Likewise.
18246         (vabaq_s32): Likewise.
18247         (vabaq_u8): Likewise.
18248         (vabaq_u16): Likewise.
18249         (vabaq_u32): Likewise.
18251 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18253         * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
18254         (aarch64_<su>aba<mode>): ... This.  Handle uaba as well.
18255         Change RTL pattern to match.
18257 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
18259         * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
18260         * config/riscv/riscv-c.c (riscv-subset.h): New.
18261         (INCLUDE_STRING): Define.
18262         (riscv_cpu_cpp_builtins): Add new style architecture extension
18263         test macros.
18264         * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
18265         (riscv_subset_list::end): New.
18266         (riscv_current_subset_list): New.
18268 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
18270         * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
18271         Move to riscv-subset.h.
18272         (struct riscv_subset_t): Ditto.
18273         (class riscv_subset_list): Ditto.
18274         * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
18275         from riscv-common.c.
18276         (struct riscv_subset_t): Ditto.
18277         (class riscv_subset_list): Ditto.
18278         * config/riscv/t-riscv ($(common_out_file)): Add file
18279         dependency.
18281 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
18283         PR target/98567
18284         * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
18285         New define_insn patterns.
18287 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
18289         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
18290         (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
18291         (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
18293 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
18295         PR tree-optimization/98560
18296         * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
18297         * internal-fn.c (vec_cond_mask_direct): Get the data mode from
18298         argument 1.
18299         (vec_cond_direct): Likewise argument 2.
18300         (vec_condu_direct, vec_condeq_direct): Delete.
18301         (expand_vect_cond_optab_fn): Rename to...
18302         (expand_vec_cond_optab_fn): ...this, replacing old macro.
18303         (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
18304         (expand_vect_cond_mask_optab_fn): Rename to...
18305         (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
18306         (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
18307         convert optab.
18308         (direct_vec_cond_optab_supported_p): Likewise.
18309         (direct_vec_condu_optab_supported_p): Delete.
18310         (direct_vec_condeq_optab_supported_p): Delete.
18311         * gimple-isel.cc: Include internal-fn.h.
18312         (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
18313         before using it.
18315 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
18317         PR tree-optimization/98560
18318         * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
18319         IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
18321 2021-01-07  Uroš Bizjak  <ubizjak@gmail.com>
18323         * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
18324         rotate_insn and optab code attributes.
18325         Update all uses to merged code attribute.
18326         * config/i386/sse.md: Update all uses to merged code attribute.
18327         * config/i386/mmx.md: Update all uses to merged code attribute.
18329 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
18331         PR tree-optimization/98568
18332         * gimple-ssa-store-merging.c (bswap_view_convert): New function.
18333         (bswap_replace): Use it.
18335 2021-01-06  Vladimir N. Makarov  <vmakarov@redhat.com>
18337         PR rtl-optimization/97978
18338         * lra-int.h (lra_hard_reg_split_p): New external.
18339         * lra.c (lra_hard_reg_split_p): New global.
18340         (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
18341         * lra-assigns.c (lra_assign): Don't check allocation correctness
18342         after hard reg splitting.
18344 2021-01-06  Martin Sebor  <msebor@redhat.com>
18346         PR c++/98305
18347         * builtins.c (new_delete_mismatch_p): New overload.
18348         (new_delete_mismatch_p (tree, tree)): Call it.
18350 2021-01-06  Alexandre Oliva  <oliva@adacore.com>
18352         * Makefile.in (T_GLIMITS_H): New.
18353         (stmp-int-hdrs): Depend on it, use it.
18354         * config/t-vxworks (T_GLIMITS_H): Override it.
18355         (vxw-glimits.h): New.
18357 2021-01-06  Richard Biener  <rguenther@suse.de>
18359         PR tree-optimization/98513
18360         * value-range.cc (intersect_ranges): Compare the upper bounds
18361         for the expected relation.
18363 2021-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
18365         Revert:
18366         2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
18368         * doc/standards.texi (HSAIL): Remove section.
18370 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18372         * configure: Re-generate.
18374 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
18376         * doc/invoke.texi (-std=c++20): Adjust for the publication of
18377         ISO 14882:2020 standard.
18378         * doc/standards.texi: Likewise.
18380 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
18382         PR tree-optimization/94802
18383         * expr.h (maybe_optimize_sub_cmp_0): Declare.
18384         * expr.c: Include tree-pretty-print.h and flags.h.
18385         (maybe_optimize_sub_cmp_0): New function.
18386         (do_store_flag): Use it.
18387         * cfgexpand.c (expand_gimple_cond): Likewise.
18389 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
18391         * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
18392         * rtlanal.c (simple_regno_set): Tweak description to clarify the
18393         RMW condition.
18395 2021-01-05  Richard Biener  <rguenther@suse.de>
18397         PR tree-optimization/98516
18398         * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
18399         lanes when materializing on a VEC_PERM node.
18400         (vectorizable_slp_permutation): Dump the permute properly.
18402 2021-01-05  Richard Biener  <rguenther@suse.de>
18404         * tree-vect-slp.c (vect_slp_region): Move debug counter
18405         to cover individual subgraphs.
18407 2021-01-05  Richard Biener  <rguenther@suse.de>
18409         PR tree-optimization/98428
18410         * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
18411         vector lane extracts for loop vectorization.
18413 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
18415         PR tree-optimization/98514
18416         * tree-ssa-reassoc.c (bb_rank): Change type from long * to
18417         int64_t *.
18418         (operand_rank): Change type from hash_map<tree, long> to
18419         hash_map<tree, int64_t>.
18420         (phi_rank): Change return type from long to int64_t.
18421         (loop_carried_phi): Change block_rank variable type from long to
18422         int64_t.
18423         (propagate_rank): Change return type, rank parameter type and
18424         op_rank variable type from long to int64_t.
18425         (find_operand_rank): Change return type from long to int64_t
18426         and change slot variable type from long * to int64_t *.
18427         (insert_operand_rank): Change rank parameter type from long to
18428         int64_t.
18429         (get_rank): Change return type and rank variable type from long to
18430         int64_t.  Use PRId64 instead of ld to print the rank.
18431         (init_reassoc): Change rank variable type from long to int64_t
18432         and adjust correspondingly bb_rank and operand_rank initialization.
18434 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
18436         PR tree-optimization/96928
18437         * tree-ssa-phiopt.c (xor_replacement): New function.
18438         (tree_ssa_phiopt_worker): Call it.
18440 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
18442         PR tree-optimization/96930
18443         * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
18444         from narrower value which has the same type as 1 << B, perform
18445         the right shift on the narrower value followed by extension.
18447 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
18449         PR tree-optimization/96239
18450         * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
18451         function.
18452         (get_status_for_store_merging): Don't return BB_INVALID for blocks
18453         with potential bswap optimizable CONSTRUCTORs.
18454         (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
18455         if possible.
18457 2021-01-05  Richard Biener  <rguenther@suse.de>
18459         PR tree-optimization/98381
18460         * tree.c (vector_element_bits): Properly compute bool vector
18461         element size.
18462         * tree-vect-loop.c (vectorizable_live_operation): Properly
18463         compute the last lane bit offset.
18465 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
18467         PR target/98522
18468         * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
18469         Clear the top 64 bytes of the input XMM register.
18470         (sse_cvttps2pi): Ditto.
18472 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
18474         PR target/98521
18475         * config/i386/xopintrin.h (_mm256_cmov_si256): New.
18477 2021-01-05  H.J. Lu  <hjl.tools@gmail.com>
18479         PR target/98495
18480         * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
18481         short first.
18483 2021-01-05  Claudiu Zissulescu  <claziss@synopsys.com>
18485         * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
18486         (umaddsidi4_split): Likewise.
18488 2021-01-05  liuhongt  <hongtao.liu@intel.com>
18490         PR target/98461
18491         * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
18492         define_insn_and_split for zero_extend of subreg HI of pmovskb
18493         result.
18494         (*sse2_pmovskb_zexthisi): Add new combine splitters for
18495         zero_extend of not of subreg HI of pmovskb result.
18497 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
18499         PR target/97269
18500         * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
18501         nested in CONSTs.
18502         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
18503         convert_memory_address to convert symbolic immediates to ptr_mode
18504         before forcing them to memory.
18506 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
18508         PR rtl-optimization/97144
18509         * recog.c (constrain_operands): Initialize matching_operand
18510         for each alternative, rather than only doing it once.
18512 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
18514         PR rtl-optimization/98403
18515         * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
18516         why we don't remove call clobbers.
18517         (function_info::apply_changes_to_insn): Don't attempt to add
18518         call clobbers here.
18520 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
18522         PR tree-optimization/98371
18523         * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
18524         (vect_analyze_loop): If an epilogue loop appears to be cheaper
18525         than the main loop, re-analyze it as a main loop before adopting
18526         it as a main loop.
18528 2021-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18530         PR c++/98316
18531         * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
18532         * aclocal.m4, configure: Regenerate.
18533         * Makefile.in (NETLIBS): Define.
18534         (BACKEND): Remove $(CODYLIB).
18536 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
18538         PR rtl-optimization/98334
18539         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
18540         Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
18542 2021-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18544         * tree-inline.c (expand_call_inline): Restore input_location.
18545         Return result from recursive call.
18547 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
18549         PR tree-optimization/95401
18550         * config/aarch64/aarch64-sve-builtins.cc
18551         (gimple_folder::load_store_cookie): Use bits rather than bytes
18552         for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
18553         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
18554         * tree-vect-stmts.c (vectorizable_store): Likewise.
18555         (vectorizable_load): Likewise.
18557 2021-01-04  Richard Biener  <rguenther@suse.de>
18559         PR tree-optimization/98308
18560         * tree-vect-stmts.c (vectorizable_load): Set invariant mask
18561         SLP vectype.
18563 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
18565         PR tree-optimization/95771
18566         * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
18567         with precision smaller than int's precision and types with precision
18568         twice as large as long long.  Formatting fixes.
18570 2021-01-04  Richard Biener  <rguenther@suse.de>
18572         PR tree-optimization/98464
18573         * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
18574         (vn_valueize_wrapper): ... this.  Temporarily adjust vn_context_bb.
18575         (process_bb): Adjust.
18577 2021-01-04  Matthew Malcomson  <matthew.malcomson@arm.com>
18579         PR other/98437
18580         * doc/invoke.texi (-fsanitize=address): Fix wording describing
18581         clash with -fsanitize=hwaddress.
18583 2021-01-04  Richard Biener  <rguenther@suse.de>
18585         PR tree-optimization/98282
18586         * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
18587         invariants as VN_NARY.
18589 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
18591         PR target/89057
18592         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
18593         aarch64_simd_reg_or_zero for operand 2.  Use the combinez patterns
18594         to handle zero operands.
18596 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
18598         * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
18599         (offset_6bit_unsigned_scaled_p): Fix typo in comment.
18600         (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
18601         [-32, 31].
18603 2021-01-04  Richard Biener  <rguenther@suse.de>
18605         PR tree-optimization/98393
18606         * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
18607         when hitting the limit.
18609 2021-01-04  Richard Biener  <rguenther@suse.de>
18611         PR tree-optimization/98291
18612         * tree-vect-loop.c (vectorizable_reduction): Bypass
18613         associativity check for SLP reductions with VF 1.
18615 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
18617         PR tree-optimization/96782
18618         * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
18620 2021-01-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18622         * collect-utils.c (collect_execute): Check dumppfx.
18623         * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
18624         to collect_execute.
18625         (do_link): Add new parameter atsuffix.
18626         (main): Handle -dumpdir option.  Skip one argument for
18627         -o, -isystem and -B options.
18628         * gcc.c (make_at_file): New helper function.
18629         (close_at_file): Use it.
18631 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
18633         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
18634         Amend handling for LD64_VERSION fallback defaults.
18636 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
18638         * config.gcc: Compute default version information
18639         from the configured target.  Likewise defaults for
18640         ld64.
18641         * config/darwin10.h: Removed.
18642         * config/darwin12.h: Removed.
18643         * config/darwin9.h: Removed.
18644         * config/rs6000/darwin8.h: Removed.
18646 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
18648         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
18650 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
18652         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
18653         * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
18655 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
18657         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
18658         here...
18659         * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
18661 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
18663         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
18664         for the Darwin10 unwinder stub from here ...
18665         * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
18667 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
18669         * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
18670         (ASM_DEBUG_SPEC):Only define if the assembler supports
18671         stabs.
18672         (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
18673         (DARWIN_PREFER_DWARF): Define.
18674         * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
18675         (DARWIN_PREFER_DWARF): Likewise
18676         (DSYMUTIL_SPEC): Likewise.
18677         (COLLECT_RUN_DSYMUTIL): Likewise.
18678         (ASM_DEBUG_SPEC): Likewise.
18679         (ASM_DEBUG_OPTION_SPEC): Likewise.
18681 2021-01-02  Jan Hubicka  <jh@suse.cz>
18683         * cfg.c (free_block): ggc_free bb.
18685 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
18687         * gcc.c (process_command): Update copyright notice dates.
18688         * gcov-dump.c (print_version): Ditto.
18689         * gcov.c (print_version): Ditto.
18690         * gcov-tool.c (print_version): Ditto.
18691         * gengtype.c (create_file): Ditto.
18692         * doc/cpp.texi: Bump @copying's copyright year.
18693         * doc/cppinternals.texi: Ditto.
18694         * doc/gcc.texi: Ditto.
18695         * doc/gccint.texi: Ditto.
18696         * doc/gcov.texi: Ditto.
18697         * doc/install.texi: Ditto.
18698         * doc/invoke.texi: Ditto.
18700 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
18702         * ChangeLog-2020: Rotate ChangeLog.  New file.
18705 Copyright (C) 2021 Free Software Foundation, Inc.
18707 Copying and distribution of this file, with or without modification,
18708 are permitted in any medium without royalty provided the copyright
18709 notice and this notice are preserved.