Don't warn when alignment of global common data exceeds maximum alignment.
[official-gcc.git] / gcc / ChangeLog
blob69fdc627b552ee3596954fc51dd21df48ffe08eb
1 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
3         * configure.ac (thread-local storage support): Remove tls_first_major
4         and tls_first_minor.  Use "$conftest_s" to check support.
5         * configure: Regenerate.
7 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
9         * configure.ac: Fixup formatting.
11 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
14         * configure.ac: ... update all callers.
16 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
18         PR target/91602
19         * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
20         (gcc_GAS_VERSION_GTE_IFELSE): Remove.
21         (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
22         * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
23         Remove remaining checks for in-tree assembler.
24         * configure: Regenerate.
26 2021-08-20  Jeff Law  <jlaw@localhost.localdomain>
28         * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
29         by 15 bits for H8/300H and H8/S.  Improve logical shifts by 12
30         bits for H8/S.
31         (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
32         H8/300H.  Improve arithmetic shift right by 15 bits for H8/S.
33         Improve logical shifts by 27 bits for H8/S.
34         (get_shift_alg): Corresponding changes.
35         (h8300_option_override): Revert to loops for -Os when profitable.
37 2021-08-20  Richard Biener  <rguenther@suse.de>
39         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
40         BBs.
41         (vect_analyze_data_ref_accesses): Likewise.  Assign the BB
42         index as group_id when dataref_groups were not computed.
43         * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
44         we advace to the next BB.
46 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
48         * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
49         builtins.
51 2021-08-20  Martin Liska  <mliska@suse.cz>
53         PR gcov-profile/89961
54         * gcov.c (make_gcov_file_name): Rewrite using std::string.
55         (mangle_name): Simplify, do not used the second argument.
56         (strip_extention): New function.
57         (get_md5sum): Likewise.
58         (get_gcov_intermediate_filename): Handle properly -p and -x
59         options.
60         (output_gcov_file): Use string type.
61         (generate_results): Likewise.
62         (md5sum_to_hex): Remove.
64 2021-08-20  Michael Meissner  <meissner@linux.ibm.com>
66         * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
67         (UNSPEC_XXSPLTIW): Move to vsx.md.
68         (UNSPEC_XXSPLTID): Move to vsx.md.
69         (UNSPEC_XXSPLTI32DX): Move to vsx.md.
70         (UNSPEC_XXBLEND): Move to vsx.md.
71         (UNSPEC_XXPERMX): Move to vsx.md.
72         (VM3): Move to vsx.md.
73         (VM3_char): Move to vsx.md.
74         (xxspltiw_v4si): Move to vsx.md.
75         (xxspltiw_v4sf): Move to vsx.md.
76         (xxspltiw_v4sf_inst): Move to vsx.md.
77         (xxspltidp_v2df): Move to vsx.md.
78         (xxspltidp_v2df_inst): Move to vsx.md.
79         (xxsplti32dx_v4si_inst): Move to vsx.md.
80         (xxsplti32dx_v4sf): Move to vsx.md.
81         (xxsplti32dx_v4sf_inst): Move to vsx.md.
82         (xxblend_<mode>): Move to vsx.md.
83         (xxpermx): Move to vsx.md.
84         (xxpermx_inst): Move to vsx.md.
85         * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
86         (UNSPEC_XXSPLTIW): Move from altivec.md.
87         (UNSPEC_XXSPLTID): Move from altivec.md.
88         (UNSPEC_XXSPLTI32DX): Move from altivec.md.
89         (UNSPEC_XXBLEND): Move from altivec.md.
90         (UNSPEC_XXPERMX): Move from altivec.md.
91         (VM3): Move from altivec.md.
92         (VM3_char): Move from altivec.md.
93         (xxspltiw_v4si): Move from altivec.md.
94         (xxspltiw_v4sf): Move from altivec.md.
95         (xxspltiw_v4sf_inst): Move from altivec.md.
96         (xxspltidp_v2df): Move from altivec.md.
97         (xxspltidp_v2df_inst): Move from altivec.md.
98         (xxsplti32dx_v4si_inst): Move from altivec.md.
99         (xxsplti32dx_v4sf): Move from altivec.md.
100         (xxsplti32dx_v4sf_inst): Move from altivec.md.
101         (xxblend_<mode>): Move from altivec.md.
102         (xxpermx): Move from altivec.md.
103         (xxpermx_inst): Move from altivec.md.
105 2021-08-19  Roger Sayle  <roger@nextmovesoftware.com>
107         * tree-vect-generic.c (expand_vector_operations_1): Use either
108         gimplify_build1 or gimplify_build2 instead of gimple_build_assign
109         when constructing scalar splat expressions.
111 2021-08-19  Peter Bergner  <bergner@linux.ibm.com>
113         PR target/101849
114         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
115         pointer to __vector_pair *.
117 2021-08-19  Martin Sebor  <msebor@redhat.com>
119         * gimple-range.cc: Add comments.
120         * gimple-range.h: Same.
122 2021-08-19  Martin Sebor  <msebor@redhat.com>
124         PR middle-end/101984
125         * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
126         disable_ranger.
128 2021-08-19  Jeff Law  <jlaw@localhost.localdomain>
130         * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
131         (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
132         * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
134 2021-08-19  Jakub Jelinek  <jakub@redhat.com>
136         PR middle-end/101950
137         * optabs.c (expand_clrsb_using_clz): New function.
138         (expand_unop): Use it as another clrsb expansion fallback.
140 2021-08-19  liuhongt  <hongtao.liu@intel.com>
142         Revert:
143         2021-07-28  liuhongt  <hongtao.liu@intel.com>
145         PR target/99881
146         * config/i386/i386.h (processor_costs): Add new member
147         integer_to_sse.
148         * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
149         i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
150         geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
151         bdver_cost, znver1_cost, znver2_cost, znver3_cost,
152         btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
153         nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
154         generic_cost, core_cost): Initialize integer_to_sse same value
155         as sse_op.
156         (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
157         * config/i386/i386.c (ix86_builtin_vectorization_cost):
158         Use integer_to_sse instead of sse_op to calculate the cost of
159         vec_construct.
161 2021-08-18  Iain Sandoe  <iain@sandoe.co.uk>
163         * config.gcc: Include rpath.opt for Darwin.
164         * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
166 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
168         PR bootstrap/101959
169         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
170         Use an 'int_hash'.
172 2021-08-18  Jonathan Wright  <jonathan.wright@arm.com>
174         * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
175         pattern and type cast.
176         (vld4_lane_f32): Use float RTL pattern.
177         (vld4q_lane_f64): Use float type cast.
179 2021-08-18  Jan Hubicka  <hubicka@ucw.cz>
181         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
182         EAF_NOREAD.
184 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
186         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
187         (test_map_of_type_with_ctor_and_dtor_expand): Add function.
188         (hash_map_tests_c_tests): Call it.
190 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
192         * ggc.h (enum ggc_collect): New.
193         (ggc_collect): Use it.
194         * ggc-page.c: Adjust.
195         * ggc-common.c: Likewise.
196         * ggc-tests.c: Likewise.
197         * read-rtl-function.c: Likewise.
198         * selftest-run-tests.c: Likewise.
199         * doc/gty.texi (Invoking the garbage collector): Likewise.
201 2021-08-18  liuhongt  <hongtao.liu@intel.com>
203         PR target/97147
204         * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
205         New macro.
206         * config/i386/sse.md (*sse3_haddv2df3_low): Add
207         TARGET_V2DF_REDUCTION_PREFER_HADDPD.
208         (*sse3_hsubv2df3_low): Ditto.
209         * config/i386/x86-tune.def
210         (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
212 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
214         * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
215         (gori_compute::compute_operand_range): Add tracing.
216         (gori_compute::logical_combine): Ditto.
217         (gori_compute::compute_logical_operands): Ditto.
218         (gori_compute::compute_operand1_range): Ditto.
219         (gori_compute::compute_operand2_range): Ditto.
220         (gori_compute::outgoing_edge_range_p): Ditto.
221         * gimple-range-gori.h (class gori_compute): Add range_tracer.
223 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
225         * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
226         * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
227         * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
228         * params.opt (--param=evrp-mode): Adjust options.
230 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
232         * Makefile.in (OBJS): Add gimple-range-trace.o.
233         * gimple-range-cache.h (enable_new_values): Remove unused prototype.
234         * gimple-range-fold.cc: Adjust headers.
235         * gimple-range-trace.cc: New.
236         * gimple-range-trace.h: New.
237         * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
238         (gimple_ranger::range_of_expr): Add tracing.
239         (gimple_ranger::range_on_entry): Ditto.
240         (gimple_ranger::range_on_exit): Ditto.
241         (gimple_ranger::range_on_edge): Ditto.
242         (gimple_ranger::fold_range_internal): Ditto.
243         (gimple_ranger::dump_bb): Do not calculate edge range twice.
244         (trace_ranger::*): Remove.
245         (enable_ranger): Never create a trace_ranger.
246         (debug_seed_ranger): Move to gimple-range-trace.cc.
247         (dump_ranger): Ditto.
248         (debug_ranger): Ditto.
249         * gimple-range.h: Include gimple-range-trace.h.
250         (range_on_entry, range_on_exit): No longer virtual.
251         (class trace_ranger): Remove.
252         (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
254 2021-08-17  Martin Sebor  <msebor@redhat.com>
256         PR middle-end/101854
257         * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
258         in gimple-ssa-warn-access.cc.
259         * calls.c (alloc_max_size): Move code to check_alloca.
260         (get_size_range): Move to pointer-query.cc.
261         (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
262         (get_attr_nonstring_decl): Move to tree.c.
263         (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
264         (append_attrname): Same.
265         (maybe_warn_rdwr_sizes): Same.
266         (initialize_argument_information): Move code to
267         gimple-ssa-warn-access.cc.
268         * calls.h (maybe_warn_alloc_args_overflow): Move to
269         gimple-ssa-warn-access.h.
270         (get_attr_nonstring_decl): Move to tree.h.
271         (maybe_warn_nonstring_arg):  Move to gimple-ssa-warn-access.h.
272         (enum size_range_flags): Move to pointer-query.h.
273         (get_size_range): Same.
274         * gimple-ssa-warn-access.cc (has_location): Remove unused overload
275         to avoid Clang -Wunused-function.
276         (get_size_range): Declare static.
277         (maybe_emit_free_warning): Rename...
278         (maybe_check_dealloc_call): ...to this for consistency.
279         (class pass_waccess): Add members.
280         (pass_waccess::~pass_waccess): Defined.
281         (alloc_max_size): Move here from calls.c.
282         (maybe_warn_alloc_args_overflow): Same.
283         (check_alloca): New function.
284         (check_alloc_size_call): New function.
285         (check_strncat): Handle another warning flag.
286         (pass_waccess::check_builtin): Handle alloca.
287         (fntype_argno_type): Move here from calls.c.
288         (append_attrname): Same.
289         (maybe_warn_rdwr_sizes): Same.
290         (pass_waccess::check_call): Define.
291         (check_nonstring_args): New function.
292         (pass_waccess::check): Call new member functions.
293         (pass_waccess::execute): Enable ranger.
294         * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
295         (maybe_warn_nonstring_arg): Same.
296         * gimple-ssa-warn-restrict.c: Remove #include.
297         * pointer-query.cc (get_size_range): Move here from calls.c.
298         * pointer-query.h (enum size_range_flags): Same.
299         (get_size_range): Same.
300         * tree.c (get_attr_nonstring_decl): Move here from calls.c.
301         * tree.h (get_attr_nonstring_decl): Move here from calls.h.
303 2021-08-17  Thomas Schwinge  <thomas@codesourcery.com>
305         * ggc.h (ggc_collect): Add 'force_collect' parameter.
306         * ggc-page.c (ggc_collect): Use that one instead of global
307         'ggc_force_collect'.  Adjust all users.
308         * doc/gty.texi (Invoking the garbage collector): Update.
309         * ggc-internal.h (ggc_force_collect): Remove.
310         * ggc-common.c (ggc_force_collect): Likewise.
311         * selftest.h (forcibly_ggc_collect): Remove.
312         * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
313         * read-rtl-function.c (test_loading_labels): Adjust.
314         * selftest-run-tests.c (run_tests): Likewise.
316 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
318         * config/darwin.c (darwin_file_end): Reset and reclaim the
319         section names table at the end of compile.
321 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
323         PR target/100340
324         * config.in: Regenerate.
325         * config/i386/darwin.h (EXTRA_ASM_OPTS): New
326         (ASM_SPEC): Pass options to disable branch shortening where
327         needed.
328         * configure: Regenerate.
329         * configure.ac: Detect versions of 'as' that support the
330         optimisation which has the bug.
332 2021-08-17  Richard Biener  <rguenther@suse.de>
334         * optabs-query.c (supports_vec_gather_load_p): Also check
335         for masked optabs.
336         (supports_vec_scatter_store_p): Likewise.
337         * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
338         back to masked variants if non-masked are not supported.
339         * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
340         When we need to use masked gather/scatter but do not have
341         a mask set up a constant true one.
342         * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
343         non-SSA_NAME masks.
345 2021-08-17  Roger Sayle  <roger@nextmovesoftware.com>
347         * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
348         algorithm as PLUS_EXPR to improve subtraction bit bounds.
349         [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
351 2021-08-17  Roger Sayle  <roger@nextmovesoftware.com>
353         * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
354         calculate the mask-value pair result of a multiplication by an
355         unsigned constant.
356         (bit_value_binop) [MULT_EXPR]:  Call it from here for
357         multiplications by (sparse) non-negative constants.
359 2021-08-17  Christophe Lyon  <christophe.lyon@foss.st.com>
361         PR target/100896
362         * config.gcc (gcc_cv_initfini_array): Leave undefined for
363         uclinuxfdpiceabi targets.
365 2021-08-17  Alexandre Oliva  <oliva@adacore.com>
367         * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
368         reverse debug stmts.
370 2021-08-17  Alexandre Oliva  <oliva@adacore.com>
372         * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
374 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
376         * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
377         (__LD4Q_LANE_FUNC): Likewise.
378         (vld4_lane_u8): Define without macro.
379         (vld4_lane_u16): Likewise.
380         (vld4_lane_u32): Likewise.
381         (vld4_lane_u64): Likewise.
382         (vld4_lane_s8): Likewise.
383         (vld4_lane_s16): Likewise.
384         (vld4_lane_s32): Likewise.
385         (vld4_lane_s64): Likewise.
386         (vld4_lane_f16): Likewise.
387         (vld4_lane_f32): Likewise.
388         (vld4_lane_f64): Likewise.
389         (vld4_lane_p8): Likewise.
390         (vld4_lane_p16): Likewise.
391         (vld4_lane_p64): Likewise.
392         (vld4q_lane_u8): Likewise.
393         (vld4q_lane_u16): Likewise.
394         (vld4q_lane_u32): Likewise.
395         (vld4q_lane_u64): Likewise.
396         (vld4q_lane_s8): Likewise.
397         (vld4q_lane_s16): Likewise.
398         (vld4q_lane_s32): Likewise.
399         (vld4q_lane_s64): Likewise.
400         (vld4q_lane_f16): Likewise.
401         (vld4q_lane_f32): Likewise.
402         (vld4q_lane_f64): Likewise.
403         (vld4q_lane_p8): Likewise.
404         (vld4q_lane_p16): Likewise.
405         (vld4q_lane_p64): Likewise.
406         (vld4_lane_bf16): Likewise.
407         (vld4q_lane_bf16): Likewise.
409 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
411         * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
412         (__LD3Q_LANE_FUNC): Delete.
413         (vld3_lane_u8): Define without macro.
414         (vld3_lane_u16): Likewise.
415         (vld3_lane_u32): Likewise.
416         (vld3_lane_u64): Likewise.
417         (vld3_lane_s8): Likewise.
418         (vld3_lane_s16): Likewise.
419         (vld3_lane_s32): Likewise.
420         (vld3_lane_s64): Likewise.
421         (vld3_lane_f16): Likewise.
422         (vld3_lane_f32): Likewise.
423         (vld3_lane_f64): Likewise.
424         (vld3_lane_p8): Likewise.
425         (vld3_lane_p16): Likewise.
426         (vld3_lane_p64): Likewise.
427         (vld3q_lane_u8): Likewise.
428         (vld3q_lane_u16): Likewise.
429         (vld3q_lane_u32): Likewise.
430         (vld3q_lane_u64): Likewise.
431         (vld3q_lane_s8): Likewise.
432         (vld3q_lane_s16): Likewise.
433         (vld3q_lane_s32): Likewise.
434         (vld3q_lane_s64): Likewise.
435         (vld3q_lane_f16): Likewise.
436         (vld3q_lane_f32): Likewise.
437         (vld3q_lane_f64): Likewise.
438         (vld3q_lane_p8): Likewise.
439         (vld3q_lane_p16): Likewise.
440         (vld3q_lane_p64): Likewise.
441         (vld3_lane_bf16): Likewise.
442         (vld3q_lane_bf16): Likewise.
444 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
446         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
447         (__LD2Q_LANE_FUNC): Likewise.
448         (vld2_lane_u8): Define without macro.
449         (vld2_lane_u16): Likewise.
450         (vld2_lane_u32): Likewise.
451         (vld2_lane_u64): Likewise.
452         (vld2_lane_s8): Likewise.
453         (vld2_lane_s16): Likewise.
454         (vld2_lane_s32): Likewise.
455         (vld2_lane_s64): Likewise.
456         (vld2_lane_f16): Likewise.
457         (vld2_lane_f32): Likewise.
458         (vld2_lane_f64): Likewise.
459         (vld2_lane_p8): Likewise.
460         (vld2_lane_p16): Likewise.
461         (vld2_lane_p64): Likewise.
462         (vld2q_lane_u8): Likewise.
463         (vld2q_lane_u16): Likewise.
464         (vld2q_lane_u32): Likewise.
465         (vld2q_lane_u64): Likewise.
466         (vld2q_lane_s8): Likewise.
467         (vld2q_lane_s16): Likewise.
468         (vld2q_lane_s32): Likewise.
469         (vld2q_lane_s64): Likewise.
470         (vld2q_lane_f16): Likewise.
471         (vld2q_lane_f32): Likewise.
472         (vld2q_lane_f64): Likewise.
473         (vld2q_lane_p8): Likewise.
474         (vld2q_lane_p16): Likewise.
475         (vld2q_lane_p64): Likewise.
476         (vld2_lane_bf16): Likewise.
477         (vld2q_lane_bf16): Likewise.
479 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
481         * haifa-sched.c (advance_one_cycle): Output more context-synchronization
482         lines for diff.
484 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
486         * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
487         (rank_for_schedule): Use it.
489 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
491         PR rtl-optimization/91598
492         * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
493         insns after memory reads and before memory writes.
495 2021-08-17  Alistair_Lee  <alistair.lee@arm.com>
497         * rtl.h (CONST_VECTOR_P): New macro.
498         * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
499         code testing macros.
500         (aarch64_ptrue_all_mode): Likewise.
501         (aarch64_expand_mov_immediate): Likewise.
502         (aarch64_const_vec_all_in_range_p): Likewise.
503         (aarch64_rtx_costs): Likewise.
504         (aarch64_legitimate_constant_p): Likewise.
505         (aarch64_simd_valid_immediate): Likewise.
506         (aarch64_simd_make_constant): Likewise.
507         (aarch64_convert_mult_to_shift): Likewise.
508         (aarch64_expand_sve_vec_perm): Likewise.
509         (aarch64_vec_fpconst_pow_of_2): Likewise.
511 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
513         PR tree-optimization/101938
514         * range-op.cc (operator_abs::op1_range): Special case
515         -TYPE_MIN_VALUE for flag_wrapv.
517 2021-08-17  Kewen Lin  <linkw@linux.ibm.com>
519         * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
520         value extraction.
522 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
524         * tree.def (OMP_SCOPE): New tree code.
525         * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
526         * tree-nested.c (convert_nonlocal_reference_stmt,
527         convert_local_reference_stmt, convert_gimple_call): Handle
528         GIMPLE_OMP_SCOPE.
529         * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
530         * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
531         * gimple.c (gimple_build_omp_scope): New function.
532         (gimple_copy): Handle GIMPLE_OMP_SCOPE.
533         * gimple.h (gimple_build_omp_scope): Declare.
534         (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
535         (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
536         gimple_omp_scope_set_clauses): New inline functions.
537         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
538         * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
539         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
540         * gimple-walk.c (walk_gimple_stmt): Likewise.
541         * gimple-low.c (lower_stmt): Likewise.
542         * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
543         (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
544         like ORT_WORKSHARE constructs.  Adjust diagnostics for %<scope%>
545         allowing task reductions.  Reject inscan reductions on scope.
546         (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
547         (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
548         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
549         (estimate_num_insns): Likewise.
550         * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
551         contexts if var isn't privatized there.
552         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
553         (scan_omp_1_stmt): Likewise.
554         (maybe_add_implicit_barrier_cancel): Look through outer
555         scope constructs.
556         (lower_omp_scope): New function.
557         (lower_omp_task_reductions): Handle OMP_SCOPE.
558         (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
559         (diagnose_sb_1, diagnose_sb_2): Likewise.
560         * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
561         (expand_omp): Handle GIMPLE_OMP_SCOPE.
562         (omp_make_gimple_edges): Likewise.
563         * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
565 2021-08-17  Richard Biener  <rguenther@suse.de>
567         PR tree-optimization/101925
568         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
569         reverse on COMPONENT_REF and ARRAY_REF according to
570         what reverse_storage_order_for_component_p does.
571         (vn_reference_eq): Compare reversed on reference ops.
572         (reverse_storage_order_for_component_p): New overload.
573         (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
574         on the reference looked up.
576 2021-08-17  Jeff Law  <jlaw@localhost.localdomain>
578         * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
579         shifts on the H8/S.
580         (h8300_option_override): Use loops on H8/S more often when optimizing
581         for size.
582         (get_shift_alg): Handle new "special" cases on H8/S.  Simplify
583         accordingly.  Handle various arithmetic right shifts with special
584         sequences that we couldn't handle before.
586 2021-08-16  Jeff Law  <jlaw@localhost.localdomain>
588         * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
590 2021-08-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
592         * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
593         * config/sparc/sparc.c (sparc_gcov_type_size): New.
594         (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
595         * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
596         * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
597         * doc/tm.texi.in: Regenerate.
598         * target.def (gcov_type_size): New target hook.
599         * targhooks.c (default_gcov_type_size): New.
600         * targhooks.h (default_gcov_type_size): Declare.
601         * tree-profile.c (gimple_gen_edge_profiler): Use precision of
602         gcov_type_node.
603         (gimple_gen_time_profiler): Likewise.
605 2021-08-16  Eric Botcazou  <ebotcazou@gcc.gnu.org>
607         * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
609 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
611         PR middle-end/101931
612         * omp-low.c (omp_runtime_api_call): Update for routines
613         added in the meanwhile.
615 2021-08-16  Martin Liska  <mliska@suse.cz>
617         PR tree-optimization/100393
618         * tree-switch-conversion.c (group_cluster::dump): Use
619           get_comparison_count.
620         (jump_table_cluster::find_jump_tables): Pre-compute number of
621         comparisons and then decrement it. Cache also max_ratio.
622         (jump_table_cluster::can_be_handled): Change signature.
623         * tree-switch-conversion.h (get_comparison_count): New.
625 2021-08-16  Eric Botcazou  <ebotcazou@gcc.gnu.org>
627         * dwarf2out.c (add_data_member_location_attribute): Use GNAT
628         encodings only when -fgnat-encodings=all is specified.
629         (add_bound_info): Likewise.
630         (add_byte_size_attribute): Likewise.
631         (gen_member_die): Likewise.
633 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
635         * omp-oacc-neuter-broadcast.cc
636         (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
638 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
640         * omp-oacc-neuter-broadcast.cc
641         (execute_omp_oacc_neuter_broadcast): Clarify memory management for
642         'prop_set'.
644 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
646         * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
647         (execute_omp_oacc_neuter_broadcast): ... here.
648         (install_var_field, build_receiver_ref, build_sender_ref): Take
649         'field_map_t *' parameter.  Adjust all users.
650         (worker_single_copy, neuter_worker_single): Take a
651         'record_field_map_t *' parameter.  Adjust all users.
653 2021-08-16  liuhongt  <hongtao.liu@intel.com>
655         PR target/101930
656         * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
657         reg.
659 2021-08-16  Martin Liska  <mliska@suse.cz>
661         PR ipa/101726
662         * multiple_target.c (create_dispatcher_calls): Make default
663           function local only if it is a definition.
665 2021-08-16  Martin Liska  <mliska@suse.cz>
667         PR ipa/100600
668         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
669           consider equal SSA_NAMEs when one is a param.
671 2021-08-16  liuhongt  <hongtao.liu@intel.com>
673         PR target/101846
674         * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
675         Support vpermi2b for V32QI/V16QImode.
676         (ix86_extract_perm_from_pool_constant): New function.
677         (ix86_expand_vec_one_operand_perm_avx512): Support
678         vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
679         (expand_vec_perm_1): Adjust comments for upper.
680         * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
681         New declare.
682         * config/i386/predicates.md (permvar_truncate_operand): New predicate.
683         (pshufb_truncv4siv4hi_operand): Ditto.
684         (pshufb_truncv8hiv8qi_operand): Ditto.
685         * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
686         New pre_reload define_insn_and_split.
687         (*avx512f_permvar_truncv8siv8hi_1): Ditto.
688         (*avx512f_vpermvar_truncv8div8si_1): Ditto.
689         (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
690         (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
691         (*avx512f_permvar_truncv4div4si_1): Ditto.
692         (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
693         (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
694         (*avx512f_pshufd_truncv2div2si_1): Ditto.
696 2021-08-16  Kito Cheng  <kito.cheng@sifive.com>
698         * config/riscv/multilib-generator: Support code model option for
699         multi-lib.
700         * doc/install.texi: Add document of new option for
701         --with-multilib-generator.
703 2021-08-15  Clément Chigot  <clement.chigot@atos.net>
705         * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
706         (rs6000_legitimize_tls_address_aix): Use it.
707         (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
708         xcoff_tls_exec_model_detected is true.
710 2021-08-15  Jeff Law  <jlaw@localhost.localdomain>
712         * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
713         to allow a bit more code growth, saving many dozens of cycles.
714         (h8300_option_override): Adjus shift_alg_si if optimizing for
715         code size.
716         (get_shift_alg): Use special + inline shifts for residuals
717         in more cases.
719 2021-08-14  Stafford Horne  <shorne@gmail.com>
721         PR target/99783
722         * config/or1k/or1k-opts.h: New file.
723         * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
724         Support generating gotha relocations if -mcmodel=large is
725         specified.
726         * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
727         New macros.
728         * config/or1k/or1k.opt (mcmodel=): New option.
729         * doc/invoke.texi (OpenRISC Options): Document mcmodel.
731 2021-08-14  Martin Sebor  <msebor@redhat.com>
733         PR middle-end/101791
734         * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
735         to valid_new_delete_pair_p.
736         * tree.c (valid_new_delete_pair_p): Add argument.
737         * tree.h (valid_new_delete_pair_p): Same.
739 2021-08-14  Jakub Jelinek  <jakub@redhat.com>
741         PR target/101896
742         * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
743         <case E_V64QImode>: For this mode assert
744         !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
746 2021-08-13  Michael Meissner  <meissner@linux.ibm.com>
748         PR target/99921
749         * config/rs6000/altivec.md (xxeval): Use register_predicate
750         instead of altivec_register_predicate.
752 2021-08-13  Martin Sebor  <msebor@redhat.com>
754         PR middle-end/101734
755         * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
756         (maybe_warn_operand): Call it.
758 2021-08-13  Martin Liska  <mliska@suse.cz>
760         PR ipa/101354
761         * attribs.c (decl_attributes): Make naked functions "noipa"
762           functions.
764 2021-08-13  Martin Liska  <mliska@suse.cz>
766         PR ipa/101261
767         * symtab.c (symtab_node::noninterposable_alias): Do not create
768           local aliases for target_clone functions as the clonning pass
769           rejects aliases.
771 2021-08-13  Martin Liska  <mliska@suse.cz>
773         * opts.c (LIVE_PATCHING_OPTION): Define.
774         (control_options_for_live_patching): Use it in error messages.
776 2021-08-13  Jan Hubicka  <hubicka@ucw.cz>
778         * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
779         (implicit_const_eaf_flags, implicit_pure_eaf_flags,
780          ignore_stores_eaf_flags): New constants.
781         (remove_useless_eaf_flags): New function.
782         (eaf_flags_useful_p): Use it.
783         (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
784         handle EAF_NOREAD.
785         (modref_lattice::init): Add EAF_NOREAD.
786         (modref_lattice::add_escape_point): Do not reacord escape point if
787         result is unused.
788         (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
789         use remove_useless_eaf_flags.
790         (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
791         (modref_lattice::merge_direct_load): Add EAF_NOREAD
792         (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
793         (analyze_parms): Use remove_useless_eaf_flags.
794         (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
795         (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
796         use remove_useless_eaf_flags.
797         (modref_propagate_flags_in_scc): Update.
798         * ipa-modref.h: Turn eaf_flags_t back to char.
799         * tree-core.h (EAF_NOT_RETURNED): Fix.
800         (EAF_NOREAD): New constant
801         * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
802         EAF_NOREAD.
803         * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
804         (handle_pure_call): Likewise.
806 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
808         * tree.def (OMP_MASKED): New tree code.
809         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
810         * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
811         OMP_CLAUSE_FILTER_EXPR): Define.
812         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
813         (omp_clause_code_name): Likewise.
814         (walk_tree_1): Handle OMP_CLAUSE_FILTER.
815         * tree-nested.c (convert_nonlocal_omp_clauses,
816         convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
817         (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
818         convert_gimple_call): Handle GIMPLE_OMP_MASTER.
819         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
820         (dump_generic_node): Handle OMP_MASTER.
821         * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
822         * gimple.c (gimple_build_omp_masked): New function.
823         (gimple_copy): Handle GIMPLE_OMP_MASKED.
824         * gimple.h (gimple_build_omp_masked): Declare.
825         (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
826         (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
827         gimple_omp_masked_set_clauses): New inline functions.
828         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
829         * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
830         (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
831         * gimple-walk.c (walk_gimple_stmt): Likewise.
832         * gimple-low.c (lower_stmt): Likewise.
833         * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
834         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER.  For clauses
835         that take one expression rather than decl or constant, force
836         gimplification of that into a SSA_NAME or temporary unless min
837         invariant.
838         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
839         (gimplify_expr): Handle OMP_MASKED.
840         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
841         (estimate_num_insns): Likewise.
842         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
843         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED.  Adjust
844         diagnostics for existence of masked construct.
845         (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
846         diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
847         * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
848         Likewise.
850 2021-08-12  Uroš Bizjak  <ubizjak@gmail.com>
852         PR target/98309
853         * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
854         (ldexp<mode>3): Use avx512f_scalef<mode>2.
855         (UNSPEC_SCALEF): Move from ...
856         * config/i386/sse.md (UNSPEC_SCALEF): ... here.
858 2021-08-12  Jan Hubicka  <hubicka@ucw.cz>
860         * ipa-split.c (consider_split): Fix condition testing void functions.
862 2021-08-12  Aldy Hernandez  <aldyh@redhat.com>
864         * doc/invoke.texi: Remove docs for threader-mode param.
865         * flag-types.h (enum threader_mode): Remove.
866         * params.opt: Remove threader-mode param.
867         * tree-ssa-threadbackward.c (class back_threader): Remove
868         path_is_unreachable_p.
869         Make find_paths private.
870         Add maybe_thread and thread_through_all_blocks.
871         Remove reference marker for m_registry.
872         Remove reference marker for m_profit.
873         (back_threader::back_threader): Adjust for registry and profit not
874         being references.
875         (dump_path): Move down.
876         (debug): Move down.
877         (class thread_jumps): Remove.
878         (class back_threader_registry): Remove m_all_paths.
879         Remove destructor.
880         (thread_jumps::thread_through_all_blocks): Move to back_threader
881         class.
882         (fsm_find_thread_path): Remove
883         (back_threader::maybe_thread): New.
884         (back_threader::thread_through_all_blocks): Move from
885         thread_jumps.
886         (back_threader_registry::back_threader_registry): Remove
887         m_all_paths.
888         (back_threader_registry::~back_threader_registry): Remove.
889         (thread_jumps::find_taken_edge): Remove.
890         (thread_jumps::check_subpath_and_update_thread_path): Remove.
891         (thread_jumps::maybe_register_path): Remove.
892         (thread_jumps::handle_phi): Remove.
893         (handle_assignment_p): Remove.
894         (thread_jumps::handle_assignment): Remove.
895         (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
896         (thread_jumps::find_jump_threads_backwards): Remove.
897         (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
898         (try_thread_blocks): Rename find_jump_threads_backwards to
899         maybe_thread.
900         (pass_early_thread_jumps::execute): Same.
902 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
904         * tree-core.h (omp_clause_proc_bind_kind): Add
905         OMP_CLAUSE_PROC_BIND_PRIMARY.
906         * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
907         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
909 2021-08-12  Claudiu Zissulescu  <claziss@synopsys.com>
911         * common/config/arc/arc-common.c (arc_option_init_struct): Remove
912         fno-common reference.
913         * config/arc/arc.c (arc_override_options): Remove overriding of
914         flag_no_common.
916 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
918         PR target/101860
919         * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
920         If d->testing_p, return true after performing checks instead of
921         actually expanding the insn.
922         (expand_vec_perm_broadcast_1): Handle V32HImode - assert
923         !TARGET_AVX512BW and return false.
925 2021-08-12  Eric Botcazou  <ebotcazou@gcc.gnu.org>
927         * configure.ac (PE linker --disable-dynamicbase support): New check.
928         * configure: Regenerate.
929         * config.in: Likewise.
930         * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
931         (LINK_SPEC): Use it.
932         * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
933         (LINK_SPEC): Likewise.
935 2021-08-12  liuhongt  <hongtao.liu@intel.com>
937         PR target/101846
938         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
939         post_reload define_insn_and_split.
940         (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
941         (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
942         (*avx512f_zero_extendv16hiv16si2_2): Ditto.
943         (*avx2_zero_extendv8hiv8si2_2): Ditto.
944         (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
945         (*avx512f_zero_extendv8siv8di2_2): Ditto.
946         (*avx2_zero_extendv4siv4di2_2): Ditto.
947         (*sse4_1_zero_extendv2siv2di2_4): Ditto.
948         (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
949         mode iterator.
951 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
953         * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
954         power6 stanzas.
956 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
958         * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
960 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
962         * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
963         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
964         initialization of pcvoid_type_node here...
965         (altivec_init_builtins): ...from here.
966         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
967         RS6000_BTI_const_ptr_void.
968         (pcvoid_type_node): New macro.
970 2021-08-11  Richard Biener  <rguenther@suse.de>
972         PR target/101877
973         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
974         hard-register accesses.
976 2021-08-11  Richard Biener  <rguenther@suse.de>
978         * tree-ssa-operands.c (operands_scanner::get_expr_operands):
979         Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
980         to determine has_volatile_ops.
982 2021-08-11  Eric Botcazou  <ebotcazou@gcc.gnu.org>
984         * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
986 2021-08-11  Jan Hubicka  <hubicka@ucw.cz>
987             Alexandre Oliva  <oliva@adacore.com>
989         * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
990         dumping.
991         (modref_lattice::merge_deref): Fix handling of indirect scape points.
992         (update_escape_summary_1): Likewise.
993         (update_escape_summary): Likewise.
994         (ipa_merge_modref_summary_after_inlining): Likewise.
996 2021-08-11  Richard Biener  <rguenther@suse.de>
998         PR middle-end/101858
999         * fold-const.c (fold_binary_loc): Guard simplification
1000         of  X < (cast) (1 << Y) to integer types.
1002 2021-08-11  Richard Biener  <rguenther@suse.de>
1004         PR tree-optimization/101861
1005         * tree-vect-stmts.c (vectorizable_load): Fix error in
1006         previous change with regard to gather vectorization.
1008 2021-08-11  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
1010         PR target/66791
1011         * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
1012         with constructor.
1013         (vdup_n_s16): Likewise.
1014         (vdup_n_s32): Likewise.
1015         (vdup_n_s64): Likewise.
1016         (vdup_n_u8): Likewise.
1017         (vdup_n_u16): Likewise.
1018         (vdup_n_u32): Likewise.
1019         (vdup_n_u64): Likewise.
1020         (vdup_n_p8): Likewise.
1021         (vdup_n_p16): Likewise.
1022         (vdup_n_p64): Likewise.
1023         (vdup_n_f16): Likewise.
1024         (vdup_n_f32): Likewise.
1025         (vdupq_n_s8): Likewise.
1026         (vdupq_n_s16): Likewise.
1027         (vdupq_n_s32): Likewise.
1028         (vdupq_n_s64): Likewise.
1029         (vdupq_n_u8): Likewise.
1030         (vdupq_n_u16): Likewise.
1031         (vdupq_n_u32): Likewise.
1032         (vdupq_n_u64): Likewise.
1033         (vdupq_n_p8): Likewise.
1034         (vdupq_n_p16): Likewise.
1035         (vdupq_n_p64): Likewise.
1036         (vdupq_n_f16): Likewise.
1037         (vdupq_n_f32): Likewise.
1038         (vmov_n_s8): Replace call to builtin with call to corresponding
1039         vdup_n intrinsic.
1040         (vmov_n_s16): Likewise.
1041         (vmov_n_s32): Likewise.
1042         (vmov_n_s64): Likewise.
1043         (vmov_n_u8): Likewise.
1044         (vmov_n_u16): Likewise.
1045         (vmov_n_u32): Likewise.
1046         (vmov_n_u64): Likewise.
1047         (vmov_n_p8): Likewise.
1048         (vmov_n_p16): Likewise.
1049         (vmov_n_f16): Likewise.
1050         (vmov_n_f32): Likewise.
1051         (vmovq_n_s8): Likewise.
1052         (vmovq_n_s16): Likewise.
1053         (vmovq_n_s32): Likewise.
1054         (vmovq_n_s64): Likewise.
1055         (vmovq_n_u8): Likewise.
1056         (vmovq_n_u16): Likewise.
1057         (vmovq_n_u32): Likewise.
1058         (vmovq_n_u64): Likewise.
1059         (vmovq_n_p8): Likewise.
1060         (vmovq_n_p16): Likewise.
1061         (vmovq_n_f16): Likewise.
1062         (vmovq_n_f32): Likewise.
1063         * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
1065 2021-08-11  liuhongt  <hongtao.liu@intel.com>
1067         PR target/98309
1068         * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
1069         when TARGET_AVX512F and TARGET_SSE_MATH.
1071 2021-08-10  Jakub Jelinek  <jakub@redhat.com>
1073         PR target/80355
1074         * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
1075         for V32HImode if !TARGET_AVX512BW.
1076         (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
1077         If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
1078         early, but actually check the permutation.
1080 2021-08-10  Richard Biener  <rguenther@suse.de>
1082         PR tree-optimization/101809
1083         * tree-vect-stmts.c (get_load_store_type): Allow emulated
1084         gathers with offset vector nunits being a constant multiple
1085         of the data vector nunits.
1086         (vect_get_gather_scatter_ops): Use the appropriate nunits
1087         for the offset vector defs.
1088         (vectorizable_store): Adjust call to
1089         vect_get_gather_scatter_ops.
1090         (vectorizable_load): Likewise.  Handle the case of less
1091         offset vectors than data vectors.
1093 2021-08-10  Jakub Jelinek  <jakub@redhat.com>
1095         PR target/80355
1096         * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
1097         *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
1098         patterns.
1100 2021-08-10  Richard Biener  <rguenther@suse.de>
1102         PR tree-optimization/101801
1103         PR tree-optimization/101819
1104         * tree-vectorizer.h (vect_emulated_vector_p): Declare.
1105         * tree-vect-loop.c (vect_emulated_vector_p): New function.
1106         (vectorizable_reduction): Re-instantiate a check for emulated
1107         operations.
1108         * tree-vect-stmts.c (vectorizable_shift): Likewise.
1109         (vectorizable_operation): Likewise.  Cost emulated vector
1110         operations according to the scalar sequence synthesized by
1111         vector lowering.
1113 2021-08-10  Richard Biener  <rguenther@suse.de>
1115         PR middle-end/101824
1116         * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
1117         volatile in case the variable was.
1119 2021-08-10  H.J. Lu  <hjl.tools@gmail.com>
1121         PR target/101804
1122         * config/i386/constraints.md (BC): Document for integer SSE
1123         constant all bits set operand.
1124         (BF): New constraint for const floating-point all bits set
1125         vectors.
1126         * config/i386/i386.c (standard_sse_constant_p): Likewise.
1127         (standard_sse_constant_opcode): Likewise.
1128         * config/i386/sse.md (sseconstm1): New mode attribute.
1129         (mov<mode>_internal): Replace BC with <sseconstm1>.
1131 2021-08-10  liuhongt  <hongtao.liu@intel.com>
1133         * config/i386/sse.md (cond_<insn><mode>): New expander.
1134         (VI248_AVX512VLBW): New mode iterator.
1135         * config/i386/predicates.md
1136         (nonimmediate_or_const_vec_dup_operand): New predicate.
1138 2021-08-09  Andrew MacLeod  <amacleod@redhat.com>
1140         PR tree-optimization/101741
1141         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
1142         type of parameter for toupper/tolower.
1144 2021-08-09  Martin Jambor  <mjambor@suse.cz>
1146         PR testsuite/101654
1147         * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
1149 2021-08-09  Pat Haugen  <pthaugen@linux.ibm.com>
1151         * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
1152         register.
1153         (is_store_insn1): Verify source is a register.
1155 2021-08-09  Uroš Bizjak  <ubizjak@gmail.com>
1157         PR target/101812
1158         * config/i386/mmx.md (<any_logic:code>v2sf3):
1159         Rename from *mmx_<any_logic:code>v2sf3
1161 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
1163         * config/nvptx/nvptx.c: Cross-reference parts adapted in
1164         'gcc/omp-oacc-neuter-broadcast.cc'.
1165         * omp-low.c: Likewise.
1166         * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
1167         the above files.
1169 2021-08-09  Julian Brown  <julian@codesourcery.com>
1170             Kwok Cheung Yeung  <kcy@codesourcery.com>
1171             Thomas Schwinge  <thomas@codesourcery.com>
1173         * config/gcn/gcn.c (gcn_init_builtins): Override decls for
1174         BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
1175         BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
1176         (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
1177         (gcn_fork_join): Update comment.
1178         * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
1179         (macc_experimental_workers): Remove unused option.
1181 2021-08-09  Julian Brown  <julian@codesourcery.com>
1182             Nathan Sidwell  <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
1183             Kwok Cheung Yeung  <kcy@codesourcery.com>
1184             Thomas Schwinge  <thomas@codesourcery.com>
1186         * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
1187         * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
1188         Add documentation hook.
1189         * doc/tm.texi: Regenerate.
1190         * omp-oacc-neuter-broadcast.cc: New file.
1191         * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
1192         (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
1193         (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
1194         * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
1195         * target.def (goacc.create_worker_broadcast_record): Add target
1196         hook.
1197         * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
1198         prototype.
1199         * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
1200         Rename prototype to...
1201         (gcn_goacc_create_worker_broadcast_record): ... this.
1202         * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
1203         function to...
1204         (gcn_goacc_create_worker_broadcast_record): ... this.
1205         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
1206         Rename to...
1207         (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
1209 2021-08-09  Tejas Belagod  <tejas.belagod@arm.com>
1211         PR target/101609
1212         * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
1213         the right iterator.
1215 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
1217         * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
1219 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
1221         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
1222         consider '-foffload-abi'.
1223         * common.opt (-foffload-abi): Remove 'Var', 'Init'.
1224         * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
1225         Ignore.
1227 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
1229         * optc-gen.awk: Sanity check that 'Init' doesn't appear without
1230         'Var'.
1232 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
1234         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
1236 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
1238         * doc/gty.texi (Files): Update.
1240 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
1242         * doc/gty.texi (Files): Fix GTY header file example.
1244 2021-08-09  Roger Sayle  <roger@nextmovesoftware.com>
1246         * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
1247         determine the upper and lower bounds from a mask-value pair.
1248         (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
1249         absolute value and unsigned absolute value expressions.
1250         (bit_value_binop):  Initialize *VAL's precision.
1251         [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
1252         upper and lower bounds of operands.  Add LE_EXPR/GE_EXPR
1253         support when the operands are unknown but potentially equal.
1254         [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
1256 2021-08-09  Bin Cheng  <bin.cheng@linux.alibaba.com>
1258         * config/aarch64/aarch64.md
1259         (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
1261 2021-08-08  Sergei Trofimovich  <siarheit@google.com>
1263         * lra-constraints.c: Fix s/otput/output/ typo.
1265 2021-08-06  Martin Sebor  <msebor@redhat.com>
1267         * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
1268         (expand_builtin_strcat): Same.
1269         (expand_builtin_stpncpy): Same.
1270         (expand_builtin_strncat): Same.
1271         (check_read_access): Same.
1272         (check_memop_access): Same.
1273         (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
1274         (expand_builtin_strnlen): Same.
1275         (expand_builtin_memcpy): Same.
1276         (expand_builtin_memmove): Same.
1277         (expand_builtin_mempcpy): Same.
1278         (expand_builtin_strcpy): Same.
1279         (expand_builtin_strcpy_args): Same.
1280         (expand_builtin_stpcpy_1): Same.
1281         (expand_builtin_strncpy): Same.
1282         (expand_builtin_memset): Same.
1283         (expand_builtin_bzero): Same.
1284         (expand_builtin_strcmp): Same.
1285         (expand_builtin_strncmp): Same.
1286         (expand_builtin): Remove handlers.
1287         (fold_builtin_strlen): Add a comment.
1288         * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
1289         * calls.c (maybe_warn_nonstring_arg): Same.
1290         * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
1291         * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
1292         (gimple_fold_builtin_stpcpy): Same.
1293         * gimple-ssa-warn-access.cc (has_location): New function.
1294         (get_location): Same.
1295         (get_callee_fndecl): Same.
1296         (call_nargs): Same.
1297         (call_arg): Same.
1298         (warn_string_no_nul): Define.
1299         (unterminated_array): Same.
1300         (check_nul_terminated_array): Same.
1301         (maybe_warn_nonstring_arg): Same.
1302         (maybe_warn_for_bound): Same.
1303         (warn_for_access): Same.
1304         (check_access): Same.
1305         (check_memop_access): Same.
1306         (check_read_access): Same.
1307         (warn_dealloc_offset): Use helper functions.
1308         (maybe_emit_free_warning): Same.
1309         (class pass_waccess): Add members.
1310         (check_strcat): New function.
1311         (check_strncat): New function.
1312         (check_stxcpy): New function.
1313         (check_stxncpy): New function.
1314         (check_strncmp): New function.
1315         (pass_waccess::check_builtin): New function.
1316         (pass_waccess::check): Call it.
1317         * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
1318         builtins.h.
1319         (maybe_warn_for_bound): Same.
1320         (check_access): Same.
1321         (check_memop_access): Same.
1322         (check_read_access): Same.
1323         * pointer-query.h (struct access_data): Define a ctor overload.
1325 2021-08-06  Richard Biener  <rguenther@suse.de>
1327         PR tree-optimization/101801
1328         * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
1329         (vect_can_vectorize_without_simd_p): ... to this.
1330         * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
1331         (vect_can_vectorize_without_simd_p): ... to this and fold
1332         in vect_min_worthwhile_factor.
1333         (vect_min_worthwhile_factor): Remove.
1334         (vectorizable_reduction): Adjust and remove the cost part.
1335         * tree-vect-stmts.c (vectorizable_shift): Likewise.
1336         (vectorizable_operation): Likewise.
1338 2021-08-06  Uroš Bizjak  <ubizjak@gmail.com>
1340         PR target/101797
1341         * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
1342         Add general_gr_operand predicate to operand 3.
1344 2021-08-06  Roger Sayle  <roger@nextmovesoftware.com>
1346         * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
1347         CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
1349 2021-08-06  Tamar Christina  <tamar.christina@arm.com>
1351         * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
1352         register_svprfop): Pass vec<> by pointer.
1353         * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
1354         * langhooks.c (lhd_simulate_enum_decl): Likewise.
1355         * langhooks.h (struct lang_hooks_for_types): Likewise.
1357 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
1359         * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
1360         __builtin_memcpy instead of constructing an additional
1361         __builtin_aarch64_simd_oi one vector at a time.
1362         (vst1q_bf16_x2): Likewise.
1363         (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
1364         an additional __builtin_aarch64_simd_ci one vector at a time.
1365         (vst1q_bf16_x3): Likewise.
1366         (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
1367         (vst1q_bf16_x4): Likewise.
1368         (vst2_bf16): Use __builtin_memcpy instead of constructing an
1369         additional __builtin_aarch64_simd_oi one vector at a time.
1370         (vst2q_bf16): Likewise.
1371         (vst3_bf16): Use __builtin_memcpy instead of constructing an
1372         additional __builtin_aarch64_simd_ci mode one vector at a
1373         time.
1374         (vst3q_bf16): Likewise.
1375         (vst4_bf16): Use __builtin_memcpy instead of constructing an
1376         additional __builtin_aarch64_simd_xi one vector at a time.
1377         (vst4q_bf16): Likewise.
1379 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
1381         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
1382         (__ST2Q_LANE_FUNC): Delete.
1383         (vst2_lane_f16): Use __builtin_memcpy to copy vector
1384         structure instead of constructing __builtin_aarch64_simd_oi
1385         one vector at a time.
1386         (vst2_lane_f32): Likewise.
1387         (vst2_lane_f64): Likewise.
1388         (vst2_lane_p8): Likewise.
1389         (vst2_lane_p16): Likewise.
1390         (vst2_lane_p64): Likewise.
1391         (vst2_lane_s8): Likewise.
1392         (vst2_lane_s16): Likewise.
1393         (vst2_lane_s32): Likewise.
1394         (vst2_lane_s64): Likewise.
1395         (vst2_lane_u8): Likewise.
1396         (vst2_lane_u16): Likewise.
1397         (vst2_lane_u32): Likewise.
1398         (vst2_lane_u64): Likewise.
1399         (vst2_lane_bf16): Likewise.
1400         (vst2q_lane_f16): Use __builtin_memcpy to copy vector
1401         structure instead of using a union.
1402         (vst2q_lane_f32): Likewise.
1403         (vst2q_lane_f64): Likewise.
1404         (vst2q_lane_p8): Likewise.
1405         (vst2q_lane_p16): Likewise.
1406         (vst2q_lane_p64): Likewise.
1407         (vst2q_lane_s8): Likewise.
1408         (vst2q_lane_s16): Likewise.
1409         (vst2q_lane_s32): Likewise.
1410         (vst2q_lane_s64): Likewise.
1411         (vst2q_lane_u8): Likewise.
1412         (vst2q_lane_u16): Likewise.
1413         (vst2q_lane_u32): Likewise.
1414         (vst2q_lane_u64): Likewise.
1415         (vst2q_lane_bf16): Likewise.
1417 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
1419         * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
1420         (__ST3Q_LANE_FUNC): Delete.
1421         (vst3_lane_f16): Use __builtin_memcpy to copy vector
1422         structure instead of constructing __builtin_aarch64_simd_ci
1423         one vector at a time.
1424         (vst3_lane_f32): Likewise.
1425         (vst3_lane_f64): Likewise.
1426         (vst3_lane_p8): Likewise.
1427         (vst3_lane_p16): Likewise.
1428         (vst3_lane_p64): Likewise.
1429         (vst3_lane_s8): Likewise.
1430         (vst3_lane_s16): Likewise.
1431         (vst3_lane_s32): Likewise.
1432         (vst3_lane_s64): Likewise.
1433         (vst3_lane_u8): Likewise.
1434         (vst3_lane_u16): Likewise.
1435         (vst3_lane_u32): Likewise.
1436         (vst3_lane_u64): Likewise.
1437         (vst3_lane_bf16): Likewise.
1438         (vst3q_lane_f16): Use __builtin_memcpy to copy vector
1439         structure instead of using a union.
1440         (vst3q_lane_f32): Likewise.
1441         (vst3q_lane_f64): Likewise.
1442         (vst3q_lane_p8): Likewise.
1443         (vst3q_lane_p16): Likewise.
1444         (vst3q_lane_p64): Likewise.
1445         (vst3q_lane_s8): Likewise.
1446         (vst3q_lane_s16): Likewise.
1447         (vst3q_lane_s32): Likewise.
1448         (vst3q_lane_s64): Likewise.
1449         (vst3q_lane_u8): Likewise.
1450         (vst3q_lane_u16): Likewise.
1451         (vst3q_lane_u32): Likewise.
1452         (vst3q_lane_u64): Likewise.
1453         (vst3q_lane_bf16): Likewise.
1455 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
1457         * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
1458         (__ST4Q_LANE_FUNC): Delete.
1459         (vst4_lane_f16): Use __builtin_memcpy to copy vector
1460         structure instead of constructing __builtin_aarch64_simd_xi
1461         one vector at a time.
1462         (vst4_lane_f32): Likewise.
1463         (vst4_lane_f64): Likewise.
1464         (vst4_lane_p8): Likewise.
1465         (vst4_lane_p16): Likewise.
1466         (vst4_lane_p64): Likewise.
1467         (vst4_lane_s8): Likewise.
1468         (vst4_lane_s16): Likewise.
1469         (vst4_lane_s32): Likewise.
1470         (vst4_lane_s64): Likewise.
1471         (vst4_lane_u8): Likewise.
1472         (vst4_lane_u16): Likewise.
1473         (vst4_lane_u32): Likewise.
1474         (vst4_lane_u64): Likewise.
1475         (vst4_lane_bf16): Likewise.
1476         (vst4q_lane_f16): Use __builtin_memcpy to copy vector
1477         structure instead of using a union.
1478         (vst4q_lane_f32): Likewise.
1479         (vst4q_lane_f64): Likewise.
1480         (vst4q_lane_p8): Likewise.
1481         (vst4q_lane_p16): Likewise.
1482         (vst4q_lane_p64): Likewise.
1483         (vst4q_lane_s8): Likewise.
1484         (vst4q_lane_s16): Likewise.
1485         (vst4q_lane_s32): Likewise.
1486         (vst4q_lane_s64): Likewise.
1487         (vst4q_lane_u8): Likewise.
1488         (vst4q_lane_u16): Likewise.
1489         (vst4q_lane_u32): Likewise.
1490         (vst4q_lane_u64): Likewise.
1491         (vst4q_lane_bf16): Likewise.
1493 2021-08-06  Martin Liska  <mliska@suse.cz>
1495         * config/rs6000/rs6000.c (rs6000_option_override_internal): When
1496         a target option is restored, it can have
1497         rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
1498         and error should not be emitted.
1500 2021-08-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1502         * gcov-io.h (gcov_write): Declare.
1503         * gcov-io.c (gcov_write): New.
1504         (gcov_write_counter): Remove.
1505         (gcov_write_tag_length): Likewise.
1506         (gcov_write_summary): Replace gcov_write_tag_length() with calls to
1507         gcov_write_unsigned().
1508         * doc/invoke.texi (fprofile-info-section): Mention
1509         __gcov_info_to_gdca().
1511 2021-08-06  Martin Sebor  <msebor@redhat.com>
1513         * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
1514         arguments to by-reference.
1515         (iterate_fix_dominators): Same.
1516         * dominance.h (iterate_fix_dominators): Same.
1517         * ipa-prop.h: Call auto_vec::to_vec_legacy.
1518         * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
1519         arguments to by-reference.
1520         (debug_data_dependence_relation): Same.
1521         (dump_data_dependence_relations): Same.
1522         * tree-data-ref.h (debug_data_dependence_relation): Same.
1523         (dump_data_dependence_relations): Same.
1524         * tree-predcom.c (dump_chains): Same.
1525         (initialize_root_vars_lm): Same.
1526         (determine_unroll_factor): Same.
1527         (replace_phis_by_defined_names): Same.
1528         (insert_init_seqs): Same.
1529         (pcom_worker::tree_predictive_commoning_loop): Call
1530          auto_vec::to_vec_legacy.
1531         * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
1532         arguments to by-reference.
1533         * tree-ssa-threadbackward.c (populate_worklist): Same.
1534         (back_threader::resolve_def): Same.
1535         * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
1536         (vect_enhance_data_refs_alignment): Same.
1537         (vect_check_lower_bound): Same.
1538         (vect_prune_runtime_alias_test_list): Same.
1539         (vect_permute_store_chain): Same.
1540         * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
1541         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
1542         * tree-vectorizer.h (vect_permute_store_chain): Same.
1543         * vec.c (test_init): New function.
1544         (vec_c_tests): Call new function.
1545         * vec.h (vec): Declare ctors, dtor, and assignment.
1546         (auto_vec::vec_to_legacy): New function.
1547         (vec::copy): Adjust initialization.
1549 2021-08-05  H.J. Lu  <hjl.tools@gmail.com>
1551         PR target/99744
1552         * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
1553         callee only uses GPRs.
1554         * config/i386/ia32intrin.h: Revert commit 5463cee2770.
1555         * config/i386/serializeintrin.h: Revert commit 71958f740f1.
1556         * config/i386/x86gprintrin.h: Add
1557         #pragma GCC target("general-regs-only") and #pragma GCC pop_options
1558         to disable non-GPR ISAs.
1560 2021-08-05  Richard Sandiford  <richard.sandiford@arm.com>
1562         PR middle-end/101787
1563         * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
1565 2021-08-05  Richard Sandiford  <richard.sandiford@arm.com>
1567         * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
1568         (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
1569         (vect_is_extending_load, vect_is_integer_truncation): New functions,
1570         moved from aarch64.c but given different names.
1571         * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
1572         (aarch64_is_reduction, aarch64_reduc_type)
1573         (aarch64_embedded_comparison_type, aarch64_comparison_type)
1574         (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
1575         in favor of the above.  Update callers accordingly.
1577 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
1579         PR target/101723
1580         * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
1581         writing .cpu directive in asm output.
1582         * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
1583         (arm_last_printed_arch_string): Delete.
1584         (arm_last-printed_fpu_string): Delete.
1585         (arm_configure_build_target): If use of floating-point/SIMD is
1586         disabled, remove all fp/simd related features from the target ISA.
1587         (last_arm_targ_options): New variable.
1588         (arm_print_asm_arch_directives): Add new parameters.  Change order
1589         of emitted directives and handle all cases here.
1590         (arm_file_start): Always call arm_print_asm_arch_directives, move
1591         all generation of .arch/.arch_extension here.
1592         (arm_file_end): Call arm_print_asm_arch.
1593         (arm_declare_function_name): Call arm_print_asm_arch_directives
1594         instead of printing .arch/.fpu directives directly.
1596 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
1598         * config/arm/arm.c (arm_configure_build_target): Don't call
1599         arm_option_reconfigure_globals.
1600         (arm_option_restore): Call arm_option_reconfigure_globals after
1601         reconfiguring the target.
1602         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
1604 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
1606         * config/arm/arm.c (arm_configure_build_target): Ensure the target's
1607         arch_name is always set.
1609 2021-08-05  Jonathan Wright  <jonathan.wright@arm.com>
1611         * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
1612         of vec_select high-half from being added into Neon subtract
1613         cost.
1615 2021-08-05  Jonathan Wright  <jonathan.wright@arm.com>
1617         * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
1618         of vec_select high-half from being added into Neon add cost.
1620 2021-08-05  Kewen Lin  <linkw@linux.ibm.com>
1622         * cfgloop.h (loops_list::loops_list): Add one optional argument
1623         root and adjust accordingly, update loop tree walking and factor
1624         out to ...
1625         * cfgloop.c (loops_list::walk_loop_tree): ... this.  New function.
1627 2021-08-05  Eric Botcazou  <ebotcazou@gcc.gnu.org>
1629         PR tree-optimization/101626
1630         * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
1631         reverse scalar storage order on a pointer or vector component.
1633 2021-08-05  liuhongt  <hongtao.liu@intel.com>
1635         * config/i386/sse.md (cond_<code><mode>): New expander.
1637 2021-08-05  liuhongt  <hongtao.liu@intel.com>
1639         * config/i386/sse.md (cond_<code><mode>): New expander.
1641 2021-08-05  liuhongt  <hongtao.liu@intel.com>
1643         * config/i386/sse.md (cond_<code><mode>): New expander.
1645 2021-08-04  David Malcolm  <dmalcolm@redhat.com>
1647         PR analyzer/101570
1648         * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
1650 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
1652         PR target/101742
1653         * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
1654         only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
1656 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
1658         PR target/101772
1659         * config/i386/i386-expand.c (ix86_expand_vector_move): Call
1660         ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
1661         data with SSE register from one memory location to another.
1663 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
1665         * config/s390/s390.c (expand_perm_with_vpdi): New function.
1666         (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
1667         * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
1668         parameterized expander.
1669         (*vpdi4<mode>, @vpdi4<mode>): Likewise.
1671 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
1673         * config/s390/s390.c (MAX_VECT_LEN): Define macro.
1674         (struct expand_vec_perm_d): Define struct.
1675         (expand_perm_with_merge): New function.
1676         (vectorize_vec_perm_const_1): New function.
1677         (s390_vectorize_vec_perm_const): New function.
1678         (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
1680 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
1682         * config/s390/vector.md (V_HW_64): Remove mode iterator.
1683         (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
1684         * config/s390/vx-builtins.md
1685         (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
1686         V_HW_64.
1688 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
1690         * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
1691         definition.
1692         * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
1693         definitions.
1694         * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
1695         instead of an unspec.
1697 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
1699         * config/s390/s390-modes.def: Add more vector modes to support
1700         concatenation of two vectors.
1701         * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
1702         prototype.
1703         (s390_expand_merge): Likewise.
1704         * config/s390/s390.c (s390_expand_merge_perm_const): New function.
1705         (s390_expand_merge): New function.
1706         * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
1707         Remove constant definitions.
1708         * config/s390/vector.md (V_HW_2): Add mode iterators.
1709         (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
1710         (vec_2x_nelts, vec_2x_wide): New mode attributes.
1711         (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
1712         New pattern definitions.
1713         (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
1714         (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
1715         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
1716         (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
1717         vec merge.
1718         * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
1719         in vector.md.
1720         (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
1721         emit vec merge pattern.
1723 2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>
1725         * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
1726         Define.
1727         (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
1728         vec_select high-half from being added into Neon multiply
1729         cost.
1730         * rtlanal.c (vec_series_highpart_p): Define.
1731         * rtlanal.h (vec_series_highpart_p): Declare.
1733 2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>
1735         * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
1736         Define.
1737         (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
1738         vec_select cost from being added into Neon multiply cost.
1740 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
1742         * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
1743         which old_loop_vinfo is an epilogue loop that handles a constant
1744         number of iterations.
1746 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
1748         * tree-vect-loop.c (vect_analyze_loop): Print a dump message
1749         when a reanalyzed loop fails to be cheaper than the current
1750         main loop.
1752 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
1754         * config/aarch64/aarch64.c: Fix a typo.
1756 2021-08-04  Vincent Lefèvre  <vincent-gcc@vinc17.net>
1758         PR gcov-profile/101773
1759         * gcov-io.c (gcov_close): Check return code of a fclose.
1761 2021-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1763         PR ada/101575
1764         * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
1765         .file statement when needed.
1767 2021-08-04  Richard Biener  <rguenther@suse.de>
1769         * tree-vect-data-refs.c (vect_check_gather_scatter):
1770         Include widening conversions only when the result is
1771         still handed by native gather or the current offset
1772         size not already matches the data size.
1773         Also succeed analysis in case there's no native support,
1774         noted by a IFN_LAST ifn and a NULL decl.
1775         (vect_analyze_data_refs): Always consider gathers.
1776         * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
1777         Test for no IFN gather rather than decl gather.
1778         * tree-vect-stmts.c (vect_model_load_cost): Pass in the
1779         gather-scatter info and cost emulated gathers accordingly.
1780         (vect_truncate_gather_scatter_offset): Properly test for
1781         no IFN gather.
1782         (vect_use_strided_gather_scatters_p): Likewise.
1783         (get_load_store_type): Handle emulated gathers and its
1784         restrictions.
1785         (vectorizable_load): Likewise.  Emulate them by extracting
1786         scalar offsets, doing scalar loads and a vector construct.
1788 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
1790         PR target/101742
1791         * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
1792         argument to set m_max_size.
1793         (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
1794         (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
1795         (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
1797 2021-08-04  Roger Sayle  <roger@nextmovesoftware.com>
1798             Marc Glisse  <marc.glisse@inria.fr>
1800         * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
1801         (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
1802         tree_nonzero_bits to ensure that operands are bit-wise disjoint.
1804 2021-08-04  Richard Biener  <rguenther@suse.de>
1806         * tree-ssa-forwprop.c (pass_forwprop::execute): Split
1807         out code to decompose vector loads ...
1808         (optimize_vector_load): ... here.  Generalize it to
1809         handle intermediate widening and TARGET_MEM_REF loads
1810         and apply it to loads with a supported vector mode as well.
1812 2021-08-04  Richard Biener  <rguenther@suse.de>
1814         PR tree-optimization/101756
1815         * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
1816         the result of the reduction epilogue is compatible to the original
1817         scalar result.
1819 2021-08-04  liuhongt  <hongtao.liu@intel.com>
1821         PR target/101743
1822         * config/i386/i386.md (peephole2): Refine predicate from
1823         register_operand to general_reg_operand.
1825 2021-08-04  Aldy Hernandez  <aldyh@redhat.com>
1827         * gimple-range-path.h (path_range_query::dump): Mark override.
1829 2021-08-04  Richard Biener  <rguenther@suse.de>
1831         PR tree-optimization/101769
1832         * tree-tailcall.c (eliminate_tail_call): Add the created loop
1833         for the first recursion and return it via the new output parameter.
1834         (optimize_tail_call): Pass through new output param.
1835         (tree_optimize_tail_calls_1): After creating all latches,
1836         add the created loop to the loop tree.  Do not mark loops for fixup.
1838 2021-08-04  Martin Liska  <mliska@suse.cz>
1840         * doc/invoke.texi: Document threader-mode param.
1842 2021-08-04  liuhongt  <hongtao.liu@intel.com>
1844         * config/i386/sse.md (cond_fma<mode>): New expander.
1845         (cond_fms<mode>): Ditto.
1846         (cond_fnma<mode>): Ditto.
1847         (cond_fnms<mode>): Ditto.
1849 2021-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
1851         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
1853 2021-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
1855         * config/rs6000/constraints.md: Remove "e" from the list of available
1856         constraint characters.
1858 2021-08-03  Eugene Rozenfeld  <erozen@microsoft.com>
1860         PR gcov-profile/71672
1861         * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
1863 2021-08-03  Paul A. Clarke  <pc@us.ibm.com>
1865         * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
1867 2021-08-03  H.J. Lu  <hjl.tools@gmail.com>
1869         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
1870         try XMM31 to avoid vzeroupper.
1872 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1874         * doc/invoke.texi: Document -mtune=neoverse-512tvb and
1875         -mcpu=neoverse-512tvb.
1876         * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
1877         * config/aarch64/aarch64-tune.md: Regenerate.
1878         * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
1879         (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
1880         (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
1881         (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
1882         (aarch64_adjust_body_cost): Likewise.
1884 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1886         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
1887         record issue information for operations that occur in the
1888         innermost loop.
1890 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1892         * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
1893         parameter.  Detect cases in which an Advanced SIMD MLA would almost
1894         certainly require a MOV.
1895         (aarch64_count_ops): Update accordingly.
1897 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1899         * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
1900         function, split out from...
1901         (aarch64_detect_vector_stmt_subtype): ...here.
1902         (aarch64_add_stmt_cost): Treat extracting element 0 as free.
1904 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1906         * config/aarch64/aarch64-protos.h (sve_vec_cost):
1907         Add gather_load_x32_cost and gather_load_x64_cost.
1908         * config/aarch64/aarch64.c (generic_sve_vector_cost)
1909         (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
1910         accordingly, using the values given by the scalar_load * number
1911         of elements calculation that we used previously.
1912         (aarch64_detect_vector_stmt_subtype): Use the new fields.
1914 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1916         * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
1917         function, split out from...
1918         (aarch64_adjust_body_cost): ...here.
1920 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1922         * config/aarch64/fractional-cost.h: New file.
1923         * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
1924         and cost_fraction.h.
1925         (vec_cost_fraction): New typedef.
1926         (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
1927         (aarch64_detect_vector_stmt_subtype): Likewise.
1928         (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
1929         (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
1930         for cycle counts.
1931         (aarch64_adjust_body_cost): Likewise.
1932         (aarch64_test_cost_fraction): New function.
1933         (aarch64_run_selftests): Call it.
1935 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
1937         * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
1938         into a bitmask.
1939         * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
1940         accordingly.
1941         (aarch64_estimated_poly_value): Likewise.  Use the least significant
1942         set bit for the minimum and likely values.  Use the most significant
1943         set bit for the maximum value.
1945 2021-08-03  liuhongt  <hongtao.liu@intel.com>
1947         * config/i386/sse.md (cond_<insn><mode>): New expander.
1948         (cond_mul<mode>): Ditto.
1950 2021-08-03  Kewen Lin  <linkw@linux.ibm.com>
1952         * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
1954 2021-08-03  liuhongt  <hongtao.liu@intel.com>
1956         * config/i386/sse.md (cond_<insn><mode>):New expander.
1957         (cond_mul<mode>): Ditto.
1958         (cond_div<mode>): Ditto.
1960 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
1962         * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
1963         check stack_realign_needed for stack realignment.
1964         (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
1965         than the largest integer supported by vector register.
1966         * config/i386/i386.h (MAX_MOVE_MAX): New.  Set to 64.
1967         (MOVE_MAX): Set to bytes of the largest integer supported by
1968         vector register.
1969         (STORE_MAX_PIECES): New.
1971 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
1973         * config/i386/i386-expand.c (ix86_expand_vector_move): Call
1974         ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
1975         data from one memory location to another.
1977 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
1979         PR middle-end/90773
1980         * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
1982 2021-08-02  Aldy Hernandez  <aldyh@redhat.com>
1984         PR tree-optimization/101724
1985         * params.opt: Remove --param=threader-iterative.
1986         * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
1987         iterative mode.
1989 2021-08-02  Tom de Vries  <tdevries@suse.de>
1991         PR middle-end/101665
1992         * doc/extend.texi (nonnull attribute): Improve documentation.
1994 2021-08-02  Andrew Pinski  <apinski@marvell.com>
1996         PR rtl-optimization/101683
1997         * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
1999 2021-08-02  Roger Sayle  <roger@nextmovesoftware.com>
2001         * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
2002         Renamed from cond_removal_in_popcount_clz_ctz_pattern.
2003         Add support for BSWAP, FFS, PARITY and CLRSB builtins.
2004         (tree_ssa_phiop_worker): Update call to function above.
2006 2021-08-01  H.J. Lu  <hjl.tools@gmail.com>
2008         PR target/78103
2009         * config/i386/i386.md (bsr_rex64_1_zext): New.
2010         (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
2011         with gen_bsr_rex64_1_zext.
2013 2021-07-31  Jakub Jelinek  <jakub@redhat.com>
2015         PR target/78103
2016         * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
2017         define_insn patterns.
2018         (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
2019         Add combine splitters for constant - clz.
2020         (clz<mode>2): Use a temporary pseudo for bsr result.
2022 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
2024         * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
2025         _mm_floor_sd, _mm_floor_ss): New.
2027 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
2029         * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
2030         _mm_ceil_sd, _mm_ceil_ss): New.
2032 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
2034         * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
2035         _mm_blend_ps, _mm_blendv_ps): New.
2037 2021-07-30  Roger Sayle  <roger@nextmovesoftware.com>
2038             Uroš Bizjak  <ubizjak@gmail.com>
2040         * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
2041         to generate a conditional move using the carry flag after sub $1.
2042         (peephole2): Eliminate a register-to-register move by inverting
2043         the condition of a conditional move.
2045 2021-07-30  Hans-Peter Nilsson  <hp@bitrange.com>
2047         * config/mmix/mmix.md ("call", "call_value", "*call_real")
2048         ("*call_value_real"): Don't generate rtx mentioning the generic
2049         operands 1 and 2 to "call", and similarly for "call_value".
2050         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
2051         (mmix_print_operand): Use '!' instead of 'p'.
2053 2021-07-30  Hans-Peter Nilsson  <hp@bitrange.com>
2055         * doc/md.texi (call): Correct information about operand 2.
2056         * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
2058 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
2060         * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
2062 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
2064         * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
2066 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
2068         * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
2069         const_basic_block..
2070         (*::get_bb_range): Ditto.
2071         (*::bb_range_p): Ditto.
2072         * gimple-range-cache.h: Change prototypes.
2074 2021-07-30  H.J. Lu  <hjl.tools@gmail.com>
2076         PR middle-end/90773
2077         * builtins.c (builtin_memcpy_read_str): Change the mode argument
2078         from scalar_int_mode to fixed_size_mode.
2079         (builtin_strncpy_read_str): Likewise.
2080         (gen_memset_value_from_prev): New function.
2081         (builtin_memset_read_str): Change the mode argument from
2082         scalar_int_mode to fixed_size_mode.  Use gen_memset_value_from_prev
2083         and support CONST_VECTOR.
2084         (builtin_memset_gen_str): Likewise.
2085         (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
2086         constfun.
2087         * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
2088         with fixed_size_mode.
2089         (builtin_memset_read_str): Likewise.
2090         * expr.c (widest_int_mode_for_size): Renamed to ...
2091         (widest_fixed_size_mode_for_size): Add a bool argument to
2092         indicate if QI vector mode can be used.
2093         (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
2094         instead of widest_int_mode_for_size.
2095         (pieces_addr::adjust): Change the mode argument from
2096         scalar_int_mode to fixed_size_mode.
2097         (op_by_pieces_d): Make m_len read-only.  Add a bool member,
2098         m_qi_vector_mode, to indicate that QI vector mode can be used.
2099         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
2100         initialize m_qi_vector_mode.  Call widest_fixed_size_mode_for_size
2101         instead of widest_int_mode_for_size.
2102         (op_by_pieces_d::get_usable_mode): Change the mode argument from
2103         scalar_int_mode to fixed_size_mode.  Call
2104         widest_fixed_size_mode_for_size instead of
2105         widest_int_mode_for_size.
2106         (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
2107         function to return the smallest integer or QI vector mode.
2108         (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
2109         instead of widest_int_mode_for_size.  Call
2110         smallest_fixed_size_mode_for_size instead of
2111         smallest_int_mode_for_size.
2112         (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
2113         indicate that QI vector mode can be used and pass it to
2114         op_by_pieces_d::op_by_pieces_d.
2115         (can_store_by_pieces): Call widest_fixed_size_mode_for_size
2116         instead of widest_int_mode_for_size.  Pass memsetp to
2117         widest_fixed_size_mode_for_size to support QI vector mode.
2118         Allow all CONST_VECTORs for memset if vec_duplicate is supported.
2119         (store_by_pieces): Pass memsetp to
2120         store_by_pieces_d::store_by_pieces_d.
2121         (clear_by_pieces_1): Removed.
2122         (clear_by_pieces): Replace clear_by_pieces_1 with
2123         builtin_memset_read_str and pass true to store_by_pieces_d to
2124         support vector mode broadcast.
2125         (string_cst_read_str): Change the mode argument from
2126         scalar_int_mode to fixed_size_mode.
2127         * expr.h (by_pieces_constfn): Change scalar_int_mode to
2128         fixed_size_mode.
2129         (by_pieces_prev): Likewise.
2130         * rtl.h (lowpart_subreg_regno): New.
2131         * rtlanal.c (lowpart_subreg_regno): New.  A wrapper around
2132         simplify_subreg_regno.
2133         * target.def (gen_memset_scratch_rtx): New hook.
2134         * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
2135         * doc/tm.texi: Regenerated.
2137 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
2139         PR target/94780
2140         * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
2141           TARGET_EXPR instead of MODIFY_EXPR.
2143 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
2145         PR target/101132
2146         * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
2147         * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
2148         * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
2149           expander.
2150           (vec_cmpu<IMSA:mode><mode_i>): New expander.
2152 2021-07-30  H.J. Lu  <hjl.tools@gmail.com>
2154         PR target/101685
2155         * config/i386/i386-options.c (ix86_option_override_internal):
2156         Don't enable LZCNT/POPCNT if they have been disabled explicitly.
2158 2021-07-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
2160         PR target/66791
2161         * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
2162         explicitly dereferencing __a.
2163         (vld1_s64): Likewise.
2164         (vld1_u64): Likewise.
2165         * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
2166         and change to VAR13.
2168 2021-07-30  Aldy Hernandez  <aldyh@redhat.com>
2170         * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
2171         use of m_range_analyzer.
2172         (loop_versioning::lv_dom_walker::before_dom_children): Same.
2173         (loop_versioning::lv_dom_walker::after_dom_children): Remove.
2174         (loop_versioning::prune_loop_conditions): Replace vr_values use
2175         with range_query interface.
2176         (pass_loop_versioning::execute): Use ranger.
2178 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
2180         PR ipa/101396
2181         * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
2182           enum values, and emit a warning if they mismatch.
2184 2021-07-30  Kewen Lin  <linkw@linux.ibm.com>
2186         * cfgloop.h (as_const): New function.
2187         (class loop_iterator): Rename to ...
2188         (class loops_list): ... this.
2189         (loop_iterator::next): Rename to ...
2190         (loops_list::Iter::fill_curr_loop): ... this and adjust.
2191         (loop_iterator::loop_iterator): Rename to ...
2192         (loops_list::loops_list): ... this and adjust.
2193         (loops_list::Iter): New class.
2194         (loops_list::iterator): New type.
2195         (loops_list::const_iterator): New type.
2196         (loops_list::begin): New function.
2197         (loops_list::end): Likewise.
2198         (loops_list::begin const): Likewise.
2199         (loops_list::end const): Likewise.
2200         (FOR_EACH_LOOP): Remove.
2201         (FOR_EACH_LOOP_FN): Remove.
2202         * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
2203         for loop with loops_list instance.
2204         (sort_sibling_loops): Likewise.
2205         (disambiguate_loops_with_multiple_latches): Likewise.
2206         (verify_loop_structure): Likewise.
2207         * cfgloopmanip.c (create_preheaders): Likewise.
2208         (force_single_succ_latches): Likewise.
2209         * config/aarch64/falkor-tag-collision-avoidance.c
2210         (execute_tag_collision_avoidance): Likewise.
2211         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
2212         * config/s390/s390.c (s390_adjust_loops): Likewise.
2213         * doc/loop.texi: Likewise.
2214         * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
2215         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
2216         * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
2217         (loop_versioning::make_versioning_decisions): Likewise.
2218         * gimple-ssa-split-paths.c (split_paths): Likewise.
2219         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
2220         * graphite.c (canonicalize_loop_form): Likewise.
2221         (graphite_transform_loops): Likewise.
2222         * ipa-fnsummary.c (analyze_function_body): Likewise.
2223         * ipa-pure-const.c (analyze_function): Likewise.
2224         * loop-doloop.c (doloop_optimize_loops): Likewise.
2225         * loop-init.c (loop_optimizer_finalize): Likewise.
2226         (fix_loop_structure): Likewise.
2227         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2228         (move_loop_invariants): Likewise.
2229         * loop-unroll.c (decide_unrolling): Likewise.
2230         (unroll_loops): Likewise.
2231         * modulo-sched.c (sms_schedule): Likewise.
2232         * predict.c (predict_loops): Likewise.
2233         (pass_profile::execute): Likewise.
2234         * profile.c (branch_prob): Likewise.
2235         * sel-sched-ir.c (sel_finish_pipelining): Likewise.
2236         (sel_find_rgns): Likewise.
2237         * tree-cfg.c (replace_loop_annotate): Likewise.
2238         (replace_uses_by): Likewise.
2239         (move_sese_region_to_fn): Likewise.
2240         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
2241         * tree-loop-distribution.c (loop_distribution::execute): Likewise.
2242         * tree-parloops.c (parallelize_loops): Likewise.
2243         * tree-predcom.c (tree_predictive_commoning): Likewise.
2244         * tree-scalar-evolution.c (scev_initialize): Likewise.
2245         (scev_reset): Likewise.
2246         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
2247         * tree-ssa-live.c (remove_unused_locals): Likewise.
2248         * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
2249         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2250         (tree_ssa_lim_initialize): Likewise.
2251         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
2252         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
2253         * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
2254         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
2255         (free_numbers_of_iterations_estimates): Likewise.
2256         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
2257         * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
2258         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
2259         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
2260         (pass_scev_cprop::execute): Likewise.
2261         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
2262         * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
2263         * tree-ssa-threadupdate.c
2264         (jump_thread_path_registry::thread_through_all_blocks): Likewise.
2265         * tree-vectorizer.c (vectorize_loops): Likewise.
2266         * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
2268 2021-07-29  Hans-Peter Nilsson  <hp@bitrange.com>
2270         * config/mmix/mmix.c (mmix_function_arg_1): Avoid
2271         generating a VOIDmode register for e.g the
2272         function_arg_info::end_marker.
2274 2021-07-29  Jeff Law  <jeffreyalaw@gmail.com>
2276         * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
2277         * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
2278         (cc mode_attr): Similarly.
2279         (ccz subst_attr): Similarly.
2280         * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
2281         * config/h8300/testcompare.md: Remove various cc0 based patterns
2282         that had been commented out.  Add pattern to set CCZ from a bit
2283         test.
2285 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
2286             Julian Brown  <julian@codesourcery.com>
2287             Kwok Cheung Yeung  <kcy@codesourcery.com>
2289         * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
2290         'update_stmt' after modification.
2291         (pass_oacc_loop_designation): New function, extracted out of...
2292         (pass_oacc_device_lower): ... this.
2293         (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
2294         (make_pass_oacc_loop_designation): New
2295         * passes.def: Add it.
2296         * tree-parloops.c (create_parallel_loop): Adjust.
2297         * tree-pass.h (make_pass_oacc_loop_designation): New.
2299 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
2301         * flag-types.h (enum threader_mode): New.
2302         * params.opt: Add entry for --param=threader-mode.
2303         * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
2304         (class back_threader): New.
2305         (back_threader::back_threader): New.
2306         (back_threader::~back_threader): New.
2307         (back_threader::maybe_register_path): New.
2308         (back_threader::find_taken_edge): New.
2309         (back_threader::find_taken_edge_switch): New.
2310         (back_threader::find_taken_edge_cond): New.
2311         (back_threader::resolve_def): New.
2312         (back_threader::resolve_phi): New.
2313         (back_threader::find_paths_to_names): New.
2314         (back_threader::find_paths): New.
2315         (dump_path): New.
2316         (debug): New.
2317         (thread_jumps::find_jump_threads_backwards): Call ranger threader.
2318         (thread_jumps::find_jump_threads_backwards_with_ranger): New.
2319         (pass_thread_jumps::execute): Abstract out code...
2320         (try_thread_blocks): ...here.
2321         * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
2322         Abstract out threading candidate code to...
2323         (single_succ_to_potentially_threadable_block): ...here.
2324         * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
2325         New.
2326         * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
2327         * tree-ssa-threadupdate.h (class jump_thread_path_registry):
2328         Return bool from register_jump_thread.
2330 2021-07-29  Andreas Krebbel  <krebbel@linux.ibm.com>
2332         * target.def: in0 and in1 do not need to be registers.
2333         * doc/tm.texi: Regenerate.
2335 2021-07-29  liuhongt  <hongtao.liu@intel.com>
2337         PR target/39821
2338         * config/i386/i386.c (ix86_widen_mult_cost): New function.
2339         (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
2340         WIDEN_MULT_EXPR.
2342 2021-07-29  Jiufu Guo  <guojiufu@linux.ibm.com>
2344         PR target/61837
2345         * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
2346         (rs6000_preferred_doloop_mode): New hook.
2347         * doc/tm.texi: Regenerate.
2348         * doc/tm.texi.in: Add hook preferred_doloop_mode.
2349         * target.def (preferred_doloop_mode): New hook.
2350         * targhooks.c (default_preferred_doloop_mode): New hook.
2351         * targhooks.h (default_preferred_doloop_mode): New hook.
2352         * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
2353         (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
2354         and compute_doloop_base_on_mode.
2356 2021-07-28  Martin Sebor  <msebor@redhat.com>
2358         PR middle-end/101494
2359         * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
2360         and size computation.
2362 2021-07-28  Martin Sebor  <msebor@redhat.com>
2364         PR middle-end/101601
2365         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
2366         a pointless test.
2367         Handle pointers to functions.
2369 2021-07-28  Martin Sebor  <msebor@redhat.com>
2371         * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
2372         * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
2373         * builtins.c (compute_objsize_r): Move to pointer-query.cc.
2374         (access_ref::access_ref): Same.
2375         (access_ref::phi): Same.
2376         (access_ref::get_ref): Same.
2377         (access_ref::size_remaining): Same.
2378         (access_ref::offset_in_range): Same.
2379         (access_ref::add_offset): Same.
2380         (access_ref::inform_access): Same.
2381         (ssa_name_limit_t::visit_phi): Same.
2382         (ssa_name_limit_t::leave_phi): Same.
2383         (ssa_name_limit_t::next): Same.
2384         (ssa_name_limit_t::next_phi): Same.
2385         (ssa_name_limit_t::~ssa_name_limit_t): Same.
2386         (pointer_query::pointer_query): Same.
2387         (pointer_query::get_ref): Same.
2388         (pointer_query::put_ref): Same.
2389         (pointer_query::flush_cache): Same.
2390         (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
2391         (check_nul_terminated_array): Same.
2392         (unterminated_array): Same.
2393         (maybe_warn_for_bound): Same.
2394         (check_read_access): Same.
2395         (warn_for_access): Same.
2396         (get_size_range): Same.
2397         (check_access): Same.
2398         (gimple_call_alloc_size): Move to tree.c.
2399         (gimple_parm_array_size): Move to pointer-query.cc.
2400         (get_offset_range): Same.
2401         (gimple_call_return_array): Same.
2402         (handle_min_max_size): Same.
2403         (handle_array_ref): Same.
2404         (handle_mem_ref): Same.
2405         (compute_objsize): Same.
2406         (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
2407         (call_dealloc_argno): Same.
2408         (fndecl_dealloc_argno): Same.
2409         (new_delete_mismatch_p): Same.
2410         (matching_alloc_calls_p): Same.
2411         (warn_dealloc_offset): Same.
2412         (maybe_emit_free_warning): Same.
2413         * builtins.h (check_nul_terminated_array): Move to
2414         gimple-ssa-warn-access.h.
2415         (check_nul_terminated_array): Same.
2416         (warn_string_no_nul): Same.
2417         (unterminated_array): Same.
2418         (class ssa_name_limit_t): Same.
2419         (class pointer_query): Same.
2420         (struct access_ref): Same.
2421         (class range_query): Same.
2422         (struct access_data): Same.
2423         (gimple_call_alloc_size): Same.
2424         (gimple_parm_array_size): Same.
2425         (compute_objsize): Same.
2426         (class access_data): Same.
2427         (maybe_emit_free_warning): Same.
2428         * calls.c (initialize_argument_information): Remove call to
2429         maybe_emit_free_warning.
2430         * gimple-array-bounds.cc: Include new header..
2431         * gimple-fold.c: Same.
2432         * gimple-ssa-sprintf.c: Same.
2433         * gimple-ssa-warn-restrict.c: Same.
2434         * passes.def: Add pass_warn_access.
2435         * tree-pass.h (make_pass_warn_access): Declare.
2436         * tree-ssa-strlen.c: Include new headers.
2437         * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
2438         * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
2439         * gimple-ssa-warn-access.cc: New file.
2440         * gimple-ssa-warn-access.h: New file.
2441         * pointer-query.cc: New file.
2442         * pointer-query.h: New file.
2444 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
2446         PR middle-end/101624
2447         * ubsan.c (maybe_instrument_pointer_overflow,
2448         instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
2449         PARM_DECLs or RESULT_DECLs.
2450         * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
2452 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
2454         PR middle-end/101642
2455         * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
2456         to type of bswap16 for comparison.
2457         (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
2459 2021-07-28  Richard Biener  <rguenther@suse.de>
2461         PR tree-optimization/101615
2462         * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
2463         at CTOR SLP graph entries.
2465 2021-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2467         * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
2468         Add "r,w" alternative.
2470 2021-07-28  H.J. Lu  <hjl.tools@gmail.com>
2472         PR target/101456
2473         * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
2474         AVX_U128_DIRTY when all bits are zero.
2476 2021-07-28  Richard Biener  <rguenther@suse.de>
2478         PR tree-optimization/101615
2479         * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
2480         external nodes cannot be permuted so make them perm_out 0.
2482 2021-07-28  Andrew Stubbs  <ams@codesourcery.com>
2484         PR target/100208
2485         * config.in: Regenerate.
2486         * config/gcn/gcn-hsa.h (A_FIJI): New define.
2487         (A_900): New define.
2488         (A_906): New define.
2489         (A_908): New define.
2490         (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
2491         * config/gcn/gcn.c (output_file_start): Adjust attributes according
2492         to the assembler capabilities.
2493         * config/gcn/mkoffload.c (main): Likewise.
2494         * configure: Regenerate.
2495         * configure.ac: Add tests for LLVM assembler attribute features.
2497 2021-07-28  Andrew MacLeod  <amacleod@redhat.com>
2499         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
2500         cond_false and cond_true on branches.
2502 2021-07-28  Bin Cheng  <bin.cheng@linux.alibaba.com>
2504         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
2505         gcc_stablesort.
2507 2021-07-28  Bin Cheng  <bin.cheng@linux.alibaba.com>
2509         * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
2511 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
2513         PR target/101611
2514         * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
2515         and vashrv4di3 expander, where the latter requires just TARGET_AVX2
2516         and has special !TARGET_AVX512VL expansion.
2517         (vashrv2di3<mask_name>): Rename to ...
2518         (vashrv2di3): ... this.  Change condition to TARGET_XOP || TARGET_AVX2
2519         and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
2521 2021-07-28  Martin Uecker  <muecker@gwdg.de>
2523         * calls.c (maybe_warn_rdwr_sizes): Correct argument
2524         numbers in warning that were switched.
2526 2021-07-28  Kewen Lin  <linkw@linux.ibm.com>
2528         PR tree-optimization/101596
2529         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
2530         by using new_type's precision instead.
2532 2021-07-28  liuhongt  <hongtao.liu@intel.com>
2534         PR target/99881
2535         * config/i386/i386.h (processor_costs): Add new member
2536         integer_to_sse.
2537         * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
2538         i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
2539         geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
2540         bdver_cost, znver1_cost, znver2_cost, znver3_cost,
2541         btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
2542         nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
2543         generic_cost, core_cost): Initialize integer_to_sse same value
2544         as sse_op.
2545         (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
2546         * config/i386/i386.c (ix86_builtin_vectorization_cost):
2547         Use integer_to_sse instead of sse_op to calculate the cost of
2548         vec_construct.
2550 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
2552         * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
2553         function.
2554         (write_init_file): Call write_ovld_static_init.
2556 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
2558         * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
2559         function.
2560         (write_init_file): Call write_bif_static_init.
2562 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
2564         * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
2565         (TYPE_MAP_SIZE): New macro.
2566         (type_map): New initialized variable.
2567         (typemap_cmp): New function.
2568         (write_type_node): Likewise.
2569         (write_fntype_init): Implement.
2571 2021-07-27  Martin Sebor  <msebor@redhat.com>
2573         PR tree-optimization/101584
2574         * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
2575         (check_defs): Call it.
2577 2021-07-27  Aldy Hernandez  <aldyh@redhat.com>
2579         * tree-ssa-dom.c (dom_jump_threader_simplifier):
2580         Put avail_exprs_stack in the class, instead of passing it to
2581         jump_threader_simplifier.
2582         (dom_jump_threader_simplifier::simplify): Add state argument.
2583         (dom_opt_dom_walker): Add state.
2584         (pass_dominator::execute): Pass state to threader.
2585         (dom_opt_dom_walker::before_dom_children): Use state.
2586         * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
2587         arguments by state.
2588         (jump_threader::record_temporary_equivalences_from_phis):
2589         Register equivalences through the state variable.
2590         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
2591         Record ranges in a statement through the state variable.
2592         (jump_threader::simplify_control_stmt_condition): Pass state to
2593         simplify.
2594         (jump_threader::simplify_control_stmt_condition_1): Same.
2595         (jump_threader::thread_around_empty_blocks): Remove obsolete
2596         comment.
2597         (jump_threader::thread_through_normal_block): Record equivalences
2598         on edge through the state variable.
2599         (jump_threader::thread_across_edge): Abstract state pushing.
2600         (jt_state::jt_state): New.
2601         (jt_state::push): New.
2602         (jt_state::pop): New.
2603         (jt_state::register_equiv): New.
2604         (jt_state::record_ranges_from_stmt): New.
2605         (jt_state::register_equivs_on_edge): New.
2606         (jump_threader_simplifier::jump_threader_simplifier): Move from
2607         header.
2608         (jump_threader_simplifier::simplify): Add state argument.
2609         * tree-ssa-threadedge.h (class jt_state): New.
2610         (class jump_threader): Add state to constructor.
2611         (class jump_threader_simplifier): Add state to simplify.  Remove
2612         avail_exprs_stack from class.
2613         * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
2614         argument.
2615         (vrp_jump_threader::vrp_jump_threader): Add state.
2616         (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
2618 2021-07-27  Aldy Hernandez  <aldyh@redhat.com>
2620         * Makefile.in (OBJS): Add gimple-range-path.o.
2621         * gimple-range-path.cc: New file.
2622         * gimple-range-path.h: New file.
2624 2021-07-27  Jonathan Wright  <jonathan.wright@arm.com>
2626         * config/aarch64/aarch64-simd.md: Push sign/zero-extension
2627         inside vec_duplicate for all patterns.
2628         * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
2629         Push sign/zero-extension inside vec_duplicate.
2631 2021-07-27  Richard Biener  <rguenther@suse.de>
2633         PR tree-optimization/101573
2634         * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
2635         looking at uninitialized PHI arg defs in some constrained cases.
2636         (warn_uninitialized_vars): Call it.
2637         (execute_early_warn_uninitialized): Calculate dominators.
2639 2021-07-27  Richard Biener  <rguenther@suse.de>
2641         PR tree-optimization/39821
2642         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
2643         vector_stmt for widening arithmetic.
2644         (vectorizable_conversion): Adjust.
2646 2021-07-27  Martin Jambor  <mjambor@suse.cz>
2648         * cgraph.h (ipa_replace_map): New field force_load_ref.
2649         * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
2650         aded new flag load_dereferenced, adjusted comments.
2651         (ipa_get_param_dereferenced): New function.
2652         (ipa_set_param_dereferenced): Likewise.
2653         * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
2654         * ipa-cp.c: Include gimple.h.
2655         (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
2656         (get_replacement_map): New parameter force_load_ref, set the
2657         appropriate flag in ipa_replace_map if set.
2658         (struct symbol_and_index_together): New type.
2659         (adjust_refs_in_act_callers): New function.
2660         (adjust_references_in_caller): Likewise.
2661         (create_specialized_node): When appropriate, call
2662         adjust_references_in_caller and force only load references.
2663         * ipa-prop.c (load_from_dereferenced_name): New function.
2664         (ipa_analyze_controlled_uses): Also detect loads from a
2665         dereference, harden testing of call statements.
2666         (ipa_write_node_info): Stream the dereferenced flag.
2667         (ipa_read_node_info): Likewise.
2668         (ipa_set_jf_constant): Also create refdesc when jump function
2669         references a variable.
2670         (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
2671         also on references of variables and return a symtab_node.  Adjust
2672         all callers.
2673         (propagate_controlled_uses): Also remove references to VAR_DECLs.
2675 2021-07-27  Jakub Jelinek  <jakub@redhat.com>
2677         PR middle-end/101586
2678         * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
2679         positions above or equal to sz except for diagnostics of flexible
2680         array members.
2682 2021-07-26  Andrew MacLeod  <amacleod@redhat.com>
2684         PR tree-optimization/78888
2685         * gimple-range-fold.cc (get_letter_range): New.
2686         (fold_using_range::range_of_builtin_call): Call get_letter_range.
2688 2021-07-26  Andrew MacLeod  <amacleod@redhat.com>
2690         PR tree-optimization/78888
2691         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
2692         for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
2694 2021-07-26  Roger Sayle  <roger@nextmovesoftware.com>
2695             Marc Glisse  <marc.glisse@inria.fr>
2697         * match.pd (rotate): Simplify equality/inequality of rotations.
2698         (bswap): Simplify equality/inequality tests of byte swapping.
2700 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
2702         * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
2703         New.
2705 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
2707         * range-op.cc (operator_lshift::fold_range): Pass rel to
2708         base class fold_range.
2709         (operator_rshift::fold_range): Same.
2711 2021-07-26  Ashimida  <ashimida@linux.alibaba.com>
2713         PR driver/101447
2714         * toplev.h (min_align_loops_log): Remove declaration.
2715         (min_align_jumps_log, min_align_labels_log): Likewise.
2716         (min_align_functions_log): Likewise.
2718 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
2720         * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
2721         with range_query.
2722         (execute_vrp): Abstract out simplification of conditionals...
2723         (simplify_casted_conds): ...here.
2725 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
2727         * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
2728         Add gimple argument.
2729         (array_bounds_checker::check_array_ref): Same.
2730         (array_bounds_checker::check_addr_expr): Same.
2731         (array_bounds_checker::check_array_bounds): Pass statement to
2732         check_array_bounds and check_addr_expr.
2733         * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
2734         (check_addr_expr): Same.
2735         (get_value_range): Same.
2737 2021-07-26  Tamar Christina  <tamar.christina@arm.com>
2739         * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
2740         (sdot_prod, udot_prod): ... This.
2741         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
2742         into...
2743         (<sur>dot_prod<vsi2qi>): ... this.
2744         (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
2745         Change operands order.
2746         (<sur>sadv16qi): Use new operands order.
2747         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
2748         vdotq_s32): Use new RTL ordering.
2750 2021-07-26  Tamar Christina  <tamar.christina@arm.com>
2752         * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
2753         aarch64_types_ternop_suss_qualifiers): New.
2754         * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
2755         * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
2756         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
2758 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
2760         PR rtl-optimization/101562
2761         * expmed.c (store_integral_bit_field): Only use movstrict_optab
2762         if the operand isn't paradoxical.
2764 2021-07-23  Aldy Hernandez  <aldyh@redhat.com>
2766         * gimple-array-bounds.h (class array_bounds_checker): Change
2767         ranges type to range_query.
2769 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2771         * config/aarch64/arm_neon.h (vst1_s64_x2): Use
2772         __builtin_memcpy instead of constructing
2773         __builtin_aarch64_simd_oi one vector at a time.
2774         (vst1_u64_x2): Likewise.
2775         (vst1_f64_x2): Likewise.
2776         (vst1_s8_x2): Likewise.
2777         (vst1_p8_x2): Likewise.
2778         (vst1_s16_x2): Likewise.
2779         (vst1_p16_x2): Likewise.
2780         (vst1_s32_x2): Likewise.
2781         (vst1_u8_x2): Likewise.
2782         (vst1_u16_x2): Likewise.
2783         (vst1_u32_x2): Likewise.
2784         (vst1_f16_x2): Likewise.
2785         (vst1_f32_x2): Likewise.
2786         (vst1_p64_x2): Likewise.
2787         (vst1q_s8_x2): Likewise.
2788         (vst1q_p8_x2): Likewise.
2789         (vst1q_s16_x2): Likewise.
2790         (vst1q_p16_x2): Likewise.
2791         (vst1q_s32_x2): Likewise.
2792         (vst1q_s64_x2): Likewise.
2793         (vst1q_u8_x2): Likewise.
2794         (vst1q_u16_x2): Likewise.
2795         (vst1q_u32_x2): Likewise.
2796         (vst1q_u64_x2): Likewise.
2797         (vst1q_f16_x2): Likewise.
2798         (vst1q_f32_x2): Likewise.
2799         (vst1q_f64_x2): Likewise.
2800         (vst1q_p64_x2): Likewise.
2802 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2804         * config/aarch64/arm_neon.h (vst1_s64_x3): Use
2805         __builtin_memcpy instead of constructing
2806         __builtin_aarch64_simd_ci one vector at a time.
2807         (vst1_u64_x3): Likewise.
2808         (vst1_f64_x3): Likewise.
2809         (vst1_s8_x3): Likewise.
2810         (vst1_p8_x3): Likewise.
2811         (vst1_s16_x3): Likewise.
2812         (vst1_p16_x3): Likewise.
2813         (vst1_s32_x3): Likewise.
2814         (vst1_u8_x3): Likewise.
2815         (vst1_u16_x3): Likewise.
2816         (vst1_u32_x3): Likewise.
2817         (vst1_f16_x3): Likewise.
2818         (vst1_f32_x3): Likewise.
2819         (vst1_p64_x3): Likewise.
2820         (vst1q_s8_x3): Likewise.
2821         (vst1q_p8_x3): Likewise.
2822         (vst1q_s16_x3): Likewise.
2823         (vst1q_p16_x3): Likewise.
2824         (vst1q_s32_x3): Likewise.
2825         (vst1q_s64_x3): Likewise.
2826         (vst1q_u8_x3): Likewise.
2827         (vst1q_u16_x3): Likewise.
2828         (vst1q_u32_x3): Likewise.
2829         (vst1q_u64_x3): Likewise.
2830         (vst1q_f16_x3): Likewise.
2831         (vst1q_f32_x3): Likewise.
2832         (vst1q_f64_x3): Likewise.
2833         (vst1q_p64_x3): Likewise.
2835 2021-07-23  H.J. Lu  <hjl.tools@gmail.com>
2837         PR target/101504
2838         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
2839         hard register when LRA is in progress.
2841 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2843         * config/aarch64/arm_neon.h (vst1_s8_x4): Use
2844         __builtin_memcpy instead of using a union.
2845         (vst1q_s8_x4): Likewise.
2846         (vst1_s16_x4): Likewise.
2847         (vst1q_s16_x4): Likewise.
2848         (vst1_s32_x4): Likewise.
2849         (vst1q_s32_x4): Likewise.
2850         (vst1_u8_x4): Likewise.
2851         (vst1q_u8_x4): Likewise.
2852         (vst1_u16_x4): Likewise.
2853         (vst1q_u16_x4): Likewise.
2854         (vst1_u32_x4): Likewise.
2855         (vst1q_u32_x4): Likewise.
2856         (vst1_f16_x4): Likewise.
2857         (vst1q_f16_x4): Likewise.
2858         (vst1_f32_x4): Likewise.
2859         (vst1q_f32_x4): Likewise.
2860         (vst1_p8_x4): Likewise.
2861         (vst1q_p8_x4): Likewise.
2862         (vst1_p16_x4): Likewise.
2863         (vst1q_p16_x4): Likewise.
2864         (vst1_s64_x4): Likewise.
2865         (vst1_u64_x4): Likewise.
2866         (vst1_p64_x4): Likewise.
2867         (vst1q_s64_x4): Likewise.
2868         (vst1q_u64_x4): Likewise.
2869         (vst1q_p64_x4): Likewise.
2870         (vst1_f64_x4): Likewise.
2871         (vst1q_f64_x4): Likewise.
2873 2021-07-23  Jonathan Wrightt  <jonathan.wright@arm.com>
2875         * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
2876         instead of constructing __builtin_aarch64_simd_oi one vector
2877         at a time.
2878         (vst2_u64): Likewise.
2879         (vst2_f64): Likewise.
2880         (vst2_s8): Likewise.
2881         (vst2_p8): Likewise.
2882         (vst2_s16): Likewise.
2883         (vst2_p16): Likewise.
2884         (vst2_s32): Likewise.
2885         (vst2_u8): Likewise.
2886         (vst2_u16): Likewise.
2887         (vst2_u32): Likewise.
2888         (vst2_f16): Likewise.
2889         (vst2_f32): Likewise.
2890         (vst2_p64): Likewise.
2891         (vst2q_s8): Likewise.
2892         (vst2q_p8): Likewise.
2893         (vst2q_s16): Likewise.
2894         (vst2q_p16): Likewise.
2895         (vst2q_s32): Likewise.
2896         (vst2q_s64): Likewise.
2897         (vst2q_u8): Likewise.
2898         (vst2q_u16): Likewise.
2899         (vst2q_u32): Likewise.
2900         (vst2q_u64): Likewise.
2901         (vst2q_f16): Likewise.
2902         (vst2q_f32): Likewise.
2903         (vst2q_f64): Likewise.
2904         (vst2q_p64): Likewise.
2906 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2908         * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
2909         instead of constructing __builtin_aarch64_simd_ci one vector
2910         at a time.
2911         (vst3_u64): Likewise.
2912         (vst3_f64): Likewise.
2913         (vst3_s8): Likewise.
2914         (vst3_p8): Likewise.
2915         (vst3_s16): Likewise.
2916         (vst3_p16): Likewise.
2917         (vst3_s32): Likewise.
2918         (vst3_u8): Likewise.
2919         (vst3_u16): Likewise.
2920         (vst3_u32): Likewise.
2921         (vst3_f16): Likewise.
2922         (vst3_f32): Likewise.
2923         (vst3_p64): Likewise.
2924         (vst3q_s8): Likewise.
2925         (vst3q_p8): Likewise.
2926         (vst3q_s16): Likewise.
2927         (vst3q_p16): Likewise.
2928         (vst3q_s32): Likewise.
2929         (vst3q_s64): Likewise.
2930         (vst3q_u8): Likewise.
2931         (vst3q_u16): Likewise.
2932         (vst3q_u32): Likewise.
2933         (vst3q_u64): Likewise.
2934         (vst3q_f16): Likewise.
2935         (vst3q_f32): Likewise.
2936         (vst3q_f64): Likewise.
2937         (vst3q_p64): Likewise.
2939 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2941         * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
2942         instead of constructing __builtin_aarch64_simd_xi one vector
2943         at a time.
2944         (vst4_u64): Likewise.
2945         (vst4_f64): Likewise.
2946         (vst4_s8): Likewise.
2947         (vst4_p8): Likewise.
2948         (vst4_s16): Likewise.
2949         (vst4_p16): Likewise.
2950         (vst4_s32): Likewise.
2951         (vst4_u8): Likewise.
2952         (vst4_u16): Likewise.
2953         (vst4_u32): Likewise.
2954         (vst4_f16): Likewise.
2955         (vst4_f32): Likewise.
2956         (vst4_p64): Likewise.
2957         (vst4q_s8): Likewise.
2958         (vst4q_p8): Likewise.
2959         (vst4q_s16): Likewise.
2960         (vst4q_p16): Likewise.
2961         (vst4q_s32): Likewise.
2962         (vst4q_s64): Likewise.
2963         (vst4q_u8): Likewise.
2964         (vst4q_u16): Likewise.
2965         (vst4q_u32): Likewise.
2966         (vst4q_u64): Likewise.
2967         (vst4q_f16): Likewise.
2968         (vst4q_f32): Likewise.
2969         (vst4q_f64): Likewise.
2970         (vst4q_p64): Likewise.
2972 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2974         * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
2975         instead of constructing __builtin_aarch64_simd_oi one vector
2976         at a time.
2977         (vtbx4_u8): Likewise.
2978         (vtbx4_p8): Likewise.
2980 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2982         * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
2983         instead of constructing __builtin_aarch64_simd_oi one vector
2984         at a time.
2985         (vtbl3_u8): Likewise.
2986         (vtbl3_p8): Likewise.
2987         (vtbl4_s8): Likewise.
2988         (vtbl4_u8): Likewise.
2989         (vtbl4_p8): Likewise.
2991 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
2993         * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
2994         instead of constructing __builtin_aarch64_simd_oi one vector
2995         at a time.
2996         (vqtbx2_u8): Likewise.
2997         (vqtbx2_p8): Likewise.
2998         (vqtbx2q_s8): Likewise.
2999         (vqtbx2q_u8): Likewise.
3000         (vqtbx2q_p8): Likewise.
3001         (vqtbx3_s8): Use __builtin_memcpy instead of constructing
3002         __builtin_aarch64_simd_ci one vector at a time.
3003         (vqtbx3_u8): Likewise.
3004         (vqtbx3_p8): Likewise.
3005         (vqtbx3q_s8): Likewise.
3006         (vqtbx3q_u8): Likewise.
3007         (vqtbx3q_p8): Likewise.
3008         (vqtbx4_s8): Use __builtin_memcpy instead of constructing
3009         __builtin_aarch64_simd_xi one vector at a time.
3010         (vqtbx4_u8): Likewise.
3011         (vqtbx4_p8): Likewise.
3012         (vqtbx4q_s8): Likewise.
3013         (vqtbx4q_u8): Likewise.
3014         (vqtbx4q_p8): Likewise.
3016 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
3018         * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
3019         instead of constructing __builtin_aarch64_simd_oi one vector
3020         at a time.
3021         (vqtbl2_u8): Likewise.
3022         (vqtbl2_p8): Likewise.
3023         (vqtbl2q_s8): Likewise.
3024         (vqtbl2q_u8): Likewise.
3025         (vqtbl2q_p8): Likewise.
3026         (vqtbl3_s8): Use __builtin_memcpy instead of constructing
3027         __builtin_aarch64_simd_ci one vector at a time.
3028         (vqtbl3_u8): Likewise.
3029         (vqtbl3_p8): Likewise.
3030         (vqtbl3q_s8): Likewise.
3031         (vqtbl3q_u8): Likewise.
3032         (vqtbl3q_p8): Likewise.
3033         (vqtbl4_s8): Use __builtin_memcpy instead of constructing
3034         __builtin_aarch64_simd_xi one vector at a time.
3035         (vqtbl4_u8): Likewise.
3036         (vqtbl4_p8): Likewise.
3037         (vqtbl4q_s8): Likewise.
3038         (vqtbl4q_u8): Likewise.
3039         (vqtbl4q_p8): Likewise.
3041 2021-07-23  Haochen Gui  <guihaoc@gcc.gnu.org>
3043         PR target/100952
3044         * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
3046 2021-07-22  Andrew Pinski  <apinski@marvell.com>
3048         PR tree-optimization/10153
3049         * tree-tailcall.c (create_tailcall_accumulator):
3050         Don't call fold_convert as the type should be correct already.
3051         (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
3052         of integer_{one,zero}_node for the call of create_tailcall_accumulator.
3054 2021-07-22  Aldy Hernandez  <aldyh@redhat.com>
3056         * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
3057         varying_p check for null/non-null check.
3059 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
3061         PR tree-optimization/101511
3062         * value-relation.cc (relation_oracle::query_relation): Check if ssa1
3063         is in ssa2's equiv set, and don't trap if so.
3065 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
3067         PR tree-optimization/101497
3068         * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
3069         for undefined.
3071 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
3073         PR tree-optimization/101496
3074         * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
3075         first, then vrp_visit_cond_Stmt.
3077 2021-07-22  liuhongt  <hongtao.liu@intel.com>
3079         * config/i386/i386-expand.c
3080         (ix86_broadcast_from_integer_constant): Rename to ..
3081         (ix86_broadcast_from_constant): .. this, and extend it to
3082         handle float mode.
3083         (ix86_expand_vector_move): Extend to float mode.
3084         * config/i386/i386-features.c
3085         (replace_constant_pool_with_broadcast): Remove.
3086         (remove_partial_avx_dependency_gate): Ditto.
3087         (constant_pool_broadcast): Ditto.
3088         (class pass_constant_pool_broadcast): Ditto.
3089         (make_pass_constant_pool_broadcast): Ditto.
3090         (remove_partial_avx_dependency): Adjust gate.
3091         * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
3092         * config/i386/i386-protos.h
3093         (make_pass_constant_pool_broadcast): Remove.
3095 2021-07-22  liuhongt  <hongtao.liu@intel.com>
3097         * config/i386/constraints.md (Wb): New constraint.
3098         (Ww): Ditto.
3099         * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
3100         shift.
3101         (*ashlqi3_1): Ditto.
3102         (*<insn><mode>3_1): Split to ..
3103         (*ashr<mode>3_1): this, ...
3104         (*lshr<mode>3_1): and this, also extend this pattern to avx512
3105         mask registers.
3106         (*<insn><mode>3_1): Split to ..
3107         (*ashr<mode>3_1): this, ...
3108         (*lshrqi3_1): and this, also extend this pattern to avx512
3109         mask registers.
3110         (*lshrhi3_1): And this, also extend this pattern to avx512
3111         mask registers.
3112         * config/i386/sse.md (k<code><mode>): New define_split after
3113         it to convert generic shift pattern to mask shift ones.
3115 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
3116             Joseph Myers  <joseph@codesourcery.com>
3117             Cesar Philippidis  <cesar@codesourcery.com>
3119         * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
3120         * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
3121         Handle it.
3122         * tree-pretty-print.c (dump_omp_clause): Likewise.
3123         * omp-general.c (oacc_verify_routine_clauses): Likewise.
3124         * gimplify.c (gimplify_scan_omp_clauses)
3125         (gimplify_adjust_omp_clauses): Likewise.
3126         * tree-nested.c (convert_nonlocal_omp_clauses)
3127         (convert_local_omp_clauses): Likewise.
3128         * omp-low.c (scan_sharing_clauses): Likewise.
3129         * omp-offload.c (execute_oacc_device_lower): Update.
3131 2021-07-21  Martin Sebor  <msebor@redhat.com>
3133         * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
3135 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
3137         * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
3138         Implement.
3140 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
3142         * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
3143         callback function.
3144         (write_fntype_init): New stub function.
3145         (write_init_bif_table): Likewise.
3146         (write_init_ovld_table): New function.
3147         (write_init_file): Implement.
3149 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
3151         * config/rs6000/rs6000-gen-builtins.c
3152         (write_autogenerated_header): New function.
3153         (write_decls): Likewise.
3154         (write_extern_fntype): New callback function.
3155         (write_header_file): Implement.
3157 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
3159         * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
3160         Implement.
3162 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
3164         * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
3165         function.
3166         (complete_base_type): Likewise.
3167         (construct_fntype_id): Likewise.
3168         (parse_bif_entry): Call contruct_fntype_id.
3169         (parse_ovld_entry): Likewise.
3171 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
3173         * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
3174         (MAXOVLDSTANZAS): New macro.
3175         (ovld_stanzas): New variable.
3176         (curr_ovld_stanza): Likewise.
3177         (MAXOVLDS): New macro.
3178         (ovlddata): New struct.
3179         (ovlds): New variable.
3180         (curr_ovld): Likewise.
3181         (max_ovld_args): Likewise.
3182         (parse_ovld_entry): New function.
3183         (parse_ovld_stanza): Likewise.
3184         (parse_ovld): Implement.
3186 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
3188         * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
3189         Implement.
3191 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
3193         * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
3194         (parse_prototype): Implement.
3196 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
3198         * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
3199         (curr_bif_stanza): New variable.
3200         (stanza_entry): New struct.
3201         (stanza_map): New initialized variable.
3202         (enable_string): Likewise.
3203         (fnkinds): New enum.
3204         (typelist): New struct.
3205         (attrinfo): Likewise.
3206         (MAXRESTROPNDS): New macro.
3207         (prototype): New struct.
3208         (MAXBIFS): New macro.
3209         (bifdata): New struct.
3210         (bifs): New variable.
3211         (curr_bif): Likewise.
3212         (bif_order): Likewise.
3213         (bif_index): Likewise.
3214         (fatal): New function.
3215         (stanza_name_to_stanza): Likewise.
3216         (parse_bif_attrs): New stub function.
3217         (parse_prototype): Likewise.
3218         (parse_bif_entry): New function.
3219         (parse_bif_stanza): Likewise.
3220         (parse_bif): Implement.
3221         (set_bif_order): New function.
3222         (create_bif_order): Implement.
3224 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
3226         * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
3227         (num_bifs): New variable.
3228         (num_ovld_stanzas): Likewise.
3229         (num_ovlds): Likewise.
3230         (parse_codes): New enum.
3231         (bif_rbt): New variable.
3232         (ovld_rbt): Likewise.
3233         (fntype_rbt): Likewise.
3234         (bifo_rbt): Likewise.
3235         (parse_bif): New stub function.
3236         (create_bif_order): Likewise.
3237         (parse_ovld): Likewise.
3238         (write_header_file): Likewise.
3239         (write_init_file): Likewise.
3240         (write_defines_file): Likewise.
3241         (delete_output_files): New function.
3242         (main): Likewise.
3244 2021-07-21  H.J. Lu  <hjl.tools@gmail.com>
3246         PR target/101549
3247         * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
3248         from CRC32 _builtin functions.
3250 2021-07-21  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3252         * coverage.c (build_gcov_info_var_registration): Mark the object placed
3253         in the linker set as referenced so that it does not get optimized away.
3255 2021-07-21  Kito Cheng  <kito.cheng@sifive.com>
3257         Revert:
3258         2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
3260         * config.gcc (riscv*-*-*): Detect which python is available.
3262 2021-07-21  Jakub Jelinek  <jakub@redhat.com>
3264         PR middle-end/101535
3265         * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
3266         contexts in which decl isn't privatized and for ORT_TARGET return
3267         false if decl is mapped.
3269 2021-07-21  Richard Sandiford  <richard.sandiford@arm.com>
3271         * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
3272         (tree_loop_unroll_and_jam): Run value-numbering on a loop that
3273         has been successfully unrolled.
3275 2021-07-21  Richard Sandiford  <richard.sandiford@arm.com>
3277         * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
3278         exit condition if no tail loop is needed, and if the original exit
3279         condition should therefore be kept as-is.
3280         (tree_transform_and_unroll_loop): Handle that case here too.
3282 2021-07-21  Kewen Lin  <linkw@linux.ibm.com>
3284         * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
3285         by reference.
3286         (free_data_refs): Likewise.
3287         * tree-data-ref.h (free_dependence_relations): Likewise.
3288         (free_data_refs): Likewise.
3289         * tree-predcom.c (struct chain): Use auto_vec instead of vec for
3290         members.
3291         (struct component): Likewise.
3292         (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
3293         (pcom_worker::~pcom_worker): Likewise.
3294         (pcom_worker::release_chain): Adjust as auto_vec changes.
3295         (pcom_worker::loop): Rename to ...
3296         (pcom_worker::m_loop): ... this.
3297         (pcom_worker::datarefs): Rename to ...
3298         (pcom_worker::m_datarefs): ... this.  Use auto_vec instead of vec.
3299         (pcom_worker::dependences): Rename to ...
3300         (pcom_worker::m_dependences): ... this.  Use auto_vec instead of vec.
3301         (pcom_worker::chains): Rename to ...
3302         (pcom_worker::m_chains): ... this.  Use auto_vec instead of vec.
3303         (pcom_worker::looparound_phis): Rename to ...
3304         (pcom_worker::m_looparound_phis): ... this.  Use auto_vec instead of
3305         vec.
3306         (pcom_worker::cache): Rename to ...
3307         (pcom_worker::m_cache): ... this.  Use auto_vec instead of vec.
3308         (pcom_worker::release_chain): Adjust for auto_vec changes.
3309         (pcom_worker::release_chains): Adjust for auto_vec and renaming
3310         changes.
3311         (release_component): Remove.
3312         (release_components): Adjust for release_component removal.
3313         (component_of): Adjust to use vec.
3314         (merge_comps): Likewise.
3315         (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
3316         (pcom_worker::determine_offset): Likewise.
3317         (class comp_ptrs): Remove.
3318         (pcom_worker::split_data_refs_to_components): Adjust for renaming
3319         changes, for comp_ptrs removal with auto_vec.
3320         (pcom_worker::suitable_component_p): Adjust for renaming changes.
3321         (pcom_worker::filter_suitable_components): Adjust for release_component
3322         removal.
3323         (pcom_worker::valid_initializer_p): Adjust for renaming changes.
3324         (pcom_worker::find_looparound_phi): Likewise.
3325         (pcom_worker::add_looparound_copies): Likewise.
3326         (pcom_worker::determine_roots_comp): Likewise.
3327         (pcom_worker::single_nonlooparound_use): Likewise.
3328         (pcom_worker::execute_pred_commoning_chain): Likewise.
3329         (pcom_worker::execute_pred_commoning): Likewise.
3330         (pcom_worker::try_combine_chains): Likewise.
3331         (pcom_worker::prepare_initializers_chain): Likewise.
3332         (pcom_worker::prepare_initializers): Likewise.
3333         (pcom_worker::prepare_finalizers_chain): Likewise.
3334         (pcom_worker::prepare_finalizers): Likewise.
3335         (pcom_worker::tree_predictive_commoning_loop): Likewise.
3337 2021-07-20  Martin Sebor  <msebor@redhat.com>
3339         PR middle-end/101397
3340         * builtins.c (gimple_call_return_array): Add argument.  Correct
3341         offsets for memchr, mempcpy, stpcpy, and stpncpy.
3342         (compute_objsize_r): Adjust offset computation for argument returning
3343         built-ins.
3345 2021-07-20  Martin Sebor  <msebor@redhat.com>
3347         PR middle-end/101300
3348         * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
3350 2021-07-20  Jeff Law  <jlaw@localhost.localdomain>
3352         * function.c (assign_parm_setup_block): Use adjust_address instead
3353         of change_address to preserve MEM_EXPR and friends.
3355 2021-07-20  Martin Sebor  <msebor@redhat.com>
3357         * cfgloop.h (single_likely_exit): Adjust by-value argument to
3358         by-const-reference.
3359         * cfgloopanal.c (single_likely_exit): Same.
3360         * cgraph.h (struct cgraph_node): Same.
3361         * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
3362         * genautomata.c (merge_states): Same.
3363         * genextract.c (VEC_char_to_string): Same.
3364         * genmatch.c (dt_node::gen_kids_1): Same.
3365         (walk_captures): Adjust by-value argument to by-reference.
3366         * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
3367         to by-const-reference.
3368         * gimple.c (gimple_build_call_vec): Same.
3369         (gimple_build_call_internal_vec): Same.
3370         (gimple_build_switch): Same.
3371         (sort_case_labels): Same.
3372         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
3373         by-reference.
3374         * gimple.h (gimple_build_call_vec): Adjust by-value argument to
3375         by-const-reference.
3376         (gimple_build_call_internal_vec): Same.
3377         (gimple_build_switch): Same.
3378         (sort_case_labels): Same.
3379         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
3380         by-reference.
3381         * haifa-sched.c (calc_priorities): Adjust by-value argument to
3382         by-const-reference.
3383         (sched_init_luids): Same.
3384         (haifa_init_h_i_d): Same.
3385         * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
3386         (adjust_callers_for_value_intersection): Adjust by-value argument to
3387         by-reference.
3388         (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
3389         by-const-reference.
3390         (find_more_contexts_for_caller_subset): Same.
3391         (find_aggregate_values_for_callers_subset): Same.
3392         (copy_useful_known_contexts): Same.
3393         * ipa-fnsummary.c (remap_edge_summaries): Same.
3394         (remap_freqcounting_predicate): Same.
3395         * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
3396         by-reference.
3397         * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
3398         to by-const-reference.
3399         * ipa-predicate.h (predicate::remap_after_inlining): Same.
3400         * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
3401         * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
3402         * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
3403         * read-rtl.c (add_overload_instance): Same.
3404         * rtl.h (native_decode_rtx): Same.
3405         (native_decode_vector_rtx): Same.
3406         * sched-int.h (sched_init_luids): Same.
3407         (haifa_init_h_i_d): Same.
3408         * simplify-rtx.c (native_decode_vector_rtx): Same.
3409         (native_decode_rtx): Same.
3410         * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
3411         (shrink_wrap_one_built_in_call_with_conds): Same.
3412         (shrink_wrap_conditional_dead_built_in_calls): Same.
3413         * tree-data-ref.c (create_runtime_alias_checks): Same.
3414         (compute_all_dependences): Same.
3415         * tree-data-ref.h (compute_all_dependences): Same.
3416         (create_runtime_alias_checks): Same.
3417         (index_in_loop_nest): Same.
3418         * tree-if-conv.c (mask_exists): Same.
3419         * tree-loop-distribution.c (class loop_distribution): Same.
3420         (loop_distribution::create_rdg_vertices): Same.
3421         (dump_rdg_partitions): Same.
3422         (debug_rdg_partitions): Same.
3423         (partition_contains_all_rw): Same.
3424         (loop_distribution::distribute_loop): Same.
3425         * tree-parloops.c (oacc_entry_exit_ok_1): Same.
3426         (oacc_entry_exit_single_gang): Same.
3427         * tree-ssa-loop-im.c (hoist_memory_references): Same.
3428         (loop_suitable_for_sm): Same.
3429         * tree-ssa-loop-niter.c (bound_index): Same.
3430         * tree-ssa-reassoc.c (update_ops): Same.
3431         (swap_ops_for_binary_stmt): Same.
3432         (rewrite_expr_tree): Same.
3433         (rewrite_expr_tree_parallel): Same.
3434         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
3435         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
3436         * tree-ssa-structalias.c (process_all_all_constraints): Same.
3437         (make_constraints_to): Same.
3438         (handle_lhs_call): Same.
3439         (find_func_aliases_for_builtin_call): Same.
3440         (sort_fieldstack): Same.
3441         (check_for_overlaps): Same.
3442         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
3443         (vect_create_cond_for_unequal_addrs): Same.
3444         (vect_create_cond_for_lower_bounds): Same.
3445         (vect_create_cond_for_alias_checks): Same.
3446         * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
3447         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
3448         (vect_make_slp_decision): Same.
3449         (vect_slp_bbs): Same.
3450         (duplicate_and_interleave): Same.
3451         (vect_transform_slp_perm_load): Same.
3452         (vect_schedule_slp): Same.
3453         * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
3454         (vect_schedule_slp): Same.
3455         (duplicate_and_interleave): Same.
3456         * tree.c (build_vector_from_ctor): Same.
3457         (build_vector): Same.
3458         (check_vector_cst): Same.
3459         (check_vector_cst_duplicate): Same.
3460         (check_vector_cst_fill): Same.
3461         (check_vector_cst_stepped): Same.
3462         * tree.h (build_vector_from_ctor): Same.
3464 2021-07-20  Jakub Jelinek  <jakub@redhat.com>
3466         PR target/101384
3467         * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
3468         type from bool to int.
3469         * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
3470         EASY_VECTOR_MSB case if either step or copies is not 1.
3471         (vspltis_shifted): Fix comment typo.
3472         (easy_altivec_constant): Change return type from bool to int, instead
3473         of returning true return byte size of the element mode that should be
3474         used to synthetize the constant.
3475         * config/rs6000/predicates.md (easy_vector_constant_msb): Require
3476         that vspltis_shifted is 0, handle the case where easy_altivec_constant
3477         assumes using different vector mode from CONST_VECTOR's mode.
3478         * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
3479         easy_altivec_constant to determine mode in which -1 >> -1 should be
3480         performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
3482 2021-07-20  Richard Biener  <rguenther@suse.de>
3484         PR debug/101473
3485         * dwarf2out.h (dwarf_file_data): Add key member.
3486         * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
3487         (dwarf_file_hasher::hash): Hash key.
3488         (lookup_filename): Remap the filename and store it in the
3489         filename member of dwarf_file_data when creating a new
3490         dwarf_file_data.
3491         (file_name_acquire): Do not remap the filename again.
3492         (maybe_emit_file): Likewise.
3494 2021-07-20  Jonathan Wright  <jonathan.wright@arm.com>
3496         * config/aarch64/aarch64-simd-builtins.def: Use two variant
3497         generators for all TBL/TBX intrinsics and rename to
3498         consistent forms: qtbl[1234] or qtbx[1234].
3499         * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
3500         Rename to...
3501         (aarch64_qtbl1<mode>): This.
3502         (aarch64_tbx1<mode>): Rename to...
3503         (aarch64_qtbx1<mode>): This.
3504         (aarch64_tbl2v16qi): Delete.
3505         (aarch64_tbl3<mode>): Rename to...
3506         (aarch64_qtbl2<mode>): This.
3507         (aarch64_tbx4<mode>): Rename to...
3508         (aarch64_qtbx2<mode>): This.
3509         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
3510         renamed qtbl1 and qtbl2 RTL patterns.
3511         * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
3512         RTL pattern.
3513         (vqtbl1_s8): Likewise.
3514         (vqtbl1_u8): Likewise.
3515         (vqtbl1q_p8): Likewise.
3516         (vqtbl1q_s8): Likewise.
3517         (vqtbl1q_u8): Likewise.
3518         (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
3519         (vqtbx1_u8): Likewise.
3520         (vqtbx1_p8): Likewise.
3521         (vqtbx1q_s8): Likewise.
3522         (vqtbx1q_u8): Likewise.
3523         (vqtbx1q_p8): Likewise.
3524         (vtbl1_s8): Use renamed qtbl1 RTL pattern.
3525         (vtbl1_u8): Likewise.
3526         (vtbl1_p8): Likewise.
3527         (vtbl2_s8): Likewise
3528         (vtbl2_u8): Likewise.
3529         (vtbl2_p8): Likewise.
3530         (vtbl3_s8): Use renamed qtbl2 RTL pattern.
3531         (vtbl3_u8): Likewise.
3532         (vtbl3_p8): Likewise.
3533         (vtbl4_s8): Likewise.
3534         (vtbl4_u8): Likewise.
3535         (vtbl4_p8): Likewise.
3536         (vtbx2_s8): Use renamed qtbx2 RTL pattern.
3537         (vtbx2_u8): Likewise.
3538         (vtbx2_p8): Likewise.
3539         (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
3540         (vqtbl2_u8): Likewise.
3541         (vqtbl2_p8): Likewise.
3542         (vqtbl2q_s8): Likewise.
3543         (vqtbl2q_u8): Likewise.
3544         (vqtbl2q_p8): Likewise.
3545         (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
3546         (vqtbx2_u8): Likewise.
3547         (vqtbx2_p8): Likewise.
3548         (vqtbx2q_s8): Likewise.
3549         (vqtbx2q_u8): Likewise.
3550         (vqtbx2q_p8): Likewise.
3551         (vtbx4_s8): Likewise.
3552         (vtbx4_u8): Likewise.
3553         (vtbx4_p8): Likewise.
3555 2021-07-20  Uroš Bizjak  <ubizjak@gmail.com>
3557         PR target/100182
3558         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
3559         Remove.
3560         (define_peephole2 atomic_loaddi_fpu): Ditto.
3562 2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
3564         * config.gcc (riscv*-*-*): Detect which python is available.
3566 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
3568         * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
3569         (smul<mode>3_highpart): ... this.
3570         (mulhu_<mode>): Rename to...
3571         (umul<mode>3_highpart): ... this.
3572         * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
3573         MULHU_V2DI, MULHU_V4SI): Adjust.
3575 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
3577         PR tree-optimization/100696
3578         * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
3579         * internal-fn.def (IFN_MULH): New internal function.
3580         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
3581         recog normal multiply highpart as IFN_MULH.
3582         * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
3583         function CFN_MULH.
3585 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
3587         * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
3588         (BTF_DEBUGGING_INFO): Likewise.
3589         * doc/tm.texi.in: Document the new macros.
3590         * doc/tm.texi: Regenerated.
3591         * toplev.c: Guard initialization of debug hooks.
3593 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
3595         * flags.h (ctf_debuginfo_p): New function declaration.
3596         * opts.c (ctf_debuginfo_p): New function definition.
3598 2021-07-19  Andrew Stubbs  <ams@codesourcery.com>
3600         PR target/100208
3601         * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
3602         (ASM_SPEC): Set -mattr for xnack and sram-ecc.
3603         * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
3604         * config/gcn/gcn-valu.md: Add a warning comment.
3605         * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
3606         (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
3607         * config/gcn/gcn.md: Add a warning comment.
3608         * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
3609         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
3610         SRAM-ECC flag.
3611         (EF_AMDGPU_XNACK): New.
3612         (EF_AMDGPU_SRAM_ECC): New.
3613         (elf_flags): New.
3614         (copy_early_debug_info): Use elf_flags.
3615         (main): Handle -mxnack and -msram-ecc options.
3616         * doc/invoke.texi: Document -mxnack and -msram-ecc.
3618 2021-07-19  Andrew Pinski  <apinski@marvell.com>
3620         PR target/101205
3621         * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
3622         (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
3624 2021-07-19  Richard Biener  <rguenther@suse.de>
3626         PR tree-optimization/101505
3627         * tree-vect-patterns.c (vect_determine_precisions): Walk
3628         PHIs also for loop vectorization.
3630 2021-07-19  Richard Biener  <rguenther@suse.de>
3632         * gimple.h (gimple_expr_type): Remove.
3633         * doc/gimple.texi: Remove gimple_expr_type documentation.
3635 2021-07-19  Richard Biener  <rguenther@suse.de>
3637         * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
3638         (ao_ref_init_from_vn_reference): Likewise.
3639         (fully_constant_reference): Likewise.
3640         (vn_reference_lookup_call): Do not set vr->type to random
3641         values.
3642         * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
3643         without a value.
3644         * tree-vect-generic.c (expand_vector_piecewise): Pass in
3645         whether we expanded parallel.
3646         (expand_vector_parallel): Adjust.
3647         (expand_vector_addition): Likewise.
3648         (expand_vector_comparison): Likewise.
3649         (expand_vector_operation): Likewise.
3650         (expand_vector_scalar_condition): Likewise.
3651         (expand_vector_conversion): Likewise.
3653 2021-07-19  Richard Biener  <rguenther@suse.de>
3655         * tree-vrp.c (register_edge_assert_for_2): Use the
3656         type from the LHS.
3657         (vrp_folder::fold_predicate_in): Likewise.
3658         * vr-values.c (gimple_assign_nonzero_p): Likewise.
3659         (vr_values::extract_range_from_comparison): Likewise.
3660         (vr_values::extract_range_from_ubsan_builtin): Use the
3661         type of the first operand.
3662         (vr_values::extract_range_basic): Push down type
3663         computation, use the appropriate LHS.
3664         (vr_values::extract_range_from_assignment): Use the
3665         type of the LHS.
3667 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
3669         PR target/101492
3670         * common/config/i386/i386-common.c (ix86_handle_option): For
3671         -mgeneral-regs-only, enable the GPR only instructions which are
3672         enabled implicitly by SSE ISAs unless they have been disabled
3673         explicitly.
3675 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
3677         PR target/101495
3678         * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
3679         ix86_avx_u128_mode_needed.
3680         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
3681         returns AVX register.
3683 2021-07-17  Jan Hubicka  <hubicka@ucw.cz>
3685         * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
3686         (handle_const_call): Liekise
3687         (handle_pure_call): Liekise
3689 2021-07-17  Andrew MacLeod  <amacleod@redhat.com>
3691         PR tree-optimization/96542
3692         * range-op.cc (range_operator::wi_fold_in_parts): New.
3693         (range_operator::fold_range): Call wi_fold_in_parts.
3694         (operator_lshift::wi_fold): Fix broken lshift by [0,0].
3695         * range-op.h (wi_fold_in_parts): Add prototype.
3697 2021-07-16  David Malcolm  <dmalcolm@redhat.com>
3699         * doc/analyzer.texi: Add __analyzer_dump_state.
3701 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
3703         * config/rs6000/rbtree.c: New file.
3704         * config/rs6000/rbtree.h: New file.
3706 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
3708         * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
3709         (typeinfo): Add restr field.
3710         (match_bracketed_pair): New function.
3711         (match_const_restriction): Implement.
3713 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
3715         * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
3717 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
3719         * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
3720         (basetype): Likewise.
3721         (typeinfo): Likewise.
3722         (handle_pointer): New function.
3723         (match_basetype): New stub function.
3724         (match_const_restriction): Likewise.
3725         (match_type): New function.
3727 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
3729         * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
3730         function.
3731         (advance_line): Likewise.
3732         (safe_inc_pos): Likewise.
3733         (match_identifier): Likewise.
3734         (match_integer): Likewise.
3735         (match_to_right_bracket): Likewise.
3737 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
3739         * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
3740         (ovld_file): Likewise.
3741         (header_file): Likewise.
3742         (init_file): Likewise.
3743         (defines_file): Likewise.
3744         (pgm_path): Likewise.
3745         (bif_path): Likewise.
3746         (ovld_path): Likewise.
3747         (header_path): Likewise.
3748         (init_path): Likewise.
3749         (defines_path): Likewise.
3750         (LINELEN): New macro.
3751         (linebuf): New variable.
3752         (line): Likewise.
3753         (pos): Likewise.
3754         (diag): Likewise.
3755         (bif_diag): New function.
3756         (ovld_diag): Likewise.
3758 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
3760         * config/rs6000/rs6000-builtin-new.def: New.
3761         * config/rs6000/rs6000-overload.def: New.
3763 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
3765         * config/rs6000/rs6000-gen-builtins.c: New.
3767 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
3769         * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
3770         (s-gtype): Depend on EXTRA_GTYPE_DEPS.
3771         * gengtype-state.c (state_writer::write_state_file_list): Add a
3772         parameter to the fileslist expression for the number of build
3773         headers to scan.
3774         (read_state_files_list): Detect build headers and strip the
3775         initial "./" or ".\" from their names.
3776         * gengtype.c (build_headers): New global variable.
3777         (num_build_headers): Likewise.
3778         (open_base_files): Emit #include for each build header.
3779         (main): Detect and count build headers.
3780         * gengtype.h (build_headers): New extern variable.
3781         (num_build_headers): Likewise.
3783 2021-07-16  Richard Biener   <rguenther@suse.de>
3785         * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
3786         the type of the LHS.
3787         (find_bswap_or_nop_1): Likewise.
3788         (find_bswap_or_nop): Likewise.
3789         * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
3790         prototype.
3791         * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
3792         Remove unused parameters, pass in the scalar type.  Fix
3793         internal store function handling.
3794         * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
3795         (vect_get_vector_types_for_stmt): Move down check for
3796         existing vector stmt after we've determined a scalar type.
3797         Pass down the used scalar type to vect_get_smallest_scalar_type.
3798         * tree-vect-generic.c (expand_vector_condition): Use
3799         the type of the LHS.
3800         (expand_vector_scalar_condition): Likewise.
3801         (expand_vector_operations_1): Likewise.
3802         * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
3803         (vect_recog_dot_prod_pattern): Likewise.
3804         (vect_recog_sad_pattern): Likewise.
3805         (vect_recog_widen_op_pattern): Likewise.
3806         (vect_recog_widen_sum_pattern): Likewise.
3807         (vect_recog_mixed_size_cond_pattern): Likewise.
3809 2021-07-16  Jan Hubicka  <hubicka@ucw.cz>
3811         * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
3812         (dump_eaf_flags): Dump EAF_NOT_RETURNED
3813         (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
3814         and EAF_NOT_RETURNED.
3815         (modref_summary::useful_p): Likewise.
3816         (modref_summary_lto::useful_p): Likewise.
3817         (struct) modref_summary_lto: Use eaf_fleags_t.
3818         (deref_flags): Handle EAF_NOT_RETURNED.
3819         (struct escape_point): Use min_flags.
3820         (modref_lattice::init): Add EAF_NOT_RETURNED.
3821         (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
3822         (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
3823         handle call flags.
3824         (analyze_parms): Also analyze const functions; update conition on
3825         flags usefulness.
3826         (modref_write): Update streaming.
3827         (read_section): Update streaming.
3828         (remap_arg_flags): Use eaf_flags_t.
3829         (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
3830         * ipa-modref.h: (eaf_flags_t): New typedef.
3831         (struct modref_summary): Use eaf_flags_t.
3832         * tree-core.h (EAF_NOT_RETURNED): New constant.
3834 2021-07-16  Richard Biener  <rguenther@suse.de>
3836         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
3837         the type of the LHS.
3838         (gimple_assign_nonnegative_warnv_p): Likewise.
3839         (gimple_call_nonnegative_warnv_p): Likewise.  Return false
3840         if the call has no LHS.
3841         * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
3842         * tree-eh.c (stmt_could_throw_1_p): Likewise.
3843         * tree-inline.c (insert_init_stmt): Likewise.
3844         * tree-ssa-loop-niter.c (get_val_for): Likewise.
3845         * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
3846         the def.
3847         * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
3848         gassign *.  Use the type of the lhs.
3849         (vn_nary_op_lookup_stmt): Adjust.
3850         (vn_nary_op_insert_stmt): Likewise.
3852 2021-07-16  Ilya Leoshkevich  <iii@linux.ibm.com>
3854         * config/s390/predicates.md (bras_sym_operand): Accept all
3855         functions in 64-bit mode, use UNSPEC_PLT31.
3856         (larl_operand): Use UNSPEC_PLT31.
3857         * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
3858         (legitimize_pic_address): Likewise.
3859         (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
3860         use UNSPEC_PLT31.
3861         (s390_delegitimize_address): Use UNSPEC_PLT31.
3862         (s390_output_addr_const_extra): Likewise.
3863         (print_operand): Add @PLT to TLS calls, handle %K.
3864         (s390_function_profiler): Mark __fentry__/_mcount as function,
3865         use %K, use UNSPEC_PLT31.
3866         (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
3867         (s390_emit_call): Use UNSPEC_PLT31.
3868         (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
3869         * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
3870         (*movdi_64): Use %K.
3871         (reload_base_64): Likewise.
3872         (*sibcall_brc): Likewise.
3873         (*sibcall_brcl): Likewise.
3874         (*sibcall_value_brc): Likewise.
3875         (*sibcall_value_brcl): Likewise.
3876         (*bras): Likewise.
3877         (*brasl): Likewise.
3878         (*bras_r): Likewise.
3879         (*brasl_r): Likewise.
3880         (*bras_tls): Likewise.
3881         (*brasl_tls): Likewise.
3882         (main_base_64): Likewise.
3883         (reload_base_64): Likewise.
3884         (@split_stack_call<mode>): Likewise.
3886 2021-07-16  Richard Biener  <rguenther@suse.de>
3888         PR tree-optimization/101467
3889         * tree-vect-stmts.c (vect_gen_while): Properly guard
3890         make_temp_ssa_name usage.
3892 2021-07-16  Cooper Qu  <cooper.qu@linux.alibaba.com>
3894         * config.gcc: Don't use forked print-sysroot-suffix.sh and
3895         t-sysroot-suffix for C-SKY.
3896         * config/csky/print-sysroot-suffix.sh: Delete.
3897         * config/csky/t-csky-linux: Delete.
3898         * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
3899         instead of CSKY_MULTILIB_DIRNAMES.
3901 2021-07-16  Richard Biener  <rguenther@suse.de>
3903         * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
3904         conversion issues with the partial reduction of the reused
3905         vector accumulator.
3907 2021-07-16  Richard Biener  <rguenther@suse.de>
3909         * config/i386/i386-options.c (ix86_option_override_internal): Set
3910         param_vect_partial_vector_usage to zero if not set.
3912 2021-07-15  Uroš Bizjak  <ubizjak@gmail.com>
3914         PR target/101346
3915         * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
3916         (VALID_INT_MODE_P): Add SDmode and DDmode.
3917         Add TDmode for TARGET_64BIT.
3918         (VALID_DFP_MODE_P): Remove.
3919         * config/i386/i386.c (ix86_hard_regno_mode_ok):
3920         Do not use VALID_DFP_MODE_P.
3922 2021-07-15  Andrew MacLeod  <amacleod@redhat.com>
3924         * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
3925         gimple_range_type.
3926         (fold_using_range::fold_stmt): Ditto.
3927         (fold_using_range::range_of_range_op): Ditto.
3928         (fold_using_range::range_of_phi): Ditto.
3929         (fold_using_range::range_of_call): Ditto.
3930         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
3931         (fold_using_range::range_of_builtin_call): Ditto.
3932         (fold_using_range::range_of_cond_expr): Ditto.
3933         * gimple-range-fold.h (gimple_range_type): New.
3935 2021-07-15  Martin Sebor  <msebor@redhat.com>
3937         PR middle-end/97027
3938         * tree-ssa-strlen.c (handle_assign): New function.
3939         (maybe_warn_overflow): Add argument.
3940         (nonzero_bytes_for_type): New function.
3941         (count_nonzero_bytes): Handle more tree types.  Call
3942         nonzero_bytes_for_tye.
3943         (count_nonzero_bytes): Handle types.
3944         (handle_store): Handle stores from function calls.
3945         (strlen_check_and_optimize_call): Move code to handle_assign.  Call
3946         it for assignments from function calls.
3948 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
3950         PR analyzer/95006
3951         PR analyzer/94713
3952         PR analyzer/94714
3953         * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
3955 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
3957         * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
3959 2021-07-15  Martin Sebor  <msebor@redhat.com>
3961         PR c/101289
3962         PR c/97548
3963         * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
3964         (operand_compare::verify_hash_value): Same.
3965         * tree-core.h (OEP_DECL_NAME): New.
3967 2021-07-15  Martin Jambor  <mjambor@suse.cz>
3969         * profile-count.h (profile_count::value): Change the return type to
3970         uint64_t.
3971         * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
3972         statement.
3973         * tree-cfg.c (dump_function_to_file): Likewise.
3975 2021-07-15  Bill Schmidt  <wschmidt@linux.ibm.com>
3977         PR target/101129
3978         * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
3979         (rs6000_analyze_swaps): Insns containing a subreg of a mult are
3980         not swappable.
3982 2021-07-15  Richard Biener  <rguenther@suse.de>
3984         * tree-vectorizer.h (vect_gen_while): Match up with
3985         vect_gen_while_not.
3986         * tree-vect-stmts.c (vect_gen_while): Adjust API to that
3987         of vect_gen_while_not.
3988         (vect_gen_while_not): Adjust.
3989         * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
3991 2021-07-15  Aldy Hernandez  <aldyh@redhat.com>
3993         * gimple-range-cache.cc (non_null_ref::adjust_range): New.
3994         (ranger_cache::range_of_def): Call adjust_range.
3995         (ranger_cache::entry_range): Same.
3996         * gimple-range-cache.h (non_null_ref::adjust_range): New.
3997         * gimple-range.cc (gimple_ranger::range_of_expr): Call
3998         adjust_range.
3999         (gimple_ranger::range_on_entry): Same.
4001 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
4003         Revert:
4004         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
4006         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
4008 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
4010         Revert:
4011         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
4013         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
4014         (sdot_prod, udot_prod): ...These.
4015         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
4016         (aarch64_<sur>dot<vsi2qi>): Rename to...
4017         (<sur>dot_prod<vsi2qi>): ...This.
4018         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
4019         Update builtins.
4021 2021-07-15  Jakub Jelinek  <jakub@redhat.com>
4023         PR middle-end/101437
4024         * gimplify.c (gimplify_expr): Throw away volatile reads from empty
4025         types even if they have non-BLKmode TYPE_MODE.
4027 2021-07-15  Richard Biener  <rguenther@suse.de>
4029         PR driver/101383
4030         * gcc.c (process_command): Process -gtoggle like process_options
4031         would after parsing options.
4033 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
4035         * cfgexpand.c (expand_asm_loc): Adjust.
4036         (expand_asm_stmt): Likewise.
4037         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
4038         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
4039         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
4040         * config/avr/avr.c (avr_md_asm_adjust): Likewise.
4041         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
4042         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
4043         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
4044         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
4045         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
4046         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
4047         * config/s390/s390.c (s390_md_asm_adjust): Likewise.
4048         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
4049         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
4050         * doc/tm.texi: Regenerate.
4051         * target.def: Add location argument to md_asm_adjust.
4053 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
4055         * tree-diagnostic.c (diagnostic_report_current_function): Use the
4056         diagnostic's location, not input_location.
4058 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
4060         * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
4061         diagnostics.
4062         (expand_asm_stmt): Likewise.
4064 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
4066         * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
4067         addressed memory rtx, if any.
4068         (rs6000_split_multireg_move): Fix code formatting.
4069         Handle MMA build built-ins with operands in adjacent memory locations.
4071 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
4073         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
4074         in the file.
4076 2021-07-14  Jason Merrill  <jason@redhat.com>
4078         * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
4080 2021-07-14  Jason Merrill  <jason@redhat.com>
4082         * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
4083         C++.
4085 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
4087         * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
4088         Remove erroneous line.
4090 2021-07-14  Andrew MacLeod  <amacleod@redhat.com>
4092         * params.opt (param_evrp_mode): Change default.
4094 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
4096         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
4097         (sdot_prod, udot_prod): ...These.
4098         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
4099         (aarch64_<sur>dot<vsi2qi>): Rename to...
4100         (<sur>dot_prod<vsi2qi>): ...This.
4101         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
4102         Update builtins.
4104 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
4106         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
4108 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
4110         * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
4112 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
4114         * config/arm/neon.md (usdot_prod<vsi2qi>): New.
4116 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
4118         * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
4119         (usdot_prod<vsi2qi>): ... This.
4120         * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
4121         (usdot_prod): ...This.
4122         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
4123         * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
4124         Rename to...
4125         (@<sur>dot_prod<vsi2qi>): ...This.
4126         * config/aarch64/aarch64-sve-builtins-base.cc
4127         (svusdot_impl::expand): Use it.
4129 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
4131         * optabs.def (usdot_prod_optab): New.
4132         * doc/md.texi: Document it and clarify other dot prod optabs.
4133         * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
4134         * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
4135         * optabs.c (expand_widen_pattern_expr): Likewise.
4136         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4137         * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
4138         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
4139         optab subtype.
4140         (vect_widened_op_tree): Optionally ignore
4141         mismatch types.
4142         (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
4144 2021-07-14  H.J. Lu  <hjl.tools@gmail.com>
4146         PR target/101395
4147         * config/i386/driver-i386.c (host_detect_local_cpu): Check
4148         "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
4149         Enable UINTR only for 64-bit codegen.
4150         * config/i386/i386-options.c
4151         (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
4152         in 64-bit mode.
4153         * config/i386/i386.h (ARCH_ARG): New.
4154         (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
4155         "[arch|tune] 64" for 64-bit codegen.
4157 2021-07-14  Richard Biener  <rguenther@suse.de>
4159         PR tree-optimization/101445
4160         * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
4161         of the IV in the correct direction for negative stride
4162         accesses.
4164 2021-07-14  Jakub Jelinek  <jakub@redhat.com>
4166         PR go/101407
4167         * godump.c (godump_str_hash): New type.
4168         (godump_container::pot_dummy_types): Use string_hash instead of
4169         ptr_hash in the hash_set.
4171 2021-07-14  Richard Biener  <rguenther@suse.de>
4173         * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
4174         vector types where the old vector type has a multiple of
4175         the new vector type elements.
4176         (vect_create_partial_epilog): New function, split out from...
4177         (vect_create_epilog_for_reduction): ... here.
4178         (vect_transform_cycle_phi): Reduce the re-used accumulator
4179         to the new vector type.
4181 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
4183         * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
4184         non-'t'-sized arg check.
4186 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
4188         * tree-cfg.c (cleanup_dead_labels_eh): Update
4189         post_landing_pad label upon change of landing pad block's
4190         primary label.
4191         (cleanup_dead_labels): Check that a removed label is not that
4192         of a landing pad.
4194 2021-07-13  Jonathan Wright  <jonathan.wright@arm.com>
4196         * combine.c (combine_simplify_rtx): Add vec_select -> subreg
4197         simplification.
4198         * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
4199         Add Neon to general purpose register case for zero-extend
4200         pattern.
4201         * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
4202         case to prevent some cases opting to go through memory.
4203         * cse.c (fold_rtx): Add vec_select -> subreg simplification.
4204         * rtl.c (rtvec_series_p): Define predicate to determine
4205         whether a vector contains a linear series of integers.
4206         * rtl.h (rtvec_series_p): Define.
4207         * rtlanal.c (vec_series_lowpart_p): Define predicate to
4208         determine if a vector selection is equivalent to the low part
4209         of the vector.
4210         * rtlanal.h (vec_series_lowpart_p): Define.
4211         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
4212         Add vec_select -> subreg simplification.
4214 2021-07-13  Paul A. Clarke  <pc@us.ibm.com>
4216         * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
4217         _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
4218         _mm_test_mix_ones_zeros): New.
4220 2021-07-13  Roger Sayle  <roger@nextmovesoftware.com>
4221             Richard Biener  <rguenther@suse.de>
4223         * gimple.c (gimple_could_trap_p_1):  Make S argument a
4224         "const gimple*".  Preserve constness in call to
4225         gimple_asm_volatile_p.
4226         (gimple_could_trap_p): Make S argument a "const gimple*".
4227         * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
4228         Update function prototypes.
4230 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
4232         * tree-vectorizer.h (vect_reusable_accumulator): New structure.
4233         (_loop_vec_info::main_loop_edge): New field.
4234         (_loop_vec_info::skip_main_loop_edge): Likewise.
4235         (_loop_vec_info::skip_this_loop_edge): Likewise.
4236         (_loop_vec_info::reusable_accumulators): Likewise.
4237         (_stmt_vec_info::reduc_scalar_results): Likewise.
4238         (_stmt_vec_info::reused_accumulator): Likewise.
4239         (vect_get_main_loop_result): Declare.
4240         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4241         reduc_scalar_inputs.
4242         (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
4243         * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
4244         (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
4245         skip_main_loop_edge and skip_this_loop_edge fields.
4246         * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
4247         (vect_emit_reduction_init_stmts): New function.
4248         (get_initial_def_for_reduction): Use it.
4249         (get_initial_defs_for_reduction): Likewise.  Change the vinfo
4250         parameter to a loop_vec_info.
4251         (vect_create_epilog_for_reduction): Store the scalar results
4252         in the reduc_info.  If an epilogue loop is reusing an accumulator
4253         from the main loop, and if the epilogue loop can also be skipped,
4254         try to place the reduction code in the join block.  Record
4255         accumulators that could potentially be reused by epilogue loops.
4256         (vect_transform_cycle_phi): When vectorizing epilogue loops,
4257         try to reuse accumulators from the main loop.  Record the initial
4258         value in reduc_info for non-SLP reductions too.
4260 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
4262         * tree-vect-loop.c (get_initial_def_for_reduction): Remove
4263         adjustment handling.  Take the neutral value as an argument,
4264         in place of the code argument.
4265         (vect_transform_cycle_phi): Update accordingly.  Handle the
4266         initial values of cond reductions separately from code reductions.
4267         Choose the adjustment here rather than in
4268         get_initial_def_for_reduction.  Sink the splat of vec_initial_def.
4270 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
4272         * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
4273         (neutral_op_for_reduction): ...this, providing a more general
4274         interface.
4275         (vect_create_epilog_for_reduction): Update accordingly.
4276         (vectorizable_reduction): Likewise.
4277         (vect_transform_cycle_phi): Likewise.
4279 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
4281         * tree-vect-loop.c (get_initial_def_for_reduction): Take the
4282         reduc_info instead of the original stmt_vec_info.
4283         (vect_transform_cycle_phi): Update accordingly.
4285 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
4287         * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
4288         reduc_info as an additional parameter.
4289         (vect_transform_cycle_phi): Update accordingly.
4291 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
4293         * tree-vectorizer.h: Include tree-ssa-operands.h.
4294         (vect_phi_initial_value): New function.
4295         * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
4296         (get_initial_defs_for_reduction, info_for_reduction): Likewise.
4297         (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
4298         (vect_transform_cycle_phi, vectorizable_induction): Likewise.
4300 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
4302         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
4303         the phi results to vectype after creating them.  Remove later
4304         conversion code that thus becomes redundant.
4306 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
4308         * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
4309         the new_phis vector with a reduc_inputs vector.  Combine handling
4310         of reduction chains and ncopies > 1.
4312 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
4314         * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
4315         scalar_results to group_size elements after reducing down from
4316         N*group_size elements.  Construct an array_slice of the live-out
4317         stmts and assert that there is one stmt per scalar result.
4319 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
4321         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
4322         nested_in_vect_loop and use double_reduc everywhere.  Remove dead
4323         assignment to "loop".
4325 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
4327         * internal-fn.c (vectorized_internal_fn_supported_p): Handle
4328         vector types first.  For scalar types, consider both the preferred
4329         vector mode and the alternative vector modes.
4330         * optabs-query.c (can_vec_mask_load_store_p): Use the same
4331         structure as above, in particular using related_vector_mode
4332         for modes provided by autovectorize_vector_modes.
4334 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
4335             Richard Biener  <rguenther@suse.de>
4337         PR tree-optimization/101419
4338         * tree-pass.h (PROP_objsz): Define.
4339         (make_pass_early_object_sizes): Declare.
4340         * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
4341         there to pass_early_object_sizes, drop parameter.
4342         (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
4343         drop parameter, move pass_post_ipa_warn right after that.
4344         * tree-object-size.c (pass_object_sizes::execute): Rename to...
4345         (object_sizes_execute): ... this.  Add insert_min_max_p argument.
4346         (pass_data_object_sizes): Move after object_sizes_execute.
4347         (pass_object_sizes): Likewise.  In execute method call
4348         object_sizes_execute, drop set_pass_param method and insert_min_max_p
4349         non-static data member and its initializer in the ctor.
4350         (pass_data_early_object_sizes, pass_early_object_sizes,
4351         make_pass_early_object_sizes): New.
4352         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
4353         (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
4355 2021-07-13  Kito Cheng  <kito.cheng@sifive.com>
4357         PR target/101275
4358         * config/riscv/constraints.md ("S"): Update description and remove
4359         @internal.
4360         * doc/md.texi (Machine Constraints): Document the 'S' constraints
4361         for RISC-V.
4363 2021-07-13  Richard Biener  <rguenther@suse.de>
4365         Revert:
4366         2021-07-12  Richard Biener  <rguenther@suse.de>
4368         * tree-vect-slp.c (vect_slp_region): Show the number of
4369         SLP graph entries in the optimization message.
4371 2021-07-13  Michael Meissner  <meissner@linux.ibm.com>
4373         * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
4374         value to to long.
4375         * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
4376         return type to long.
4377         * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
4378         type to long.
4380 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
4382         * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
4383         Query relation between the 2 operands and use it.
4385 2021-07-12  Sergei Trofimovich  <siarheit@google.com>
4387         * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
4389 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
4391         PR target/101424
4392         * config/i386/predicates.md (vec_setm_sse41_operand):
4393         Rename from vec_setm_operand.
4394         (vec_setm_avx2_operand): New predicate.
4395         * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
4396         Use vec_setm_sse41_operand as operand 2 predicate.
4397         (vec_set<V_256_512:mode): New expander.
4398         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
4399         as operand 2 predicate.
4401 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
4403         PR tree-optimization/101335
4404         * range-op.cc (operator_cast::lhs_op1_relation): Delete.
4406 2021-07-12  Andrew Pinski  <apinski@marvell.com>
4408         * tree-ssa-phiopt.c (match_simplify_replacement): Move
4409         insert of the sequence before the movement of the
4410         statement. Check if to see if the statement is used
4411         outside of the original phi to see if we should move it.
4413 2021-07-12  Richard Biener  <rguenther@suse.de>
4415         * dump-context.h (debug_dump_context::debug_dump_context):
4416         Add FILE * parameter defaulted to stderr.
4417         * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
4418         * tree-vect-slp.c (dot_slp_tree): New functions.
4420 2021-07-12  Richard Biener  <rguenther@suse.de>
4422         PR tree-optimization/101373
4423         * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
4424         references when the BB may not return.
4425         (compute_avail): Pass in the function we're working on and
4426         replace cfun references with it.  Externally throwing
4427         const calls also possibly terminate the function.
4428         (pass_pre::execute): Pass down the function we're working on.
4429         * gcse.c (compute_hash_table_work): Externally throwing
4430         const/pure calls also need record_last_mem_set_info.
4431         * postreload-gcse.c (record_opr_changes): Looping or externally
4432         throwing const/pure calls also need record_last_mem_set_info.
4434 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
4436         * recog.c (memory_address_addr_space_p): Change the type to bool.
4437         Return true/false instead of 1/0.
4438         (offsettable_memref_p): Ditto.
4439         (offsettable_nonstrict_memref_p): Ditto.
4440         (offsettable_address_addr_space_p): Ditto.
4441         Change the type of addressp indirect function to bool.
4442         * recog.h (memory_address_addr_space_p): Change the type to bool.
4443         (strict_memory_address_addr_space_p): Ditto.
4444         (offsettable_memref_p): Ditto.
4445         (offsettable_nonstrict_memref_p): Ditto.
4446         (offsettable_address_addr_space_p): Ditto.
4447         * reload.c (maybe_memory_address_addr_space_p): Ditto.
4448         (strict_memory_address_addr_space_p): Change the type to bool.
4449         Return true/false instead of 1/0.
4450         (maybe_memory_address_addr_space_p): Change the type to bool.
4452 2021-07-12  Richard Biener  <rguenther@suse.de>
4454         * tree-vect-slp.c (vect_slp_region): Show the number of
4455         SLP graph entries in the optimization message.
4457 2021-07-12  Richard Biener  <rguenther@suse.de>
4459         PR tree-optimization/101394
4460         * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
4461         copies from abnormals for a full redundancy.
4463 2021-07-12  Richard Biener  <rguenther@suse.de>
4465         PR middle-end/101423
4466         * gimple.c (gimple_could_trap_p_1): Internal function calls
4467         do not trap.
4468         * tree-eh.c (tree_could_trap_p): Likewise.
4470 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
4472         PR target/66791
4473         * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
4474         __a * __b.
4475         (vmulq_n_u32): Likewise.
4476         (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
4477         (vmulq_n_f32): Likewise.
4478         (vmul_n_f16): Likewise.
4479         (vmulq_n_f16): Likewise.
4481 2021-07-12  Martin Liska  <mliska@suse.cz>
4483         PR sanitizer/101425
4484         * gcc.c (check_offload_target_name): Call
4485           candidates_list_and_hint only if we have a candidate.
4487 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
4489         PR target/98435
4490         * config/arm/neon.md (vec_init): Move to ...
4491         * config/arm/vec-common.md (vec_init): ... here.
4492         Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
4494 2021-07-12  Roger Sayle  <roger@nextmovesoftware.com>
4496         PR tree-optimization/101403
4497         * match.pd ((T)bswap(X)>>C): Correctly handle cases where
4498         signedness of the shift is not the same as the signedness of
4499         the type extension.
4501 2021-07-09  Roger Sayle  <roger@nextmovesoftware.com>
4502             Uroš Bizjak  <ubizjak@gmail.com>
4504         * config/i386/i386.md (*divmodsi4_const): Optimize SImode
4505         divmod of a constant numerator with new define_insn_and_split.
4507 2021-07-09  Iain Sandoe  <iain@sandoe.co.uk>
4509         PR target/100152
4510         * config/i386/i386-expand.c (ix86_expand_call): If a call is
4511         to a non-local-binding, or local but to a public symbol, then
4512         assume that it might be indirected via the lazy symbol binder.
4513         Mark R10 and R10 as clobbered in that case.
4515 2021-07-09  Eric Botcazou  <ebotcazou@adacore.com>
4517         PR target/101377
4518         * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
4519         the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
4520         and HAVE_LD_BROKEN_PE_DWARF5 is defined.
4522 2021-07-09  Uroš Bizjak  <ubizjak@gmail.com>
4524         * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
4525         log2 range of operands[3] to [1,31].
4526         (*udivmodsi4_pow2_zext_2): Ditto.  Correct insn RTX pattern.
4528 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
4530         * doc/md.texi: Don't split @smallexample in multiple @groups.
4532 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
4534         * doc/md.texi: Add missing 'see' word.
4536 2021-07-09  Andrew Pinski  <apinski@marvell.com>
4538         * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
4539         to take sequence and gimple_match_op.  Accept the case where
4540         op is a SSA_NAME and one statement in the sequence.
4541         Also allow constants.
4542         (gimple_simplify_phiopt): Always pass a sequence to resimplify.
4543         Update call to phiopt_early_allow.  Discard the sequence if not
4544         used.
4546 2021-07-09  Xi Ruoyao  <xry111@mengyan1223.wang>
4548         PR target/100760
4549         PR target/100761
4550         PR target/100762
4551         * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
4552         instead of ISA_HAS_MSA.
4553         (mips_expand_vec_unpack): Likewise.
4554         (mips_expand_vector_init): Likewise.
4556 2021-07-09  Kewen Lin  <linkw@linux.ibm.com>
4558         * config/rs6000/vsx.md (mods_<mode>): Rename to...
4559         (mod<mode>3): ... this.
4560         (modu_<mode>): Rename to...
4561         (umod<mode>3): ... this.
4562         * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
4563         MODU_V4SI): Adjust.
4565 2021-07-08  Jeff Law  <jeffreyalaw@gmail.com>
4567         * config/h8300/shiftrotate.md (variable shifts): Expose condition
4568         code handling for the test before the loop.
4570 2021-07-08  Martin Jambor  <mjambor@suse.cz>
4572         PR ipa/101066
4573         * ipa-sra.c (class isra_call_summary): New member
4574         m_before_any_store, initialize it in the constructor.
4575         (isra_call_summary::dump): Dump the new field.
4576         (ipa_sra_call_summaries::duplicate): Copy it.
4577         (process_scan_results): Set it.
4578         (isra_write_edge_summary): Stream it.
4579         (isra_read_edge_summary): Likewise.
4580         (param_splitting_across_edge): Only override
4581         safe_to_import_accesses if m_before_any_store is set.
4583 2021-07-08  Martin Sebor  <msebor@redhat.com>
4585         PR bootstrap/101374
4586         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
4587         Use Object Size Type 0 instead of 1.
4589 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
4591         * tree-vect-loop.c (vectorizable_reduction): Remove always-true
4592         if condition.
4594 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
4596         * match.pd: Simplify an extend-operate-truncate sequence involving
4597         a POLY_INT_CST.
4599 2021-07-08  Roger Sayle  <roger@nextmovesoftware.com>
4600             Richard Biener  <rguenther@suse.de>
4602         PR tree-optimization/40210
4603         * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
4604         (x>>C3)&C2 when possible.  Simplify bswap(x)>>C1 as ((T)x)>>C2
4605         when possible.  Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
4607 2021-07-08  Uroš Bizjak  <ubizjak@gmail.com>
4609         PR target/100637
4610         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
4611         Handle V4QI mode.
4612         * config/i386/mmx.md (V_32): New mode iterator.
4613         (mov<V_32:mode>): Use V_32 mode iterator.
4614         (*mov<V_32:mode>_internal): Ditto.
4615         (*push<V_32:mode>2_rex64): Ditto.
4616         (*push<V_32:mode>2): Ditto.
4617         (movmisalign<V_32:mode>): Ditto.
4618         (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
4619         (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
4620         (vec_unpacks_lo_v4qi): New expander.
4621         (vec_unpacks_hi_v4qi): Ditto.
4622         (vec_unpacku_lo_v4qi): Ditto.
4623         (vec_unpacku_hi_v4qi): Ditto.
4624         * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
4625         (VALID_INT_MODE_P): Ditto.
4627 2021-07-08  Michael Meissner  <meissner@linux.ibm.com>
4629         PR target/100809
4630         * config/rs6000/rs6000.md (udivti3): New insn.
4631         (divti3): New insn.
4632         (umodti3): New insn.
4633         (modti3): New insn.
4635 2021-07-07  Martin Sebor  <msebor@redhat.com>
4637         PR tree-optimization/100137
4638         PR tree-optimization/99121
4639         PR tree-optimization/97027
4640         * builtins.c (access_ref::access_ref): Also set offmax.
4641         (access_ref::offset_in_range): Define new function.
4642         (access_ref::add_offset): Set offmax.
4643         (access_ref::inform_access): Handle access_none.
4644         (handle_mem_ref): Clear ostype.
4645         (compute_objsize_r): Handle ASSERT_EXPR.
4646         * builtins.h (struct access_ref): Add offmax member.
4647         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
4648         compute_objsize() and simplify.
4650 2021-07-07  Peter Bergner  <bergner@linux.ibm.com>
4652         * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
4653         and VSX_BUILTIN_STXVP.
4655 2021-07-07  Martin Sebor  <msebor@redhat.com>
4657         PR target/101363
4658         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
4659         a stray %K from error_at() missed in r12-2088.
4661 2021-07-07  Richard Biener  <rguenther@suse.de>
4663         PR tree-optimization/99728
4664         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
4665         aggregate copies.
4666         (mem_refs_may_alias_p): Add assert we handled aggregate
4667         copies elsewhere.
4668         (sm_seq_valid_bb): Give up when running into aggregate copies.
4669         (ref_indep_loop_p): Handle aggregate copies as never
4670         being invariant themselves but allow other refs to be
4671         disambiguated against them.
4672         (can_sm_ref_p): Do not try to apply store-motion to aggregate
4673         copies.
4675 2021-07-06  Indu Bhagat  <indu.bhagat@oracle.com>
4677         PR debug/101283
4678         * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
4679         number of bits.
4681 2021-07-06  Martin Sebor  <msebor@redhat.com>
4683         * gimple-pretty-print.c (percent_G_format): Remove.
4684         * tree-diagnostic.c (default_tree_printer): Remove calls.
4685         * tree-pretty-print.c (percent_K_format): Remove.
4686         * tree-pretty-print.h (percent_K_format): Remove.
4688 2021-07-06  Martin Sebor  <msebor@redhat.com>
4690         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
4691         Remove %K and use error_at.
4692         (aarch64_expand_fcmla_builtin): Same.
4693         (aarch64_expand_builtin_tme): Same.
4694         (aarch64_expand_builtin_memtag): Same.
4695         * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
4696         (arm_expand_builtin): Same.
4697         * config/arm/arm.c (bounds_check): Same.
4699 2021-07-06  Martin Sebor  <msebor@redhat.com>
4701         * builtins.c (warn_string_no_nul): Remove %G.
4702         (maybe_warn_for_bound): Same.
4703         (warn_for_access): Same.
4704         (check_access): Same.
4705         (check_strncat_sizes): Same.
4706         (expand_builtin_strncat): Same.
4707         (expand_builtin_strncmp): Same.
4708         (expand_builtin): Same.
4709         (expand_builtin_object_size): Same.
4710         (warn_dealloc_offset): Same.
4711         (maybe_emit_free_warning): Same.
4712         * calls.c (maybe_warn_alloc_args_overflow): Same.
4713         (maybe_warn_nonstring_arg): Same.
4714         (maybe_warn_rdwr_sizes): Same.
4715         * expr.c (expand_expr_real_1): Remove %K.
4716         * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
4717         (gimple_fold_builtin_strncat): Same.
4718         * gimple-ssa-sprintf.c (format_directive): Same.
4719         (handle_printf_call): Same.
4720         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
4721         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
4722         (maybe_diag_access_bounds): Same.  Call gimple_location.
4723         (check_bounds_or_overlap): Same.
4724         * trans-mem.c (ipa_tm_scan_irr_block): Remove %K.  Simplify.
4725         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
4726         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
4727         (maybe_diag_stxncpy_trunc): Same.
4728         (handle_builtin_stxncpy_strncat): Same.
4729         (maybe_warn_pointless_strcmp): Same.
4730         * tree-ssa-uninit.c (maybe_warn_operand): Same.
4732 2021-07-06  Uroš Bizjak  <ubizjak@gmail.com>
4734         PR target/97194
4735         * config/i386/predicates.md (vec_setm_operand): Enable
4736         register_operand for TARGET_SSE4_1.
4737         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
4738         as operand 2 predicate.  Call ix86_expand_vector_set_var
4739         for non-constant index operand.
4740         (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
4741         Call ix86_expand_vector_set_var for non-constant index operand.
4743 2021-07-06  Jeff Law  <jeffreyalaw@gmail.com>
4745         * config/h8300/jumpcall.md (*branch): When possible, generate
4746         the comparison in CCZN mode.
4747         * config/h8300/predicates.md (simple_memory_operand): Reject all
4748         auto-increment addressing modes.
4750 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
4752         PR bootstrap/100246
4753         * config/i386/i386.h (struct stringop_algs): Define a CTOR for
4754         this type.
4756 2021-07-06  Richard Biener  <rguenther@suse.de>
4758         * doc/md.texi (vec_fmaddsub<mode>4): Document.
4759         (vec_fmsubadd<mode>4): Likewise.
4760         * optabs.def (vec_fmaddsub$a4): Add.
4761         (vec_fmsubadd$a4): Likewise.
4762         * internal-fn.def (IFN_VEC_FMADDSUB): Add.
4763         (IFN_VEC_FMSUBADD): Likewise.
4764         * tree-vect-slp-patterns.c (addsub_pattern::recognize):
4765         Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
4766         (addsub_pattern::build): Likewise.
4767         * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
4768         and CFN_VEC_FMSUBADD are not transparent for permutes.
4769         * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
4770         (vec_fmsubadd<mode>4): Likewise.
4772 2021-07-06  Richard Biener  <rguenther@suse.de>
4774         * doc/invoke.texi (fmove-loop-stores): Document.
4775         * common.opt (fmove-loop-stores): New option.
4776         * opts.c (default_options_table): Enable -fmove-loop-stores
4777         at -O1 but not -Og.
4778         * tree-ssa-loop-im.c (pass_lim::execute): Pass
4779         flag_move_loop_stores instead of true to
4780         loop_invariant_motion_in_fun.
4782 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
4784         * doc/install.texi: Document --with-dsymutil.
4786 2021-07-06  Andrew Pinski  <apinski@marvell.com>
4788         PR tree-optimization/101256
4789         * dbgcnt.def (phiopt_edge_range): New counter.
4790         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
4791         Check to make sure the new name is defined in the same
4792         bb as the conditional before duplicating range info.
4793         Also add debug counter.
4795 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
4797         PR rtl-optimization/100328
4798         * config/i386/i386-options.c (ix86_option_override_internal):
4799         Set param_ira_consider_dup_in_all_alts to 0.
4801 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
4803         PR rtl-optimization/100328
4804         * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
4805         parameter.
4806         * ira.c (ira_get_dup_out_num): Adjust as parameter
4807         param_ira_consider_dup_in_all_alts.
4808         * params.opt (ira-consider-dup-in-all-alts): New.
4809         * ira-conflicts.c (process_regs_for_copy): Add one parameter
4810         single_input_op_has_cstr_p.
4811         (get_freq_for_shuffle_copy): New function.
4812         (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
4813         * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
4815 2021-07-05  Jeff Law  <jeffreyalaw@gmail.com>
4817         * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
4818         generate condition code aware RTL directly.
4820 2021-07-05  Andrew Pinski  <apinski@marvell.com>
4822         PR tree-optimization/101039
4823         * match.pd (A CMP 0 ? A : -A): New patterns.
4824         * tree-ssa-phiopt.c (abs_replacement): Delete function.
4825         (tree_ssa_phiopt_worker): Don't call abs_replacement.
4826         Update comment about abs_replacement.
4828 2021-07-05  Andrew Pinski  <apinski@marvell.com>
4830         * tree-ssa-phiopt.c (gimple_simplify_phiopt):
4831         If "A ? B : C" fails to simplify, try "(!A) ? C : B".
4833 2021-07-05  Andrew Pinski  <apinski@marvell.com>
4835         * tree-ssa-phiopt.c (match_simplify_replacement):
4836         Add early_p argument. Call gimple_simplify_phiopt
4837         instead of gimple_simplify.
4838         (tree_ssa_phiopt_worker): Update call to
4839         match_simplify_replacement and allow unconditionally.
4840         (phiopt_early_allow): New function.
4841         (gimple_simplify_phiopt): New function.
4843 2021-07-05  Andrew Pinski  <apinski@marvell.com>
4845         PR middle-end/101237
4846         * fold-const.c (negate_expr_p): Remove call to element_mode
4847         and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
4848         HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
4849         (fold_negate_expr_1): Likewise.
4850         (const_unop): Likewise.
4851         (fold_cond_expr_with_comparison): Likewise.
4852         (fold_binary_loc): Likewise.
4853         (fold_ternary_loc): Likewise.
4854         (tree_call_nonnegative_warnv_p): Likewise.
4855         * match.pd (-(A + B) -> (-B) - A): Likewise.
4857 2021-07-05  Iain Sandoe  <iain@sandoe.co.uk>
4859         * configure.ac: Handle --with-dsymutil in the same way as we
4860         do for the assembler and linker.  (DEFAULT_DSYMUTIL): New.
4861         Extract the type and version for the dsymutil configured or
4862         found by the default searches.
4863         * config.in: Regenerated.
4864         * configure: Regenerated.
4865         * collect2.c (do_dsymutil): Handle locating dsymutil in the
4866         same way as for the assembler and  linker.
4867         * config/darwin.h (DSYMUTIL): Delete.
4868         * gcc.c: Report a configured dsymutil correctly.
4869         * exec-tool.in: Allow for dsymutil.
4871 2021-07-05  Uroš Bizjak  <ubizjak@gmail.com>
4873         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
4874         Handle V4QI and V2HI modes.
4875         (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
4876         Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
4877         (expand_vec_perm_pshufb): Rewrite to use switch statemets.
4878         Handle 4-byte dual operands with TARGET_XOP and single operands
4879         with TARGET_SSSE3.  Emit mmx_ppermv32 for TARGET_XOP and
4880         mmx_pshufbv4qi3 for TARGET_SSSE3.
4881         (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
4882         (expand_vec_perm_interleave2): Allow 4-byte vector modes.
4883         (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
4884         (expand_vec_perm_even_odd_1): Handle V4QI mode.
4885         (expand_vec_perm_broadcast_1): Handle V4QI mode.
4886         (ix86_vectorize_vec_perm_const): Handle V4QI mode.
4887         * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
4888         (mmx_pshufbv4qi3): Ditto.
4889         (*mmx_pblendw32): Ditto.
4890         (*mmx_pblendw64): Rename from *mmx_pblendw.
4891         (mmx_punpckhbw_low): New insn_and_split pattern.
4892         (mmx_punpcklbw_low): Ditto.
4894 2021-07-05  Richard Biener  <rguenther@suse.de>
4896         * tree-vect-loop-manip.c (vect_loop_versioning): Do not
4897         set LOOP_C_INFINITE on the vectorized loop.
4899 2021-07-05  Richard Biener  <rguenther@suse.de>
4901         PR middle-end/101291
4902         * cfgloopmanip.c (loop_version): Set the loop copy of the
4903         versioned loop to the new loop.
4905 2021-07-04  Iain Sandoe  <iain@sandoe.co.uk>
4907         PR target/100269
4908         * config.gcc: Ensure that Darwin biarch definitions are
4909         added before i386.h.
4910         * config/i386/darwin.h (TARGET_64BIT): Remove.
4911         (PR80556_WORKAROUND): New.
4912         (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
4913         (DARWIN_SUBARCH_SPEC): New.
4914         * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
4915         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
4916         (REAL_LIBGCC_SPEC): Remove.
4917         * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
4918         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
4919         (REAL_LIBGCC_SPEC): Remove.
4921 2021-07-03  H.J. Lu  <hjl.tools@gmail.com>
4923         PR middle-end/101294
4924         * expr.c (store_constructor): Don't use vec_duplicate on vector.
4926 2021-07-02  Martin Sebor  <msebor@redhat.com>
4928         PR middle-end/98871
4929         PR middle-end/98512
4930         * diagnostic.c (get_any_inlining_info): New.
4931         (update_effective_level_from_pragmas): Handle inlining context.
4932         (diagnostic_enabled): Same.
4933         (diagnostic_report_diagnostic): Same.
4934         * diagnostic.h (struct diagnostic_info): Add ctor.
4935         (struct diagnostic_context): Add new member.
4936         * tree-diagnostic.c (set_inlining_locations): New.
4937         (tree_diagnostics_defaults): Set new callback pointer.
4939 2021-07-02  Peter Bergner  <bergner@linux.ibm.com>
4941         * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
4942         New macros.
4943         (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
4944         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
4945         lxvp and stxvp built-ins.
4946         (mma_init_builtins): Handle lxvp and stxvp built-ins.
4947         (builtin_function_type): Likewise.
4948         * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
4950 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
4952         * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
4953         additional argument for the code.
4954         * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
4955         argument for the code.  Just return if the ZN bits are useful or
4956         not rather than the old style CC_* enums.
4957         * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
4958         more generic shiftqi patterns.
4959         (shifthi_noscratch, shiftsi_noscratch): Similarly.
4960         (shiftqi_noscratch_set_flags): New pattern.
4961         (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
4963 2021-07-02  Andrew MacLeod  <amacleod@redhat.com>
4965         PR tree-optimization/101223
4966         * range-op.cc (build_lt): Add -1 for signed values.
4967         (built_gt): Subtract -1 for signed values.
4969 2021-07-02  David Faust  <david.faust@oracle.com>
4971         * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
4972         (btf_asm_type): Likewise.
4974 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
4976         * config/h8300/h8300-protos.h (output_a_shift): Make first argument
4977         an array of rtx rather than a pointer to rtx.  Add code argument.
4978         (compute_a_shift_length): Similarly.
4979         * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
4980         shift itself isn't an operand.  Create dummy operand[0] to carry
4981         a mode and pass a suitable rtx code to compute_a_shift_length.
4982         (get_shift_alg): Adjust operand number of clobber in output templates.
4983         (output_a_shift): Make first argument an array of rtx rather than
4984         a pointer to rtx.  Add code argument for the type of shift.
4985         Adjust now that the shift itself is no longer an operand.
4986         (compute_a_shift_length): Similarly.
4987         * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
4988         iterator rather than nshift_operator.
4989         (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
4990         (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
4991         and compute_a_shift_length.
4992         (shiftqi_noscratch_clobber_flags): Likewise.
4993         (shifthi_noscratch_clobber_flags): Likewise.
4994         (shiftsi_noscratch_clobber_flags): Likewise.
4996 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
4998         PR debug/101283
4999         * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
5000         dsymutil for BTF/CTF.
5002 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
5004         PR debug/101283
5005         * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
5006         segment to include BTF.
5007         (BTF_INFO_SECTION_NAME): New.
5009 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
5011         * config/m32r/m32r-protos.h (call_operand): Adjust return type.
5012         (small_data_operand, memreg_operand, small_insn_p): Likewise.
5013         * config/m32r/m32r.c (call_operand): Adjust return type.
5014         (small_data_operand, memreg_operand): Likewise.
5016 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
5018         * config/frv/frv-protos.h  (integer_register_operand): Adjust return
5019         type.
5020         (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
5021         (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
5022         (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
5023         (move_source_operand, move_destination_operand): Likewise.
5024         (condexec_source_operand, condexec_dest_operand): Likewise.
5025         (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
5026         (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
5027         (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
5028         (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
5029         (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
5030         (even_fpr_operand, odd_fpr_operand): Likewise.
5031         (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
5032         (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
5033         (uint4_operand, uint1_operand, int_2word_operand): Likewise
5034         (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
5035         (relational_operator, float_relational_operator): Likewise.
5036         (ccr_eqne_operator, minmax_operator): Likewise.
5037         (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
5038         (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
5039         (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
5040         (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
5041         (quad_acc_operand, accg_operand): Likewise.
5043 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
5045         * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
5046         return type to a bool.
5047         (nonimmediate_nonstack_operand): Likewise.
5048         (xstormy16_splittable_below100_operand): Likewise.
5049         * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
5050         return type.
5051         (xstormy16_splittable_below100_operand): Likewise.
5053 2021-07-02  Richard Biener  <rguenther@suse.de>
5055         PR tree-optimization/101293
5056         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
5057         with combined offsets.
5058         (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
5059         combined with the rest of the offset.
5061 2021-07-02  Eric Botcazou  <ebotcazou@adacore.com>
5063         * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
5064         PIC encodings for PE-COFF targets.
5066 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
5068         PR target/101286
5069         * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
5070         Return nullptr for TImode inner mode.
5072 2021-07-02  Richard Biener  <rguenther@suse.de>
5074         PR tree-optimization/101280
5075         PR tree-optimization/101173
5076         * gimple-loop-interchange.cc
5077         (tree_loop_interchange::valid_data_dependences): Properly
5078         guard all dependence checks with DDR_REVERSED_P or its
5079         inverse.
5081 2021-07-02  Hongyu Wang  <hongyu.wang@intel.com>
5083         * config/i386/i386-expand.c (ix86_expand_builtin):
5084         Add branch to clear odata when ZF is set for asedecenc_expand
5085         and wideaesdecenc_expand.
5087 2021-07-02  Eugene Rozenfeld  <erozen@microsoft.com>
5089         * config/i386/gcc-auto-profile: regenerate
5091 2021-07-02  liuhongt  <hongtao.liu@intel.com>
5093         * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
5094         (trunc<mode><pmov_dst_4_lower>2): this.
5096 2021-07-01  David Malcolm  <dmalcolm@redhat.com>
5098         * diagnostic.h (diagnostic_context::m_file_cache): New field.
5099         * input.c (class fcache): Rename to...
5100         (class file_cache_slot): ...this, making most members private and
5101         prefixing fields with "m_".
5102         (file_cache_slot::get_file_path): New accessor.
5103         (file_cache_slot::get_use_count): New accessor.
5104         (file_cache_slot::missing_trailing_newline_p): New accessor.
5105         (file_cache_slot::inc_use_count): New.
5106         (fcache_buffer_size): Move to...
5107         (file_cache_slot::buffer_size): ...here.
5108         (fcache_line_record_size): Move to...
5109         (file_cache_slot::line_record_size): ...here.
5110         (fcache_tab): Delete, in favor of global_dc->m_file_cache.
5111         (fcache_tab_size): Move to file_cache::num_file_slots.
5112         (diagnostic_file_cache_init): Update for move of fcache_tab
5113         to global_dc->m_file_cache.
5114         (diagnostic_file_cache_fini): Likewise.
5115         (lookup_file_in_cache_tab): Convert to...
5116         (file_cache::lookup_file): ...this.
5117         (diagnostics_file_cache_forcibly_evict_file): Update for move of
5118         fcache_tab to global_dc->m_file_cache, moving most of
5119         implementation to...
5120         (file_cache::forcibly_evict_file): ...this new function and...
5121         (file_cache_slot::evict): ...this new function.
5122         (evicted_cache_tab_entry): Convert to...
5123         (file_cache::evicted_cache_tab_entry): ...this.
5124         (add_file_to_cache_tab): Convert to...
5125         (file_cache::add_file): ...this, moving bulk of implementation
5126         to...
5127         (file_cache_slot::create): ..this new function.
5128         (file_cache::file_cache): New.
5129         (file_cache::~file_cache): New.
5130         (lookup_or_add_file_to_cache_tab): Convert to...
5131         (file_cache::lookup_or_add_file): ..this new function.
5132         (fcache::fcache): Rename to...
5133         (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
5134         to fields.
5135         (fcache::~fcache): Rename to...
5136         (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
5137         to fields.
5138         (needs_read): Convert to...
5139         (file_cache_slot::needs_read_p): ...this.
5140         (needs_grow): Convert to...
5141         (file_cache_slot::needs_grow_p): ...this.
5142         (maybe_grow): Convert to...
5143         (file_cache_slot::maybe_grow): ...this.
5144         (read_data): Convert to...
5145         (file_cache_slot::read_data): ...this.
5146         (maybe_read_data): Convert to...
5147         (file_cache_slot::maybe_read_data): ...this.
5148         (get_next_line): Convert to...
5149         (file_cache_slot::get_next_line): ...this.
5150         (goto_next_line): Convert to...
5151         (file_cache_slot::goto_next_line): ...this.
5152         (read_line_num): Convert to...
5153         (file_cache_slot::read_line_num): ...this.
5154         (location_get_source_line): Update for moving of globals to
5155         global_dc->m_file_cache.
5156         (location_missing_trailing_newline): Likewise.
5157         * input.h (class file_cache_slot): New forward decl.
5158         (class file_cache): New.
5160 2021-07-01  Michael Meissner  <meissner@linux.ibm.com>
5162         * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
5163         128-bit floating point conditional move support.
5164         (have_compare_and_set_mask): Add IEEE 128-bit floating point
5165         types.
5166         * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
5167         (mov<mode>cc_p10, IEEE128 iterator): New insn.
5168         (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
5169         (fpmask<mode>, IEEE128 iterator): New insn.
5170         (xxsel<mode>, IEEE128 iterator): New insn.
5172 2021-07-01  Iain Sandoe  <iain@sandoe.co.uk>
5174         PR debug/101283
5175         * config/darwin.h (CTF_INFO_SECTION_NAME): New.
5177 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
5179         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
5180         Make it global.
5181         * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
5182         New prototype.
5183         * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
5184         (vec_duplicate<mode>): New expander.
5186 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
5188         PR target/100865
5189         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
5190         New prototype.
5191         (ix86_byte_broadcast): New function.
5192         (ix86_convert_const_wide_int_to_broadcast): Likewise.
5193         (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
5194         size is 16 bytes or bigger.
5195         (ix86_broadcast_from_integer_constant): New function.
5196         (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
5197         to broadcast if mode size is 16 bytes or bigger.
5198         * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
5199         prototype.
5200         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
5202 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
5204         * config/i386/predicates.md (ix86_endbr_immediate_operand):
5205         Return true/false instead of 1/0.
5206         (movq_parallel): Ditto.
5208 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
5210         * recog.c (general_operand): Return true/false instead of 1/0.
5211         (register_operand): Ditto.
5212         (immediate_operand): Ditto.
5213         (const_int_operand): Ditto.
5214         (const_scalar_int_operand): Ditto.
5215         (const_double_operand): Ditto.
5216         (push_operand): Ditto.
5217         (pop_operand): Ditto.
5218         (memory_operand): Ditto.
5219         (indirect_operand): Ditto.
5221 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
5223         * genpreds.c (write_predicate_subfunction):
5224         Change the type of written subfunction to bool.
5225         (write_one_predicate_function):
5226         Change the type of written function to bool.
5227         (write_tm_preds_h): Ditto.
5228         * recog.h (*insn_operand_predicate_fn): Change the type to bool.
5229         * recog.c (general_operand): Change the type to bool.
5230         (address_operand): Ditto.
5231         (register_operand): Ditto.
5232         (pmode_register_operand): Ditto.
5233         (scratch_operand): Ditto.
5234         (immediate_operand): Ditto.
5235         (const_int_operand): Ditto.
5236         (const_scalar_int_operand): Ditto.
5237         (const_double_operand): Ditto.
5238         (nonimmediate_operand): Ditto.
5239         (nonmemory_operand): Ditto.
5240         (push_operand): Ditto.
5241         (pop_operand): Ditto.
5242         (memory_operand): Ditto.
5243         (indirect_operand): Ditto.
5244         (ordered_comparison_operator): Ditto.
5245         (comparison_operator): Ditto.
5246         * config/i386/i386-expand.c (ix86_expand_sse_cmp):
5247         Change the type of indirect predicate function to bool.
5248         * config/rs6000/rs6000.c (easy_vector_constant):
5249         Change the type to bool.
5250         * config/mips/mips-protos.h (m16_based_address_p):
5251         Change the type of operand 3 to bool.
5253 2021-07-01  Richard Biener  <rguenther@suse.de>
5255         PR tree-optimization/101280
5256         PR tree-optimization/101173
5257         * gimple-loop-interchange.cc
5258         (tree_loop_interchange::valid_data_dependences): Revert
5259         previous change and instead correctly handle DDR_REVERSED_P
5260         dependence.
5262 2021-07-01  Richard Biener  <rguenther@suse.de>
5264         PR tree-optimization/101278
5265         * tree-ssa-dse.c (dse_classify_store): First check for
5266         uses, then ignore stmt for chaining purposes.
5268 2021-07-01  Richard Biener  <rguenther@suse.de>
5270         PR tree-optimization/100778
5271         * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
5272         vectorized ops ahead of their scalar BB.
5274 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
5276         PR target/101044
5277         * config/i386/i386.md (*nabs<dwi>2_doubleword):
5278         New insn_and_split pattern.
5279         (*nabs<dwi>2_1): Ditto.
5280         * config/i386/i386-features.c
5281         (general_scalar_chain::compute_convert_gain):
5282         Handle (NEG (ABS (...))) RTX.  Rewrite src code
5283         scanner as switch statement.
5284         (general_scalar_chain::convert_insn):
5285         Handle (NEG (ABS (...))) RTX.
5286         (general_scalar_to_vector_candidate_p):
5287         Detect  (NEG (ABS (...))) RTX.  Reorder case statements
5288         for (AND (NOT (...) ...)) fallthrough.
5290 2021-07-01  Richard Biener  <rguenther@suse.de>
5292         PR tree-optimization/101178
5293         * tree-vect-slp.c (slpg_vertex::materialize): Remove.
5294         (slpg::perm_in): Add.
5295         (slpg::get_perm_in): Remove.
5296         (slpg::get_perm_materialized): Add.
5297         (vect_optimize_slp): Handle VEC_PERM nodes more optimally
5298         during permute propagation and materialization.
5300 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
5302         PR debug/101266
5303         * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
5305 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
5307         PR middle-end/94366
5308         * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
5309         is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
5310         use boolean_type_node instead of integer_type_node as NE_EXPR type.
5311         (lower_reduction_clauses): Likewise.
5313 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5315         * config/gcn/gcn.c: Include dwarf2.h.
5316         (gcn_addr_space_debug): New function.
5317         (TARGET_ADDR_SPACE_DEBUG): New hook.
5319 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5321         * common/config/gcn/gcn-common.c
5322         (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
5323         * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
5324         when emitting CFI.
5325         (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
5326         (gcn_frame_pointer_rqd): New function.
5327         (TARGET_FRAME_POINTER_REQUIRED): New hook.
5329 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5331         * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
5332         prologue register saves.
5333         (gcn_debug_unwind_info): Use UI_DWARF2.
5334         (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
5335         (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
5336         * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
5337         (DWARF_LINK_REGISTER): New define.
5338         (FIRST_PSEUDO_REGISTER): Increment.
5339         (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
5340         (CALL_USED_REGISTERS): Likewise.
5341         (REGISTER_NAMES): Likewise.
5343 2021-06-30  Richard Biener  <rguenther@suse.de>
5345         PR tree-optimization/101267
5346         * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
5347         API and use SLP compatible interface of vect_is_simple_use.
5348         Reject not vectorized SLP defs for callers that do not support
5349         that.
5350         (vect_check_store_rhs): Handle masked stores and pass down
5351         the appropriate operator index.
5352         (vectorizable_call): Adjust.
5353         (vectorizable_store): Likewise.
5354         (vectorizable_load): Likewise.  Handle SLP pecularity of
5355         masked loads.
5356         (vect_is_simple_use): Remove special-casing of masked stores.
5358 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
5360         * common.opt (foffload): Remove help as Driver only.
5361         * gcc.c (display_help): Add -foffload.
5363 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
5365         * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
5366         (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
5367         a candidate list; better inform no offload target is configured
5368         and fix hint extraction when passed target is not '\0' at [len].
5369         * common.opt (foffload): Add tailing '.'.
5370         (foffload-options): Likewise; fix flag name in the help string.
5372 2021-06-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
5374         PR target/66791
5375         * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
5376         (vcage_f32): Gate comparison on __FAST_MATH__.
5377         (vcageq_f32): Likewise.
5378         (vcale_f32): Likewise.
5379         (vcaleq_f32): Likewise.
5380         (vcagt_f32): Likewise.
5381         (vcagtq_f32): Likewise.
5382         (vcalt_f32): Likewise.
5383         (vcaltq_f32): Likewise.
5384         (vcage_f16): Likewise.
5385         (vcageq_f16): Likewise.
5386         (vcale_f16): Likewise.
5387         (vcaleq_f16): Likewise.
5388         (vcagt_f16): Likewise.
5389         (vcagtq_f16): Likewise.
5390         (vcalt_f16): Likewise.
5391         (vcaltq_f16): Likewise.
5393 2021-06-30  Richard Biener  <rguenther@suse.de>
5395         PR tree-optimization/101264
5396         * tree-vect-slp.c (vect_optimize_slp): Propagate the
5397         computed perm_in to all "any" permute successors
5398         we cannot de-duplicate immediately.
5400 2021-06-30  liuhongt  <hongtao.liu@intel.com>
5402         PR target/101248
5403         * config/i386/sse.md
5404         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
5405         Refined to ..
5406         (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
5407         this.
5408         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
5409         * config/i386/subst.md (maskz_scalar): New define_subst.
5410         (maskz_scalar_name): New subst_attr.
5411         (maskz_scalar_op5): Ditto.
5412         (round_saeonly_maskz_scalar_op5): Ditto.
5413         (round_saeonly_maskz_scalar_operand5): Ditto.
5415 2021-06-30  David Edelsohn  <dje.gcc@gmail.com>
5417         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
5418         Increase code CSECT alignment to at least 32 bytes.
5419         * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
5420         alignment designation.
5422 2021-06-29  Sergei Trofimovich  <siarheit@google.com>
5424         * doc/generic.texi: Fix s/net yet/not yet/ typo.
5426 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
5428         PR tree-optimization/101254
5429         * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
5430         wrapping/non-wrapping when setting the result range.
5432 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
5434         * value-query.cc (gimple_range_global): Allow phis.
5436 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
5438         * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
5439         (simplify_using_ranges::op_with_boolean_value_range_p): Add a
5440         statement for location context.
5441         (check_for_binary_op_overflow): Ditto.
5442         (simplify_using_ranges::get_vr_for_comparison): Ditto.
5443         (simplify_using_ranges::compare_name_with_value): Ditto.
5444         (simplify_using_ranges::compare_names): Ditto.
5445         (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
5446         (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
5447         (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
5448         (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
5449         (simplify_using_ranges::two_valued_val_range_p): Ditto.
5450         (simplify_using_ranges::simplify): Ditto.
5451         * vr-values.h: Adjust prototypes.
5453 2021-06-29  Uroš Bizjak  <ubizjak@gmail.com>
5455         PR target/95046
5456         * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
5458 2021-06-29  Julian Brown  <julian@codesourcery.com>
5460         * config/gcn/gcn.c (gcn_init_libfuncs): New function.
5461         (TARGET_INIT_LIBFUNCS): Define target hook using above function.
5462         * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
5463         otherwise.
5464         (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
5465         (MAX_FIXED_MODE_SIZE): Change to 128.
5467 2021-06-29  Julian Brown  <julian@codesourcery.com>
5469         * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
5470         (s_mnemonic): Add clrsb.
5471         (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
5472         (clrsb<mode>2): Add expander for SImode/DImode.
5474 2021-06-29  Julian Brown  <julian@codesourcery.com>
5476         * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
5477         muldi3): Add patterns.
5479 2021-06-29  Julian Brown  <julian@codesourcery.com>
5481         * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
5482         (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
5484 2021-06-29  Julian Brown  <julian@codesourcery.com>
5486         * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
5488 2021-06-29  Joseph Myers  <joseph@codesourcery.com>
5490         * btfout.c, ctfout.c: Include "memmodel.h".
5492 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5494         * gcc.c (check_offload_target_name): Cast len argument to
5495         %q.*s to 'int'; avoid -Wstringop-truncation warning.
5497 2021-06-29  Richard Biener  <rguenther@suse.de>
5499         * tree-vect-slp.c (vect_optimize_slp): Forward propagate
5500         to "any" permute nodes and relax "any" permute proapgation
5501         during iterative backward propagation.
5503 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5505         PR other/67300
5506         * common.opt (-foffload=): Update description.
5507         (-foffload-options=): New.
5508         * doc/invoke.texi (C Language Options): Document
5509         -foffload and -foffload-options.
5510         * gcc.c (check_offload_target_name): New, split off from
5511         handle_foffload_option.
5512         (check_foffload_target_names): New.
5513         (handle_foffload_option): Handle -foffload=default.
5514         (driver_handle_option): Update for -foffload-options.
5515         * lto-opts.c (lto_write_options): Use -foffload-options
5516         instead of -foffload.
5517         * lto-wrapper.c (merge_and_complain, append_offload_options):
5518         Likewise.
5519         * opts.c (common_handle_option): Likewise.
5521 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5523         * doc/invoke.texi (C Language Options): Sort options
5524         alphabetically in optlist and also the description itself.
5525         Remove leftover -fallow-single-precision from and add missing
5526         -fgnu-tm to the optlist.
5528 2021-06-29  Richard Biener  <rguenther@suse.de>
5530         * tree-vect-slp.c (slpg_vertex::visited): Remove.
5531         (vect_slp_perms_eq): Handle -1 permutes.
5532         (vect_optimize_slp): Rewrite permute propagation.
5534 2021-06-29  Jakub Jelinek  <jakub@redhat.com>
5536         PR c++/101210
5537         * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
5538         perform the optimization in GENERIC when sanitizing and x has a
5539         reference type.
5541 2021-06-29  Richard Biener  <rguenther@suse.de>
5543         PR tree-optimization/101242
5544         * tree-vect-slp.c (vect_slp_build_vertices): Force-add
5545         PHIs with not represented initial values as leafs.
5547 2021-06-29  Jan-Benedict Glaw  <jbglaw@getslash.de>
5549         * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
5550         * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
5551         "register" keyword.
5552         (pdp11_initial_elimination_offset) Remove unused variable.
5553         (pdp11_cmp_length) Ditto.
5554         (pdp11_insn_cost): Ditto, and fix signedness warning.
5556 2021-06-29  David Edelsohn  <dje.gcc@gmail.com>
5558         * btfout.c: Include tm_p.h.
5559         * ctfout.c: Same.
5561 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
5563         * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
5564         frame related.
5565         (bpf_expand_epilogue): Likewise.
5566         * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
5567         Do not define DBX_DEBUGGING_INFO.
5569 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
5571         * doc/invoke.texi: Document the CTF and BTF debug info options.
5573 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
5574             David Faust  <david.faust@oracle.com>
5575             Jose E. Marchesi  <jose.marchesi@oracle.com>
5576             Weimin Pan  <weimin.pan@oracle.com>
5578         * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
5579         GTFILES.  Add new object files.
5580         * common.opt: Add CTF and BTF debug info options.
5581         * btfout.c: New file.
5582         * ctfc.c: Likewise.
5583         * ctfc.h: Likewise.
5584         * ctfout.c: Likewise.
5585         * dwarf2ctf.c: Likewise.
5586         * dwarf2ctf.h: Likewise.
5587         * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
5588         BTF_DEBUG.
5589         * dwarf2out.c (dwarf2out_source_line): Likewise.
5590         (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
5591         be generated.
5592         (debug_format_do_cu): New function.
5593         (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
5594         them if requested.
5595         Include dwarf2ctf.c.
5596         * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
5597         formats.
5598         * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
5599         (CTF_DEBUG): New bitmask.
5600         (BTF_DEBUG): Likewise.
5601         (enum ctf_debug_info_levels): New enum.
5602         * gengtype.c (open_base_files): Handle ctfc.h.
5603         (main): Handle uint32_t type.
5604         * flags.h (btf_debuginfo_p): New definition.
5605         (dwarf_based_debuginfo_p): Likewise.
5606         * opts.c (debug_type_names): Add entries for CTF and BTF.
5607         (btf_debuginfo_p): New function.
5608         (dwarf_based_debuginfo_p): Likewise.
5609         (common_handle_option): Handle -gctfN and -gbtf options.
5610         (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
5611         * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
5612         frontend is not C.
5614 2021-06-28  Jose E. Marchesi  <jose.marchesi@oracle.com>
5616         * dwarf2out.c (AT_class): Function is no longer static.
5617         (AT_int): Likewise.
5618         (AT_unsigned): Likewise.
5619         (AT_loc): Likewise.
5620         (get_AT): Likewise.
5621         (get_AT_string): Likewise.
5622         (get_AT_flag): Likewise.
5623         (get_AT_unsigned): Likewise.
5624         (get_AT_ref): Likewise.
5625         (new_die_raw): Likewise.
5626         (lookup_decl_die): Likewise.
5627         (base_type_die): Likewise.
5628         (add_name_attribute): Likewise.
5629         (add_AT_int): Likewise.
5630         (add_AT_unsigned): Likewise.
5631         (add_AT_loc): Likewise.
5632         (dw_get_die_tag): New function.
5633         (dw_get_die_child): Likewise.
5634         (dw_get_die_sib): Likewise.
5635         (struct dwarf_file_data): Move from here to dwarf2out.h
5636         (struct dw_attr_struct): Likewise.
5637         * dwarf2out.h: Analogous changes.
5639 2021-06-28  Martin Jambor  <mjambor@suse.cz>
5641         PR ipa/93385
5642         * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
5643         members m_dead_stmts and m_dead_ssas.
5644         * ipa-param-manipulation.c
5645         (ipa_param_body_adjustments::mark_dead_statements): New function.
5646         (ipa_param_body_adjustments::common_initialization): Call it on
5647         all removed but not split parameters.
5648         (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
5649         new mwmbers.
5650         (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
5651         are dead.
5652         * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
5653         dead debug statements.
5654         (copy_phis_for_bb): Do not copy dead PHI nodes.
5656 2021-06-28  Martin Jambor  <mjambor@suse.cz>
5658         PR ipa/93385
5659         * symtab-clones.h (clone_info): Removed member param_adjustments.
5660         * ipa-param-manipulation.h: Adjust initial comment to reflect how we
5661         deal with pass-through splits now.
5662         (ipa_param_performed_split): Removed.
5663         (ipa_param_adjustments::modify_call): Adjusted parameters.
5664         (class ipa_param_body_adjustments): Adjusted parameters of
5665         register_replacement, modify_gimple_stmt and modify_call_stmt.
5666         (ipa_verify_edge_has_no_modifications): Declare.
5667         (ipa_edge_modifications_finalize): Declare.
5668         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
5669         performed_splits processing, pas only edge to padjs->modify_call,
5670         check that call arguments were not modified if they should not have
5671         been.
5672         * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
5673         splits.
5674         * ipa-param-manipulation.c (struct pass_through_split_map): New type.
5675         (ipa_edge_modification_info): Likewise.
5676         (ipa_edge_modification_sum): Likewise.
5677         (ipa_edge_modifications): New edge summary.
5678         (ipa_verify_edge_has_no_modifications): New function.
5679         (transitive_split_p): Removed.
5680         (transitive_split_map): Likewise.
5681         (init_transitive_splits): Likewise.
5682         (ipa_param_adjustments::modify_call): Adjusted to use the new edge
5683         summary instead of performed_splits.
5684         (ipa_param_body_adjustments::register_replacement): Drop dummy
5685         parameter, set base_index of the created ipa_param_body_replacement.
5686         (phi_arg_will_live_p): New function.
5687         (ipa_param_body_adjustments::common_initialization): Do not create
5688         IPA_SRA dummy decls.
5689         (simple_tree_swap_info): Removed.
5690         (remap_split_decl_to_dummy): Likewise.
5691         (record_argument_state_1): New function.
5692         (record_argument_state): Likewise.
5693         (ipa_param_body_adjustments::modify_call_stmt): New parameter
5694         orig_stmt.  Do not work with dummy decls, save necessary info about
5695         changes to ipa_edge_modifications.
5696         (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
5697         orig_stmt, pass it to modify_call_stmt.
5698         (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
5699         modify_gimple_stmt.
5700         (ipa_edge_modifications_finalize): New function.
5701         * tree-inline.c (remap_gimple_stmt): Pass original statement to
5702         modify_gimple_stmt.
5703         (copy_phis_for_bb): Do not copy dead PHI nodes.
5704         (expand_call_inline): Do not remap performed_splits.
5705         (update_clone_info): Likewise.
5706         * toplev.c: Include ipa-param-manipulation.h.
5707         (toplev::finalize): Call ipa_edge_modifications_finalize.
5709 2021-06-28  Andrew Pinski  <apinski@marvell.com>
5711         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
5712         info if we're the only things setting the target PHI.
5713         (value_replacement): Don't duplicate range here.
5714         (minmax_replacement): Likewise.
5716 2021-06-28  Richard Biener  <rguenther@suse.de>
5718         PR tree-optimization/101229
5719         * gimple-walk.c (gimple_walk_op): Handle PHIs.
5721 2021-06-28  Martin Liska  <mliska@suse.cz>
5723         * config/v850/v850.c (construct_dispose_instruction): Allocate
5724         a bigger buffer.
5725         (construct_prepare_instruction): Likewise.
5727 2021-06-28  Martin Liska  <mliska@suse.cz>
5729         * config/v850/v850.c (v850_option_override): Build default
5730         target node.
5731         (v850_can_inline_p): New.  Allow MASK_PROLOG_FUNCTION to be
5732         ignored for inlining.
5733         (TARGET_CAN_INLINE_P): New.
5735 2021-06-28  Richard Biener  <rguenther@suse.de>
5737         PR tree-optimization/101207
5738         * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
5739         permute eliding for load permutations properly.
5741 2021-06-28  Richard Biener  <rguenther@suse.de>
5743         PR tree-optimization/101173
5744         * gimple-loop-interchange.cc
5745         (tree_loop_interchange::valid_data_dependences): Disallow outer
5746         loop dependence distance of zero.
5748 2021-06-28  liuhongt  <hongtao.liu@intel.com>
5750         PR target/100648
5751         * config/i386/sse.md (*avx_cmp<mode>3_lt): New
5752         define_insn_and_split.
5753         (*avx_cmp<mode>3_ltint): Ditto.
5754         (*avx2_pcmp<mode>3_3): Ditto.
5755         (*avx2_pcmp<mode>3_4): Ditto.
5756         (*avx2_pcmp<mode>3_5): Ditto.
5758 2021-06-28  liuhongt  <hongtao.liu@intel.com>
5760         * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
5761         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
5762         IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
5763         IX86_BUILTIN_PBLENDVB128): Replace icode with
5764         CODE_FOR_nothing.
5765         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
5766         builtins.
5767         * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
5768         New pre_reload splitter.
5770 2021-06-27  Andrew Pinski  <apinski@marvell.com>
5772         PR middle-end/101230
5773         * fold-const.c (fold_ternary_loc): Check
5774         the return value of invert_tree_comparison.
5776 2021-06-27  David Edelsohn  <dje.gcc@gmail.com>
5778         * config.gcc: Add SPDX License Identifier.
5779         (powerpc-ibm-aix789): Default to aix73.h.
5780         (powerpc-ibm-aix7.2.*.*): New stanza.
5781         * config/rs6000/aix72.h: Add SPDX License Identifier.
5782         * config/rs6000/aix73.h: New file.
5784 2021-06-26  Jason Merrill  <jason@redhat.com>
5786         * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
5788 2021-06-26  Andrew Pinski  <apinski@marvell.com>
5790         * genmatch.c (lower_cond): Copy for_subst_vec
5791         for the simplify also.
5792         (lower): Swap the order for lower_for and lower_cond.
5794 2021-06-26  Andrew Pinski  <apinski@marvell.com>
5796         * tree-ssa-phiopt.c (match_simplify_replacement): Reset
5797         flow senatitive info on the moved ssa set.
5799 2021-06-26  Andrew Pinski  <apinski@marvell.com>
5801         * fold-const.c (fold_cond_expr_with_comparison):
5802         Exand arg0 into comp_code, arg00, and arg01.
5803         (fold_ternary_loc): Use invert_tree_comparison
5804         instead of fold_invert_truthvalue for the case
5805         where we have A CMP B ? C : A.
5807 2021-06-25  Martin Sebor  <msebor@redhat.com>
5809         PR middle-end/101216
5810         * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
5812 2021-06-25  Jeff Law  <jeffreyalaw@gmail.com>
5814         * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
5816 2021-06-25  Richard Biener  <rguenther@suse.de>
5818         PR tree-optimization/101202
5819         * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
5820         failed nodes.
5822 2021-06-25  Richard Biener  <rguenther@suse.de>
5824         * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
5825         STMT_VINFO_REDUC_DEF from the original representative.
5827 2021-06-25  Martin Sebor  <msebor@redhat.com>
5829         * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
5830         gimple_no_warning_p and gimple_set_no_warning with
5831         warning_suppressed_p, and suppress_warning.
5832         (c_strlen): Same.
5833         (maybe_warn_for_bound): Same.
5834         (warn_for_access): Same.
5835         (check_access): Same.
5836         (expand_builtin_strncmp): Same.
5837         (fold_builtin_varargs): Same.
5838         * calls.c (maybe_warn_nonstring_arg): Same.
5839         (maybe_warn_rdwr_sizes): Same.
5840         * cfgexpand.c (expand_call_stmt): Same.
5841         * cgraphunit.c (check_global_declaration): Same.
5842         * fold-const.c (fold_undefer_overflow_warnings): Same.
5843         (fold_truth_not_expr): Same.
5844         (fold_unary_loc): Same.
5845         (fold_checksum_tree): Same.
5846         * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
5847         (array_bounds_checker::check_mem_ref): Same.
5848         (array_bounds_checker::check_addr_expr): Same.
5849         (array_bounds_checker::check_array_bounds): Same.
5850         * gimple-expr.c (copy_var_decl): Same.
5851         * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
5852         (gimple_fold_builtin_strncat): Same.
5853         (gimple_fold_builtin_stxcpy_chk): Same.
5854         (gimple_fold_builtin_stpcpy): Same.
5855         (gimple_fold_builtin_sprintf): Same.
5856         (fold_stmt_1): Same.
5857         * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
5858         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
5859         * gimple-ssa-sprintf.c (handle_printf_call): Same.
5860         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
5861         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
5862         * gimple-ssa-warn-restrict.h: Adjust declarations.
5863         (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
5864         gimple_no_warning_p and gimple_set_no_warning with
5865         warning_suppressed_p, and suppress_warning.
5866         (check_call): Same.
5867         (check_bounds_or_overlap): Same.
5868         * gimple.c (gimple_build_call_from_tree): Same.
5869         * gimplify.c (gimplify_return_expr): Same.
5870         (gimplify_cond_expr): Same.
5871         (gimplify_modify_expr_complex_part): Same.
5872         (gimplify_modify_expr): Same.
5873         (gimple_push_cleanup): Same.
5874         (gimplify_expr): Same.
5875         * omp-expand.c (expand_omp_for_generic): Same.
5876         (expand_omp_taskloop_for_outer): Same.
5877         * omp-low.c (lower_rec_input_clauses): Same.
5878         (lower_lastprivate_clauses): Same.
5879         (lower_send_clauses): Same.
5880         (lower_omp_target): Same.
5881         * tree-cfg.c (pass_warn_function_return::execute): Same.
5882         * tree-complex.c (create_one_component_var): Same.
5883         * tree-inline.c (remap_gimple_op_r): Same.
5884         (copy_tree_body_r): Same.
5885         (declare_return_variable): Same.
5886         (expand_call_inline): Same.
5887         * tree-nested.c (lookup_field_for_decl): Same.
5888         * tree-sra.c (create_access_replacement): Same.
5889         (generate_subtree_copies): Same.
5890         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
5891         * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
5892         * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
5893         * tree-ssa-loop-im.c (execute_sm): Same.
5894         * tree-ssa-phiopt.c (cond_store_replacement): Same.
5895         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
5896         (handle_builtin_strcpy): Same.
5897         (maybe_diag_stxncpy_trunc): Same.
5898         (handle_builtin_stxncpy_strncat): Same.
5899         (handle_builtin_strcat): Same.
5900         * tree-ssa-uninit.c (get_no_uninit_warning): Same.
5901         (set_no_uninit_warning): Same.
5902         (uninit_undefined_value_p): Same.
5903         (warn_uninit): Same.
5904         (maybe_warn_operand): Same.
5905         * tree-vrp.c (compare_values_warnv): Same.
5906         * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
5907         (test_for_singularity): Same.
5908         * gimple.h (warning_suppressed_p): New function.
5909         (suppress_warning): Same.
5910         (copy_no_warning): Same.
5911         (gimple_set_block): Call gimple_set_location.
5912         (gimple_set_location): Call copy_warning.
5914 2021-06-25  Martin Sebor  <msebor@redhat.com>
5916         * tree.h (warning_suppressed_at, copy_warning,
5917         warning_suppressed_p, suppress_warning): New functions.
5919 2021-06-25  Martin Sebor  <msebor@redhat.com>
5921         * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
5922         * gengtype.c (open_base_files): Add diagnostic-spec.h.
5923         * diagnostic-spec.c: New file.
5924         * diagnostic-spec.h: New file.
5925         * tree.h (no_warning, all_warnings, suppress_warning_at): New
5926         declarations.
5927         * warning-control.cc: New file.
5929 2021-06-25  liuhongt  <hongtao.liu@intel.com>
5931         PR target/101185
5932         * config/i386/i386.c (x86_order_regs_for_local_alloc):
5933         Revert r12-1669.
5935 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
5937         PR tree-optimization/101189
5938         * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
5939         LHS range of condition to postfold routine.
5940         (fold_using_range::postfold_gcond_edges): Only process the TRUE or
5941         FALSE edge if the LHS range supports it being taken.
5942         * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
5944 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
5946         * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
5947         (relation_oracle::find_relation_block): Check correct bitmap.
5948         (relation_oracle::dump): Do not dump NULL blocks.
5950 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
5952         * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
5953         range_on_edge instead of manually calculating.
5955 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
5957         * range-op.cc: Fix comment.
5959 2021-06-24  Uroš Bizjak  <ubizjak@gmail.com>
5961         PR target/89021
5962         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
5963         Handle V8QI and V4HI modes.
5964         * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
5965         New insn pattern.
5966         (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
5967         (mmxpackmode): New mode attribute.
5968         (vec_pack_trunc_<mmxpackmode:mode>): New expander.
5969         (mmxunpackmode): New mode attribute.
5970         (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
5971         (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
5972         (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
5973         (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
5974         * config/i386/i386.md (extsuffix): Move from ...
5975         * config/i386/sse.md: ... here.
5977 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
5979         * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
5980         (dwarf2out_finish): ...instead of here.
5982 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
5984         * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
5985         (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
5986         (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
5987         * configure: Regenerate.
5989 2021-06-24  Richard Biener  <rguenther@suse.de>
5991         * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
5992         vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
5993         (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
5995 2021-06-24  Richard Biener  <rguenther@suse.de>
5997         * config/i386/sse.md (avx_addsubv4df3): Rename to
5998         vec_addsubv4df3.
5999         (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
6000         (sse3_addsubv2df3): Rename to vec_addsubv2df3.
6001         (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
6002         * config/i386/i386-builtin.def: Adjust.
6003         * internal-fn.def (VEC_ADDSUB): New internal optab fn.
6004         * optabs.def (vec_addsub_optab): New optab.
6005         * tree-vect-slp-patterns.c (class addsub_pattern): New.
6006         (slp_patterns): Add addsub_pattern.
6007         * tree-vect-slp.c (vect_optimize_slp): Disable propagation
6008         across CFN_VEC_ADDSUB.
6009         * tree-vectorizer.h (vect_pattern::vect_pattern): Make
6010         m_ops optional.
6011         * doc/md.texi (vec_addsub<mode>3): Document.
6013 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
6015         PR middle-end/101170
6016         * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
6017         where regno + subreg_regno_offset wraps around use 0 as starting
6018         regno.
6020 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
6022         PR middle-end/101172
6023         * stor-layout.c (finish_bitfield_representative): If nextf has
6024         error_mark_node type, set repr type to error_mark_node too.
6026 2021-06-24  Ilya Leoshkevich  <iii@linux.ibm.com>
6028         * config/s390/s390.c (s390_function_profiler): Ignore labelno
6029         parameter.
6030         * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
6032 2021-06-24  Richard Biener  <rguenther@suse.de>
6034         * tree-vect-slp.c (vect_optimize_slp): Do not propagate
6035         across operations that have different semantics on different
6036         lanes.
6038 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
6040         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
6041         * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
6042         with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
6043         of non-decl OMP_CLAUSE_DECL.  For OMP_CLAUSE_IN_REDUCTION on
6044         OMP_TARGET user outer_ctx instead of ctx for placeholders and
6045         initializer/combiner gimplification.
6046         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
6047         on target constructs.
6048         (lower_rec_input_clauses): Likewise.
6049         (lower_omp_target): Likewise.
6050         * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
6051         on target if in_reduction is present.
6053 2021-06-24  Kewen Lin  <linkw@linux.ibm.com>
6055         * tree-predcom.c (class pcom_worker): New class.
6056         (release_chain): Renamed to...
6057         (pcom_worker::release_chain): ...this.
6058         (release_chains): Renamed to...
6059         (pcom_worker::release_chains): ...this.
6060         (aff_combination_dr_offset): Renamed to...
6061         (pcom_worker::aff_combination_dr_offset): ...this.
6062         (determine_offset): Renamed to...
6063         (pcom_worker::determine_offset): ...this.
6064         (class comp_ptrs): New class.
6065         (split_data_refs_to_components): Renamed to...
6066         (pcom_worker::split_data_refs_to_components): ...this,
6067         and update with class comp_ptrs.
6068         (suitable_component_p): Renamed to...
6069         (pcom_worker::suitable_component_p): ...this.
6070         (filter_suitable_components): Renamed to...
6071         (pcom_worker::filter_suitable_components): ...this.
6072         (valid_initializer_p): Renamed to...
6073         (pcom_worker::valid_initializer_p): ...this.
6074         (find_looparound_phi): Renamed to...
6075         (pcom_worker::find_looparound_phi): ...this.
6076         (add_looparound_copies): Renamed to...
6077         (pcom_worker::add_looparound_copies): ...this.
6078         (determine_roots_comp): Renamed to...
6079         (pcom_worker::determine_roots_comp): ...this.
6080         (determine_roots): Renamed to...
6081         (pcom_worker::determine_roots): ...this.
6082         (single_nonlooparound_use): Renamed to...
6083         (pcom_worker::single_nonlooparound_use): ...this.
6084         (remove_stmt): Renamed to...
6085         (pcom_worker::remove_stmt): ...this.
6086         (execute_pred_commoning_chain): Renamed to...
6087         (pcom_worker::execute_pred_commoning_chain): ...this.
6088         (execute_pred_commoning): Renamed to...
6089         (pcom_worker::execute_pred_commoning): ...this.
6090         (struct epcc_data): New member worker.
6091         (execute_pred_commoning_cbck): Call execute_pred_commoning
6092         with pcom_worker pointer.
6093         (find_use_stmt): Renamed to...
6094         (pcom_worker::find_use_stmt): ...this.
6095         (find_associative_operation_root): Renamed to...
6096         (pcom_worker::find_associative_operation_root): ...this.
6097         (find_common_use_stmt): Renamed to...
6098         (pcom_worker::find_common_use_stmt): ...this.
6099         (combinable_refs_p): Renamed to...
6100         (pcom_worker::combinable_refs_p): ...this.
6101         (reassociate_to_the_same_stmt): Renamed to...
6102         (pcom_worker::reassociate_to_the_same_stmt): ...this.
6103         (stmt_combining_refs): Renamed to...
6104         (pcom_worker::stmt_combining_refs): ...this.
6105         (combine_chains): Renamed to...
6106         (pcom_worker::combine_chains): ...this.
6107         (try_combine_chains): Renamed to...
6108         (pcom_worker::try_combine_chains): ...this.
6109         (prepare_initializers_chain): Renamed to...
6110         (pcom_worker::prepare_initializers_chain): ...this.
6111         (prepare_initializers): Renamed to...
6112         (pcom_worker::prepare_initializers): ...this.
6113         (prepare_finalizers_chain): Renamed to...
6114         (pcom_worker::prepare_finalizers_chain): ...this.
6115         (prepare_finalizers): Renamed to...
6116         (pcom_worker::prepare_finalizers): ...this.
6117         (tree_predictive_commoning_loop): Renamed to...
6118         (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
6119         some calls and remove some cleanup code.
6120         (tree_predictive_commoning): Adjusted to use pcom_worker instance.
6121         (static variable looparound_phis): Remove.
6122         (static variable name_expansions): Remove.
6124 2021-06-24  Richard Biener  <rguenther@suse.de>
6126         * tree-vect-slp.c (slpg_vertex): New struct.
6127         (vect_slp_build_vertices): Adjust.
6128         (vect_optimize_slp): Likewise.  Maintain an outgoing permute
6129         and a materialized one.
6131 2021-06-24  Richard Biener  <rguenther@suse.de>
6133         PR tree-optimization/101105
6134         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6135         Only ignore steps when they are equal or scalar order is preserved.
6137 2021-06-24  liuhongt  <hongtao.liu@intel.com>
6139         PR target/98434
6140         * config/i386/i386-expand.c (ix86_expand_vec_interleave):
6141         Adjust comments for ix86_expand_vecop_qihi2.
6142         (ix86_expand_vecmul_qihi): Renamed to ..
6143         (ix86_expand_vecop_qihi2): Adjust function prototype to
6144         support shift operation, add static to definition.
6145         (ix86_expand_vec_shift_qihi_constant): Add static to definition.
6146         (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
6147         ix86_expand_vec_shift_qihi_constant.
6148         * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
6149         (ix86_expand_vec_shift_qihi_constant): Deleted.
6150         * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
6151         iterator.
6152         (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
6153         condition TARGET_64BIT.
6154         (mul<mode>3): Ditto.
6155         (<insn><mode>3): Ditto.
6156         (vlshr<mode>3): Extend to support avx512 vlshr.
6157         (v<insn><mode>3): New expander for
6158         vashr/vlshr/vashl.
6159         (v<insn>v8qi3): Ditto.
6160         (vashrv8hi3<mask_name>): Renamed to ..
6161         (vashr<mode>3): And extend to support V16QImode for avx512.
6162         (vashrv16qi3): Deleted.
6163         (vashrv2di3<mask_name>): Extend expander to support avx512
6164         instruction.
6166 2021-06-23  Dimitar Dimitrov  <dimitar@dinux.eu>
6168         * doc/lto.texi (Design Overview): Update that slim objects are
6169         the default.
6171 2021-06-23  Aaron Sawdey  <acsawdey@linux.ibm.com>
6173         * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
6174         of OTHER_POWER10_MASKS so it will not be enabled by default.
6176 2021-06-23  Richard Biener  <rguenther@suse.de>
6177             Martin Jambor  <mjambor@suse.cz>
6179         * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
6180         param replacement unconditionally.  Adjust comment.
6182 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
6184         * Makefile.in (OBJS): Add gimple-range-fold.o
6185         * gimple-range-fold.cc: New.
6186         * gimple-range-fold.h: New.
6187         * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
6188         (gimple_range_calc_op2): Ditto.
6189         * gimple-range-gori.h: Move prototypes to here.
6190         * gimple-range.cc: Adjust include files.
6191         (fur_source:fur_source): Relocate to gimple-range-fold.cc.
6192         (fur_source::get_operand): Ditto.
6193         (fur_source::get_phi_operand): Ditto.
6194         (fur_source::query_relation): Ditto.
6195         (fur_source::register_relation): Ditto.
6196         (class fur_edge): Ditto.
6197         (fur_edge::fur_edge): Ditto.
6198         (fur_edge::get_operand): Ditto.
6199         (fur_edge::get_phi_operand): Ditto.
6200         (fur_stmt::fur_stmt): Ditto.
6201         (fur_stmt::get_operand): Ditto.
6202         (fur_stmt::get_phi_operand): Ditto.
6203         (fur_stmt::query_relation): Ditto.
6204         (class fur_depend): Relocate to gimple-range-fold.h.
6205         (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
6206         (fur_depend::register_relation): Ditto.
6207         (fur_depend::register_relation): Ditto.
6208         (class fur_list): Ditto.
6209         (fur_list::fur_list): Ditto.
6210         (fur_list::get_operand): Ditto.
6211         (fur_list::get_phi_operand): Ditto.
6212         (fold_range): Ditto.
6213         (adjust_pointer_diff_expr): Ditto.
6214         (gimple_range_adjustment): Ditto.
6215         (gimple_range_base_of_assignment): Ditto.
6216         (gimple_range_operand1): Ditto.
6217         (gimple_range_operand2): Ditto.
6218         (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
6219         (gimple_range_calc_op2): Ditto.
6220         (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
6221         (fold_using_range::range_of_range_op): Ditto.
6222         (fold_using_range::range_of_address): Ditto.
6223         (fold_using_range::range_of_phi): Ditto.
6224         (fold_using_range::range_of_call): Ditto.
6225         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
6226         (fold_using_range::range_of_builtin_call): Ditto.
6227         (fold_using_range::range_of_cond_expr): Ditto.
6228         (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
6229         (fold_using_range::relation_fold_and_or): Ditto.
6230         (fold_using_range::postfold_gcond_edges): Ditto.
6231         * gimple-range.h: Add gimple-range-fold.h to include files. Change
6232         GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
6233         (gimple_range_handler): Relocate to gimple-range-fold.h.
6234         (gimple_range_ssa_p): Ditto.
6235         (range_compatible_p): Ditto.
6236         (class fur_source): Ditto.
6237         (class fur_stmt): Ditto.
6238         (class fold_using_range): Ditto.
6239         (gimple_range_calc_op1): Relocate to gimple-range-gori.h
6240         (gimple_range_calc_op2): Ditto.
6242 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
6244         PR tree-optimization/101148
6245         PR tree-optimization/101014
6246         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
6247         (ranger_cache::~ranger_cache): Adjust.
6248         (ranger_cache::block_range): Check if propagation disallowed.
6249         (ranger_cache::propagate_cache): Disallow propagation if new value
6250         can't be stored properly.
6251         * gimple-range-cache.h (ranger_cache::m_propfail): New member.
6253 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
6255         * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
6256         (sbr_vector::set_bb_range): Return true.
6257         (class sbr_sparse_bitmap): Adjust.
6258         (sbr_sparse_bitmap::set_bb_range): Return value.
6259         (block_range_cache::set_bb_range): Return value.
6260         (ranger_cache::propagate_cache): Use return value to print msg.
6261         * gimple-range-cache.h (class block_range_cache): Adjust.
6263 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
6265         * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
6267 2021-06-23  Jeff Law  <jeffreyalaw@gmail.com>
6269         * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
6270         so this pattern can be used for test/compare removal.  Pass
6271         current insn to compute_logical_op_length and output_logical_op.
6272         * config/h8300/h8300.c (compute_logical_op_cc): Remove.
6273         (h8300_and_costs): Add argument to compute_logical_op_length.
6274         (output_logical_op): Add new argument.  Use it to determine if the
6275         condition codes are used and adjust the output accordingly.
6276         (compute_logical_op_length): Add new argument and update length
6277         computations when condition codes are used.
6278         * config/h8300/h8300-protos.h (compute_logical_op_length): Update
6279         prototype.
6280         (output_logical_op): Likewise.
6282 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
6284         PR target/89021
6285         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
6286         Handle 64bit modes for TARGET_XOP.  Use indirect gen_* functions.
6287         * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
6288         * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
6289         * config/i386/sse.md (unspec): ... here.
6291 2021-06-23  Martin Liska  <mliska@suse.cz>
6293         PR target/98636
6294         * optc-save-gen.awk: Put back arm_fp16_format to
6295         checked_options.
6297 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
6299         PR target/101175
6300         * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
6301         (bsr): Ditto.
6302         (*bsrhi): Remove.
6303         (clz<mode>2): Update RTX pattern for additions.
6305 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
6307         PR middle-end/101167
6308         * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
6309         and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
6311 2021-06-22  Sergei Trofimovich  <siarheit@google.com>
6313         * doc/rtl.texi: drop unbalanced parenthesis.
6315 2021-06-22  Richard Biener  <rguenther@suse.de>
6317         PR middle-end/101156
6318         * gimplify.c (gimplify_expr): Remove premature incorrect
6319         optimization.
6321 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
6323         PR tree-optimization/101159
6324         * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
6325         comment typos.
6327 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
6329         PR middle-end/101160
6330         * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
6331         clear crtl->return_rtx instead of keeping it referencing a pseudo.
6333 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
6334             Andrew Pinski  <apinski@marvell.com>
6336         PR tree-optimization/101162
6337         * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
6338         types.
6340 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
6342         * range-op.cc (range_relational_tests): New.
6343         (range_op_tests): Call range_relational_tests.
6345 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
6347         * range-op.cc (operator_cast::lhs_op1_relation): New.
6348         (operator_identity::lhs_op1_relation): Mew.
6350 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
6352         * range-op.cc (operator_minus::op1_op2_relation_effect): New.
6354 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
6356         * range-op.cc (operator_plus::lhs_op1_relation): New.
6357         (operator_plus::lhs_op2_relation): New.
6359 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
6361         * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
6362         relation_oracle if dominators exist.
6363         (ranger_cache::~ranger_cache): Dispose of oracle.
6364         (ranger_cache::dump_bb): Dump oracle.
6365         * gimple-range.cc (fur_source::fur_source): New.
6366         (fur_source::get_operand): Use mmeber query.
6367         (fur_source::get_phi_operand): Use member_query.
6368         (fur_source::query_relation): New.
6369         (fur_source::register_dependency): Delete.
6370         (fur_source::register_relation): New.
6371         (fur_edge::fur_edge): Adjust.
6372         (fur_edge::get_phi_operand): Fix comment.
6373         (fur_edge::query): Delete.
6374         (fur_stmt::fur_stmt): Adjust.
6375         (fur_stmt::query): Delete.
6376         (fur_depend::fur_depend): Adjust.
6377         (fur_depend::register_relation): New.
6378         (fur_depend::register_relation): New.
6379         (fur_list::fur_list): Adjust.
6380         (fur_list::get_operand): Use member query.
6381         (fold_using_range::range_of_range_op): Process and query relations.
6382         (fold_using_range::range_of_address): Adjust dependency call.
6383         (fold_using_range::range_of_phi): Ditto.
6384         (gimple_ranger::gimple_ranger): New.  Use ranger_ache oracle.
6385         (fold_using_range::relation_fold_and_or): New.
6386         (fold_using_range::postfold_gcond_edges): New.
6387         * gimple-range.h (class gimple_ranger): Adjust.
6388         (class fur_source): Adjust members.
6389         (class fur_stmt): Ditto.
6390         (class fold_using_range): Ditto.
6392 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
6394         * range-op.cc (range_operator::wi_fold): Apply relation effect.
6395         (range_operator::fold_range): Adjust and apply relation effect.
6396         (*::fold_range): Add relation parameters.
6397         (*::op1_range): Ditto.
6398         (*::op2_range): Ditto.
6399         (range_operator::lhs_op1_relation): New.
6400         (range_operator::lhs_op2_relation): New.
6401         (range_operator::op1_op2_relation): New.
6402         (range_operator::op1_op2_relation_effect): New.
6403         (relop_early_resolve): New.
6404         (operator_equal::op1_op2_relation): New.
6405         (operator_equal::fold_range): Call relop_early_resolve.
6406         (operator_not_equal::op1_op2_relation): New.
6407         (operator_not_equal::fold_range): Call relop_early_resolve.
6408         (operator_lt::op1_op2_relation): New.
6409         (operator_lt::fold_range): Call relop_early_resolve.
6410         (operator_le::op1_op2_relation): New.
6411         (operator_le::fold_range): Call relop_early_resolve.
6412         (operator_gt::op1_op2_relation): New.
6413         (operator_gt::fold_range): Call relop_early_resolve.
6414         (operator_ge::op1_op2_relation): New.
6415         (operator_ge::fold_range): Call relop_early_resolve.
6416         * range-op.h (class range_operator): Adjust parameters and methods.
6418 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
6420         * Makefile.in (OBJS): Add value-relation.o.
6421         * gimple-range.h: Adjust include files.
6422         * tree-data-ref.c: Adjust include file order.
6423         * value-query.cc (range_query::get_value_range): Default to no oracle.
6424         (range_query::query_relation): New.
6425         (range_query::query_relation): New.
6426         * value-query.h (class range_query): Adjust.
6427         * value-relation.cc: New.
6428         * value-relation.h: New.
6430 2021-06-22  Richard Biener  <rguenther@suse.de>
6432         PR tree-optimization/101151
6433         * tree-ssa-sink.c (statement_sink_location): Expand irreducible
6434         region check.
6436 2021-06-22  Jojo R  <rjiejie@linux.alibaba.com>
6438         * config/riscv/riscv.c (thead_c906_tune_info): New.
6439         (riscv_tune_info_table): Use new tune.
6441 2021-06-22  Richard Biener  <rguenther@suse.de>
6443         PR tree-optimization/101158
6444         * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
6445         checking after checking for matching operation.
6447 2021-06-22  Richard Biener  <rguenther@suse.de>
6449         PR tree-optimization/101159
6450         * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
6451         missing NULL vectype check.
6453 2021-06-22  Richard Biener  <rguenther@suse.de>
6455         PR tree-optimization/101154
6456         * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
6458 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
6460         PR target/11877
6461         * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
6462         * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
6463         * config/i386/i386.c (ix86_expand_prologue): Clear it.
6464         * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
6465         Remove "" from match_operand.  Emit new insns using emit_move_insn and
6466         set ix86_last_zero_store_uid to INSN_UID of the last store.
6467         Add peephole2s for 1/2/4 stores of const0_rtx following previous
6468         successful peep2s.
6470 2021-06-22  Martin Liska  <mliska@suse.cz>
6472         * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
6473         was changed.
6475 2021-06-22  Martin Liska  <mliska@suse.cz>
6477         * gcov-io.h: Remove padding entries.
6479 2021-06-22  liuhongt  <hongtao.liu@intel.com>
6481         PR tree-optimization/97770
6482         * tree-vect-patterns.c (vect_recog_popcount_pattern):
6483         New.
6484         (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
6486 2021-06-22  liuhongt  <hongtao.liu@intel.com>
6488         PR target/100267
6489         * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
6490         * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
6491         (expand<mode>_mask): this ..
6492         (*expand<mode>_mask): New pre_reload splitter to transform
6493         v{,p}expand* to vmov* when mask is zero, all ones, or has all
6494         ones in it's lower part, otherwise still generate
6495         v{,p}expand*.
6497 2021-06-22  liuhongt  <hongtao.liu@intel.com>
6499         PR target/100310
6500         * config/i386/i386-expand.c
6501         (ix86_expand_special_args_builtin): Keep constm1_operand only
6502         if it satisfies insn's operand predicate.
6504 2021-06-21  Jason Merrill  <jason@redhat.com>
6506         PR target/88529
6507         * df-scan.c (df_ref_record): Check that regno < endregno.
6508         * function.c (assign_parms, expand_function_end): Do nothing with a
6509         TYPE_EMPTY_P result.
6511 2021-06-21  Richard Biener  <rguenther@suse.de>
6513         PR tree-optimization/101120
6514         * tree-vect-data-refs.c (bump_vector_ptr): Fold the
6515         built increment.
6516         * tree-vect-slp.c (vect_transform_slp_perm_load): Add
6517         DR chain DCE capability.
6518         * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
6519         * tree-vect-stmts.c (vectorizable_load): Remove unused
6520         loads in the DR chain for SLP.
6522 2021-06-21  Jakub Jelinek  <jakub@redhat.com>
6524         PR inline-asm/100785
6525         * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
6526         output or input operands were already error_mark_node.
6527         * cfgexpand.c (expand_asm_stmt): If errors are emitted,
6528         remove all inputs, outputs and clobbers from the asm and
6529         set template to "".
6531 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
6533         * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
6534         (vceq_s16): Likewise.
6535         (vceq_s32): Likewise.
6536         (vceq_u8): Likewise.
6537         (vceq_u16): Likewise.
6538         (vceq_u32): Likewise.
6539         (vceq_p8): Likewise.
6540         (vceqq_s8): Likewise.
6541         (vceqq_s16): Likewise.
6542         (vceqq_s32): Likewise.
6543         (vceqq_u8): Likewise.
6544         (vceqq_u16): Likewise.
6545         (vceqq_u32): Likewise.
6546         (vceqq_p8): Likewise.
6547         (vceq_f32): Gate __a == __b on __FAST_MATH__.
6548         (vceqq_f32): Likewise.
6549         (vceq_f16): Likewise.
6550         (vceqq_f16): Likewise.
6552 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
6554         PR target/97906
6555         * config/arm/iterators.md (NEON_VACMP): Remove.
6556         * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
6557         iterator.
6558         (neon_vca<cmp_op><mode>_insn): Likewise.
6559         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
6560         NEON_VACMP.
6562 2021-06-21  Richard Biener  <rguenther@suse.de>
6564         PR tree-optimization/101121
6565         * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
6566         when we just lack a stmt with the desired op when doing permutation.
6567         (vect_build_slp_tree): When caching a failed SLP build attempt
6568         assert that at least one lane is marked as not matching.
6570 2021-06-21  liuhongt  <hongtao.liu@intel.com>
6572         PR target/101142
6573         * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
6574         register alternative.
6575         (*and<mode>_1): Ditto.
6576         (*andqi_1): Ditto.
6577         (*andn<mode>_1): Ditto.
6578         (*<code><mode>_1): Ditto.
6579         (*<code>qi_1): Ditto.
6580         (*one_cmpl<mode>2_1): Ditto.
6581         (*one_cmplsi2_1_zext): Ditto.
6582         (*one_cmplqi2_1): Ditto.
6583         * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
6584         the order of mask registers to be before general registers.
6586 2021-06-21  Roger Sayle  <roger@nextmovesoftware.com>
6588         PR target/11877
6589         * config/i386/i386.md: New define_peephole2s to shrink writing
6590         1, 2 or 4 consecutive zeros to memory when optimizing for size.
6592 2021-06-18  Jeff Law  <jeffreyalaw@gmail.com>
6594         * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
6595         * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
6596         more efficient code when the source can be trivially simplified.
6598 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
6600         * gimple-range-cache.cc (ranger_cache::range_of_def):  Calculate
6601         a range if global is not available.
6602         (ranger_cache::entry_range): Fallback to range_of_def.
6603         * gimple-range-cache.h (range_of_def): Adjust prototype.
6605 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
6607         PR tree-optimization/101014
6608         * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
6609         value list.
6610         (ranger_cache::~ranger_cache): Ditto.
6611         (ranger_cache::enable_new_values): Delete.
6612         (ranger_cache::push_poor_value): Delete.
6613         (ranger_cache::range_of_def): Remove poor value processing.
6614         (ranger_cache::entry_range): Ditto.
6615         (ranger_cache::fill_block_cache): Ditto.
6616         * gimple-range-cache.h (class ranger_cache): Remove poor value members.
6617         * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
6618         * gimple-range.h (class gimple_ranger): Adjust.
6620 2021-06-18  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
6622         PR target/100856
6623         * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
6624         derived from arm_canon_arch.
6625         (arm_canon_arch_option): Call it.
6626         (arm_canon_arch_multilib_option): New function.
6627         * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
6628         * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
6629         (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
6630         (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
6631         (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
6632         * config/arm/arm.opt (mlibarch): New option.
6633         * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
6634         of march on RHS with mlibarch.
6636 2021-06-18  Marcel Vollweiler  <marcel@codesourcery.com>
6638         * config.in: Regenerate.
6639         * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
6640         functions.
6641         * configure: Regenerate.
6642         * configure.ac: Fix for global_load assembler functions.
6644 2021-06-18  Richard Biener  <rguenther@suse.de>
6646         PR tree-optimization/101112
6647         * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
6648         to lookup a pattern stmt def.
6650 2021-06-18  Jakub Jelinek  <jakub@redhat.com>
6652         PR middle-end/101062
6653         * stor-layout.c (finish_bitfield_layout): Don't add bitfield
6654         representatives in QUAL_UNION_TYPE.
6656 2021-06-18  Andrew Pinski  <apinski@marvell.com>
6658         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
6659         Add counting of how many times it is done.
6660         (factor_out_conditional_conversion): Likewise.
6661         (match_simplify_replacement): Likewise.
6662         (value_replacement): Likewise.
6663         (spaceship_replacement): Likewise.
6664         (cond_store_replacement): Likewise.
6665         (cond_if_else_store_replacement_1): Likewise.
6666         (hoist_adjacent_loads): Likewise.
6668 2021-06-18  Andrew Pinski  <apinski@marvell.com>
6670         * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
6671         types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
6672         (verify_gimple_assign_binary): Reject point and offset types on
6673         MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
6674         FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
6675         FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
6677 2021-06-18  Michael Meissner  <meissner@linux.ibm.com>
6679         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
6680         3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
6681         * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
6682         New insns.
6684 2021-06-17  Aaron Sawdey  <acsawdey@linux.ibm.com>
6686         * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
6687         earlyclobber to alts 0/1.
6688         (gen_addadd): Add earlyclobber to alts 0/1.
6689         * config/rs6000/fusion.md: Regenerate file.
6691 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
6693         * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
6695 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
6697         * gimple-range-cache.cc: Comment cleanups.
6698         * gimple-range-gori.cc: Comment cleanups.
6699         * gimple-range.cc: Comment/spacing cleanups
6700         * value-range.h: Comment cleanups.
6702 2021-06-17  H.J. Lu  <hjl.tools@gmail.com>
6704         PR target/100704
6705         * calls.c (expand_call): Replace PUSH_ARGS with
6706         targetm.calls.push_argument (0).
6707         (emit_library_call_value_1): Likewise.
6708         * defaults.h (PUSH_ARGS): Removed.
6709         (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
6710         targetm.calls.push_argument (0).
6711         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6712         (emit_push_insn): Pass the number bytes to push to
6713         targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
6714         * hooks.c (hook_bool_uint_true): New.
6715         * hooks.h (hook_bool_uint_true): Likewise.
6716         * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
6717         targetm.calls.push_argument (0).
6718         * target.def (push_argument): Add a targetm.calls hook.
6719         * targhooks.c (default_push_argument): New.
6720         * targhooks.h (default_push_argument): Likewise.
6721         * config/bpf/bpf.h (PUSH_ARGS): Removed.
6722         * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
6723         * config/cr16/cr16.h (PUSH_ARGS): Removed.
6724         * config/i386/i386.c (ix86_push_argument): New.
6725         (TARGET_PUSH_ARGUMENT): Likewise.
6726         * config/i386/i386.h (PUSH_ARGS): Removed.
6727         * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
6728         * config/m32c/m32c.h (PUSH_ARGS): Removed.
6729         * config/nios2/nios2.h (PUSH_ARGS): Likewise.
6730         * config/pru/pru.h (PUSH_ARGS): Likewise.
6731         * doc/tm.texi.in: Remove PUSH_ARGS documentation.  Add
6732         TARGET_PUSH_ARGUMENT hook.
6733         * doc/tm.texi: Regenerated.
6735 2021-06-17  Uroš Bizjak  <ubizjak@gmail.com>
6737         PR target/97194
6738         * config/i386/i386-expand.c (expand_vector_set_var):
6739         Handle V2FS mode remapping.  Pass TARGET_MMX_WITH_SSE to
6740         ix86_expand_vector_init_duplicate.
6741         (ix86_expand_vector_init_duplicate): Emit insv_1 for
6742         QImode for !TARGET_PARTIAL_REG_STALL.
6743         * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
6744         * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
6745         as operand 2 predicate.  Call ix86_expand_vector_set_var
6746         for non-constant index operand.
6747         (vec_setv2si): Ditto.
6748         (vec_setv4hi): Ditto.
6749         (vec_setv8qi): ditto.
6751 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
6753         PR tree-optimization/100790
6754         * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
6755         code.
6757 2021-06-17  Martin Liska  <mliska@suse.cz>
6759         * doc/invoke.texi: Use consistently -O1 instead of -O.
6761 2021-06-17  Martin Liska  <mliska@suse.cz>
6763         * gcov-io.h: Update documentation entry about string format.
6765 2021-06-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
6767         PR target/100871
6768         * config/s390/vecintrin.h (vec_doublee): Fix to use
6769           __builtin_s390_vflls.
6770         (vec_floate): Fix to use __builtin_s390_vflrd.
6772 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
6774         * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
6775         * dominance.h (get_dominated_to_depth): Likewise.
6776         (get_all_dominated_blocks): Likewise.
6777         * cfgcleanup.c (delete_unreachable_blocks): Adjust.
6778         * gcse.c (hoist_code): Likewise.
6779         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
6780         * tree-parloops.c (oacc_entry_exit_ok): Likewise.
6781         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6782         * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
6784 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
6786         * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
6787         * dominance.h (get_dominated_by_region): Likewise.
6788         * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
6789         (gimple_duplicate_sese_tail): Likewise.
6790         (move_sese_region_to_fn): Likewise.
6792 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
6794         * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
6795         * dominance.h (get_dominated_by): Likewise.
6796         * auto-profile.c (afdo_find_equiv_class): Adjust.
6797         * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
6798         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
6799         * tree-cfg.c (test_linear_chain): Likewise.
6800         (test_diamond): Likewise.
6802 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
6804         * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
6805         * cfgloopanal.c (get_loop_hot_path): Likewise.
6806         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
6808 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
6810         * cgraph.c (cgraph_node::collect_callers): Return
6811         auto_vec<cgraph_edge *>.
6812         * cgraph.h (cgraph_node::collect_callers): Likewise.
6813         * ipa-cp.c (create_specialized_node): Adjust.
6814         (decide_about_value): Likewise.
6815         (decide_whether_version_node): Likewise.
6816         * ipa-sra.c (process_isra_node_results): Likewise.
6818 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
6820         * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
6821         (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
6822         constructor.
6823         (auto_vec<T, 0>::operator=): Define move assignment and delete copy
6824         assignment.
6826 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
6828         * gimple-range.cc (debug_seed_ranger): New.
6829         (dump_ranger): New.
6830         (debug_ranger): New.
6832 2021-06-17  Richard Biener   <rguenther@suse.de>
6834         PR tree-optimization/54400
6835         * tree-vectorizer.h (enum slp_instance_kind): Add
6836         slp_inst_kind_bb_reduc.
6837         (reduction_fn_for_scalar_code): Declare.
6838         * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
6839         Check SLP_INSTANCE_KIND instead of looking at the
6840         representative.
6841         (vect_slp_analyze_instance_alignment): Likewise.
6842         * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
6843         * tree-vect-slp.c (vect_slp_linearize_chain): Split out
6844         chain linearization from vect_build_slp_tree_2 and generalize
6845         for the use of BB reduction vectorization.
6846         (vect_build_slp_tree_2): Adjust accordingly.
6847         (vect_optimize_slp): Elide permutes at the root of BB reduction
6848         instances.
6849         (vectorizable_bb_reduc_epilogue): New function.
6850         (vect_slp_prune_covered_roots): Likewise.
6851         (vect_slp_analyze_operations): Use them.
6852         (vect_slp_check_for_constructors): Recognize associatable
6853         chains for BB reduction vectorization.
6854         (vectorize_slp_instance_root_stmt): Generate code for the
6855         BB reduction epilogue.
6857 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
6859         * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
6860         may_recompute_p.
6861         (gori_compute::may_recompute_p): New.
6862         (gori_compute::outgoing_edge_range_p): Perform recomputations.
6863         * gimple-range-gori.h (class gori_compute): Add prototype.
6865 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
6867         * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
6868         true when a range can be calculated.
6869         * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
6871 2021-06-16  Martin Sebor  <msebor@redhat.com>
6873         * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
6874         Correct documented defaults.
6876 2021-06-16  Andrew MacLeod  <amacleod@redhat.com>
6878         * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
6879         m_new_value_p directly.
6881 2021-06-16  Uroš Bizjak  <ubizjak@gmail.com>
6883         PR target/89021
6884         * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
6885         Handle 64bit modes for TARGET_SSE4_1.
6886         (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
6887         (expand_vec_perm_even_odd_pack): Handle V4HI mode.
6888         (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
6889         expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
6890         expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
6891         * config/i386/mmx.md (mmx_packusdw): New insn pattern.
6893 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
6895         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
6896         Change to an expander that emits the correct instruction
6897         depending on endianness.
6898         (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
6899         (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
6901 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
6903         * config/aarch64/aarch64-simd-builtins.def: Split generator
6904         for aarch64_<su>qmovn builtins into scalar and vector
6905         variants.
6906         * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
6907         Define.
6908         (aarch64_<su>qmovn<mode>_insn_be): Define.
6909         (aarch64_<su>qmovn<mode>): Split into scalar and vector
6910         variants. Change vector variant to an expander that emits the
6911         correct instruction depending on endianness.
6913 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
6915         * config/aarch64/aarch64-simd-builtins.def: Split generator
6916         for aarch64_sqmovun builtins into scalar and vector variants.
6917         * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
6918         Split into scalar and vector variants. Change vector variant
6919         to an expander that emits the correct instruction depending
6920         on endianness.
6921         (aarch64_sqmovun<mode>_insn_le): Define.
6922         (aarch64_sqmovun<mode>_insn_be): Define.
6924 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
6926         * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
6927         Define - modeling zero-high-half semantics.
6928         (aarch64_xtn<mode>): Change to an expander that emits the
6929         appropriate instruction depending on endianness.
6930         (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
6931         semantics.
6932         (aarch64_xtn2<mode>_le): Rename to...
6933         (aarch64_xtn2<mode>_insn_le): This.
6934         (aarch64_xtn2<mode>_be): Rename to...
6935         (aarch64_xtn2<mode>_insn_be): This.
6936         (vec_pack_trunc_<mode>): Emit truncation instruction instead
6937         of aarch64_xtn.
6938         * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
6939         attribute iterator.
6941 2021-06-16  Martin Jambor  <mjambor@suse.cz>
6943         PR tree-optimization/100453
6944         * tree-sra.c (create_access): Disqualify any const candidates
6945         which are written to.
6946         (sra_modify_expr): Do not store sub-replacements back to a const base.
6947         (handle_unscalarized_data_in_subtree): Likewise.
6948         (sra_modify_assign): Likewise.  Earlier, use TREE_READONLy test
6949         instead of constant_decl_p.
6951 2021-06-16  Jakub Jelinek  <jakub@redhat.com>
6953         PR middle-end/101062
6954         * stor-layout.c (finish_bitfield_representative): For fields in unions
6955         assume nextf is always NULL.
6956         (finish_bitfield_layout): Compute bit field representatives also in
6957         unions, but handle it as if each bitfield was the only field in the
6958         aggregate.
6960 2021-06-16  Richard Biener  <rguenther@suse.de>
6962         PR tree-optimization/101088
6963         * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
6964         supported refs on edges.  Do not assert same ref but
6965         different kind stores are unsuported but mark them so.
6966         (hoist_memory_references): Only look for supported refs
6967         on exits.
6969 2021-06-16  Roger Sayle  <roger@nextmovesoftware.com>
6971         PR rtl-optimization/46235
6972         * config/i386/i386.md: New define_split for bt followed by cmov.
6973         (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
6974         (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
6975         (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
6976         by setnc with zero extension.
6978 2021-06-16  Richard Biener  <rguenther@suse.de>
6980         PR tree-optimization/101083
6981         * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
6982         vectype as argument.
6983         (vect_build_slp_tree_2): Adjust.
6985 2021-06-15  Martin Sebor  <msebor@redhat.com>
6987         PR middle-end/100876
6988         * builtins.c: (gimple_call_return_array): Account for size_t
6989         mangling as either unsigned int or unsigned long
6991 2021-06-15  Jeff Law  <jeffreyalaw@gmail.com>
6993         * compare-elim.c (try_eliminate_compare): Run DCE to clean things
6994         up before eliminating comparisons.
6996 2021-06-15  Aldy Hernandez  <aldyh@redhat.com>
6998         * range-op.cc (operator_bitwise_or::wi_fold): Make sure
6999         nonzero|X is nonzero.
7000         (range_op_bitwise_and_tests): Add tests for above.
7002 2021-06-15  Carl Love  <cel@us.ibm.com>
7004         PR target/101022
7005         * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
7006         enum definition.
7007         (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
7008         definitions.
7010 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
7012         PR fortran/92568
7013         * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
7014         (struct gimplify_omp_ctx): Extend defaultmap array by one.
7015         (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
7016         (omp_notice_variable): Update type classification for Fortran.
7017         (gimplify_scan_omp_clauses): Update calls for new argument; handle
7018         GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
7019         * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
7020         * langhooks.c (lhd_omp_scalar_p): Likewise.
7021         (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
7022         (LANG_HOOKS_DECLS): Add them.
7023         * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
7024         omp_scalar_p pointer type to include the new bool argument.
7026 2021-06-15  David Malcolm  <dmalcolm@redhat.com>
7028         * doc/analyzer.texi
7029         (Special Functions for Debugging the Analyzer): Add
7030         __analyzer_dump_capacity.
7032 2021-06-15  Jakub Jelinek  <jakub@redhat.com>
7034         PR target/101046
7035         * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
7036         case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
7038 2021-06-15  Richard Biener  <rguenther@suse.de>
7040         * cfgloopanal.c (mark_irreducible_loops): Use a dominance
7041         check to identify loop latches.
7042         * cfgloop.c (verify_loop_structure): Likewise.
7043         * loop-init.c (apply_loop_flags): Allow marked irreducible
7044         regions even with multiple latches.
7045         * predict.c (rebuild_frequencies): Simplify.
7047 2021-06-15  Richard Biener  <rguenther@suse.de>
7049         * tree-ssa-threadupdate.c
7050         (jump_thread_path_registry::mark_threaded_blocks): Assert we
7051         have marked irreducible regions.
7053 2021-06-14  Martin Sebor  <msebor@redhat.com>
7055         PR c++/100876
7056         * builtins.c (gimple_call_return_array): Check for attribute fn spec.
7057         Handle calls to placement new.
7058         (ndecl_dealloc_argno): Avoid placement delete.
7060 2021-06-14  Peter Bergner  <bergner@linux.ibm.com>
7062         PR target/100777
7063         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
7064         create_tmp_reg_or_ssa_name().
7066 2021-06-14  Andrew MacLeod  <amacleod@redhat.com>
7068         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
7069         (ranger_cache::enable_new_values): Set to specified value and
7070         return the old value.
7071         (ranger_cache::disable_new_values): Delete.
7072         (ranger_cache::fill_block_cache): Disable non 1st order derived
7073         poor values.
7074         * gimple-range-cache.h (ranger_cache): Adjust prototypes.
7075         * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
7077 2021-06-14  Uroš Bizjak  <ubizjak@gmail.com>
7079         PR target/101058
7080         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
7081         Return true early when testing with V2HImode.
7082         * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
7084 2021-06-14  Christophe Lyon  <christophe.lyon@linaro.org>
7086         * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
7087         (mve_vec_unpack<US>_hi_<mode>): New pattern.
7088         (@mve_vec_pack_trunc_lo_<mode>): New pattern.
7089         (mve_vmovntq_<supf><mode>): Prefix with '@'.
7090         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
7091         vec-common.md.
7092         (vec_unpack<US>_lo_<mode>): Likewise.
7093         (vec_pack_trunc_<mode>): Rename to
7094         neon_quad_vec_pack_trunc_<mode>.
7095         * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
7096         pattern.
7097         (vec_unpack<US>_lo_<mode>): New.
7098         (vec_pack_trunc_<mode>): New.
7100 2021-06-14  Richard Biener  <rguenther@suse.de>
7102         PR tree-optimization/100934
7103         * tree-ssa-dom.c (pass_dominator::execute): Properly
7104         mark irreducible regions.
7106 2021-06-14  Martin Liska  <mliska@suse.cz>
7108         * doc/invoke.texi: Put r{...} on the same line as @item.
7110 2021-06-14  Martin Liska  <mliska@suse.cz>
7112         * doc/invoke.texi: Add missing newline.
7114 2021-06-14  Martin Liska  <mliska@suse.cz>
7116         * doc/invoke.texi: Remove '+' charasters.
7118 2021-06-14  Claudiu Zissulescu  <claziss@synopsys.com>
7120         * config.gcc (arc): Add support for with_cpu option.
7121         * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
7123 2021-06-14  Richard Biener  <rguenther@suse.de>
7125         PR tree-optimization/101031
7126         * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
7127         instead of size when accounting for a possibly string
7128         terminating nul.
7130 2021-06-14  Martin Liska  <mliska@suse.cz>
7132         * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
7134 2021-06-14  Aldy Hernandez  <aldyh@redhat.com>
7136         * value-query.cc (gimple_range_global): Call get_range_global
7137         if called after inlining.
7139 2021-06-13  Uroš Bizjak  <ubizjak@gmail.com>
7141         PR target/101021
7142         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
7143         Emit constant permutation insn directly from here.
7145 2021-06-13  Trevor Saunders  <tbsaunde@tbsaunde.org>
7147         * attribs.c (find_attribute_namespace): Iterate over vec<> with
7148         range based for.
7149         * auto-profile.c (afdo_find_equiv_class): Likewise.
7150         * gcc.c (do_specs_vec): Likewise.
7151         (do_spec_1): Likewise.
7152         (driver::set_up_specs): Likewise.
7153         * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
7154         * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
7155         (imm_store_chain_info::try_coalesce_bswap): Likewise.
7156         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
7157         (get_location_for_stmts): Likewise.
7158         * graphite-poly.c (print_iteration_domains): Likewise.
7159         (free_poly_bb): Likewise.
7160         (remove_gbbs_in_scop): Likewise.
7161         (free_scop): Likewise.
7162         (dump_gbb_cases): Likewise.
7163         (dump_gbb_conditions): Likewise.
7164         (print_pdrs): Likewise.
7165         (print_scop): Likewise.
7166         * ifcvt.c (cond_move_process_if_block): Likewise.
7167         * lower-subreg.c (decompose_multiword_subregs): Likewise.
7168         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
7169         * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
7170         * sel-sched-dump.c (dump_insn_vector): Likewise.
7171         * store-motion.c (store_ops_ok): Likewise.
7172         (store_killed_in_insn): Likewise.
7173         * timevar.c (timer::named_items::print): Likewise.
7174         * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
7175         (cleanup_tree_cfg_noloop): Likewise.
7176         * tree-data-ref.c (dump_data_references): Likewise.
7177         (print_dir_vectors): Likewise.
7178         (print_dist_vectors): Likewise.
7179         (dump_data_dependence_relations): Likewise.
7180         (dump_dist_dir_vectors): Likewise.
7181         (dump_ddrs): Likewise.
7182         (create_runtime_alias_checks): Likewise.
7183         (free_subscripts): Likewise.
7184         (save_dist_v): Likewise.
7185         (save_dir_v): Likewise.
7186         (invariant_access_functions): Likewise.
7187         (same_access_functions): Likewise.
7188         (access_functions_are_affine_or_constant_p): Likewise.
7189         (find_data_references_in_stmt): Likewise.
7190         (graphite_find_data_references_in_stmt): Likewise.
7191         (free_dependence_relations): Likewise.
7192         (free_data_refs): Likewise.
7193         * tree-inline.c (copy_debug_stmts): Likewise.
7194         * tree-into-ssa.c (dump_currdefs): Likewise.
7195         (rewrite_update_phi_arguments): Likewise.
7196         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
7197         * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
7198         Likewise.
7199         (vect_slp_analyze_node_dependences): Likewise.
7200         (vect_slp_analyze_instance_dependence): Likewise.
7201         (vect_record_base_alignments): Likewise.
7202         (vect_get_peeling_costs_all_drs): Likewise.
7203         (vect_peeling_supportable): Likewise.
7204         * tree-vectorizer.c (vec_info::~vec_info): Likewise.
7205         (vec_info::free_stmt_vec_infos): Likewise.
7207 2021-06-13  Jeff Law  <jeffreyalaw@gmail.com>
7209         * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
7210         (andqi3_1<cczn>): Removed.
7211         (<ors>qi3_1): Do not split for IOR/XOR a single bit.
7212         (H8/SX bit logicals): Split out from other patterns.
7213         * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
7214         mulqihi3_const_clobber_flags.
7215         (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
7217 2021-06-13  H.J. Lu  <hjl.tools@gmail.com>
7219         PR target/101023
7220         * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
7221         to true if red zone is used.
7222         (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
7223         ix86_red_zone_used.
7224         * config/i386/i386.h (machine_function): Add red_zone_used.
7225         (ix86_red_zone_size): Removed.
7226         (ix86_red_zone_used): New.
7227         * config/i386/i386.md (peephole2 patterns): Replace
7228         ix86_red_zone_size with ix86_red_zone_used.
7230 2021-06-12  Jason Merrill  <jason@redhat.com>
7232         * doc/extend.texi (unused variable attribute): Applies to
7233         structure fields as well.
7235 2021-06-12  Eugene Rozenfeld  <erozen@microsoft.com>
7237         * auto-profile.c (read_profile): fix a typo in an error string
7239 2021-06-11  Thomas Schwinge  <thomas@codesourcery.com>
7241         * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
7242         default argument.
7243         * tree-pretty-print.c (dump_omp_clauses): Update.
7244         (dump_generic_node) <OMP_CLAUSE>: Use it.
7246 2021-06-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
7248         PR target/101016
7249         * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
7250         int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
7251         the polymorphic variants matching code.
7252         (__arm_vld1q_z): Likewise.
7253         (__arm_vld2q): Likewise.
7254         (__arm_vld4q): Likewise.
7255         (__arm_vldrbq_gather_offset): Likewise.
7256         (__arm_vldrbq_gather_offset_z): Likewise.
7258 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
7260         PR tree-optimization/96392
7261         * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
7263 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
7265         PR tree-optimization/96392
7266         * fold-const.c (fold_real_zero_addition_p): Take both arguments
7267         of the addition or subtraction, not just the zero.  Use this
7268         other argument in tests for signaling NaNs and signed zeros.
7269         (tree_expr_maybe_real_minus_zero_p): New predicate.
7270         * fold-const.h (fold_real_zero_addition_p): Update prototype.
7271         (tree_expr_maybe_real_minus_zero_p): New function prototype.
7272         * match.pd: Update calls to fold_real_zero_addition_p.
7273         Replace HONOR_NANS with tree_expr_maybe_nan_p.
7274         Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
7275         Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
7276         * tree-ssa-reassoc.c (eliminate_using_constants): Update
7277         call to fold_real_zero_addition_p.
7279 2021-06-11  Richard Biener  <rguenther@suse.de>
7281         PR tree-optimization/101025
7282         * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
7283         all refs that require dependence checking.
7285 2021-06-11  Richard Biener  <rguenther@suse.de>
7287         PR tree-optimization/101028
7288         * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
7289         reassoc discovery fails fatally, mark appropriate lanes
7290         in matches[] so.
7292 2021-06-11  Richard Biener  <rguenther@suse.de>
7294         PR tree-optimization/101026
7295         * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
7296         have a representative for the associated chain nodes.
7298 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
7300         PR rtl-optimization/101008
7301         * simplify-rtx.c (relational_result): New function.
7302         (simplify_logical_relational_operation,
7303         simplify_relational_operation): Use it.
7305 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
7307         PR target/101007
7308         * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
7310 2021-06-11  Uroš Bizjak  <ubizjak@gmail.com>
7312         PR target/101021
7313         * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
7314         false if the permutation can be implemented with constant
7315         permutation instruction in wider mode.
7316         (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
7317         Handle V8QImode and V4HImode.
7319 2021-06-11  Martin Liska  <mliska@suse.cz>
7321         PR gcov-profile/100788
7322         * common.opt: Add new option.
7323         * coverage.c (coverage_begin_function): Emit warning instead on
7324         the internal compiler error.
7325         * doc/invoke.texi: Document the option.
7326         * toplev.c (process_options): Enable it by default.
7328 2021-06-11  Richard Biener  <rguenther@suse.de>
7330         PR middle-end/101009
7331         * tree-data-ref.c (build_classic_dist_vector_1): Make sure
7332         to set *init_b to true when we encounter a constant equal
7333         index pair.
7334         (compute_affine_dependence): Also dump the actual DR_REF.
7336 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
7338         PR tree-optimization/100984
7339         * gimple-ssa-evrp.c  (ssa_equiv_stack): Use auto_vec for
7340         replacements table.
7341         (ssa_equiv_stack::~ssa_equiv_stack): Remove.
7343 2021-06-11  Kewen Lin  <linkw@linux.ibm.com>
7345         * config/rs6000/rs6000.md
7346         (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
7347         define_insn_and_split.
7349 2021-06-11  Richard Biener  <rguenther@suse.de>
7351         * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
7352         to sort operands of the associative chain.
7354 2021-06-11  Richard Biener  <rguenther@suse.de>
7356         * system.h (gcc_stablesort_r): Declare.
7357         * sort.cc (gcc_sort_r): Support stable sort.
7358         (gcc_stablesort_r): Define.
7359         * vec.h (vec<>::stablesort): Add.
7361 2021-06-10  Uroš Bizjak  <ubizjak@gmail.com>
7363         PR target/89021
7364         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
7365         Handle V2SF mode.  Emit SHUFPS to fixup unpack-high for V2SF mode.
7366         (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
7367         (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
7368         (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
7369         (expand_vec_perm_interleave2): Handle 64bit modes.
7370         (expand_vec_perm_even_odd_pack): Handle V8QI mode.
7371         (expand_vec_perm_even_odd_1): Ditto.
7372         (ix86_vectorize_vec_perm_const): Ditto.
7373         * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
7374         * config/i386/sse.md: ... here.
7375         * config/i386/mmx.md (*vec_interleave_lowv2sf):
7376         New insn_and_split pattern.
7377         (*vec_interleave_highv2sf): Ditto.
7378         (mmx_pshufbv8qi3): New insn pattern.
7379         (*mmx_pblendw): Ditto.
7381 2021-06-10  Peter Bergner  <bergner@linux.ibm.com>
7383         * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
7384         (build_acc): Likewise.
7385         * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
7386         source operands in little-endian mode.
7387         (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
7388         (mma_init_builtins): Likewise.
7389         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
7390         ordering for the MMA assemble and build source operands.
7391         * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
7392         Document.
7393         (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
7394         documentation.
7396 2021-06-10  Jeff Law  <jeffreyalaw@gmail.com>
7398         * config/h8300/h8300.c (select_cc_mode): Handle MEM.  Use
7399         REG_P.
7400         * config/h8300/extensions.md: Replace _clobber_flags patterns
7401         with <cczn>.
7403 2021-06-10  Robin Dapp  <rdapp@linux.ibm.com>
7405         * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
7406         (vcond_mask_<mode><tointvec>): this.
7408 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
7409             Thomas Schwinge  <thomas@codesourcery.com>
7411         * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
7412         (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
7413         * gimple.h (enum gf_mask): Split
7414         'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
7415         'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
7416         'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
7417         (is_gimple_omp_oacc): Update.
7418         * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
7419         * gimplify.c (gimplify_omp_target_update): Likewise.
7420         * omp-expand.c (expand_omp_target, build_omp_regions_1)
7421         (omp_make_gimple_edges): Likewise.
7422         * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
7423         Likewise.
7425 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
7427         * value-query.cc (value_query::value_on_edge): Rename name to
7428         expr.
7429         (range_query::range_on_edge): Same.
7430         (range_query::value_of_expr): Same.
7431         (range_query::value_on_edge): Same.
7432         * value-query.h (class value_query): Same.
7433         (class range_query): Same.
7435 2021-06-10  Richard Biener  <rguenther@suse.de>
7437         PR tree-optimization/101003
7438         * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
7439         use the pattern stmt defs when linearizing a chain.
7441 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
7443         PR debug/100852
7444         * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
7445         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
7447 2021-06-10  Clement Chigot  <clement.chigot@atos.net>
7449         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
7450         * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
7452 2021-06-09  Andrew Pinski  <apinski@marvell.com>
7454         PR tree-optimization/100925
7455         * match.pd (a ? CST1 : CST2): Limit transformations
7456         that would produce a negative to integeral types only.
7457         Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
7459 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
7461         Revert:
7462         2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
7464         * doc/tm.texi: Correctly update.
7466 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
7468         * doc/tm.texi: Correctly update.
7470 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
7472         PR other/100735
7473         * doc/tm.texi.in (Trampolines): Add a missing blank line.
7475 2021-06-09  Paul Eggert  <eggert@cs.ucla.edu>
7477         PR other/100735
7478         * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
7479         and -ftrampolines work only with Ada.
7480         * doc/tm.texi.in (Trampolines): Likewise.
7481         * doc/tm.texi: Regenerated.
7483 2021-06-09  Carl Love  <cel@us.ibm.com>
7485         * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
7486         Add define for new builtins.
7487         * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
7488         * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL):  Add
7489         overloaded builtin definitions.
7490         (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
7491         VSIGNEXTSD2Q):  Add builtin expansions.
7492         (SIGNEXT): Add P10 overload definition.
7493         * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
7494         P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
7495         * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
7496         (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
7497         vsignextend_si_v2di)[VIlong]: Add define_expand.
7498         Make define_insn vsx_sign_extend_si_v2di visible.
7499         * doc/extend.texi:  Add documentation for the vec_signexti,
7500         vec_signextll builtins and vec_signextq.
7502 2021-06-09  Carl Love  <cel@us.ibm.com>
7504         * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
7505         __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
7506         __floattikf_sw, __floatuntikf_sw respectively.
7507         * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
7508         fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
7509         define_insn for mode IEEE 128.
7511 2021-06-09  Carl Love  <cel@us.ibm.com>
7513         * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
7514         Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
7515         * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
7516         (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
7517         (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
7518         * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
7519         uses of VSX_TI to VEC_TI.
7521 2021-06-09  Carl Love  <cel@us.ibm.com>
7523         * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
7525 2021-06-09  Carl Love  <cel@us.ibm.com>
7527         * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
7528         builtins.
7529         * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
7530         UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
7531         (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
7532         altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
7533         altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
7534         altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
7535         altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
7536         define_insn.
7537         (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
7538         vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
7539         altivec_vrlqnm): New define_expands.
7540         * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
7541         VCMPGTUT_P): Add macro expansions.
7542         (BU_P10V_AV_P): Add builtin predicate definition.
7543         (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
7544         CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
7545         VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
7546         VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
7547         MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
7548         (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
7549         * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
7550         P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
7551         P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
7552         P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
7553         P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
7554         P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
7555         P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
7556         P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
7557         P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
7558         P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
7559         P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
7560         P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
7561         P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
7562         P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
7563         P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
7564         P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
7565         P10V_BUILTIN_MODU_V1TI):
7566         New overloaded definitions.
7567         (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
7568         P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
7569         P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
7570         P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
7571         P10V_BUILTIN_CMPLE_U1TI]: New case statements.
7572         (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
7573         New assignments.
7574         (altivec_init_builtins): New E_V1TImode case statement.
7575         (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
7576         P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
7577         P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
7578         P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
7579         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
7580         E_V1TImode]: New case statements.
7581         * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
7582         value RS6000_BTI_bool_V1TI.
7583         * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
7584         vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
7585         vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
7586         vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
7587         vlshrv1ti3, vashrv1ti3): New define_expands.
7588         * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
7589         UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
7590         UNSPEC_VSX_MODUQ): New unspecs.
7591         (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
7592         vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
7593         define_insns.
7594         (vcmpnet): New define_expand.
7595         * doc/extend.texi: Add documentation for the new builtins vec_rl,
7596         vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
7597         vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
7598         vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
7599         vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
7600         vec_any_ge, vec_any_le.
7602 2021-06-09  Carl Love  <cel@us.ibm.com>
7604         * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
7605         bug in argument generation.
7607 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
7609         * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
7610         (VCLZQ): Remove.
7611         * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
7612         remove <supf> iterator.
7613         (mve_vclzq_u<mode>): New.
7614         * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
7615         (neon_vclz<mode): Move to ...
7616         * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
7617         * config/arm/vec-common.md: ... here. Add support for MVE.
7619 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
7621         * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
7622         (@mve_vrhaddq_<supf><mode): Likewise.
7623         * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
7624         * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
7625         (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
7627 2021-06-09  imba-tjd  <109224573@qq.com>
7629         * doc/invoke.texi: Fix typo.
7631 2021-06-09  Roger Sayle  <roger@nextmovesoftware.com>
7633         PR middle-end/53267
7634         * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
7635         Support evaluation of fmod/fmodf/fmodl at compile-time.
7637 2021-06-09  Richard Biener  <rguenther@suse.de>
7639         PR tree-optimization/100981
7640         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7641         gimple_get_lhs to also handle calls.
7642         * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
7643         reduction info.
7645 2021-06-09  Richard Biener  <rguenther@suse.de>
7647         PR tree-optimization/97832
7648         * tree-vectorizer.h (_slp_tree::failed): New.
7649         * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
7650         failed member.
7651         (_slp_tree::~_slp_tree): Free failed.
7652         (vect_build_slp_tree): Retain failed nodes and record
7653         matches in them, copying that back out when running
7654         into a cached fail.  Dump start and end of discovery.
7655         (dt_sort_cmp): New.
7656         (vect_build_slp_tree_2): Handle associatable chains
7657         together doing more aggressive operand swapping.
7659 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
7661         PR target/100896
7662         * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
7663         GNU targets.
7664         * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
7665         Linux and GNU targets.
7667 2021-06-09  Richard Biener  <rguenther@suse.de>
7669         * tree-vect-stmts.c (vect_is_simple_use): Always get dt
7670         from the stmt.
7672 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
7674         * config/arc/arc.md (loop_end): Change it to
7675         define_insn_and_split.
7677 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
7679         * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
7680         (machi): New pattern.
7681         (umaddhisi4): Use VMAC2HU instruction.
7682         (umachi): New pattern.
7684 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
7686         * config/arc/arc-protos.h (arc_split_move_p): New prototype.
7687         * config/arc/arc.c (arc_split_move_p): New function.
7688         (arc_split_move): Clean up.
7689         * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
7690         (movdf_insn): Likewise.
7691         * config/arc/simdext.md (mov<VWH>_insn): Likewise.
7693 2021-06-09  Uroš Bizjak  <ubizjak@gmail.com>
7695         PR target/100936
7696         * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
7697         argument to "raw".  Do not emit segment overrides when "raw" is true.
7699 2021-06-09  Martin Liska  <mliska@suse.cz>
7701         * doc/gcov.texi: Create a proper JSON files.
7702         * doc/invoke.texi: Remove dots in order to make it a valid
7703         JSON object.
7705 2021-06-09  Xionghu Luo  <luoxhu@linux.ibm.com>
7707         * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
7708         (insn_is_load_p): Use pattern_is_rotate64.
7709         (insn_is_swap_p): Likewise.
7710         (quad_aligned_load_p): Likewise.
7711         (const_load_sequence_p): Likewise.
7712         (replace_swapped_aligned_load): Likewise.
7713         (recombine_lvx_pattern): Likewise.
7714         (recombine_stvx_pattern): Likewise.
7716 2021-06-09  Andrew MacLeod  <amacleod@redhat.com>
7718         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
7719         fur_stmt source record.
7720         * gimple-range.cc (fur_source::get_operand): Generic range query.
7721         (fur_source::get_phi_operand): New.
7722         (fur_source::register_dependency): New.
7723         (fur_source::query): New.
7724         (class fur_edge): New.  Edge source for operands.
7725         (fur_edge::fur_edge): New.
7726         (fur_edge::get_operand): New.
7727         (fur_edge::get_phi_operand): New.
7728         (fur_edge::query): New.
7729         (fur_stmt::fur_stmt): New.
7730         (fur_stmt::get_operand): New.
7731         (fur_stmt::get_phi_operand): New.
7732         (fur_stmt::query): New.
7733         (class fur_depend): New.  Statement source and process dependencies.
7734         (fur_depend::fur_depend): New.
7735         (fur_depend::register_dependency): New.
7736         (class fur_list): New.  List source for operands.
7737         (fur_list::fur_list): New.
7738         (fur_list::get_operand): New.
7739         (fur_list::get_phi_operand): New.
7740         (fold_range): New.  Instantiate appropriate fur_source class and fold.
7741         (fold_using_range::range_of_range_op): Use new API.
7742         (fold_using_range::range_of_address): Ditto.
7743         (fold_using_range::range_of_phi): Ditto.
7744         (imple_ranger::fold_range_internal): Use fur_depend class.
7745         (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
7746         * gimple-range.h (class fur_source): Now a base class.
7747         (class fur_stmt): New.
7748         (fold_range): New prototypes.
7749         (fur_source::fur_source): Delete.
7751 2021-06-08  Andrew Pinski  <apinski@marvell.com>
7753         PR tree-optimization/25290
7754         * tree-ssa-phiopt.c (xor_replacement): Delete.
7755         (tree_ssa_phiopt_worker): Delete use of xor_replacement.
7756         (match_simplify_replacement): Allow one cheap preparation
7757         statement that can be moved to before the if.
7759 2021-06-08  Pat Haugen  <pthaugen@linux.ibm.com>
7761         * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
7762         power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
7764 2021-06-08  Jeff Law  <jeffreyalaw@gmail.com>
7766         * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
7767         Create length attribute on define_insn_and_split.  Only split for cases which we
7768         know will use AND.
7769         (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags.  Only handle AND here and
7770         fix length computation.
7771         (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
7773 2021-06-08  Richard Biener  <rguenther@suse.de>
7775         PR tree-optimization/100923
7776         * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
7777         the operand vector to be valueized.
7778         (valueize_refs): Likewise.
7779         (valueize_shared_reference_ops_from_ref): Adjust.
7780         (valueize_shared_reference_ops_from_call): Likewise.
7781         (vn_reference_lookup_3): Likewise.
7782         (vn_reference_lookup_pieces): Likewise.  Re-valueize
7783         with honoring availability when we are about to create
7784         the ao_ref and valueized before.
7785         (vn_reference_lookup): Likewise.
7786         (vn_reference_insert_pieces): Adjust.
7788 2021-06-08  Richard Biener  <rguenther@suse.de>
7790         * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
7791         (_slp_instance::root_stmts): ... a vector.
7792         (SLP_INSTANCE_ROOT_STMT): Rename to ...
7793         (SLP_INSTANCE_ROOT_STMTS): ... this.
7794         (slp_root::root): Change to...
7795         (slp_root::roots): ... a vector.
7796         (slp_root::slp_root): Adjust.
7797         * tree-vect-slp.c (_slp_instance::location): Adjust.
7798         (vect_free_slp_instance): Release the root stmt vector.
7799         (vect_build_slp_instance): Adjust.
7800         (vect_analyze_slp): Likewise.
7801         (_bb_vec_info::~_bb_vec_info): Likewise.
7802         (vect_slp_analyze_operations): Likewise.
7803         (vect_bb_vectorization_profitable_p): Likewise.  Adjust
7804         costs for the root stmt.
7805         (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
7806         as root stmts.
7807         (vect_slp_analyze_bb_1): Simplify by marking all root stmts
7808         as pure_slp.
7809         (vectorize_slp_instance_root_stmt): Adjust.
7810         (vect_schedule_slp): Likewise.
7812 2021-06-08  Aldy Hernandez  <aldyh@redhat.com>
7814         * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
7815         (ssa_equiv_stack::ssa_equiv_stack): New.
7816         (ssa_equiv_stack::~ssa_equiv_stack): New.
7817         (ssa_equiv_stack::enter): New.
7818         (ssa_equiv_stack::leave): New.
7819         (ssa_equiv_stack::push_replacement): New.
7820         (ssa_equiv_stack::get_replacement): New.
7821         (is_pointer_ssa): New.
7822         (class pointer_equiv_analyzer): New.
7823         (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
7824         (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
7825         (pointer_equiv_analyzer::set_global_equiv): New.
7826         (pointer_equiv_analyzer::set_cond_equiv): New.
7827         (pointer_equiv_analyzer::get_equiv): New.
7828         (pointer_equiv_analyzer::enter): New.
7829         (pointer_equiv_analyzer::leave): New.
7830         (pointer_equiv_analyzer::get_equiv_expr): New.
7831         (pta_valueize): New.
7832         (pointer_equiv_analyzer::visit_stmt): New.
7833         (pointer_equiv_analyzer::visit_edge): New.
7834         (hybrid_folder::value_of_expr): Call PTA.
7835         (hybrid_folder::value_on_edge): Same.
7836         (hybrid_folder::pre_fold_bb): New.
7837         (hybrid_folder::post_fold_bb): New.
7838         (hybrid_folder::pre_fold_stmt): New.
7839         (rvrp_folder::pre_fold_bb): New.
7840         (rvrp_folder::post_fold_bb): New.
7841         (rvrp_folder::pre_fold_stmt): New.
7842         (rvrp_folder::value_of_expr): Call PTA.
7843         (rvrp_folder::value_on_edge): Same.
7845 2021-06-08  Jakub Jelinek  <jakub@redhat.com>
7847         PR c++/100957
7848         * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
7849         check TREE_CODE if OMP_CLAUSE_DECL is NULL.
7851 2021-06-08  Richard Biener  <rguenther@suse.de>
7853         PR middle-end/100951
7854         * tree-vect-generic.c (expand_vector_piecewise): Build a
7855         VECTOR_CST if all elements are constant.
7856         (expand_vector_condition): Likewise.
7857         (lower_vec_perm): Likewise.
7858         (expand_vector_conversion): Likewise.
7860 2021-06-08  Martin Liska  <mliska@suse.cz>
7862         * doc/invoke.texi: Document new param evrp-sparse-threshold.
7864 2021-06-08  Martin Liska  <mliska@suse.cz>
7866         * genautomata.c (create_automata): Fix typo.
7868 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
7870         PR tree-optimization/100794
7871         * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
7872         allow_unroll_p and only allow unrolling when it's true.
7873         (tree_predictive_commoning): Add parameter allow_unroll_p and
7874         adjust for it.
7875         (run_tree_predictive_commoning): Likewise.
7876         (pass_predcom::gate): Check flag_tree_loop_vectorize and
7877         global_options_set.x_flag_predictive_commoning.
7878         (pass_predcom::execute): Adjust for allow_unroll_p.
7880 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
7882         * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
7883         (tree_predictive_commoning_loop): Factor some cleanup stuffs into
7884         lambda function cleanup, remove scev_reset call, and adjust return
7885         value.
7886         (tree_predictive_commoning): Adjust for different changed values,
7887         only set flag TODO_update_ssa_only_virtuals if changed.
7888         (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
7889         from todo_flags_finish.
7891 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
7893         * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
7894         (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
7895         (sbr_sparse_bitmap::bitmap_set_quad): New.
7896         (sbr_sparse_bitmap::bitmap_get_quad): New.
7897         (sbr_sparse_bitmap::set_bb_range): New.
7898         (sbr_sparse_bitmap::get_bb_range): New.
7899         (sbr_sparse_bitmap::bb_range_p): New.
7900         (block_range_cache::block_range_cache): initialize bitmap obstack.
7901         (block_range_cache::~block_range_cache): Destruct obstack.
7902         (block_range_cache::set_bb_range): Decide when to utilze the
7903         sparse on entry cache.
7904         * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
7905         * params.opt (-param=evrp-sparse-threshold): New.
7907 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
7909         * bitmap.c (bitmap_set_aligned_chunk): New.
7910         (bitmap_get_aligned_chunk): New.
7911         (test_aligned_chunk): New.
7912         (bitmap_c_tests): Call test_aligned_chunk.
7913         * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
7915 2021-06-07  Uroš Bizjak  <ubizjak@gmail.com>
7917         PR target/100637
7918         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
7919         Handle V4QI mode.
7920         (ix86_expand_vector_init_one_nonzero): Ditto.
7921         (ix86_expand_vector_init_one_var): Ditto.
7922         (ix86_expand_vector_init_general): Ditto.
7923         * config/i386/mmx.md (vec_initv4qiqi): New expander.
7925 2021-06-07  Jeff Law  <jeffreyalaw@gmail.com>
7927         * config/h8300/movepush.md: Change most _clobber_flags
7928         patterns to instead use <cczn> subst.
7929         (movsi_cczn): New pattern with usable CC cases split out.
7930         (movsi_h8sx_cczn): Likewise.
7932 2021-06-07  Martin Liska  <mliska@suse.cz>
7934         * common/common-target.def: Split long lines and replace them
7935         with '\n\'.
7936         * target.def: Likewise.
7937         * doc/tm.texi: Re-generated.
7939 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
7941         PR target/100887
7942         * fold-const.c (fold_read_from_vector): Return NULL if trying to
7943         read from a CONSTRUCTOR with vector type elements.
7945 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
7947         PR middle-end/100898
7948         * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
7949         should copy any arguments.  Don't call gimple_call_num_args
7950         on id->call_stmt or call_stmt more than once.
7952 2021-06-07  liuhongt  <hongtao.liu@intel.com>
7954         PR target/100885
7955         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
7956         constraints.
7957         (<insn>v4siv4di2): Delete constraints for define_expand.
7959 2021-06-07  liuhongt  <hongtao.liu@intel.com>
7961         PR target/82735
7962         * config/i386/i386-expand.c (ix86_expand_builtin): Remove
7963         assignment of cfun->machine->has_explicit_vzeroupper.
7964         * config/i386/i386-features.c
7965         (ix86_add_reg_usage_to_vzerouppers): Delete.
7966         (ix86_add_reg_usage_to_vzeroupper): Ditto.
7967         (rest_of_handle_insert_vzeroupper): Remove
7968         ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
7969         of the function.
7970         (gate): Remove cfun->machine->has_explicit_vzeroupper.
7971         * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
7972         Declared.
7973         * config/i386/i386.c (ix86_insn_callee_abi): New function.
7974         (ix86_initialize_callee_abi): Ditto.
7975         (ix86_expand_avx_vzeroupper): Ditto.
7976         (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
7977         ABI.
7978         (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
7979         (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
7980         directly.
7981         * config/i386/i386.h (struct GTY(()) machine_function): Delete
7982         has_explicit_vzeroupper.
7983         * config/i386/i386.md (enum unspec): New member
7984         UNSPEC_CALLEE_ABI.
7985         (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
7986         define_constants for insn callee abi index.
7987         * config/i386/predicates.md (vzeroupper_pattern): Adjust.
7988         * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
7989         (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
7990         (*avx_vzeroupper): Rename to ..
7991         (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
7992         call_insn which has a special vzeroupper ABI.
7993         (*avx_vzeroupper_1): Deleted.
7995 2021-06-07  liuhongt  <hongtao.liu@intel.com>
7997         PR target/82735
7998         * df-scan.c (df_get_call_refs): When call_insn is a fake call,
7999         it won't use stack pointer reg.
8000         * final.c (leaf_function_p): When call_insn is a fake call, it
8001         won't affect caller as a leaf function.
8002         * reg-stack.c (callee_clobbers_any_stack_reg): New.
8003         (subst_stack_regs): When call_insn doesn't clobber any stack
8004         reg, don't clear the arguments.
8005         * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
8006         a insn.
8007         * shrink-wrap.c (requires_stack_frame_p): No need for stack
8008         frame for a fake call.
8009         * rtl.h (FAKE_CALL_P): New macro.
8011 2021-06-06  Eric Botcazou  <ebotcazou@adacore.com>
8013         * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
8014         to...
8015         (sparc_order_regs_for_local_alloc): ...this.
8016         (sparc_leaf_reg_remap): Declare.
8017         * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
8018         (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
8019         * config/sparc/sparc.c (leaf_reg_remap): Delete.
8020         (order_regs_for_local_alloc): Rename to...
8021         (sparc_order_regs_for_local_alloc): ...this.
8022         (sparc_leaf_reg_remap): New function.
8023         (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
8025 2021-06-06  David Edelsohn  <dje.gcc@gmail.com>
8027         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
8028         Use assemble_name to output BSS section name.
8030 2021-06-06  Uroš Bizjak  <ubizjak@gmail.com>
8032         * config/i386/constraints.md (Bs):
8033         Remove boolean operators from match_test RTX.
8034         (Bw): Ditto.
8035         (L): Ditto.
8036         (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
8037         (Wz): Ditto.
8039 2021-06-06  Martin Liska  <mliska@suse.cz>
8041         * doc/extend.texi: Add missing @headitem.
8042         * doc/invoke.texi: Likewise.
8043         * doc/objc.texi: Likewise.
8045 2021-06-06  Martin Liska  <mliska@suse.cz>
8047         * genhooks.c (emit_findices): Remove unused function.
8048         (emit_documentation): Do not call emit_findices
8049         and do not search for @Fcode directives.
8051 2021-06-06  Martin Liska  <mliska@suse.cz>
8053         * doc/invoke.texi: Remove extra character.
8055 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
8057         * config/sh/sh.md (doloop_end_split): Fix empty split condition.
8059 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
8061         * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
8062         *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
8063         *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
8064         *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
8066 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
8068         * config/or1k/or1k.md (*movdi): Fix empty split condition.
8070 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
8072         * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
8073         split condition.
8075 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
8077         * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
8078         *zero_extendsidi2): Fix empty split condition.
8080 2021-06-05  Jeff Law  <jeffreyalaw@gmail.com>
8082         * config/h8300/addsub.md: Fix split condition in define_insn_and_split
8083         patterns.
8084         * config/h8300/bitfield.md: Likewise.
8085         * config/h8300/combiner.md: Likewise.
8086         * config/h8300/divmod.md: Likewise.
8087         * config/h8300/extensions.md: Likewise.
8088         * config/h8300/jumpcall.md: Likewise.
8089         * config/h8300/movepush.md: Likewise.
8090         * config/h8300/multiply.md: Likewise.
8091         * config/h8300/other.md: Likewise.
8092         * config/h8300/shiftrotate.md: Likewise.
8093         * config/h8300/logical.md: Likewise.  Fix split pattern to use
8094         code iterator that somehow slipped through.
8096 2021-06-04  Tobias Burnus  <tobias@codesourcery.com>
8098         PR middle-end/100905
8099         * tree-nested.c (convert_nonlocal_omp_clauses,
8100         convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
8102 2021-06-04  Martin Sebor  <msebor@redhat.com>
8104         PR middle-end/100732
8105         * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
8106         with either source or destination argument of invalid type.
8107         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
8108         calls with arguments of invalid type.
8110 2021-06-04  Martin Sebor  <msebor@redhat.com>
8112         * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
8113         order.
8114         (attr_access::vla_bounds): Also handle VLA bounds.
8116 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
8118         * config/i386/predicates.md (GOT_memory_operand):
8119         Implement using match_code RTXes.
8120         (GOT32_symbol_operand): Ditto.
8122 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
8124         PR target/100637
8125         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
8126         Handle V2HI mode.
8127         (ix86_expand_vector_init_general): Ditto.
8128         Use SImode instead of word_mode for logic operations
8129         when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
8130         (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
8131         implemented by expand_vec_perm_1.
8132         (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
8133         should be implemented using standard shuffle patterns.
8134         (ix86_vectorize_vec_perm_const): Handle V2HImode.  Add V4HI and
8135         V2HI modes to modes, implementable with shuffle for one operand.
8136         * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
8137         (*pshufw_1): New insn pattern.
8138         (*vec_dupv2hi): Ditto.
8139         (vec_initv2hihi): New expander.
8141 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
8143         * config/arm/vfp.md (no_literal_pool_df_immediate,
8144         no_literal_pool_sf_immediate): Fix empty split condition.
8146 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
8148         * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
8149         *tls_dynamic_gnu2_combine_32): Fix empty split condition.
8150         * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
8151         *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
8152         *<sse4_1_avx2>_pblendvb_lt): Likewise.
8154 2021-06-04  Jakub Jelinek  <jakub@redhat.com>
8156         PR target/100887
8157         * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
8158         concatenation from half-sized modes with TImode elements.
8160 2021-06-04  Claudiu Zissulescu  <claziss@synopsys.com>
8162         * config/arc/arc.c (arc_override_options): Disable millicode
8163         thunks when RF16 is on.
8165 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
8167         * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
8169 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
8171         * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
8172         Replace PROMOTE_MODE marco with its content.
8174 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
8176         * config/cris/cris.md (*addi_reload): Fix empty split condition.
8178 2021-06-03  Jim Wilson  <jimw@sifive.com>
8180         * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
8181         turn it on for all riscv targets.
8183 2021-06-03  Uroš Bizjak  <ubizjak@gmail.com>
8185         PR target/100637
8186         * config/i386/i386-expand.c (ix86_expand_vector_set):
8187         Handle V2HI and V4QI modes.
8188         (ix86_expand_vector_extract): Ditto.
8189         * config/i386/mmx.md (*pinsrw): New insn pattern.
8190         (*pinsrb): Ditto.
8191         (*pextrw): Ditto.
8192         (*pextrw_zext): Ditto.
8193         (*pextrb): Ditto.
8194         (*pextrb_zext): Ditto.
8195         (vec_setv2hi): New expander.
8196         (vec_extractv2hihi): Ditto.
8197         (vec_setv4qi): Ditto.
8198         (vec_extractv4qiqi): Ditto.
8199         (vec_setv8qi): Enable only for TARGET_SSE4_1.
8200         (vec_extractv8qiqi): Ditto.
8202 2021-06-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
8204         * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
8205         order to subf instruction.
8206         * config/rs6000/fusion.md: Regenerate.
8208 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
8210         * calls.c (get_size_range): Use range_of_expr instead of
8211         determine_value_range.
8212         * tree-affine.c (expr_to_aff_combination): Same.
8213         * tree-data-ref.c (split_constant_offset): Same.
8214         * tree-vrp.c (determine_value_range_1): Remove.
8215         (determine_value_range): Remove.
8216         * tree-vrp.h (determine_value_range): Remove.
8218 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
8220         * function-tests.c (test_ranges): Call gimple_range_tests.
8221         * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
8222         to get_tree_range.
8223         * gimple-range.cc (fur_source::get_operand): Do not call
8224         get_tree_range or gimple_range_global.
8225         get_tree_range.
8226         (get_tree_range): Move to value-query.cc.
8227         Call get_arith_expr_range.
8228         (gimple_ranger::range_of_expr): Add argument to get_tree_range.
8229         Include gimple-range-tests.cc.
8230         * gimple-range.h (fold_range): Add argument.
8231         (get_tree_range): Remove.
8232         * selftest.h (gimple_range_tests): New.
8233         * value-query.cc (global_range_query::range_of_expr): Add
8234         stmt argument.
8235         (range_query::get_tree_range): Move from gimple-range.cc.
8236         * value-query.h (class range_query): Add get_tree_range and
8237         get_arith_expr_range.  Make fur_source a friend.
8238         * vr-values.c (vr_values::range_of_expr): Pass stmt to
8239         get_tree_range.
8240         * gimple-range-tests.cc: New file.
8242 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
8244         * gimple-range.cc (gimple_ranger::export_global_ranges): Call
8245           update_global_range.
8246         * value-query.cc (update_global_range): New.
8247         * value-query.h (update_global_range): New.
8249 2021-06-03  David Malcolm  <dmalcolm@redhat.com>
8251         * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
8252         printing the same location twice if there are fix-it hints,
8253         multiple locations, or a label.
8255 2021-06-03  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8257         * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
8258         thresholds to narrow the upper bound on epilogue iterations.
8260 2021-06-03  Christophe Lyon  <christophe.lyon@linaro.org>
8262         * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
8263         (mve_vabsq_s<mode>): Likewise.
8264         * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
8265         * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
8266         * config/arm/vec-common.md (neg<mode>2): Rename to
8267         <absneg_str><mode>2.
8269 2021-06-03  Claudiu Zissulescu  <claziss@synopsys.com>
8271         * common/config/arc/arc-common.c (arc_option_optimization_table):
8272         Remove malign-call.
8273         * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
8274         * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
8275         (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
8276         * config/arc/arc.md (abssi2_mixed): Remove pattern.
8277         * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
8278         (malign-call): Likewise.
8279         (mmixed-code): Likewise.
8280         * doc/invoke.texi (ARC): Update doc.
8282 2021-06-03  Martin Liska  <mliska@suse.cz>
8284         * common.opt: Use proper Enum values.
8285         * opts.c (COVERAGE_SANITIZER_OPT): Remove.
8286         (parse_sanitizer_options): Handle only sanitizer_opts.
8287         (common_handle_option): Just assign value.
8289 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
8291         PR ipa/99122
8292         * tree-inline.c (inline_forbidden_p): Remove test on return type.
8294 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
8296         * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
8297         DW_OP_GNU_variable_value referencing an existing DIE at file scope.
8298         (type_byte_size): Inline into...
8299         (add_byte_size_attribute): ...this and call add_scalar_info.
8301 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
8303         * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
8304         (typed_binop_from_tree): New function.
8305         (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
8306         turn a divide by a power of 2 into a shift.
8307         <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
8308         size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
8309         typed divide by calling typed_binop_from_tree.
8311 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
8313         * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
8314         (is_handled_procedure_type): Likewise.
8315         (struct loc_descr_context): Add strict_signedness field.
8316         (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
8317         DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
8318         (resolve_args_picking): Minor tweak.
8319         (function_to_dwarf_procedure): Initialize strict_signedness field.
8320         (type_byte_size): Likewise.
8321         (field_byte_offset): Likewise.
8322         (gen_descr_array_type_die): Likewise.
8323         (gen_variant_part): Likewise.
8324         (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
8325         to true when a context is present before evaluating the arguments.
8326         <COND_EXPR>: Do not generate a useless comparison with zero.
8327         When dereferencing an address, if strict_signedness is true and the
8328         type is small and signed, use DW_OP_deref_type to do the dereference
8329         and then DW_OP_convert to convert back to the generic type.
8331 2021-06-03  Jakub Jelinek  <jakub@redhat.com>
8333         PR c++/100859
8334         * tree-inline.c (copy_tree_body_r): Handle iterators on
8335         OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
8337 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
8339         * config/arc/arc.md (*bbit_di): Remove.
8341 2021-06-02  Christoph Muellner  <cmuellner@gcc.gnu.org>
8343         PR rtl-optimization/100264
8344         * ree.c (get_sub_rtx): Ignore SET expressions without register
8345         destinations and remove assertion, as it is not valid anymore
8346         with this new behaviour.
8347         (merge_def_and_ext): Eliminate destination check for register
8348         as such SET expressions can't occur anymore.
8349         (combine_reaching_defs): Likewise.
8351 2021-06-02  Jakub Jelinek  <jakub@redhat.com>
8353         PR target/100841
8354         * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
8355         -Wtype-limits warnings.
8356         (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
8357         in operands to avoid -Wsign-compare warnings.
8359 2021-06-02  Pat Haugen  <pthaugen@linux.ibm.com>
8361         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
8362         gen_frame_store.
8364 2021-06-02  Vineet Gupta  <vgupta@synopsys.com>
8366         * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
8368 2021-06-02  Ilya Leoshkevich  <iii@linux.ibm.com>
8370         * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
8371         constraint.
8372         * config/s390/subst.md(cconly_subst): Use a single constraint
8373         in (match_scratch).
8375 2021-06-02  Martin Liska  <mliska@suse.cz>
8377         * ipa-icf.h: Use auto_vec for memory_access_types.
8379 2021-06-02  Jeff Law  <jeffreyalaw@gmail.com>
8381         * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
8382         argument from prototype.
8383         (output_logical_op): Add rtx_code argument.
8384         (compute_logical_op_length): Likewise.
8385         * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
8386         to compute_a_shift_length.
8387         (output_logical_op); New argument with the rtx code rather than
8388         extracting it from an operand.  Handle QImode too.
8389         (compute_logical_op_length): Similary.
8390         (compute_a_shift_length): Drop unused argument.
8391         * config/h8300/h8300.md (logicals): New code iterator.
8392         * config/h8300/logical.md (<code><mode>3 expander): Combine
8393         the "and" expander with the "ior"/"xor" expander.
8394         (bclr<mode>msx): Combine the QI/HI mode patterns.
8395         (<logical><mode>3 insns): Use code iterator rather than match_operator.
8396         Handle QImode as well.   Update call to output_logical_op and
8397         compute_logical_op_length to pass in rtx_code
8398         Fix split condition on all define_insn_and_split patterns.
8399         (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
8400         the flags and setting ZN via existing define_subst.
8401         * config/h8300/shiftrotate.md: Drop unused argument from
8402         calls to compute_a_shift_length.
8403         Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
8405 2021-06-01  Andrew Pinski  <apinski@marvell.com>
8407         PR tree-optimization/25290
8408         * tree-ssa-phiopt.c (match_simplify_replacement):
8409         New function.
8410         (tree_ssa_phiopt_worker): Use match_simplify_replacement.
8411         (two_value_replacement): Change the comment about
8412         conditional_replacement.
8413         (conditional_replacement): Delete.
8415 2021-06-01  Andrew Pinski  <apinski@marvell.com>
8417         PR tree-optimization/95481
8418         * tree-tailcall.c (find_tail_calls): Handle empty typed
8419         return decls.
8421 2021-06-01  Andrew Pinski  <apinski@marvell.com>
8423         * gimplify.c (zero_sized_field_decl): Delete
8424         (zero_sized_type): Delete
8425         (gimplify_init_ctor_eval): Use is_empty_type instead
8426         of zero_sized_field_decl.
8427         (gimplify_modify_expr): Use is_empty_type instead of
8428         zero_sized_type.
8430 2021-06-01  Jason Merrill  <jason@redhat.com>
8432         PR c++/91859
8433         * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
8435 2021-06-01  Jason Merrill  <jason@redhat.com>
8437         PR c++/94492
8438         * diagnostic.h (warning_enabled_at): Declare.
8439         * diagnostic.c (diagnostic_enabled): Factor out from...
8440         (diagnostic_report_diagnostic): ...here.
8441         (warning_enabled_at): New.
8443 2021-06-01  Aldy Hernandez  <aldyh@redhat.com>
8445         * gimple-ssa-evrp.c: Enable exporting of global ranges.
8447 2021-06-01  Martin Liska  <mliska@suse.cz>
8449         PR other/100826
8450         * doc/invoke.texi: Mention that -fgcse-after-reload
8451         is enabled with -O3.
8453 2021-06-01  liuhongt  <hongtao.liu@intel.com>
8455         PR tree-optimization/98365
8456         * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
8457         (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
8458         (convert_scalar_cond_reduction): Ditto.
8459         (predicate_scalar_phi): Ditto.
8461 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
8463         PR tree-optimization/100781
8464         * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
8465         value calculation by default.
8466         (ranger_cache::enable_new_values): New.
8467         (ranger_cache::disable_new_values): New.
8468         (ranger_cache::push_poor_value): Check if new values are allowed.
8469         * gimple-range-cache.h (class ranger_cache): New member/methods.
8470         * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
8471         statement, and disable/renable new value calculation.
8473 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
8475         * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
8476         (ranger_cache::range_of_def): New.
8477         (ranger_cache::entry_range): New.
8478         (ranger_cache::exit_range): New.
8479         (ranger_cache::range_of_expr): Adjust.
8480         (ranger_cache::range_on_edge): Adjust.
8481         (ranger_cache::propagate_cache): Call exit_range directly.
8482         * gimple-range-cache.h (class ranger_cache): Adjust.
8484 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
8486         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
8487         gori_compute being a member rather than base class.
8488         dervied call to member call.
8489         (ranger_cache::dump): No longer dump gori_map.
8490         (ranger_cache::dump_bb): New.
8491         (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
8492         being a member rather than base class.
8493         (ranger_cache::set_global_range): Ditto.
8494         (ranger_cache::ssa_range_in_bb): Ditto.
8495         (ranger_cache::range_of_expr): New.
8496         (ranger_cache::range_on_edge): New.
8497         (ranger_cache::block_range): Adjust for gori_computes.  Debug changes.
8498         (ranger_cache::propagate_cache):  Adjust debugging output.
8499         (ranger_cache::fill_block_cache): Adjust for gori_computes.  Debug
8500         output changes.
8501         * gimple-range-cache.h (class ranger_cache): Make gori_compute a
8502         member, and inherit from range_query instead.
8503         (ranger_cache::dump_bb): New. split from dump.
8504         * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
8505         (gori_compute::expr_range_at_stmt): Delete.
8506         (gori_compute::compute_name_range_op): Delete.
8507         (gori_compute::compute_operand_range_switch): Add fur_source.
8508         (gori_compute::compute_operand_range): Add fur_source param, inline
8509         old compute_name_range_op and optimize_logical_operands.
8510         (struct tf_range): Delete.
8511         (gori_compute::logical_combine): Adjust
8512         (gori_compute::optimize_logical_operands): Delete.
8513         (gori_compute::compute_logical_operands_in_chain): Delete.
8514         (gori_compute::compute_logical_operands): Adjust.
8515         (gori_compute::compute_operand1_range): Adjust to fur_source.
8516         (gori_compute::compute_operand2_range): Ditto.
8517         (gori_compute::compute_operand1_and_operand2_range): Ditto.
8518         (gori_compute::outgoing_edge_range_p): Add range_query parameter,
8519         and adjust to fur_source.
8520         * gimple-range-gori.h (class gori_compute): Simplify and adjust to
8521         range_query and fur_source.
8522         * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
8523         from the ranger_cache..
8524         (gimple_ranger::fold_range_internal): Adjust to base class change of
8525         ranger_cache.
8526         (gimple_ranger::dump_bb): Adjust dump.
8527         * gimple-range.h (gimple_ranger):export gori computes object.
8529 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
8531         PR tree-optimization/100774
8532         * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
8533         Constant values are also not stale.
8534         (ranger_cache::set_global_range): Range invariant values should also
8535         have the correct timestamp.
8537 2021-05-31  Martin Liska  <mliska@suse.cz>
8539         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
8540         Unpack FUNCTION_DECL_DECL_TYPE.
8541         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
8542         Stream FUNCTION_DECL_DECL_TYPE instead of
8543         DECL_IS_OPERATOR_NEW_P.
8544         * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
8545         macro.
8546         (DECL_IS_OPERATOR_NEW_P): Likewise.
8547         (DECL_IS_OPERATOR_DELETE_P): Likewise.
8548         (DECL_LAMBDA_FUNCTION_P): Likewise.
8550 2021-05-31  Richard Biener  <rguenther@suse.de>
8552         PR c++/88601
8553         * internal-fn.c (expand_SHUFFLEVECTOR): Define.
8554         * internal-fn.def (SHUFFLEVECTOR): New.
8555         * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
8556         * doc/extend.texi: Document __builtin_shufflevector.
8558 2021-05-31  Peter Bergner  <bergner@linux.ibm.com>
8560         PR target/99842
8561         * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
8562         indexed form addresses.
8564 2021-05-29  Jeff Law  <jlaw@tachyum.com>
8566         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
8567         parameter.  Call callers fixed.
8568         (push): Likewise.
8569         (output_plussi): Add FALLTHRU markers.
8570         (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
8572 2021-05-29  Jakub Jelinek  <jakub@redhat.com>
8574         PR middle-end/99928
8575         * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
8576         combined with parallel, make sure to add shared clause to
8577         parallel for explicit linear clause.
8579 2021-05-29  Aldy Hernandez  <aldyh@redhat.com>
8581         PR tree-optimization/100787
8582         * gimple-ssa-evrp.c: Disable exporting of global ranges.
8584 2021-05-28  Jason Merrill  <jason@redhat.com>
8586         * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
8587         operator--, operator*, operator==, and operator!=.
8588         (class tsi_range): New.
8590 2021-05-28  Richard Biener  <rguenther@suse.de>
8592         PR tree-optimization/100778
8593         * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
8594         trapping ops in different BBs.
8596 2021-05-28  Richard Biener  <rguenther@suse.de>
8598         PR ipa/100791
8599         * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
8600         copy fntype from original call.
8602 2021-05-28  Martin Liska  <mliska@suse.cz>
8604         PR gcov-profile/100751
8605         * doc/gcov.texi: Revert partially a hunk that was wrong.
8607 2021-05-28  Cooper Qu  <cooper.qu@linux.alibaba.com>
8609         * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
8610         Defined.
8611         (HAVE_sync_compare_and_swaphi): Likewise.
8612         (HAVE_sync_compare_and_swapsi): Likewise.
8614 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
8616         PR middle-end/99928
8617         * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
8619 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
8621         * gimplify.c (gimplify_omp_affinity): New.
8622         (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
8623         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
8624         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
8625         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
8626         (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
8628 2021-05-28  Joern Rennecke  <joern.rennecke@riscy-ip.com>
8629             Richard Biener   <rguenther@suse.de>
8631         * match.pd <popcount & / + pattern matching>:
8632         When generating popcount directly fails, try doing it in two halves.
8634 2021-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8636         * Makefile.in (generated_files): Add gimple-match.c and
8637         generic-match.c
8639 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8641         * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
8643 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8645         * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
8647 2021-05-28  Kewen Lin  <linkw@linux.ibm.com>
8649         PR tree-optimization/99398
8650         * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
8651         where the fed operands are CTOR/CST and propagated through
8652         VIEW_CONVERT_EXPR.  Call vec_perm_indices::new_shrunk_vector.
8653         * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
8654         function.
8655         * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
8656         declare.
8658 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
8660         * config/i386/mmx.md (addv2sf3): Do not call
8661         ix86_fixup_binary_operands_no_copy.
8662         (subv2sf3): Ditto.
8663         (mulv2sf3): Ditto.
8664         (<smaxmin:code>v2sf3): Ditto.
8665         (<plusminus:insn><MMXMODEI:mode>3): Ditto.
8666         (<plusminus:insn><VI_32:mode>3): Remove expander.
8667         (<plusminus:insn><VI_32:mode>3): Rename from
8668         "*<plusminus:insn><VI_32:mode>3".
8669         (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
8670         (mulv2hi3): Remove expander.
8671         (mulv2hi3): Rename from *mulv2hi3.
8672         (<s>mulv2hi3_highpart): Remove expander.
8673         (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
8674         (<smaxmin:code><MMXMODE14:mode>3): Rename from
8675         "*mmx_<smaxmin:code><MMXMODE14:mode>3".
8676         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
8677         (SMAXMIN_MMXMODEI): Remove mode iterator.
8678         (<smaxmin:code>v4hi3): New expander.
8679         (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
8680         (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
8681         (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
8682         (SMAXMIN_VI_32): Remove mode iterator.
8683         (<umaxmin:code><MMXMODE24:mode>3): Rename from
8684         "*mmx_<umaxmin:code><MMXMODE24:mode>3".
8685         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
8686         (UMAXMIN_MMXMODEI): Remove mode iterator.
8687         (<umaxmin:code>v8qi3): New expander.
8688         (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
8689         (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
8690         (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
8691         (UMAXMIN_VI_32): Remove mode iterator.
8692         (<any_shift:insn>v2hi3): Remove expander.
8693         (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
8694         (<any_logic:code><MMXMODEI:mode>3): Do not call
8695         ix86_fixup_binary_operands_no_copy.
8696         (<any_logic:code><VI_32:mode>3): Remove expander.
8697         (<any_logic:code><VI_32:mode>3): Rename from
8698         "*<any_logic:code><VI_32:mode>3".
8699         (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
8700         * config/i386/sse.md (div<VF2:mode>3): Do not call
8701         ix86_fixup_binary_operands_no_copy.
8702         (div<VF1:mode>3): Ditto.
8703         (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
8704         (smulhrsv4hi3): Ditto.
8705         (smulhrsv2hi3): Ditto.
8707 2021-05-27  Martin Sebor  <msebor@redhat.com>
8709         * ggc.h (gt_ggc_mx): Add overloads for all integers.
8710         (gt_pch_nx):  Same.
8711         * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
8712         integers.
8713         (hash_map::operator==): New function.
8715 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
8717         PR target/100637
8718         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
8719         For TARGET_XOP bypass SSE comparisons for all supported vector modes.
8720         * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
8721         (*xop_maskcmp<VI_32:mode>3): Ditto.
8722         (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
8723         (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
8725 2021-05-27  Richard Earnshaw  <rearnsha@arm.com>
8727         PR target/100767
8728         * config/arm/arm.c (arm_configure_build_target): Remove parameter
8729         opts_set, directly check opts parameters for being non-null.
8730         (arm_option_restore): Update call to arm_configure_build_target.
8731         (arm_option_override): Likewise.
8732         (arm_can_inline_p): Likewise.
8733         (arm_valid_target_attribute_tree): Likewise.
8734         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
8735         * config/arm/arm-protos.h (arm_configure_build_target): Adjust
8736         prototype.
8738 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
8740         * vr-values.c (simplify_conversion_using_ranges): Use
8741         get_range_query instead of get_global_range_query.
8743 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
8745         * gimple-range.cc (get_range_global): Move to value-query.cc.
8746         (gimple_range_global): Same.
8747         (get_global_range_query): Same.
8748         (global_range_query::range_of_expr): Same.
8749         * gimple-range.h (class global_range_query): Move to
8750         value-query.h.
8751         (gimple_range_global): Same.
8752         * tree-ssanames.c (get_range_info): Move to value-query.cc.
8753         (get_ptr_nonnull): Same.
8754         * tree-ssanames.h (get_range_info): Remove.
8755         (get_ptr_nonnull): Remove.
8756         * value-query.cc (get_ssa_name_range_info): Move from
8757         tree-ssanames.c.
8758         (get_ssa_name_ptr_info_nonnull): Same.
8759         (get_range_global): Move from gimple-range.cc.
8760         (gimple_range_global): Same.
8761         (get_global_range_query): Same.
8762         (global_range_query::range_of_expr): Same.
8763         * value-query.h (class global_range_query): Move from
8764         gimple-range.h.
8765         (gimple_range_global): Same.
8767 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
8769         PR target/100637
8770         * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
8771         (uavgv2hi3_ceil): Ditto.
8773 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
8775         PR c/100653
8776         * doc/extend.texi (scalar_storage_order): Rephrase slightly.
8778 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
8780         * tree-ssanames.c (get_range_info): Merge both copies of
8781         get_range_info into one that works with irange.
8782         * tree-ssanames.h (get_range_info): Remove version that works on
8783         wide_ints.
8785 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
8787         * builtins.c (check_nul_terminated_array): Convert to get_range_query.
8788         (expand_builtin_strnlen): Same.
8789         (determine_block_size): Same.
8790         * fold-const.c (expr_not_equal_to): Same.
8791         * gimple-fold.c (size_must_be_zero_p): Same.
8792         * gimple-match-head.c: Include gimple-range.h.
8793         * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
8794         * gimple-ssa-warn-restrict.c
8795         (builtin_memref::extend_offset_range): Same.
8796         * graphite-sese-to-poly.c (add_param_constraints): Same.
8797         * internal-fn.c (get_min_precision): Same.
8798         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
8799         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
8800         * match.pd: Same.
8801         * tree-data-ref.c (split_constant_offset): Same.
8802         (dr_step_indicator): Same.
8803         * tree-dfa.c (get_ref_base_and_extent): Same.
8804         * tree-scalar-evolution.c (iv_can_overflow_p): Same.
8805         * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
8806         (determine_value_range): Same.
8807         (record_nonwrapping_iv): Same.
8808         (infer_loop_bounds_from_signedness): Same.
8809         (scev_var_range_cant_overflow): Same.
8810         * tree-ssa-phiopt.c (two_value_replacement): Same.
8811         * tree-ssa-pre.c (insert_into_preds_of_block): Same.
8812         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
8813         * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
8814         (get_range): Same.
8815         (dump_strlen_info): Same.
8816         (set_strlen_range): Same.
8817         (maybe_diag_stxncpy_trunc): Same.
8818         (get_len_or_size): Same.
8819         (handle_integral_assign): Same.
8820         * tree-ssa-structalias.c (find_what_p_points_to): Same.
8821         * tree-ssa-uninit.c (find_var_cmp_const): Same.
8822         * tree-switch-conversion.c (bit_test_cluster::emit): Same.
8823         * tree-vect-patterns.c (vect_get_range_info): Same.
8824         (vect_recog_divmod_pattern): Same.
8825         * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
8826         (register_edge_assert_for_2): Same.
8827         (determine_value_range_1): Same.
8828         * tree.c (get_range_pos_neg): Same.
8829         * vr-values.c (vr_values::get_lattice_entry): Same.
8830         (vr_values::update_value_range): Same.
8831         (simplify_conversion_using_ranges): Same.
8833 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
8835         * gimple-ssa-warn-alloca.c (alloca_call_type): Use
8836           get_range_query instead of query argument.
8837         (pass_walloca::execute): Enable and disable global ranger.
8839 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
8841         * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
8842         enable_ranger.
8843         (rvrp_folder::~rvrp_folder): Call disable_ranger.
8844         (hybrid_folder::hybrid_folder): Call enable_ranger.
8845         (hybrid_folder::~hybrid_folder): Call disable_ranger.
8847 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
8849         * function.c (allocate_struct_function): Set cfun->x_range_query.
8850         * function.h (struct function): Declare x_range_query.
8851         (get_range_query): New.
8852         (get_global_range_query): New.
8853         * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
8854         Remove call to safe_grow_cleared.
8855         * gimple-range.cc (get_range_global): New.
8856         (gimple_range_global): Move from gimple-range.h.
8857         (get_global_range_query): New.
8858         (global_range_query::range_of_expr): New.
8859         (enable_ranger): New.
8860         (disable_ranger): New.
8861         * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
8862         (class global_range_query): New.
8863         (enable_ranger): New.
8864         (disable_ranger): New.
8865         * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
8866         dump_all_value_ranges to dump.
8867         * tree-vrp.c (vrp_prop::finalize): Same.
8868         * value-query.cc (range_query::dump): New.
8869         * value-query.h (range_query::dump): New.
8870         * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
8871         (vr_values::dump): ...this.
8872         * vr-values.h (class vr_values): Rename dump_all_value_ranges to
8873         dump and make virtual.
8875 2021-05-26  Uroš Bizjak  <ubizjak@gmail.com>
8877         * config/i386/i386.c (ix86_autovectorize_vector_modes):
8878         Add V4QImode and V16QImode for TARGET_SSE2.
8879         * doc/sourcebuild.texi (Vector-specific attributes):
8880         Add vect64 and vect32 description.
8882 2021-05-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8884         * gimple-range-gori.cc (range_def_chain::register_dependency):
8885         Resize m_def_chain when needed.
8887 2021-05-26  Christophe Lyon  <christophe.lyon@linaro.org>
8889         * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
8890         * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
8891         * config/arm/vec-common.md: .. here. Add support for MVE.
8893 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
8895         * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
8896         register keywords.
8897         * config/microblaze/microblaze.c (microblaze_legitimize_address,
8898         call_internal1,
8899         microblaze_option_override, print_operand): Likewise.
8900         * config/microblaze/microblaze.md (call_internal_plt,
8901         call_value_intern_plt, call_value_intern): Likewise.
8902         * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
8903         * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
8904         call_value_multiple_internal1): Likewise.
8905         * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
8907 2021-05-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8909         * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
8910         arc_ccfsm_advance, symbolic_reference_mentioned_p,
8911         arc_raw_symbolic_reference_mentioned_p): Remove register
8912         keyword.
8914 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
8916         PR libgomp/100573
8917         * omp-low.c: Include omp-offload.h.
8918         (create_omp_child_function): If current_function_decl has
8919         "omp declare target" attribute and is_gimple_omp_offloaded,
8920         remove that attribute from the copy of attribute list and
8921         add "omp target entrypoint" attribute instead.
8922         (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
8923         variables for offloading if in omp_maybe_offloaded_ctx.
8924         * omp-offload.c (pass_omp_target_link::execute): Nullify second
8925         argument to GOMP_target_data_ext in offloaded code.
8927 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
8929         * config/csky/csky.c (csky_can_change_mode_class): Delete.
8930         For csky, HF/SF mode use the low bits of VREGS.
8932 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
8934         * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
8935         DECL which is a reference for OMP.
8937 2021-05-26  Martin Liska  <mliska@suse.cz>
8939         PR gcov-profile/100751
8940         * doc/gcov.texi: Document that __gcov_dump can be called just
8941         once and that __gcov_reset resets run-time counters.
8943 2021-05-26  Martin Liska  <mliska@suse.cz>
8945         * doc/install.texi: Port relevant part from install-old.texi
8946         and re-generate list of CPUs and systems.
8948 2021-05-26  Martin Liska  <mliska@suse.cz>
8950         * Makefile.in: Remove it.
8951         * doc/include/fdl.texi: Update next/previous chapters.
8952         * doc/install.texi: Likewise.
8953         * doc/install-old.texi: Removed.
8955 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
8957         * config/csky/csky.c (ck810_legitimate_index_p): Support
8958         "base + index" with DF mode.
8959         * config/csky/constraints.md ("Y"): New constraint for memory operands
8960         without index register.
8961         * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
8962         when mov between memory and general registers, and lower their priority.
8963         * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
8965 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
8967         * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
8969 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
8971         * config/csky/csky.md (untyped_call): Emit clobber for return
8972         registers to mark them used.
8974 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
8976         * config/csky/csky.md (cskyv2_sextend_ldbs): New.
8978 2021-05-26  Andrew Pinski  <apinski@marvell.com>
8980         * match.pd (x < 0 ? ~y : y): New patterns.
8982 2021-05-26  Andrew Pinski  <apinski@marvell.com>
8984         * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
8985         A?POW2:0 and A?0:POW2.
8987 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
8989         * gimple-range-gori.cc (class logical_stmt_cache): Delete
8990         (logical_stmt_cache::logical_stmt_cache ): Delete.
8991         (logical_stmt_cache::~logical_stmt_cache): Delete.
8992         (logical_stmt_cache::cache_entry::dump): Delete.
8993         (logical_stmt_cache::get_range): Delete.
8994         (logical_stmt_cache::cached_name ): Delete.
8995         (logical_stmt_cache::same_cached_name): Delete.
8996         (logical_stmt_cache::cacheable_p): Delete.
8997         (logical_stmt_cache::slot_diagnostics ): Delete.
8998         (logical_stmt_cache::dump): Delete.
8999         (gori_compute_cache::gori_compute_cache): Delete.
9000         (gori_compute_cache::~gori_compute_cache): Delete.
9001         (gori_compute_cache::compute_operand_range): Delete.
9002         (gori_compute_cache::cache_stmt): Delete.
9003         * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
9004         virtual.
9005         (class gori_compute_cache): Delete.
9007 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
9009         * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
9010         intead of m_cache.
9011         (fold_using_range::range_of_address): Adjust.
9012         (fold_using_range::range_of_phi): Adjust.
9013         * gimple-range.h (class fur_source): Adjust.
9014         (fur_source::fur_source): Adjust.
9016 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
9018         * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
9019         from expr_range_in_bb and adjust.
9020         (gori_compute::compute_name_range_op): Adjust.
9021         (gori_compute::optimize_logical_operands): Adjust.
9022         (gori_compute::compute_logical_operands_in_chain): Adjust.
9023         (gori_compute::compute_operand1_range): Adjust.
9024         (gori_compute::compute_operand2_range): Adjust.
9025         (ori_compute_cache::cache_stmt): Adjust.
9026         * gimple-range-gori.h (gori_compute): Rename prototype.
9028 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
9030         * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
9031         checked only after range_of_stmt, not range_on_entry.
9032         (gimple_ranger::range_on_entry): Check for non-null in any
9033         predecessor block, if it is not already non-null.
9034         (gimple_ranger::range_on_exit): DOnt check for non-null after
9035         range on entry call.
9036         (gimple_ranger::dump_bb): New.  Split from dump.
9037         (gimple_ranger::dump): Adjust.
9038         * gimple-range.h (class gimple_ranger): Adjust.
9040 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
9042         * gimple-range-cache.cc (struct range_timestamp): Delete.
9043         (class temporal_cache): Adjust.
9044         (temporal_cache::get_timestamp): Delete.
9045         (temporal_cache::set_dependency): Delete.
9046         (temporal_cache::temporal_value): Adjust.
9047         (temporal_cache::current_p): Take dependencies as params.
9048         (temporal_cache::set_timestamp): Adjust.
9049         (temporal_cache::set_always_current): Adjust.
9050         (ranger_cache::get_non_stale_global_range): Adjust.
9051         (ranger_cache::register_dependency): Delete.
9052         * gimple-range-cache.h (class range_cache): Adjust.
9054 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
9056         * gimple-range-gori.cc (range_def_chain::range_def_chain): init
9057         bitmap obstack.
9058         (range_def_chain::~range_def_chain): Dispose of obstack rather than
9059         each individual bitmap.
9060         (range_def_chain::set_import): New.
9061         (range_def_chain::get_imports): New.
9062         (range_def_chain::chain_import_p): New.
9063         (range_def_chain::register_dependency): Rename from build_def_chain
9064         and set imports.
9065         (range_def_chain::def_chain_in_bitmap_p): New.
9066         (range_def_chain::add_def_chain_to_bitmap): New.
9067         (range_def_chain::has_def_chain): Just check first depenedence.
9068         (range_def_chain::get_def_chain): Process imports, use generic
9069         register_dependency routine.
9070         (range_def_chain::dump): New.
9071         (gori_map::gori_map): Allocate import list.
9072         (gori_map::~gori_map): Release imports.
9073         (gori_map::exports): Check for past allocated block size.
9074         (gori_map::imports): New.
9075         (gori_map::def_chain_in_export_p): Delete.
9076         (gori_map::is_import_p): New.
9077         (gori_map::maybe_add_gori): Handle imports.
9078         (gori_map::dump): Adjust output, add imports.
9079         (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
9080         (gori_export_iterator::gori_export_iterator): New.
9081         (gori_export_iterator::next): New.
9082         (gori_export_iterator::get_name): New.
9083         * gimple-range-gori.h (range_def_chain): Add imports and direct
9084         dependecies via struct rdc.
9085         (range_def_chain::depend1): New.
9086         (range_def_chain::depend2): New.
9087         (class gori_map): Adjust.
9088         (FOR_EACH_GORI_IMPORT_NAME): New.
9089         (FOR_EACH_GORI_EXPORT_NAME): New.
9090         (class gori_export_iterator): New.
9092 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
9094         * gimple-range-cache.cc (ranger_cache::ranger_cache):  Move initial
9095         export cache filling to here.
9096         * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
9098 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
9100         * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
9101         (gori_map): Move to gimple-range-gori.h.
9102         (gori_compute::gori_compute): Adjust.
9103         (gori_compute::~gori_compute): Delete.
9104         (gori_compute::compute_operand_range_switch): Adjust.
9105         (gori_compute::compute_operand_range): Adjust.
9106         (gori_compute::compute_logical_operands): Adjust.
9107         (gori_compute::has_edge_range_p ): Adjust.
9108         (gori_compute::set_range_invariant): Delete.
9109         (gori_compute::dump): Adjust.
9110         (gori_compute::outgoing_edge_range_p): Adjust.
9111         * gimple-range-gori.h (class range_def_chain): Relocate here.
9112         (class gori_map): Relocate here.
9113         (class gori_compute): Inherit from gori_map, and adjust.
9115 2021-05-25  Aldy Hernandez  <aldyh@redhat.com>
9117         * value-range.cc (range_tests_legacy): Use
9118         build_nonstandard_integer_type instead of int and short.
9120 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
9122         * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
9123         when really creating an initialization statement for it.
9125 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
9127         * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
9129 2021-05-25  Kito Cheng  <kito.cheng@sifive.com>
9131         * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
9133 2021-05-25  Martin Liska  <mliska@suse.cz>
9135         PR tree-optimization/92860
9136         PR target/99592
9137         * optc-save-gen.awk: Remove exceptions.
9139 2021-05-25  Martin Liska  <mliska@suse.cz>
9141         * asan.h (sanitize_coverage_p): New function.
9142         * doc/extend.texi: Document it.
9143         * fold-const.c (fold_range_test): Use sanitize_flags_p
9144         instead of flag_sanitize_coverage.
9145         (fold_truth_andor): Likewise.
9146         * sancov.c: Likewise.
9147         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
9148         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
9149         -fsanitize-coverage when inlining.
9151 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
9153         * config/csky/csky-modes.def : Fix copyright.
9155 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
9157         * config/csky/csky-modes.def : Amend copyright.
9158         * config/csky/csky_insn_fpuv2.md : Likewise.
9159         * config/csky/csky_insn_fpuv3.md : Likewise.
9161 2021-05-25  Richard Biener  <rguenther@suse.de>
9163         PR middle-end/100727
9164         * calls.c (initialize_argument_information): Explicitely test
9165         for WITH_SIZE_EXPR.
9166         * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
9168 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
9170         * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
9171         HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
9172         the signle definition. The signle definition may not work well
9173         at simplify_subreg_regno().
9174         (HARD_FRAME_POINTER_REGNUM): New.
9175         (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
9176         * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
9177         csky_initial_elimination_offset, csky_expand_prologue,
9178         csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
9180 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
9182         * config/csky/csky.c (csky_option_override):
9183         Init csky_arch_isa_features[] in advance, so TARGET_DSP
9184         and TARGET_DIV can be set well.
9186 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
9188         * config/csky/constraints.md ("l", "h"): Delete.
9189         * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
9190         REG_CLASS_CONTENTS):  Delete LO_REGS and HI_REGS.
9191         * config/csky/csky.c (regno_reg_classm,
9192         csky_secondary_reload, csky_register_move_cost):
9193         Use HILO_REGS instead of LO_REGS and HI_REGS.
9195 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
9197         * config/csky/constraints.md ("W"): New constriant for mem operand
9198         with base reg, index register.
9199         ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
9200         "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
9201         constraint.
9202         ("Dv"): New constraint for const double value that can be used at
9203         fmovi instruction.
9204         * config/csky/csky-modes.def (HFmode): New mode.
9205         * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
9206         to "csky_valid_mem_constraint_operand" and support new constraint
9207         "W".
9208         (csky_get_movedouble_length): New.
9209         (fpuv3_output_move): New.
9210         (fpuv3_const_double): New.
9211         * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
9212         (decompose_csky_address): Refine.
9213         (csky_print_operand): New "CONST_DOUBLE" operand.
9214         (csky_output_move): Support fpv3 instructions.
9215         (csky_get_movedouble_length): New.
9216         (fpuv3_output_move): New.
9217         (fpuv3_const_double): New.
9218         (csky_emit_compare): Cover float comparsion.
9219         (csky_emit_compare_float): Refine.
9220         (csky_vaild_fpuv2_mem_operand): Rename to
9221         "csky_valid_mem_constraint_operand" and support new constraint "W".
9222         (ck860_rtx_costs): New.
9223         (csky_rtx_costs): Add the cost calculation of CK860.
9224         (regno_reg_class): New vregs for fpuv3.
9225         (csky_dbx_regno): Likewise.
9226         (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
9227         (csky_conditional_register_usage): Suporrot fpuv3.
9228         (csky_dwarf_register_span): Suporrot fpuv3.
9229         (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
9230         (ck810_legitimate_index_p): Support fp16.
9231         * config/csky/csky.h (TARGET_TLS): ADD CK860.
9232         (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
9233         (TARGET_SINGLE_FPU): Support fpuv3.
9234         (TARGET_SUPPORT_FPV3): New.
9235         (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
9236         (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
9237          REG_CLASS_CONTENTS): Support fpuv3.
9238         * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
9239         (csky_movsf_fpv2): Likewise.
9240         (ck801_movsf): Likewise.
9241         (csky_movsf): Likewise.
9242         (movdf): Likewise.
9243         (csky_movdf_fpv2): Likewise.
9244         (ck801_movdf): Likewise.
9245         (csky_movdf): Likewise.
9246         (movsicc): Refine. Use "comparison_operatior" instead of
9247         "ordered_comparison_operatior".
9248         (addsicc): Likewise.
9249         (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
9250         (call_value_internal_vh): New.
9251         * config/csky/csky_cores.def (CK860): New arch and cpu.
9252         (fpv3_hf): New.
9253         (fpv3_hsf): New.
9254         (fpv3_sdf): New.
9255         (fpv3): New.
9256         * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
9257         into emit-patterns and match-patterns, remain the emit-patterns here,
9258         and move the match-patterns to csky_insn_fpuv2.md or
9259         csky_insn_fpuv3.md.
9260         * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
9261         * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
9262         isntructions.
9263         * config/csky/csky_isa.def (fcr): New.
9264         (fpv3_hi): New.
9265         (fpv3_hf): New.
9266         (fpv3_sf): New.
9267         (fpv3_df): New.
9268         (CK860): New definition for ck860.
9269         * config/csky/csky_tables.opt (ck860): New processors ck860,
9270         ck860f. And new arch ck860.
9271         (fpv3_hf): New.
9272         (fpv3_hsf): New.
9273         (fpv3_hdf): New.
9274         (fpv3): New.
9275         * config/csky/predicates.md (csky_float_comparsion_operator): Delete
9276         "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
9277         * config/csky/t-csky-elf: Support 860.
9278         * config/csky/t-csky-linux: Likewise.
9279         * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
9281 2021-05-24  Aaron Sawdey  <acsawdey@linux.ibm.com>
9283         * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
9284         add generation of logical-add and add-logical fusion pairs.
9285         * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
9286         and powerpc mask.
9287         * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
9288         logical-add and add-logical fusion by default.
9289         * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
9290         -mpower10-fusion-add-logical options.
9291         * config/rs6000/fusion.md: Regenerate file.
9293 2021-05-24  Aldy Hernandez  <aldyh@redhat.com>
9295         * value-range.cc (irange::legacy_equal_p): Check type when
9296         comparing VR_VARYING types.
9297         (range_tests_legacy): Test comparing VARYING ranges of different
9298         sizes.
9300 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
9302         * config/aarch64/aarch64.c (neoversen1_tunings):
9303         Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
9305 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
9307         * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
9308         extern weak symbols.  Limit symbol offsets for non-GOT symbols with
9309         PIC/PIE.
9311 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
9313         * config/arm/neon.md (vec_load_lanesxi<mode>)
9314         (vec_store_lanexoi<mode>): Move ...
9315         * config/arm/vec-common.md: here.
9317 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
9319         * config/arm/neon.md (vec_load_lanesoi<mode>)
9320         (vec_store_lanesoi<mode>): Move ...
9321         * config/arm/vec-common.md: here.
9323 2021-05-24  liuhongt  <hongtao.liu@intel.com>
9325         PR target/100660
9326         * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
9327         stmt with GIMPLE_NOP when lhs doesn't exist.
9329 2021-05-23  Uroš Bizjak  <ubizjak@gmail.com>
9331         PR target/100722
9332         * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
9333         New instruction pattern.
9334         (*push<VI_32:mode>2): Ditto.
9335         (push splitter for SSE registers): New splitter.
9337 2021-05-23  Andrew Pinski  <apinski@marvell.com>
9339         * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
9341 2021-05-22  Aaron Sawdey  <acsawdey@linux.ibm.com>
9343         * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
9344         * config/rs6000/fusion.md: Regenerate file.
9346 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
9348         * config/rs6000/genfusion.pl (gen_addadd): New function.
9349         * config/rs6000/fusion.md: Regenerate file.
9350         * config/rs6000/rs6000-cpus.def: Add
9351         OPTION_MASK_P10_FUSION_2ADD to masks.
9352         * config/rs6000/rs6000.c (rs6000_option_override_internal):
9353         Handle default value of OPTION_MASK_P10_FUSION_2ADD.
9354         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
9356 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
9358         PR middle-end/99928
9359         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
9360         * gimplify.c (enum gimplify_omp_var_data): Fix up
9361         GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
9362         (omp_lastprivate_for_combined_outer_constructs): If combined target
9363         has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
9364         GOVD_MAP | GOVD_SEEN.
9365         (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
9366         firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
9367         (gimplify_adjust_omp_clauses): For firstprivate clauses with
9368         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
9369         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
9370         let it be replaced by implicit map clause.
9372 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
9374         PR middle-end/99928
9375         * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
9376         function.
9377         (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
9378         (gimplify_omp_for): Likewise.
9380 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
9382         PR middle-end/90115
9383         * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
9384         'external' in blocks.
9386 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
9388         PR middle-end/90115
9389         * flag-types.h (enum openacc_privatization): New.
9390         * params.opt (-param=openacc-privatization): New.
9391         * doc/invoke.texi (openacc-privatization): Document it.
9392         * omp-general.h (get_openacc_privatization_dump_flags): New
9393         function.
9394         * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
9395         * omp-offload.c (execute_oacc_device_lower)
9396         <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
9397         * target.def (goacc.adjust_private_decl): Add 'location_t'
9398         parameter.
9399         * doc/tm.texi: Regenerate.
9400         * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
9401         * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
9402         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
9403         Likewise.  Preserve it for...
9404         (nvptx_goacc_expand_var_decl): ... use here.
9406 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
9408         * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
9409         DejaGnu selector.
9411 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
9413         PR middle-end/90115
9414         * omp-low.c (oacc_privatization_candidate_p): New function.
9415         (oacc_privatization_scan_clause_chain)
9416         (oacc_privatization_scan_decl_chain): Use it.  Also
9417         'gcc_checking_assert' that we're not seeing duplicates.
9419 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
9421         PR middle-end/90115
9422         * omp-offload.c (execute_oacc_device_lower): Skip processing if no
9423         work to be done.
9425 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
9427         PR middle-end/90115
9428         * omp-offload.c (execute_oacc_device_lower): Explain.
9430 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
9432         PR middle-end/90115
9433         * omp-offload.c (execute_oacc_device_lower)
9434         <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
9435         case, too.
9436         * internal-fn.c (expand_UNIQUE): Don't expect
9437         'IFN_UNIQUE_OACC_PRIVATE'.
9439 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
9441         PR middle-end/90115
9442         * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
9444 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
9446         PR middle-end/90115
9447         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
9448         (nvptx_goacc_expand_var_decl): Tighten.
9450 2021-05-21  Julian Brown  <julian@codesourcery.com>
9451             Chung-Lin Tang  <cltang@codesourcery.com>
9452             Thomas Schwinge  <thomas@codesourcery.com>
9454         PR middle-end/90115
9455         * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
9456         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
9457         * doc/tm.texi: Regenerate.
9458         * expr.c (expand_expr_real_1): Expand decls using the
9459         expand_var_decl OpenACC hook if defined.
9460         * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
9461         * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
9462         * omp-low.c (omp_context): Add oacc_privatization_candidates
9463         field.
9464         (lower_oacc_reductions): Add PRIVATE_MARKER parameter.  Insert
9465         before fork.
9466         (lower_oacc_head_tail): Add PRIVATE_MARKER parameter.  Modify
9467         private marker's gimple call arguments, and pass it to
9468         lower_oacc_reductions.
9469         (oacc_privatization_scan_clause_chain)
9470         (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
9471         New functions.
9472         (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
9473         * omp-offload.c (convert.h): Include.
9474         (oacc_loop_xform_head_tail): Treat private-variable markers like
9475         fork/join when transforming head/tail sequences.
9476         (struct var_decl_rewrite_info): Add struct.
9477         (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
9478         (execute_oacc_device_lower): Support rewriting gang-private
9479         variables using target hook, and fix up addr_expr and var_decl
9480         nodes afterwards.
9481         * target.def (adjust_private_decl, expand_var_decl): New hooks.
9482         * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
9483         Rename to...
9484         (gcn_goacc_adjust_private_decl): ...this.
9485         * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
9486         Rename to...
9487         (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
9488         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
9489         definition using gcn_goacc_adjust_gangprivate_decl...
9490         (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
9491         gcn_goacc_adjust_private_decl.
9492         * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
9493         (gang_private_shared_size): New global variable.
9494         (gang_private_shared_align): Likewise.
9495         (gang_private_shared_sym): Likewise.
9496         (gang_private_shared_hmap): Likewise.
9497         (nvptx_option_override): Initialize these.
9498         (nvptx_file_end): Output gang_private_shared_sym.
9499         (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
9500         New functions.
9501         (nvptx_set_current_function): Clear gang_private_shared_hmap.
9502         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
9503         (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
9505 2021-05-21  H.J. Lu  <hjl.tools@gmail.com>
9507         * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
9509 2021-05-21  Richard Biener  <rguenther@suse.de>
9510             H.J. Lu  <hjl.tools@gmail.com>
9512         PR middle-end/90773
9513         * expr.c (expand_constructor): Elide expand_constructor if
9514         move by pieces is preferred.
9516 2021-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9518         * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
9519         Take a flag and mode value as arguments.
9520         (aarch64_modifies_global_state_p): Likewise.
9521         (aarch64_reads_global_state_p): Likewise.
9522         (aarch64_could_trap_p): Likewise.
9523         (aarch64_get_attributes): Likewise.
9524         (aarch64_init_simd_builtins): Adjust callsite of above.
9525         (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
9526         function attributes to apply to builtins.
9527         (aarch64_init_crc32_builtins): Likewise.
9528         (aarch64_init_builtin_rsqrt): Likewise.
9530 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
9532         * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
9533         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
9534         (gen_2logical): Use new fusion types.
9535         * config/rs6000/fusion.md: Regenerate.
9537 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
9539         PR target/100637
9540         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
9541         Handle V4QI and V2HI modes.
9542         (ix86_expand_sse_movcc): Ditto.
9543         * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
9544         New instruction pattern.
9545         (*eq<VI_32:mode>3): Ditto.
9546         (*gt<VI_32:mode>3): Ditto.
9547         (*xop_pcmov_<VI_32:mode>): Ditto.
9548         (mmx_pblendvb32): Ditto.
9549         (mmx_pblendvb64): Rename from mmx_pblendvb.
9550         (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
9551         (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
9552         (vcond<VI_32:mode><VI_32:mode>): Ditto.
9553         (vcondu<VI_32:mode><VI_32:mode>): Ditto.
9554         (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
9556 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
9558         PR tree-optimization/94589
9559         * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
9560         rhs2, treat x <= 4 equivalently to x < 5 etc.  In cmp1 and cmp2 (if
9561         not the same as cmp3) treat <= the same as < and >= the same as >.
9562         Don't require that cond2_phi_edge is true edge, instead take
9563         false/true edges into account based on cmp1/cmp2 comparison kinds.
9565 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
9567         PR target/100637
9568         * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
9569         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
9570         from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
9571         using SMAXMIN_MMXMODEI mode iterator.
9572         (*<smaxmin:code>v4qi3): New insn pattern.
9573         (*<smaxmin:code>v2hi3): Ditto.
9574         (SMAXMIN_VI_32): New mode iterator.
9575         (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
9576         (UMAXMIN_MMXMODEI): New mode iterator.
9577         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
9578         from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
9579         using UMAXMIN_MMXMODEI mode iterator.
9580         (*<umaxmin:code>v4qi3): New insn pattern.
9581         (*<umaxmin:code>v2hi3): Ditto.
9582         (UMAXMIN_VI_32): New mode iterator.
9583         (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
9584         (abs<VI_32:mode>2): New insn pattern.
9585         (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
9586         * config/i386/sse.md: ... here.
9588 2021-05-20  Clement Chigot  <clement.chigot@atos.net>
9589             David Edelsohn  <dje.gcc@gmail.com>
9591         * collect2.c (scan_prog_file): Issue non-fatal warning for
9592         non-COFF files.
9594 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
9596         * doc/invoke.texi (-Wno-c++11-extensions)
9597         (-Wno-c++14-extensions, -Wno-c++17-extensions)
9598         (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
9599         new options.
9601 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
9603         * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
9604         * config/darwin.c (darwin_override_options): Likewise.
9605         * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
9606         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
9607         (DWARF2_FRAME_REG_OUT): Likewise.
9608         * config/mips/mips.c (mips_output_filename): Likewise.
9609         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
9610         Likewise.
9611         (rs6000_dbx_register_number): Likewise.
9612         * dbxout.c: Include flags.h.
9613         * dwarf2cfi.c (cfi_label_required_p): Likewise.
9614         (dwarf2out_do_frame): Likewise.
9615         * except.c: Include flags.h.
9616         * final.c (dwarf2_debug_info_emitted_p): Likewise.
9617         (final_scan_insn_1): Likewise.
9618         * flags.h (dwarf_debuginfo_p): New function declaration.
9619         * opts.c (dwarf_debuginfo_p): New function definition.
9620         * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
9621         * toplev.c (process_options): Likewise.
9623 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
9625         * common.opt: Change type to support bitmasks.
9626         * flag-types.h (enum debug_info_type): Rename enumerator constants.
9627         (NO_DEBUG): New bitmask.
9628         (DBX_DEBUG): Likewise.
9629         (DWARF2_DEBUG): Likewise.
9630         (XCOFF_DEBUG): Likewise.
9631         (VMS_DEBUG): Likewise.
9632         (VMS_AND_DWARF2_DEBUG): Likewise.
9633         * flags.h (debug_set_to_format): New function declaration.
9634         (debug_set_count): Likewise.
9635         (debug_set_names): Likewise.
9636         * opts.c (debug_type_masks): Array of bitmasks for debug formats.
9637         (debug_set_to_format): New function definition.
9638         (debug_set_count): Likewise.
9639         (debug_set_names): Likewise.
9640         (set_debug_level): Update access to debug_type_names.
9641         * toplev.c: Likewise.
9643 2021-05-20  Martin Sebor  <msebor@redhat.com>
9645         PR middle-end/100684
9646         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
9648 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
9650         PR target/100701
9651         * config/i386/i386.md (isa): Remove x64_bmi.
9652         (enabled): Remove x64_bmi.
9653         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
9654         Remove general register alternative.
9655         (*andnot<VI_32:mode>3): Ditto.
9656         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
9657         (*<any_logic:code><VI_32:mode>3): Ditto.
9659 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
9661         * config/arm/arm.c: Include head files tree-vectorizer.h and
9662         cfgloop.h.
9664 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
9666         PR target/100637
9667         * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
9668         (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
9669         (<s>mulv4hi3_highpart): New expander.
9670         (*<s>mulv2hi3_highpart): New insn pattern.
9671         (<s>mulv2hi3_higpart): New expander.
9672         (*<any_shift:insn>v2hi3): New insn pattern.
9673         (<any_shift:insn>v2hi3): New expander.
9674         * config/i386/sse.md (smulhrsv2hi3): New expander.
9675         (*smulhrsv2hi3): New insn pattern.
9677 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
9679         * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
9680         parameter.
9681         * params.opt (vect-inner-loop-cost-factor): New.
9682         * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
9683         50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
9684         tree-vectorizer.h and its required ones.
9685         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
9686         hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
9687         * config/arm/arm.c (arm_add_stmt_cost): Likewise.
9688         * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
9689         * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
9690         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
9691         Likewise.
9692         (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
9693         * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
9694         (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
9696 2021-05-20  Christophe Lyon  <christophe.lyon@linaro.org>
9697             Torbjörn Svensson  <torbjorn.svensson@st.com>
9699         PR c/42579
9700         * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
9702 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
9704         PR middle-end/99928
9705         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
9706         explicit linear clause when combined with target, make it map(tofrom:)
9707         instead of no clause or firstprivate.
9709 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
9711         PR tree-optimization/94589
9712         * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
9713         of integral conversions.
9715 2021-05-19  Andrew MacLeod  <amacleod@redhat.com>
9717         * gimple-range.cc (fur_source::get_operand): New.
9718         (gimple_range_fold): Delete.
9719         (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
9720         (fold_using_range::range_of_range_op): Move from gimple_ranger.
9721         (fold_using_range::range_of_address): Ditto.
9722         (fold_using_range::range_of_phi): Ditto.
9723         (fold_using_range::range_of_call): Ditto.
9724         (fold_using_range::range_of_builtin_ubsan_call): Move from
9725         range_of_builtin_ubsan_call.
9726         (fold_using_range::range_of_builtin_call): Move from
9727         range_of_builtin_call.
9728         (gimple_ranger::range_of_builtin_call): Delete.
9729         (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
9730         (gimple_ranger::fold_range_internal): New.
9731         (gimple_ranger::range_of_stmt): Use new fold_using_range API.
9732         (fold_using_range::range_of_ssa_name_with_loop_info): Move from
9733         gimple_ranger.  Improve ranges of SSA_NAMES when possible.
9734         * gimple-range.h (gimple_ranger): Remove various range_of routines.
9735         (class fur_source): New.
9736         (class fold_using_range): New.
9737         (fur_source::fur_source): New.
9738         (fold_range): New.
9739         * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
9740         instead of range_of_builtin_call.
9742 2021-05-19  Jonathan Wakely  <jwakely@redhat.com>
9744         * doc/cpp.texi (Common Predefined Macros): Update documentation
9745         for the __GXX_EXPERIMENTAL_CXX0X__ macro.
9747 2021-05-19  Alex Coplan  <alex.coplan@arm.com>
9749         PR target/100333
9750         * config/arm/arm.md (nonsecure_call_internal): Always ensure
9751         callee's address is in a register.
9753 2021-05-19  Geng Qi  <gengqi@linux.alibaba.com>
9755         * common/config/riscv/riscv-common.c
9756         (riscv_subset_list::parsing_subset_version): Properly parse the letter
9757         'p' in '-march'.
9758         (riscv_subset_list::parse_std_ext,
9759          riscv_subset_list::parse_multiletter_ext): To handle errors generated
9760         in riscv_subset_list::parsing_subset_version.
9762 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
9764         * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
9765         type attribute in patterns generating XTN(2).
9767 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
9769         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
9770         Remove as duplicate of...
9771         (aarch64_xtn<mode>): This.
9772         (aarch64_xtn2<mode>_le): Move position in file.
9773         (aarch64_xtn2<mode>_be): Move position in file.
9774         (aarch64_xtn2<mode>): Move position in file.
9775         (vec_pack_trunc_<mode>): Define as an expander.
9777 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
9779         * config/aarch64/aarch64-simd-builtins.def: Split builtin
9780         generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
9781         separate scalar and vector generators.
9782         * config/aarch64/aarch64-simd.md
9783         (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
9784         split into...
9785         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
9786         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
9787         * config/aarch64/iterators.md: Define SD_HSDI iterator.
9789 2021-05-19  Jonathn Wright  <jonathan.wright@arm.com>
9791         * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
9792         of UNSPEC_SQXTUN2.
9793         * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
9795 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
9797         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
9798         Implement as an expand emitting a big/little endian
9799         instruction pattern.
9800         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
9801         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
9803 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
9805         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
9806         Implement as an expand emitting a big/little endian
9807         instruction pattern.
9808         (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
9809         (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
9810         * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
9811         UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
9813 2021-05-19  Richard Biener  <rguenther@suse.de>
9815         PR middle-end/100672
9816         * fold-const.c (fold_negate_expr_1): Use element_precision.
9817         (negate_expr_p): Likewise.
9819 2021-05-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9821         * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
9822         (pred_load): New int attribute.
9823         * config/aarch64/aarch64-sve.md
9824         (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
9825         SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
9826         * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
9827         code_for_aarch64_load.
9829 2021-05-19  Richard Biener  <rguenther@suse.de>
9831         * cfgexpand.c (discover_nonconstant_array_refs_r): Make
9832         sure TARGET_MEM_REF bases are expanded as memory.
9833         * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
9834         Do not mark TARGET_MEM_REF bases addressable.
9835         * tree-ssa.c (non_rewritable_mem_ref_base): Handle
9836         TARGET_MEM_REF bases as never rewritable.
9837         * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
9838         walk TARGET_MEM_REF bases as address-takens.
9839         * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
9841 2021-05-19  Richard Biener  <rguenther@suse.de>
9843         * builtins.c (get_object_alignment_1): Strip outer
9844         WITH_SIZE_EXPR.
9845         * tree-dfa.c (get_ref_base_and_extent): Handle outer
9846         WITH_SIZE_EXPR for size processing and process the
9847         containing ref.
9848         * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
9849         outer WITH_SIZE_EXPR.
9850         (ao_ref_base_alias_ptr_type): Likewise.
9851         (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
9852         and handle that accordingly, stripping it for the
9853         core alias workers.
9854         * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
9855         looking through it instead of returning NULL.
9857 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
9859         PR middle-end/100576
9860         * builtins.c (check_read_access): Convert bound to size_type_node if
9861         non-NULL.
9863 2021-05-19  Richard Biener  <rguenther@suse.de>
9865         * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
9866         (verify_types_in_gimple_reference): ... here.  Sanitize.
9867         (verify_gimple_call): Verify references in LHS and arguments.
9868         (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
9870 2021-05-19  Uroš Bizjak  <ubizjak@gmail.com>
9872         * config/i386/i386.h (VALID_INT_MODE_P):
9873         Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
9874         * config/i386/i386.md (isa): Add x64_bmi.
9875         (enabled): Handle x64_bmi.
9876         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
9877         Add alternative using 64bit general registers.
9878         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
9880 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
9882         PR middle-end/99928
9883         * tree.h (OMP_MASTER_COMBINED): Define.
9884         * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
9885         handling for outer combined/composite constructs to a loop.
9886         Handle lastprivate on combined target.
9887         (gimplify_expr): Formatting fix.
9889 2021-05-19  Xionghu Luo  <luoxhu@linux.ibm.com>
9891         * passes.def: Add sink_code pass before store_merging.
9892         * tree-ssa-sink.c (pass_sink_code:clone): New.
9894 2021-05-18  Bill Schmidt  <wschmidt@linux.ibm.com>
9896         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
9897         rs6000_special_adjust_field_align_p.
9898         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
9899         * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
9900         Remove ABI warning.
9901         (rs6000_function_arg): Likewise.
9902         * config/rs6000/rs6000-protos.h
9903         (rs6000_special_adjust_field_align_p): Remove prototype.
9904         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
9905         Remove.
9906         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
9907         rs6000_special_adjust_field_align_p.
9909 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
9911         PR target/100637
9912         * config/i386/i386.h (VALID_SSE2_REG_MODE):
9913         Add V4QI and V2HI modes.
9914         (VALID_INT_MODE_P): Ditto.
9915         * config/i386/mmx.md (VI_32): New mode iterator.
9916         (mmxvecsize): Handle V4QI and V2HI.
9917         (Yv_Yw): Ditto.
9918         (mov<VI_32:mode>): New expander.
9919         (*mov<mode>_internal): New insn pattern.
9920         (movmisalign<VI_32:mode>): New expander.
9921         (neg<VI_32:mode>): New expander.
9922         (<plusminus:insn><VI_32:mode>3): New expander.
9923         (*<plusminus:insn><VI_32:mode>3): New insn pattern.
9924         (mulv2hi3): New expander.
9925         (*mulv2hi3): New insn pattern.
9926         (one_cmpl<VI_32:mode>2): New expander.
9927         (*andnot<VI_32:mode>3): New insn pattern.
9928         (<any_logic:code><VI_32:mode>3): New expander.
9929         (*<any_logic:code><VI_32:mode>3): New insn pattern.
9931 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
9933         * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
9934         Fix a mode mismatch with operand 1.
9936 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
9938         PR target/100626
9939         * config/i386/i386-expand.c (split_double_mode): Return
9940         temporary register when simplify_gen_subreg fails with
9941         the high half od the paradoxical subreg.
9943 2021-05-18  Richard Biener  <rguenther@suse.de>
9945         * cfgexpand.c (expand_one_var): Pass in forced_stack_var
9946         and honor it when expanding.
9947         (expand_used_vars_for_block): Pass through forced_stack_var.
9948         (expand_used_vars): Likewise.
9949         (discover_nonconstant_array_refs_r): Set bits in
9950         forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
9951         (avoid_type_punning_on_regs): Likewise.
9952         (discover_nonconstant_array_refs): Likewise.
9953         (pass_expand::execute): Create and pass down forced_stack_var
9954         bitmap.  For parameters and returns temporarily set
9955         TREE_ADDRESSABLE when expand_function_start.
9957 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
9959         * doc/sourcebuild.texi: Document 'dg-note'.
9961 2021-05-18  Tobias Burnus  <tobias@codesourcery.com>
9963         PR other/100598
9964         * configure: Regenerate.
9965         * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
9967 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
9969         * gimple.h (is_gimple_omp_oacc): Tighten.
9970         * omp-low.c (check_omp_nesting_restrictions): Adjust.
9972 2021-05-18  Richard Biener  <rguenther@suse.de>
9974         * tree-ssa-operands.c (mark_address_taken): Simplify.
9976 2021-05-18  Martin Liska  <mliska@suse.cz>
9978         * config/gcn/mkoffload.c (STR): Redefine.
9979         * config/i386/intelmic-mkoffload.c (STR): Likewise.
9980         * config/nvptx/mkoffload.c (STR): Likewise.
9982 2021-05-18  Martin Liska  <mliska@suse.cz>
9984         * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
9985         Use startswith function instead of strncmp.
9986         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
9987         * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
9988         * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
9989         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
9990         * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
9991         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
9992         * config/arm/arm.c (arm_file_start): Likewise.
9993         (arm_valid_target_attribute_rec): Likewise.
9994         (thumb1_md_asm_adjust): Likewise.
9995         * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
9996         * config/avr/avr.c (STR_PREFIX_P): Likewise.
9997         (avr_set_current_function): Likewise.
9998         (avr_handle_addr_attribute): Likewise.
9999         (avr_asm_output_aligned_decl_common): Likewise.
10000         (avr_asm_named_section): Likewise.
10001         (avr_section_type_flags): Likewise.
10002         (avr_asm_select_section): Likewise.
10003         * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
10004         (c6x_section_type_flags): Likewise.
10005         * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
10006         (darwin_objc_declare_unresolved_class_reference): Likewise.
10007         (darwin_objc_declare_class_definition): Likewise.
10008         * config/darwin.c (indirect_data): Likewise.
10009         (darwin_encode_section_info): Likewise.
10010         (darwin_objc2_section): Likewise.
10011         (darwin_objc1_section): Likewise.
10012         (machopic_select_section): Likewise.
10013         (darwin_globalize_label): Likewise.
10014         (darwin_label_is_anonymous_local_objc_name): Likewise.
10015         (darwin_asm_named_section): Likewise.
10016         (darwin_asm_output_dwarf_offset): Likewise.
10017         * config/frv/frv.c (frv_string_begins_with): Likewise.
10018         (frv_in_small_data_p): Likewise.
10019         * config/gcn/mkoffload.c (STR): Likewise.
10020         (main): Likewise.
10021         * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
10022         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
10023         * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
10024         (ix86_md_asm_adjust): Likewise.
10025         * config/i386/intelmic-mkoffload.c (STR): Likewise.
10026         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
10027         (i386_pe_file_end): Likewise.
10028         * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
10029         (ia64_section_type_flags): Likewise.
10030         * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
10031         * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
10032         (mips16_stub_function_p): Likewise.
10033         (mips_function_rodata_section): Likewise.
10034         * config/msp430/msp430.c (msp430_mcu_name): Likewise.
10035         (msp430_function_section): Likewise.
10036         (msp430_section_type_flags): Likewise.
10037         (msp430_expand_helper): Likewise.
10038         * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
10039         (nios2_valid_target_attribute_rec): Likewise.
10040         * config/nvptx/mkoffload.c (process): Likewise.
10041         (STR): Likewise.
10042         * config/pa/som.h: Likewise.
10043         * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
10044         * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
10045         * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
10046         (rs6000_inner_target_options): Likewise.
10047         * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
10048         * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
10049         * config/vax/vax.c (vax_output_int_move): Likewise.
10050         * config/vms/vms-ld.c (startswith): Likewise.
10051         (process_args): Likewise.
10052         (main): Likewise.
10053         * config/vms/vms.c: Likewise.
10055 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
10057         PR rtl-optimization/100590
10058         * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
10059         they are NONJUMP_INSN_P.
10061 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
10063         PR c++/100580
10064         * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
10065         DECL_ASSEMBLER_NAME on the fn_decl.
10067 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
10069         PR tree-optimization/94589
10070         * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
10071         phi result used in (res & ~1) == 0 comparison as res >= 0 as
10072         res == 2 would be UB with -ffinite-math-only.
10074 2021-05-18  Martin Liska  <mliska@suse.cz>
10076         * Makefile.in: genversion.o should depend on DATESTAMP.
10078 2021-05-18  Claudiu Zissulescu  <claziss@synopsys.com>
10080         * config/arc/simdext.md (negv2si2): Remove round bracket.
10082 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
10084         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
10085         _Bool as macro expanding to _Bool.
10087 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
10089         PR c++/100281
10090         * tree.c (build_reference_type_for_mode)
10091         (build_pointer_type_for_mode): Pick pointer mode if MODE argument
10092         is VOIDmode.
10093         (build_reference_type, build_pointer_type): Invoke
10094         build_*_type_for_mode with VOIDmode.
10096 2021-05-17  Andrew MacLeod  <amacleod@redhat.com>
10098         PR tree-optimization/100512
10099         * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
10100         and non-zero pointer ranges as invariant.
10101         * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
10102         processing from here.
10104 2021-05-17  Tom de Vries  <tdevries@suse.de>
10106         PR target/100497
10107         * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
10108         * config/nvptx/nvptx.c (nvptx_output_barrier)
10109         (nvptx_output_atomic_insn): New function.
10110         (nvptx_print_operand): Add support for 'B'.
10111         * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
10112         insns.
10114 2021-05-17  Aldy Hernandez  <aldyh@redhat.com>
10116         PR tree-optimization/100349
10117         * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
10118           NULL.
10120 2021-05-17  Tamar Christina  <tamar.christina@arm.com>
10122         * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
10123         (host_detect_local_cpu): Use it.
10125 2021-05-17  Martin Liska  <mliska@suse.cz>
10127         * doc/invoke.texi: Add 2 missing dots.
10129 2021-05-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
10131         PR bootstrap/100552
10132         * configure.ac: Replace pattern substitution with call to sed.
10133         * configure: Regenerate.
10135 2021-05-17  Richard Biener  <rguenther@suse.de>
10137         PR middle-end/100582
10138         * tree.c (array_at_struct_end_p): Get to the base of the
10139         reference before looking for the underlying decl.
10141 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
10143         * genoutput.c (validate_insn_alternatives) Make "wrong number of
10144         alternatives" message more specific, and remove assumption on where
10145         the problem is.
10147 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
10149         * config/arm/iterators.md (V16): New iterator.
10150         (VH_cvtto): New iterator.
10151         (v_cmp_result): Added V4HF and V8HF support.
10152         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
10153         (vcond<mode><mode>): Likewise.
10154         (vcond_mask_<mode><v_cmp_result>): Likewise.
10155         (vcond<VH_cvtto><mode>): New expander.
10157 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
10159         * config/arm/arm-protos.h (arm_expand_vector_compare): Update
10160         prototype.
10161         * config/arm/arm.c (arm_expand_vector_compare): Add support for
10162         MVE.
10163         (arm_expand_vcond): Likewise.
10164         * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
10165         VCMPEQQ_N_S, VCMPNEQ_N_S.
10166         (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
10167         * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
10168         (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
10169         (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
10170         (@mve_vpselq_<supf><mode>): Likewise.
10171         (@mve_vpselq_f<mode>"): Likewise.
10172         * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
10173         and move to vec-common.md.
10174         (vec_cmpu<mode><mode>): Likewise.
10175         (vcond<mode><mode>): Likewise.
10176         (vcond<V_cvtto><mode>): Likewise.
10177         (vcondu<mode><v_cmp_result>): Likewise.
10178         (vcond_mask_<mode><v_cmp_result>): Likewise.
10179         * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
10180         (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
10181         (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
10182         (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
10183         (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
10184         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
10185         from neon.md.
10186         (vec_cmpu<mode><mode>): Likewise.
10187         (vcond<mode><mode>): Likewise.
10188         (vcond<V_cvtto><mode>): Likewise.
10189         (vcondu<mode><v_cmp_result>): Likewise.
10190         (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
10191         condition.
10193 2021-05-17  liuhongt  <hongtao.liu@intel.com>
10195         PR target/100549
10196         * config/i386/i386.c (ix86_gimple_fold_builtin): Use
10197         gsi_insert_seq_before instead.
10199 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
10201         * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
10202         (arm_sat_ok): ...this.
10204 2021-05-17  Martin Liska  <mliska@suse.cz>
10206         * lto-wrapper.c (merge_flto_options): Factor out a new function.
10207         (merge_and_complain): Use it.
10208         (run_gcc): Merge also linker command line -flto=foo argument
10209         with IL files.
10211 2021-05-16  Christophe Lyon  <christophe.lyon@linaro.org>
10213         * config/arm/arm.h (CPP_SPEC): Remove error message about
10214         -mlittle-endian/-mbig-endian conflict.
10216 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
10218         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10219         __ROP_PROTECT__ if -mrop-protect is selected.
10221 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
10223         * config/rs6000/rs6000-internal.h (rs6000_stack): Add
10224         rop_hash_save_offset and rop_hash_size.
10225         * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
10226         rop_hash_size and rop_hash_save_offset.
10227         (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
10228         (rs6000_emit_prologue): Emit hashst[p] in prologue.
10229         (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
10230         * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
10231         UNSPEC_HASHCHK.
10232         (hashst): New define_insn.
10233         (hashchk): Likewise.
10235 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
10237         * config/rs6000/rs6000.c (rs6000_option_override_internal):
10238         Disable shrink wrap when inserting ROP-protect instructions.
10239         * config/rs6000/rs6000.opt (mrop-protect): New option.
10240         (mprivileged): Likewise.
10241         * doc/invoke.texi: Document mrop-protect and mprivileged.
10243 2021-05-15  Hans-Peter Nilsson  <hp@axis.com>
10245         * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
10246         "Remove CC0".
10248 2021-05-15  Martin Jambor  <mjambor@suse.cz>
10250         Revert:
10251         2021-05-13  Martin Jambor  <mjambor@suse.cz>
10253         PR tree-optimization/100453
10254         * tree-sra.c (sra_modify_assign): All const base accesses do not
10255         need refreshing, not just those from decl_pool.
10256         (sra_modify_assign): Do not refresh into a const base decl.
10258 2021-05-15  Jakub Jelinek  <jakub@redhat.com>
10260         PR rtl-optimization/100342
10261         * regcprop.c (copy_value): When copying a source reg in a wider
10262         mode than it has recorded for the value, adjust recorded destination
10263         mode too or punt if !REG_CAN_CHANGE_MODE_P.
10265 2021-05-14  Jason Merrill  <jason@redhat.com>
10267         * intl.h: Add comments.
10269 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10271         * config/aarch64/aarch64-simd.md
10272         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
10273         (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
10274         (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
10275         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
10276         (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
10277         (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
10278         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
10279         (aarch64_sqdmlsl2_n<mode>_internal): ... This...
10280         (aarch64_sqdmlal2_n<mode>_internal): ... And this.
10282 2021-05-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10284         PR target/66791
10285         * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
10286         boolean logic equivalent.
10287         (vtst_s16): Likewise.
10288         (vtst_s32): Likewise.
10289         (vtst_u8): Likewise.
10290         (vtst_u16): Likewise.
10291         (vtst_u32): Likewise.
10292         (vtst_p8): Likewise.
10293         (vtst_p16): Likewise.
10294         (vtstq_s8): Likewise.
10295         (vtstq_s16): Likewise.
10296         (vtstq_s32): Likewise.
10297         (vtstq_u8): Likewise.
10298         (vtstq_u16): Likewise.
10299         (vtstq_u32): Likewise.
10300         (vtstq_p8): Likewise.
10301         (vtstq_p16): Likewise.
10302         * config/arm/arm_neon_builtins.def: Remove entry for vtst.
10303         * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
10305 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10307         * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
10308         (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
10309         (aarch64_sqdmlsl2<mode>): Delete.
10310         (aarch64_sqdmlal2_lane<mode>): Merge this...
10311         (aarch64_sqdmlsl2_lane<mode>): ... And this...
10312         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
10313         (aarch64_sqdmlal2_laneq<mode>): Merge this...
10314         (aarch64_sqdmlsl2_laneq<mode>): ... And this...
10315         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
10316         (aarch64_sqdmlal2_n<mode>): Merge this...
10317         (aarch64_sqdmlsl2_n<mode>): ... And this...
10318         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
10320 2021-05-13  Martin Sebor  <msebor@redhat.com>
10322         PR middle-end/100574
10323         * builtins.c (access_ref::get_ref): Improve detection of PHIs with
10324         all null arguments.
10326 2021-05-13  Martin Sebor  <msebor@redhat.com>
10328         PR tree-optimization/93100
10329         PR middle-end/98583
10330         * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
10331         don't modify referenced objects.
10333 2021-05-13  Martin Jambor  <mjambor@suse.cz>
10335         PR tree-optimization/100453
10336         * tree-sra.c (sra_modify_assign): All const base accesses do not
10337         need refreshing, not just those from decl_pool.
10338         (sra_modify_assign): Do not refresh into a const base decl.
10340 2021-05-13  Martin Liska  <mliska@suse.cz>
10342         * tree-ssa-dom.c: Remove m_simplifier.
10344 2021-05-13  Richard Earnshaw  <rearnsha@arm.com>
10346         PR target/100563
10347         * config/arm/arm.c (arm_canonicalize_comparison): Correctly
10348         canonicalize DImode inequality comparisons against the
10349         maximum integral value.
10351 2021-05-13  Jakub Jelinek  <jakub@redhat.com>
10353         PR tree-optimization/98856
10354         * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
10355         Expect V2DI and V4DI arithmetic right shifts to be emulated.
10356         (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
10357         caller.
10358         * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
10359         expand_vec_perm_2perm_pblendv): New functions.
10360         (ix86_expand_vec_perm_const_1): Use them.
10361         * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
10362         (<mask_codefor>ashr<mode>3<mask_name>): ... this.
10363         (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
10364         (ashrv4di3): New define_expand.
10365         (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
10366         and !TARGET_AVX512VL expansion.
10368 2021-05-13  Uroš Bizjak  <ubizjak@gmail.com>
10370         PR target/100581
10371         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
10372         sizes < 16 to a register when constructing vpcmov pattern.
10373         * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
10375 2021-05-13  Martin Liska  <mliska@suse.cz>
10377         * gcov-io.c (gcov_write_block): Remove.
10378         (gcov_write_words): Likewise.
10379         (gcov_read_words): Re-implement using gcov_read_bytes.
10380         (gcov_allocate): Remove.
10381         (GCOV_BLOCK_SIZE): Likewise.
10382         (struct gcov_var): Remove most of the fields.
10383         (gcov_position): Implement with ftell.
10384         (gcov_rewrite): Remove setting of start and offset fields.
10385         (from_file): Re-format.
10386         (gcov_open): Remove setbuf call. It should not be needed.
10387         (gcov_close): Remove internal buffer handling.
10388         (gcov_magic): Use __builtin_bswap32.
10389         (gcov_write_counter): Use directly gcov_write_unsigned.
10390         (gcov_write_string): Use direct fwrite and do not round
10391         to 4 bytes.
10392         (gcov_seek): Use directly fseek.
10393         (gcov_write_tag): Use gcov_write_unsigned directly.
10394         (gcov_write_length): Likewise.
10395         (gcov_write_tag_length): Likewise.
10396         (gcov_read_bytes): Use directly fread.
10397         (gcov_read_unsigned): Use gcov_read_words.
10398         (gcov_read_counter): Likewise.
10399         (gcov_read_string): Use gcov_read_bytes.
10400         * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
10401         that size is not in bytes, but words (4B).
10402         (GCOV_TAG_FUNCTION_LENGTH): Likewise.
10403         (GCOV_TAG_ARCS_LENGTH): Likewise.
10404         (GCOV_TAG_ARCS_NUM): Likewise.
10405         (GCOV_TAG_COUNTER_LENGTH): Likewise.
10406         (GCOV_TAG_COUNTER_NUM): Likewise.
10407         (GCOV_TAG_SUMMARY_LENGTH): Likewise.
10409 2021-05-13  liuhongt  <hongtao.liu@intel.com>
10411         PR target/94680
10412         * config/i386/sse.md (ssedoublevecmode): Add attribute for
10413         V64QI/V32HI/V16SI/V4DI.
10414         (ssehalfvecmode): Add attribute for V2DI/V2DF.
10415         (*vec_concatv4si_0): Extend to VI124_128.
10416         (*vec_concat<mode>_0): New pre-reload splitter.
10417         * config/i386/predicates.md (movq_parallel): New predicate.
10419 2021-05-13  Alexandre Oliva  <oliva@adacore.com>
10421         * targhooks.c (default_zero_call_used_regs): Retry using
10422         successfully-zeroed registers as sources.
10424 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
10426         * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
10428 2021-05-12  Aldy Hernandez  <aldyh@redhat.com>
10430         PR c/100521
10431         * gimple-range.cc (range_of_builtin_call): Skip out on
10432           processing __builtin_clz when varying.
10434 2021-05-12  Tom de Vries  <tdevries@suse.de>
10436         PR target/96005
10437         * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
10438         * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
10439         to ptx_version_option.
10440         * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
10441         * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
10442         (define_insn "nvptx_vote_ballot"): Use sync variant for
10443         TARGET_PTX_6_3.
10444         * config/nvptx/nvptx.opt (ptx_version): Add enum.
10445         (mptx): Add option.
10446         * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
10448 2021-05-12  Richard Biener  <rguenther@suse.de>
10450         PR tree-optimization/100566
10451         * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
10452         allow_back for all edge queries.
10454 2021-05-12  liuhongt  <hongtao.liu@intel.com>
10456         PR target/99908
10457         * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
10458         splitters for pblendvb of NOT mask register.
10460 2021-05-12  Richard Biener  <rguenther@suse.de>
10462         PR tree-optimization/100519
10463         * tree-ssa-reassoc.c (can_associate_p): Split into...
10464         (can_associate_op_p): ... this
10465         (can_associate_type_p): ... and this.
10466         (is_reassociable_op): Call can_associate_op_p.
10467         (break_up_subtract_bb): Call the appropriate predicates.
10468         (reassociate_bb): Likewise.
10470 2021-05-12  Martin Liska  <mliska@suse.cz>
10472         * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
10473         (run_gcc): Use -flto argument detection for merged
10474         fdecoded_options.
10476 2021-05-12  Martin Liska  <mliska@suse.cz>
10478         * lto-wrapper.c (print_lto_docs_link): New function.
10479         (run_gcc): Print warning about missing job server detection
10480         after we know NR of partitions. Do the same for -flto{,=1}.
10481         * opts.c (get_option_html_page): Support -flto option.
10483 2021-05-12  Martin Liska  <mliska@suse.cz>
10485         * lto-wrapper.c (get_options_from_collect_gcc_options): Change
10486         return type.
10487         (append_option): Remove.
10488         (find_option): Rework to use the vector type.
10489         (remove_option): Remove.
10490         (merge_and_complain): Use vectors for cl_decoded_option data
10491         type arguments.
10492         (append_compiler_options): Likewise.
10493         (append_diag_options): Likewise.
10494         (append_linker_options): Likewise.
10495         (append_offload_options): Likewise.
10496         (compile_offload_image): Likewise.
10497         (compile_images_for_offload_targets): Likewise.
10498         (find_and_merge_options): Likewise.
10499         (run_gcc): Likewise.
10501 2021-05-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10503         PR debug/100515
10504         * dwarf2out.c (dwarf2out_finish): Set
10505         have_multiple_function_sections with multi-range text_section.
10507 2021-05-12  Martin Liska  <mliska@suse.cz>
10509         PR bootstrap/100560
10510         * Makefile.in: Remove version.h from linker command line.
10512 2021-05-12  Richard Biener  <rguenther@suse.de>
10514         PR middle-end/100547
10515         * rtl.h (rtvec_alloc): Make argument size_t.
10516         * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
10518 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
10520         PR middle-end/100508
10521         * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
10522         type, don't reuse DECL_RTL if it has different mode, instead force
10523         creation of a new DEBUG_EXPR.
10525 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
10526             Marc Glisse  <marc.glisse@inria.fr>
10528         PR tree-optimization/94589
10529         * match.pd ((X & Y) == X -> (X & ~Y) == 0,
10530         (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
10532 2021-05-12  Uroš Bizjak  <ubizjak@gmail.com>
10534         PR target/98218
10535         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
10536         * config/i386/mmx.md (MMXMODE124): New mode iterator.
10537         (V2FI): Ditto.
10538         (mmxintvecmode): New mode attribute.
10539         (mmxintvecmodelower): Ditto.
10540         (*mmx_maskcmpv2sf3_comm): New insn pattern.
10541         (*mmx_maskcmpv2sf3): Ditto.
10542         (vec_cmpv2sfv2si): New expander.
10543         (vcond<V2FI:mode>v2si): Ditto.
10544         (mmx_vlendvps): New insn pattern.
10545         (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
10546         (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
10547         (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
10549 2021-05-11  Martin Sebor  <msebor@redhat.com>
10551         PR middle-end/21433
10552         * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
10554 2021-05-11  Richard Biener  <rguenther@suse.de>
10556         * gimple-fold.c (gimple_fold_call): Do not call
10557         maybe_fold_reference on call arguments or the static chain.
10558         (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
10559         inputs.
10561 2021-05-11  Martin Liska  <mliska@suse.cz>
10563         * builtins.def (DEF_HSAIL_BUILTIN): Remove.
10564         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
10565         (DEF_HSAIL_SAT_BUILTIN): Likewise.
10566         (DEF_HSAIL_INTR_BUILTIN): Likewise.
10567         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
10568         * doc/frontends.texi: Remove BRIG.
10569         * doc/install.texi: Likewise.
10570         * doc/invoke.texi: Likewise.
10571         * doc/standards.texi: Likewise.
10572         * brig-builtins.def: Removed.
10573         * brig/ChangeLog: Removed.
10574         * brig/Make-lang.in: Removed.
10575         * brig/brig-builtins.h: Removed.
10576         * brig/brig-c.h: Removed.
10577         * brig/brig-lang.c: Removed.
10578         * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
10579         * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
10580         * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
10581         * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
10582         * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
10583         * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
10584         * brig/brigfrontend/brig-code-entry-handler.h: Removed.
10585         * brig/brigfrontend/brig-comment-handler.cc: Removed.
10586         * brig/brigfrontend/brig-control-handler.cc: Removed.
10587         * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
10588         * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
10589         * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
10590         * brig/brigfrontend/brig-function-handler.cc: Removed.
10591         * brig/brigfrontend/brig-function.cc: Removed.
10592         * brig/brigfrontend/brig-function.h: Removed.
10593         * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
10594         * brig/brigfrontend/brig-label-handler.cc: Removed.
10595         * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
10596         * brig/brigfrontend/brig-machine.c: Removed.
10597         * brig/brigfrontend/brig-machine.h: Removed.
10598         * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
10599         * brig/brigfrontend/brig-module-handler.cc: Removed.
10600         * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
10601         * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
10602         * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
10603         * brig/brigfrontend/brig-to-generic.cc: Removed.
10604         * brig/brigfrontend/brig-to-generic.h: Removed.
10605         * brig/brigfrontend/brig-util.cc: Removed.
10606         * brig/brigfrontend/brig-util.h: Removed.
10607         * brig/brigfrontend/brig-variable-handler.cc: Removed.
10608         * brig/brigfrontend/hsa-brig-format.h: Removed.
10609         * brig/brigfrontend/phsa.h: Removed.
10610         * brig/brigspec.c: Removed.
10611         * brig/config-lang.in: Removed.
10612         * brig/gccbrig.texi: Removed.
10613         * brig/lang-specs.h: Removed.
10614         * brig/lang.opt: Removed.
10616 2021-05-11  Richard Biener  <rguenther@suse.de>
10618         PR ipa/100513
10619         * ipa-param-manipulation.c
10620         (ipa_param_body_adjustments::modify_call_stmt): Avoid
10621         altering SSA_NAME_DEF_STMT by adjusting the calls LHS
10622         via gimple_call_lhs_ptr.
10624 2021-05-11  Alex Coplan  <alex.coplan@arm.com>
10626         PR target/99725
10627         * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
10628         Avoid emitting CFA adjusts on the sp if we have the fp.
10630 2021-05-11  Richard Sandiford  <richard.sandiford@arm.com>
10632         * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
10633         (VMULD): New iterator.
10634         (VCOND): Handle V4HF and V8HF.
10635         (VCONQ): Fix entry for V2SF.
10636         * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
10637         instead of VMUL.  Use a 64-bit vector mode for the indexed operand.
10638         (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
10639         (mul_laneq<mode>3): ...this define_insn.  Use VMUL instead of VDQSF.
10640         Use a 128-bit vector mode for the indexed operand.  Use stype for
10641         the scheduling type.
10643 2021-05-11  Richard Biener  <rguenther@suse.de>
10645         * gimple-fold.c (maybe_fold_reference): Only return
10646         is_gimple_min_invariant values.
10648 2021-05-11  Richard Biener  <rguenther@suse.de>
10650         PR middle-end/100509
10651         * gimple-fold.c (fold_gimple_assign): Only call
10652         get_symbol_constant_value on register type symbols.
10654 2021-05-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
10655             Joe Ramsay   <joe.ramsay@arm.com>
10657         PR target/100419
10658         * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
10659         (__arm_vcmpneq): Remove duplicate definition.
10660         (__arm_vstrwq_scatter_offset_p): Likewise.
10661         (__arm_vmaxq_x): Likewise.
10662         (__arm_vmlsdavaq): Likewise.
10663         (__arm_vmlsdavaxq): Likewise.
10664         (__arm_vmlsdavq_p): Likewise.
10665         (__arm_vmlsdavxq_p): Likewise.
10666         (__arm_vrmlaldavhaq): Likewise.
10667         (__arm_vstrbq_p): Likewise.
10668         (__arm_vstrbq_scatter_offset): Likewise.
10669         (__arm_vstrbq_scatter_offset_p): Likewise.
10670         (__arm_vstrdq_scatter_offset): Likewise.
10671         (__arm_vstrdq_scatter_offset_p): Likewise.
10672         (__arm_vstrdq_scatter_shifted_offset): Likewise.
10673         (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
10675 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
10677         PR middle-end/100471
10678         * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
10679         is 0, bypass the reduction loop including
10680         GOMP_taskgroup_reduction_unregister call.
10682 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
10684         * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
10685         costing_for_scalar.
10686         (rs6000_density_test): Early return if costing_for_scalar is true.
10687         (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
10689 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
10691         * doc/tm.texi: Regenerated.
10692         * target.def (init_cost): Add new parameter costing_for_scalar.
10693         * targhooks.c (default_init_cost): Adjust for new parameter.
10694         * targhooks.h (default_init_cost): Likewise.
10695         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
10696         (vect_compute_single_scalar_iteration_cost): Likewise.
10697         (vect_analyze_loop_2): Likewise.
10698         * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
10699         (vect_bb_vectorization_profitable_p): Likewise.
10700         * tree-vectorizer.h (init_cost): Likewise.
10701         * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
10702         * config/i386/i386.c (ix86_init_cost): Likewise.
10703         * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
10705 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
10707         * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
10708         vect_nonmem and moved into...
10709         (struct rs6000_cost_data): ...here.
10710         (rs6000_init_cost): Use vect_nonmem of cost_data instead.
10711         (rs6000_add_stmt_cost): Likewise.
10712         (rs6000_finish_cost): Likewise.
10714 2021-05-10  Eric Botcazou  <ebotcazou@adacore.com>
10716         * range-op.cc (get_bool_state): Adjust head comment.
10717         (operator_not_equal::op1_range): Fix comment.
10718         (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
10720 2021-05-10  Martin Sebor  <msebor@redhat.com>
10722         PR middle-end/100425
10723         PR middle-end/100510
10724         * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
10725         (pass_walloca::xlimit_certain_p): ...to this.
10726         (pass_walloca::gate): Execute for any kind of handled warning.
10727         (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
10728         warnings when xlimit_certain_p is set.
10730 2021-05-10  Pat Haugen  <pthaugen@linux.ibm.com>
10732         * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
10733         Return ALTIVEC_REGS if that is best_class.
10734         (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
10736 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
10738         * config/arm/arm.h (CPP_SPEC): Remove error message about
10739         -mfloat-abi.
10741 2021-05-10  Martin Jambor  <mjambor@suse.cz>
10743         * ipa-prop.h (IPA_NODE_REF): Removed.
10744         (IPA_NODE_REF_GET_CREATE): Likewise.
10745         (IPA_EDGE_REF): Likewise.
10746         (IPA_EDGE_REF_GET_CREATE): Likewise.
10747         (IS_VALID_JUMP_FUNC_INDEX): Likewise.
10748         * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
10749         use of ipa_node_params_sum.
10750         (ipcp_versionable_function_p): Likewise.
10751         (push_node_to_stack): Likewise.
10752         (pop_node_from_stack): Likewise.
10753         (set_single_call_flag): Replaced two IPA_NODE_REF with one single
10754         direct use of ipa_node_params_sum.
10755         (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
10756         ipa_node_params_sum.
10757         (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
10758         ipa_edge_args_sum.
10759         (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
10760         use of ipa_node_params_sum.
10761         (self_recursively_generated_p): Likewise.
10762         (propagate_scalar_across_jump_function): Likewise.
10763         (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
10764         direct use of ipa_edge_args_sum, moved the lookup after the early
10765         exit.  Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
10766         (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
10767         direct uses of ipa_node_params_sum.
10768         (propagate_vr_across_jump_function): Likewise.
10769         (propagate_aggregate_lattice): Likewise.
10770         (propagate_aggs_across_jump_function): Likewise.
10771         (propagate_constants_across_call): Likewise, also replaced
10772         IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
10773         (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
10774         of ipa_node_params_sum.
10775         (estimate_local_effects): Likewise.
10776         (add_all_node_vals_to_toposort): Likewise.
10777         (propagate_constants_topo): Likewise.
10778         (ipcp_propagate_stage): Likewise.
10779         (ipcp_discover_new_direct_edges): Likewise.
10780         (calls_same_node_or_its_all_contexts_clone_p): Likewise.
10781         (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
10782         (get_info_about_necessary_edges): Likewise.
10783         (want_remove_some_param_p): Likewise.
10784         (create_specialized_node): Likewise.
10785         (self_recursive_pass_through_p): Likewise.
10786         (self_recursive_agg_pass_through_p): Likewise.
10787         (find_more_scalar_values_for_callers_subset): Likewise and also
10788         replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
10789         case replacing two of those with a single query.
10790         (find_more_contexts_for_caller_subset): Likewise for the
10791         ipa_polymorphic_call_context overload.
10792         (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
10793         use of ipa_edge_args_sum.  Replaced IPA_NODE_REF with direct uses of
10794         ipa_node_params_sum.
10795         (find_aggregate_values_for_callers_subset): Likewise, also reusing
10796         results of ipa_edge_args_sum->get.
10797         (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
10798         direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
10799         direct use of ipa_edge_args_sum.
10800         (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
10801         summary query after the early exit and reused the result later.
10802         (decide_about_value): Replaced IPA_NODE_REF with a direct use of
10803         ipa_node_params_sum.
10804         (decide_whether_version_node): Likewise.  Removed re-querying for
10805         summaries after cloning.
10806         (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
10807         ipa_node_params_sum.
10808         (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
10809         some queries.
10810         (identify_dead_nodes): Likewise.
10811         (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
10812         ipa_node_params_sum.
10813         (ipcp_store_vr_results): Likewise.
10814         * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
10815         (ipa_fn_summary_t::duplicate): Likewise.
10816         (analyze_function_body): Likewise.
10817         (estimate_calls_size_and_time): Likewise.
10818         (ipa_cached_call_context::duplicate_from): Likewise.
10819         (ipa_call_context::equal_to): Likewise.
10820         (remap_edge_params): Likewise.
10821         (ipa_merge_fn_summary_after_inlining): Likewise.
10822         (inline_read_section): Likewise.
10823         * ipa-icf.c (sem_function::param_used_p): Likewise.
10824         * ipa-modref.c (compute_parm_map): Likewise.
10825         (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
10826         ipa_edge_args_sum.
10827         (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
10828         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
10829         ipa_edge_args_sum.
10830         * ipa-profile.c (check_argument_count): Likewise.
10831         * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
10832         with a direct use of ipa_node_params_sum.
10833         (ipa_initialize_node_params): Likewise.
10834         (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
10835         direct use of ipa_edge_args_sum and reused the query result.
10836         (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
10837         direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
10838         direct use of ipa_edge_args_sum.
10839         (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
10840         ipa_node_params_sum and reused the result of the query.
10841         (ipa_analyze_node): Likewise.
10842         (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
10843         of ipa_node_params_sum.
10844         (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
10845         direct uses of ipa_edge_args_sum.
10846         (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
10847         direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
10848         direct use of ipa_edge_args_sum.  Removed superficial re-querying the
10849         top edge summary.
10850         (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
10851         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
10852         ipa_edge_args_sum.
10853         (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
10854         direct use of ipa_edge_args_sum.
10855         (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
10856         use of ipa_node_params_sum.
10857         (ipa_print_node_params): Likewise.
10858         (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
10859         direct uses of ipa_edge_args_sum.
10860         (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
10861         ipa_edge_args_sum.
10862         (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
10863         ipa_node_params_sum.
10864         (ipa_prop_write_jump_functions): Likewise.  Move variable node to the
10865         scopes where it is used.
10867 2021-05-10  Uroš Bizjak  <ubizjak@gmail.com>
10869         * config/i386/i386-expand.c (ix86_expand_sse_movcc)
10870         <case E_V2SImode>: Force op_true to register.
10872 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
10874         * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
10875         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
10876         (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
10877         patterns.
10878         (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
10879         (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
10880         (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
10881         (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
10882         (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
10883         (mve_vcmpneq_n_f<mode>): Remove.
10884         * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
10885         (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
10886         (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
10888 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
10890         * config/arm/iterators.md (MVE_COMPARISONS): New.
10891         (mve_cmp_op): New.
10892         (mve_cmp_type): New.
10893         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
10894         mve_vcmp patterns.
10895         (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
10896         (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
10897         (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
10898         (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
10899         (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
10900         (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
10901         (mve_vcmpneq_n_<mode>): Remove.
10903 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
10905         * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
10906         * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
10907         * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
10908         names.
10910 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
10912         * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
10913         (vcmpneq_n_u): Likewise.
10914         (vcmpeqq_u,): Likewise.
10915         (vcmpeqq_n_u): Likewise.
10916         * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
10917         VCMPEQQ_N_U and VCMPNEQ_N_U.
10918         * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
10919         (mve_vcmpeqq_n): Likewise.
10920         (mve_vcmpeqq): Likewise.
10921         (mve_vcmpneq_n): Likewise.
10923 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
10925         * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
10926         the 's' version of the builtin.
10928 2021-05-10  Richard Biener  <rguenther@suse.de>
10930         PR tree-optimization/100492
10931         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
10932         Find nothing when the loop contains an irreducible region.
10934 2021-05-10  Richard Biener  <rguenther@suse.de>
10936         PR middle-end/100464
10937         PR c++/100468
10938         * gimple-fold.c (canonicalize_constructor_val): Do not set
10939         TREE_ADDRESSABLE.
10941 2021-05-10  Richard Biener  <rguenther@suse.de>
10943         PR tree-optimization/100434
10944         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10945         call LHS.
10946         (dse_optimize_stmt): Handle call LHS by dropping the
10947         LHS or the whole call if it doesn't have other
10948         side-effects.
10949         (pass_dse::execute): Adjust.
10951 2021-05-10  Martin Liska  <mliska@suse.cz>
10953         * Makefile.in: Add missing genversion rule.
10955 2021-05-10  Alex Coplan  <alex.coplan@arm.com>
10957         PR target/99960
10958         * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
10959         vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
10961 2021-05-10  Martin Liska  <mliska@suse.cz>
10963         * builtins.c (is_builtin_name): Use startswith
10964         function instead of strncmp.
10965         * collect2.c (main): Likewise.
10966         (has_lto_section): Likewise.
10967         (scan_libraries): Likewise.
10968         * coverage.c (coverage_checksum_string): Likewise.
10969         (coverage_init): Likewise.
10970         * dwarf2out.c (is_cxx): Likewise.
10971         (gen_compile_unit_die): Likewise.
10972         * gcc-ar.c (main): Likewise.
10973         * gcc.c (init_spec): Likewise.
10974         (read_specs): Likewise.
10975         (execute): Likewise.
10976         (check_live_switch): Likewise.
10977         * genattrtab.c (write_attr_case): Likewise.
10978         (IS_ATTR_GROUP): Likewise.
10979         * gencfn-macros.c (main): Likewise.
10980         * gengtype.c (type_for_name): Likewise.
10981         (gen_rtx_next): Likewise.
10982         (get_file_langdir): Likewise.
10983         (write_local): Likewise.
10984         * genmatch.c (get_operator): Likewise.
10985         (get_operand_type): Likewise.
10986         (expr::gen_transform): Likewise.
10987         * genoutput.c (validate_optab_operands): Likewise.
10988         * incpath.c (add_sysroot_to_chain): Likewise.
10989         * langhooks.c (lang_GNU_C): Likewise.
10990         (lang_GNU_CXX): Likewise.
10991         (lang_GNU_Fortran): Likewise.
10992         (lang_GNU_OBJC): Likewise.
10993         * lto-wrapper.c (run_gcc): Likewise.
10994         * omp-general.c (omp_max_simt_vf): Likewise.
10995         * omp-low.c (omp_runtime_api_call): Likewise.
10996         * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
10997         * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
10998         * real.c (real_from_string): Likewise.
10999         * selftest.c (assert_str_startswith): Likewise.
11000         * timevar.c (timer::validate_phases): Likewise.
11001         * tree.c (get_file_function_name): Likewise.
11002         * ubsan.c (ubsan_use_new_style_p): Likewise.
11003         * varasm.c (default_function_rodata_section): Likewise.
11004         (incorporeal_function_p): Likewise.
11005         (default_section_type_flags): Likewise.
11006         * system.h (startswith): Define startswith.
11008 2021-05-10  Martin Liska  <mliska@suse.cz>
11010         * bitmap.h (class auto_bitmap): Remove
11011         __cplusplus >= 201103.
11012         * config/aarch64/aarch64.c: Likewise.
11013         * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
11014         Likewise.
11015         * sbitmap.h: Likewise.
11017 2021-05-10  Martin Liska  <mliska@suse.cz>
11019         * Makefile.in: Rename gcov-iov to genversion and depend
11020         on version.h (instead of gcov-iov.h).
11021         * gcov-io.h: Include version.h instread of gcov-iov.h.
11022         * gengtype-state.c (read_state_version): Likewise.
11023         * gcov-iov.c: Moved to...
11024         * genversion.c: ...here.
11025         * lto-streamer.h (LTO_major_version): Define it with
11026         GCC_major_version.
11027         * version.c: Removed.
11028         * version.h: Removed.
11030 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
11032         * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
11033         * config/arc/simdext.md (VCT): Add predicates for iterator
11034         elements.
11035         (EMUVEC): Define.
11036         (voptab): Likewise.
11037         (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
11038         (<voptab>v2si3): New patterns.
11039         (neg): Likewise.
11040         (reduc_plus_scal_v4hi): Likewise.
11041         (reduc_plus_scal_v2si): Likewise.
11042         (vec_duplicatev2si): Likewise.
11043         (vec_duplicatev4hi): Likewise.
11045 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
11047         * config/arc/simdext.md: Format and cleanup file.
11049 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
11051         * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
11052         only when munaligned-access option is on.
11053         (movmisalign<mode>): Likewise.
11055 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
11057         * common/config/arc/arc-common.c (arc_handle_option): Remove dot
11058         from string.
11059         * config/arc/arc.c (arc_reorg): Remove underscore from string.
11061 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
11063         * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
11064         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
11065         * config/arc/arc.md (clrsbsi2): Cleanup pattern.
11066         (norm_f): Likewise.
11067         (ffs): Likewise.
11068         (ffs_f): Likewise.
11069         (clzsi2): Use fls instruction when available.
11070         (arc_clzsi2): Likewise.
11072 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
11074         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
11076 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
11078         * doc/extend.texi (__builtin_arc_sr): Swap arguments.
11080 2021-05-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11082         PR middle-end/100467
11083         * toplev.c (compile_file): Call insn_locations_init before
11084         targetm.asm_out.code_end.
11086 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
11088         Revert:
11089         2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
11091         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
11093 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
11094             Andrew Stubbs  <amd@codesourcery.com>
11096         PR target/100418
11097         * builtins.c (try_store_by_multiple_pieces): Use force_operand for
11098         emit_move_insn operands.
11100 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
11102         * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
11103         location for the outgoing edges of an empty block.
11104         * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
11105         type by means of the get_array_descr_info langhook, if it is set and
11106         returns true.  Remove obsolete code dealing with unnamed subtypes.
11108 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
11110         * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
11111         (sbr_vector): Renamed from ssa_block_cache.
11112         (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
11113         (ssa_block_ranges::~ssa_block_ranges): Remove.
11114         (sbr_vector::set_bb_range): Use varying and undefined cached values.
11115         (ssa_block_ranges::set_bb_varying): Remove.
11116         (sbr_vector::get_bb_range): Adjust assert.
11117         (sbr_vector::bb_range_p): Adjust assert.
11118         (~block_range_cache): No freeing loop required.
11119         (block_range_cache::get_block_ranges): Remove.
11120         (block_range_cache::set_bb_range): Inline get_block_ranges.
11121         (block_range_cache::set_bb_varying): Remove.
11122         * gimple-range-cache.h (set_bb_varying): Remove prototype.
11123         * value-range.h (irange_allocator::get_memory): New.
11125 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
11127         * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
11128         dominator tree is available and requested.
11129         (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
11130         (ranger_cache::fill_block_cache): Don't search dom tree here either.
11131         * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
11133 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
11135         * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
11136         only PHI nodes better.
11138 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
11140         * gimple-range-edge.h (gimple_outgoing_range): Rename from
11141         outgoing_range.
11142         (gcond_edge_range): Export prototype.
11143         * gimple-range-edge.cc (gcond_edge_range): New.
11144         (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
11145         * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
11147 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
11149         * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
11150         default range into a temp and allocate only what is needed.
11152 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
11154         * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
11156 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
11158         * gimple-range.h (gimple_range_global): Pick up parameter initial
11159         values, and use-before defined locals are UNDEFINED.
11161 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
11163         * doc/extend.texi (scalar_storage_order): Mention effect on pointer
11164         and vector fields.
11165         * tree.h (reverse_storage_order_for_component_p): Return false if
11166         the type is a pointer.
11168 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
11170         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
11172 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
11174         PR target/98218
11175         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
11176         Handle V8QI, V4HI and V2SI modes.
11177         * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
11178         * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
11179         * config/i386/i386.md (unspec): ... here.
11181 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
11182             Tom de Vries  <tdevries@suse.de>
11184         * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
11185         a truth_value_p reduction variable is nonintegral.
11187 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
11189         PR target/100445
11190         * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
11191         Return false for mode sizes < 16.
11193 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
11195         PR target/100445
11196         * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
11198 2021-05-06  Martin Jambor  <mjambor@suse.cz>
11200         * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
11201         when there is no function summary.
11202         (ipa_sra_summarize_function): produce edge summaries even when
11203         bailing out early.
11205 2021-05-06  Tom Tromey  <tom@tromey.com>
11207         * godump.c (string_hash_eq): Remove.
11208         (go_finish): Use htab_eq_string.
11210 2021-05-06  Tom Tromey  <tom@tromey.com>
11212         * gengtype-state.c (read_state): Use htab_eq_string.
11213         (string_eq): Remove.
11215 2021-05-06  Tom Tromey  <tom@tromey.com>
11217         * gensupport.c (htab_eq_string): Remove.
11219 2021-05-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11221         PR ipa/97937
11222         * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
11223         * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
11224         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
11225         set_ignored_loc callbacks.
11226         * debug.c (do_nothing_debug_hooks): Likewise.
11227         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11228         * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
11229         (in_text_section_p, last_text_label, last_cold_label,
11230         switch_text_ranges, switch_cold_ranges): New data items.
11231         (dwarf2out_note_section_used): Remove.
11232         (dwarf2out_begin_prologue): Set fde->ignored_debug and
11233         in_text_section_p.
11234         (mark_ignored_debug_section): New helper function.
11235         (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
11236         mark_ignored_debug_section.
11237         (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
11238         (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
11239         (size_of_aranges): Adjust formula for multi-part text ranges size.
11240         (output_aranges): Output multi-part text ranges.
11241         (dwarf2out_set_ignored_loc): New callback function.
11242         (dwarf2out_finish): Output multi-part text ranges.
11243         (dwarf2out_c_finalize): Clear new data items.
11244         * final.c (final_start_function_1): Call set_ignored_loc callback.
11245         (final_scan_insn_1): Likewise.
11246         * ggc-page.c (gt_ggc_mx): New helper function.
11247         * stringpool.c (gt_pch_nx): Likewise.
11249 2021-05-06  Richard Biener  <rguenther@suse.de>
11251         * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
11252         (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
11253         (TV_TREE_INTO_SSA): New.
11254         * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
11255         (rewrite_blocks): Likewise.
11256         (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
11258 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
11260         * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
11261         abs_replacement, xor_replacement,
11262         cond_removal_in_popcount_clz_ctz_pattern,
11263         replace_phi_edge_with_variable): Change type of phi argument from
11264         gimple * to gphi *.
11266 2021-05-06  Richard Biener  <rguenther@suse.de>
11268         * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
11269         Output an opt-info message.
11270         (do_split_loop_on_cond): Likewise.
11271         (tree_ssa_split_loops): Update SSA form here.
11273 2021-05-06  Richard Biener  <rguenther@suse.de>
11275         * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
11276         return variable removal.
11278 2021-05-06  Marius Hillenbrand  <mhillen@linux.ibm.com>
11280         * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
11281         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
11282         (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
11283         operand.
11284         * config/s390/s390.c (s390_const_operand_ok): Remove unused
11285         values.
11287 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
11289         PR tree-optimization/94589
11290         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
11291         spaceship_replacement.
11292         (cond_only_block_p, spaceship_replacement): New functions.
11294 2021-05-06  Richard Biener  <rguenther@suse.de>
11296         PR ipa/100373
11297         * tree-emutls.c (gen_emutls_addr): Pass in whether we're
11298         dealing with a debug use and only query existing addresses
11299         if so.
11300         (lower_emutls_1): Avoid splitting out addresses for debug
11301         stmts, reset the debug stmt when we fail to find existing
11302         lowered addresses.
11303         (lower_emutls_phi_arg): Set wi.stmt.
11305 2021-05-06  Christoph Muellner  <cmuellner@gcc.gnu.org>
11307         PR target/100266
11308         * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
11309         * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
11310         (stack_protect_test): Use cbranch helper.
11312 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
11314         PR target/100402
11315         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
11316         always return the establisher frame for __builtin_frame_address (0).
11318 2021-05-05  Ivan Sorokin  <vanyacpp@gmail.com>
11320         PR target/91400
11321         * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
11322         (ix86_cpu_model_var): Likewise.
11323         (ix86_cpu_features2_type_node): Likewise.
11324         (ix86_cpu_features2_var): Likewise.
11325         (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
11326         their types.
11328 2021-05-05  Martin Sebor  <msebor@redhat.com>
11330         * passes.def (pass_warn_printf): Run after SSA.
11332 2021-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11334         * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
11335         * config/arm/predicates.md (minus_one_operand): New predicate.
11337 2021-05-05  Jeff Law  <jlaw@tachyum.com>
11339         * config/avr/avr.md: Remove references to CC_STATUS_INIT.
11341 2021-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
11343         PR rtl-optimization/100263
11344         * postreload.c (move2add_valid_value_p): Ensure register can
11345         change mode.
11347 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
11349         PR rtl-optimization/100411
11350         * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
11351         and beginning of function markers.
11353 2021-05-05  Jeff Law  <jlaw@tachyum.com>
11355         * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
11356         * config/cr16/cr16.c (notice_update_cc): Remove.
11357         * config/cr16/cr16-protos.h (notice_update_cc): Remove.
11359 2021-05-05  Uroš Bizjak  <ubizjak@gmail.com>
11361         PR target/98218
11362         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
11363         Handle V8QI, V4HI and V2SI modes.
11364         * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
11365         (ix86_build_signbit_mask): Ditto.
11366         * config/i386/mmx.md (MMXMODE14): New mode iterator.
11367         (<smaxmin:code><MMXMODE14:mode>3): New expander.
11368         (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
11369         (<umaxmin:code><MMXMODE24:mode>3): New expander.
11370         (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
11371         (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
11372         (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
11373         (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
11374         (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
11375         (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
11377 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
11379         * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
11380         not expand the VALUE_EXPR of variables put in the non-local frame.
11381         * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
11382         to be ignored for debug info, ensure its variable offsets are not.
11384 2021-05-05  Richard Biener  <rguenther@suse.de>
11386         PR tree-optimization/79333
11387         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
11388         Fold stmt following SSA edges.
11390 2021-05-05  Richard Biener  <rguenther@suse.de>
11392         PR middle-end/100394
11393         * calls.c (expand_call): Preserve possibly throwing calls.
11394         * cfgexpand.c (expand_call_stmt): When a call can throw signal
11395         RTL expansion there are side-effects.
11396         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
11397         mark all possibly throwing stmts necessary unless we can elide
11398         dead EH.
11399         * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
11400         -fdelete-dead-exceptions.
11401         * tree.h (DECL_PURE_P): Add note about exceptions.
11403 2021-05-05  Alexandre Oliva  <oliva@adacore.com>
11405         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
11406         unconditional.
11408 2021-05-04  David Edelsohn  <dje.gcc@gmail.com>
11410         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
11411         get_fnname_from_decl for name of thunk.
11412         * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
11413         and ASM_OUTPUT_LABEL.
11414         (rs6000_xcoff_declare_function_name): Use assemble_name and
11415         ASM_OUTPUT_LABEL.
11416         (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
11417         (rs6000_xcoff_encode_section_info): Don't add mapping class
11418         for aliases.  Always add [DS] mapping class to primary
11419         FUNCTION_DECL.
11420         (rs6000_asm_weaken_decl): Don't explicitly add [DS].
11422 2021-05-04  Martin Sebor  <msebor@redhat.com>
11424         PR middle-end/100307
11425         * builtins.c (compute_objsize_r): Clear base0 for pointers.
11427 2021-05-04  Jeff Law  <jlaw@tachyum.com>
11429         * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
11431 2021-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
11433         * caller-save.c: Remove CC0.
11434         * cfgcleanup.c: Remove CC0.
11435         * cfgrtl.c: Remove CC0.
11436         * combine.c: Remove CC0.
11437         * compare-elim.c: Remove CC0.
11438         * conditions.h: Remove CC0.
11439         * config/h8300/h8300.h: Remove CC0.
11440         * config/h8300/h8300-protos.h: Remove CC0.
11441         * config/h8300/peepholes.md: Remove CC0.
11442         * config/i386/x86-tune-sched.c: Remove CC0.
11443         * config/m68k/m68k.c: Remove CC0.
11444         * config/rl78/rl78.c: Remove CC0.
11445         * config/sparc/sparc.c: Remove CC0.
11446         * config/xtensa/xtensa.c: Remove CC0.
11447         (gen_conditional_move):  Use pc_rtx instead of cc0_rtx in a piece of
11448         RTL where that is used as a placeholder only.
11449         * cprop.c: Remove CC0.
11450         * cse.c: Remove CC0.
11451         * cselib.c: Remove CC0.
11452         * df-problems.c: Remove CC0.
11453         * df-scan.c: Remove CC0.
11454         * doc/md.texi: Remove CC0.  Adjust an example.
11455         * doc/rtl.texi: Remove CC0.  Adjust an example.
11456         * doc/tm.texi: Regenerate.
11457         * doc/tm.texi.in: Remove CC0.
11458         * emit-rtl.c: Remove CC0.
11459         * final.c: Remove CC0.
11460         * fwprop.c: Remove CC0.
11461         * gcse-common.c: Remove CC0.
11462         * gcse.c: Remove CC0.
11463         * genattrtab.c: Remove CC0.
11464         * genconfig.c: Remove CC0.
11465         * genemit.c: Remove CC0.
11466         * genextract.c: Remove CC0.
11467         * gengenrtl.c: Remove CC0.
11468         * genrecog.c: Remove CC0.
11469         * haifa-sched.c: Remove CC0.
11470         * ifcvt.c: Remove CC0.
11471         * ira-costs.c: Remove CC0.
11472         * ira.c: Remove CC0.
11473         * jump.c: Remove CC0.
11474         * loop-invariant.c: Remove CC0.
11475         * lra-constraints.c: Remove CC0.
11476         * lra-eliminations.c: Remove CC0.
11477         * optabs.c: Remove CC0.
11478         * postreload-gcse.c: Remove CC0.
11479         * postreload.c: Remove CC0.
11480         * print-rtl.c: Remove CC0.
11481         * read-rtl-function.c: Remove CC0.
11482         * reg-notes.def: Remove CC0.
11483         * reg-stack.c: Remove CC0.
11484         * reginfo.c: Remove CC0.
11485         * regrename.c: Remove CC0.
11486         * reload.c: Remove CC0.
11487         * reload1.c: Remove CC0.
11488         * reorg.c: Remove CC0.
11489         * resource.c: Remove CC0.
11490         * rtl.c: Remove CC0.
11491         * rtl.def: Remove CC0.
11492         * rtl.h: Remove CC0.
11493         * rtlanal.c: Remove CC0.
11494         * sched-deps.c: Remove CC0.
11495         * sched-rgn.c: Remove CC0.
11496         * shrink-wrap.c: Remove CC0.
11497         * simplify-rtx.c: Remove CC0.
11498         * system.h: Remove CC0.  Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
11499         CC_STATUS_MDEP, and CC_STATUS.
11500         * target.def: Remove CC0.
11501         * valtrack.c: Remove CC0.
11502         * var-tracking.c: Remove CC0.
11504 2021-05-04  Richard Biener  <rguenther@suse.de>
11506         PR tree-optimization/100414
11507         * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
11508         info here.
11509         (tree_ssa_phiopt_worker): But unconditionally here.
11511 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
11513         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
11514         && and || with floating-point and complex arguments.
11516 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
11518         * tree-inline.c (insert_debug_decl_map): Delete.
11519         (copy_debug_stmt): Minor tweak.
11520         (setup_one_parameter): Do not use a variable if the value is either
11521         a read-only DECL or a non-addressable local variable in the caller.
11522         In this case, insert the debug-only variable in the map manually.
11523         (expand_call_inline): Do not generate a CLOBBER for these values.
11524         * tree-inline.h (debug_map): Minor tweak.
11526 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
11528         * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
11529         * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
11531 2021-05-04  Richard Biener  <rguenther@suse.de>
11533         PR tree-optimization/100329
11534         * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
11535         asm goto defs.
11536         (insert_stmt_after): Assert we're not running into asm goto.
11538 2021-05-04  Richard Biener  <rguenther@suse.de>
11540         PR tree-optimization/100398
11541         * tree-ssa-dse.c (pass_dse::execute): Preserve control
11542         altering stmts.
11544 2021-05-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11546         * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
11548 2021-05-04  Alexandre Oliva  <oliva@adacore.com>
11550         * builtins.c (try_store_by_multiple_pieces): New.
11551         (expand_builtin_memset_args): Use it.  If target_char_cast
11552         fails, proceed as for non-constant val.  Pass len's ctz to...
11553         * expr.c (clear_storage_hints): ... this.  Try store by
11554         multiple pieces after setmem.
11555         (clear_storage): Adjust.
11556         * expr.h (clear_storage_hints): Likewise.
11557         (try_store_by_multiple_pieces): Declare.
11558         * passes.def: Replace the last copy_prop with ccp.
11560 2021-05-03  Tom de Vries  <tdevries@suse.de>
11562         PR target/100321
11563         * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
11564         reduction.
11566 2021-05-03  Richard Biener  <rguenther@suse.de>
11568         * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
11570 2021-05-03  Richard Biener  <rguenther@suse.de>
11572         * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
11573         (dse_dom_walker): Remove.
11574         (dse_dom_walker::dse_optimize_stmt): Rename...
11575         (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
11576         (dse_dom_walker::before_dom_children): Inline ...
11577         (pass_dse::execute): ... here.  Perform a reverse program
11578         order walk.
11580 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
11582         PR bootstrap/99703
11583         * configure: Regenerated.
11585 2021-05-03  Ilya Leoshkevich  <iii@linux.ibm.com>
11587         PR target/100217
11588         * config/s390/s390.c (s390_hard_fp_reg_p): New function.
11589         (s390_md_asm_adjust): Handle hard registers.
11591 2021-05-03  Jakub Jelinek  <jakub@redhat.com>
11593         PR tree-optimization/100382
11594         * tree-ssa-dse.c: Include tree-eh.h.
11595         (dse_dom_walker::before_dom_children): Don't remove stmts if
11596         stmt_unremovable_because_of_non_call_eh_p is true.
11598 2021-05-02  David Edelsohn  <dje.gcc@gmail.com>
11600         * varasm.c (compute_reloc_for_var): Split out from...
11601         (get_variable_section): Use it.
11602         * output.h (compute_reloc_for_var): Declare.
11603         * config/rs6000/rs6000-protos.h
11604         (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
11605         unsigned int.
11606         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
11607         Don't append storage mapping class to symbol.
11608         (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
11609         Don't convert TLS BSS to common.
11610         (rs6000_xcoff_unique_section): Don't fall back to select_secton.
11611         (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
11612         bss_initializer.
11613         (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
11614         mapping class.
11615         (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
11616         If align is 0 from TLS class, use the same rules as varasm.c
11617         If not common, switch to BSS section manually.
11618         If common, emit appropriate comm or lcomm directive.
11619         (rs6000_xcoff_encode_section_info): Add logic to append all
11620         storage mapping classes.
11621         (rs6000_asm_weaken_decl): Adjust for qualname symbols.
11622         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
11623         rs6000_xcoff_asm_output_aligned_decl_common.
11624         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
11625         rs6000_xcoff_asm_output_aligned_decl_common.
11626         (ASM_OUTPUT_TLS_COMMON): Use
11627         rs6000_xcoff_asm_output_aligned_decl_common.
11629 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
11631         PR target/100375
11632         * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
11633         as first argument of pseudo_node_t constructors.
11635 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
11637         PR target/100336
11638         * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
11640 2021-05-01  Aldy Hernandez  <aldyh@redhat.com>
11642         * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
11643         (gt_pch_nx (int_range<1> *&)): New.
11644         (gt_ggc_mx (int_range<1> *&)): New.
11645         * value-range.h (class irange): Add GTY support for
11646         the base class.
11648 2021-05-01  Geng Qi  <gengqi@linux.alibaba.com>
11650         * doc/options.texi (Negative): Change either or to both and.
11652 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
11654         * config/aarch64/aarch64-simd-builtins.def: Add
11655         float_ml[as][q]_laneq builtin generator macros.
11656         * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
11657         (aarch64_float_mla_laneq<mode>): Define.
11658         (aarch64_float_mls_laneq<mode>): Define.
11659         * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
11660         instead of GCC vector extensions.
11661         (vmlaq_laneq_f32): Likewise.
11662         (vmls_laneq_f32): Likewise.
11663         (vmlsq_laneq_f32): Likewise.
11665 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
11667         * config/aarch64/aarch64-simd-builtins.def: Add
11668         float_ml[as]_lane builtin generator macros.
11669         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
11670         Rename to...
11671         (mul_lane<mode>3): This, and re-order arguments.
11672         (aarch64_float_mla_lane<mode>): Define.
11673         (aarch64_float_mls_lane<mode>): Define.
11674         * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
11675         instead of GCC vector extensions.
11676         (vmlaq_lane_f32): Likewise.
11677         (vmls_lane_f32): Likewise.
11678         (vmlsq_lane_f32): Likewise.
11680 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
11682         * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
11683         builtin generator macros.
11684         * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
11685         Define.
11686         (aarch64_float_mls<mode>): Define.
11687         * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
11688         instead of relying on GCC vector extensions.
11689         (vmla_f64): Likewise.
11690         (vmlaq_f32): Likewise.
11691         (vmlaq_f64): Likewise.
11692         (vmls_f32): Likewise.
11693         (vmls_f64): Likewise.
11694         (vmlsq_f32): Likewise.
11695         (vmlsq_f64): Likewise.
11696         * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
11698 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
11700         * config/aarch64/aarch64-simd-builtins.def: Add
11701         float_ml[as]_n_builtin generator macros.
11702         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
11703         Rename to...
11704         (mul_n<mode>3): This, and re-order arguments.
11705         (aarch64_float_mla_n<mode>): Define.
11706         (aarch64_float_mls_n<mode>): Define.
11707         * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
11708         instead of inline asm.
11709         (vmlaq_n_f32): Likewise.
11710         (vmls_n_f32): Likewise.
11711         (vmlsq_n_f32): Likewise.
11713 2021-04-30  Jonathan Wright  <joanthan.wright@arm.com>
11715         * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
11716         builtin generator macros.
11717         * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
11718         (aarch64_pmull_hiv16qi_insn): Define.
11719         (aarch64_pmull_hiv16qi): Define.
11720         * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
11721         instead of inline asm.
11722         (vmull_p8): Likewise.
11724 2021-04-30  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
11726         * config/avr/avr.md: Adjust peepholes to match and
11727         generate parallels with clobber of REG_CC.
11728         (mov<mode>_insn): Rename to mov<mode>_insn_split.
11729         (*mov<mode>_insn): Rename to mov<mode>_insn.
11731 2021-04-30  David Edelsohn  <dje.gcc@gmail.com>
11733         * varasm.c (use_blocks_for_decl_p): Don't use section anchors
11734         for VAR_DECLs if -fdata-sections enabled.
11736 2021-04-30  Michael Meissner  <meissner@linux.ibm.com>
11738         PR bootstrap/100327
11739         * config/rs6000/rs6000.c
11740         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
11741         (rs6000_libgcc_floating_mode_supported_p): New target hook.
11743 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
11745         * tree-ssa-threadbackward.c (class thread_jumps): Split out code
11746         from here...
11747         (class back_threader_registry): ...to here...
11748         (class back_threader_profitability): ...and here...
11749         (thread_jumps::thread_through_all_blocks): Remove argument.
11750         (back_threader_registry::back_threader_registry): New.
11751         (back_threader_registry::~back_threader_registry): New.
11752         (back_threader_registry::thread_through_all_blocks): New.
11753         (thread_jumps::profitable_jump_thread_path): Move from here...
11754         (back_threader_profitability::profitable_path_p): ...to here.
11755         (thread_jumps::find_taken_edge): New.
11756         (thread_jumps::convert_and_register_current_path): Move...
11757         (back_threader_registry::register_path): ...to here.
11758         (thread_jumps::register_jump_thread_path_if_profitable): Move...
11759         (thread_jumps::maybe_register_path): ...to here.
11760         (thread_jumps::handle_phi): Call find_taken_edge and
11761         maybe_register_path.
11762         (thread_jumps::handle_assignment): Same.
11763         (thread_jumps::fsm_find_control_statement_thread_paths): Remove
11764         tree argument to handle_phi and handle_assignment.
11765         (thread_jumps::find_jump_threads_backwards): Set m_name.  Remove
11766         set of m_speed_p and m_max_threaded_paths.
11767         (pass_thread_jumps::execute): Remove second argument from
11768         find_jump_threads_backwards.
11769         (pass_early_thread_jumps::execute): Same.
11771 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
11773         * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
11774         (class dom_opt_dom_walker): Initialize some class variables.
11775         (pass_dominator::execute): Pass evrp_range_analyzer and
11776         dom_jump_threader_simplifier to dom_opt_dom_walker.
11777         Adjust for some functions moving into classes.
11778         (simplify_stmt_for_jump_threading): Adjust and move to...
11779         (jump_threader_simplifier::simplify): ...here.
11780         (dom_opt_dom_walker::before_dom_children): Adjust for
11781         m_evrp_range_analyzer.
11782         (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
11783         (test_for_singularity): Place in dom_opt_dom_walker class.
11784         (dom_opt_dom_walker::optimize_stmt): The argument
11785         evrp_range_analyzer is now a class field.
11786         * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
11787         (thread_jumps::thread_through_all_blocks): New.
11788         (thread_jumps::convert_and_register_current_path): Use m_registry.
11789         (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
11790         being in the threader class.
11791         (pass_early_thread_jumps::execute): Same.
11792         * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
11793         (jump_threader::jump_threader): ...here.
11794         (threadedge_finalize_values): Move...
11795         (jump_threader::~jump_threader): ...here.
11796         (jump_threader::remove_jump_threads_including): New.
11797         (jump_threader::thread_through_all_blocks): New.
11798         (record_temporary_equivalences_from_phis): Move...
11799         (jump_threader::record_temporary_equivalences_from_phis): ...here.
11800         (record_temporary_equivalences_from_stmts_at_dest): Move...
11801         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
11802         Here...
11803         (simplify_control_stmt_condition_1): Move to jump_threader class.
11804         (simplify_control_stmt_condition): Move...
11805         (jump_threader::simplify_control_stmt_condition): ...here.
11806         (thread_around_empty_blocks): Move...
11807         (jump_threader::thread_around_empty_blocks): ...here.
11808         (thread_through_normal_block): Move...
11809         (jump_threader::thread_through_normal_block): ...here.
11810         (thread_across_edge): Move...
11811         (jump_threader::thread_across_edge): ...here.
11812         (thread_outgoing_edges): Move...
11813         (jump_threader::thread_outgoing_edges): ...here.
11814         * tree-ssa-threadedge.h: Move externally facing functings...
11815         (class jump_threader): ...here...
11816         (class jump_threader_simplifier): ...and here.
11817         * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
11818         (jump_thread_path_allocator::jump_thread_path_allocator): New.
11819         (jump_thread_path_allocator::~jump_thread_path_allocator): New.
11820         (jump_thread_path_allocator::allocate_thread_edge): New.
11821         (jump_thread_path_allocator::allocate_thread_path): New.
11822         (jump_thread_path_registry::jump_thread_path_registry): New.
11823         (jump_thread_path_registry::~jump_thread_path_registry): New.
11824         (jump_thread_path_registry::allocate_thread_edge): New.
11825         (jump_thread_path_registry::allocate_thread_path): New.
11826         (dump_jump_thread_path): Make extern.
11827         (debug (const vec<jump_thread_edge *> &path)): New.
11828         (struct removed_edges): Move to tree-ssa-threadupdate.h.
11829         (struct thread_stats_d): Remove.
11830         (remove_ctrl_stmt_and_useless_edges): Make static.
11831         (lookup_redirection_data): Move...
11832         (jump_thread_path_registry::lookup_redirection_data): ...here.
11833         (ssa_redirect_edges): Make static.
11834         (thread_block_1): Move...
11835         (jump_thread_path_registry::thread_block_1): ...here.
11836         (thread_block): Move...
11837         (jump_thread_path_registry::thread_block): ...here.
11838         (thread_through_loop_header):  Move...
11839         (jump_thread_path_registry::thread_through_loop_header): ...here.
11840         (mark_threaded_blocks): Move...
11841         (jump_thread_path_registry::mark_threaded_blocks): ...here.
11842         (debug_path): Move...
11843         (jump_thread_path_registry::debug_path): ...here.
11844         (debug_all_paths): Move...
11845         (jump_thread_path_registry::dump): ..here.
11846         (rewire_first_differing_edge): Move...
11847         (jump_thread_path_registry::rewire_first_differing_edge): ...here.
11848         (adjust_paths_after_duplication): Move...
11849         (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
11850         (duplicate_thread_path): Move...
11851         (jump_thread_path_registry::duplicate_thread_path): ..here.
11852         (remove_jump_threads_including): Move...
11853         (jump_thread_path_registry::remove_jump_threads_including): ...here.
11854         (thread_through_all_blocks): Move to...
11855         (jump_thread_path_registry::thread_through_all_blocks): ...here.
11856         (delete_jump_thread_path): Remove.
11857         (register_jump_thread): Move...
11858         (jump_thread_path_registry::register_jump_thread): ...here.
11859         * tree-ssa-threadupdate.h: Move externally facing functions...
11860         (class jump_thread_path_allocator): ...here...
11861         (class jump_thread_path_registry): ...and here.
11862         (thread_through_all_blocks): Remove.
11863         (struct removed_edges): New.
11864         (register_jump_thread): Remove.
11865         (remove_jump_threads_including): Remove.
11866         (delete_jump_thread_path): Remove.
11867         (remove_ctrl_stmt_and_useless_edges): Remove.
11868         (free_dom_edge_info): New prototype.
11869         * tree-vrp.c: Remove x_vr_values hack.
11870         (class vrp_jump_threader_simplifier): New.
11871         (vrp_jump_threader_simplifier::simplify): New.
11872         (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
11873         Remove m_dummy_cond.
11874         Instantiate m_simplifier and m_threader.
11875         (vrp_jump_threader::thread_through_all_blocks): New.
11876         (vrp_jump_threader::simplify_stmt): Remove.
11877         (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
11878         Remove x_vr_values hack.
11879         (execute_vrp): Adjust for thread_through_all_blocks being in a
11880         class.
11882 2021-04-30  Christophe Lyon  <christophe.lyon@linaro.org>
11884         * genflags.c (gen_insn): Print failed expansion string.
11886 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
11888         * expr.c (alignment_for_piecewise_move): Call mode_for_size
11889         without limit to MAX_FIXED_MODE_SIZE.
11891 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
11893         PR middle-end/90773
11894         * builtins.c (builtin_memset_gen_str): Don't use return from
11895         simplify_gen_subreg.
11897 2021-04-30  Uroš Bizjak  <ubizjak@gmail.com>
11899         PR target/98060
11900         * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
11901         (*addsi3_carry_zext_0r): Ditto.
11902         (*sub<mode>3_carry_0): Ditto.
11903         (*subsi3_carry_zext_0r): Ditto.
11904         * config/i386/predicates.md (ix86_carry_flag_unset_operator):
11905         New predicate.
11906         * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
11907         Also consider ix86_carry_flag_unset_operator to calculate
11908         the cost of adc/sbb insn.
11910 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
11912         PR rtl-optimization/100225
11913         PR rtl-optimization/84878
11914         * modulo-sched.c (sms_schedule): Use note_stores to skip loops
11915         where we have an instruction which touches (writes) any hard
11916         register from df->regular_block_artificial_uses set.
11917         Allow not-single-set instruction only right before basic block
11918         tail.
11920 2021-04-30  Geng Qi  <gengqi@linux.alibaba.com>
11922         * config/riscv/riscv.opt (march=,mabi=): Negative itself.
11924 2021-04-30  LevyHsu  <admin@levyhsu.com>
11926         * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
11927         * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
11928         * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
11929         (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
11931 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
11933         * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
11935 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
11937         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
11938         (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this.  Enclose in do/while(0).
11939         * config/i386/i386.c: Adjust.
11940         * config/i386/i386.md: Adjust.
11941         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
11942         * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11943         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11944         * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11945         * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11946         * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11947         * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11948         * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11949         * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11950         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11951         (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
11953 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
11955         * config/i386/i386-expand.c (ix86_expand_int_compare):
11956         Swap operands of GTU and LEU comparison to emit carry flag comparison.
11957         * config/i386/i386.md (*add<mode>3_carry_0): Change insn
11958         predicate to allow more combine opportunities with memory operands.
11959         (*sub<mode>3_carry_0): Ditto.
11961 2021-04-29  Richard Sandiford  <richard.sandiford@arm.com>
11963         PR rtl-optimization/100303
11964         * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
11965         boolean that indicates whether the use will only be used in
11966         debug instructions.  Treat it in the same way that existing
11967         cross-EBB debug references would be handled if so.
11968         (function_info::make_uses_available): Likewise.
11969         * rtl-ssa/functions.h (function_info::make_uses_available): Update
11970         prototype accordingly.
11971         (function_info::make_uses_available): Likewise.
11972         * fwprop.c (try_fwprop_subst): Update call accordingly.
11974 2021-04-29  Jeff Law  <jlaw@tachyum.com>
11976         * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
11977         of RTX_CODE guard.
11979 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
11980             Richard Biener  <rguenther@suse.de>
11982         PR target/100312
11983         * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
11984         (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
11985         (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
11986         (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
11987         (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
11988         to PURE_ARGS category.
11989         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
11990         Handle PURE_ARGS category.
11991         * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
11993 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
11995         * configure.ac: Check for the presence of sys/locking.h header and
11996         for whether _LK_LOCK is supported by _locking.
11997         * configure: Regenerate.
11998         * config.in: Likewise.
11999         * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
12000         * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
12001         * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
12003 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
12005         * config/i386/predicates.md (fcmov_comparison_operator):
12006         Do not check for trivial FP comparison operator.
12007         <case GEU, case LTU>: Allow CCGZmode.
12008         <case GTU, case LEU>: Do not allow CCCmode.
12009         (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
12010         (ix86_carry_flag_operator): Match only LTU and UNLT code.
12011         Do not check for trivial FP comparison operator.  Allow CCGZmode.
12013 2021-04-29  Tom de Vries  <tdevries@suse.de>
12015         * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
12016         fd->loop.step by either step or orig_step.
12018 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
12020         * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
12021         (load_got_register): Do the PIC dance here.
12022         (sparc_legitimize_tls_address): Simplify.
12023         (sparc_emit_probe_stack_range): Likewise.
12024         (sparc32_initialize_trampoline): Likewise.
12025         (sparc64_initialize_trampoline): Likewise.
12026         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
12027         (probe_stack_range<P:mode>): Likewise.
12028         (flush<P:mode>): Likewise.
12029         (tgd_hi22<P:mode>): Likewise.
12030         (tgd_lo10<P:mode>): Likewise.
12031         (tgd_add<P:mode>): Likewise.
12032         (tgd_call<P:mode>): Likewise.
12033         (tldm_hi22<P:mode>): Likewise.
12034         (tldm_lo10<P:mode>): Likewise.
12035         (tldm_add<P:mode>): Likewise.
12036         (tldm_call<P:mode>): Likewise.
12037         (tldo_hix22<P:mode>): Likewise.
12038         (tldo_lox10<P:mode>): Likewise.
12039         (tldo_add<P:mode>): Likewise.
12040         (tie_hi22<P:mode>): Likewise.
12041         (tie_lo10<P:mode>): Likewise.
12042         (tie_add<P:mode>): Likewise.
12043         (tle_hix22<P:mode>): Likewise.
12044         (tle_lox10<P:mode>): Likewise.
12045         (stack_protect_setsi): Rename to...
12046         (stack_protect_set32): ...this.
12047         (stack_protect_setdi): Rename to...
12048         (stack_protect_set64): ...this.
12049         (stack_protect_set): Adjust calls to above.
12050         (stack_protect_testsi): Rename to...
12051         (stack_protect_test32): ...this.
12052         (stack_protect_testdi): Rename to...
12053         (stack_protect_test64): ...this.
12054         (stack_protect_test): Adjust calls to above.
12056 2021-04-29  H.J. Lu  <hjl.tools@gmail.com>
12058         PR middle-end/90773
12059         * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
12060         (builtin_strncpy_read_str): Likewise.
12061         (builtin_memset_read_str): Add an argument for the previous RTL
12062         information and generate the new RTL from the previous RTL info.
12063         (builtin_memset_gen_str): Likewise.
12064         * builtins.h (builtin_strncpy_read_str): Update the prototype.
12065         (builtin_memset_read_str): Likewise.
12066         * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
12067         returns true, round up size and alignment to the widest integer
12068         mode for maximum size.
12069         (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
12070         and pass it to m_constfn.
12071         (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
12072         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
12073         initialize m_push.  Initialize m_overlap_op_by_pieces with
12074         targetm.overlap_op_by_pieces_p ().
12075         (op_by_pieces_d::run): Pass the previous RTL information to
12076         pieces_addr::adjust and generate overlapping operations if
12077         m_overlap_op_by_pieces is true.
12078         (PUSHG_P): New.
12079         (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
12080         change.
12081         (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
12082         change.
12083         (can_store_by_pieces): Use by_pieces_constfn on constfun.
12084         (store_by_pieces): Use by_pieces_constfn on constfun.  Updated
12085         for op_by_pieces_d change.
12086         (clear_by_pieces_1): Add a dummy argument.
12087         (clear_by_pieces): Updated for op_by_pieces_d change.
12088         (compare_by_pieces_d::compare_by_pieces_d): Likewise.
12089         (string_cst_read_str): Add a dummy argument.
12090         * expr.h (by_pieces_constfn): Add a dummy argument.
12091         (by_pieces_prev): New.
12092         * target.def (overlap_op_by_pieces_p): New target hook.
12093         * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
12094         * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
12095         * doc/tm.texi: Regenerated.
12097 2021-04-29  Richard Biener  <rguenther@suse.de>
12099         PR tree-optimization/100253
12100         * tree-vect-stmts.c (vectorizable_load): Do not assume
12101         element alignment when DR_MISALIGNMENT is -1.
12102         (vectorizable_store): Likewise.
12104 2021-04-29  Jakub Jelinek  <jakub@redhat.com>
12106         PR target/100302
12107         * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
12108         absu_hwi instead of abs_hwi.
12110 2021-04-29  Richard Biener  <rguenther@suse.de>
12112         PR middle-end/38474
12113         * tree-ssa-structalias.c (add_graph_edge): Avoid direct
12114         forwarding when indirect forwarding through ESCAPED
12115         alread happens.
12117 2021-04-29  Tom de Vries  <tdevries@suse.de>
12119         PR target/100232
12120         * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
12121         (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
12122         (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
12123         (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
12125 2021-04-29  Richard Biener  <rguenther@suse.de>
12127         PR tree-optimization/99912
12128         * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
12129         (dse_dom_walker::todo): Likewise.
12130         (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
12131         caller.
12132         (dse_dom_walker::before_dom_children): Remove trivially
12133         dead SSA defs and schedule CFG cleanup if we removed all
12134         PHIs in a block.
12135         (pass_dse::execute): Get TODO as computed by the DOM walker
12136         and return it.  Wipe dominator info earlier.
12138 2021-04-29  Richard Biener  <rguenther@suse.de>
12140         PR ipa/100308
12141         * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
12142         Track blocks to cleanup EH in new m_need_eh_cleanup.
12143         (ipcp_modif_dom_walker::cleanup_eh): New.
12144         (ipcp_transform_function): Release dominator info before
12145         doing EH cleanup.
12147 2021-04-29  Martin Sebor  <msebor@redhat.com>
12149         PR middle-end/100250
12150         * attribs.c (attr_access::array_as_string): Avoid dereferencing
12151         a pointer when it's null.
12153 2021-04-29  Martin Sebor  <msebor@redhat.com>
12155         * Makefile.in (OBJS): Add ipa-free-lang-data.o.
12156         * ipa-free-lang-data.cc: New file.
12157         * tree.c: Move pass free_lang_data to file above.
12158          (build_array_type_1): Declare extern.
12159         * tree.h (build_array_type_1): Declare.
12161 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
12163         * config/aarch64/aarch64-simd-builtins.def: Modify comment to
12164         make consistent with updated RTL pattern.
12165         * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
12166         Implement using ss_truncate and us_truncate rather than
12167         unspecs.
12168         * config/aarch64/iterators.md: Remove redundant unspecs and
12169         iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
12171 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
12173         * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
12174         attributes consistent with those defined in arm_neon.h.
12176 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
12178         * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
12179         attributes consistent with those defined in arm_neon.h.
12181 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
12183         * config/aarch64/aarch64-simd-builtins.def: Add
12184         float_trunc_rodd builtin generator macros.
12185         * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
12186         Define.
12187         (aarch64_float_trunc_rodd_lo_v2sf): Define.
12188         (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
12189         (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
12190         (aarch64_float_trunc_rodd_hi_v4sf): Define.
12191         * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
12192         instead of inline asm.
12193         (vcvtx_high_f32_f64): Likewise.
12194         (vcvtxd_f32_f64): Likewise.
12195         * config/aarch64/iterators.md: Add FCVTXN unspec.
12197 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
12199         * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
12200         generator macros.
12201         * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
12202         Define.
12203         * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
12204         instead of inline asm.
12205         (vqtbx1_u8): Likewise.
12206         (vqtbx1_p8): Likewise.
12207         (vqtbx1q_s8): Likewise.
12208         (vqtbx1q_u8): Likewise.
12209         (vqtbx1q_p8): Likewise.
12210         (vtbx2_s8): Likewise.
12211         (vtbx2_u8): Likewise.
12212         (vtbx2_p8): Likewise.
12214 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
12216         * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
12217         generator macros.
12218         * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
12219         instead of inline asm.
12220         (vqtbl1_s8): Likewise.
12221         (vqtbl1_u8): Likewise.
12222         (vqtbl1q_p8): Likewise.
12223         (vqtbl1q_s8): Likewise.
12224         (vqtbl1q_u8): Likewise.
12225         (vtbl1_s8): Likewise.
12226         (vtbl1_u8): Likewise.
12227         (vtbl1_p8): Likewise.
12228         (vtbl2_s8): Likewise.
12229         (vtbl2_u8): Likewise.
12230         (vtbl2_p8): Likewise.
12232 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
12234         * config/aarch64/aarch64-simd-builtins.def: Add polynomial
12235         ssri_n buitin generator macro.
12236         * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
12237         instead of inline asm.
12238         (vsri_n_p16): Likewise.
12239         (vsri_n_p64): Likewise.
12240         (vsriq_n_p8): Likewise.
12241         (vsriq_n_p16): Likewise.
12242         (vsriq_n_p64): Likewise.
12244 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
12246         * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
12247         iterator for polynomial ssli_n builtin generator macro.
12248         * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
12249         instead of inline asm.
12250         (vsli_n_p16): Likewise.
12251         (vsliq_n_p8): Likewise.
12252         (vsliq_n_p16): Likewise.
12253         * config/aarch64/iterators.md: Define VALLP mode iterator.
12255 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
12257         * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
12258         iterator to generate [su]adalp RTL builtins.
12259         * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
12260         [su]adalp RTL pattern.
12261         * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
12262         instead of inline asm.
12263         (vpadal_u32): Likewise.
12265 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
12267         * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
12268         builtin generator macros.
12269         * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
12270         Define.
12271         * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
12272         instead of inline asm.
12273         (vpaddl_s16): Likewise.
12274         (vpaddl_s32): Likewise.
12275         (vpaddl_u8): Likewise.
12276         (vpaddl_u16): Likewise.
12277         (vpaddl_u32): Likewise.
12278         (vpaddlq_s8): Likewise.
12279         (vpaddlq_s16): Likewise.
12280         (vpaddlq_s32): Likewise.
12281         (vpaddlq_u8): Likewise.
12282         (vpaddlq_u16): Likewise.
12283         (vpaddlq_u32): Liwewise.
12284         * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
12285         appropriate attributes.
12287 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
12289         * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
12290         for aarch64_addp<mode> builtin macro generator.
12291         * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
12292         aarch64_addp<mode> RTL pattern.
12293         * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
12294         instead of inline asm.
12295         (vpaddq_s16): Likewise.
12296         (vpaddq_s32): Likewise.
12297         (vpaddq_s64): Likewise.
12298         (vpaddq_u8): Likewise.
12299         (vpaddq_u16): Likewise.
12300         (vpaddq_u32): Likewise.
12301         (vpaddq_u64): Likewise.
12303 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
12305         * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
12306         builtin generator macros.
12307         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
12308         Define.
12309         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
12310         instead of inline asm.
12311         (vqdmulh_n_s32): Likewise.
12312         (vqdmulhq_n_s16): Likewise.
12313         (vqdmulhq_n_s32): Likewise.
12314         (vqrdmulh_n_s16): Likewise.
12315         (vqrdmulh_n_s32): Likewise.
12316         (vqrdmulhq_n_s16): Likewise.
12317         (vqrdmulhq_n_s32): Likewise.
12319 2021-04-28  Tobias Burnus  <tobias@codesourcery.com>
12321         * doc/install.texi (--enable-offload-defaulted): Document.
12323 2021-04-28  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
12325         * config/avr/avr-dimode.md: Turn existing patterns into
12326         define_insn_and_split style patterns where the splitter
12327         adds a clobber of the condition code register.  Drop "cc"
12328         attribute.  Add new patterns to match output of
12329         the splitters.
12330         * config/avr/avr-fixed.md: Likewise.
12331         * config/avr/avr.c (cc_reg_rtx): New.
12332         (avr_parallel_insn_from_insns): Adjust insn count
12333         for removal of set of cc0.
12334         (avr_is_casesi_sequence): Likewise.
12335         (avr_casei_sequence_check_operands): Likewise.
12336         (avr_optimize_casesi): Likewise. Also insert
12337         new insns after jump_insn.
12338         (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
12339         for removal of set of cc0.
12340         (avr_init_expanders): Initialize cc_reg_rtx.
12341         (avr_regno_reg_class): Handle REG_CC.
12342         (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
12343         (avr_notice_update_cc): Remove function.
12344         (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
12345         (compare_condition): Adjust for PARALLEL with
12346         REG_CC clobber.
12347         (out_shift_with_cnt): Likewise.
12348         (ashlhi3_out): Likewise.
12349         (ashrhi3_out): Likewise.
12350         (lshrhi3_out): Likewise.
12351         (avr_class_max_nregs): Return single reg for REG_CC.
12352         (avr_compare_pattern): Check for REG_CC instead
12353         of cc0_rtx.
12354         (avr_reorg_remove_redundant_compare): Likewise.
12355         (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
12356         (avr_hard_regno_nregs): Return single reg for REG_CC.
12357         (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
12358         (avr_md_asm_adjust): Clobber REG_CC.
12359         (TARGET_HARD_REGNO_NREGS): Define.
12360         (TARGET_CLASS_MAX_NREGS): Define.
12361         (TARGET_MD_ASM_ADJUST): Define.
12362         * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
12363         for REG_CC.
12364         (enum reg_class): Add CC_REG class.
12365         (NOTICE_UPDATE_CC): Remove.
12366         (CC_OVERFLOW_UNUSABLE): Remove.
12367         (CC_NO_CARRY): Remove.
12368         * config/avr/avr.md: Turn existing patterns into
12369         define_insn_and_split style patterns where the splitter
12370         adds a clobber of the condition code register.  Drop "cc"
12371         attribute.  Add new patterns to match output of
12372         the splitters.
12373         (sez): Remove unused pattern.
12375 2021-04-28  Richard Earnshaw  <rearnsha@arm.com>
12377         PR target/100311
12378         * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
12379         used in HImode.
12381 2021-04-28  Richard Sandiford  <richard.sandiford@arm.com>
12383         PR target/100305
12384         * config/aarch64/constraints.md (Utq): Require the address to
12385         be valid for both the element mode and for V2DImode.
12387 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
12388             Tobias Burnus  <tobias@codesourcery.com>
12390         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
12391         * gcc.c (process_command): New variable.
12392         (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
12393         set it if -foffload is defaulted.
12394         * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
12395         (compile_offload_image): If OFFLOAD_DEFAULTED and
12396         OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
12397         if corresponding mkoffload can't be found.
12398         (compile_images_for_offload_targets): Likewise.  Free and clear
12399         offload_names if no valid offload is found.
12400         * config.in: Regenerate.
12401         * configure: Regenerate.
12403 2021-04-28  Richard Biener  <rguenther@suse.de>
12405         PR tree-optimization/100292
12406         * tree-vect-generic.c (expand_vector_condition): Do not fold
12407         the comparisons.
12409 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
12411         * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
12412         * config/rs6000/aix64.opt (m64): New.
12413         (m32): New.
12415 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
12417         * config/vax/vax.c (print_operand_address, vax_address_cost_1)
12418         (index_term_p): Handle ASHIFT too.
12420 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
12422         * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
12423         (sync_lock_test_and_set<mode>): Adjust accordingly.
12424         (sync_lock_release<mode>): Likewise.
12426 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
12428         * config/vax/vax-protos.h (adjacent_operands_p): Remove
12429         prototype.
12430         * config/vax/vax.c (adjacent_operands_p): Remove.
12432 2021-04-27  Maciej W. Rozycki  <macro@linux-mips.org>
12434         * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
12435         through to the non-conditional execution case if getting the
12436         condition for conditional execution has failed.
12438 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
12440         PR middle-end/100284
12441         * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
12442         * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
12443         than asserting on it.
12445 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
12447         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
12448         with TARGET_AIX_OS.
12450 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
12452         PR target/94177
12453         * calls.c (precompute_register_parameters): Additionally test
12454         targetm.precompute_tls_p to pre-compute argument.
12455         * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
12456         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
12457         * target.def (precompute_tls_p): New.
12458         * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
12459         * doc/tm.texi: Regenerated.
12461 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
12463         PR target/100200
12464         * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
12465         back to HOST_WIDE_INT.
12467 2021-04-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12469         PR target/100106
12470         * simplify-rtx.c (simplify_context::simplify_subreg): Check the
12471         memory alignment for the outer mode.
12473 2021-04-27  H.J. Lu  <hjl.tools@gmail.com>
12475         PR middle-end/90773
12476         * expr.c (op_by_pieces_d::get_usable_mode): New member function.
12477         (op_by_pieces_d::run): Cange a while loop to a do-while loop.
12479 2021-04-27  Alex Coplan  <alex.coplan@arm.com>
12481         PR target/99977
12482         * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
12483         with negative immediates: ensure we expand cbranchsi4_scratch
12484         correctly and ensure we satisfy its constraints.
12485         * config/arm/sync.md
12486         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
12487         attempt to tie two output operands together with constraints;
12488         collapse two alternatives.
12489         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
12490         * config/arm/thumb1.md (cbranchsi4_neg_late): New.
12492 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
12494         PR target/100200
12495         * config/aarch64/predicates.md (aarch64_sub_immediate,
12496         aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
12497         * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
12498         * config/aarch64/aarch64.c (aarch64_print_operand,
12499         aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
12501 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
12503         PR tree-optimization/100239
12504         * tree-vect-generic.c (lower_vec_perm): Don't accept constant
12505         permutations with all indices from the first zero element as vec_shl.
12507 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
12509         PR rtl-optimization/100254
12510         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
12511         last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
12513 2021-04-27  Richard Biener  <rguenther@suse.de>
12515         PR tree-optimization/99912
12516         * passes.def: Add comment about new TODO_remove_unused_locals.
12517         * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
12518         at start.
12520 2021-04-27  Richard Biener  <rguenther@suse.de>
12522         PR tree-optimization/99912
12523         * passes.def (pass_all_optimizations): Add pass_dse before
12524         the first pass_dce, move the first pass_dse before the
12525         pass_dce following pass_pre.
12527 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
12529         PR tree-optimization/95527
12530         * generic-match-head.c: Include tm.h.
12531         * gimple-match-head.c: Include tm.h.
12532         * match.pd (CLZ == INTEGER_CST): Don't use
12533         #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
12534         if clz == CFN_CLZ.  Add missing val declaration.
12535         (CTZ cmp CST): New simplifications.
12537 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
12539         PR tree-optimization/96696
12540         * expr.c (expand_expr_divmod): New function.
12541         (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
12542         divisions.  Formatting fixes.
12543         <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
12544         cheaper.
12546 2021-04-27  Martin Jambor  <mjambor@suse.cz>
12548         PR ipa/99951
12549         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
12550         If removing a call statement LHS SSA name, release it.
12552 2021-04-27  Richard Earnshaw  <rearnsha@arm.com>
12554         PR target/100236
12555         * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
12556         is valid before including it in the mask.
12558 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
12560         PR target/100270
12561         * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
12562         SVE attributes.
12564 2021-04-27  Richard Biener  <rguenther@suse.de>
12566         PR tree-optimization/100051
12567         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
12568         disambiguator based on access size vs. decl size.
12570 2021-04-27  Richard Biener  <rguenther@suse.de>
12572         PR tree-optimization/100278
12573         * tree-ssa-pre.c (compute_avail): Give up when we cannot
12574         adjust TBAA beacuse of mismatching bases.
12576 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
12578         PR target/99405
12579         * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
12580         For any_rotate define_insn_split and following splitters, use
12581         SWI iterator instead of SWI48.
12583 2021-04-27  Richard Biener  <rguenther@suse.de>
12585         PR tree-optimization/99776
12586         * match.pd (bit_field_ref (ctor)): Relax element extract
12587         type compatibility checks.
12589 2021-04-27  Cui,Lili  <lili.cui@intel.com>
12591         * common/config/i386/i386-common.c (processor_names):
12592         Sync processor_names with processor_type.
12593         * config/i386/i386-options.c (processor_cost_table):
12594         Sync processor_cost_table with processor_type.
12596 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
12598         * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
12599         (irange::set): Call irange_set_1bit_anti_range for handling all
12600         1-bit ranges.  Fall through on ~[MIN,MAX].
12602 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
12604         * value-range.cc (irange::legacy_num_pairs): Remove.
12605         (irange::invert): Change gcc_assert to gcc_checking_assert.
12606         * value-range.h (irange::num_pairs): Adjust for a cached
12607         num_pairs().  Also, rename all gcc_assert's to
12608         gcc_checking_assert's.
12610 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
12612         * value-range.cc (irange::operator=): Set m_kind.
12613         (irange::copy_to_legacy): Handle varying and undefined sources
12614         as a legacy copy since they can be easily copied.
12615         (irange::irange_set): Set m_kind.
12616         (irange::irange_set_anti_range): Same.
12617         (irange::set): Rename normalize_min_max to normalize_kind.
12618         (irange::verify_range): Adjust for multi-ranges having the
12619         m_kind field set.
12620         (irange::irange_union): Set m_kind.
12621         (irange::irange_intersect): Same.
12622         (irange::invert): Same.
12623         * value-range.h (irange::kind): Always return m_kind.
12624         (irange::varying_p): Rename to...
12625         (irange::varying_comptaible_p): ...this.
12626         (irange::undefined_p): Only look at m_kind.
12627         (irange::irange): Always set VR_UNDEFINED if applicable.
12628         (irange::set_undefined): Always set VR_UNDEFINED.
12629         (irange::set_varying): Always set m_kind to VR_VARYING.
12630         (irange::normalize_min_max): Rename to...
12631         (irange::normalize_kind): ...this.
12633 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
12635         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
12636         Adjust for constant_p including varying_p.
12637         * tree-vrp.c (vrp_prop::finalize): Same.
12638         (determine_value_range): Same.
12639         * vr-values.c (vr_values::range_of_expr): Same.
12640         * value-range.cc (irange::symbolic_p): Do not check varying_p.
12641         (irange::constant_p): Same.
12643 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
12645         * value-range.cc (irange::legacy_lower_bound): Replace
12646           !undefined_p check with num_ranges > 0.
12647         (irange::legacy_upper_bound): Same.
12648         * value-range.h (irange::type): Same.
12649         (irange::lower_bound): Same.
12650         (irange::upper_bound): Same.
12652 2021-04-26  Richard Biener  <rguenther@suse.de>
12654         PR tree-optimization/99956
12655         * gimple-loop-interchange.cc (compute_access_stride):
12656         Try instantiating the access in a shallower loop nest
12657         if instantiating failed.
12658         (compute_access_strides): Pass adjustable loop_nest
12659         to compute_access_stride.
12661 2021-04-26  Christophe Lyon  <christophe.lyon@linaro.org>
12663         * doc/sourcebuild.texi (arm_cmse_hw): Document.
12665 2021-04-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12667         * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
12669 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
12670             Nathan Sidwell  <nathan@codesourcery.com>
12671             Tom de Vries  <vries@codesourcery.com>
12672             Julian Brown  <julian@codesourcery.com>
12673             Kwok Cheung Yeung  <kcy@codesourcery.com>
12675         * omp-offload.c (oacc_validate_dims): Implement
12676         '-Wopenacc-parallelism'.
12677         * doc/invoke.texi (-Wopenacc-parallelism): Document.
12679 2021-04-26  Richard Biener  <rguenther@suse.de>
12681         * tree-cfg.h (gimplify_build1): Remove.
12682         (gimplify_build2): Likewise.
12683         (gimplify_build3): Likewise.
12684         * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
12685         (gimplify_build2): Likewise.
12686         (gimplify_build3): Likewise.
12687         * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
12688         Modernize.
12689         (gimplify_build2): Likewise.
12690         (gimplify_build3): Likewise.
12691         (tree_vec_extract): Use resimplify with following SSA edges.
12692         (expand_vector_parallel): Avoid passing NULL size/bitpos
12693         to tree_vec_extract.
12694         * expr.c (store_constructor): Deal with zero-element CTORs.
12695         * match.pd (bit_field_ref <vector CTOR>): Make sure to
12696         produce vector constants when possible.
12698 2021-04-26  Richard Biener  <rguenther@suse.de>
12700         * tree-complex.c: Include gimple-fold.h.
12701         (expand_complex_addition): Use gimple_build.
12702         (expand_complex_multiplication_components): Likewise.
12703         (expand_complex_multiplication): Likewise.
12704         (expand_complex_div_straight): Likewise.
12705         (expand_complex_div_wide): Likewise.
12706         (expand_complex_division): Likewise.
12707         (expand_complex_conjugate): Likewise.
12708         (expand_complex_comparison): Likewise.
12710 2021-04-26  Richard Biener  <rguenther@suse.de>
12712         * tree-ssa-phiopt.c (two_value_replacement): Remove use
12713         of legacy gimplify_buildN API.
12715 2021-04-26  Richard Biener  <rguenther@suse.de>
12717         PR tree-optimization/99473
12718         * tree-ssa-phiopt.c (cond_store_replacement): Handle all
12719         stores.
12721 2021-04-26  Richard Biener  <rguenther@suse.de>
12723         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
12724         Use replace_call_with_value.
12726 2021-04-26  Richard Biener  <rguenther@suse.de>
12728         * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
12729         (update_gimple_call): Likewise.
12730         (update_call_from_tree): Likewise.
12731         * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
12732         (valid_gimple_call_p): Likewise.
12733         (move_ssa_defining_stmt_for_defs): Likewise.
12734         (finish_update_gimple_call): Likewise.
12735         (update_gimple_call): Likewise.
12736         (update_call_from_tree): Likewise.
12737         (propagate_tree_value_into_stmt): Use replace_call_with_value.
12738         * gimple-fold.h (update_gimple_call): Declare.
12739         * gimple-fold.c (valid_gimple_rhs_p): Move here from
12740         tree-ssa-propagate.c.
12741         (update_gimple_call): Likewise.
12742         (valid_gimple_call_p): Likewise.
12743         (finish_update_gimple_call): Likewise, and simplify.
12744         (gimplify_and_update_call_from_tree): Implement
12745         update_call_from_tree functionality, avoid excessive
12746         push/pop_gimplify_context.
12747         (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
12748         (gimple_fold_call): Likewise.
12749         * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
12750         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
12751         (pass_fold_builtins::execute): Likewise.
12752         (optimize_stack_restore): Use replace_call_with_value.
12753         * tree-cfg.c (fold_loop_internal_call): Likewise.
12754         * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
12755         only gimplify_and_update_call_from_tree.
12756         * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
12757         (handle_builtin_strchr): Likewise.
12758         * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
12760 2021-04-26  Jakub Jelinek  <jakub@redhat.com>
12762         PR debug/100255
12763         * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
12764         vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
12765         register keywords.
12767 2021-04-25  liuhongt  <hongtao.liu@intel.com>
12769         PR target/98911
12770         * config/i386/i386-builtin.def (BDESC): Change the icode of
12771         the following builtins to CODE_FOR_nothing.
12772         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
12773         IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
12774         IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
12775         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
12776         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
12777         IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
12778         IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
12779         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
12780         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
12781         * config/i386/sse.md (avx2_eq<mode>3): Deleted.
12782         (sse2_eq<mode>3): Ditto.
12783         (sse4_1_eqv2di3): Ditto.
12784         (sse2_gt<mode>3): Rename to ..
12785         (*sse2_gt<mode>3): .. this.
12787 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
12789         Revert:
12790         2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
12792         PR target/100152
12793         * config/darwin.c (darwin_binds_local_p): Assume that any
12794         public symbol might be interposed for PIC code. Update function
12795         header comment to reflect current Darwin capability.
12797 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
12799         PR target/100152
12800         * config/darwin.c (darwin_binds_local_p): Assume that any
12801         public symbol might be interposed for PIC code. Update function
12802         header comment to reflect current Darwin capability.
12804 2021-04-24  Richard Sandiford  <richard.sandiford@arm.com>
12806         * doc/sourcebuild.texi: Document no-opts and any-opts target
12807         selectors.
12809 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
12811         * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
12813 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
12815         * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
12817 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
12819         PR target/100041
12820         * config/i386/i386-options.c (ix86_option_override_internal):
12821         Error out when -m96bit-long-double is used with 64bit targets.
12822         * config/i386/i386.md (*pushxf_rounded): Remove pattern.
12824 2021-04-23  Martin Liska  <mliska@suse.cz>
12826         * lto-wrapper.c: Remove FIXME about usage of
12827         hardware_concurrency. The function is not on par with
12828         what we have now.
12830 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
12832         PR target/100182
12833         * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
12834         Copy operand 3 to operand 4.  Use sse_reg_operand
12835         as operand 3 predicate.
12836         (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
12837         (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
12838         (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
12839         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
12840         Copy operand 1 to operand 0.
12841         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
12842         (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
12843         (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
12845 2021-04-23  Alex Coplan  <alex.coplan@arm.com>
12847         PR rtl-optimization/100230
12848         * early-remat.c (early_remat::sort_candidates): Use delete[]
12849         instead of delete for array allocated with new[].
12851 2021-04-23  Richard Biener  <rguenther@suse.de>
12853         * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
12854         (capture_info::capture_info): Likewise.
12855         (capture_info::walk_match): Likewise.
12856         (expr::gen_transform): Likewise.
12857         (dt_simplify::gen_1): Likewise.
12858         * gimple-match-head.c (maybe_resimplify_conditional_op):
12859         Remove VEC_COND_EXPR special-casing.
12860         (gimple_simplify): Likewise.
12861         * gimple.c (gimple_could_trap_p_1): Adjust.
12862         * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
12863         to participate in PRE.
12865 2021-04-23  Richard Biener  <rguenther@suse.de>
12867         * cfganal.c (connect_infinite_loops_to_exit): First call
12868         add_noreturn_fake_exit_edges.
12869         * ipa-sra.c (process_scan_results): Do not call the now redundant
12870         add_noreturn_fake_exit_edges.
12871         * predict.c (tree_estimate_probability): Likewise.
12872         (rebuild_frequencies): Likewise.
12873         * store-motion.c (one_store_motion_pass): Likewise.
12875 2021-04-23  Richard Biener  <rguenther@suse.de>
12877         PR tree-optimization/100222
12878         * predict.c (pass_profile::execute): Remove redundant call to
12879         mark_irreducible_loops.
12880         (report_predictor_hitrates): Likewise.
12882 2021-04-23  Richard Biener  <rguenther@suse.de>
12884         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
12885         valid_gimple_rhs_p by instead gimplifying to one.
12887 2021-04-23  Richard Biener  <rguenther@suse.de>
12889         PR tree-optimization/99971
12890         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
12891         Always use TBAA for loads.
12893 2021-04-23  liuhongt  <hongtao.liu@intel.com>
12895         PR target/100093
12896         * config/i386/i386-options.c (ix86_option_override_internal):
12897         Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
12898         when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
12899         by target attribute.
12901 2021-04-23  David Edelsohn  <dje.gcc@gmail.com>
12903         * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
12904         DWARF2_DEBUG.
12905         * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
12907 2021-04-22  David Edelsohn  <dje.gcc@gmail.com>
12909         * config.gcc (powerpc-ibm-aix6.*): Remove.
12910         * config/rs6000/aix61.h: Delete.
12912 2021-04-22  Martin Liska  <mliska@suse.cz>
12914         PR testsuite/100159
12915         PR testsuite/100192
12916         * builtins.c (expand_builtin): Fix typos and missing comments.
12917         * dwarf2out.c (gen_subprogram_die): Likewise.
12918         (gen_struct_or_union_type_die): Likewise.
12920 2021-04-22  Uroš Bizjak  <ubizjak@gmail.com>
12922         PR target/100119
12923         * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
12924         Remove the sign with FE_DOWNWARD, where x - x = -0.0.
12926 2021-04-21  Iain Sandoe  <iain@sandoe.co.uk>
12928         * config/i386/darwin.h (TARGET_64BIT): Remove definition
12929         based on TARGET_ISA_64BIT.
12930         (TARGET_64BIT_P): Remove definition based on
12931         TARGET_ISA_64BIT_P().
12933 2021-04-21  Martin Liska  <mliska@suse.cz>
12935         Revert:
12936         2021-04-21  Martin Liska  <mliska@suse.cz>
12938         * lto-wrapper.c (cpuset_popcount): Remove.
12939         (init_num_threads): Remove and use hardware_concurrency.
12941 2021-04-21  Martin Liska  <mliska@suse.cz>
12943         PR jit/98615
12944         * main.c (main): Call toplev::finalize in CHECKING_P mode.
12945         * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
12946         when incremental LTO linking happens.
12948 2021-04-21  Martin Liska  <mliska@suse.cz>
12950         * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
12951         makeserver cannot be detected, then use -flto=N fallback.
12953 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
12955         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
12956         default to yes for aarch64-linux-gnu.
12957         * configure: Regenerate.
12959 2021-04-21  Martin Liska  <mliska@suse.cz>
12961         * lto-wrapper.c (cpuset_popcount): Remove.
12962         (init_num_threads): Remove and use hardware_concurrency.
12964 2021-04-21  Martin Liska  <mliska@suse.cz>
12966         * config/i386/i386.c: Remove superfluous || TARGET_MACHO
12967         which remains to be '(... || 0)' and clang complains about it.
12968         * dwarf2out.c (AT_vms_delta): Declare conditionally.
12969         (add_AT_vms_delta): Likewise.
12970         * tree.c (fld_simplified_type): Use rather more common pattern
12971         for disabling of something (#if 0).
12972         (get_tree_code_name): Likewise.
12973         (verify_type_variant): Likewise.
12975 2021-04-21  Martin Liska  <mliska@suse.cz>
12977         * config/i386/i386-expand.c (decide_alignment): Use newly named
12978         macro TARGET_CPU_P.
12979         * config/i386/i386.c (ix86_decompose_address): Likewise.
12980         (ix86_address_cost): Likewise.
12981         (ix86_lea_outperforms): Likewise.
12982         (ix86_avoid_lea_for_addr): Likewise.
12983         (ix86_add_stmt_cost): Likewise.
12984         * config/i386/i386.h (TARGET_*): Remove.
12985         (TARGET_CPU_P): New macro.
12986         * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
12987         * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
12988         (swap_top_of_ready_list): Likewise.
12989         (ix86_atom_sched_reorder): Likewise.
12990         * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
12991         * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
12993 2021-04-21  Martin Liska  <mliska@suse.cz>
12995         * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
12996         Define.
12997         (SET_TARGET_NO_SAHF): Likewise.
12998         (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
12999         (SET_TARGET_PREFETCH_SSE): Likewise.
13000         (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
13001         (SET_TARGET_NO_TUNE): Likewise.
13002         (TARGET_EXPLICIT_NO_80387_P): Likewise.
13003         (SET_TARGET_NO_80387): Likewise.
13004         (DEF_PTA): New.
13005         * config/i386/i386.h (TARGET_*): Remove.
13006         * opth-gen.awk: Generate new used macros.
13008 2021-04-21  Martin Liska  <mliska@suse.cz>
13010         * config/i386/i386.h (PTA_*): Remove.
13011         (enum pta_flag): New.
13012         (DEF_PTA): Generate PTA_* values from i386-isa.def.
13013         * config/i386/i386-isa.def: New file.
13015 2021-04-21  Alex Coplan  <alex.coplan@arm.com>
13017         PR target/99988
13018         * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
13019         (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
13020         jump table targets.
13022 2021-04-21  H.J. Lu  <hjl.tools@gmail.com>
13024         * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
13025         x86_64-*-* targets.
13026         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
13027         New.
13028         (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
13029         (ix86_handle_option): Handle -mmwait.
13030         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
13031         Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
13032         __builtin_ia32_monitor and __builtin_ia32_mwait.
13033         * config/i386/i386-options.c (isa2_opts): Add -mmwait.
13034         (ix86_valid_target_attribute_inner_p): Likewise.
13035         (ix86_option_override_internal): Enable mwait/monitor
13036         instructions for -msse3.
13037         * config/i386/i386.h (TARGET_MWAIT): New.
13038         (TARGET_MWAIT_P): Likewise.
13039         * config/i386/i386.opt: Add -mmwait.
13040         * config/i386/mwaitintrin.h: New file.
13041         * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
13042         * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
13043         TARGET_MWAIT.
13044         (@sse3_monitor_<mode>): Likewise.
13045         * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
13046         * doc/extend.texi: Document mwait target attribute.
13047         * doc/invoke.texi: Document -mmwait.
13049 2021-04-21  Martin Liska  <mliska@suse.cz>
13051         * config/i386/i386-options.c (DEF_ENUM): Remove it.
13052         * config/i386/i386-opts.h (DEF_ENUM): Likewise.
13053         * config/i386/stringop.def (DEF_ENUM): Likewise.
13055 2021-04-21  Martin Liska  <mliska@suse.cz>
13057         * tree-cfg.c (gimple_verify_flow_info): Use qD instead
13058         of print_generic_expr.
13060 2021-04-21  Jakub Jelinek  <jakub@redhat.com>
13062         PR rtl-optimization/100148
13063         * cprop.c (constprop_register): Use next_nondebug_insn instead of
13064         NEXT_INSN.
13066 2021-04-21  Martin Liska  <mliska@suse.cz>
13068         PR ipa/98815
13069         * cgraphunit.c (cgraph_node::analyze): Remove duplicate
13070         free_dominance_info calls.
13072 2021-04-21  Richard Biener  <rguenther@suse.de>
13074         * gimple-fold.c (maybe_fold_reference): Remove is_lhs
13075         parameter (and assume it to be false).
13076         (fold_gimple_assign): Adjust, remove all callers of
13077         maybe_fold_reference calling it with is_lhs true.
13078         (gimple_fold_call): Likewise.
13079         (fold_stmt_1): Likewise.
13081 2021-04-21  Richard Biener  <rguenther@suse.de>
13083         * fold-const.c (pedantic_non_lvalue_loc): Remove.
13084         (fold_binary_loc): Adjust.
13085         (fold_ternary_loc): Likewise.
13087 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
13089         PR middle-end/100130
13090         * varasm.c (get_block_for_decl): Make sure that any use of the
13091         retain attribute matches the section's retain flag.
13092         (switch_to_section): Check for retain mismatches even when
13093         changing sections, but do not warn if the given decl is the
13094         section's named.decl.
13095         (output_object_block): Pass the first decl in the block (if any)
13096         to switch_to_section.
13098 2021-04-20  H.J. Lu  <hjl.tools@gmail.com>
13100         * config/i386/i386-c.c (ix86_target_macros_internal): Define
13101         __CRC32__ for -mcrc32.
13102         * config/i386/i386-options.c (ix86_option_override_internal):
13103         Enable crc32 instruction for -msse4.2.
13104         * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
13105         check.
13106         (sse4_2_crc32di): Likewise.
13107         * config/i386/ia32intrin.h: Use crc32 target option for CRC32
13108         intrinsics.
13110 2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>
13112         PR target/100108
13113         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
13114         OPTION_MASK_ISEL.
13116 2021-04-20  Martin Liska  <mliska@suse.cz>
13118         * doc/invoke.texi: Fix typo.
13119         * params.opt: Likewise.
13121 2021-04-20  Martin Liska  <mliska@suse.cz>
13123         * doc/invoke.texi: Document new param.
13125 2021-04-19  Andrew MacLeod  <amacleod@redhat.com>
13127         PR tree-optimization/100081
13128         * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
13129         rather than gori_compute_cache.
13130         * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
13131         (range_def_chain::m_logical_depth): New member.
13132         (range_def_chain::range_def_chain): Initialize m_logical_depth.
13133         (range_def_chain::get_def_chain): Don't build defchains through more
13134         than LOGICAL_LIMIT logical expressions.
13135         * params.opt (param_ranger_logical_depth): New.
13137 2021-04-19  Richard Earnshaw  <rearnsha@arm.com>
13139         PR target/100067
13140         * config/arm/arm.c (arm_configure_build_target): Do not strip
13141         extended FPU/SIMD feature bits from the target ISA when -mfpu
13142         is specified (partial revert of r11-8168).
13144 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
13146         * params.opt (-param=openacc-kernels=): Add.
13147         * omp-oacc-kernels-decompose.cc
13148         (pass_omp_oacc_kernels_decompose::gate): Use it.
13149         * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
13150         (--param): ... here, 'openacc-kernels'.
13152 2021-04-19  Martin Liska  <mliska@suse.cz>
13154         PR c/100143
13155         * gengtype.c (finish_root_table): Align function arguments
13156         in between declaration and definition.
13158 2021-04-19  Eric Botcazou  <ebotcazou@adacore.com>
13160         * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
13161         frames larger than the SEH maximum frame size.
13163 2021-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
13165         PR rtl-optimization/99927
13166         * combine.c (distribute_notes) [REG_UNUSED]: If the register already
13167         is dead, just drop it.
13169 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13171         PR d/99914
13172         * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
13173         * doc/tm.texi: Regenerate.
13174         * doc/tm.texi.in (D language and ABI): Add @hook for
13175         TARGET_D_TEMPLATES_ALWAYS_COMDAT.
13177 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13179         * config/darwin-d.c (darwin_d_handle_target_object_format): New
13180         function.
13181         (darwin_d_register_target_info): New function.
13182         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13183         * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
13184         function.
13185         (dragonfly_d_register_target_info): New function.
13186         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13187         * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
13188         function.
13189         (freebsd_d_register_target_info): New function.
13190         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13191         * config/glibc-d.c (glibc_d_handle_target_object_format): New
13192         function.
13193         (glibc_d_register_target_info): New function.
13194         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13195         * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
13196         function.
13197         (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
13198         as handler for objectFormat key.
13199         * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
13200         function.
13201         (winnt_d_register_target_info): New function.
13202         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13203         * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
13204         function.
13205         (netbsd_d_register_target_info): New function.
13206         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13207         * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
13208         function.
13209         (openbsd_d_register_target_info): New function.
13210         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13211         * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
13212         (pa_d_register_target_info): Add pa_d_handle_target_object_format as
13213         handler for objectFormat key.
13214         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
13215         function.
13216         (rs6000_d_register_target_info): Add
13217         rs6000_d_handle_target_object_format as handler for objectFormat key.
13218         * config/sol2-d.c (solaris_d_handle_target_object_format): New
13219         function.
13220         (solaris_d_register_target_info): New function.
13221         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13223 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
13225         PR target/91710
13226         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
13227         abi_break argument from bool * to unsigned *, store there the pre-GCC 9
13228         alignment.
13229         (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
13230         (aarch64_function_arg_regno_p): Likewise.  Only emit -Wpsabi note if
13231         the old and new alignment after applying MIN/MAX to it is different.
13233 2021-04-16  Tamar Christina  <tamar.christina@arm.com>
13235         PR target/100048
13236         * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
13237         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
13238         TRN optab.
13239         * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
13241 2021-04-16  Bill Schmidt  <wschmidt@linux.ibm.com>
13243         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
13244         this section and its subsections.
13246 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
13248         PR target/100075
13249         * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
13250         define_insn patterns.
13252 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
13254         PR rtl-optimization/98689
13255         * reg-notes.def (UNTYPED_CALL): New note.
13256         * combine.c (distribute_notes): Handle it.
13257         * emit-rtl.c (try_split): Likewise.
13258         * rtlanal.c (rtx_properties::try_to_add_insn): Likewise.  Assume
13259         that calls with the note implicitly set all return value registers.
13260         * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
13261         to untyped_calls.
13263 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
13265         PR rtl-optimization/99596
13266         * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
13267         register accesses for const calls.  Assume that pure functions
13268         can only read from global registers.  Ignore cases in which
13269         the stack pointer has been marked global.
13271 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
13273         PR target/99767
13274         * tree-vect-loop.c (vect_transform_loop): Don't remove just
13275         dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
13276         them by their last argument.
13278 2021-04-15  Martin Liska  <mliska@suse.cz>
13280         * doc/invoke.texi: Other params don't use it, remove it.
13282 2021-04-15  Richard Biener  <rguenther@suse.de>
13284         * gimple-builder.h: Add deprecation note.
13286 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
13288         PR c++/98852
13289         * attribs.h (restrict_type_identity_attributes_to): Declare.
13290         * attribs.c (restrict_type_identity_attributes_to): New function.
13292 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
13294         PR c/98852
13295         * attribs.h (affects_type_identity_attributes): Declare.
13296         * attribs.c (remove_attributes_matching): New function.
13297         (affects_type_identity_attributes): Likewise.
13299 2021-04-15  Jakub Jelinek  <jakub@redhat.com>
13301         PR target/100056
13302         * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
13303         Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
13304         ZERO_EXTEND, SIGN_EXTEND or AND.
13306 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
13308         PR rtl-optimization/99929
13309         * rtl.h (same_vector_encodings_p): New function.
13310         * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
13311         * cselib.c (rtx_equal_for_cselib_1): Likewise.
13312         * jump.c (rtx_renumbered_equal_p): Likewise.
13313         * lra-constraints.c (operands_match_p): Likewise.
13314         * reload.c (operands_match_p): Likewise.
13315         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
13317 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
13319         * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
13320         more information about variable-length CONST_VECTORs.
13322 2021-04-14  Vladimir N. Makarov  <vmakarov@redhat.com>
13324         PR rtl-optimization/100066
13325         * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
13326         ordered modes when choosing splitting mode for hard reg.
13328 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
13330         PR target/99246
13331         * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
13332         New function.
13333         (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
13335 2021-04-14  Andreas Krebbel  <krebbel@linux.ibm.com>
13337         * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
13338         for mask operand types.
13339         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
13340         (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
13341         operand.
13342         (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
13343         immediate operand.
13344         * config/s390/s390.c (s390_const_operand_ok): Check the new
13345         operand types and generate a list of valid values.
13347 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
13349         * doc/tm.texi: Regenerate.
13350         * doc/tm.texi.in (D language and ABI): Add @hook for
13351         TARGET_D_REGISTER_OS_TARGET_INFO.
13353 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
13355         * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
13356         function.
13357         (aarch64_d_register_target_info): New function.
13358         * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
13359         Declare.
13360         * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
13361         Define.
13362         * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
13363         (arm_d_register_target_info): New function.
13364         * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
13365         * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13366         * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
13367         (ix86_d_register_target_info): New function.
13368         * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
13369         * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13370         * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
13371         (mips_d_register_target_info): New function.
13372         * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
13373         * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13374         * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
13375         (pa_d_register_target_info): New function.
13376         * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
13377         * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13378         * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
13379         function.
13380         (riscv_d_register_target_info): New function.
13381         * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
13382         * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13383         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
13384         function.
13385         (rs6000_d_register_target_info): New function.
13386         * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
13387         Declare.
13388         * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13389         * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
13390         (s390_d_register_target_info): New function.
13391         * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
13392         * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13393         * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
13394         function.
13395         (sparc_d_register_target_info): New function.
13396         * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
13397         * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
13398         * doc/tm.texi: Regenerate.
13399         * doc/tm.texi.in (D language and ABI): Add @hook for
13400         TARGET_D_REGISTER_CPU_TARGET_INFO.
13402 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
13404         * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
13405         * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
13406         * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
13407         * doc/tm.texi: Regenerate.
13408         * doc/tm.texi.in (D language and ABI): Add @hook for
13409         TARGET_D_HAS_STDCALL_CONVENTION.
13411 2021-04-14  Richard Biener  <rguenther@suse.de>
13413         * tree-cfg.c (verify_gimple_assign_ternary): Verify that
13414         VEC_COND_EXPRs have a gimple_val condition.
13415         * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
13416         can no longer have a GENERIC condition.
13418 2021-04-14  Richard Earnshaw  <rearnsha@arm.com>
13420         PR target/100067
13421         * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
13422         from the isa_delta when -mfpu has been used.
13423         (arm_options_perform_arch_sanity_checks): It's the architecture that
13424         lacks an FPU not the processor.
13426 2021-04-13  Richard Biener  <rguenther@suse.de>
13428         PR tree-optimization/100053
13429         * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
13430         not use optimistic dominance queries for backedges to validate
13431         predicated values.
13432         (dominated_by_p_w_unex): Add parameter to ignore executable
13433         state on backedges.
13434         (rpo_elim::eliminate_avail): Adjust.
13436 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
13438         PR target/100028
13439         * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
13440         *aarch64_bfxilsi_extrdi): New define_insn patterns.
13442 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
13444         PR target/99648
13445         * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
13446         outermode, return NULL if the result doesn't encode back to the
13447         original byte sequence.
13448         (simplify_gen_subreg): Don't create SUBREGs from constants to
13449         MODE_COMPOSITE_P outermode.
13451 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
13453         PR rtl-optimization/99905
13454         * combine.c (expand_compound_operation): If pos + len > modewidth,
13455         perform the right shift by pos in inner_mode and then convert to mode,
13456         instead of trying to simplify a shift of rtx with inner_mode by pos
13457         as if it was a shift in mode.
13459 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
13461         PR debug/99830
13462         * combine.c (simplify_and_const_int_1): Don't optimize varop
13463         away if it has side-effects.
13465 2021-04-12  Martin Liska  <mliska@suse.cz>
13467         * doc/extend.texi: Escape @smallexample content.
13469 2021-04-12  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
13471         * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
13472           alternative in order to load a DFP zero.
13474 2021-04-12  Martin Liska  <mliska@suse.cz>
13476         * doc/extend.texi: Be more precise in documentation
13477         of symver attribute.
13479 2021-04-12  Martin Liska  <mliska@suse.cz>
13481         PR sanitizer/99877
13482         * gimplify.c (gimplify_expr): Right now, we unpoison all
13483         variables before a goto <dest>. We should not do it if we are
13484         in a omp context.
13486 2021-04-12  Cui,Lili  <lili.cui@intel.com>
13488         * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
13489         rocketlake.
13490         * common/config/i386/i386-common.c (processor_names): Add
13491         rocketlake.
13492         (processor_alias_table): Add rocketlake.
13493         * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
13494         INTEL_COREI7_ROCKETLAKE.
13495         * config.gcc: Add -march=rocketlake.
13496         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13497         rocketlake.
13498         * config/i386/i386-options.c (m_ROCKETLAKE)  : Define.
13499         (processor_cost_table): Add rocketlake cost.
13500         * config/i386/i386.h (ix86_size_cost) : Define
13501         TARGET_ROCKETLAKE.
13502         (processor_type) : Add PROCESSOR_ROCKETLAKE.
13503         (PTA_ROCKETLAKE): Ditto.
13504         * doc/extend.texi: Add rocketlake.
13505         * doc/invoke.texi: Add rocketlake.
13507 2021-04-12  Cui,Lili  <lili.cui@intel.com>
13509         * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
13510         * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
13511         * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
13512         * doc/invoke.texi: Change alderlake ISA list.
13514 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
13516         PR middle-end/98088
13517         * omp-expand.c (expand_oacc_collapse_init): Update condition in
13518         a gcc_assert.
13520 2021-04-10  H.J. Lu  <hjl.tools@gmail.com>
13522         PR target/99744
13523         * config/i386/serializeintrin.h (_serialize): Defined as macro.
13525 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
13527         PR lto/99849
13528         * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
13529         just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
13531 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
13533         PR middle-end/99989
13534         * gimple-ssa-warn-alloca.c
13535         (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
13536         0 with integer precision unconditionally.
13538 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
13540         PR rtl-optimization/98601
13541         * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
13542         not just for BLKmode, but also for VOIDmode.  For STRICT_ALIGNMENT
13543         unaligned_mems handle VOIDmode like BLKmode.
13545 2021-04-10  Jan Hubicka  <hubicka@ucw.cz>
13547         PR lto/99857
13548         * tree.c (free_lang_data_in_decl): Do not release body of
13549         declare_variant_alt.
13551 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
13553         * config/aarch64/aarch64.c (aarch64_option_restore): If the
13554         architecture was specified explicitly and the tuning wasn't,
13555         tune for the architecture rather than the configured default CPU.
13557 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
13559         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
13560         as the temporary register.
13562 2021-04-09  Martin Liska  <mliska@suse.cz>
13564         * doc/extend.texi: Move non-target attributes on the top level.
13566 2021-04-09  Martin Liska  <mliska@suse.cz>
13568         * doc/invoke.texi: Document minimum and maximum value of the
13569         argument for both supported compression algorithms.
13571 2021-04-08  David Edelsohn  <dje.gcc@gmail.com>
13573         * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
13574         TLS BSS before TLS data.
13575         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
13577 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
13579         * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
13581 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
13583         * match.pd: Extend vec_cond folds to handle shifts.
13585 2021-04-08  Maciej W. Rozycki  <macro@orcam.me.uk>
13587         * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
13588         peephole.
13590 2021-04-08  Alex Coplan  <alex.coplan@arm.com>
13592         PR target/99647
13593         * config/arm/iterators.md (MVE_vecs): New.
13594         (V_elem): Also handle V2DF.
13595         * config/arm/mve.md (*mve_mov<mode>): Rename to ...
13596         (*mve_vdup<mode>): ... this. Remove second alternative since
13597         vec_duplicate of const_int is not canonical RTL, and we don't
13598         want to match symbol_refs.
13599         (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
13601 2021-04-08  Xionghu Luo  <luoxhu@linux.ibm.com>
13603         * fold-const.c (fold_single_bit_test): Fix typo.
13604         * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
13605         instead.
13607 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
13609         PR tree-optimization/97513
13610         * tree-vect-slp.c (vect_add_slp_permutation): New function,
13611         split out from...
13612         (vectorizable_slp_permutation): ...here.  Detect cases in which
13613         all VEC_PERM_EXPRs are guaranteed to have the same stepped
13614         permute vector and only generate one permute vector for that case.
13615         Extend that case to handle variable-length vectors.
13617 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
13619         PR tree-optimization/99873
13620         * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
13621         (vect_build_slp_instance): Don't split store groups that could
13622         use IFN_STORE_LANES.
13624 2021-04-07  Jakub Jelinek  <jakub@redhat.com>
13626         PR target/99872
13627         * varasm.c (output_constant_pool_contents): Don't strip name encoding
13628         from XSTR (desc->sym, 0) or from label before passing those to
13629         ASM_OUTPUT_DEF.
13631 2021-04-07  Richard Biener  <rguenther@suse.de>
13633         PR tree-optimization/99954
13634         * tree-loop-distribution.c: Include tree-affine.h.
13635         (generate_memcpy_builtin): Try using tree-affine to prove
13636         non-overlap.
13637         (loop_distribution::classify_builtin_ldst): Always classify
13638         as PKIND_MEMMOVE.
13640 2021-04-07  Richard Biener  <rguenther@suse.de>
13642         PR tree-optimization/99947
13643         * tree-vect-loop.c (vectorizable_induction): Pre-allocate
13644         steps vector to avoid pushing elements from the reallocated
13645         vector.
13647 2021-04-07  Richard Biener  <rguenther@suse.de>
13649         * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
13650         * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
13651         printing...
13652         * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
13653         function.
13654         (debug_vn_reference_ops): New.
13656 2021-04-07  Bin Cheng  <bin.cheng@linux.alibaba.com>
13658         PR tree-optimization/98736
13659         * tree-loop-distribution.c
13660         * (loop_distribution::bb_top_order_init):
13661         Compute RPO with programing order preserved by calling function
13662         rev_post_order_and_mark_dfs_back_seme.
13664 2021-04-06  Vladimir N. Makarov  <vmakarov@redhat.com>
13666         PR target/99781
13667         * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
13668         * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
13669         functions.
13670         (process_bb_lives): Don't update biggest mode of hard reg for
13671         implicit in multi-register group.  Use the new functions for
13672         updating dead_set and unused_set by register notes.
13674 2021-04-06  Xianmiao Qu  <xianmiao_qu@c-sky.com>
13676         * config/csky/csky_pipeline_ck802.md : Use insn reservation name
13677         instead of *.
13679 2021-04-06  H.J. Lu  <hjl.tools@gmail.com>
13681         * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
13682         (skylake_memset): Likewise.
13683         (skylake_cost): Change CLEAR_RATIO to 17.
13684         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
13685         Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
13686         m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
13688 2021-04-06  Richard Biener  <rguenther@suse.de>
13690         PR tree-optimization/99880
13691         * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
13692         set vectorized defs of relevant PHIs.
13694 2021-04-06  Richard Biener  <rguenther@suse.de>
13696         PR tree-optimization/99924
13697         * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
13698         nodes w/o scalar stmts as visited.
13700 2021-04-06  Alex Coplan  <alex.coplan@arm.com>
13702         PR target/99748
13703         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
13704         PCS for [su]fix_optab.
13706 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
13708         * config/darwin.c (machopic_legitimize_pic_address): Check
13709         that the current pic register is one of the hard reg set
13710         before setting liveness.
13712 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
13714         * config/darwin.c (machopic_legitimize_pic_address): Fix
13715         whitespace, remove unused code.
13717 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
13719         PR tree-optimization/99882
13720         * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
13721         pointer type.
13723 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
13725         PR rtl-optimization/99863
13726         * dse.c (replace_read): Drop regs_live argument.  Instead of
13727         regs_live, use store_insn->fixed_regs_live if non-NULL,
13728         otherwise punt if insns sequence clobbers or sets any hard
13729         registers.
13731 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
13733         PR testsuite/98125
13734         * targhooks.h (default_print_patchable_function_entry_1): Declare.
13735         * targhooks.c (default_print_patchable_function_entry_1): New function,
13736         copied from default_print_patchable_function_entry with an added flags
13737         argument.
13738         (default_print_patchable_function_entry): Rewritten into a small
13739         wrapper around default_print_patchable_function_entry_1.
13740         * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
13741         Redefine.
13742         (rs6000_print_patchable_function_entry): New function.
13744 2021-04-02  Eric Botcazou  <ebotcazou@adacore.com>
13746         * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
13748 2021-04-01  Jason Merrill  <jason@redhat.com>
13750         PR c++/98481
13751         * common.opt: Document v15 and v16.
13753 2021-04-01  Richard Biener  <rguenther@suse.de>
13755         PR tree-optimization/99863
13756         * gimplify.c (gimplify_init_constructor): Recompute vector
13757         constructor flags.
13759 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
13761         * doc/extend.texi (symver attribute): Fix up syntax errors
13762         in the examples.
13764 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
13766         PR tree-optimization/96573
13767         * gimple-ssa-store-merging.c (init_symbolic_number): Handle
13768         also pointer types.
13770 2021-04-01  Richard Biener  <rguenther@suse.de>
13772         PR tree-optimization/99856
13773         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
13774         precision to vector element precision.
13776 2021-04-01  Martin Jambor  <mjambor@suse.cz>
13778         PR tree-optimization/97009
13779         * tree-sra.c (access_or_its_child_written): New function.
13780         (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
13781         test.
13783 2021-03-31  Jan Hubicka  <hubicka@ucw.cz>
13785         PR ipa/98265
13786         * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
13788 2021-03-31  Pat Haugen  <pthaugen@linux.ibm.com>
13790         PR target/99133
13791         * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
13792         xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
13793         xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
13794         * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
13795         mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
13796         mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
13797         Likewise.
13798         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
13799         * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
13800         (define_attr "prefixed"): Update initializer.
13802 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
13804         PR debug/99490
13805         * dwarf2out.c (debug_ranges_dwo_section): New variable.
13806         (DW_RANGES_IDX_SKELETON): Define.
13807         (struct dw_ranges): Add begin_entry and end_entry members.
13808         (DEBUG_DWO_RNGLISTS_SECTION): Define.
13809         (add_ranges_num): Adjust r initializer for addition of *_entry
13810         members.
13811         (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
13812         set idx to DW_RANGES_IDX_SKELETON.
13813         (use_distinct_base_address_for_range): New function.
13814         (index_rnglists): Don't set r->idx if it is equal to
13815         DW_RANGES_IDX_SKELETON.  Initialize r->begin_entry and
13816         r->end_entry for -gsplit-dwarf if those will be needed by
13817         output_rnglists.
13818         (output_rnglists): Add DWO argument.  If true, switch to
13819         debug_ranges_dwo_section rather than debug_ranges_section.
13820         Adjust l1/l2 label indexes.  Only output the offset table when
13821         dwo is true and don't include in there the skeleton range
13822         entry if present.  For -gsplit-dwarf, skip ranges that belong
13823         to the other rnglists section.  Change return type from void
13824         to bool and return true if there are any range entries for
13825         the other section.  For dwarf_split_debug_info use
13826         DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
13827         entries instead of DW_RLE_start_end, DW_RLE_start_length and
13828         DW_RLE_base_address.  Use use_distinct_base_address_for_range.
13829         (init_sections_and_labels): Initialize debug_ranges_dwo_section
13830         if -gsplit-dwarf and DWARF >= 5.  Adjust ranges_section_label
13831         and range_base_label indexes.
13832         (dwarf2out_finish): Call index_rnglists earlier before finalizing
13833         .debug_addr.  Never emit DW_AT_rnglists_base attribute.  For
13834         -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
13835         with different dwo arguments.
13836         (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
13838 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
13840         PR tree-optimization/98268
13841         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
13842         recompute_tree_invariant_for_addr_expr after successfully
13843         folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
13845 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
13847         PR tree-optimization/99726
13848         * tree-data-ref.c (create_intersect_range_checks_index): Bail
13849         out if there is more than one access function SCEV for the loop
13850         being versioned.
13852 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
13854         PR rtl-optimization/97141
13855         PR rtl-optimization/98726
13856         * emit-rtl.c (valid_for_const_vector_p): Return true for
13857         CONST_POLY_INT_P.
13858         * rtx-vector-builder.h (rtx_vector_builder::step): Return a
13859         poly_wide_int instead of a wide_int.
13860         (rtx_vector_builder::apply_set): Take a poly_wide_int instead
13861         of a wide_int.
13862         * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
13863         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
13864         false for CONST_VECTORs that cannot be forced to memory.
13865         * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
13866         is too complex to force to memory, build it up from individual
13867         elements instead.
13869 2021-03-31  Jan Hubicka  <jh@suse.cz>
13871         PR lto/99447
13872         * cgraph.c (cgraph_node::release_body): Fix overactive check.
13874 2021-03-31  Christophe Lyon  <christophe.lyon@linaro.org>
13876         PR target/99786
13877         * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
13878         for V4HI and V2SI.
13880 2021-03-31  H.J. Lu  <hjl.tools@gmail.com>
13882         * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
13883         For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
13884         to SImode.
13885         (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
13886         "rep movsb/stosb" only for known sizes.
13887         * config/i386/i386-options.c (processor_cost_table): Use Ice
13888         Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
13889         Rapids and Alder Lake.
13890         * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
13891         * config/i386/x86-tune-costs.h (icelake_memcpy): New.
13892         (icelake_memset): Likewise.
13893         (icelake_cost): Likewise.
13894         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
13895         New.
13897 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
13899         PR target/98119
13900         * config/aarch64/aarch64.c
13901         (aarch64_vectorize_preferred_vector_alignment): Query the size
13902         of the provided SVE vector; do not assume that all SVE vectors
13903         have the same size.
13905 2021-03-31  Jan Hubicka  <jh@suse.cz>
13907         PR lto/99447
13908         * cgraph.c (cgraph_node::release_body): Remove all callers and
13909         references.
13910         * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
13911         * cgraphunit.c (cgraph_node::expand): And here.
13913 2021-03-31  Martin Liska  <mliska@suse.cz>
13915         * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
13916         and one negated condition.
13918 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
13919             Richard Sandiford  <richard.sandiford@arm.com>
13921         PR target/99813
13922         * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
13923         constraints on operands[2] and similarly 0 and rk constraints
13924         on operands[1] corresponding to that.
13926 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
13928         PR bootstrap/98860
13929         * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
13930         linker doesn't support DWARF sections new in DWARF5.
13931         * config/i386/i386-options.c (ix86_option_override_internal): Default
13932         to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
13933         targets.
13934         * config.in: Regenerated.
13935         * configure: Regenerated.
13937 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13939         PR target/99820
13940         * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
13941         available issue_info before using it.
13943 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13945         PR target/99822
13946         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
13947         in operand 1.
13949 2021-03-30  Xionghu Luo  <luoxhu@linux.ibm.com>
13951         PR target/99718
13952         * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
13953         (altivec_lvsl_reg_<mode>): ... this.
13954         (altivec_lvsr_reg): Change to ...
13955         (altivec_lvsr_reg_<mode>): ... this.
13956         * config/rs6000/predicates.md (vec_set_index_operand): New.
13957         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13958         Enable 32bit variable vec_insert for all TARGET_VSX.
13959         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
13960         Enable 32bit variable vec_insert for p9 and above.
13961         (rs6000_expand_vector_set_var_p8): Rename to ...
13962         (rs6000_expand_vector_set_var_p7): ... this.
13963         (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
13964         position.
13965         * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
13966         * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
13967         gen_altivec_lvsr_reg_di.
13969 2021-03-30  H.J. Lu  <hjl.tools@gmail.com>
13971         PR target/99744
13972         * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
13973         (__rdtscp): Likewise.
13975 2021-03-30  Tamar Christina  <tamar.christina@arm.com>
13977         PR tree-optimization/99825
13978         * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
13979         Reject non-mult 2 lanes.
13981 2021-03-30  Richard Earnshaw  <rearnsha@arm.com>
13983         PR target/99773
13984         * config/arm/arm.c (arm_file_start): Fix emission of
13985         Tag_ABI_VFP_args attribute.
13987 2021-03-30  Richard Biener  <rguenther@suse.de>
13989         PR tree-optimization/99824
13990         * stor-layout.c (set_min_and_max_values_for_integral_type):
13991         Assert the precision is within the bounds of
13992         WIDE_INT_MAX_PRECISION.
13993         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
13994         the outermost component ref only to lower the access size
13995         and initialize that from the access type.
13997 2021-03-30  Richard Sandiford  <richard.sandiford@arm.com>
13999         PR target/98136
14000         * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
14001         CONST_INTs to aarch64_expand_mov_immediate when called after RA.
14003 2021-03-30  Mihailo Stojanovic  <mihailo.stojanovic@typhoon-hil.com>
14005         * config/aarch64/aarch64.md
14006         (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
14007         attribute to disambiguate between SIMD and FP variants of the
14008         instruction.
14010 2021-03-29  Jan Hubicka  <hubicka@ucw.cz>
14012         * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
14013         (analyze_ssa_name_flags): Fix typo in comment.
14015 2021-03-29  Alex Coplan  <alex.coplan@arm.com>
14017         PR target/99216
14018         * config/aarch64/aarch64-sve-builtins.cc
14019         (function_builder::add_function): Add placeholder_p argument, use
14020         placeholder decls if this is set.
14021         (function_builder::add_unique_function): Instead of conditionally adding
14022         direct overloads, unconditionally add either a direct overload or a
14023         placeholder.
14024         (function_builder::add_overloaded_function): Set placeholder_p if we're
14025         using C++ overloads. Use the obstack for string storage instead
14026         of relying on the tree nodes.
14027         (function_builder::add_overloaded_functions): Don't return early for
14028         m_direct_overloads: we need to add placeholders.
14029         * config/aarch64/aarch64-sve-builtins.h
14030         (function_builder::add_function): Add placeholder_p argument.
14032 2021-03-29  Richard Biener  <rguenther@suse.de>
14034         PR tree-optimization/99807
14035         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
14036         assert below VEC_PERM handling.
14038 2021-03-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14040         PR target/99037
14041         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
14042         aarch64_simd_or_scalar_imm_zero to match zeroes.  Remove pattern
14043         matching const_int 0.
14044         (move_lo_quad_internal_be_<mode>): Likewise.
14045         (move_lo_quad_<mode>): Update for the above.
14046         * config/aarch64/iterators.md (VQ_2E): Delete.
14048 2021-03-29  Jakub Jelinek  <jakub@redhat.com>
14050         PR tree-optimization/99777
14051         * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
14052         types other than scalar integral types.
14054 2021-03-28  David Edelsohn  <dje.gcc@gmail.com>
14056         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
14057         XCOFF TLS reloc decorations.
14059 2021-03-28  Gerald Pfeifer  <gerald@pfeifer.com>
14061         * doc/analyzer.texi (Analyzer Internals): Update link to
14062         "A Memory Model for Static Analysis of C Programs".
14064 2021-03-26  David Edelsohn  <dje.gcc@gmail.com>
14066         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
14067         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
14068         Declare.
14069         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
14070         (rs6000_special_round_type_align): Recursively check innermost first
14071         field.
14073 2021-03-26  Jakub Jelinek  <jakub@redhat.com>
14075         PR debug/99334
14076         * dwarf2out.h (struct dw_fde_node): Add rule18 member.
14077         * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
14078         assignment with drap_reg active, queue reg save for hfp with offset 0
14079         and flush queued reg saves.  When handling a push with rule18,
14080         defer queueing reg save for hfp and just assert the offset is 0.
14081         (scan_trace): Assert that fde->rule18 is false.
14083 2021-03-26  Vladimir Makarov  <vmakarov@redhat.com>
14085         PR target/99766
14086         * ira-costs.c (record_reg_classes): Put case with
14087         CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
14088         * ira.c (ira_setup_alts): Ditto.
14089         * lra-constraints.c (process_alt_operands): Ditto.
14090         * recog.c (asm_operand_ok): Ditto.
14091         * reload.c (find_reloads): Ditto.
14093 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14095         * config/aarch64/aarch64-protos.h
14096         (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
14097         (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
14098         * config/aarch64/aarch64.c (generic_addrcost_table): Update
14099         accordingly, using the same costs as for post_modify.
14100         (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
14101         (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
14102         (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
14103         (a64fx_addrcost_table): Likewise.
14104         (neoversev1_addrcost_table): New.
14105         (neoversev1_tunings): Use neoversev1_addrcost_table.
14106         (aarch64_address_cost): Use the new post_modify costs for CImode
14107         and XImode.
14109 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14111         * config/aarch64/aarch64.opt
14112         (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
14113         * doc/invoke.texi: Document it.
14114         * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
14115         (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
14116         (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
14117         (aarch64_vec_issue_info): New structures.
14118         (cpu_vector_cost): Write comments above the variables rather
14119         than to the side.
14120         (cpu_vector_cost::issue_info): New member variable.
14121         * config/aarch64/aarch64.c: Include gimple-pretty-print.h
14122         and tree-ssa-loop-niter.h.
14123         (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
14124         (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
14125         (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
14126         (thunderx3t110_vector_cost): Initialize issue_info to null.
14127         (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
14128         (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
14129         (neoversev1_vector_cost): Use them.
14130         (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
14131         (aarch64_vector_costs::saw_sve_only_op): New member variable.
14132         (aarch64_vector_costs::num_vector_iterations): Likewise.
14133         (aarch64_vector_costs::scalar_ops): Likewise.
14134         (aarch64_vector_costs::advsimd_ops): Likewise.
14135         (aarch64_vector_costs::sve_ops): Likewise.
14136         (aarch64_vector_costs::seen_loads): Likewise.
14137         (aarch64_simd_vec_costs_for_flags): New function.
14138         (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
14139         Count the number of predicate operations required by SVE WHILE
14140         instructions.
14141         (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
14142         (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
14143         (aarch64_count_ops): Likewise.
14144         (aarch64_add_stmt_cost): Record whether see an SVE operation
14145         that cannot currently be implementing using Advanced SIMD.
14146         Record issue information about the scalar, Advanced SIMD
14147         and (where relevant) SVE versions of a loop.
14148         (aarch64_vec_op_count::dump): New function.
14149         (aarch64_sve_op_count::dump): Likewise.
14150         (aarch64_estimate_min_cycles_per_iter): Likewise.
14151         (aarch64_adjust_body_cost): If issue information is available,
14152         try to compare the issue rates of the various loop implementations
14153         and increase or decrease the vector body cost accordingly.
14155 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14157         * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
14158         Assume a zero cost for induction phis.
14160 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14162         * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
14163         function.
14164         (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
14165         vector comparisons.
14167 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14169         * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
14170         New function.
14171         (aarch64_add_stmt_cost): Call it.
14173 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14175         * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
14176         New tuning parameter.
14177         * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
14178         (aarch64_estimated_sve_vq): New function.
14179         (aarch64_vector_costs::analyzed_vinfo): New member variable.
14180         (aarch64_vector_costs::is_loop): Likewise.
14181         (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
14182         (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
14183         (aarch64_record_potential_advsimd_unrolling): New function.
14184         (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
14185         (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
14186         aarch64_analyze_bb_vinfo on the first use of a costs structure.
14187         Detect whether we're vectorizing a loop for SVE that might be
14188         completely unrolled if it used Advanced SIMD instead.
14189         (aarch64_adjust_body_cost_for_latency): New function.
14190         (aarch64_finish_cost): Call it.
14192 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14194         * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
14195         (aarch64_init_cost): New function.
14196         (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
14197         the default unsigned[3].
14198         (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
14199         (TARGET_VECTORIZE_INIT_COST): Override.
14200         (TARGET_VECTORIZE_FINISH_COST): Likewise.
14201         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
14203 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14205         * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
14206         (neoversev1_sve_vector_cost): New cost structures.
14207         (neoversev1_vector_cost): Likewise.
14208         (neoversev1_tunings): Use them.  Enable use_new_vector_costs.
14210 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14212         * config/aarch64/aarch64-protos.h
14213         (sve_vec_cost::scatter_store_elt_cost): New member variable.
14214         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
14215         accordingly, taking the cost from the cost of a scalar_store.
14216         (a64fx_sve_vector_cost): Likewise.
14217         (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
14219 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14221         * config/aarch64/aarch64-protos.h
14222         (simd_vec_cost::store_elt_extra_cost): New member variable.
14223         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
14224         accordingly, using the vec_to_scalar cost for the new field.
14225         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
14226         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
14227         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
14228         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
14229         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
14230         (thunderx3t110_advsimd_vector_cost): Likewise.
14231         (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
14233 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14235         * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
14236         (simd_vec_cost::ld3_st3_permute_cost): New member variables.
14237         (simd_vec_cost::ld4_st4_permute_cost): Likewise.
14238         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
14239         accordingly, using zero for the new costs.
14240         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
14241         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
14242         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
14243         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
14244         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
14245         (thunderx3t110_advsimd_vector_cost): Likewise.
14246         (aarch64_ld234_st234_vectors): New function.
14247         (aarch64_adjust_stmt_cost): Likewise.
14248         (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
14249         the new vector costs.
14251 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14253         * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
14254         derived class of simd_vec_cost.  Add information about CLAST[AB]
14255         and FADDA instructions.
14256         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
14257         accordingly, using the vec_to_scalar costs for the new fields.
14258         (a64fx_sve_vector_cost): Likewise.
14259         (aarch64_reduc_type): New function.
14260         (aarch64_sve_in_loop_reduction_latency): Likewise.
14261         (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
14262         Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
14263         that occur in the loop body.
14264         (aarch64_add_stmt_cost): Update call accordingly.
14266 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
14268         * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
14269         New tuning flag.
14270         * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
14271         above the fields rather than to the right.
14272         (simd_vec_cost::reduc_i8_cost): New member variable.
14273         (simd_vec_cost::reduc_i16_cost): Likewise.
14274         (simd_vec_cost::reduc_i32_cost): Likewise.
14275         (simd_vec_cost::reduc_i64_cost): Likewise.
14276         (simd_vec_cost::reduc_f16_cost): Likewise.
14277         (simd_vec_cost::reduc_f32_cost): Likewise.
14278         (simd_vec_cost::reduc_f64_cost): Likewise.
14279         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
14280         accordingly, using the vec_to_scalar_cost for the new fields.
14281         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
14282         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
14283         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
14284         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
14285         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
14286         (thunderx3t110_advsimd_vector_cost): Likewise.
14287         (aarch64_use_new_vector_costs_p): New function.
14288         (aarch64_simd_vec_costs): New function, split out from...
14289         (aarch64_builtin_vectorization_cost): ...here.
14290         (aarch64_is_reduction): New function.
14291         (aarch64_detect_vector_stmt_subtype): Likewise.
14292         (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
14293         using the new vector costs.
14295 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
14297         PR ipa/99466
14298         * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
14299         TLS declarations as public.
14301 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
14303         * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
14304         * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
14305         * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
14306         * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
14307         * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
14308         * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
14309         * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
14310         * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
14311         * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
14313 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
14315         PR d/91595
14316         * config.gcc (*-*-cygwin*): Add winnt-d.o
14317         (*-*-mingw*): Likewise.
14318         * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
14319         * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
14320         * config/i386/t-cygming: Add winnt-d.o.
14321         * config/i386/winnt-d.c: New file.
14323 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
14325         * config/freebsd-d.c: Include memmodel.h.
14327 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
14329         PR d/99691
14330         * config.gcc (*-*-openbsd*): Add openbsd-d.o.
14331         * config/t-openbsd: Add openbsd-d.o.
14332         * config/openbsd-d.c: New file.
14334 2021-03-25  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
14336         PR tree-optimization/96974
14337         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
14338         with graceful exit.
14340 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
14342         Revert:
14343         2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
14345         PR target/98209
14346         PR target/99744
14347         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
14348         always_inline in system headers.
14350 2021-03-25  Kewen Lin  <linkw@linux.ibm.com>
14352         * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
14354 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
14356         PR c++/99565
14357         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
14358         * fold-const.c (operand_compare::operand_equal_p): Don't compare
14359         field offsets if OEP_ADDRESS_OF_SAME_FIELD.
14361 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
14363         PR target/98209
14364         PR target/99744
14365         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
14366         always_inline in system headers.
14368 2021-03-25  Richard Biener  <rguenther@suse.de>
14370         PR tree-optimization/99746
14371         * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
14372         the scalar stmt as patterned.  Instead set up required things
14373         manually.
14375 2021-03-25  Xionghu Luo  <luoxhu@linux.ibm.com>
14377         * config/rs6000/rs6000.c (power8_costs): Change l2 cache
14378         from 256 to 512.
14380 2021-03-24  Martin Liska  <mliska@suse.cz>
14382         PR target/99753
14383         * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
14384         error.
14385         * config/i386/i386-options.c (ix86_option_override_internal):
14386         Add run-time assert.
14388 2021-03-24  Martin Jambor  <mjambor@suse.cz>
14390         PR ipa/99122
14391         * ipa-cp.c (initialize_node_lattices): Mark as bottom all
14392         parameters with unknown type.
14393         (ipacp_value_safe_for_type): New function.
14394         (propagate_vals_across_arith_jfunc): Verify that the constant type
14395         can be used for a type of the formal parameter.
14396         (propagate_vals_across_ancestor): Likewise.
14397         (propagate_scalar_across_jump_function): Likewise.  Pass the type
14398         also to propagate_vals_across_ancestor.
14400 2021-03-24  Christophe Lyon  <christophe.lyon@linaro.org>
14402         PR target/99727
14403         * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
14404         constraint.
14405         (movmisalign<mode>_mve_load): Likewise.
14407 2021-03-24  Jakub Jelinek  <jakub@redhat.com>
14409         PR target/99724
14410         * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
14411         movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
14413 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
14415         * doc/sourcebuild.texi (sysconf): New effective target.
14417 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
14419         * config/i386/predicates.md (reg_or_const_vec_operand): New.
14420         * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
14421         the now *-prefixed insn_and_split, turn the splitter const vec
14422         into an input for the insn, making it an ignored immediate for
14423         non-split cases, and loaded into the scratch register
14424         otherwise.
14426 2021-03-23  Vladimir N. Makarov  <vmakarov@redhat.com>
14428         PR target/99581
14429         * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
14430         Use define_relaxed_memory_constraint for them.
14432 2021-03-23  Iain Sandoe  <iain@sandoe.co.uk>
14434         PR target/99733
14435         * config/host-darwin.c (darwin_gt_pch_use_address): Add a
14436         colon to the diagnostic message.
14438 2021-03-23  Ilya Leoshkevich  <iii@linux.ibm.com>
14440         * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
14441         set_info's uses.
14442         (try_fwprop_subst_note): Use set_info instead of insn_info.
14443         (try_fwprop_subst_pattern): Likewise.
14444         (try_fwprop_subst_notes): Likewise.
14445         (try_fwprop_subst): Likewise.
14446         (forward_propagate_subreg): Likewise.
14447         (forward_propagate_and_simplify): Likewise.
14448         (forward_propagate_into): Likewise.
14449         * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
14450         method.
14451         (set_info::single_nondebug_insn_use): Likewise.
14452         (set_info::single_phi_use): Likewise.
14453         * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
14454         method.
14455         (set_info::single_nondebug_insn_use): Likewise.
14456         (set_info::single_phi_use): Likewise.
14458 2021-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
14460         * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
14462 2021-03-23  Jakub Jelinek  <jakub@redhat.com>
14464         PR target/99540
14465         * config/aarch64/aarch64.c (aarch64_add_offset): Tell
14466         expand_mult to perform an unsigned rather than a signed
14467         multiplication.
14469 2021-03-23  H.J. Lu  <hjl.tools@gmail.com>
14471         PR target/99704
14472         * config/i386/cpuid.h (__cpuid): Add __volatile__.
14473         (__cpuid_count): Likewise.
14475 2021-03-23  Richard Biener  <rguenther@suse.de>
14477         PR tree-optimization/99721
14478         * tree-vect-slp.c (vect_slp_analyze_node_operations):
14479         Make sure we can schedule the node.
14481 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
14483         * config/riscv/riscv.c (riscv_subword): Take endianness into
14484         account when calculating the byte offset.
14486 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
14488         * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
14489         * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
14490         (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
14491         (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
14492         (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
14493         new predicate "subreg_lowpart_operator"
14495 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
14497         * config/riscv/riscv.c (riscv_swap_instruction): New function
14498         to byteswap an SImode rtx containing an instruction.
14499         (riscv_trampoline_init): Byteswap the generated instructions
14500         when needed.
14502 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
14504         * common/config/riscv/riscv-common.c
14505         (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
14506         * config.gcc (riscv32be-*, riscv64be-*): Set
14507         TARGET_BIG_ENDIAN_DEFAULT to 1.
14508         * config/riscv/elf.h (LINK_SPEC): Change -melf* value
14509         depending on default endianness.
14510         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14511         * config/riscv/linux.h (LINK_SPEC): Likewise.
14512         * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
14513         default endianness.
14514         * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
14516 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
14518         * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
14519         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14520         * config/riscv/linux.h (LINK_SPEC): Likewise.
14521         * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
14522         -mlittle-endian.
14523         (BYTES_BIG_ENDIAN): Handle big endian.
14524         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
14525         * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
14526         options.
14527         * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
14529 2021-03-23  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
14531         * regcprop.c (find_oldest_value_reg): Ask target whether
14532           different mode is fine for replacement register.
14534 2021-03-23  Aldy Hernandez  <aldyh@redhat.com>
14536         PR tree-optimization/99296
14537         * value-range.cc (irange::irange_set_1bit_anti_range): New.
14538         (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
14539         * value-range.h (irange::irange_set_1bit_anti_range): New.
14541 2021-03-22  Vladimir N. Makarov  <vmakarov@redhat.com>
14543         PR target/99581
14544         * config/aarch64/constraints.md (UtQ): Use
14545         define_relaxed_memory_constraint for it.
14546         * doc/md.texi (define_relaxed_memory_constraint): Describe it.
14547         * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
14548         * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
14549         (have_relaxed_memory_constraints): New static var.
14550         (relaxed_memory_start, relaxed_memory_end): Ditto.
14551         (add_constraint): Add arg is_relaxed_memory.  Check name for
14552         relaxed memory.  Set up is_relaxed_memory in constraint_data and
14553         have_relaxed_memory_constraints.  Adjust calls.
14554         (choose_enum_order): Process relaxed memory.
14555         (write_tm_preds_h): Ditto.
14556         (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
14557         * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
14558         * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
14559         * ira-lives.c (single_reg_class): Use
14560         insn_extra_relaxed_memory_constraint.
14561         * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
14562         * lra-constraints.c (valid_address_p): Use
14563         insn_extra_relaxed_memory_constraint instead of other memory
14564         constraints.
14565         (process_alt_operands): Process CT_RELAXED_MEMORY.
14566         (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
14567         * recog.c (asm_operand_ok, preprocess_constraints): Process
14568         CT_RELAXED_MEMORY.
14569         * reload.c (find_reloads): Ditto.
14570         * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
14571         * stmt.c (parse_input_constraint): Use
14572         insn_extra_relaxed_memory_constraint.
14574 2021-03-22  Segher Boessenkool  <segher@kernel.crashing.org>
14576         PR target/97926
14577         * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
14578         there are no NaNs.
14580 2021-03-22  Alex Coplan  <alex.coplan@arm.com>
14582         PR target/97252
14583         * config/arm/arm-protos.h (neon_make_constant): Add generate
14584         argument to guard emitting insns, default to true.
14585         * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
14586         CONST_VECTORs which neon_make_constant can't handle.
14587         (neon_vdup_constant): Add generate argument, avoid emitting
14588         insns if it's not set.
14589         (neon_make_constant): Plumb new generate argument through.
14590         * config/arm/constraints.md (Ui): New. Use it...
14591         * config/arm/mve.md (*mve_mov<mode>): ... here.
14592         * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
14593         synthesize constants.
14595 2021-03-22  Richard Biener  <rguenther@suse.de>
14597         * debug.h: Add deprecation warning.
14599 2021-03-22  Richard Biener  <rguenther@suse.de>
14601         PR tree-optimization/99694
14602         * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
14603         PHI result.
14605 2021-03-22  Kito Cheng  <kito.cheng@sifive.com>
14607         PR target/99702
14608         * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
14609         after type checking.
14611 2021-03-22  Jakub Jelinek  <jakub@redhat.com>
14613         PR debug/99562
14614         PR debug/66728
14615         * dwarf2out.c (get_full_len): Use get_precision rather than
14616         min_precision.
14617         (add_const_value_attribute): Make sure add_AT_wide argument has
14618         precision prec rather than some very wide one.
14620 2021-03-22  Kewen Lin  <linkw@linux.ibm.com>
14622         * config/rs6000/rs6000.md (*rotldi3_insert_sf,
14623         *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
14624         floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
14625         floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
14626         *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
14627         fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
14628         *round32<mode>2_fprs, *roundu32<mode>2_fprs,
14629         *fix_trunc<mode>si2_internal): Fix empty split condition.
14630         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
14631         vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
14632         *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
14633         *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
14635 2021-03-22  Xionghu Luo  <luoxhu@linux.ibm.com>
14637         PR target/98914
14638         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
14639         Convert idx to DImode.
14640         (rs6000_expand_vector_set_var_p8): Likewise.
14642 2021-03-21  Jakub Jelinek  <jakub@redhat.com>
14644         PR debug/99388
14645         * dwarf2out.c (insert_float): Change return type from void to
14646         unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
14647         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
14648         Adjust callers.
14650 2021-03-20  H.J. Lu  <hjl.tools@gmail.com>
14652         PR target/99679
14653         * config/i386/i386.c (construct_container): Check cfun != NULL
14654         before accessing silent_p.
14656 2021-03-20  Ahamed Husni  <ahamedhusni73@gmail.com>
14658         * asan.c: Fix typos in comments.
14660 2021-03-20  Vladimir N. Makarov  <vmakarov@redhat.com>
14662         PR rtl-optimization/99680
14663         * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
14664         (process_address_1): Check empty constraint before using
14665         CONSTRAINT_LEN.
14667 2021-03-19  Pat Haugen  <pthaugen@linux.ibm.com>
14669         * config/rs6000/rs6000.c (power10_cost): New.
14670         (rs6000_option_override_internal): Set Power10 costs.
14671         (rs6000_issue_rate): Set Power10 issue rate.
14672         * config/rs6000/power10.md: Rewrite for Power10.
14674 2021-03-19  Vladimir N. Makarov  <vmakarov@redhat.com>
14676         PR target/99663
14677         * lra-constraints.c (process_address_1): Don't use unknown
14678         constraint for address constraint.
14680 2021-03-19  Iain Sandoe  <iain@sandoe.co.uk>
14682         PR target/99661
14683         * config.gcc (powerpc-*-darwin8): Delete the reference to
14684         the now removed darwin8.h.
14686 2021-03-19  Olivier Hainque  <hainque@adacore.com>
14688         PR target/99660
14689         * config/vxworksae.h (VX_CPU_PREFIX): Define.
14691 2021-03-19  John David Anglin  <danglin@gcc.gnu.org>
14693         * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
14695 2021-03-19  Tamar Christina  <tamar.christina@arm.com>
14697         PR tree-optimization/99656
14698         * tree-vect-slp-patterns.c (linear_loads_p,
14699         complex_add_pattern::matches, is_eq_or_top,
14700         vect_validate_multiplication, complex_mul_pattern::matches,
14701         complex_fms_pattern::matches): Remove complex_perm_kinds_t.
14702         * tree-vectorizer.h: (complex_load_perm_t): Removed.
14703         (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
14704         complex_load_perm_t.
14706 2021-03-19  H.J. Lu  <hjl.tools@gmail.com>
14708         PR target/99652
14709         * config/i386/i386-options.c (ix86_init_machine_status): Set
14710         silent_p to true.
14711         * config/i386/i386.c (init_cumulative_args): Set silent_p to
14712         false.
14713         (construct_container): Return early for return and argument
14714         errors if silent_p is true.
14715         * config/i386/i386.h (machine_function): Add silent_p.
14717 2021-03-19  Jakub Jelinek  <jakub@redhat.com>
14719         PR target/99593
14720         * config/arm/constraints.md (Ds): New constraint.
14721         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
14722         constraint instead of w,Dm.
14724 2021-03-19  Andrew Stubbs  <ams@codesourcery.com>
14726         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
14727         in error message.
14729 2021-03-19  Eric Botcazou  <ebotcazou@adacore.com>
14731         PR middle-end/99641
14732         * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
14733         array type, do the computation of the current position in sizetype.
14735 2021-03-18  Vladimir N. Makarov  <vmakarov@redhat.com>
14737         PR target/99422
14738         * lra-constraints.c (process_address_1): Use lookup_constraint
14739         only for a single constraint.
14741 2021-03-18  Martin Sebor  <msebor@redhat.com>
14743         PR middle-end/99502
14744         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
14745         (inbounds_memaccess_p): ...to this.  Check the ending offset of
14746         the accessed member.
14748 2021-03-18  Andrew Stubbs  <ams@codesourcery.com>
14750         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
14751           %> quote markers to error messages.
14752         (gcn_goacc_validate_dims): Likewise.
14753         (gcn_conditional_register_usage): Remove exclaimation mark from error
14754         message.
14755         (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
14757 2021-03-18  Jan Hubicka  <hubicka@ucw.cz>
14759         * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
14760         integer divides1.
14762 2021-03-18  Sinan Lin  <sinan@isrc.iscas.ac.cn>
14763             Kito Cheng  <kito.cheng@sifive.com>
14765         * config/riscv/riscv.c (riscv_block_move_straight): Change type
14766         to unsigned HOST_WIDE_INT for parameter and local variable with
14767         HOST_WIDE_INT type.
14768         (riscv_adjust_block_mem): Ditto.
14769         (riscv_block_move_loop): Ditto.
14770         (riscv_expand_block_move): Ditto.
14772 2021-03-18  Nick Clifton  <nickc@redhat.com>
14774         * config/v850/v850.c (construct_restore_jr): Increase static
14775          buffer size.
14776         (construct_save_jarl): Likewise.
14777         * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
14779 2021-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14781         * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
14782         (aarch64_override_options_internal): Use it.
14783         (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
14784         tune_flags.
14786 2021-03-17  Sandra Loosemore  <sandra@codesourcery.com>
14788         * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
14789         error message format issues.
14790         (nios2_option_override): Likewise.
14791         (nios2_expand_fpu_builtin): Likewise.
14792         (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
14793         truncation warning.
14794         (nios2_expand_custom_builtin): More error message format fixes.
14795         (nios2_expand_rdwrctl_builtin): Likewise.
14796         (nios2_expand_rdprs_builtin): Likewise.
14797         (nios2_expand_eni_builtin): Likewise.
14798         (nios2_expand_builtin): Likewise.
14799         (nios2_register_custom_code): Likewise.
14800         (nios2_valid_target_attribute_rec): Likewise.
14801         (nios2_add_insn_asm): Fix uninitialized variable warning.
14803 2021-03-17  Jan Hubicka  <jh@suse.cz>
14805         * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
14806         of gather to match reality.
14807         * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
14809 2021-03-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14811         * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
14812         to compare against CC_REG rather than NE.
14814 2021-03-17  H.J. Lu  <hjl.tools@gmail.com>
14816         PR target/99504
14817         * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
14818         inline assembly statements.
14819         (ix86_print_operand): Update 'P' handling for -fno-plt.
14821 2021-03-17  Tamar Christina  <tamar.christina@arm.com>
14823         PR target/99542
14824         * config/aarch64/aarch64.c
14825         (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
14827 2021-03-16  Segher Boessenkool  <segher@kernel.crashing.org>
14829         PR target/98092
14830         * config/rs6000/predicates.md (branch_comparison_operator): Allow
14831         ordered and unordered for CCFPmode, if flag_finite_math_only.
14833 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
14835         PR target/99600
14836         * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
14837         rather than ASHIFT.
14838         * config/i386/i386.md (mult by 1248 into ashift): New splitter.
14840 2021-03-16  Martin Liska  <mliska@suse.cz>
14842         PR target/99592
14843         * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
14844         cl_optimization_compare function.
14846 2021-03-16  Ilya Leoshkevich  <iii@linux.ibm.com>
14848         * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
14849         as "v".
14851 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
14853         PR target/99563
14854         * config/i386/i386.h (struct machine_function): Add
14855         has_explicit_vzeroupper bitfield.
14856         * config/i386/i386-expand.c (ix86_expand_builtin): Set
14857         cfun->machine->has_explicit_vzeroupper when expanding
14858         IX86_BUILTIN_VZEROUPPER.
14859         * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
14860         Do the mode switching only when TARGET_VZEROUPPER, expensive
14861         optimizations turned on and not optimizing for size.
14862         (pass_insert_vzeroupper::gate): Enable even when
14863         cfun->machine->has_explicit_vzeroupper is set.
14865 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
14867         PR target/99542
14868         * config/aarch64/aarch64.c
14869         (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
14870         definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
14871         instead of DECL_ARGUMENTS.  Ignore types for uniform arguments.
14873 2021-03-15  Richard Biener  <rguenther@suse.de>
14875         PR tree-optimization/98834
14876         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
14877         subsetting by truncating the access size.
14879 2021-03-15  Jan Hubicka  <hubicka@ucw.cz>
14881         * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
14882         * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
14883         of znver2_cost.
14885 2021-03-15  Martin Liska  <mliska@suse.cz>
14887         * spellcheck.c: Add missing comma in initialization.
14889 2021-03-14  Uroš Bizjak  <ubizjak@gmail.com>
14891         * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
14892         alternative 2 and alternative 1 with alternative 3 using
14893         YW register constraint.
14894         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
14895         using YW register constraint.
14896         (*vec_extractv16qi_zext): Ditto.
14897         (*vec_extractv4si): Merge alternatives 4 and 5
14898         using Yw register constraint.
14899         (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
14901 2021-03-13  Martin Sebor  <msebor@redhat.com>
14903         PR tree-optimization/99489
14904         * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
14905         is not a call statement.
14907 2021-03-13  Jakub Jelinek  <jakub@redhat.com>
14909         PR tree-optimization/99544
14910         * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
14911         if for vector types multiplication can't be done in type's mode.
14913 2021-03-12  Eric Botcazou  <ebotcazou@adacore.com>
14915         PR target/99422
14916         * config/sparc/constraints.md (w): Rename to...
14917         (W): ... this and ditch previous implementation.
14918         * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
14919         (*movdf_insn_sp64): Likewise.
14920         (*mov<VM64:mode>_insn_sp64): Likewise.
14921         * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
14922         w with W.
14923         (atomic_compare_and_swap_leon3_1): Likewise.
14924         (*atomic_compare_and_swapdi_v8plus): Likewise.
14925         * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
14926         architecture and add missing address validity check during LRA.
14928 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
14930         PR fortran/98858
14931         * gimplify.c (omp_add_variable): Handle NULL_TREE as size
14932         occuring for assumed-size arrays in use_device_{ptr,addr}.
14934 2021-03-12  Jakub Jelinek  <jakub@redhat.com>
14936         PR target/99321
14937         * config/i386/constraints.md (YW): New internal constraint.
14938         * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
14939         (*<sse2_avx2>_<insn><mode>3<mask_name>,
14940         *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
14941         *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
14942         constraints.
14943         (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
14944         (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
14945         avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
14946         into one, use Yw instead of former x,v.
14947         (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
14948         the last alternative.
14949         (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
14950         <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
14951         *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
14952         <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
14953         into one, use <v_Yw> instead of former x,v.
14954         (avx2_interleave_highv32qi<mask_name>,
14955         vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
14956         constraints.  Add && <mask_avx512bw_condition> to condition.
14957         (avx2_interleave_lowv32qi<mask_name>,
14958         vec_interleave_lowv16qi<mask_name>,
14959         avx2_interleave_highv16hi<mask_name>,
14960         vec_interleave_highv8hi<mask_name>,
14961         avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
14962         avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
14963         avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
14964         avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
14965         *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
14966         Yw instead of v in constraints.
14967         * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
14968         (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
14969         instead of Yv in constraints.
14970         (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
14971         *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
14972         *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
14973         mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
14974         *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
14975         constraints.
14976         (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
14977         *mmx_pextrb_zext): Use YW instead of Yv in constraints.
14978         (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
14979         (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
14980         two, one with just x, another isa avx512vl with v.
14982 2021-03-12  Martin Liska  <mliska@suse.cz>
14984         * doc/invoke.texi: Add missing param documentation.
14986 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
14988         PR analyzer/96374
14989         * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
14990         analyzer/trimmed-graph.o.
14991         * doc/analyzer.texi (Analyzer Paths): Rewrite description of
14992         feasibility checking to reflect new implementation.
14993         * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
14994         option.
14995         * shortest-paths.h (shortest_paths::get_shortest_distance): New.
14997 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
14999         * digraph.cc (selftest::test_shortest_paths): Update
15000         shortest_paths init for new param.  Add test of
15001         SPS_TO_GIVEN_TARGET.
15002         * shortest-paths.h (enum shortest_path_sense): New.
15003         (shortest_paths::shortest_paths): Add "sense" param.
15004         Update for renamings.  Generalize to use "sense" param.
15005         (shortest_paths::get_shortest_path): Rename param.
15006         (shortest_paths::m_sense): New field.
15007         (shortest_paths::m_prev): Rename...
15008         (shortest_paths::m_best_edge): ...to this.
15009         (shortest_paths::get_shortest_path): Update for renamings.
15010         Conditionalize flipping of path on sense of traversal.
15012 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
15014         * digraph.cc (selftest::test_shortest_paths): Add test coverage
15015         for paths from B and C.
15016         * shortest-paths.h (shortest_paths::shortest_paths): Handle
15017         unreachable nodes, rather than asserting.
15019 2021-03-11  David Edelsohn  <dje.gcc@gmail.com>
15021         PR target/99094
15022         * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
15023         xcoff_tbss_section_name.
15024         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
15025         * xcoffout.c (xcoff_tbss_section_name): Delete.
15026         * xcoffout.h (xcoff_tbss_section_name): Delete.
15028 2021-03-11  Richard Biener  <rguenther@suse.de>
15030         PR tree-optimization/99523
15031         * tree-cfg.c (dump_function_to_file): Dump SSA names
15032         w/o identifier to the decls section as well, not only those
15033         without a VAR_DECL.
15035 2021-03-11  Jakub Jelinek  <jakub@redhat.com>
15037         PR ipa/99517
15038         * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
15039         function calls with lhs fail if the lhs don't have compatible types.
15041 2021-03-11  Hans-Peter Nilsson  <hp@axis.com>
15043         * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
15044         Change FRAME_POINTER_REGNUM to correspond to a new faked
15045         register faked_fp, part of GENNONACR_REGS like faked_ap.
15046         (CRIS_FAKED_REGS_CONTENTS): New helper macro.
15047         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
15048         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
15049         (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
15050         * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
15051         register.
15052         (CRIS_REAL_FP_REGNUM): New constant.
15053         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
15054         for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
15055         (cris_initial_elimination_offset): Handle elimination changes
15056         to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
15057         and add one from FRAME_POINTER_REGNUM to
15058         HARD_FRAME_POINTER_REGNUM.
15059         (cris_expand_prologue, cris_expand_epilogue): Emit code for
15060         hard_frame_pointer_rtx instead of frame_pointer_rtx.
15062 2021-03-10  David Edelsohn  <dje.gcc@gmail.com>
15064         PR target/99492
15065         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
15066         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
15068 2021-03-10  Vladimir N. Makarov  <vmakarov@redhat.com>
15070         PR target/99422
15071         * lra-constraints.c (process_address_1): Don't check unknown
15072         constraint, use X for empty constraint.
15074 2021-03-10  Alex Coplan  <alex.coplan@arm.com>
15076         * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
15077         Fix typo in comment describing "is_ha" argument.
15079 2021-03-10  John David Anglin  <danglin@gcc.gnu.org>
15081         * doc/sourcebuild.texi: Document LRA target selector.
15083 2021-03-10  David Malcolm  <dmalcolm@redhat.com>
15085         * doc/ux.texi: Add subsection contrasting interactive versus
15086         batch usage of GCC.
15088 2021-03-10  Joel Hutton  <joel.hutton@arm.com>
15090         PR target/99102
15091         * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
15092         check condition.
15093         (vectorizable_load): Fix gather load mask check condition.
15095 2021-03-10  Richard Biener  <rguenther@suse.de>
15097         PR tree-optimization/99510
15098         * tree.c (check_aligned_type): Check that the candidate
15099         has TYPE_USER_ALIGN set instead of matching with the
15100         original type.
15102 2021-03-10  Eric Botcazou  <ebotcazou@adacore.com>
15104         * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
15105         float and vector integer modes only if the mode is not larger.
15107 2021-03-10  Hans-Peter Nilsson  <hp@axis.com>
15109         * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
15111 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
15113         * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
15114         constraints > 9.
15115         * ira-lives.c (single_reg_class): Ditto.
15117 2021-03-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15119         * config.gcc (aarch64-*-rtems*): Include general rtems.h after
15120         the architecture-specific rtems.h.
15121         (aarch64-*-rtems*): Likewise.
15122         (arm*-*-rtems*): Likewise.
15123         (epiphany-*-rtems*): Likewise.
15124         (riscv*-*-rtems*): Likewise.
15126 2021-03-09  Jakub Jelinek  <jakub@redhat.com>
15128         PR tree-optimization/99305
15129         * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
15130         before integer_all_onesp instead of vice versa.
15132 2021-03-09  Richard Earnshaw  <rearnsha@arm.com>
15134         * common/config/arm/arm-common.c (arm_config_default): Change type
15135         of 'i' to unsigned.
15137 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
15139         PR target/99454
15140         * lra-constraints.c (process_address_1): Process constraint 'g'
15141         separately and digital constraints containing more one digit.
15143 2021-03-09  Nick Clifton  <nickc@redhat.com>
15145         * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
15146         (DWARF"_DEBUGGING_INFO): Define.
15148 2021-03-09  Eric Botcazou  <ebotcazou@adacore.com>
15150         PR c++/90448
15151         * calls.c (initialize_argument_information): When the argument
15152         is passed by reference, do not make a copy in a thunk only if
15153         the argument is already in memory.  Remove redundant test for
15154         the case of callee copy.
15156 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
15158         PR target/99454
15159         * lra-constraints.c (process_address_1): Process 0..9 constraints
15160         in process_address_1.
15162 2021-03-09  Andreas Krebbel  <krebbel@linux.ibm.com>
15164         * config/s390/s390.c (struct s390_processor processor_table):
15165         Binutils name string must not be empty.
15167 2021-03-09  Claudiu Zissulescu  <claziss@synopsys.com>
15169         * config/arc/arc.c (arc_attr_type): Remove function.
15171 2021-03-09  Martin Liska  <mliska@suse.cz>
15173         PR target/99464
15174         * config/i386/i386-options.c (ix86_option_override_internal):
15175         Set isa_flags for OPTS argument and not for the global
15176         global_options.
15178 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
15180         * config/rs6000/predicates.md (ds_form_mem_operand): Check
15181         in correct code.
15183 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
15185         PR target/99070
15186         * config/rs6000/predicates.md (ds_form_mem_operand) New
15187         predicate.
15188         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
15189         ds_form_mem_operand in ld/lwa patterns.
15190         * config/rs6000/fusion.md: Regenerate file.
15192 2021-03-08  Martin Sebor  <msebor@redhat.com>
15194         PR middle-end/98266
15195         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
15196         (array_bounds_checker::check_array_bounds): Call it.
15198 2021-03-08  Martin Sebor  <msebor@redhat.com>
15200         PR middle-end/97631
15201         * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
15202         (handle_builtin_stxncpy_strncat): Rename locals.  Determine
15203         destination size from allocation calls.  Issue a more appropriate
15204         kind of warning.
15205         (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
15206         (handle_builtin_memset): Same.
15208 2021-03-08  Peter Bergner  <bergner@linux.ibm.com>
15210         PR target/98959
15211         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
15212         to ensure we do not have an Altivec style address.
15213         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
15214         an Altivec style address.
15215         (*vsx_le_perm_store_<mode>): Likewise.
15216         (splitters after *vsx_le_perm_store_<mode>): Likewise.
15217         (vsx_load_<mode>): Disable special expander if passed an Altivec
15218         style address.
15219         (vsx_store_<mode>): Likewise.
15221 2021-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15223         PR target/99437
15224         * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
15225         (aarch64_simd_shift_imm_vec_hi): Likewise.
15226         (aarch64_simd_shift_imm_vec_si): Likewise.
15227         (aarch64_simd_shift_imm_vec_di): Likewise.
15228         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
15229         predicate from above.
15230         (aarch64_shrn<mode>_insn_be): Likewise.
15231         (aarch64_rshrn<mode>_insn_le): Likewise.
15232         (aarch64_rshrn<mode>_insn_be): Likewise.
15233         (aarch64_shrn2<mode>_insn_le): Likewise.
15234         (aarch64_shrn2<mode>_insn_be): Likewise.
15235         (aarch64_rshrn2<mode>_insn_le): Likewise.
15236         (aarch64_rshrn2<mode>_insn_be): Likewise.
15238 2021-03-08  Vladimir N. Makarov  <vmakarov@redhat.com>
15240         PR target/99422
15241         * lra-constraints.c (skip_contraint_modifiers): New function.
15242         (process_address_1): Use it before lookup_constraint call.
15244 2021-03-08  Martin Liska  <mliska@suse.cz>
15246         PR target/99463
15247         * config/i386/i386-options.c (ix86_option_override_internal):
15248         Enable UINTR and HRESET for -march that supports it.
15250 2021-03-08  Ilya Leoshkevich  <iii@linux.ibm.com>
15252         * config/s390/s390.c (f_constraint_p): New function.
15253         (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
15254         (TARGET_MD_ASM_ADJUST): Likewise.
15256 2021-03-08  Tobias Burnus  <tobias@codesourcery.com>
15258         PR fortran/97927
15259         * tree-nested.c (convert_local_reference_stmt): Avoid calling
15260         lookup_field_for_decl for Fortran module (= namespace context).
15262 2021-03-08  Andreas Krebbel  <krebbel@linux.ibm.com>
15264         * config/s390/s390.c (s390_expand_vec_compare): Implement <0
15265         comparison with arithmetic right shift.
15266         (s390_expand_vcond): No need for a force_reg anymore.
15267         s390_vec_compare will do it.
15268         * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
15269         immediate operands.
15271 2021-03-07  Jakub Jelinek  <jakub@redhat.com>
15273         PR target/99321
15274         * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
15275         but TARGET_AVX512BW or TARGET_AVX512VL is not set.  Adjust description
15276         and comment.
15277         * config/i386/sse.md (v_Yw): New define_mode_attr.
15278         (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
15279         *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
15280         in constraints.
15281         * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
15282         xYw in constraints.
15284 2021-03-06  Julian Brown  <julian@codesourcery.com>
15286         * tree-pretty-print.c (dump_generic_node): Emit non-generic
15287         address space info for aggregates.
15289 2021-03-06  Hans-Peter Nilsson  <hp@axis.com>
15291         * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
15293 2021-03-05  Jakub Jelinek  <jakub@redhat.com>
15295         PR middle-end/99322
15296         * tree-cfg.c (bb_to_omp_idx): New variable.
15297         (execute_build_cfg): Release the bb_to_omp_idx vector after
15298         cleanup_tree_cfg returns.
15299         (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
15300         for bb_to_omp_idx being a vec<int> instead of pointer to array
15301         of ints.
15302         (make_edges): Remove bb_to_omp_idx local variable, don't pass
15303         it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
15304         vec<int> instead of pointer to array of ints and don't free/release
15305         it at the end.
15306         (remove_bb): When removing a bb and placing forced label somewhere
15307         else, ensure it is put into the same OpenMP region during cfg
15308         pass if possible or to entry successor as fallback.  Unregister
15309         bb from bb_to_omp_idx.
15311 2021-03-05  Vladimir N. Makarov  <vmakarov@redhat.com>
15313         PR target/99378
15314         * lra-constraints.c (process_address_1): Skip decomposing address
15315         for asm insn operand with unknown constraint.
15317 2021-03-05  Martin Jambor  <mjambor@suse.cz>
15319         PR ipa/98078
15320         * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
15321         corresponding speculative edges if we are about to resolve
15322         sepculation.  Make edge direct (and so resolve speculations) before
15323         removing it from call_site_hash.
15324         (cgraph_edge::make_direct): Relax the initial assert to allow calling
15325         the function on speculative direct edges.
15327 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
15329         PR rtl-optimization/99376
15330         * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
15331         of low-order zero bits is too large, set the result to 0 directly.
15333 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
15335         PR middle-end/93235
15336         * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
15337         SUBREG and a SUBREG to op_mode can't be created.
15339 2021-03-04  Alex Coplan  <alex.coplan@arm.com>
15341         PR target/99381
15342         * config/aarch64/aarch64-sve-builtins.cc
15343         (function_resolver::require_vector_type): Handle error_mark_node.
15345 2021-03-04  Ilya Leoshkevich  <iii@linux.ibm.com>
15347         * cfgexpand.c (expand_asm_loc): Pass new parameter.
15348         (expand_asm_stmt): Likewise.
15349         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
15350         parameter.
15351         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
15352         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
15353         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
15354         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
15355         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
15356         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
15357         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
15358         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
15359         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
15360         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
15361         * doc/tm.texi (md_asm_adjust): Likewise.
15362         * target.def (md_asm_adjust): Likewise.
15364 2021-03-04  Richard Biener  <rguenther@suse.de>
15366         PR middle-end/97855
15367         * tree-pretty-print.c: Poison pp_printf.
15368         (dump_decl_name): Avoid use of pp_printf.
15369         (dump_block_node): Likewise.
15370         (dump_generic_node): Likewise.
15372 2021-03-04  Martin Sebor  <msebor@redhat.com>
15374         PR middle-end/96963
15375         PR middle-end/94655
15376         * builtins.c (handle_array_ref): New helper.
15377         (handle_mem_ref): New helper.
15378         (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
15379         into new helper functions.  Correct a workaround for vectorized
15380         assignments.
15382 2021-03-03  Pat Haugen  <pthaugen@linux.ibm.com>
15384         * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
15385         floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
15386         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
15387         *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
15388         attribute for Power10.
15389         * config/rs6000/mma.md (*movoo): Likewise.
15390         * config/rs6000/rs6000.md (define_attr "size"): Add 256.
15391         (define_mode_attr bits): Add DD/TD modes.
15392         * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
15393         store_conditionalpti): Update size attribute for Power10.
15395 2021-03-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15397         PR bootstrap/92002
15398         * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
15399         -Wuninitialized, -Wmaybe-uninitialized.
15400         (wide-int.o-warn): Likewise.
15402 2021-03-03  Richard Earnshaw  <rearnsha@arm.com>
15404         * common/config/arm/arm-common.c: Include configargs.h.
15405         (arm_config_default): New function.
15406         (arm_target_mode): Renamed from arm_target_thumb_only.  Handle
15407         processors that do not support Thumb.  Take into account the
15408         --with-mode configuration setting for selecting the default.
15409         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
15410         (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
15412 2021-03-03  Martin Liska  <mliska@suse.cz>
15414         PR gcov-profile/97461
15415         * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
15417 2021-03-03  Eric Botcazou  <ebotcazou@adacore.com>
15419         PR target/99234
15420         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
15421         point back the hard frame pointer to its default location when the
15422         frame is larger than SEH_MAX_FRAME_SIZE.
15424 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
15426         PR target/99321
15427         * config/i386/predicates.md (logic_operator): New define_predicate.
15428         * config/i386/i386.md (mov + mem using comm arith peephole2):
15429         Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
15430         and the inner mode is [QH]Imode.
15432 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
15434         PR debug/99090
15435         * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
15436         (new_loc_list): Clear end_entry.
15437         (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
15438         if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx.  Fix comment
15439         typo.
15440         (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
15441         initialize also end_entry.
15443 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
15445         PR target/99085
15446         * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
15447         partitions, if in non-layout mode after reorder_blocks also move
15448         affected blocks to ensure a single partition transition.
15450 2021-03-03  Jason Merrill  <jason@redhat.com>
15452         PR c++/96078
15453         * cgraphunit.c (process_function_and_variable_attributes): Don't
15454         warn about flatten on an alias if the target also has it.
15455         * cgraph.h (symtab_node::get_alias_target_tree): New.
15457 2021-03-02  David Edelsohn  <dje.gcc@gmail.com>
15459         * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
15460         period to symbol name.
15461         (tls_get_addr_internal<mode>): Same.
15463 2021-03-02  David Malcolm  <dmalcolm@redhat.com>
15465         PR c/99323
15466         * diagnostic-show-locus.c
15467         (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
15468         column 0.
15470 2021-03-02  Martin Sebor  <msebor@redhat.com>
15472         PR middle-end/99276
15473         * builtins.c (warn_for_access): Remove stray warning text.
15475 2021-03-02  Martin Sebor  <msebor@redhat.com>
15477         PR middle-end/99295
15478         * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
15479         property.
15481 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
15483         PR debug/99319
15484         * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
15485         -gdwarf-5 -gstrict-dwarf.  For -gsplit-dwarf -gdwarf-5 use
15486         DW_MACRO_*_strx instead of DW_MACRO_*_strp.  Handle
15487         DW_MACRO_define_strx and DW_MACRO_undef_strx.
15488         (save_macinfo_strings): Use DW_MACRO_*_str* even with
15489         -gdwarf-5 -gstrict-dwarf.  Handle DW_MACRO_define_strx and
15490         DW_MACRO_undef_strx.
15492 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
15494         * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
15495         builtin signature.
15496         (BT_FN_V8HI_V8HI_UINT): Likewise.
15497         (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
15498         * config/s390/s390-builtins.def (B_NNPA): New macro definition.
15499         (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
15500         New builtin definitions.
15501         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
15502         vector extension version.
15503         * config/s390/s390.c (s390_expand_builtin): Check if builtins are
15504         available with current -march level.
15505         * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
15506         (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
15507         (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
15508         * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
15509         (vec_extend_to_fp32_lo): Likewise.
15510         (vec_round_from_fp32): Likewise.
15511         (vec_convert_to_fp16): Likewise.
15512         (vec_convert_from_fp16): Likewise.
15513         * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
15514         (vclfnls_v8hi): Likewise.
15515         (vcrnfs_v8hi): Likewise.
15516         (vcfn_v8hi): Likewise.
15517         (vcnf_v8hi): Likewise.
15519 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
15521         * common/config/s390/s390-common.c (processor_flags_table): New entry.
15522         * config.gcc: Enable arch14 for --with-arch and --with-tune.
15523         * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
15524         arch14 for unknown CPU models.
15525         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
15526         * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
15527         (s390_get_sched_attrmask): Likewise.
15528         (s390_get_unit_mask): Likewise.
15529         * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
15530         (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
15531         (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
15532         (TARGET_NNPA_P): New macro definitions.
15533         * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
15534         * config/s390/s390.opt: Add PROCESSOR_ARCH14.
15536 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
15538         PR middle-end/95757
15539         * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
15540         condition.  Call register_edge_assert_for_1 for == 0, != 0, == 1 and
15541         != 1 comparisons if name is lhs of a comparison.
15543 2021-03-01  Iain Sandoe  <iain@sandoe.co.uk>
15545         PR target/44107
15546         PR target/48097
15547         * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
15548         * config/darwin.c (darwin_should_restore_cfa_state): New.
15549         * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
15550         * doc/tm.texi: Regenerated.
15551         * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
15552         * dwarf2cfi.c (connect_traces): If the target requests, restore
15553         the CFA expression after a DW_CFA_restore.
15554         * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
15556 2021-03-01  Martin Liska  <mliska@suse.cz>
15558         PR target/99313
15559         * optc-save-gen.awk: Add 4 more exceptions.
15561 2021-03-01  Nathan Sidwell  <nathan@acm.org>
15563         PR c++/99294
15564         * tree.h (TYPE_ALIGN_RAW): New accessor.
15565         (TYPE_ALIGN): Use it.
15567 2021-03-01  Jan Hubicka  <jh@suse.cz>
15569         PR ipa/98338
15570         * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
15572 2021-03-01  Eric Botcazou  <ebotcazou@adacore.com>
15574         PR target/99234
15575         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
15576         point the hard frame pointer to the SSE register save area instead
15577         of the general register save area.  Perform only minimal adjustment
15578         for small frames if it is initially not correctly aligned.
15579         (ix86_expand_prologue): Remove early saves for a SEH target.
15580         * config/i386/winnt.c (struct seh_frame_state): Document constraint.
15582 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
15584         PR c/99304
15585         * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
15586         typo - referneced -> referenced.
15587         * tree.c (component_ref_size): Fix comment typo -
15588         refernce -> reference.
15589         * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
15590         traling -> trailing.
15591         (aliasing_component_refs_p): Fix comment typos -
15592         refernce -> reference and refernece -> reference and
15593         traling -> trailing.
15594         (nonoverlapping_refs_since_match_p): Fix comment typo -
15595         referneces -> references.
15596         * doc/invoke.texi (--param modref-max-bases): Fix a typo -
15597         referneces -> references.
15599 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
15601         * config/host-darwin.c (darwin_gt_pch_use_address): Modify
15602         diagnostic message to avoid use of a contraction and format
15603         warning.
15605 2021-02-27  Jakub Jelinek  <jakub@redhat.com>
15607         PR other/99288
15608         * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
15609         HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
15610         * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
15611         HOST_WIDE_INT_PRINT_DEC in inform format string.  Fix comment
15612         typos.
15614 2021-02-26  Richard Biener  <rguenther@suse.de>
15616         PR middle-end/99281
15617         * expr.c (store_field): For calls with return-slot optimization
15618         and addressable return type expand the store directly.
15620 2021-02-26  Richard Biener  <rguenther@suse.de>
15622         PR c/99275
15623         * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
15625 2021-02-26  Peter Bergner  <bergner@linux.ibm.com>
15627         PR target/99279
15628         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
15629         with an "if" test.
15631 2021-02-26  Aaron Sawdey  <acsawdey@linux.ibm.com>
15633         * config.gcc: Add rs6000-pcrel-opt.o.
15634         * config/rs6000/rs6000-pcrel-opt.c: New file.
15635         * config/rs6000/pcrel-opt.md: New file.
15636         * config/rs6000/predicates.md: Add d_form_memory predicate.
15637         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
15638         * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
15639         * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
15640         pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
15641         and make_pass_pcrel_opt().
15642         * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
15643         (rs6000_option_override_internal): Add pcrel-opt.
15644         (rs6000_delegitimize_address): Support pcrel-opt.
15645         (rs6000_opt_masks): Add pcrel-opt.
15646         (pcrel_opt_valid_mem_p): New function.
15647         (reg_to_non_prefixed): Make global.
15648         (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
15649         (output_pcrel_opt_reloc): New function.
15650         * config/rs6000/rs6000.md (loads_extern_addr): New attr.
15651         (pcrel_extern_addr): Set loads_extern_addr.
15652         Add include for pcrel-opt.md.
15653         * config/rs6000/rs6000.opt: Add -mpcrel-opt.
15654         * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
15655         pcrel-opt.md.
15657 2021-02-26  YunQiang Su  <yunqiang.su@cipunited.com>
15659         PR target/98996
15660         * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
15661         If TARGET_64BIT and dest is SUBREG, we check the width, if it
15662         equal to SImode, we use SImode operation, just like what we are
15663         doing for REG one.
15665 2021-02-26  Marek Polacek  <polacek@redhat.com>
15667         * builtins.c (warn_for_access): Fix typos.
15669 2021-02-25  Iain Sandoe  <iain@sandoe.co.uk>
15671         * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
15672         mark in front of the immediate quantity.
15673         (<optab>_rolsi3_uxtw): Likewise.
15675 2021-02-25  Richard Earnshaw  <rearnsha@arm.com>
15677         PR target/99271
15678         * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
15679         (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
15680         (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
15681         address and disable when the FPCXT is not available.
15682         (nonsecure_call_value_reg_thumb2): Likewise.
15684 2021-02-25  Nathan Sidwell  <nathan@acm.org>
15686         PR c++/99166
15687         * doc/invoke.texi (flang-info-module-cmi): Renamed option.
15689 2021-02-25  Tamar Christina  <tamar.christina@arm.com>
15691         * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
15693 2021-02-25  Richard Biener  <rguenther@suse.de>
15695         PR tree-optimization/99253
15696         * tree-vect-loop.c (check_reduction_path): First compute
15697         code, then verify out-of-loop uses.
15699 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
15701         PR target/95798
15702         * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
15704 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
15706         PR tree-optimization/80635
15707         * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
15708         VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
15709         has mode precision.
15711 2021-02-25  Richard Biener  <rguenther@suse.de>
15713         * tree-vect-slp.c (optimize_load_redistribution_1): Delay
15714         load_map population.
15715         (vect_match_slp_patterns_2): Revert part of last change.
15716         (vect_analyze_slp): Do not interleave optimize_load_redistribution
15717         with pattern detection but do it afterwards.  Dump the
15718         whole SLP graph after pattern recognition and load
15719         redistribution optimization finished.
15721 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
15723         PR fortran/99226
15724         * omp-low.c (struct omp_context): Add teams_nested_p and
15725         nonteams_nested_p members.
15726         (scan_omp_target): Diagnose teams nested inside of target with other
15727         directives strictly nested inside of the same target.
15728         (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
15729         ctx->nonteams_nested_p as needed.
15731 2021-02-24  Vladimir N. Makarov  <vmakarov@redhat.com>
15733         PR inline-asm/99123
15734         * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
15736 2021-02-24  Hans-Peter Nilsson  <hp@axis.com>
15738         * config/cris/cris.c (cris_expand_prologue): Set
15739         current_function_static_stack_size, if flag_stack_usage_info.
15741 2021-02-24  Pat Haugen  <pthaugen@linux.ibm.com>
15743         * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
15744         (rs6000_final_prescan_insn): Adjust.
15745         (rs6000_asm_output_opcode): Likewise.
15747 2021-02-24  Martin Sebor  <msebor@redhat.com>
15749         PR middle-end/97172
15750         * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
15751         from function arguments.
15753 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
15755         PR tree-optimization/99220
15756         * tree-vect-slp.c (optimize_load_redistribution_1): Remove
15757         node from cache when it's about to be deleted.
15759 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
15761         PR tree-optimization/99225
15762         * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
15763         to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
15764         build_int_cst (..., 1).  Formatting fixes.
15766 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
15768         PR tree-optimization/99149
15769         * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
15770         buffer.
15771         (vect_slp_reset_pattern): Remove.
15772         (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
15773         (complex_mul_pattern::build, complex_fma_pattern::build,
15774         complex_fms_pattern::build): Fix ref counts.
15775         * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
15776         when node is being deleted.
15777         (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
15778         (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
15779         stores.
15780         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
15782 2021-02-24  Matthias Klose  <doko@ubuntu.com>
15784         Revert:
15785         2020-12-07  Matthias Klose  <doko@ubuntu.com>
15787         * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
15788         and ENABLE_RTL_FLAG_CHECKING.
15790 2021-02-24  Richard Biener  <rguenther@suse.de>
15792         PR c/99224
15793         * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
15795 2021-02-23  Peter Bergner  <bergner@linux.ibm.com>
15797         * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
15798         (vsx_assemble_pair): ...to this.
15799         (*mma_assemble_pair): Rename from this...
15800         (*vsx_assemble_pair): ...to this.
15801         (mma_disassemble_pair): Rename from this...
15802         (vsx_disassemble_pair): ...to this.
15803         (*mma_disassemble_pair): Rename from this...
15804         (*vsx_disassemble_pair): ...to this.
15805         * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
15806         BU_COMPAT): New macros.
15807         (mma_assemble_pair): Rename from this...
15808         (vsx_assemble_pair): ...to this.
15809         (mma_disassemble_pair): Rename from this...
15810         (vsx_disassemble_pair): ...to this.
15811         (mma_assemble_pair): New compatibility built-in.
15812         (mma_disassemble_pair): Likewise.
15813         * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
15814         (RS6000_BUILTIN_COMPAT): Define.
15815         (bdesc_compat): New.
15816         (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
15817         (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
15818         and VSX_BUILTIN_ASSEMBLE_PAIR.
15819         (rs6000_init_builtins): Register compatibility built-ins.
15820         (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
15821         VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
15822         VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
15823         * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
15824         (__builtin_vsx_assemble_pair): ...to this.
15825         (__builtin_mma_disassemble_pair): Rename from this...
15826         (__builtin_vsx_disassemble_pair): ...to this.
15828 2021-02-23  Martin Liska  <mliska@suse.cz>
15830         PR sanitizer/99168
15831         * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
15832         with different alignment. That leads to an invalid red zone
15833         size allocated in runtime.
15835 2021-02-23  Jakub Jelinek  <jakub@redhat.com>
15837         PR tree-optimization/99204
15838         * fold-const.c (fold_read_from_constant_string): Check that
15839         tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
15841 2021-02-23  Segher Boessenkool  <segher@kernel.crashing.org>
15842             Kewen Lin  <linkw@gcc.gnu.org>
15844         * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
15845         (rotl<mode>3_insert_3): ...this.
15846         (plus_ior_xor): New code_iterator.
15847         (define_split for GPR rl*imi): New splitter.
15848         * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
15849         for integer merging.
15851 2021-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15853         * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
15854         Define.
15855         * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
15856         into a register when the above is enabled.
15857         * config/aarch64/aarch64.c (neoversev1_tunings):
15858         AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
15859         (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
15861 2021-02-22  Hans-Peter Nilsson  <hp@axis.com>
15863         * config/cris/cris.c (cris_print_operand) <'T'>: Change
15864         valid operand from is now an addi mult-value to shift-value.
15865         * config/cris/cris.md (*addi): Change expression of scaled
15866         operand from mult to ashift.
15867         * config/cris/cris.md (*addi_reload): New insn_and_split.
15869 2021-02-22  John David Anglin  <danglin@gcc.gnu.org>
15871         PR target/85074
15872         * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
15873         hook_bool_const_tree_hwi_hwi_const_tree_true.
15874         (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
15876 2021-02-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
15878         PR rtl-optimization/98791
15879         * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
15880         for unordered modes.
15882 2021-02-22  Martin Liska  <mliska@suse.cz>
15884         * tree-inline.c (inline_forbidden_p): Set
15885         inline_forbidden_reason.
15887 2021-02-22  Richard Biener  <rguenther@suse.de>
15889         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
15890         costed subgraph.
15892 2021-02-22  Richard Biener  <rguenther@suse.de>
15894         PR tree-optimization/99165
15895         * gimple-ssa-store-merging.c (pass_store_merging::process_store):
15896         Accumulate changed to ret.
15898 2021-02-21  Uros Bizjak  <ubizjak@gmail.com>
15900         Revert:
15901         2020-12-09  Uroš Bizjak  <ubizjak@gmail.com>
15903         * config/i386/i386.h (REG_ALLOC_ORDER): Remove
15905 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
15907         PR target/99134
15908         * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
15909         pattern.
15910         (trunctf<DFP_ALL:mode>2): Likewise.
15911         (trunctdtf2_vr): Likewise.
15912         (trunctdtf2): Likewise.
15913         (extend<DFP_ALL:mode>tf2_vr): Likewise.
15914         (extend<DFP_ALL:mode>tf2): Likewise.
15915         (extendtftd2_vr): Likewise.
15916         (extendtftd2): Likewise.
15918 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
15920         * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
15921         add memory alternative.
15922         (tf_to_fprx2): New pattern.
15924 2021-02-19  Martin Sebor  <msebor@redhat.com>
15926         PR c/97172
15927         * attribs.c (init_attr_rdwr_indices): Guard vblist use.
15928         (attr_access::free_lang_data): Remove a spurious test.
15930 2021-02-19  Nathan Sidwell  <nathan@acm.org>
15932         * doc/invoke.texi (flang-info-module-read): Document.
15934 2021-02-19  Martin Liska  <mliska@suse.cz>
15936         PR translation/99167
15937         * params.opt: Fix typo.
15939 2021-02-19  Richard Biener  <rguenther@suse.de>
15941         PR middle-end/99122
15942         * tree-inline.c (inline_forbidden_p): Do not inline functions
15943         with VLA arguments or return value.
15945 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
15947         PR target/98998
15948         * config/arm/arm.md (*stack_protect_combined_set_insn,
15949         *stack_protect_combined_test_insn): If force_const_mem result
15950         is not valid general operand, force its address into the destination
15951         register first.
15953 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
15955         PR ipa/99034
15956         * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
15957         pad or non-local label, put FORCED_LABELs from bb b after that label
15958         rather than before it.
15960 2021-02-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
15962         PR target/98657
15963         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
15964         expand_vector_broadcast' to emit the vec_duplicate operand.
15966 2021-02-18  Vladimir N. Makarov  <vmakarov@redhat.com>
15968         PR rtl-optimization/96264
15969         * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
15970         hard regs.
15972 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
15974         PR target/99113
15975         * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
15976         looking up the retain attribute.
15977         (resolve_unique_section): Likewise.
15978         (get_variable_section): Likewise.
15979         (switch_to_section): Likewise.  Warn when a symbol without the
15980         retain attribute and a symbol with the retain attribute are
15981         placed in the section with the same name, instead of the used
15982         attribute.
15983         * doc/extend.texi: Document the "retain" attribute.
15985 2021-02-18  Nathan Sidwell  <nathan@acm.org>
15987         PR c++/99023
15988         * doc/invoke.texi (flang-info-include-translate): Document header
15989         lookup behaviour.
15991 2021-02-18  Richard Biener  <rguenther@suse.de>
15993         PR middle-end/99122
15994         * ipa-fnsummary.c (analyze_function_body): Set
15995         CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
15996         * tree-inline.c (insert_init_debug_bind): Pass NULL for
15997         error_mark_node values.
15998         (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
15999         values.
16000         (setup_one_parameter): Delay force_value_to_type until when
16001         it's needed.
16003 2021-02-18  Hans-Peter Nilsson  <hp@axis.com>
16005         PR tree-optimization/99142
16006         * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
16008 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
16010         * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
16011         wide_int_bitmask::wide_int_bitmask (uint64_t),
16012         wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
16013         wide_int_bitmask::operator ~ () const,
16014         wide_int_bitmask::operator | (wide_int_bitmask) const,
16015         wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
16016         instead of inline.
16017         * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
16018         PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
16019         PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
16020         PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
16021         PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
16022         PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
16023         PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
16024         PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
16025         PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
16026         PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
16027         PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
16028         PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
16029         PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
16030         PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
16031         PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
16032         PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
16033         PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
16034         PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
16035         PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
16036         PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
16037         PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
16038         PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
16039         PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
16040         PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
16042 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
16044         PR middle-end/99109
16045         * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
16046         (build_printable_array_type): ... this.  Add nelts argument.  For
16047         overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead.  If
16048         nelts, call build_array_type_nelts.
16049         (array_bounds_checker::check_mem_ref): Use build_printable_array_type
16050         instead of build_zero_elt_array_type and build_array_type_nelts.
16052 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
16054         PR target/99104
16055         * config/i386/i386.c (distance_non_agu_define): Don't call
16056         extract_insn_cached here.
16057         (ix86_lea_outperforms): Save and restore recog_data around call
16058         to distance_non_agu_define and distance_agu_use.
16059         (ix86_ok_to_clobber_flags): Remove.
16060         (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
16061         (ix86_avoid_lea_for_addr): Likewise.  Adjust function comment.
16062         * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
16063         into define_insn.  Move the splitting to define_peephole2 and
16064         check there using peep2_regno_dead_p if FLAGS_REG is dead.
16066 2021-02-17  Julian Brown  <julian@codesourcery.com>
16068         * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
16069         for non-decls.
16071 2021-02-17  Xi Ruoyao  <xry111@mengyan1223.wang>
16073         PR target/98491
16074         * config/mips/mips.c (mips_symbol_insns): Do not use
16075         MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
16077 2021-02-16  Vladimir N. Makarov  <vmakarov@redhat.com>
16079         PR inline-asm/98096
16080         * stmt.c (resolve_operand_name_1): Take inout operands into account
16081         for access to labels by names.
16082         * doc/extend.texi: Describe counting operands for accessing labels.
16084 2021-02-16  Richard Biener  <rguenther@suse.de>
16086         PR tree-optimization/38474
16087         * tree-ssa-structalias.c (variable_info::address_taken): New.
16088         (new_var_info): Initialize address_taken.
16089         (process_constraint): Set address_taken.
16090         (solve_constraints): Use the new address_taken flag rather
16091         than is_reg_var for sorting variables.
16092         (dump_constraint): Dump the variable number if the name
16093         is just NULL.
16095 2021-02-16  Jakub Jelinek  <jakub@redhat.com>
16097         PR target/99100
16098         * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
16099         multiply by 4096 and for inbranch by 8192.
16100         * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
16101         return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
16103 2021-02-15  Maya Rashish  <coypu@sdf.org>
16105         * config/aarch64/aarch64.c (aarch64_init_builtins):
16106         Call SUBTARGET_INIT_BUILTINS.
16108 2021-02-15  Peter Bergner  <bergner@linux.ibm.com>
16110         PR rtl-optimization/98872
16111         * init-regs.c (initialize_uninitialized_regs): Skip initialization
16112         if CONST0_RTX is NULL.
16114 2021-02-15  Richard Sandiford  <richard.sandiford@arm.com>
16116         PR rtl-optimization/98863
16117         * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
16118         (function_info::build_info): Turn into a declaration, moving the
16119         definition to internals.h.
16120         (function_info::bb_walker): Declare.
16121         (function_info::create_reg_use): Likewise.
16122         (function_info::calculate_potential_phi_regs): Take a build_info
16123         parameter.
16124         (function_info::place_phis, function_info::create_ebbs): Declare.
16125         (function_info::calculate_ebb_live_in_for_debug): Likewise.
16126         (function_info::populate_backedge_phis): Delete.
16127         (function_info::start_block, function_info::end_block): Declare.
16128         (function_info::populate_phi_inputs): Delete.
16129         (function_info::m_potential_phi_regs): Move information to build_info.
16130         * rtl-ssa/internals.h: New file.
16131         (function_info::bb_phi_info): New class.
16132         (function_info::build_info): Moved from functions.h.
16133         Add a constructor and destructor.
16134         (function_info::build_info::ebb_use): Delete.
16135         (function_info::build_info::ebb_def): Likewise.
16136         (function_info::build_info::bb_live_out): Likewise.
16137         (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
16138         (function_info::build_info::potential_phi_regs): Likewise.
16139         (function_info::build_info::potential_phi_regs_for_debug): Likewise.
16140         (function_info::build_info::ebb_def_regs): Likewise.
16141         (function_info::build_info::bb_phis): Likewise.
16142         (function_info::build_info::bb_mem_live_out): Likewise.
16143         (function_info::build_info::bb_to_rpo): Likewise.
16144         (function_info::build_info::def_stack): Likewise.
16145         (function_info::build_info::old_def_stack_limit): Likewise.
16146         * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
16147         Remove the regno argument.  Push the previous definition onto the
16148         definition stack where necessary.
16149         * rtl-ssa/accesses.cc: Include internals.h.
16150         * rtl-ssa/changes.cc: Likewise.
16151         * rtl-ssa/blocks.cc: Likewise.
16152         (function_info::build_info::build_info): Define.
16153         (function_info::build_info::~build_info): Likewise.
16154         (function_info::bb_walker): New class.
16155         (function_info::bb_walker::bb_walker): Define.
16156         (function_info::add_live_out_use): Convert a logarithmic-complexity
16157         test into a linear one.  Allow the same definition to be passed
16158         multiple times.
16159         (function_info::calculate_potential_phi_regs): Moved from
16160         functions.cc.  Take a build_info parameter and store the
16161         information there instead.
16162         (function_info::place_phis): New function.
16163         (function_info::add_entry_block_defs): Update call to record_reg_def.
16164         (function_info::calculate_ebb_live_in_for_debug): New function.
16165         (function_info::add_phi_nodes): Use bb_phis to decide which
16166         registers need phi nodes and initialize ebb_def_regs accordingly.
16167         Do not add degenerate phis here.
16168         (function_info::add_artificial_accesses): Use create_reg_use.
16169         Assert that all definitions are listed in the DF LR sets.
16170         Update call to record_reg_def.
16171         (function_info::record_block_live_out): Record live-out register
16172         values in the phis of successor blocks.  Use the live-out set
16173         when processing the last block in an EBB, instead of always
16174         using the live-in sets of successor blocks.  AND the live sets
16175         with the set of registers that have been defined in the EBB,
16176         rather than with all potential phi registers.  Cope correctly
16177         with branches back to the start of the current EBB.
16178         (function_info::start_block): New function.
16179         (function_info::end_block): Likewise.
16180         (function_info::populate_phi_inputs): Likewise.
16181         (function_info::create_ebbs): Likewise.
16182         (function_info::process_all_blocks): Rewrite into a multi-phase
16183         process.
16184         * rtl-ssa/functions.cc: Include internals.h.
16185         (function_info::calculate_potential_phi_regs): Move to blocks.cc.
16186         (function_info::init_function_data): Remove caller.
16187         * rtl-ssa/insns.cc: Include internals.h
16188         (function_info::create_reg_use): New function.  Lazily any
16189         degenerate phis needed by the linear RPO view.
16190         (function_info::record_use): Use create_reg_use.  When processing
16191         debug uses, use potential_phi_regs and test it before checking
16192         whether the register is live on entry to the current EBB.  Lazily
16193         calculate ebb_live_in_for_debug.
16194         (function_info::record_call_clobbers): Update call to record_reg_def.
16195         (function_info::record_def): Likewise.
16197 2021-02-15  Martin Liska  <mliska@suse.cz>
16199         * toplev.c (init_asm_output): Free output of
16200         gen_command_line_string function.
16201         (process_options): Likewise.
16203 2021-02-15  Martin Liska  <mliska@suse.cz>
16205         * params.opt: Add 2 missing Param keywords.
16207 2021-02-15  Eric Botcazou  <ebotcazou@adacore.com>
16209         * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
16211 2021-02-15  Jakub Jelinek  <jakub@redhat.com>
16213         PR tree-optimization/99079
16214         * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
16215         useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check.  Instead
16216         require both type and TREE_TYPE (@1) to be integral types and either
16217         type having smaller or equal precision, or TREE_TYPE (@1) being
16218         unsigned type, or type being signed type.  If TREE_TYPE (@1)
16219         doesn't have wrapping overflow, perform the subtraction of one in
16220         unsigned type.
16222 2021-02-14  Jan Hubicka  <hubicka@ucw.cz>
16223             Richard Biener  <rguether@suse.de>
16225         PR ipa/97346
16226         * ipa-reference.c (ipa_init): Only conditinally initialize
16227         reference_vars_to_consider.
16228         (propagate): Conditionally deninitialize reference_vars_to_consider.
16229         (ipa_reference_write_optimization_summary): Sanity check that
16230         reference_vars_to_consider is not allocated.
16232 2021-02-13  Levy Hsu  <admin@levyhsu.com>
16234         PR target/97417
16235         * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
16236         extend parameter to get_si_mem_base_reg declaration.
16237         (get_si_mem_base_reg): Add extend parameter.  Set it.
16238         (analyze): Pass extend arg to get_si_mem_base_reg.
16239         (transform): Likewise.  Use it when rewriting mems.
16240         * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
16241         loads and emit sign/zero extending load followed by subreg move.
16243 2021-02-13  Jim Wilson  <jimw@sifive.com>
16245         PR target/97417
16246         * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
16247         exit when !reload_completed.  Only perform check for compressed reg
16248         if reload_completed.
16249         (riscv_rtx_costs): In MEM case, when optimizing for size and
16250         shorten memrefs, if not compressible, then increase cost.
16252 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
16254         PR rtl-optimization/98439
16255         * recog.c (pass_split_before_regstack::gate): Enable even when
16256         pass_split_before_sched2 is enabled if -fselective-scheduling2 is
16257         on.
16259 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
16261         PR target/96166
16262         * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
16263         swap of V2SImode elements in memory into DImode memory rotate by 32.
16265 2021-02-12  Martin Sebor  <msebor@redhat.com>
16267         * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
16269 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
16271         * rtl-ssa/accesses.cc (function_info::make_use_available): Use
16272         m_temp_obstack rather than m_obstack to allocate the temporary use.
16274 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
16276         * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
16277         as read-modify operations.
16279 2021-02-12  Richard Biener  <rguenther@suse.de>
16281         PR middle-end/38474
16282         * ipa-fnsummary.c (unmodified_parm_1): Only walk when
16283         fbi->aa_walk_budget is bigger than zero.  Update
16284         fbi->aa_walk_budget.
16285         (param_change_prob): Likewise.
16286         * ipa-prop.c (detect_type_change_from_memory_writes):
16287         Properly account walk_aliased_vdefs.
16288         (parm_preserved_before_stmt_p): Canonicalize updates.
16289         (parm_ref_data_preserved_p): Likewise.
16290         (parm_ref_data_pass_through_p): Likewise.
16291         (determine_known_aggregate_parts): Account own alias queries.
16293 2021-02-12  Martin Liska  <mliska@suse.cz>
16295         * opts-common.c (decode_cmdline_option): Release werror_arg.
16296         * opts.c (gen_producer_string): Release output of
16297         gen_command_line_string.
16299 2021-02-12  Richard Biener  <rguenther@suse.de>
16301         PR tree-optimization/38474
16302         * params.opt (-param=max-store-chains-to-track=): New param.
16303         (-param=max-stores-to-track=): Likewise.
16304         * doc/invoke.texi (max-store-chains-to-track): Document.
16305         (max-stores-to-track): Likewise.
16306         * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
16307         New.
16308         (pass_store_merging::m_n_stores): Likewise.
16309         (pass_store_merging::terminate_and_process_chain): Update
16310         m_n_stores and m_n_chains.
16311         (pass_store_merging::process_store): Likewise.   Terminate
16312         oldest chains if the number of stores or chains get too large.
16313         (imm_store_chain_info::terminate_and_process_chain): Dump
16314         chain length.
16316 2021-02-11  Eric Botcazou  <ebotcazou@adacore.com>
16318         * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
16319         the cold section, emit a nop before the directive if the previous
16320         active instruction can throw.
16322 2021-02-11  Peter Bergner  <bergner@linux.ibm.com>
16324         PR target/99041
16325         * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
16326         memory addresses that are legal for quad word accesses.
16328 2021-02-11  Andrea Corallo  <andrea.corallo@arm.com>
16330         PR target/98931
16331         * config/arm/thumb2.md (*doloop_end_internal): Generate
16332         alternative sequence to handle long range branches.
16334 2021-02-11  Joel Hutton  <joel.hutton@arm.com>
16336         PR tree-optimization/98772
16337         * optabs-tree.c (supportable_half_widening_operation): New function
16338         to check for supportable V8QI->V8HI widening patterns.
16339         * optabs-tree.h (supportable_half_widening_operation): New function.
16340         * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
16341         to create promotion stmts for V8QI->V8HI widening patterns.
16342         (vectorizable_conversion): Add case for V8QI->V8HI.
16344 2021-02-11  Richard Biener  <rguenther@suse.de>
16346         * sparseset.h (SPARSESET_ELT_BITS): Remove.
16347         (SPARSESET_ELT_TYPE): Use unsigned int.
16348         * fwprop.c: Do not include sparseset.h.
16350 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
16352         PR c++/99035
16353         * varasm.c (declare_weak): For -fsyntax-only, allow even
16354         TREE_ASM_WRITTEN function decls.
16356 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
16358         PR target/99025
16359         * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
16360         <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
16361         <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
16362         <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
16363         calling simplify_gen_subreg on it.
16365 2021-02-10  Martin Liska  <mliska@suse.cz>
16367         * config/nvptx/nvptx.c (nvptx_option_override): Use
16368         flag_patchable_function_entry instead of the removed
16369         function_entry_patch_area_size.
16371 2021-02-10  Martin Liska  <mliska@suse.cz>
16373         PR tree-optimization/99002
16374         PR tree-optimization/99026
16375         * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
16376         leak when adjacent cases are merged.
16377         * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
16378         release_clusters.
16379         (make_pass_lower_switch): Remove trailing whitespace.
16380         * tree-switch-conversion.h (release_clusters): New.
16382 2021-02-10  Richard Biener  <rguenther@suse.de>
16384         PR rtl-optimization/99054
16385         * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
16386         (fixup_partitions): Adjust.
16387         (rtl_verify_edges): Likewise.
16389 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
16391         PR middle-end/99007
16392         * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
16393         temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
16394         calls.
16396 2021-02-10  Richard Biener  <rguenther@suse.de>
16398         PR ipa/99029
16399         * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
16400         for callees.
16402 2021-02-10  Richard Biener  <rguenther@suse.de>
16404         PR tree-optimization/99024
16405         * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
16406         clear loop->aux if it is associated with the destroyed loop_vinfo.
16408 2021-02-10  Martin Liska  <mliska@suse.cz>
16410         PR tree-optimization/99002
16411         * gimple-if-to-switch.cc (find_conditions): Fix memory leak
16412         in the function.
16414 2021-02-10  Martin Liska  <mliska@suse.cz>
16416         PR ipa/99003
16417         * ipa-icf.c (sem_item::add_reference): Fix memory leak when
16418         a reference exists.
16420 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
16422         PR debug/98755
16423         * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
16424         at class scope for DWARF5+.
16426 2021-02-09  Eric Botcazou  <ebotcazou@adacore.com>
16428         PR rtl-optimization/96015
16429         * reorg.c (skip_consecutive_labels): Minor comment tweaks.
16430         (relax_delay_slots): When deleting a jump to the next active
16431         instruction over a barrier, first delete the barrier if the
16432         jump is the only way to reach the target label.
16434 2021-02-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
16436         * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
16437         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
16438         vector multiplies and vect.alu for SSRA.
16439         * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
16440         vect.mul cost field.
16441         * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
16442         * config/arm/arm.c: Likewise.
16444 2021-02-09  Richard Biener  <rguenther@suse.de>
16446         PR tree-optimization/98863
16447         * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
16448         * tree-ssa-sccvn.c (last_pushed_avail): New global.
16449         (rpo_elim::eliminate_push_avail): Chain pushed avails.
16450         (unwind_state::avail_top): Add.
16451         (do_unwind): Rewrite unwinding of avail entries.
16452         (do_rpo_vn): Initialize last_pushed_avail and
16453         avail_top of the undo state.
16455 2021-02-09  Jakub Jelinek  <jakub@redhat.com>
16457         PR middle-end/99004
16458         * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
16459         const char * to char * and free those pointers after use.
16461 2021-02-09  Richard Biener  <rguenther@suse.de>
16463         PR tree-optimization/99017
16464         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
16465         zero vector cost entries.
16467 2021-02-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
16469         PR middle-end/98974
16470         * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
16471         parameter in vectorizable_condition.
16473 2021-02-08  Richard Biener  <rguenther@suse.de>
16475         PR lto/96591
16476         * tree.c (walk_tree_1): Walk VECTOR_CST elements.
16478 2021-02-08  Martin Liska  <mliska@suse.cz>
16480         PR lto/98971
16481         * cfgexpand.c (pass_expand::execute): Parse per-function option
16482         flag_patchable_function_entry and use it.
16483         * common.opt: Remove function_entry_patch_area_size and
16484         function_entry_patch_area_start global variables.
16485         * opts.c (parse_and_check_patch_area): New function.
16486         (common_handle_option): Use it.
16487         * opts.h (parse_and_check_patch_area): New function.
16488         * toplev.c (process_options): Parse and use
16489         function_entry_patch_area_size.
16491 2021-02-08  Martin Sebor  <msebor@redhat.com>
16493         * doc/extend.texi (attribute malloc): Correct typos.
16495 2021-02-05  Nathan Sidwell  <nathan@acm.org>
16497         PR driver/98943
16498         * gcc.c (driver::maybe_run_linker): Check for input file
16499         accessibility if not linking.
16501 2021-02-05  Richard Biener  <rguenther@suse.de>
16503         PR tree-optimization/98855
16504         * tree-vectorizer.h (add_stmt_cost): New overload.
16505         * tree-vect-slp.c (li_cost_vec_cmp): New.
16506         (vect_bb_slp_scalar_cost): Cost individual loop regions
16507         separately.  Account for the scalar instance root stmt.
16509 2021-02-05  Tom de Vries  <tdevries@suse.de>
16511         PR debug/98656
16512         * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
16513         argument.
16514         (bit_test_cluster::emit): Reuse location_t for newly created
16515         gswitch statement.
16516         (switch_decision_tree::try_switch_expansion): Preserve
16517         location_t.
16518         * tree-switch-conversion.h: Change function signatures.
16520 2021-02-05  Jakub Jelinek  <jakub@redhat.com>
16522         PR target/98957
16523         * config/i386/i386-options.c (m_NONE, m_ALL): Define.
16524         * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
16525         X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
16526         (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
16528 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16530         * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
16531         * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
16532         * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
16533         (vget_high_f16): Reimplement using new builtin.
16534         (vget_high_f32): Likewise.
16535         (vget_high_f64): Likewise.
16536         (vget_high_p8): Likewise.
16537         (vget_high_p16): Likewise.
16538         (vget_high_p64): Likewise.
16539         (vget_high_s8): Likewise.
16540         (vget_high_s16): Likewise.
16541         (vget_high_s32): Likewise.
16542         (vget_high_s64): Likewise.
16543         (vget_high_u8): Likewise.
16544         (vget_high_u16): Likewise.
16545         (vget_high_u32): Likewise.
16546         (vget_high_u64): Likewise.
16548 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16550         * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
16551         * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
16552         * config/aarch64/arm_neon.h (__GET_LOW): Delete.
16553         (vget_low_f16): Reimplement using new builtin.
16554         (vget_low_f32): Likewise.
16555         (vget_low_f64): Likewise.
16556         (vget_low_p8): Likewise.
16557         (vget_low_p16): Likewise.
16558         (vget_low_p64): Likewise.
16559         (vget_low_s8): Likewise.
16560         (vget_low_s16): Likewise.
16561         (vget_low_s32): Likewise.
16562         (vget_low_s64): Likewise.
16563         (vget_low_u8): Likewise.
16564         (vget_low_u16): Likewise.
16565         (vget_low_u32): Likewise.
16566         (vget_low_u64): Likewise.
16568 2021-02-05  Kito Cheng  <kito.cheng@sifive.com>
16570         * gcc.c (print_multilib_info): Check all required argument is provided
16571         by default arg.
16573 2021-02-05  liuhongt  <hongtao.liu@intel.com>
16575         PR target/98537
16576         * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
16577         generate integer mask comparison for 128/256-bits vector when
16578         op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
16579         delete redundant !maskcmp condition.
16580         (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
16581         here.
16582         (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
16583         condition directly to if (maskcmp), add extra check for
16584         cmpmode, it should be MODE_INT.
16585         (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
16586         parameters op_true/op_false.
16587         (ix86_use_mask_cmp_p): New.
16589 2021-02-05  liuhongt  <hongtao.liu@intel.com>
16591         PR target/98172
16592         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
16593         Remove m_GENERIC from ~list.
16594         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
16596 2021-02-04  David Malcolm  <dmalcolm@redhat.com>
16598         PR c/97932
16599         * diagnostic-show-locus.c (compatible_locations_p): Require
16600         locations in the same macro map to be either both from the
16601         macro definition, or both from the macro arguments.
16603 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
16605         * config/aarch64/aarch64-simd-builtins.def: Add
16606         [su]mull_hi_lane[q] builtin generator macros.
16607         * config/aarch64/aarch64-simd.md
16608         (aarch64_<su>mull_hi_lane<mode>_insn): Define.
16609         (aarch64_<su>mull_hi_lane<mode>): Define.
16610         (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
16611         (aarch64_<su>mull_hi_laneq<mode>): Define.
16612         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
16613         builtin instead of inline asm.
16614         (vmull_high_lane_s32): Likewise.
16615         (vmull_high_lane_u16): Likewise.
16616         (vmull_high_lane_u32): Likewise.
16617         (vmull_high_laneq_s16): Likewise.
16618         (vmull_high_laneq_s32): Likewise.
16619         (vmull_high_laneq_u16): Likewise.
16620         (vmull_high_laneq_u32): Liekwise.
16622 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
16624         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
16625         builtin generator macros.
16626         * config/aarch64/aarch64-simd.md
16627         (aarch64_<su>mull_hi_n<mode>_insn): Define.
16628         (aarch64_<su>mull_hi_n<mode>): Define.
16629         * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
16630         instead of inline asm.
16631         (vmull_high_n_s32): Likewise.
16632         (vmull_high_n_u16): Likewise.
16633         (vmull_high_n_u32): Likewise.
16635 2021-02-04  Richard Biener  <rguenther@suse.de>
16637         PR tree-optimization/98855
16638         * tree-vect-loop.c (vectorizable_phi): Do not cost
16639         single-argument PHIs.
16640         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
16641         * tree-vect-stmts.c (vectorizable_bswap): Also perform
16642         costing for SLP operation.
16644 2021-02-04  Martin Liska  <mliska@suse.cz>
16646         * doc/extend.texi: Mention -mprefer-vector-width in target
16647         attributes.
16649 2021-02-03  Martin Sebor  <msebor@redhat.com>
16651         PR tree-optimization/98937
16652         * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
16653         Flush pointer_query cache.
16655 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
16657         * config/rs6000/genfusion.pl (gen_2logical): Add missing
16658         fixes based on patch review.
16659         * config/rs6000/fusion.md: Regenerate file.
16661 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
16663         * config/rs6000/t-rs6000: Comment out auto generation of
16664         fusion.md for now.
16666 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
16668         * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
16669         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
16670         (output_file_start): Add gfx908.
16671         * config/gcn/gcn.opt (gpu_type): Add gfx908.
16672         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
16673         (MULTILIB_DIRNAMES): Add gfx908.
16674         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
16675         (main): Recognize gfx908.
16676         * config/gcn/t-omp-device: Add gfx908.
16678 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
16680         * config/aarch64/aarch64-simd-builtins.def: Add
16681         [su]mlsl_hi_lane[q] builtin macro generators.
16682         * config/aarch64/aarch64-simd.md
16683         (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
16684         (aarch64_<su>mlsl_hi_lane<mode>): Define.
16685         (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
16686         (aarch64_<su>mlsl_hi_laneq<mode>): Define.
16687         * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
16688         builtin instead of inline asm.
16689         (vmlsl_high_lane_s32): Likewise.
16690         (vmlsl_high_lane_u16): Likewise.
16691         (vmlsl_high_lane_u32): Likewise.
16692         (vmlsl_high_laneq_s16): Likewise.
16693         (vmlsl_high_laneq_s32): Likewise.
16694         (vmlsl_high_laneq_u16): Likewise.
16695         (vmlsl_high_laneq_u32): Likewise.
16696         (vmlal_high_laneq_u32): Likewise.
16698 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
16700         * config/aarch64/aarch64-simd-builtins.def: Add
16701         [su]mlal_hi_lane[q] builtin generator macros.
16702         * config/aarch64/aarch64-simd.md
16703         (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
16704         (aarch64_<su>mlal_hi_lane<mode>): Define.
16705         (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
16706         (aarch64_<su>mlal_hi_laneq<mode>): Define.
16707         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
16708         builtin instead of inline asm.
16709         (vmlal_high_lane_s32): Likewise.
16710         (vmlal_high_lane_u16): Likewise.
16711         (vmlal_high_lane_u32): Likewise.
16712         (vmlal_high_laneq_s16): Likewise.
16713         (vmlal_high_laneq_s32): Likewise.
16714         (vmlal_high_laneq_u16): Likewise.
16715         (vmlal_high_laneq_u32): Likewise.
16717 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
16719         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
16720         builtin generator macros.
16721         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
16722         Define.
16723         (aarch64_<su>mlsl_hi_n<mode>): Define.
16724         * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
16725         instead of inline asm.
16726         (vmlsl_high_n_s32): Likewise.
16727         (vmlsl_high_n_u16): Likewise.
16728         (vmlsl_high_n_u32): Likewise.
16730 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
16732         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
16733         builtin generator macros.
16734         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
16735         Define.
16736         (aarch64_<su>mlal_hi_n<mode>): Define.
16737         * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
16738         instead of inline asm.
16739         (vmlal_high_n_s32): Likewise.
16740         (vmlal_high_n_u16): Likewise.
16741         (vmlal_high_n_u32): Likewise.
16743 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
16745         * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
16746         generator macros.
16747         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
16748         Rename to...
16749         (aarch64_<su>mlal_hi<mode>_insn): This.
16750         (aarch64_<su>mlal_hi<mode>): Define.
16751         * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
16752         instead of inline asm.
16753         (vmlal_high_s16): Likewise.
16754         (vmlal_high_s32): Likewise.
16755         (vmlal_high_u8): Likewise.
16756         (vmlal_high_u16): Likewise.
16757         (vmlal_high_u32): Likewise.
16759 2021-02-03  Ilya Leoshkevich  <iii@linux.ibm.com>
16761         * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
16762         after calling alter_subreg() on a (mem).
16764 2021-02-03  Martin Liska  <mliska@suse.cz>
16766         PR lto/98912
16767         * lto-streamer-out.c (produce_lto_section): Fill up missing
16768         padding.
16769         * lto-streamer.h (struct lto_section): Add _padding field.
16771 2021-02-03  Richard Biener  <rguenther@suse.de>
16773         * lto-streamer.c (lto_get_section_name): Free temporary
16774         buffer.
16775         * tree-loop-distribution.c
16776         (loop_distribution::merge_dep_scc_partitions): Free edge data.
16778 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
16780         PR middle-end/97487
16781         * ifcvt.c (noce_can_force_operand): New function.
16782         (noce_emit_move_insn): Use it.
16783         (noce_try_sign_mask): Likewise.  Formatting fix.
16785 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
16787         PR middle-end/97971
16788         * lra-constraints.c (process_alt_operands): For inline asm, don't call
16789         fatal_insn, but instead return false.
16791 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
16793         PR tree-optimization/98287
16794         * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
16795         for V1DImode.
16797 2021-02-03  Tamar Christina  <tamar.christina@arm.com>
16799         PR tree-optimization/98928
16800         * tree-vect-loop.c (vect_analyze_loop_2): Change
16801         STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
16802         * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
16803         * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
16804         (class _stmt_vec_info): Add slp_vect_pattern_only_p.
16806 2021-02-02  Richard Biener  <rguenther@suse.de>
16808         * gimple-loop-interchange.cc (prepare_data_references):
16809         Release vectors.
16810         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
16811         * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
16812         * tree-vect-stmts.c (vectorizable_condition): Do not
16813         allocate vectors.
16814         (vectorizable_comparison): Likewise.
16816 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16818         * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
16819         * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
16820         * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
16821         (vrsqrteq_u32): Likewise.
16823 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16825         * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
16826         * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
16827         (aarch64_sqxtun2<mode>_be): Likewise.
16828         (aarch64_sqxtun2<mode>): Likewise.
16829         * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
16830         (vqmovun_high_s32): Likewise.
16831         (vqmovun_high_s64): Likewise.
16832         * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
16834 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16836         * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
16837         AUTO_FP flags.
16838         (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
16840 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16842         * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
16843         fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
16844         fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
16845         ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
16846         fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
16847         fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
16848         fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
16849         fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
16851 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16853         * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
16854         * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
16855         ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
16857 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16859         * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
16860         uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
16862 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16864         * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
16865         vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
16866         vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
16867         ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
16868         udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
16869         ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
16870         ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
16871         ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
16872         NONE builtin flags.
16874 2021-02-02  Jakub Jelinek  <jakub@redhat.com>
16876         PR tree-optimization/98848
16877         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
16878         STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
16880 2021-02-02  Kito Cheng  <kito.cheng@sifive.com>
16882         PR target/98743
16883         * expr.c: Check mode before calling store_expr.
16885 2021-02-02  Christophe Lyon  <christophe.lyon@linaro.org>
16887         * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
16888         (VORNQ): Remove.
16889         * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
16890         instruction using expression ior.
16891         (mve_vornq_u<mode>): New expander.
16892         (mve_vornq_f<mode>): Use ior code instead of unspec.
16893         * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
16895 2021-02-02  Alexandre Oliva  <oliva@adacore.com>
16897         * tree-nested.c (convert_nonlocal_reference_op): Move
16898         current_function_decl restore after re-gimplification.
16899         (convert_local_reference_op): Likewise.
16901 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16903         * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
16904         Define builtins.
16905         * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
16906         Define.
16907         (aarch64_rshrn<mode>_insn_be): Likewise.
16908         (aarch64_rshrn<mode>): Likewise.
16909         (aarch64_rshrn2<mode>_insn_le): Likewise.
16910         (aarch64_rshrn2<mode>_insn_be): Likewise.
16911         (aarch64_rshrn2<mode>): Likewise.
16912         * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
16913         * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
16914         using builtin.
16915         (vrshrn_high_n_s32): Likewise.
16916         (vrshrn_high_n_s64): Likewise.
16917         (vrshrn_high_n_u16): Likewise.
16918         (vrshrn_high_n_u32): Likewise.
16919         (vrshrn_high_n_u64): Likewise.
16920         (vrshrn_n_s16): Likewise.
16921         (vrshrn_n_s32): Likewise.
16922         (vrshrn_n_s64): Likewise.
16923         (vrshrn_n_u16): Likewise.
16924         (vrshrn_n_u32): Likewise.
16925         (vrshrn_n_u64): Likewise.
16927 2021-02-01  Sergei Trofimovich  <siarheit@google.com>
16929         PR tree-optimization/98499
16930         * ipa-modref.c (analyze_ssa_name_flags): treat RVO
16931         conservatively and assume all possible side-effects.
16933 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16935         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
16936         vec_unpacku_hi_): Define builtins.
16937         * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
16938         builtin.
16939         (vmovl_high_s16): Likewise.
16940         (vmovl_high_s32): Likewise.
16941         (vmovl_high_u8): Likewise.
16942         (vmovl_high_u16): Likewise.
16943         (vmovl_high_u32): Likewise.
16945 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16947         * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
16948         Define builtins.
16949         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
16950         pattern.
16951         * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
16952         UNSPEC_UABDL.
16953         * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
16954         builtin.
16955         (vabdl_s16): Likewise.
16956         (vabdl_s32): Likewise.
16957         (vabdl_u8): Likewise.
16958         (vabdl_u16): Likewise.
16959         (vabdl_u32): Likewise.
16960         * config/aarch64/iterators.md (ABDL): New int iterator.
16961         (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
16963 2021-02-01  Martin Sebor  <msebor@redhat.com>
16965         * tree.h (BLOCK_VARS): Add comment.
16966         (BLOCK_SUBBLOCKS): Same.
16967         (BLOCK_SUPERCONTEXT): Same.
16968         (BLOCK_ABSTRACT_ORIGIN): Same.
16969         (inlined_function_outer_scope_p): Same.
16971 2021-02-01  Martin Sebor  <msebor@redhat.com>
16973         PR middle-end/97172
16974         * attribs.c (attr_access::free_lang_data): Define new function.
16975         * attribs.h (attr_access::free_lang_data): Declare new function.
16977 2021-02-01  Richard Biener  <rguenther@suse.de>
16979         * vec.h (auto_vec::auto_vec): Add memory stat parameters
16980         and pass them on.
16981         * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
16983 2021-02-01  Tamar Christina  <tamar.christina@arm.com>
16985         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
16986         aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
16988 2021-02-01  Richard Biener  <rguenther@suse.de>
16990         PR rtl-optimization/98863
16991         * config/i386/i386-features.c (convert_scalars_to_vector):
16992         Set DF_RD_PRUNE_DEAD_DEFS.
16994 2021-01-31  Eric Botcazou  <ebotcazou@adacore.com>
16996         * system.h (SIZE_MAX): Define if not already defined.
16998 2021-01-30  Aaron Sawdey  <acsawdey@linux.ibm.com>
17000         * config/rs6000/genfusion.pl (gen_2logical): New function to
17001         generate patterns for logical-logical fusion.
17002         * config/rs6000/fusion.md: Regenerated patterns.
17003         * config/rs6000/rs6000-cpus.def: Add
17004         OPTION_MASK_P10_FUSION_2LOGICAL.
17005         * config/rs6000/rs6000.c (rs6000_option_override_internal):
17006         Enable logical-logical fusion for p10.
17007         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
17009 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
17011         * config/rs6000/rs6000.opt: Add periods to new AIX options.
17013 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
17015         * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
17016         (mabi=vec-default): New.
17017         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
17018         __EXTABI__ for AIX Vector extended ABI.
17019         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
17020         extabi info.
17021         (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
17022         are non-volatile.
17023         * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
17025 2021-01-30  Jakub Jelinek  <jakub@redhat.com>
17027         * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
17028         DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
17030 2021-01-29  Vladimir N. Makarov  <vmakarov@redhat.com>
17032         PR target/97701
17033         * lra-constraints.c (in_class_p): Don't narrow class only for REG
17034         or MEM.
17036 2021-01-29  Will Schmidt  <will_schmidt@vnet.ibm.com>
17038         * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
17039         clauses for CODE_FOR_vsx_xvcvuxddp_scale and
17040         CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
17042 2021-01-29  Andrew MacLeod  <amacleod@redhat.com>
17044         PR tree-optimization/98866
17045         * gimple-range-gori.h (gori_compute:set_range_invariant): New.
17046         * gimple-range-gori.cc (gori_map::set_range_invariant): New.
17047         (gori_map::m_maybe_invariant): Rename from all_outgoing.
17048         (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
17049         (gori_map::is_export_p): Ditto.
17050         (gori_map::calculate_gori): Ditto.
17051         (gori_compute::set_range_invariant): New.
17052         * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
17053         invariant for pointers evaluating to [1, +INF].
17055 2021-01-29  Richard Biener  <rguenther@suse.de>
17057         PR rtl-optimization/98863
17058         * config/i386/i386-features.c (remove_partial_avx_dependency):
17059         Do not perform DF analysis.
17060         (pass_data_remove_partial_avx_dependency): Remove
17061         TODO_df_finish.
17063 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
17065         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
17066         builtin generator macros.
17067         * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
17068         Define.
17069         * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
17070         instead of inline asm.
17071         (vmull_n_s32): Likewise.
17072         (vmull_n_u16): Likewise.
17073         (vmull_n_u32): Likewise.
17075 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17077         * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
17078         Define builtins.
17079         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
17080         Rename to...
17081         (aarch64_<sur>abdl2<mode>): ... This.
17082         (<sur>sadv16qi): Adjust use of above.
17083         * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
17084         builtin.
17085         (vabdl_high_s16): Likewise.
17086         (vabdl_high_s32): Likewise.
17087         (vabdl_high_u8): Likewise.
17088         (vabdl_high_u16): Likewise.
17089         (vabdl_high_u32): Likewise.
17091 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17093         * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
17094         builtin.
17095         (uabal2): Likewise.
17096         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
17097         pattern.
17098         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
17099         UNSPEC_UABAL2.
17100         * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
17101         builtin.
17102         (vabal_high_s16): Likewise.
17103         (vabal_high_s32): Likewise.
17104         (vabal_high_u8): Likewise.
17105         (vabal_high_u16): Likewise.
17106         (vabal_high_u32): Likewise.
17107         * config/aarch64/iterators.md (ABAL2): New mode iterator.
17108         (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
17110 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17112         * config/aarch64/aarch64-simd-builtins.def (sabal): Define
17113         builtin.
17114         (uabal): Likewise.
17115         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
17116         Rename to...
17117         (aarch64_<sur>abal<mode>): ... This
17118         (<sur>sadv16qi): Adust use of the above.
17119         * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
17120         builtin.
17121         (vabal_s16): Likewise.
17122         (vabal_s32): Likewise.
17123         (vabal_u8): Likewise.
17124         (vabal_u16): Likewise.
17125         (vabal_u32): Likewise.
17127 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17129         * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
17130         Define builtins.
17131         * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
17132         Define.
17133         * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
17134         builtin.
17135         (vaddlv_s16): Likewise.
17136         (vaddlv_u8): Likewise.
17137         (vaddlv_u16): Likewise.
17138         (vaddlvq_s8): Likewise.
17139         (vaddlvq_s16): Likewise.
17140         (vaddlvq_s32): Likewise.
17141         (vaddlvq_u8): Likewise.
17142         (vaddlvq_u16): Likewise.
17143         (vaddlvq_u32): Likewise.
17144         (vaddlv_s32): Likewise.
17145         (vaddlv_u32): Likewise.
17146         * config/aarch64/iterators.md (VDQV_L): New mode iterator.
17147         (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
17148         (Vwstype): New mode attribute.
17149         (Vwsuf): Likewise.
17150         (VWIDE_S): Likewise.
17151         (USADDLV): New int iterator.
17152         (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
17154 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
17156         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
17157         builtin generator macros.
17158         * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
17159         Define.
17160         * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
17161         instead of inline asm.
17162         (vmlsl_lane_s32): Likewise.
17163         (vmlsl_lane_u16): Likewise.
17164         (vmlsl_lane_u32): Likewise.
17165         (vmlsl_laneq_s16): Likewise.
17166         (vmlsl_laneq_s32): Likewise.
17167         (vmlsl_laneq_u16): Likewise.
17168         (vmlsl_laneq_u32): Likewise.
17170 2021-01-29  Richard Biener  <rguenther@suse.de>
17172         * doc/invoke.texi (--param max-gcse-memory): Document unit
17173         of size.
17174         * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
17175         * params.opt (--param max-gcse-memory): Adjust default and
17176         document unit of size.
17178 2021-01-29  Richard Biener  <rguenther@suse.de>
17180         PR rtl-optimization/98863
17181         * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
17182         HOST_WIDE_INT for the memory estimate.
17184 2021-01-29  Bin Cheng  <bin.cheng@linux.alibaba.com>
17185             Richard Biener  <rguenther@suse.de>
17187         PR tree-optimization/97627
17188         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
17189         Do not analyze fake edges.
17191 2021-01-29  Richard Biener  <rguenther@suse.de>
17193         PR rtl-optimization/98144
17194         * df.h (df_mir_bb_info): Add con_visited member.
17195         * df-problems.c (df_mir_alloc): Initialize con_visited,
17196         do not fully populate IN and OUT.
17197         (df_mir_reset): Likewise.
17198         (df_mir_confluence_0): Set con_visited.
17199         (df_mir_confluence_n): Properly handle implicitely
17200         fully populated IN and OUT as designated by con_visited
17201         and update con_visited accordingly.
17203 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
17205         PR target/98849
17206         * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
17207         vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
17208         && !TARGET_REALLY_IWMMXT to conditions.
17210 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
17212         PR debug/98331
17213         * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
17214         a BARRIER.
17216 2021-01-28  Marek Polacek  <polacek@redhat.com>
17218         PR c++/94775
17219         * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
17220         the main variant, maybe reset it in its variants too.
17221         * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
17222         (check_aligned_type): Check if TYPE_USER_ALIGN match.
17224 2021-01-28  Christophe Lyon  <christophe.lyon@linaro.org>
17226         PR target/98730
17227         * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
17228         of constant zero for comparisons.
17230 2021-01-28  Michael Meissner  <meissner@linux.ibm.com>
17232         * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
17233         support for mapping built-in function names for long double
17234         built-in functions if long double is IEEE 128-bit.
17236 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
17238         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
17239         builtin generator macros.
17240         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
17241         Define.
17242         * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
17243         instead of inline asm.
17244         (vmlsl_n_s32): Likewise.
17245         (vmlsl_n_u16): Likewise.
17246         (vmlsl_n_u32): Likewise.
17248 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
17250         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
17251         builtin generator macros.
17252         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
17253         Define.
17254         * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
17255         instead of inline asm.
17256         (vmlal_n_s32): Likewise.
17257         (vmlal_n_u16): Likewise.
17258         (vmlal_n_u32): Likewise.
17260 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17262         * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
17263         builtin.
17264         * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
17265         Define.
17266         (aarch64_shrn2<mode>_insn_be): Likewise.
17267         (aarch64_shrn2<mode>): Likewise.
17268         * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
17269         using builtins.
17270         (vshrn_high_n_s32): Likewise.
17271         (vshrn_high_n_s64): Likewise.
17272         (vshrn_high_n_u16): Likewise.
17273         (vshrn_high_n_u32): Likewise.
17274         (vshrn_high_n_u64): Likewise.
17276 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17278         * config/aarch64/aarch64-simd-builtins.def (shrn): Define
17279         builtin.
17280         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
17281         Define.
17282         (aarch64_shrn<mode>_insn_be): Likewise.
17283         (aarch64_shrn<mode>): Likewise.
17284         * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
17285         builtins.
17286         (vshrn_n_s32): Likewise.
17287         (vshrn_n_s64): Likewise.
17288         (vshrn_n_u16): Likewise.
17289         (vshrn_n_u32): Likewise.
17290         (vshrn_n_u64): Likewise.
17291         * config/aarch64/iterators.md (vn_mode): New mode attribute.
17293 2021-01-28  Richard Biener  <rguenther@suse.de>
17295         PR rtl-optimization/80960
17296         * dse.c (check_mem_read_rtx): Call get_addr on the
17297         offsetted address.
17299 2021-01-28  Xionghu Luo  <luoxhu@linux.ibm.com>
17300             David Edelsohn  <dje.gcc@gmail.com>
17302         PR target/98799
17303         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17304         Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
17305         when -m32.
17306         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
17307         Delete.
17308         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
17309         wrapper call rs6000_expand_vector_set_var for cleanup.  Call
17310         rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
17311         directly.
17312         (rs6000_expand_vector_set_var): Delete.
17313         (rs6000_expand_vector_set_var_p9): Make static.
17314         (rs6000_expand_vector_set_var_p8): Make static.
17316 2021-01-28  Xing GUO  <higuoxing@gmail.com>
17318         * common/config/riscv/riscv-common.c
17319         (riscv_subset_list::parsing_subset_version): Fix -march option parsing
17320         when `p` extension exists.
17322 2021-01-27  Vladimir N. Makarov  <vmakarov@redhat.com>
17324         PR rtl-optimization/97684
17325         * ira.c (ira): Call ira_set_pseudo_classes before
17326         update_equiv_regs when it is necessary.
17328 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
17330         PR target/98853
17331         * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
17332         %w0, %w1 and %2 instead of %0, %1 and %2.
17334 2021-01-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
17336         * config/rs6000/genfusion.pl: New script to generate
17337         define_insn_and_split patterns so combine can arrange fused
17338         instructions next to each other.
17339         * config/rs6000/fusion.md: New file, generated fused instruction
17340         patterns for combine.
17341         * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
17342         (non_update_memory_operand): New predicate.
17343         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
17344         OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
17345         POWERPC_MASKS.
17346         * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
17347         prototype.
17348         * config/rs6000/rs6000.c (rs6000_option_override_internal):
17349         Automatically set OPTION_MASK_P10_FUSION and
17350         OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
17351         (rs600_opt_masks): Allow -mpower10-fusion
17352         in function attributes.
17353         (address_is_non_pfx_d_or_x): New function.
17354         * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
17355         * config/rs6000/rs6000.md: Include fusion.md.
17356         * config/rs6000/rs6000.opt: Add -mpower10-fusion
17357         and -mpower10-fusion-ld-cmpi.
17358         * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
17360 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
17362         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
17363         builtin generator macros.
17364         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
17365         Rename to...
17366         (aarch64_<su>mlal<mode>): This.
17367         * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
17368         instead of inline asm.
17369         (vmlal_s16): Likewise.
17370         (vmlal_s32): Likewise.
17371         (vmlal_u8): Likewise.
17372         (vmlal_u16): Likewise.
17373         (vmlal_u32): Likewise.
17375 2021-01-27  Richard Biener  <rguenther@suse.de>
17377         PR tree-optimization/98854
17378         * tree-vect-slp.c (vect_build_slp_tree_2): Also build
17379         PHIs from scalars when the number of CTORs matches the
17380         number of children.
17382 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
17384         * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
17385         generator macro.
17386         * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
17387         Rename to...
17388         (aarch64_mls_n<mode>): This.
17389         * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
17390         instead of asm.
17391         (vmls_n_s32): Likewise.
17392         (vmls_n_u16): Likewise.
17393         (vmls_n_u32): Likewise.
17394         (vmlsq_n_s16): Likewise.
17395         (vmlsq_n_s32): Likewise.
17396         (vmlsq_n_u16): Likewise.
17397         (vmlsq_n_u32): Likewise.
17399 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
17401         * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
17402         generator macro.
17403         * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
17404         than asm.
17405         (vmls_s16): Likewise.
17406         (vmls_s32): Likewise.
17407         (vmls_u8): Likewise.
17408         (vmls_u16): Likewise.
17409         (vmls_u32): Likewise.
17410         (vmlsq_s8): Likewise.
17411         (vmlsq_s16): Likewise.
17412         (vmlsq_s32): Likewise.
17413         (vmlsq_u8): Likewise.
17414         (vmlsq_u16): Likewise.
17415         (vmlsq_u32): Likewise.
17417 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
17419         * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
17420         generator macro.
17421         * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
17422         Rename to...
17423         (aarch64_mla_n<mode>): This.
17424         * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
17425         instead of asm.
17426         (vmla_n_s32): Likewise.
17427         (vmla_n_u16): Likewise.
17428         (vmla_n_u32): Likewise.
17429         (vmlaq_n_s16): Likewise.
17430         (vmlaq_n_s32): Likewise.
17431         (vmlaq_n_u16): Likewise.
17432         (vmlaq_n_u32): Likewise.
17434 2021-01-27  liuhongt  <hongtao.liu@intel.com>
17436         PR target/98833
17437         * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
17438         (*sse2_eq<mode>3): Ditto.
17440 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
17442         * tree-pass.h (PROP_trees): Rename to ...
17443         (PROP_gimple): ... this.
17444         * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
17445         * passes.c (execute_function_dump, execute_function_todo,
17446         execute_one_ipa_transform_pass, execute_one_pass): Likewise.
17447         * varpool.c (ctor_for_folding): Likewise.
17449 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
17451         PR tree-optimization/97260
17452         * varpool.c: Include tree-pass.h.
17453         (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
17454         non-TREE_SIDE_EFFECTS automatic variables.
17456 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
17458         * doc/cpp.texi (__cplusplus): Document value for -std=c++23
17459         or -std=gnu++23.
17460         * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
17461         * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
17462         (gen_compile_unit_die): Recognise C++23.
17464 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
17466         PR bootstrap/98839
17467         * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
17468         in comparison.
17470 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
17472         PR target/98681
17473         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
17474         Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
17475         and INTVAL (mask).  Add && INTVAL (mask) > 0 condition.
17477 2021-01-26  Richard Biener  <rguenther@suse.de>
17479         * gimple-pretty-print.c (dump_binary_rhs): Handle
17480         VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
17482 2021-01-26  Richard Biener  <rguenther@suse.de>
17484         PR middle-end/98726
17485         * tree.h (vector_cst_int_elt): Remove.
17486         * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
17487         make static.
17489 2021-01-26  Andrew Stubbs  <ams@codesourcery.com>
17491         * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
17492         for V64DFmode min/max reductions.
17494 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
17496         * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
17497         as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
17498         two halves, one with x and the other with const0_rtx, ordered
17499         depending on endianity.
17501 2021-01-26  Alexandre Oliva  <oliva@adacore.com>
17503         * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
17504         temporaries not seen in binding block, and not about to be
17505         added as gimple variables.
17507 2021-01-25  Martin Sebor  <msebor@redhat.com>
17509         PR c++/98646
17510         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
17512 2021-01-25  Martin Liska  <mliska@suse.cz>
17514         * value-prof.c (get_nth_most_common_value): Use %s instead
17515         of %qs string.
17517 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
17519         PR debug/98811
17520         * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
17521         readelf -wi is able to read the emitted .debug_info back.
17522         * configure: Regenerated.
17524 2021-01-25  Martin Liska  <mliska@suse.cz>
17526         PR gcov-profile/98739
17527         * common.opt: Add missing sign symbol.
17528         * value-prof.c (get_nth_most_common_value): Restore handling
17529         of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
17530         PROFILE_REPRODUCIBILITY_MULTITHREADED.
17532 2021-01-25  Richard Biener  <rguenther@suse.de>
17534         PR middle-end/98807
17535         * tree.c (vector_element_bits): Always use precision of
17536         the element type for boolean vectors.
17538 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17540         * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
17541         (ENDFILE_SPEC): Evaluate qnolinkcmds.
17543 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17545         * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
17546         nostartfiles handling since this is already done by
17547         LINK_COMMAND_SPEC.  Evaluate qnolinkcmds.
17548         (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
17549         is already done by LINK_COMMAND_SPEC.
17550         (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
17551         this is already done by LINK_COMMAND_SPEC.  Remove qnolinkcmds
17552         evaluation.
17554 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
17556         PR testsuite/98771
17557         * fold-const-call.c (host_size_t_cst_p): Renamed to ...
17558         (size_t_cst_p): ... this.  Check and store unsigned HOST_WIDE_INT
17559         value rather than host size_t.
17560         (fold_const_call): Change type of s2 from size_t to
17561         unsigned HOST_WIDE_INT.  Use size_t_cst_p instead of
17562         host_size_t_cst_p.  For strncmp calls, pass MIN (s2, SIZE_MAX)
17563         instead of s2 as last argument.
17565 2021-01-25  Tamar Christina  <tamar.christina@arm.com>
17567         * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
17568         VCMLA_OP, VCMUL_OP): New.
17569         * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
17570         * config/arm/neon.md (cmul<conj_op><mode>3): New.
17571         * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
17572         UNSPEC_VCMUL_CONJ): New.
17573         * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
17574         cml<fcmac1><conj_op><mode>4): New.
17576 2021-01-23  Jakub Jelinek  <jakub@redhat.com>
17578         PR testsuite/97301
17579         * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
17581 2021-01-22  Jonathan Wright  <jonathan.wright@arm.com>
17583         * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
17584         generator macro.
17585         * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
17586         than asm.
17587         (vmla_s16): Likewise.
17588         (vmla_s32): Likewise.
17589         (vmla_u8): Likewise.
17590         (vmla_u16): Likewise.
17591         (vmla_u32): Likewise.
17592         (vmlaq_s8): Likewise.
17593         (vmlaq_s16): Likewise.
17594         (vmlaq_s32): Likewise.
17595         (vmlaq_u8): Likewise.
17596         (vmlaq_u16): Likewise.
17597         (vmlaq_u32): Likewise.
17599 2021-01-22  David Malcolm  <dmalcolm@redhat.com>
17601         * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
17602         directive.
17604 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
17606         PR debug/98796
17607         * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
17608         filenames to emit, still emit the required 0 index directory and
17609         filename entries that match DW_AT_comp_dir and DW_AT_name of the
17610         compilation unit.
17612 2021-01-22  Marek Polacek  <polacek@redhat.com>
17614         PR c++/98545
17615         * doc/invoke.texi: Update C++ ABI Version 15 description.
17617 2021-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17619         PR tree-optimization/98766
17620         * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
17621         comparing against type size with param_avoid_fma_max_bits.
17623 2021-01-22  Richard Biener  <rguenther@suse.de>
17625         PR middle-end/98793
17626         * tree.c (vector_element_bits): Key single-bit bool vector on
17627         integer mode rather than not vector mode.
17629 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
17631         PR target/98093
17632         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17633         Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
17634         platforms.
17635         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
17636         to call different path for P8 and P9.
17637         (rs6000_expand_vector_set_var_p9): New function.
17638         (rs6000_expand_vector_set_var_p8): New function.
17640 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
17642         PR target/79251
17643         PR target/98065
17644         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17645         Ajdust variable index vec_insert from address dereference to
17646         ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
17647         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
17648         New declaration.
17649         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
17651 2021-01-22  Martin Liska  <mliska@suse.cz>
17653         PR gcov-profile/98739
17654         * profile.c (compute_value_histograms): Drop time profile for
17655         -fprofile-reproducible=multithreaded.
17657 2021-01-22  Nathan Sidwell  <nathan@acm.org>
17659         * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
17660         existence here.
17662 2021-01-22  Richard Biener  <rguenther@suse.de>
17664         PR middle-end/98773
17665         * tree-data-ref.c (initalize_matrix_A): Revert previous
17666         change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
17668 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
17670         PR tree-optimization/90248
17671         * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
17672         X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
17673         simplifications.
17674         (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
17675         X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
17677 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
17679         PR tree-optimization/98255
17680         * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
17681         extend index - low_bound from sizetype's precision rather than index
17682         precision.
17683         (get_addr_base_and_unit_offset_1): Likewise.
17684         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
17685         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
17687 2021-01-22  Richard Biener  <rguenther@suse.de>
17689         PR tree-optimization/98786
17690         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
17691         adding new uses of abnormals.  Verify we deal with a conditional
17692         conversion.
17694 2021-01-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17696         PR target/98636
17697         * optc-save-gen.awk: Add arm_fp16_format to checked_options.
17699 2021-01-22  liuhongt  <hongtao.liu@intel.com>
17701         PR target/96891
17702         PR target/98348
17703         * config/i386/sse.md (VI_128_256): New mode iterator.
17704         (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
17705          *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
17706          *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
17707         define_insn_and_split to lower avx512 vector comparison to avx
17708         version when dest is vector.
17709         (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
17710         define_insn_and_split for negating the comparison result.
17711         * config/i386/predicates.md (float_vector_all_ones_operand):
17712         New predicate.
17713         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
17714         general NOT operator without UNSPEC_MASKOP.
17716 2021-01-21  Vladimir N. Makarov  <vmakarov@redhat.com>
17718         PR rtl-optimization/98777
17719         * lra-int.h (lra_pmode_pseudo): New extern.
17720         * lra.c (lra_pmode_pseudo): New global.
17721         (lra): Set it up.
17722         * lra-eliminations.c (eliminate_regs_in_insn): Use it.
17724 2021-01-21  Ilya Leoshkevich  <iii@linux.ibm.com>
17726         * fwprop.c (fwprop_propagation::classify_result): Allow
17727         (subreg (mem)) simplifications.
17729 2021-01-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17731         * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
17732         Split into...
17733         (aarch64_sqdmlal<mode>): ... This...
17734         (aarch64_sqdmlsl<mode>): ... And this.
17735         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
17736         (aarch64_sqdmlal_lane<mode>): ... This...
17737         (aarch64_sqdmlsl_lane<mode>): ... And this.
17738         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
17739         (aarch64_sqdmlsl_laneq<mode>): ... This...
17740         (aarch64_sqdmlal_laneq<mode>):  ... And this.
17741         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
17742         (aarch64_sqdmlsl_n<mode>): ... This...
17743         (aarch64_sqdmlal_n<mode>): ... And this.
17744         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
17745         (aarch64_sqdmlal2<mode>_internal): ... This...
17746         (aarch64_sqdmlsl2<mode>_internal): ... And this.
17748 2021-01-21  Christophe Lyon  <christophe.lyon@linaro.org>
17750         * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
17752 2021-01-21  Andrea Corallo  <andrea.corallo@arm.com>
17754         PR target/96372
17755         * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
17757 2021-01-21  liuhongt  <hongtao.liu@intel.com>
17759         PR rtl-optimization/98694
17760         * regcprop.c (copy_value): If SRC had been assigned a mode
17761         narrower than the copy, we can't link DEST into the chain even
17762         they have same hard_regno_nregs(i.e. HImode/SImode in i386
17763         backend).
17765 2021-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17767         * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
17768         Convert to define_insn_and_split.  Split into simple move when moving
17769         bottom element.
17771 2021-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
17773         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
17774         Adjust comment.  Simplify code.
17776 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
17778         PR debug/98765
17779         * dwarf2out.c (reset_indirect_string): Also reset indirect strings
17780         with DW_FORM_line_strp form.
17781         (prune_unused_types_update_strings): Don't add into debug_str_hash
17782         indirect strings with DW_FORM_line_strp form.
17783         (adjust_name_comp_dir): New function.
17784         (dwarf2out_finish): Call it on CU DIEs after resetting
17785         debug_line_str_hash.
17787 2021-01-20  Vladimir N. Makarov  <vmakarov@redhat.com>
17789         PR rtl-optimization/98722
17790         * lra-eliminations.c (eliminate_regs_in_insn): Check that target
17791         has no 3-op add insn to transform insns containing two pluses.
17793 2021-01-20  Richard Biener  <rguenther@suse.de>
17795         * hwint.h (add_hwi): New function.
17796         (mul_hwi): Likewise.
17797         * tree-data-ref.c (initialize_matrix_A): Properly translate
17798         tree constants and avoid HOST_WIDE_INT_MIN.
17799         (lambda_matrix_row_add): Avoid undefined integer overflow
17800         and return true on such overflow.
17801         (lambda_matrix_right_hermite): Handle overflow from
17802         lambda_matrix_row_add gracefully.  Simplify previous fix.
17803         (analyze_subscript_affine_affine): Likewise.
17805 2021-01-20  Eugene Rozenfeld  <erozen@microsoft.com>
17807         PR tree-optimization/96674
17808         * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
17809         x >= y && y != XXX_MIN --> x > y - 1
17811 2021-01-20  Richard Sandiford  <richard.sandiford@arm.com>
17813         PR tree-optimization/98535
17814         * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
17815         If the high and low permutes are the same, remove the high permutes
17816         from the working set and only continue with the low ones.
17818 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
17820         PR tree-optimization/98721
17821         * builtins.c (access_ref::inform_access): Don't assume
17822         SSA_NAME_IDENTIFIER must be non-NULL.  Print messages about
17823         object whenever allocfn is NULL, rather than only when DECL_P
17824         is true.  Use %qE instead of %qD for that.  Formatting fixes.
17826 2021-01-20  Richard Biener  <rguenther@suse.de>
17828         PR tree-optimization/98758
17829         * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
17830         (lambda_matrix_right_hermite): Avoid undefinedness with
17831         signed integer abs and multiplication.
17832         (analyze_subscript_affine_affine): Use lambda_int.
17834 2021-01-20  David Malcolm  <dmalcolm@redhat.com>
17836         PR debug/98751
17837         * dwarf2out.c (output_line_info): Rename static variable
17838         "generation", moving it out of the function to...
17839         (output_line_info_generation): New.
17840         (init_sections_and_labels): Likewise, renaming the variable to...
17841         (init_sections_and_labels_generation): New.
17842         (dwarf2out_c_finalize): Reset the new variables.
17844 2021-01-19  Martin Sebor  <msebor@redhat.com>
17846         PR middle-end/98664
17847         * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
17848         all functions, even if they're not declared artificial or inline.
17849         * tree.c (tree_inlined_location): Use macro expansion location
17850         only if scope traversal fails to expose one.
17852 2021-01-19  Richard Sandiford  <richard.sandiford@arm.com>
17854         PR rtl-optimization/92294
17855         * alias.c (compare_base_symbol_refs): Take an extra parameter
17856         and add the distance between two symbols to it.  Enshrine in
17857         comments that -1 means "either 0 or 1, but we can't tell
17858         which at compile time".
17859         (memrefs_conflict_p): Update call accordingly.
17860         (rtx_equal_for_memref_p): Likewise.  Take the distance between symbols
17861         into account.
17863 2021-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17865         * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
17866         sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
17867         uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
17868         sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
17869         sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
17870         sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
17871         sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
17872         sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
17873         sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
17874         uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
17875         sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
17876         sqmovun): Use NONE flags.
17878 2021-01-19  Richard Biener  <rguenther@suse.de>
17880         PR ipa/98330
17881         * ipa-modref.c (analyze_stmt): Only record a summary for a
17882         direct call.
17884 2021-01-19  Richard Biener  <rguenther@suse.de>
17886         PR middle-end/98638
17887         * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
17889 2021-01-19  Daniel Hellstrom  <daniel@gaisler.com>
17891         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
17892         built-in define __FIX_LEON3FT_TN0018.
17894 2021-01-19  Richard Biener  <rguenther@suse.de>
17896         PR ipa/97673
17897         * tree-inline.c (tree_function_versioning): Set input_location
17898         to UNKNOWN_LOCATION throughout the function.
17900 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
17902         PR fortran/98476
17903         * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
17905 2021-01-19  Martin Jambor  <mjambor@suse.cz>
17907         PR ipa/98690
17908         * ipa-sra.c (ssa_name_only_returned_p): New parameter fun.  Check
17909         whether non-call exceptions allow removal of a statement.
17910         (isra_analyze_call): Pass the appropriate function to
17911         ssa_name_only_returned_p.
17913 2021-01-19  Geng Qi  <gengqi@linux.alibaba.com>
17915         * config/riscv/arch-canonicalize (longext_sort): New function for
17916          sorting 'multi-letter'.
17917         * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
17918         'alts'. The 'arch' may not be the first of 'alts'.
17919         (_expand_combination): Add underline for the 'ext' without '*'.
17920         This is because, a single-letter extension can always be treated well
17921         with a '_' prefix, but it cannot be separated out if it is appended
17922         to a multi-letter.
17924 2021-01-18  Vladimir N. Makarov  <vmakarov@redhat.com>
17926         PR target/97847
17927         * ira.c (ira): Skip abnormal critical edge splitting.
17929 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
17931         PR tree-optimization/98727
17932         * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
17933         second .MUL_OVERFLOW operand for signed multiplication with overflow
17934         checking if the second operand of multiplication is not constant.
17936 2021-01-18  David Edelsohn  <dje.gcc@gmail.com>
17938         * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
17939         defaults to version 4.
17941 2021-01-18  David Malcolm  <dmalcolm@redhat.com>
17943         * attribs.h (fndecl_dealloc_argno): New decl.
17944         * builtins.c (call_dealloc_argno): Split out second half of
17945         function into...
17946         (fndecl_dealloc_argno): New.
17947         * doc/extend.texi (Common Function Attributes): Document the
17948         interaction between the analyzer and the malloc attribute.
17949         * doc/invoke.texi (Static Analyzer Options): Likewise.
17951 2021-01-17  David Edelsohn  <dje.gcc@gmail.com>
17953         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
17954         dwarf_version to 4.
17955         * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
17957 2021-01-17  Martin Jambor  <mjambor@suse.cz>
17959         PR ipa/98222
17960         * cgraph.c (clone_of_p): Check also former_clone_of as we climb
17961         the clone tree.
17963 2021-01-17  Mark Wielaard  <mark@klomp.org>
17965         * common.opt (gdwarf-): Init(5).
17966         * doc/invoke.texi (-gdwarf): Document default to 5.
17968 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
17970         * builtin-types.def
17971         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
17972         to...
17973         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
17974         ...this.  Add extra argument.
17975         * gimplify.c (omp_default_clause): Ensure that event handle is
17976         firstprivate in a task region.
17977         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
17978         (gimplify_adjust_omp_clauses): Likewise.
17979         * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
17980         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
17981         * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
17982         if detach clause specified.  Add detach argument when generating
17983         call to GOMP_task.
17984         * omp-low.c (scan_sharing_clauses): Setup data environment for detach
17985         clause.
17986         (finish_taskreg_scan): Move field for variable containing the event
17987         handle to the front of the struct.
17988         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH.  Fix
17989         ordering.
17990         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
17991         OMP_CLAUSE_DETACH clause.
17992         (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
17993         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
17994         * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
17995         Fix ordering.
17996         (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH.  Fix
17997         ordering.
17998         (walk_tree_1): Handle OMP_CLAUSE_DETACH.
18000 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18002         * config/nios2/t-rtems: Reset all MULTILIB_* variables.  Shorten
18003         multilib directory names.  Use MULTILIB_REQUIRED instead of
18004         MULTILIB_EXCEPTIONS.  Add -mhw-mul -mhw-mulx -mhw-div
18005         -mcustom-fpu-cfg=fph2 multilib.
18007 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18009         * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
18010         (nios2_init_fpu_configs): Provide register values for new
18011         -mcustom-fpu-cfg=fph2 option variant.
18012         * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
18013         variant.
18015 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18017         * config/nios2/nios2.c (nios2_custom_check_insns): Remove
18018         custom instruction warnings.
18020 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
18022         PR tree-optimization/96669
18023         * match.pd ((CST << x) & 1 -> x == 0): New simplification.
18025 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
18027         PR tree-optimization/96271
18028         * passes.def: Pass false argument to first two pass_cd_dce
18029         instances and true to last instance.  Add comment that
18030         last instance rewrites no longer addressed locals.
18031         * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
18032         initialize it.
18033         (pass_cd_dce::set_pass_param): New method.
18034         (pass_cd_dce::execute): Return TODO_update_address_taken from
18035         last cd_dce instance.
18037 2021-01-15  Carl Love  <cel@us.ibm.com>
18039         * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
18040         New defines.
18041         * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
18042         * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
18043         DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
18044         DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
18045         MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
18046         Add builtin define.
18047         (MULH, DIVE, MOD):  Add new BU_P10_OVERLOAD_2 definitions.
18048         * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
18049         VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
18050         New overloaded definitions.
18051         (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
18052         P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
18053         P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
18054         P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
18055         P10V_BUILTIN_MULHU_V4SI]: Add case
18056         statement for builtins.
18057         * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
18058         * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
18059         (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
18060         (vsx_mul_v2di): Add if TARGET_POWER10 statement.
18061         (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
18062         (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
18063         mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
18064         Add define_insn, mode is VIlong.
18065         * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
18066         Add builtin descriptions.
18068 2021-01-15  Eric Botcazou  <ebotcazou@adacore.com>
18070         * final.c (final_start_function_1): Reset force_source_line.
18072 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
18074         PR tree-optimization/96669
18075         * match.pd (((1 << A) & 1) != 0 -> A == 0,
18076         ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
18077         possibly different power of two constants and to right shift too.
18079 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
18081         PR tree-optimization/96681
18082         * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
18083         ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
18084         ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
18085         ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
18087 2021-01-15  Alexandre Oliva  <oliva@adacore.com>
18089         * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
18091 2021-01-15  Tamar Christina  <tamar.christina@arm.com>
18093         * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
18094         cmul<conj_op><mode>3): New.
18095         * config/aarch64/iterators.md (UNSPEC_FCMUL,
18096         UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
18097         UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
18098         FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
18099         sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
18100         (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
18101         (rot_op): Renamed to conj_op.
18102         * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
18103         cmul<conj_op><mode>3): New.
18104         * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
18105         cmul<conj_op><mode>3): New.
18107 2021-01-15  David Malcolm  <dmalcolm@redhat.com>
18109         PR bootstrap/98696
18110         * diagnostic.c
18111         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
18112         Escape the tempfile name when constructing the expected output.
18114 2021-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18116         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
18117         Rename to...
18118         (aarch64_<su>mlsl_hi<mode>): ... This.
18119         (aarch64_<su>mlsl_hi<mode>): Define.
18120         (*aarch64_<su>mlsl<mode): Rename to...
18121         (aarch64_<su>mlsl<mode): ... This.
18122         * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
18123         smlsl_hi, umlsl_hi): Define builtins.
18124         * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
18125         vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
18126         vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
18127         vmlsl_u16, vmlsl_u32): Reimplement with builtins.
18129 2021-01-15  Uroš Bizjak  <ubizjak@gmail.com>
18131         * config/i386/i386-c.c (ix86_target_macros):
18132         Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
18134 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
18136         PR target/88836
18137         * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
18138         * Makefile.in (RTL_SSA_H): New variable.
18139         * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
18140         * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
18141         * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
18142         pass_combine.
18143         * config/aarch64/aarch64-cc-fusion.cc: New file.
18145 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
18147         * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
18148         calling cancel_changes for changes that no longer exist.
18150 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
18152         * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
18153         (function_info::reg_defs): ...this.
18154         * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
18155         (function_info::reg_defs): ...this.
18157 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
18159         PR target/71233
18160         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
18162 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
18164         Revert:
18165         2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
18167         PR target/71233
18168         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
18170 2021-01-15  Richard Biener  <rguenther@suse.de>
18172         PR tree-optimization/96376
18173         * tree-vect-stmts.c (get_load_store_type): Disregard alignment
18174         for VMAT_INVARIANT.
18176 2021-01-15  Martin Liska  <mliska@suse.cz>
18178         * doc/install.texi: Document that some tests need pytest module.
18179         * doc/sourcebuild.texi: Likewise.
18181 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
18183         PR target/71233
18184         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
18186 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
18188         * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
18189         (mve_vshrq_n_u<mode>_imm): Likewise.
18190         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
18191         * config/arm/vec-common.md: ... here.
18193 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
18195         * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
18196         vec-commond.md.
18197         * config/arm/neon.md (vashl<mode>3): Delete.
18198         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
18199         (vasl<mode>3): New expander.
18201 2021-01-15  Richard Biener  <rguenther@suse.de>
18203         PR tree-optimization/98685
18204         * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
18205         of vector extern defs.
18207 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
18209         PR jit/98586
18210         * diagnostic.c (diagnostic_kind_text): Break out this array
18211         from...
18212         (diagnostic_build_prefix): ...here.
18213         (fancy_abort): Detect when diagnostic_initialize has not yet been
18214         called and fall back to a minimal implementation of printing the
18215         ICE, rather than segfaulting in internal_error.
18217 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
18219         * diagnostic.c (diagnostic_initialize): Eliminate
18220         parseable_fixits_p in favor of initializing extra_output_kind from
18221         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
18222         (convert_column_unit): New function, split out from...
18223         (diagnostic_converted_column): ...this.
18224         (print_parseable_fixits): Add "column_unit" and "tabstop" params.
18225         Use them to call convert_column_unit on the column values.
18226         (diagnostic_report_diagnostic): Eliminate conditional on
18227         parseable_fixits_p in favor of a switch statement on
18228         extra_output_kind, passing the appropriate values to the new
18229         params of print_parseable_fixits.
18230         (selftest::test_print_parseable_fixits_none): Update for new
18231         params of print_parseable_fixits.
18232         (selftest::test_print_parseable_fixits_insert): Likewise.
18233         (selftest::test_print_parseable_fixits_remove): Likewise.
18234         (selftest::test_print_parseable_fixits_replace): Likewise.
18235         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
18236         New.
18237         (selftest::diagnostic_c_tests): Call it.
18238         * diagnostic.h (enum diagnostics_extra_output_kind): New.
18239         (diagnostic_context::parseable_fixits_p): Delete field in favor
18240         of...
18241         (diagnostic_context::extra_output_kind): ...this new field.
18242         * doc/invoke.texi (Environment Variables): Add
18243         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
18244         * opts.c (common_handle_option): Update handling of
18245         OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
18246         fields.
18248 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
18250         * tree-vect-slp-patterns.c (class complex_operations_pattern,
18251         complex_operations_pattern::matches,
18252         complex_operations_pattern::recognize,
18253         complex_operations_pattern::build): New.
18254         (slp_patterns): Use it.
18256 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
18258         * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
18259         * optabs.def (cmls_optab, cmls_conj_optab): New.
18260         * doc/md.texi: Document them.
18261         * tree-vect-slp-patterns.c (class complex_fms_pattern,
18262         complex_fms_pattern::matches, complex_fms_pattern::recognize,
18263         complex_fms_pattern::build): New.
18265 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
18267         * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
18268         * optabs.def (cmla_optab, cmla_conj_optab): New.
18269         * doc/md.texi: Document them.
18270         * tree-vect-slp-patterns.c (vect_match_call_p,
18271         class complex_fma_pattern, vect_slp_reset_pattern,
18272         complex_fma_pattern::matches, complex_fma_pattern::recognize,
18273         complex_fma_pattern::build): New.
18275 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
18277         * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
18278         * optabs.def (cmul_optab, cmul_conj_optab): New.
18279         * doc/md.texi: Document them.
18280         * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
18281         vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
18282         vect_build_combine_node, class complex_mul_pattern,
18283         complex_mul_pattern::matches, complex_mul_pattern::recognize,
18284         complex_mul_pattern::build): New.
18286 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
18288         * tree-vect-slp.c (optimize_load_redistribution_1): New.
18289         (optimize_load_redistribution, vect_is_slp_load_node): New.
18290         (vect_match_slp_patterns): Use it.
18292 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
18294         * tree-vect-slp-patterns.c (complex_add_pattern::build):
18295         Elide nodes.
18297 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
18299         * config/gcn/mkoffload.c (main): Create an offload image only in
18300         64-bit configurations.
18302 2021-01-14  H.J. Lu  <hjl.tools@gmail.com>
18304         PR target/98667
18305         * config/i386/i386-options.c (ix86_option_override_internal):
18306         Issue an error for -fcf-protection with CF_BRANCH when compiling
18307         for 32-bit non-TARGET_CMOV targets.
18309 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
18311         PR target/98671
18312         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
18313         Remove declaration and initialization of shadow variable "ret".
18314         (ix86_option_override_internal): Remove delcaration of
18315         shadow variable "i".  Redeclare shadowed variable to unsigned.
18316         * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
18317         * config/i386/i386-builtins.c (get_builtin_code_for_version):
18318         Update for redeclaration.
18319         * config/i386/i386.h (pta_size): Ditto.
18321 2021-01-14  Richard Biener  <rguenther@suse.de>
18323         PR tree-optimization/98674
18324         * tree-data-ref.c (base_supports_access_fn_components_p): New.
18325         (initialize_data_dependence_relation): For two bases without
18326         possible access fns resort to type size equality when determining
18327         shape compatibility.
18329 2021-01-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18331         PR target/66791
18332         * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
18333         <=, >= operators in vcle and vcge intrinsics respectively.
18334         * config/arm/arm_neon_builtins.def: Remove entry for
18335         vcge and vcgeu.
18337 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
18339         PR target/98671
18340         * config/i386/i386-options.c (ix86_function_specific_save):
18341         Remove redundant assignment to opts->x_ix86_branch_cost.
18342         * config/i386/i386.c (ix86_prefetch_sse):
18343         Rename from x86_prefetch_sse.  Update all uses.
18344         * config/i386/i386.h: Update for rename.
18345         * config/i386/i386-options.h: Ditto.
18347 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
18349         PR target/98670
18350         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
18351         *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
18352         Use Bm instead of m for non-avx.  Add isa attribute.
18354 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
18356         PR tree-optimization/96688
18357         * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
18358         ~X can be simplified.
18360 2021-01-14  Richard Sandiford  <richard.sandiford@arm.com>
18362         * tree-vect-stmts.c (vect_model_load_cost): Account for unused
18363         IFN_LOAD_LANES results.
18365 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18367         * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
18368         Define.
18369         (aarch64_xtn<mode>): Likewise.
18370         * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
18371         Define
18372         builtins.
18373         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
18374         builtin.
18375         (vmovl_s16): Likewise.
18376         (vmovl_s32): Likewise.
18377         (vmovl_u8): Likewise.
18378         (vmovl_u16): Likewise.
18379         (vmovl_u32): Likewise.
18380         (vmovn_s16): Likewise.
18381         (vmovn_s32): Likewise.
18382         (vmovn_s64): Likewise.
18383         (vmovn_u16): Likewise.
18384         (vmovn_u32): Likewise.
18385         (vmovn_u64): Likewise.
18387 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18389         * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
18390         Define.
18391         (aarch64_<su>qxtn2<mode>_be): Likewise.
18392         (aarch64_<su>qxtn2<mode>): Likewise.
18393         * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
18394         Define builtins.
18395         * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
18396         (su): Handle ss_truncate and us_truncate.
18397         * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
18398         builtin.
18399         (vqmovn_high_s32): Likewise.
18400         (vqmovn_high_s64): Likewise.
18401         (vqmovn_high_u16): Likewise.
18402         (vqmovn_high_u32): Likewise.
18403         (vqmovn_high_u64): Likewise.
18405 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18407         * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
18408         Define.
18409         (aarch64_xtn2<mode>_be): Likewise.
18410         (aarch64_xtn2<mode>): Likewise.
18411         * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
18412         builtins.
18413         * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
18414         builtins.
18415         (vmovn_high_s32): Likewise.
18416         (vmovn_high_s64): Likewise.
18417         (vmovn_high_u16): Likewise.
18418         (vmovn_high_u32): Likewise.
18419         (vmovn_high_u64): Likewise.
18421 2021-01-13  Stafford Horne  <shorne@gmail.com>
18423         * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
18425 2021-01-13  Stafford Horne  <shorne@gmail.com>
18427         * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
18429 2021-01-13  Stafford Horne  <shorne@gmail.com>
18431         * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
18432           define for __or1k_hard_float__.
18434 2021-01-13  Stafford Horne  <shorne@gmail.com>
18436         * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
18437         (PROFILE_HOOK): Define to call _mcount.
18438         (FUNCTION_PROFILER): Change from abort to no-op.
18440 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
18442         PR tree-optimization/96691
18443         * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
18444         (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
18445         (~D ^ C) or (D ^ C) can be simplified.
18447 2021-01-13  Richard Biener  <rguenther@suse.de>
18449         PR tree-optimization/92645
18450         * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
18451         until after vector lowering.
18453 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
18455         * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
18456         to SVE_I.
18457         (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
18458         (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
18460 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
18462         * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
18463         to SVE_I.
18464         (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
18465         (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
18467 2021-01-13  Richard Biener  <rguenther@suse.de>
18469         PR tree-optimization/92645
18470         * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
18471         BIT_FIELD_REF argument.
18472         (vect_build_slp_tree_2): Record the desired vector type
18473         on the external vector def.
18474         (vectorizable_slp_permutation): Handle required punning
18475         of existing vector defs.
18477 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
18479         * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
18481 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
18483         * config/sh/sh.md (movsf_ie): Remove operands[2] test.
18485 2021-01-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18487         * config.gcc [$target == *-*-gnu*]: Enable
18488         'default_gnu_indirect_function'.
18490 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
18492         PR target/95905
18493         * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
18494         registers before calling targetm.vectorize.vec_perm_const, only after
18495         that.
18496         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
18497         two argument permutation when one operand is zero vector and only
18498         after that force operands into registers.
18499         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
18500         define_insn_and_split pattern.
18501         (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
18502         (*avx512f_zero_extendv16hiv16si2_1): Likewise.
18503         (*avx2_zero_extendv8hiv8si2_1): Likewise.
18504         (*avx512f_zero_extendv8siv8di2_1): Likewise.
18505         (*avx2_zero_extendv4siv4di2_1): Likewise.
18506         * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
18507         into registers.
18508         * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
18509         * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
18510         * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
18511         * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
18512         * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
18513         * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise.  Use std::swap.
18515 2021-01-13  Martin Liska  <mliska@suse.cz>
18517         PR tree-optimization/98455
18518         * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
18519         Record also virtual PHIs.
18520         (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
18521         conditionally.
18523 2021-01-13  Jonathan Wakely  <jwakely@redhat.com>
18525         * doc/invoke.texi (C++ Modules): Fix typos.
18527 2021-01-13  Richard Biener  <rguenther@suse.de>
18529         PR tree-optimization/98640
18530         * tree-ssa-sccvn.c (visit_nary_op): Do not try to
18531         handle plus or minus from a truncated operand to be
18532         sign-extended.
18534 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
18536         PR target/96938
18537         * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
18538         define_insn_and_split patterns.
18539         (splitter after *btr<mode>_2): New splitter.
18541 2021-01-13  Martin Liska  <mliska@suse.cz>
18543         PR ipa/98652
18544         * cgraphunit.c (analyze_functions): Remove dead code.
18546 2021-01-13  Qian Jianhua  <qianjh@cn.fujitsu.com>
18548         * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
18549         * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
18550         (a64fx_regmove_cost, a64fx_vector_cost): New.
18551         (a64fx_tunings): Use the new added cost tables.
18553 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
18555         PR target/95905
18556         * config/i386/predicates.md (pmovzx_parallel): New predicate.
18557         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
18558         define_insn_and_split pattern.
18559         (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
18560         (*sse4_1_zero_extendv2siv2di2_3): Likewise.
18562 2021-01-13  Julian Brown  <julian@codesourcery.com>
18564         * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
18565         to fix v0 register.
18567 2021-01-13  Julian Brown  <julian@codesourcery.com>
18569         * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
18570         on entry to a BB.
18572 2021-01-13  Julian Brown  <julian@codesourcery.com>
18574         * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
18575         for reciprocal-approximation instructions.
18576         (div<mode>3): Use fused multiply-accumulate operations for reciprocal
18577         refinement and division result.
18578         * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
18580 2021-01-13  Julian Brown  <julian@codesourcery.com>
18582         * config/gcn/gcn-valu.md (subdf): Rename to...
18583         (subdf3): This.
18585 2021-01-12  Martin Liska  <mliska@suse.cz>
18587         * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
18589 2021-01-12  Andrea Corallo  <andrea.corallo@arm.com>
18591         * function-abi.h: Fix typo.
18593 2021-01-12  Christophe Lyon  <christophe.lyon@linaro.org>
18595         PR target/97875
18596         PR target/97875
18597         * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
18598         (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
18599         (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
18600         (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
18601         (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
18602         (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
18603         (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
18604         (ARM_HAVE_NEON_V2DI_LDST): Likewise.
18605         (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
18606         (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
18607         (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
18608         (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
18609         (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
18610         (ARM_HAVE_V2DI_LDST): Likewise.
18611         * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
18612         (*movmisalign<mode>_mve_load): New pattern.
18613         * config/arm/neon.md (movmisalign<mode>): Move to ...
18614         * config/arm/vec-common.md: ... here.
18616 2021-01-12  Vladimir N. Makarov  <vmakarov@redhat.com>
18618         PR target/97969
18619         * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
18620         of pattern 'plus (plus (hard reg, const), pseudo)'.
18622 2021-01-12  Richard Biener  <rguenther@suse.de>
18624         PR tree-optimization/98550
18625         * tree-vect-slp.c (vect_record_max_nunits): Check whether
18626         the group size is a multiple of the vector element count.
18627         (vect_build_slp_tree_1): When we need to fail because
18628         the vector type choosen causes unrolling do so lazily
18629         without affecting matches only at the end to guide group splitting.
18631 2021-01-12  Martin Liska  <mliska@suse.cz>
18633         PR c++/97284
18634         * optc-save-gen.awk: Compare also n_target_save vars with
18635         strcmp.
18637 2021-01-12  Martin Liska  <mliska@suse.cz>
18639         * gcov.c (source_info::debug): New.
18640         (print_usage): Add --debug (-D) option.
18641         (process_args): Likewise.
18642         (generate_results): Call src->debug after
18643         accumulate_line_counts.
18644         (read_graph_file): Properly assign id for EXIT_BLOCK.
18645         * profile.c (branch_prob): Dump function body before it is
18646         instrumented.
18648 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
18650         PR tree-optimization/98629
18651         * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
18652         unless returning non-zero.
18654 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
18656         PR tree-optimization/95731
18657         * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
18658         x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
18659         (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
18660         only after optimize_range_tests_var_bound.
18662 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
18664         * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
18665         * configure: Regenerated.
18667 2021-01-12  liuhongt  <hongtao.liu@intel.com>
18669         PR target/98612
18670         * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
18671         Deleted.
18672         * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
18673         dead code.
18675 2021-01-12  Alexandre Oliva  <oliva@adacore.com>
18677         * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
18678         declare.
18679         (auto_end_imm_use_stmt_traverse): New struct.
18680         (FOR_EACH_IMM_USE_STMT): Use it.
18681         (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
18682         along with uses...
18683         * gimple-ssa-strength-reduction.c: ... here, ...
18684         * graphite-scop-detection.c: ... here, ...
18685         * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
18686         * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
18687         * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
18688         * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
18689         * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
18690         * tree-vect-slp.c: ... and here, ...
18691         * doc/tree-ssa.texi: ... and the example here.
18693 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
18695         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
18696         SVE_FULL_I to SVE_I.  Generate an UNSPEC_PRED_X.
18697         (*sdiv_pow2<mode>3): New pattern.
18698         (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
18699         Wrap the ASRD in an UNSPEC_PRED_X.
18700         (*cond_<sve_int_op><mode>_2): Likewise.  Replace the UNSPEC_PRED_X
18701         predicate with a constant PTRUE, if it isn't already.
18702         (*cond_<sve_int_op><mode>_z): Replace with...
18703         (*cond_<sve_int_op><mode>_any): ...this new pattern.
18705 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
18707         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
18708         SVE_FULL_I to SVE_I.
18709         (*cond_bic<mode>_any): Likewise.
18711 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
18713         * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
18714         (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
18715         to SVE_I.
18717 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
18719         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
18720         SVE_FULL_I to SVE_I.
18721         (*aarch64_cond_<su>abd<mode>_2): Likewise.
18722         (*aarch64_cond_<su>abd<mode>_any): Likewise.
18723         (@aarch64_pred_<su>abd<mode>): Likewise.  Use UNSPEC_PRED_X
18724         for the max and min but not for the minus.
18725         (*aarch64_cond_<su>abd<mode>_3): New pattern.
18727 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
18729         * config/aarch64/iterators.md (SVE_24I): New iterator.
18730         * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
18731         SVE_FULL_SDI to SVE_24I.  Use containers rather than elements.
18733 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
18735         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
18736         (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
18737         to SVE_I.
18738         (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
18739         (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
18740         (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
18741         (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
18743 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
18745         * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
18746         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
18747         (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
18748         to SVE_I.
18750 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
18752         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
18753         (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
18754         (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
18756 2021-01-11  Martin Liska  <mliska@suse.cz>
18758         PR jit/98615
18759         * symtab-clones.h (clone_info::release): Release
18760         symtab::m_clones with ggc_delete as it's a GGC memory.
18762 2021-01-11  Matthias Klose  <doko@ubuntu.com>
18764         * Makefile.in (LINK_PROGRESS): Show the link target.
18766 2021-01-11  Richard Biener  <rguenther@suse.de>
18768         PR tree-optimization/91403
18769         * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
18770         single-element interleaving group size at 4096 elements.
18772 2021-01-11  Richard Biener  <rguenther@suse.de>
18774         PR tree-optimization/98526
18775         * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
18776         of the actual reduction op for the regular case.
18777         (vectorizable_reduction): Cost the stmts
18778         vect_transform_reduction produces here.
18780 2021-01-11  Andreas Krebbel  <krebbel@linux.ibm.com>
18782         * tree-ssa-forwprop.c (simplify_vector_constructor): For
18783         big-endian, use UNPACK[_FLOAT]_HI.
18785 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
18787         * tree-vect-slp-patterns.c (class complex_pattern,
18788         class complex_add_pattern): Add parameters to matches.
18789         (complex_add_pattern::build): Free memory.
18790         (complex_add_pattern::matches): Move validation end of match.
18791         (complex_add_pattern::recognize): Likewise.
18793 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
18795         * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
18797 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
18799         * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
18801 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
18803         PR tree-optimization/95867
18804         * tree-ssa-math-opts.h: New header.
18805         * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
18806         (powi_as_mults): No longer static.  Use build_one_cst instead of
18807         build_real.  Formatting fix.
18808         * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
18809         (attempt_builtin_powi): Handle multiplication reassociation without
18810         powi_fndecl using powi_as_mults.
18811         (reassociate_bb): For integral types don't require
18812         -funsafe-math-optimizations to call attempt_builtin_powi.
18814 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
18816         PR tree-optimization/95852
18817         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
18818         mul_stmts parameter type to vec<gimple *> &.  Before cond_stmt
18819         allow in the bb any of the stmts in that vector, div_stmt and
18820         up to 3 cast stmts.
18821         (arith_cast_equal_p): New function.
18822         (arith_overflow_check_p): Add cast_stmt argument, handle signed
18823         multiply overflow checks.
18824         (match_arith_overflow): Adjust caller.  Handle signed multiply
18825         overflow checks.
18827 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
18829         PR tree-optimization/95852
18830         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
18831         (uaddsub_overflow_check_p): Renamed to ...
18832         (arith_overflow_check_p): ... this.  Handle also multiplication
18833         with overflow check.
18834         (match_uaddsub_overflow): Renamed to ...
18835         (match_arith_overflow): ... this.  Add cfg_changed argument.  Handle
18836         also multiplication with overflow check.  Adjust function comment.
18837         (math_opts_dom_walker::after_dom_children): Adjust callers.  Call
18838         match_arith_overflow also for MULT_EXPR.
18840 2021-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18842         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
18843         __builtin_convertvector.
18844         (vmovl_s16): Likewise.
18845         (vmovl_s32): Likewise.
18846         (vmovl_u8): Likewise.
18847         (vmovl_u16): Likewise.
18848         (vmovl_u32): Likewise.
18849         (vmovn_s16): Likewise.
18850         (vmovn_s32): Likewise.
18851         (vmovn_s64): Likewise.
18852         (vmovn_u16): Likewise.
18853         (vmovn_u32): Likewise.
18854         (vmovn_u64): Likewise.
18856 2021-01-11  Martin Liska  <mliska@suse.cz>
18858         * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
18859         (if_chain::is_beneficial): Delete clusters
18860         (find_conditions): Make second argument of conditions_in_bbs a
18861         pointer so that we control over it's lifetime.
18862         (pass_if_to_switch::execute): Delete them.
18864 2021-01-11  Kewen Lin  <linkw@linux.ibm.com>
18866         * ira.c (move_unallocated_pseudos): Check other_reg and skip if
18867         it isn't set.
18869 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
18871         * config/vax/vax.md (cc): Remove mode attribute.
18872         (subst_<cc>, subst_f<cc>): Rename to...
18873         (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
18874         (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
18875         (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
18876         (*branch_<mode>, *branch_<mode>_reversed): Likewise.
18878 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
18880         * config/vax/vax.md (subst_f<cc>): Add mode to operands and
18881         `const_double_zero'.
18883 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
18885         * config/pdp11/pdp11.md (PDPfp): New mode iterator.
18886         (fcc_cc, fcc_ccnz): Use it.  Add mode to `const_double_zero' and
18887         operands.
18889 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
18891         * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
18892         rtx.
18893         * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
18894         with `const_double_zero'.
18895         * doc/rtl.texi (Constant Expression Types): Document it.
18897 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
18899         PR c++/98556
18900         * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
18901         POINTER_DIFF_EXPR to be any integral type.
18903 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
18905         PR rtl-optimization/98603
18906         * function.c (instantiate_virtual_regs_in_insn): For asm goto
18907         with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
18908         if any, set ASM_OPERANDS mode to VOIDmode and change
18909         ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
18911 2021-01-09  Alexandre Oliva  <oliva@gnu.org>
18913         PR debug/97714
18914         * final.c (notice_source_line): Narrow down the condition to
18915         skip a line-0 marker.
18917 2021-01-08  Sergei Trofimovich  <siarheit@google.com>
18919         * ipa-modref.c (merge_call_side_effects): Fix
18920         linebreak split by reordering two print calls.
18922 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
18924         * config/s390/vector.md (*tf_to_fprx2_0): Rename from
18925         "*mov_tf_to_fprx2_0" for consistency, fix constraint.
18926         (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
18927         consistency, fix constraint.
18929 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
18931         * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
18932         callables instead of mask values.
18933         (struct target_flag_set_p): New predicate.
18934         (s390_cpu_cpp_builtins_internal): Define or undefine
18935         __LONG_DOUBLE_VX__ macro.
18937 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
18939         PR target/98482
18940         * config/i386/i386.c (x86_function_profiler): Use R10 and R11
18941         to call mcount in large model with PIC for NO_PROFILE_COUNTERS
18942         targets.
18944 2021-01-08  Richard Biener  <rguenther@suse.de>
18946         * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
18948 2021-01-08  Richard Biener  <rguenther@suse.de>
18950         * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
18951         (vect_build_slp_tree): On cache hit release the matched
18952         scalar stmts vector.
18953         * tree-vect-stmts.c (vectorizable_store): Properly free
18954         vec_oprnds before possibly gathering them again.
18956 2021-01-08  Richard Biener  <rguenther@suse.de>
18958         PR tree-optimization/98544
18959         * tree-vect-slp.c (vect_optimize_slp): Always materialize
18960         permutes at a permute node.
18962 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
18964         PR target/98482
18965         * config/i386/i386.c (x86_function_profiler): Use R10 to call
18966         mcount in large model.  Sorry for large model with PIC.
18968 2021-01-08  Jakub Jelinek  <jakub@redhat.com>
18970         PR target/98585
18971         * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
18972         ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
18973         ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
18974         TargetSave and initialize for variables with enum types.
18975         (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
18976         mstack-protector-guard-symbol=): Add Save.
18977         * config/i386/i386-options.c (ix86_function_specific_save,
18978         ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
18979         x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
18980         x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
18981         x_ix86_veclibabi_type.
18983 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
18985         * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
18986         SVE_FULL_I to SVE_I.
18987         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
18989 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
18991         * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
18992         SVE_FULL_I to SVE_I.
18993         (*cond_uxt<mode>_any): Likewise.
18995 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18997         * config/aarch64/iterators.md (Vwhalf): New iterator.
18998         * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
18999         Rename to...
19000         (aarch64_<sur>adalp<mode>): ... This.  Make more
19001         builtin-friendly.
19002         (<sur>sadv16qi): Adjust callsite of the above.
19003         * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
19004         builtins.
19005         * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
19006         builtins.
19007         (vpadal_s16): Likewise.
19008         (vpadal_u8): Likewise.
19009         (vpadal_u16): Likewise.
19010         (vpadalq_s8): Likewise.
19011         (vpadalq_s16): Likewise.
19012         (vpadalq_s32): Likewise.
19013         (vpadalq_u8): Likewise.
19014         (vpadalq_u16): Likewise.
19015         (vpadalq_u32): Likewise.
19017 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19019         * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
19020         Rename to...
19021         (aarch64_<su>abd<mode>): ... This.
19022         (<sur>sadv16qi): Adjust callsite of the above.
19023         * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
19024         builtins.
19025         * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
19026         builtin.
19027         (vabd_s16): Likewise.
19028         (vabd_s32): Likewise.
19029         (vabd_u8): Likewise.
19030         (vabd_u16): Likewise.
19031         (vabd_u32): Likewise.
19032         (vabdq_s8): Likewise.
19033         (vabdq_s16): Likewise.
19034         (vabdq_s32): Likewise.
19035         (vabdq_u8): Likewise.
19036         (vabdq_u16): Likewise.
19037         (vabdq_u32): Likewise.
19039 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19041         * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
19042         builtins.
19043         * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
19044         (vaba_s16): Likewise.
19045         (vaba_s32): Likewise.
19046         (vaba_u8): Likewise.
19047         (vaba_u16): Likewise.
19048         (vaba_u32): Likewise.
19049         (vabaq_s8): Likewise.
19050         (vabaq_s16): Likewise.
19051         (vabaq_s32): Likewise.
19052         (vabaq_u8): Likewise.
19053         (vabaq_u16): Likewise.
19054         (vabaq_u32): Likewise.
19056 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19058         * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
19059         (aarch64_<su>aba<mode>): ... This.  Handle uaba as well.
19060         Change RTL pattern to match.
19062 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
19064         * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
19065         * config/riscv/riscv-c.c (riscv-subset.h): New.
19066         (INCLUDE_STRING): Define.
19067         (riscv_cpu_cpp_builtins): Add new style architecture extension
19068         test macros.
19069         * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
19070         (riscv_subset_list::end): New.
19071         (riscv_current_subset_list): New.
19073 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
19075         * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
19076         Move to riscv-subset.h.
19077         (struct riscv_subset_t): Ditto.
19078         (class riscv_subset_list): Ditto.
19079         * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
19080         from riscv-common.c.
19081         (struct riscv_subset_t): Ditto.
19082         (class riscv_subset_list): Ditto.
19083         * config/riscv/t-riscv ($(common_out_file)): Add file
19084         dependency.
19086 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
19088         PR target/98567
19089         * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
19090         New define_insn patterns.
19092 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
19094         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
19095         (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
19096         (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
19098 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
19100         PR tree-optimization/98560
19101         * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
19102         * internal-fn.c (vec_cond_mask_direct): Get the data mode from
19103         argument 1.
19104         (vec_cond_direct): Likewise argument 2.
19105         (vec_condu_direct, vec_condeq_direct): Delete.
19106         (expand_vect_cond_optab_fn): Rename to...
19107         (expand_vec_cond_optab_fn): ...this, replacing old macro.
19108         (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
19109         (expand_vect_cond_mask_optab_fn): Rename to...
19110         (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
19111         (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
19112         convert optab.
19113         (direct_vec_cond_optab_supported_p): Likewise.
19114         (direct_vec_condu_optab_supported_p): Delete.
19115         (direct_vec_condeq_optab_supported_p): Delete.
19116         * gimple-isel.cc: Include internal-fn.h.
19117         (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
19118         before using it.
19120 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
19122         PR tree-optimization/98560
19123         * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
19124         IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
19126 2021-01-07  Uroš Bizjak  <ubizjak@gmail.com>
19128         * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
19129         rotate_insn and optab code attributes.
19130         Update all uses to merged code attribute.
19131         * config/i386/sse.md: Update all uses to merged code attribute.
19132         * config/i386/mmx.md: Update all uses to merged code attribute.
19134 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
19136         PR tree-optimization/98568
19137         * gimple-ssa-store-merging.c (bswap_view_convert): New function.
19138         (bswap_replace): Use it.
19140 2021-01-06  Vladimir N. Makarov  <vmakarov@redhat.com>
19142         PR rtl-optimization/97978
19143         * lra-int.h (lra_hard_reg_split_p): New external.
19144         * lra.c (lra_hard_reg_split_p): New global.
19145         (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
19146         * lra-assigns.c (lra_assign): Don't check allocation correctness
19147         after hard reg splitting.
19149 2021-01-06  Martin Sebor  <msebor@redhat.com>
19151         PR c++/98305
19152         * builtins.c (new_delete_mismatch_p): New overload.
19153         (new_delete_mismatch_p (tree, tree)): Call it.
19155 2021-01-06  Alexandre Oliva  <oliva@adacore.com>
19157         * Makefile.in (T_GLIMITS_H): New.
19158         (stmp-int-hdrs): Depend on it, use it.
19159         * config/t-vxworks (T_GLIMITS_H): Override it.
19160         (vxw-glimits.h): New.
19162 2021-01-06  Richard Biener  <rguenther@suse.de>
19164         PR tree-optimization/98513
19165         * value-range.cc (intersect_ranges): Compare the upper bounds
19166         for the expected relation.
19168 2021-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
19170         Revert:
19171         2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
19173         * doc/standards.texi (HSAIL): Remove section.
19175 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19177         * configure: Re-generate.
19179 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
19181         * doc/invoke.texi (-std=c++20): Adjust for the publication of
19182         ISO 14882:2020 standard.
19183         * doc/standards.texi: Likewise.
19185 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
19187         PR tree-optimization/94802
19188         * expr.h (maybe_optimize_sub_cmp_0): Declare.
19189         * expr.c: Include tree-pretty-print.h and flags.h.
19190         (maybe_optimize_sub_cmp_0): New function.
19191         (do_store_flag): Use it.
19192         * cfgexpand.c (expand_gimple_cond): Likewise.
19194 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
19196         * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
19197         * rtlanal.c (simple_regno_set): Tweak description to clarify the
19198         RMW condition.
19200 2021-01-05  Richard Biener  <rguenther@suse.de>
19202         PR tree-optimization/98516
19203         * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
19204         lanes when materializing on a VEC_PERM node.
19205         (vectorizable_slp_permutation): Dump the permute properly.
19207 2021-01-05  Richard Biener  <rguenther@suse.de>
19209         * tree-vect-slp.c (vect_slp_region): Move debug counter
19210         to cover individual subgraphs.
19212 2021-01-05  Richard Biener  <rguenther@suse.de>
19214         PR tree-optimization/98428
19215         * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
19216         vector lane extracts for loop vectorization.
19218 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
19220         PR tree-optimization/98514
19221         * tree-ssa-reassoc.c (bb_rank): Change type from long * to
19222         int64_t *.
19223         (operand_rank): Change type from hash_map<tree, long> to
19224         hash_map<tree, int64_t>.
19225         (phi_rank): Change return type from long to int64_t.
19226         (loop_carried_phi): Change block_rank variable type from long to
19227         int64_t.
19228         (propagate_rank): Change return type, rank parameter type and
19229         op_rank variable type from long to int64_t.
19230         (find_operand_rank): Change return type from long to int64_t
19231         and change slot variable type from long * to int64_t *.
19232         (insert_operand_rank): Change rank parameter type from long to
19233         int64_t.
19234         (get_rank): Change return type and rank variable type from long to
19235         int64_t.  Use PRId64 instead of ld to print the rank.
19236         (init_reassoc): Change rank variable type from long to int64_t
19237         and adjust correspondingly bb_rank and operand_rank initialization.
19239 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
19241         PR tree-optimization/96928
19242         * tree-ssa-phiopt.c (xor_replacement): New function.
19243         (tree_ssa_phiopt_worker): Call it.
19245 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
19247         PR tree-optimization/96930
19248         * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
19249         from narrower value which has the same type as 1 << B, perform
19250         the right shift on the narrower value followed by extension.
19252 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
19254         PR tree-optimization/96239
19255         * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
19256         function.
19257         (get_status_for_store_merging): Don't return BB_INVALID for blocks
19258         with potential bswap optimizable CONSTRUCTORs.
19259         (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
19260         if possible.
19262 2021-01-05  Richard Biener  <rguenther@suse.de>
19264         PR tree-optimization/98381
19265         * tree.c (vector_element_bits): Properly compute bool vector
19266         element size.
19267         * tree-vect-loop.c (vectorizable_live_operation): Properly
19268         compute the last lane bit offset.
19270 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
19272         PR target/98522
19273         * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
19274         Clear the top 64 bytes of the input XMM register.
19275         (sse_cvttps2pi): Ditto.
19277 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
19279         PR target/98521
19280         * config/i386/xopintrin.h (_mm256_cmov_si256): New.
19282 2021-01-05  H.J. Lu  <hjl.tools@gmail.com>
19284         PR target/98495
19285         * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
19286         short first.
19288 2021-01-05  Claudiu Zissulescu  <claziss@synopsys.com>
19290         * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
19291         (umaddsidi4_split): Likewise.
19293 2021-01-05  liuhongt  <hongtao.liu@intel.com>
19295         PR target/98461
19296         * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
19297         define_insn_and_split for zero_extend of subreg HI of pmovskb
19298         result.
19299         (*sse2_pmovskb_zexthisi): Add new combine splitters for
19300         zero_extend of not of subreg HI of pmovskb result.
19302 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
19304         PR target/97269
19305         * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
19306         nested in CONSTs.
19307         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
19308         convert_memory_address to convert symbolic immediates to ptr_mode
19309         before forcing them to memory.
19311 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
19313         PR rtl-optimization/97144
19314         * recog.c (constrain_operands): Initialize matching_operand
19315         for each alternative, rather than only doing it once.
19317 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
19319         PR rtl-optimization/98403
19320         * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
19321         why we don't remove call clobbers.
19322         (function_info::apply_changes_to_insn): Don't attempt to add
19323         call clobbers here.
19325 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
19327         PR tree-optimization/98371
19328         * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
19329         (vect_analyze_loop): If an epilogue loop appears to be cheaper
19330         than the main loop, re-analyze it as a main loop before adopting
19331         it as a main loop.
19333 2021-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19335         PR c++/98316
19336         * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
19337         * aclocal.m4, configure: Regenerate.
19338         * Makefile.in (NETLIBS): Define.
19339         (BACKEND): Remove $(CODYLIB).
19341 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
19343         PR rtl-optimization/98334
19344         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
19345         Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
19347 2021-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19349         * tree-inline.c (expand_call_inline): Restore input_location.
19350         Return result from recursive call.
19352 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
19354         PR tree-optimization/95401
19355         * config/aarch64/aarch64-sve-builtins.cc
19356         (gimple_folder::load_store_cookie): Use bits rather than bytes
19357         for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
19358         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
19359         * tree-vect-stmts.c (vectorizable_store): Likewise.
19360         (vectorizable_load): Likewise.
19362 2021-01-04  Richard Biener  <rguenther@suse.de>
19364         PR tree-optimization/98308
19365         * tree-vect-stmts.c (vectorizable_load): Set invariant mask
19366         SLP vectype.
19368 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
19370         PR tree-optimization/95771
19371         * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
19372         with precision smaller than int's precision and types with precision
19373         twice as large as long long.  Formatting fixes.
19375 2021-01-04  Richard Biener  <rguenther@suse.de>
19377         PR tree-optimization/98464
19378         * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
19379         (vn_valueize_wrapper): ... this.  Temporarily adjust vn_context_bb.
19380         (process_bb): Adjust.
19382 2021-01-04  Matthew Malcomson  <matthew.malcomson@arm.com>
19384         PR other/98437
19385         * doc/invoke.texi (-fsanitize=address): Fix wording describing
19386         clash with -fsanitize=hwaddress.
19388 2021-01-04  Richard Biener  <rguenther@suse.de>
19390         PR tree-optimization/98282
19391         * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
19392         invariants as VN_NARY.
19394 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
19396         PR target/89057
19397         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
19398         aarch64_simd_reg_or_zero for operand 2.  Use the combinez patterns
19399         to handle zero operands.
19401 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
19403         * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
19404         (offset_6bit_unsigned_scaled_p): Fix typo in comment.
19405         (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
19406         [-32, 31].
19408 2021-01-04  Richard Biener  <rguenther@suse.de>
19410         PR tree-optimization/98393
19411         * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
19412         when hitting the limit.
19414 2021-01-04  Richard Biener  <rguenther@suse.de>
19416         PR tree-optimization/98291
19417         * tree-vect-loop.c (vectorizable_reduction): Bypass
19418         associativity check for SLP reductions with VF 1.
19420 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
19422         PR tree-optimization/96782
19423         * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
19425 2021-01-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19427         * collect-utils.c (collect_execute): Check dumppfx.
19428         * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
19429         to collect_execute.
19430         (do_link): Add new parameter atsuffix.
19431         (main): Handle -dumpdir option.  Skip one argument for
19432         -o, -isystem and -B options.
19433         * gcc.c (make_at_file): New helper function.
19434         (close_at_file): Use it.
19436 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
19438         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
19439         Amend handling for LD64_VERSION fallback defaults.
19441 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
19443         * config.gcc: Compute default version information
19444         from the configured target.  Likewise defaults for
19445         ld64.
19446         * config/darwin10.h: Removed.
19447         * config/darwin12.h: Removed.
19448         * config/darwin9.h: Removed.
19449         * config/rs6000/darwin8.h: Removed.
19451 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
19453         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
19455 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
19457         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
19458         * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
19460 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
19462         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
19463         here...
19464         * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
19466 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
19468         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
19469         for the Darwin10 unwinder stub from here ...
19470         * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
19472 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
19474         * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
19475         (ASM_DEBUG_SPEC):Only define if the assembler supports
19476         stabs.
19477         (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
19478         (DARWIN_PREFER_DWARF): Define.
19479         * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
19480         (DARWIN_PREFER_DWARF): Likewise
19481         (DSYMUTIL_SPEC): Likewise.
19482         (COLLECT_RUN_DSYMUTIL): Likewise.
19483         (ASM_DEBUG_SPEC): Likewise.
19484         (ASM_DEBUG_OPTION_SPEC): Likewise.
19486 2021-01-02  Jan Hubicka  <jh@suse.cz>
19488         * cfg.c (free_block): ggc_free bb.
19490 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
19492         * gcc.c (process_command): Update copyright notice dates.
19493         * gcov-dump.c (print_version): Ditto.
19494         * gcov.c (print_version): Ditto.
19495         * gcov-tool.c (print_version): Ditto.
19496         * gengtype.c (create_file): Ditto.
19497         * doc/cpp.texi: Bump @copying's copyright year.
19498         * doc/cppinternals.texi: Ditto.
19499         * doc/gcc.texi: Ditto.
19500         * doc/gccint.texi: Ditto.
19501         * doc/gcov.texi: Ditto.
19502         * doc/install.texi: Ditto.
19503         * doc/invoke.texi: Ditto.
19505 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
19507         * ChangeLog-2020: Rotate ChangeLog.  New file.
19510 Copyright (C) 2021 Free Software Foundation, Inc.
19512 Copying and distribution of this file, with or without modification,
19513 are permitted in any medium without royalty provided the copyright
19514 notice and this notice are preserved.