Daily bump.
[official-gcc.git] / gcc / ChangeLog
blob9861ef89b7215a1bdabb9c39f4a5a14dec0f6af4
1 2021-10-03  Martin Liska  <mliska@suse.cz>
3         * toplev.c (toplev::main): Check opt_index if it is a part
4         of cl_options.
6 2021-10-02  Aldy Hernandez  <aldyh@redhat.com>
8         PR tree-optimization/102563
9         * range-op.cc (operator_lshift::op1_range): Do not clobber
10         range.
12 2021-10-02  Martin Liska  <mliska@suse.cz>
14         * toplev.c (toplev::main): save_decoded_options[0] is program
15         name and so it should be skipped.
17 2021-10-01  Aldy Hernandez  <aldyh@redhat.com>
19         PR tree-optimization/102546
20         * range-op.cc (operator_lshift::op1_range): Teach range-ops that
21         X << Y is non-zero implies X is also non-zero.
23 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
25         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
26         Cortex-X2 core.
27         * config/aarch64/aarch64-tune.md: Regenerate.
28         * doc/invoke.texi: Update docs.
30 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
32         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
33         Cortex-A710 core.
34         * config/aarch64/aarch64-tune.md: Regenerate.
35         * doc/invoke.texi: Update docs.
37 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
39         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
40         Cortex-A510 core.
41         * config/aarch64/aarch64-tune.md: Regenerate.
42         * doc/invoke.texi: Update docs.
44 2021-10-01  Martin Sebor  <msebor@redhat.com>
46         PR c/102103
47         * doc/invoke.texi (-Waddress): Update.
48         * gengtype.c (write_types): Avoid -Waddress.
49         * poly-int.h (POLY_SET_COEFF): Avoid using null.
51 2021-10-01  John David Anglin  <danglin@gcc.gnu.org>
53         PR debug/102373
54         * config/pa/pa.c (pa_option_override): Default to dwarf version 4
55         on hppa64-hpux.
57 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
59         * config/aarch64/aarch64.h (AARCH64_FL_V9): Update value.
61 2021-10-01  Aldy Hernandez  <aldyh@redhat.com>
63         * gimple-range-path.cc (path_range_query::compute_ranges): Use
64         get_path_oracle.
65         * gimple-range-path.h (class path_range_query): Remove shadowed
66         m_oracle field.
67         (path_range_query::get_path_oracle): New.
69 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
70             Richard Biener  <rguenther@suse.de>
72         PR sanitizer/102515
73         * doc/invoke.texi (-fsanitize=integer-divide-by-zero): Remove
74         INT_MIN / -1 division detection from here ...
75         (-fsanitize=signed-integer-overflow): ... and add it here.
77 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
79         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): Added
80         armv9-a.
81         * config/aarch64/aarch64.h (AARCH64_FL_V9): New.
82         (AARCH64_FL_FOR_ARCH9): New flags for Armv9-A.
83         (AARCH64_ISA_V9): New ISA flag.
84         * doc/invoke.texi: Update docs.
86 2021-10-01  Martin Liska  <mliska@suse.cz>
88         * toplev.c (toplev::main): Save decoded optimization options.
89         * toplev.h (save_opt_decoded_options): New.
90         * doc/extend.texi: Be more clear about optimize and target
91         attributes.
93 2021-10-01  Eric Botcazou  <ebotcazou@adacore.com>
95         * explow.c: Include langhooks.h.
96         (set_stack_check_libfunc): Build a proper function type.
98 2021-10-01  Eric Botcazou  <ebotcazou@adacore.com>
100         PR c++/64697
101         * config/i386/i386.c (legitimate_pic_address_disp_p): For PE-COFF do
102         not return true for external weak function symbols in medium model.
104 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
106         * tree.h (OMP_CLAUSE_ORDER_REPRODUCIBLE): Define.
107         * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_ORDER>: Print
108         reproducible: for OMP_CLAUSE_ORDER_REPRODUCIBLE.
109         * omp-general.c (omp_extract_for_data): If OMP_CLAUSE_ORDER is seen
110         without OMP_CLAUSE_ORDER_UNCONSTRAINED, overwrite sched_kind to
111         OMP_CLAUSE_SCHEDULE_STATIC.
113 2021-10-01  Richard Biener  <rguenther@suse.de>
115         PR middle-end/102518
116         * tree-inline.c (setup_one_parameter): Avoid substituting
117         an invariant into contexts where a GIMPLE register is not valid.
119 2021-09-30  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
121         * config/arm/arm-cpus.in: Add Cortex-R52+ CPU.
122         * config/arm/arm-tables.opt: Regenerate.
123         * config/arm/arm-tune.md: Regenerate.
124         * doc/invoke.texi: Update docs.
126 2021-09-30  Uroš Bizjak  <ubizjak@gmail.com>
128         PR target/89954
129         * config/i386/i386.md
130         (sign_extend:WIDE (any_logic:NARROW (memory, immediate)) splitters):
131         New splitters.
133 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
135         * omp-low.c (omp_runtime_api_call): Add omp_aligned_{,c}alloc and
136         omp_{c,re}alloc, fix omp_alloc/omp_free.
138 2021-09-30  Martin Liska  <mliska@suse.cz>
140         * defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
141         asm_out_file and stream directly to MYFILE.
143 2021-09-30  Richard Biener  <rguenther@suse.de>
145         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
146         Restore and fix condition under which we apply npeel to
147         the DRs misalignment value.
149 2021-09-30  Richard Biener  <rguenther@suse.de>
151         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
152         Fix npeel check for variable amount of peeling.
154 2021-09-30  Aldy Hernandez  <aldyh@redhat.com>
156         * lto-wrapper.c (run_gcc): Plug snprintf overflow.
158 2021-09-30  Aldy Hernandez  <aldyh@redhat.com>
160         * gimple-range.cc (gimple_ranger::debug): New.
161         * gimple-range.h (class gimple_ranger): Add debug.
163 2021-09-30  Aldy Hernandez  <aldyh@redhat.com>
165         PR middle-end/102519
166         * tree-vrp.c (hybrid_threader::~hybrid_threader): Free m_query.
168 2021-09-29  Indu Bhagat  <indu.bhagat@oracle.com>
170         PR debug/102507
171         * btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
172         (btf_finalize): Empty the hash_map btf_var_ids.
174 2021-09-29  Aldy Hernandez  <aldyh@redhat.com>
176         * tree-vrp.c (thread_through_all_blocks): Return bool.
177         (execute_vrp_threader): Return TODO_* flags.
178         (pass_data_vrp_threader): Set todo_flags_finish to 0.
180 2021-09-29  Aldy Hernandez  <aldyh@redhat.com>
182         * timevar.def (TV_TREE_VRP_THREADER): New.
183         * tree-vrp.c: Use TV_TREE_VRP_THREADER for VRP threader pass.
185 2021-09-29  David Faust  <david.faust@oracle.com>
187         * config.gcc (bpf-*-*): Do not overwrite extra_headers.
189 2021-09-29  Jonathan Wright  <jonathan.wright@arm.com>
191         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_PPU): Define
192         new type qualifier enum.
193         (TYPES_TERNOP_SSSU): Likewise.
194         (TYPES_TERNOP_PPPU): Likewise.
195         * config/aarch64/aarch64-simd-builtins.def: Define PPU, SSU,
196         PPPU and SSSU builtin generator macros for qtbl1 and qtbx1
197         Neon builtins.
198         * config/aarch64/arm_neon.h (vqtbl1_p8): Use type-qualified
199         builtin and remove casts.
200         (vqtbl1_s8): Likewise.
201         (vqtbl1q_p8): Likewise.
202         (vqtbl1q_s8): Likewise.
203         (vqtbx1_s8): Likewise.
204         (vqtbx1_p8): Likewise.
205         (vqtbx1q_s8): Likewise.
206         (vqtbx1q_p8): Likewise.
207         (vtbl1_p8): Likewise.
208         (vtbl2_p8): Likewise.
209         (vtbx2_p8): Likewise.
211 2021-09-29  Richard Biener  <rguenther@suse.de>
213         * tree-vect-data-refs.c (vect_dr_misalign_for_aligned_access):
214         New helper.
215         (vect_update_misalignment_for_peel): Use it to update
216         misaligned to the value necessary for an aligned access.
217         (vect_get_peeling_costs_all_drs): Likewise.
218         (vect_enhance_data_refs_alignment): Likewise.
220 2021-09-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
222         * config/aarch64/aarch64.c (aarch64_expand_cpymem): Count number of
223         emitted operations and adjust heuristic for code size.
225 2021-09-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
227         * config/aarch64/aarch64.c (aarch64_expand_setmem): Count number of
228         emitted operations and adjust heuristic for code size.
230 2021-09-29  Jakub Jelinek  <jakub@redhat.com>
232         PR middle-end/102504
233         * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private even
234         in OMP_SCOPE clauses, not just on worksharing construct clauses.
236 2021-09-28  Geng Qi  <gengqi@linux.alibaba.com>
238         * config/riscv/riscv.md (mulv<mode>4): Call gen_smul<mode>3_highpart.
239         (<u>mulditi3): Call <su>muldi3_highpart.
240         (<u>muldi3_highpart): Rename to <su>muldi3_highpart.
241         (<u>mulsidi3): Call <su>mulsi3_highpart.
242         (<u>mulsi3_highpart): Rename to <su>mulsi3_highpart.
244 2021-09-28  Iain Sandoe  <iain@sandoe.co.uk>
246         * config/darwin.h (DSYMUTIL_SPEC): Recognize D sources.
248 2021-09-28  Iain Sandoe  <iain@sandoe.co.uk>
250         * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
251         (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
252         of the fixed regs.
254 2021-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
256         * config/aarch64/aarch64.h (AARCH64_FL_LS64): Define
257         (AARCH64_FL_V8_7): Likewise.
258         (AARCH64_FL_FOR_ARCH8_7): Likewise.
259         * config/aarch64/aarch64-arches.def (armv8.7-a): Define.
260         * config/aarch64/aarch64-option-extensions.def (ls64): Define.
261         * doc/invoke.texi: Document the above.
263 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
265         * dbgcnt.c (dbg_cnt_counter): New.
266         * dbgcnt.h (dbg_cnt_counter): New.
267         * dumpfile.c (dump_options): Add entry for TDF_THREADING.
268         * dumpfile.h (enum dump_flag): Add TDF_THREADING.
269         * gimple-range-path.cc (DEBUG_SOLVER): Use TDF_THREADING.
270         * tree-ssa-threadupdate.c (dump_jump_thread_path): Dump out
271         debug counter.
273 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
275         * cfgcleanup.c (pass_jump::execute): Check
276         flag_expensive_optimizations.
277         (pass_jump_after_combine::gate): Same.
278         * doc/invoke.texi (-fthread-jumps): Enable for -O1.
279         * opts.c (default_options_table): Enable -fthread-jumps at -O1.
280         * tree-ssa-threadupdate.c
281         (fwd_jt_path_registry::remove_jump_threads_including): Bail unless
282         flag_thread_jumps.
284 2021-09-28  Ilya Leoshkevich  <iii@linux.ibm.com>
286         * tree-ssa-reassoc.c (biased_names): New global.
287         (propagate_bias_p): New function.
288         (loop_carried_phi): Remove.
289         (propagate_rank): Propagate bias along single uses.
290         (get_rank): Update biased_names when needed.
292 2021-09-28  Ilya Leoshkevich  <iii@linux.ibm.com>
294         * passes.def (pass_reassoc): Rename parameter to early_p.
295         * tree-ssa-reassoc.c (reassoc_bias_loop_carried_phi_ranks_p):
296         New variable.
297         (phi_rank): Don't bias loop-carried phi ranks
298         before vectorization pass.
299         (execute_reassoc): Add bias_loop_carried_phi_ranks_p parameter.
300         (pass_reassoc::pass_reassoc): Add bias_loop_carried_phi_ranks_p
301         initializer.
302         (pass_reassoc::set_param): Set bias_loop_carried_phi_ranks_p
303         value.
304         (pass_reassoc::execute): Pass bias_loop_carried_phi_ranks_p to
305         execute_reassoc.
306         (pass_reassoc::bias_loop_carried_phi_ranks_p): New member.
308 2021-09-28  Jakub Jelinek  <jakub@redhat.com>
310         PR target/102498
311         * config/i386/i386.c (standard_80387_constant_p): Don't recognize
312         special 80387 instruction XFmode constants if flag_rounding_math.
314 2021-09-28  Richard Biener  <rguenther@suse.de>
316         PR tree-optimization/100112
317         * tree-ssa-sccvn.c (visit_reference_op_load): Record the
318         referece into the hashtable twice in case last_vuse is
319         different from the original vuse on the stmt.
321 2021-09-28  Jakub Jelinek  <jakub@redhat.com>
323         PR middle-end/102492
324         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't call the
325         omp_finish_clause langhook on implicitly added OMP_CLAUSE_PRIVATE
326         clauses on SIMD constructs.
328 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
330         PR tree-optimization/102511
331         * gimple-range-path.cc (path_range_query::range_on_path_entry):
332         Return VARYING when nothing found.
334 2021-09-28  Hongyu Wang  <hongyu.wang@intel.com>
336         PR target/102230
337         * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): Add
338         V2HF mode check.
339         (VALID_SSE2_REG_VHF_MODE): Add V4HFmode and V2HFmode.
340         (VALID_MMX_REG_MODE): Add V4HFmode.
341         (SSE_REG_MODE_P): Replace VALID_AVX512FP16_REG_MODE with
342         vector mode condition.
343         * config/i386/i386.c (classify_argument): Parse V4HF/V2HF
344         via sse regs.
345         (function_arg_32): Add V4HFmode.
346         (function_arg_advance_32): Likewise.
347         * config/i386/i386.md (mode): Add V4HF/V2HF.
348         (MODE_SIZE): Likewise.
349         * config/i386/mmx.md (MMXMODE): Add V4HF mode.
350         (V_32): Add V2HF mode.
351         (VHF_32_64): New mode iterator.
352         (*mov<mode>_internal): Adjust sse alternatives to support
353         V4HF mode move.
354         (*mov<mode>_internal): Adjust sse alternatives to support
355         V2HF mode move.
356         (<insn><mode>3): New define_insn for add/sub/mul/div.
358 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
360         * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Check
361         flag_thread_jumps.
362         (pass_early_thread_jumps::gate): Same.
363         * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
364         Return if !flag_thread_jumps.
365         * tree-ssa-threadupdate.c
366         (jt_path_registry::register_jump_thread): Assert that
367         flag_thread_jumps is true.
369 2021-09-28  liuhongt  <hongtao.liu@intel.com>
371         * simplify-rtx.c
372         (simplify_context::simplify_binary_operation_1): Relax
373         condition of simplifying (vec_concat:M (vec_select op0
374         index0)(vec_select op1 index1)) to allow different modes
375         between op0 and M, but have same inner mode.
377 2021-09-28  liuhongt  <hongtao.liu@intel.com>
379         * config/i386/i386-expand.c (emit_reduc_half): Handle
380         V8HF/V16HF/V32HFmode.
381         * config/i386/sse.md (REDUC_SSE_PLUS_MODE): Add V8HF.
382         (REDUC_SSE_SMINMAX_MODE): Ditto.
383         (REDUC_PLUS_MODE): Add V16HF and V32HF.
384         (REDUC_SMINMAX_MODE): Ditto.
386 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
388         * gimple-range-path.cc
389         (path_range_query::precompute_ranges_in_block): Rename to...
390         (path_range_query::compute_ranges_in_block): ...this.
391         (path_range_query::precompute_ranges): Rename to...
392         (path_range_query::compute_ranges): ...this.
393         (path_range_query::precompute_relations): Rename to...
394         (path_range_query::compute_relations): ...this.
395         (path_range_query::precompute_phi_relations): Rename to...
396         (path_range_query::compute_phi_relations): ...this.
397         * gimple-range-path.h: Rename precompute* to compute*.
398         * tree-ssa-threadbackward.c
399         (back_threader::find_taken_edge_switch): Same.
400         (back_threader::find_taken_edge_cond): Same.
401         * tree-ssa-threadedge.c
402         (hybrid_jt_simplifier::compute_ranges_from_state): Same.
403         (hybrid_jt_state::register_equivs_stmt): Inline...
404         * tree-ssa-threadedge.h: ...here.
406 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
408         * tree-vrp.c (lhs_of_dominating_assert): Remove.
409         (class vrp_jt_state): Remove.
410         (class vrp_jt_simplifier): Remove.
411         (vrp_jt_simplifier::simplify): Remove.
412         (class vrp_jump_threader): Remove.
413         (vrp_jump_threader::vrp_jump_threader): Remove.
414         (vrp_jump_threader::~vrp_jump_threader): Remove.
415         (vrp_jump_threader::before_dom_children): Remove.
416         (vrp_jump_threader::after_dom_children): Remove.
418 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
420         * passes.def (pass_vrp_threader): New.
421         * tree-pass.h (make_pass_vrp_threader): Add make_pass_vrp_threader.
422         * tree-ssa-threadedge.c (hybrid_jt_state::register_equivs_stmt): New.
423         (hybrid_jt_simplifier::hybrid_jt_simplifier): New.
424         (hybrid_jt_simplifier::simplify): New.
425         (hybrid_jt_simplifier::compute_ranges_from_state): New.
426         * tree-ssa-threadedge.h (class hybrid_jt_state): New.
427         (class hybrid_jt_simplifier): New.
428         * tree-vrp.c (execute_vrp): Remove ASSERT_EXPR based jump
429         threader.
430         (class hybrid_threader): New.
431         (hybrid_threader::hybrid_threader): New.
432         (hybrid_threader::~hybrid_threader): New.
433         (hybrid_threader::before_dom_children): New.
434         (hybrid_threader::after_dom_children): New.
435         (execute_vrp_threader): New.
436         (class pass_vrp_threader): New.
437         (make_pass_vrp_threader): New.
439 2021-09-27  Martin Liska  <mliska@suse.cz>
441         * output.h (enum section_flag): New.
442         (SECTION_FORGET): Remove.
443         (SECTION_ENTSIZE): Make it (1UL << 8) - 1.
444         (SECTION_STYLE_MASK): Define it based on other enum
445         values.
446         * varasm.c (switch_to_section): Remove unused handling of
447         SECTION_FORGET.
449 2021-09-27  Martin Liska  <mliska@suse.cz>
451         * common.opt: Add new variable flag_default_complex_method.
452         * opts.c (finish_options): Handle flags related to
453           x_flag_complex_method.
454         * toplev.c (process_options): Remove option handling related
455         to flag_complex_method.
457 2021-09-27  Richard Biener  <rguenther@suse.de>
459         PR middle-end/102450
460         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid using
461         type_for_size, instead use int_mode_for_size.
463 2021-09-27  Andrew Pinski  <apinski@marvell.com>
465         PR c/94726
466         * gimplify.c (gimplify_save_expr): Return early
467         if the type of val is error_mark_node.
469 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
471         * tree-ssanames.c (ssa_name_has_boolean_range): Use
472         get_range_query.
474 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
476         * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
477         vrp_visit_cond_stmt.
478         * tree-ssa-dom.c (cprop_operand): Convert to range_query API.
479         (cprop_into_stmt): Same.
480         (dom_opt_dom_walker::optimize_stmt): Same.
482 2021-09-27  Richard Biener  <rguenther@suse.de>
484         PR tree-optimization/97351
485         PR tree-optimization/97352
486         PR tree-optimization/82426
487         * tree-vectorizer.h (dr_misalignment): Add vector type
488         argument.
489         (aligned_access_p): Likewise.
490         (known_alignment_for_access_p): Likewise.
491         (vect_supportable_dr_alignment): Likewise.
492         (vect_known_alignment_in_bytes): Likewise.  Refactor.
493         (DR_MISALIGNMENT): Remove.
494         (vect_update_shared_vectype): Likewise.
495         * tree-vect-data-refs.c (dr_misalignment): Refactor, handle
496         a vector type with larger alignment requirement and apply
497         the negative step adjustment here.
498         (vect_calculate_target_alignment): Remove.
499         (vect_compute_data_ref_alignment): Get explicit vector type
500         argument, do not apply a negative step alignment adjustment
501         here.
502         (vect_slp_analyze_node_alignment): Re-analyze alignment
503         when we re-visit the DR with a bigger desired alignment but
504         keep more precise results from smaller alignments.
505         * tree-vect-slp.c (vect_update_shared_vectype): Remove.
506         (vect_slp_analyze_node_operations_1): Do not update the
507         shared vector type on stmts.
508         * tree-vect-stmts.c (vect_analyze_stmt): Push/pop the
509         vector type of an SLP node to the representative stmt-info.
510         (vect_transform_stmt): Likewise.
512 2021-09-27  liuhongt  <hongtao.liu@intel.com>
514         Revert:
515         2021-09-09  liuhongt  <hongtao.liu@intel.com>
517         PR target/101059
518         * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
519         (reduc_plus_scal_v4sf): .. this, New define_expand.
520         (reduc_plus_scal_v2df): .. and this, New define_expand.
522 2021-09-26  liuhongt  <hongtao.liu@intel.com>
524         * doc/extend.texi (Half-Precision): Remove storage only
525         description for _Float16 w/o avx512fp16.
527 2021-09-25  Dimitar Dimitrov  <dimitar@dinux.eu>
529         * config/pru/constraints.md (Rrio): New constraint.
530         * config/pru/predicates.md (regio_operand): New predicate.
531         * config/pru/pru-pragma.c (pru_register_pragmas): Register
532         the __regio_symbol address space.
533         * config/pru/pru-protos.h (pru_symref2ioregno): Declaration.
534         * config/pru/pru.c (pru_symref2ioregno): New helper function.
535         (pru_legitimate_address_p): Remove.
536         (pru_addr_space_legitimate_address_p): Use the address space
537         aware hook variant.
538         (pru_nongeneric_pointer_addrspace): New helper function.
539         (pru_insert_attributes): New function to validate __regio_symbol
540         usage.
541         (TARGET_INSERT_ATTRIBUTES): New macro.
542         (TARGET_LEGITIMATE_ADDRESS_P): Remove.
543         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): New macro.
544         * config/pru/pru.h (enum reg_class): Add REGIO_REGS class.
545         * config/pru/pru.md (*regio_readsi): New pattern to read I/O
546         registers.
547         (*regio_nozext_writesi): New pattern to write to I/O registers.
548         (*regio_zext_write_r30<EQS0:mode>): Ditto.
549         * doc/extend.texi: Document the new PRU Named Address Space.
551 2021-09-24  Patrick Palka  <ppalka@redhat.com>
553         PR c++/98216
554         PR c++/91292
555         * real.c (encode_ieee_double): Avoid unwanted sign extension.
556         (encode_ieee_quad): Likewise.
558 2021-09-24  Vladimir Makarov  <vmakarov@redhat.com>
560         PR rtl-optimization/102147
561         * ira-build.c (ira_conflict_vector_profitable_p): Make
562         profitability calculation independent of host compiler pointer and
563         IRA_INT_BITS sizes.
565 2021-09-24  Aldy Hernandez  <aldyh@redhat.com>
567         * gimple-range-path.cc (path_range_query::path_range_query):
568         Move debugging header...
569         (path_range_query::precompute_ranges): ...here.
570         (path_range_query::internal_range_of_expr): Do not call
571         range_on_path_entry if NAME is defined in the current block.
573 2021-09-24  Richard Biener  <rguenther@suse.de>
575         * cfghooks.c (verify_flow_info): Verify unallocated BB and
576         edge flags are not set.
578 2021-09-24  Aldy Hernandez  <aldyh@redhat.com>
580         * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
581         New.
582         (jt_path_registry::register_jump_thread): Call
583         cancel_invalid_paths.
584         * tree-ssa-threadupdate.h (class jt_path_registry): Add
585         cancel_invalid_paths.
587 2021-09-24  Feng Xue  <fxue@os.amperecomputing.com>
589         PR tree-optimization/102400
590         * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
591         result_vdef to zero value.
593 2021-09-24  Feng Xue  <fxue@os.amperecomputing.com>
595         PR tree-optimization/102451
596         * tree-ssa-dse.c (delete_dead_or_redundant_call): Record bb of stmt
597         before removal.
599 2021-09-24  Hongyu Wang  <hongyu.wang@intel.com>
601         * config/i386/sse.md (cond_<insn><mode>): Extend to support
602         vector HFmodes.
603         (cond_mul<mode>): Likewise.
604         (cond_div<mode>): Likewise.
605         (cond_<code><mode>): Likewise.
606         (cond_fma<mode>): Likewise.
607         (cond_fms<mode>): Likewise.
608         (cond_fnma<mode>): Likewise.
609         (cond_fnms<mode>): Likewise.
611 2021-09-23  Andrew MacLeod  <amacleod@redhat.com>
613         PR tree-optimization/102463
614         * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
615         there is no range-ops handler, don't look for a relation.
617 2021-09-23  Andrew MacLeod  <amacleod@redhat.com>
619         * gimple-range-cache.cc (ranger_cache::ranger_cache): Take
620         non-executable_edge flag as parameter.
621         * gimple-range-cache.h (ranger_cache): Adjust prototype.
622         * gimple-range-gori.cc (gori_compute::gori_compute): Take
623         non-executable_edge flag as parameter.
624         (gori_compute::outgoing_edge_range_p): Check new flag.
625         * gimple-range-gori.h (gori_compute): Adjust prototype.
626         * gimple-range.cc (gimple_ranger::gimple_ranger): Create new flag.
627         (gimple_ranger::range_on_edge): Check new flag.
628         * gimple-range.h (gimple_ranger::non_executable_edge_flag): New.
629         * gimple-ssa-evrp.c (rvrp_folder): Pass ranger flag to simplifer.
630         (hybrid_folder::hybrid_folder): Set ranger non-executable flag value.
631         (hybrid_folder::fold_stmt): Set flag value in the simplifer.
632         * vr-values.c (simplify_using_ranges::set_and_propagate_unexecutable):
633         Use not_executable flag if provided inmstead of EDGE_EXECUTABLE.
634         (simplify_using_ranges::simplify_switch_using_ranges): Clear
635         EDGE_EXECUTABLE like it originally did.
636         (simplify_using_ranges::cleanup_edges_and_switches): Clear any
637         NON_EXECUTABLE flags.
638         (simplify_using_ranges::simplify_using_ranges): Adjust.
639         * vr-values.h (class simplify_using_ranges): Adjust.
640         (simplify_using_ranges::set_range_query): Add non-executable flag param.
642 2021-09-23  Bill Schmidt  <wschmidt@linux.ibm.com>
644         PR target/102024
645         * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect
646         zero-width bit fields and return indicator.
647         (rs6000_discover_homogeneous_aggregate): Diagnose when the
648         presence of a zero-width bit field changes parameter passing in
649         GCC 12.
651 2021-09-23  Aldy Hernandez  <aldyh@redhat.com>
653         * gimple-range-fold.cc (fold_using_range::range_of_phi):
654         Remove dominator check.
656 2021-09-23  Aldy Hernandez  <aldyh@redhat.com>
658         * gimple-range-path.cc (path_range_query::precompute_relations):
659         Hoist edge calculations before using EDGE_SUCC.
661 2021-09-23  Jonathan Wakely  <jwakely@redhat.com>
663         * configure.ac: Fix --with-multilib-list description.
664         * configure: Regenerate.
666 2021-09-23  Richard Biener  <rguenther@suse.de>
668         PR tree-optimization/102448
669         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
670         Clear alignment info copied from DR_PTR_INFO.
672 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
674         * config/i386/i386-expand.c (ix86_use_mask_cmp_p): Enable
675         HFmode mask_cmp.
676         * config/i386/sse.md (sseintvecmodelower): Add HF vector modes.
677         (<avx512>_store<mode>_mask): Extend to support HF vector modes.
678         (vec_cmp<mode><avx512fmaskmodelower>): Likewise.
679         (vcond_mask_<mode><avx512fmaskmodelower>): Likewise.
680         (vcond<mode><mode>): New expander.
681         (vcond<mode><sseintvecmodelower>): Likewise.
682         (vcond<sseintvecmodelower><mode>): Likewise.
683         (vcondu<mode><sseintvecmodelower>): Likewise.
685 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
687         * config/i386/sse.md (extend<ssePHmodelower><mode>2):
688         New expander.
689         (extendv4hf<mode>2): Likewise.
690         (extendv2hfv2df2): Likewise.
691         (trunc<mode><ssePHmodelower>2): Likewise.
692         (avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
693         (trunc<mode>v4hf2): ... this, and drop constraints.
694         (avx512fp16_vcvtpd2ph_v2df): Rename to ...
695         (truncv2dfv2hf2): ... this, and likewise.
697 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
699         * config/i386/sse.md (float<floatunssuffix><mode><ssePHmodelower>2):
700         New expander.
701         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>):
702         Rename to ...
703         (float<floatunssuffix><mode>v4hf2): ... this, and drop constraints.
704         (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Rename to ...
705         (float<floatunssuffix>v2div2hf2): ... this, and likewise.
707 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
709         * config/i386/i386.md (fix<fixunssuffix>_trunchf<mode>2): New expander.
710         (fixuns_trunchfhi2): Likewise.
711         (*fixuns_trunchfsi2zext): New define_insn.
712         * config/i386/sse.md (ssePHmodelower): New mode_attr.
713         (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
714         New expander for same element vector fix_truncate.
715         (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
716         Likewise for V4HF to V4SI/V4DI fix_truncate.
717         (fix<fixunssuffix>_truncv2hfv2di2):
718         Likeise for V2HF to V2DI fix_truncate.
720 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
722         * config/i386/i386.md (<code>hf3): New expander.
724 2021-09-23  liuhongt  <hongtao.liu@intel.com>
726         * config/i386/sse.md (FMAMODEM): extend to handle FP16.
727         (VFH_SF_AVX512VL): Extend to handle HFmode.
728         (VF_SF_AVX512VL): Deleted.
730 2021-09-23  liuhongt  <hongtao.liu@intel.com>
732         * config/i386/i386.md (rinthf2): New expander.
733         (nearbyinthf2): New expander.
735 2021-09-23  Aldy Hernandez  <aldyh@redhat.com>
737         * tree-ssa-dom.c (class dom_jump_threader_simplifier): Rename...
738         (class dom_jt_state): ...this and provide virtual overrides.
739         (dom_jt_state::register_equiv): New.
740         (class dom_jt_simplifier): Rename from
741         dom_jump_threader_simplifier.
742         (dom_jump_threader_simplifier::simplify): Rename...
743         (dom_jt_simplifier::simplify): ...to this.
744         (pass_dominator::execute): Use dom_jt_simplifier and
745         dom_jt_state.
746         * tree-ssa-threadedge.c (jump_threader::jump_threader):
747         Clean-up.
748         (jt_state::register_equivs_stmt): Abstract out...
749         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
750         ...from here.
751         (jump_threader::thread_around_empty_blocks): Update state.
752         (jump_threader::thread_through_normal_block): Same.
753         (jt_state::jt_state): Remove.
754         (jt_state::push): Remove pass specific bits.  Keep block vector
755         updated.
756         (jt_state::append_path): New.
757         (jt_state::pop): Remove pass specific bits.
758         (jt_state::register_equiv): Same.
759         (jt_state::record_ranges_from_stmt): Same.
760         (jt_state::register_equivs_on_edge): Same.  Rename...
761         (jt_state::register_equivs_edge):  ...to this.
762         (jt_state::dump): New.
763         (jt_state::debug): New.
764         (jump_threader_simplifier::simplify): Remove.
765         (jt_state::get_path): New.
766         * tree-ssa-threadedge.h (class jt_simplifier): Make into a base
767         class.  Expose common functionality as virtual methods.
768         (class jump_threader_simplifier): Same.  Rename...
769         (class jt_simplifier): ...to this.
770         * tree-vrp.c (class vrp_jump_threader_simplifier): Rename...
771         (class vrp_jt_simplifier): ...to this. Provide pass specific
772         overrides.
773         (class vrp_jt_state): New.
774         (vrp_jump_threader_simplifier::simplify): Rename...
775         (vrp_jt_simplifier::simplify): ...to this.  Inline code from
776         what used to be the base class.
777         (vrp_jump_threader::vrp_jump_threader): Use vrp_jt_state and
778         vrp_jt_simplifier.
780 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
782         PR fortran/55534
783         * doc/invoke.texi (-Wno-missing-include-dirs.): Document Fortran
784         behavior.
786 2021-09-22  Roger Sayle  <roger@nextmovesoftware.com>
787             Richard Biener  <rguenther@suse.de>
789         * match.pd (negation simplifications): Implement some negation
790         folding transformations from fold-const.c's fold_negate_expr.
791         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Add a SIMPLIFY
792         argument, to control whether the op should be simplified prior
793         to looking up/assigning a value number.
794         (vn_nary_build_or_lookup): Update call to vn_nary_build_or_lookup_1.
795         (vn_nary_simplify): Likewise.
796         (visit_nary_op): Likewise, but when constructing a NEGATE_EXPR
797         now call vn_nary_build_or_lookup_1 disabling simplification.
799 2021-09-22  Jiufu Guo  <guojiufu@linux.ibm.com>
801         PR tree-optimization/102087
802         * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
803         Update bound/cmp/control for niter.
805 2021-09-22  Aldy Hernandez  <aldyh@redhat.com>
807         * gimple-range-fold.cc (fold_using_range::range_of_range_op):
808         Move check for non-empty BB here.
809         (fur_source::register_outgoing_edges): ...from here.
811 2021-09-22  Aldy Hernandez  <aldyh@redhat.com>
813         * gimple-range-path.cc (path_range_query::internal_range_of_expr):
814         Remove call to improve_range_with_equivs.
815         (path_range_query::improve_range_with_equivs): Remove
816         * gimple-range-path.h: Remove improve_range_with_equivs.
818 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
820         * config/i386/avx512fp16intrin.h:
821         (_mm512_mask_blend_ph): New intrinsic.
822         (_mm512_permutex2var_ph): Ditto.
823         (_mm512_permutexvar_ph): Ditto.
824         * config/i386/avx512fp16vlintrin.h:
825         (_mm256_mask_blend_ph): New intrinsic.
826         (_mm256_permutex2var_ph): Ditto.
827         (_mm256_permutexvar_ph): Ditto.
828         (_mm_mask_blend_ph): Ditto.
829         (_mm_permutex2var_ph): Ditto.
830         (_mm_permutexvar_ph): Ditto.
832 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
834         * config/i386/avx512fp16intrin.h: Add new intrinsics.
835         (_mm512_conj_pch): New intrinsic.
836         (_mm512_mask_conj_pch): Ditto.
837         (_mm512_maskz_conj_pch): Ditto.
838         * config/i386/avx512fp16vlintrin.h: Add new intrinsics.
839         (_mm256_conj_pch): New intrinsic.
840         (_mm256_mask_conj_pch): Ditto.
841         (_mm256_maskz_conj_pch): Ditto.
842         (_mm_conj_pch): Ditto.
843         (_mm_mask_conj_pch): Ditto.
844         (_mm_maskz_conj_pch): Ditto.
846 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
848         * config/i386/avx512fp16intrin.h (_MM512_REDUCE_OP): New macro
849         (_mm512_reduce_add_ph): New intrinsic.
850         (_mm512_reduce_mul_ph): Ditto.
851         (_mm512_reduce_min_ph): Ditto.
852         (_mm512_reduce_max_ph): Ditto.
853         * config/i386/avx512fp16vlintrin.h
854         (_MM256_REDUCE_OP/_MM_REDUCE_OP): New macro.
855         (_mm256_reduce_add_ph): New intrinsic.
856         (_mm256_reduce_mul_ph): Ditto.
857         (_mm256_reduce_min_ph): Ditto.
858         (_mm256_reduce_max_ph): Ditto.
859         (_mm_reduce_add_ph): Ditto.
860         (_mm_reduce_mul_ph): Ditto.
861         (_mm_reduce_min_ph): Ditto.
862         (_mm_reduce_max_ph): Ditto.
864 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
866         * config/i386/avx512fp16intrin.h (__m512h_u, __m256h_u,
867         __m128h_u): New typedef.
868         (_mm512_load_ph): New intrinsic.
869         (_mm256_load_ph): Ditto.
870         (_mm_load_ph): Ditto.
871         (_mm512_loadu_ph): Ditto.
872         (_mm256_loadu_ph): Ditto.
873         (_mm_loadu_ph): Ditto.
874         (_mm512_store_ph): Ditto.
875         (_mm256_store_ph): Ditto.
876         (_mm_store_ph): Ditto.
877         (_mm512_storeu_ph): Ditto.
878         (_mm256_storeu_ph): Ditto.
879         (_mm_storeu_ph): Ditto.
880         (_mm512_abs_ph): Ditto.
881         * config/i386/avx512fp16vlintrin.h
882         (_mm_abs_ph): Ditto.
883         (_mm256_abs_ph): Ditto.
885 2021-09-22  Andreas Krebbel  <krebbel@linux.ibm.com>
887         * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.
889 2021-09-22  Andreas Krebbel  <krebbel@linux.ibm.com>
891         PR target/102222
892         * config/s390/s390.c (s390_expand_insv): Emit a normal move if it
893         is actually a full copy of the source operand into the target.
894         Don't emit a strict low part move if source and target mode match.
896 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
898         PR middle-end/102415
899         * omp-expand.c (expand_omp_single): If region->exit is NULL,
900         assert region->entry is GIMPLE_OMP_SCOPE region and return.
902 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
904         * tree.h (OMP_CLAUSE_ALLOCATE_ALIGN): Define.
905         * tree.c (omp_clause_num_ops): Change number of OMP_CLAUSE_ALLOCATE
906         arguments from 2 to 3.
907         * tree-pretty-print.c (dump_omp_clause): Print allocator() around
908         allocate clause allocator and print align if present.
909         * omp-low.c (scan_sharing_clauses): Force allocate_map entry even
910         for omp_default_mem_alloc if align modifier is present.  If align
911         modifier is present, use TREE_LIST to encode both allocator and
912         align.
913         (lower_private_allocate, lower_rec_input_clauses, create_task_copyfn):
914         Handle align modifier on allocator clause if present.
916 2021-09-22  liuhongt  <hongtao.liu@intel.com>
918         * config/i386/i386.md (define_attr "isa"): Add
919         fma_or_avx512vl.
920         (define_attr "enabled"): Correspond fma_or_avx512vl to
921         TARGET_FMA || TARGET_AVX512VL.
922         * config/i386/mmx.md (fmav2sf4): Extend to AVX512 fma.
923         (fmsv2sf4): Ditto.
924         (fnmav2sf4): Ditto.
925         (fnmsv2sf4): Ditto.
927 2021-09-22  liuhongt  <hongtao.liu@intel.com>
929         * config/i386/i386.md (cstorehf3): New define_expand.
931 2021-09-22  liuhongt  <hongtao.liu@intel.com>
933         * config/i386/i386.md (<rounding_insn>hf2): New expander.
934         (sse4_1_round<mode>2): Extend from MODEF to MODEFH.
935         * config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
936         Extend from VF_128 to VFH_128.
938 2021-09-22  liuhongt  <hongtao.liu@intel.com>
940         * config/i386/i386-features.c (i386-features.c): Handle
941         E_HFmode.
942         * config/i386/i386.md (sqrthf2): New expander.
943         (*sqrthf2): New define_insn.
944         * config/i386/sse.md
945         (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
946         Extend to VFH_128.
948 2021-09-22  liuhongt  <hongtao.liu@intel.com>
950         * config/i386/avx512fp16intrin.h (_mm_mask_fcmadd_sch):
951         New intrinsic.
952         (_mm_mask3_fcmadd_sch): Likewise.
953         (_mm_maskz_fcmadd_sch): Likewise.
954         (_mm_fcmadd_sch): Likewise.
955         (_mm_mask_fmadd_sch): Likewise.
956         (_mm_mask3_fmadd_sch): Likewise.
957         (_mm_maskz_fmadd_sch): Likewise.
958         (_mm_fmadd_sch): Likewise.
959         (_mm_mask_fcmadd_round_sch): Likewise.
960         (_mm_mask3_fcmadd_round_sch): Likewise.
961         (_mm_maskz_fcmadd_round_sch): Likewise.
962         (_mm_fcmadd_round_sch): Likewise.
963         (_mm_mask_fmadd_round_sch): Likewise.
964         (_mm_mask3_fmadd_round_sch): Likewise.
965         (_mm_maskz_fmadd_round_sch): Likewise.
966         (_mm_fmadd_round_sch): Likewise.
967         (_mm_fcmul_sch): Likewise.
968         (_mm_mask_fcmul_sch): Likewise.
969         (_mm_maskz_fcmul_sch): Likewise.
970         (_mm_fmul_sch): Likewise.
971         (_mm_mask_fmul_sch): Likewise.
972         (_mm_maskz_fmul_sch): Likewise.
973         (_mm_fcmul_round_sch): Likewise.
974         (_mm_mask_fcmul_round_sch): Likewise.
975         (_mm_maskz_fcmul_round_sch): Likewise.
976         (_mm_fmul_round_sch): Likewise.
977         (_mm_mask_fmul_round_sch): Likewise.
978         (_mm_maskz_fmul_round_sch): Likewise.
979         * config/i386/i386-builtin.def: Add corresponding new builtins.
980         * config/i386/sse.md
981         (avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>): New expander.
982         (avx512fp16_fcmaddcsh_v8hf_maskz<round_expand_name>): Ditto.
983         (avx512fp16_fma_<complexopname>sh_v8hf<mask_scalarcz_name><round_scalarcz_name>):
984         New define insn.
985         (avx512fp16_<complexopname>sh_v8hf_mask<round_name>): Ditto.
986         (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>):
987         Ditto.
988         * config/i386/subst.md (mask_scalarcz_name): New.
989         (mask_scalarc_name): Ditto.
990         (mask_scalarc_operand3): Ditto.
991         (mask_scalarcz_operand4): Ditto.
992         (round_scalarcz_name): Ditto.
993         (round_scalarc_mask_operand3): Ditto.
994         (round_scalarcz_mask_operand4): Ditto.
995         (round_scalarc_mask_op3): Ditto.
996         (round_scalarcz_mask_op4): Ditto.
997         (round_scalarcz_constraint): Ditto.
998         (round_scalarcz_nimm_predicate): Ditto.
999         (mask_scalarcz): Ditto.
1000         (mask_scalarc): Ditto.
1001         (round_scalarcz): Ditto.
1003 2021-09-22  liuhongt  <hongtao.liu@intel.com>
1005         * config/i386/avx512fp16intrin.h (_mm512_fcmadd_pch):
1006         New intrinsic.
1007         (_mm512_mask_fcmadd_pch): Likewise.
1008         (_mm512_mask3_fcmadd_pch): Likewise.
1009         (_mm512_maskz_fcmadd_pch): Likewise.
1010         (_mm512_fmadd_pch): Likewise.
1011         (_mm512_mask_fmadd_pch): Likewise.
1012         (_mm512_mask3_fmadd_pch): Likewise.
1013         (_mm512_maskz_fmadd_pch): Likewise.
1014         (_mm512_fcmadd_round_pch): Likewise.
1015         (_mm512_mask_fcmadd_round_pch): Likewise.
1016         (_mm512_mask3_fcmadd_round_pch): Likewise.
1017         (_mm512_maskz_fcmadd_round_pch): Likewise.
1018         (_mm512_fmadd_round_pch): Likewise.
1019         (_mm512_mask_fmadd_round_pch): Likewise.
1020         (_mm512_mask3_fmadd_round_pch): Likewise.
1021         (_mm512_maskz_fmadd_round_pch): Likewise.
1022         (_mm512_fcmul_pch): Likewise.
1023         (_mm512_mask_fcmul_pch): Likewise.
1024         (_mm512_maskz_fcmul_pch): Likewise.
1025         (_mm512_fmul_pch): Likewise.
1026         (_mm512_mask_fmul_pch): Likewise.
1027         (_mm512_maskz_fmul_pch): Likewise.
1028         (_mm512_fcmul_round_pch): Likewise.
1029         (_mm512_mask_fcmul_round_pch): Likewise.
1030         (_mm512_maskz_fcmul_round_pch): Likewise.
1031         (_mm512_fmul_round_pch): Likewise.
1032         (_mm512_mask_fmul_round_pch): Likewise.
1033         (_mm512_maskz_fmul_round_pch): Likewise.
1034         * config/i386/avx512fp16vlintrin.h (_mm_fmadd_pch):
1035         New intrinsic.
1036         (_mm_mask_fmadd_pch): Likewise.
1037         (_mm_mask3_fmadd_pch): Likewise.
1038         (_mm_maskz_fmadd_pch): Likewise.
1039         (_mm256_fmadd_pch): Likewise.
1040         (_mm256_mask_fmadd_pch): Likewise.
1041         (_mm256_mask3_fmadd_pch): Likewise.
1042         (_mm256_maskz_fmadd_pch): Likewise.
1043         (_mm_fcmadd_pch): Likewise.
1044         (_mm_mask_fcmadd_pch): Likewise.
1045         (_mm_mask3_fcmadd_pch): Likewise.
1046         (_mm_maskz_fcmadd_pch): Likewise.
1047         (_mm256_fcmadd_pch): Likewise.
1048         (_mm256_mask_fcmadd_pch): Likewise.
1049         (_mm256_mask3_fcmadd_pch): Likewise.
1050         (_mm256_maskz_fcmadd_pch): Likewise.
1051         (_mm_fmul_pch): Likewise.
1052         (_mm_mask_fmul_pch): Likewise.
1053         (_mm_maskz_fmul_pch): Likewise.
1054         (_mm256_fmul_pch): Likewise.
1055         (_mm256_mask_fmul_pch): Likewise.
1056         (_mm256_maskz_fmul_pch): Likewise.
1057         (_mm_fcmul_pch): Likewise.
1058         (_mm_mask_fcmul_pch): Likewise.
1059         (_mm_maskz_fcmul_pch): Likewise.
1060         (_mm256_fcmul_pch): Likewise.
1061         (_mm256_mask_fcmul_pch): Likewise.
1062         (_mm256_maskz_fcmul_pch): Likewise.
1063         * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF_V8HF_V8HF,
1064         V8HF_FTYPE_V16HF_V16HF_V16HF, V16HF_FTYPE_V16HF_V16HF_V16HF_UQI,
1065         V32HF_FTYPE_V32HF_V32HF_V32HF_INT,
1066         V32HF_FTYPE_V32HF_V32HF_V32HF_UHI_INT): Add new builtin types.
1067         * config/i386/i386-builtin.def: Add new builtins.
1068         * config/i386/i386-expand.c: Handle new builtin types.
1069         * config/i386/subst.md (SUBST_CV): New.
1070         (maskc_name): Ditto.
1071         (maskc_operand3): Ditto.
1072         (maskc): Ditto.
1073         (sdc_maskz_name): Ditto.
1074         (sdc_mask_op4): Ditto.
1075         (sdc_mask_op5): Ditto.
1076         (sdc_mask_mode512bit_condition): Ditto.
1077         (sdc): Ditto.
1078         (round_maskc_operand3): Ditto.
1079         (round_sdc_mask_operand4): Ditto.
1080         (round_maskc_op3): Ditto.
1081         (round_sdc_mask_op4): Ditto.
1082         (round_saeonly_sdc_mask_operand5): Ditto.
1083         * config/i386/sse.md (unspec): Add complex fma unspecs.
1084         (avx512fmaskcmode): New.
1085         (UNSPEC_COMPLEX_F_C_MA): Ditto.
1086         (UNSPEC_COMPLEX_F_C_MUL): Ditto.
1087         (complexopname): Ditto.
1088         (<avx512>_fmaddc_<mode>_maskz<round_expand_name>): New expander.
1089         (<avx512>_fcmaddc_<mode>_maskz<round_expand_name>): Ditto.
1090         (fma_<complexopname>_<mode><sdc_maskz_name><round_name>): New
1091         define insn.
1092         (<avx512>_<complexopname>_<mode>_mask<round_name>): Ditto.
1093         (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Ditto.
1095 2021-09-22  Kewen Lin  <linkw@linux.ibm.com>
1097         * config/rs6000/rs6000.opt (rs6000-density-pct-threshold,
1098         rs6000-density-size-threshold, rs6000-density-penalty,
1099         rs6000-density-load-pct-threshold,
1100         rs6000-density-load-num-threshold): New parameter.
1101         * config/rs6000/rs6000.c (rs6000_density_test): Adjust with
1102         corresponding parameters.
1104 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
1106         * gimple-range-path.cc (path_range_query::defined_outside_path):
1107         New.
1108         (path_range_query::range_on_path_entry): New.
1109         (path_range_query::internal_range_of_expr): Resolve unknowns
1110         with ranger.
1111         (path_range_query::improve_range_with_equivs): New.
1112         (path_range_query::ssa_range_in_phi): Resolve unknowns with
1113         ranger.
1114         * gimple-range-path.h (class path_range_query): Add
1115         defined_outside_path, range_on_path_entry, and
1116         improve_range_with_equivs.
1118 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
1120         * gimple-range-path.cc (path_range_query::add_to_imports): New.
1121         (path_range_query::add_copies_to_imports): New.
1122         (path_range_query::precompute_ranges): Call
1123         add_copies_to_imports.
1124         * gimple-range-path.h (class path_range_query): Add prototypes
1125         for add_copies_to_imports and add_to_imports.
1127 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
1129         * gimple-range-path.cc (path_range_query::range_defined_in_block):
1130         Remove useless code.
1132 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
1134         * gimple-range-fold.h (class fur_source): Make oracle protected.
1135         * gimple-range-path.cc (path_range_query::path_range_query): Add
1136         resolve argument.  Initialize oracle.
1137         (path_range_query::~path_range_query): Delete oracle.
1138         (path_range_query::range_of_stmt): Adapt to use relations.
1139         (path_range_query::precompute_ranges): Pre-compute relations.
1140         (class jt_fur_source): New
1141         (jt_fur_source::jt_fur_source): New.
1142         (jt_fur_source::register_relation): New.
1143         (jt_fur_source::query_relation): New.
1144         (path_range_query::precompute_relations): New.
1145         (path_range_query::precompute_phi_relations): New.
1146         * gimple-range-path.h (path_range_query): Add resolve argument.
1147         Add oracle, precompute_relations, precompute_phi_relations.
1148         * tree-ssa-threadbackward.c (back_threader::back_threader): Pass
1149         resolve argument to solver.
1151 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
1153         * gimple-range-fold.cc (fold_using_range::range_of_range_op):
1154         Rename postfold_gcond_edges to register_outgoing_edges and
1155         adapt.
1156         (fold_using_range::postfold_gcond_edges): Rename...
1157         (fur_source::register_outgoing_edges): ...to this.
1158         * gimple-range-fold.h (postfold_gcond_edges): Rename to
1159         register_outgoing_edges and move to fur_source.
1161 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
1163         * gimple-range-fold.cc (fold_using_range::range_of_phi): Check
1164         dom_info_available_p.
1166 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
1168         * gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
1169         and quick_grow_cleared instead of safe_grow_cleared.
1171 2021-09-21  Thomas Schwinge  <thomas@codesourcery.com>
1173         PR other/102408
1174         * omp-oacc-neuter-broadcast.cc (oacc_do_neutering): Evaluate
1175         'random ()' to '0'.
1177 2021-09-21  Richard Earnshaw  <rearnsha@arm.com>
1179         * configure.ac: Detect when the assembler supports new-style
1180         architecture extensions.
1181         * common/config/arm/arm-common.c (arm_rewrite_mcpu): Return
1182         the full CPU string if the assembler can grok it.
1183         (arm_rewrite_march): Likewise but for the architecture.
1184         * config.in: Regenerate.
1185         * configure: Regenerate.
1187 2021-09-21  Richard Biener  <rguenther@suse.de>
1189         PR tree-optimization/102421
1190         * tree-vect-loop.c (vect_dissolve_slp_only_groups): Copy and
1191         adjust alignment info.
1193 2021-09-21  Kewen Lin  <linkw@linux.ibm.com>
1195         * ipa-fnsummary.c (ipa_fn_summary_write): Remove inconsistent
1196         bitfield stream out.
1198 2021-09-20  Andrew MacLeod  <amacleod@redhat.com>
1200         * gimple-range-fold.cc (fold_using_range::range_of_phi): Ignore
1201         undefined edges, apply an equivalence if appropriate.
1202         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Return
1203         UNDEFINED if EDGE_EXECUTABLE is not set.
1204         * gimple-range.cc (gimple_ranger::gimple_ranger): Set all edges
1205         as EXECUTABLE upon startup.
1206         (gimple_ranger::range_on_edge): Return UNDEFINED for edges without
1207         EDGE_EXECUTABLE set.
1208         * vr-values.c (set_and_propagate_unexecutable): New.
1209         (simplify_using_ranges::fold_cond): Call set_and_propagate.
1210         (simplify_using_ranges::simplify_switch_using_ranges): Ditto.
1211         * vr-values.h: Add prototype.
1213 2021-09-20  Andrew MacLeod  <amacleod@redhat.com>
1215         * value-relation.cc (equiv_oracle::register_initial_def): New.
1216         (equiv_oracle::register_relation): Call register_initial_def.
1217         (equiv_oracle::add_equiv_to_block): New.  Split register_relation.
1218         (relation_oracle::register_stmt): Check def block of PHI arguments.
1219         * value-relation.h (equiv_oracle): Add new prototypes.
1221 2021-09-20  Matthias Kretz  <m.kretz@gsi.de>
1223         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
1224         Define __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
1225         __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
1226         __ROUNDING_MATH__ according to their corresponding flags.
1227         * doc/cpp.texi: Document __RECIPROCAL_MATH__,
1228         __NO_SIGNED_ZEROS__, __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__,
1229         and __ROUNDING_MATH__.
1231 2021-09-20  Richard Biener  <rguenther@suse.de>
1233         * tree-vect-stmts.c (vectorizable_load): Use the vectype
1234         from the SLP node.
1236 2021-09-20  Richard Biener  <rguenther@suse.de>
1238         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
1239         Do not compute alignment of the vectorized access here.
1241 2021-09-20  Richard Biener  <rguenther@suse.de>
1243         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1244         Store -1 for runtime alias peeling iterations.
1246 2021-09-20  Richard Biener  <rguenther@suse.de>
1248         * config.gcc: Obsolete hppa[12]*-*-hpux10* and hppa[12]*-*-hpux11*.
1250 2021-09-20  Thomas Schwinge  <thomas@codesourcery.com>
1252         * input.c (string_concat_db::record_string_concatenation)
1253         (string_concat_db::get_string_concatenation): Skip for
1254         'RESERVED_LOCATION_P'.
1256 2021-09-20  Richard Biener  <rguenther@suse.de>
1258         PR tree-optimization/65206
1259         * tree-data-ref.h (struct data_reference): Add alt_indices,
1260         order it last.
1261         * tree-data-ref.c (free_data_ref): Release alt_indices.
1262         (dr_analyze_indices): Work on struct indices and get DR_REF as tree.
1263         (create_data_ref): Adjust.
1264         (initialize_data_dependence_relation): Split into head
1265         and tail.  When the base objects fail to match up try
1266         again with pointer-based analysis of indices.
1267         * tree-vectorizer.c (vec_info_shared::check_datarefs): Do
1268         not compare the lazily computed alternate set of indices.
1270 2021-09-20  Iain Sandoe  <iain@sandoe.co.uk>
1272         * gcc.c: Test for execute OK when we find the
1273         programs for assembler linker and dsymutil and those
1274         were specified at configure-time.
1276 2021-09-19  Martin Sebor  <msebor@redhat.com>
1278         PR middle-end/102403
1279         * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
1280         Correct a function pre/postcondition.
1282 2021-09-19  Martin Sebor  <msebor@redhat.com>
1284         PR middle-end/102243
1285         * tree-ssa-strlen.c (get_range): Handle null cfun.
1287 2021-09-19  Iain Sandoe  <iain@sandoe.co.uk>
1289         * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10
1290         unwinder shim as a convenience library.
1292 2021-09-19  Andrew Pinski  <apinski@marvell.com>
1294         * doc/install.texi: Add note about
1295         binutils 2.35 is required for LTO usage.
1297 2021-09-19  Aldy Hernandez  <aldyh@redhat.com>
1299         * tree-ssa-threadbackward.c
1300         (back_threader_registry::register_path): Use push_edge.
1301         * tree-ssa-threadedge.c
1302         (jump_threader::thread_around_empty_blocks): Same.
1303         (jump_threader::thread_through_normal_block): Same.
1304         (jump_threader::thread_across_edge): Same.  Also, use auto_bitmap.
1305         Tidy up code.
1306         * tree-ssa-threadupdate.c
1307         (jt_path_registry::allocate_thread_edge): Remove.
1308         (jt_path_registry::push_edge): New.
1309         (dump_jump_thread_path): Make static.
1310         * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
1311         (push_edge): New.
1313 2021-09-19  Aldy Hernandez  <aldyh@redhat.com>
1315         * gimple-range-path.cc (path_range_query::path_range_query): Add
1316         header.
1317         (path_range_query::dump): Remove extern declaration of dump_ranger.
1318         * gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
1319         * gimple-range-trace.h (dump_ranger): Add prototype.
1321 2021-09-19  John Ericson  <git@JohnEricson.me>
1323         * gcc.c (find_a_program): New function, factored out of...
1324         (find_a_file): Here.
1325         (execute): Use find_a_program when looking for programs rather
1326         than find_a_file.
1328 2021-09-19  Matwey V. Kornilov  <matwey.kornilov@gmail.com>
1330         * config/avr/avr-mcus.def: Add atmega324pb.
1331         * doc/avr-mmcu.texi: Corresponding changes.
1333 2021-09-19  Roger Sayle  <roger@nextmovesoftware.com>
1335         PR middle-end/88173
1336         * match.pd (cmp @0 REAL_CST@1): When @0 is also REAL_CST, apply
1337         the same transformations as to @1.  For comparisons against NaN,
1338         don't check HONOR_SNANS but confirm that neither operand is a
1339         signaling NaN.
1341 2021-09-19  Benjamin Peterson  <benjamin@locrian.net>
1343         * attribs.c (make_unique_name): Delete.
1344         * attribs.h (make_unique_name): Delete.
1346 2021-09-19  Andrew Pinski  <apinski@marvell.com>
1348         * lra-constraints.c (check_and_process_move): Assert
1349         that dclass and sclass are greater than or equal to NO_REGS.
1351 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
1353         * tree.h (OMP_CLAUSE_ORDER_UNCONSTRAINED): Define.
1354         * tree-pretty-print.c (dump_omp_clause): Print unconstrained:
1355         for OMP_CLAUSE_ORDER_UNCONSTRAINED.
1357 2021-09-18  liuhongt  <hongtao.liu@intel.com>
1359         * config/i386/i386-features.c (remove_partial_avx_dependency):
1360         Restrict TARGET_USE_VECTOR_FP_CONVERTS and
1361         TARGET_USE_VECTOR_CONVERTS to conversion instructions only.
1363 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
1365         * gimplify.c (omp_default_clause): For C/C++ default({,first}private),
1366         if file/namespace scope variable doesn't have predetermined sharing,
1367         treat it as if there was default(none).
1369 2021-09-18  liuhongt  <hongtao.liu@intel.com>
1371         * config/i386/avx512fp16intrin.h (_mm_fmadd_sh):
1372         New intrinsic.
1373         (_mm_mask_fmadd_sh): Likewise.
1374         (_mm_mask3_fmadd_sh): Likewise.
1375         (_mm_maskz_fmadd_sh): Likewise.
1376         (_mm_fmadd_round_sh): Likewise.
1377         (_mm_mask_fmadd_round_sh): Likewise.
1378         (_mm_mask3_fmadd_round_sh): Likewise.
1379         (_mm_maskz_fmadd_round_sh): Likewise.
1380         (_mm_fnmadd_sh): Likewise.
1381         (_mm_mask_fnmadd_sh): Likewise.
1382         (_mm_mask3_fnmadd_sh): Likewise.
1383         (_mm_maskz_fnmadd_sh): Likewise.
1384         (_mm_fnmadd_round_sh): Likewise.
1385         (_mm_mask_fnmadd_round_sh): Likewise.
1386         (_mm_mask3_fnmadd_round_sh): Likewise.
1387         (_mm_maskz_fnmadd_round_sh): Likewise.
1388         (_mm_fmsub_sh): Likewise.
1389         (_mm_mask_fmsub_sh): Likewise.
1390         (_mm_mask3_fmsub_sh): Likewise.
1391         (_mm_maskz_fmsub_sh): Likewise.
1392         (_mm_fmsub_round_sh): Likewise.
1393         (_mm_mask_fmsub_round_sh): Likewise.
1394         (_mm_mask3_fmsub_round_sh): Likewise.
1395         (_mm_maskz_fmsub_round_sh): Likewise.
1396         (_mm_fnmsub_sh): Likewise.
1397         (_mm_mask_fnmsub_sh): Likewise.
1398         (_mm_mask3_fnmsub_sh): Likewise.
1399         (_mm_maskz_fnmsub_sh): Likewise.
1400         (_mm_fnmsub_round_sh): Likewise.
1401         (_mm_mask_fnmsub_round_sh): Likewise.
1402         (_mm_mask3_fnmsub_round_sh): Likewise.
1403         (_mm_maskz_fnmsub_round_sh): Likewise.
1404         * config/i386/i386-builtin-types.def
1405         (V8HF_FTYPE_V8HF_V8HF_V8HF_UQI_INT): New builtin type.
1406         * config/i386/i386-builtin.def: Add new builtins.
1407         * config/i386/i386-expand.c: Handle new builtin type.
1408         * config/i386/sse.md (fmai_vmfmadd_<mode><round_name>):
1409         Ajdust to support FP16.
1410         (fmai_vmfmsub_<mode><round_name>): Ditto.
1411         (fmai_vmfnmadd_<mode><round_name>): Ditto.
1412         (fmai_vmfnmsub_<mode><round_name>): Ditto.
1413         (*fmai_fmadd_<mode>): Ditto.
1414         (*fmai_fmsub_<mode>): Ditto.
1415         (*fmai_fnmadd_<mode><round_name>): Ditto.
1416         (*fmai_fnmsub_<mode><round_name>): Ditto.
1417         (avx512f_vmfmadd_<mode>_mask<round_name>): Ditto.
1418         (avx512f_vmfmadd_<mode>_mask3<round_name>): Ditto.
1419         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): Ditto.
1420         (avx512f_vmfmadd_<mode>_maskz_1<round_name>): Ditto.
1421         (*avx512f_vmfmsub_<mode>_mask<round_name>): Ditto.
1422         (avx512f_vmfmsub_<mode>_mask3<round_name>): Ditto.
1423         (*avx512f_vmfmsub_<mode>_maskz_1<round_name>): Ditto.
1424         (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
1425         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): Ditto.
1426         (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
1427         (*avx512f_vmfnmadd_<mode>_mask<round_name>): Renamed to ...
1428         (avx512f_vmfnmadd_<mode>_mask<round_name>) ... this, and
1429         adjust to support FP16.
1430         (avx512f_vmfnmadd_<mode>_mask3<round_name>): Ditto.
1431         (avx512f_vmfnmadd_<mode>_maskz_1<round_name>): Ditto.
1432         (avx512f_vmfnmadd_<mode>_maskz<round_expand_name>): New
1433         expander.
1435 2021-09-18  H.J. Lu  <hjl.tools@gmail.com>
1437         * config/i386/sse.md (avx512fmaskmodelower): Extend to support
1438         HF modes.
1439         (maskload<mode><avx512fmaskmodelower>): Ditto.
1440         (maskstore<mode><avx512fmaskmodelower>): Ditto.
1442 2021-09-18  H.J. Lu  <hjl.tools@gmail.com>
1444         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
1445         Handle HFmode.
1446         (ix86_expand_copysign): Ditto.
1447         (ix86_expand_xorsign): Ditto.
1448         * config/i386/i386.c (ix86_build_const_vector): Handle HF vector
1449         modes.
1450         (ix86_build_signbit_mask): Ditto.
1451         (ix86_can_change_mode_class): Ditto.
1452         * config/i386/i386.md
1453         (SSEMODEF): Add HFmode.
1454         (ssevecmodef): Ditto.
1455         (<code>hf2): New define_expand.
1456         (*<code>hf2_1): New define_insn_and_split.
1457         (copysign<mode>): Extend to support HFmode under AVX512FP16.
1458         (xorsign<mode>): Ditto.
1459         * config/i386/sse.md (VFB): New mode iterator.
1460         (VFB_128_256): Ditto.
1461         (VFB_512): Ditto.
1462         (sseintvecmode2): Support HF vector mode.
1463         (<code><mode>2): Use new mode iterator.
1464         (*<code><mode>2): Ditto.
1465         (copysign<mode>3): Ditto.
1466         (xorsign<mode>3): Ditto.
1467         (<code><mode>3<mask_name>): Ditto.
1468         (<code><mode>3<mask_name>): Ditto.
1469         (<sse>_andnot<mode>3<mask_name>): Adjust for HF vector mode.
1470         (<sse>_andnot<mode>3<mask_name>): Ditto.
1471         (*<code><mode>3<mask_name>): Ditto.
1472         (*<code><mode>3<mask_name>): Ditto.
1474 2021-09-18  liuhongt  <hongtao.liu@intel.com>
1476         * config/i386/avx512fp16intrin.h (_mm512_mask_fmadd_ph):
1477         New intrinsic.
1478         (_mm512_mask3_fmadd_ph): Likewise.
1479         (_mm512_maskz_fmadd_ph): Likewise.
1480         (_mm512_fmadd_round_ph): Likewise.
1481         (_mm512_mask_fmadd_round_ph): Likewise.
1482         (_mm512_mask3_fmadd_round_ph): Likewise.
1483         (_mm512_maskz_fmadd_round_ph): Likewise.
1484         (_mm512_fnmadd_ph): Likewise.
1485         (_mm512_mask_fnmadd_ph): Likewise.
1486         (_mm512_mask3_fnmadd_ph): Likewise.
1487         (_mm512_maskz_fnmadd_ph): Likewise.
1488         (_mm512_fnmadd_round_ph): Likewise.
1489         (_mm512_mask_fnmadd_round_ph): Likewise.
1490         (_mm512_mask3_fnmadd_round_ph): Likewise.
1491         (_mm512_maskz_fnmadd_round_ph): Likewise.
1492         (_mm512_fmsub_ph): Likewise.
1493         (_mm512_mask_fmsub_ph): Likewise.
1494         (_mm512_mask3_fmsub_ph): Likewise.
1495         (_mm512_maskz_fmsub_ph): Likewise.
1496         (_mm512_fmsub_round_ph): Likewise.
1497         (_mm512_mask_fmsub_round_ph): Likewise.
1498         (_mm512_mask3_fmsub_round_ph): Likewise.
1499         (_mm512_maskz_fmsub_round_ph): Likewise.
1500         (_mm512_fnmsub_ph): Likewise.
1501         (_mm512_mask_fnmsub_ph): Likewise.
1502         (_mm512_mask3_fnmsub_ph): Likewise.
1503         (_mm512_maskz_fnmsub_ph): Likewise.
1504         (_mm512_fnmsub_round_ph): Likewise.
1505         (_mm512_mask_fnmsub_round_ph): Likewise.
1506         (_mm512_mask3_fnmsub_round_ph): Likewise.
1507         (_mm512_maskz_fnmsub_round_ph): Likewise.
1508         * config/i386/avx512fp16vlintrin.h (_mm256_fmadd_ph):
1509         New intrinsic.
1510         (_mm256_mask_fmadd_ph): Likewise.
1511         (_mm256_mask3_fmadd_ph): Likewise.
1512         (_mm256_maskz_fmadd_ph): Likewise.
1513         (_mm_fmadd_ph): Likewise.
1514         (_mm_mask_fmadd_ph): Likewise.
1515         (_mm_mask3_fmadd_ph): Likewise.
1516         (_mm_maskz_fmadd_ph): Likewise.
1517         (_mm256_fnmadd_ph): Likewise.
1518         (_mm256_mask_fnmadd_ph): Likewise.
1519         (_mm256_mask3_fnmadd_ph): Likewise.
1520         (_mm256_maskz_fnmadd_ph): Likewise.
1521         (_mm_fnmadd_ph): Likewise.
1522         (_mm_mask_fnmadd_ph): Likewise.
1523         (_mm_mask3_fnmadd_ph): Likewise.
1524         (_mm_maskz_fnmadd_ph): Likewise.
1525         (_mm256_fmsub_ph): Likewise.
1526         (_mm256_mask_fmsub_ph): Likewise.
1527         (_mm256_mask3_fmsub_ph): Likewise.
1528         (_mm256_maskz_fmsub_ph): Likewise.
1529         (_mm_fmsub_ph): Likewise.
1530         (_mm_mask_fmsub_ph): Likewise.
1531         (_mm_mask3_fmsub_ph): Likewise.
1532         (_mm_maskz_fmsub_ph): Likewise.
1533         (_mm256_fnmsub_ph): Likewise.
1534         (_mm256_mask_fnmsub_ph): Likewise.
1535         (_mm256_mask3_fnmsub_ph): Likewise.
1536         (_mm256_maskz_fnmsub_ph): Likewise.
1537         (_mm_fnmsub_ph): Likewise.
1538         (_mm_mask_fnmsub_ph): Likewise.
1539         (_mm_mask3_fnmsub_ph): Likewise.
1540         (_mm_maskz_fnmsub_ph): Likewise.
1541         * config/i386/i386-builtin.def: Add corresponding new builtins.
1542         * config/i386/sse.md
1543         (<avx512>_fmadd_<mode>_maskz<round_expand_name>): Adjust to
1544         support HF vector modes.
1545         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
1546         Ditto.
1547         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
1548         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
1549         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
1550         (<avx512>_fmadd_<mode>_mask<round_name>): Ditto.
1551         (<avx512>_fmadd_<mode>_mask3<round_name>): Ditto.
1552         (<avx512>_fmsub_<mode>_maskz<round_expand_name>): Ditto.
1553         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
1554         Ditto.
1555         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
1556         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
1557         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
1558         (<avx512>_fmsub_<mode>_mask<round_name>): Ditto.
1559         (<avx512>_fmsub_<mode>_mask3<round_name>): Ditto.
1560         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
1561         Ditto.
1562         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
1563         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
1564         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
1565         (<avx512>_fnmadd_<mode>_mask<round_name>): Ditto.
1566         (<avx512>_fnmadd_<mode>_mask3<round_name>): Ditto.
1567         (<avx512>_fnmsub_<mode>_maskz<round_expand_name>): Ditto.
1568         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
1569         Ditto.
1570         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
1571         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
1572         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
1573         (<avx512>_fnmsub_<mode>_mask<round_name>): Ditto.
1574         (<avx512>_fnmsub_<mode>_mask3<round_name>): Ditto.
1576 2021-09-18  liuhongt  <hongtao.liu@intel.com>
1578         * config/i386/avx512fp16intrin.h (_mm512_fmaddsub_ph):
1579         New intrinsic.
1580         (_mm512_mask_fmaddsub_ph): Likewise.
1581         (_mm512_mask3_fmaddsub_ph): Likewise.
1582         (_mm512_maskz_fmaddsub_ph): Likewise.
1583         (_mm512_fmaddsub_round_ph): Likewise.
1584         (_mm512_mask_fmaddsub_round_ph): Likewise.
1585         (_mm512_mask3_fmaddsub_round_ph): Likewise.
1586         (_mm512_maskz_fmaddsub_round_ph): Likewise.
1587         (_mm512_mask_fmsubadd_ph): Likewise.
1588         (_mm512_mask3_fmsubadd_ph): Likewise.
1589         (_mm512_maskz_fmsubadd_ph): Likewise.
1590         (_mm512_fmsubadd_round_ph): Likewise.
1591         (_mm512_mask_fmsubadd_round_ph): Likewise.
1592         (_mm512_mask3_fmsubadd_round_ph): Likewise.
1593         (_mm512_maskz_fmsubadd_round_ph): Likewise.
1594         * config/i386/avx512fp16vlintrin.h (_mm256_fmaddsub_ph):
1595         New intrinsic.
1596         (_mm256_mask_fmaddsub_ph): Likewise.
1597         (_mm256_mask3_fmaddsub_ph): Likewise.
1598         (_mm256_maskz_fmaddsub_ph): Likewise.
1599         (_mm_fmaddsub_ph): Likewise.
1600         (_mm_mask_fmaddsub_ph): Likewise.
1601         (_mm_mask3_fmaddsub_ph): Likewise.
1602         (_mm_maskz_fmaddsub_ph): Likewise.
1603         (_mm256_fmsubadd_ph): Likewise.
1604         (_mm256_mask_fmsubadd_ph): Likewise.
1605         (_mm256_mask3_fmsubadd_ph): Likewise.
1606         (_mm256_maskz_fmsubadd_ph): Likewise.
1607         (_mm_fmsubadd_ph): Likewise.
1608         (_mm_mask_fmsubadd_ph): Likewise.
1609         (_mm_mask3_fmsubadd_ph): Likewise.
1610         (_mm_maskz_fmsubadd_ph): Likewise.
1611         * config/i386/i386-builtin.def: Add corresponding new builtins.
1612         * config/i386/sse.md (VFH_SF_AVX512VL): New mode iterator.
1613         * (<avx512>_fmsubadd_<mode>_maskz<round_expand_name>): New expander.
1614         * (<avx512>_fmaddsub_<mode>_maskz<round_expand_name>): Use
1615         VFH_SF_AVX512VL.
1616         * (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
1617         Ditto.
1618         * (<avx512>_fmaddsub_<mode>_mask<round_name>): Ditto.
1619         * (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
1620         * (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
1621         Ditto.
1622         * (<avx512>_fmsubadd_<mode>_mask<round_name>): Ditto.
1623         * (<avx512>_fmsubadd_<mode>_mask3<round_name>): Ditto.
1625 2021-09-18  liuhongt  <hongtao.liu@intel.com>
1627         PR target/87767
1628         * config/i386/i386.c (ix86_print_operand): Handle
1629         V8HF/V16HF/V32HFmode.
1630         * config/i386/i386.h (VALID_BCST_MODE_P): Add HFmode.
1631         * config/i386/sse.md (avx512bcst): Remove.
1633 2021-09-17  Martin Sebor  <msebor@redhat.com>
1635         * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
1636         * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
1637         (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
1638         (check_defs): Add comment.
1639         (can_skip_redundant_opnd): Update comment.
1640         (compute_uninit_opnds_pos): Adjust to namespace change.
1641         (find_pdom): Move to gimple-predicate-analysis.cc.
1642         (find_dom): Same.
1643         (struct uninit_undef_val_t): New.
1644         (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
1645         (find_control_equiv_block): Same.
1646         (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
1647         (MAX_SWITCH_CASES): Same.
1648         (compute_control_dep_chain): Same.
1649         (find_uninit_use): Use predicate analyzer.
1650         (struct pred_info): Move to gimple-predicate-analysis.
1651         (convert_control_dep_chain_into_preds): Same.
1652         (find_predicates): Same.
1653         (collect_phi_def_edges): Same.
1654         (warn_uninitialized_phi): Use predicate analyzer.
1655         (find_def_preds): Move to gimple-predicate-analysis.
1656         (dump_pred_info): Same.
1657         (dump_pred_chain): Same.
1658         (dump_predicates): Same.
1659         (destroy_predicate_vecs): Remove.
1660         (execute_late_warn_uninitialized): New.
1661         (get_cmp_code): Move to gimple-predicate-analysis.
1662         (is_value_included_in): Same.
1663         (value_sat_pred_p): Same.
1664         (find_matching_predicate_in_rest_chains): Same.
1665         (is_use_properly_guarded): Same.
1666         (prune_uninit_phi_opnds): Same.
1667         (find_var_cmp_const): Same.
1668         (use_pred_not_overlap_with_undef_path_pred): Same.
1669         (pred_equal_p): Same.
1670         (is_neq_relop_p): Same.
1671         (is_neq_zero_form_p): Same.
1672         (pred_expr_equal_p): Same.
1673         (is_pred_expr_subset_of): Same.
1674         (is_pred_chain_subset_of): Same.
1675         (is_included_in): Same.
1676         (is_superset_of): Same.
1677         (pred_neg_p): Same.
1678         (simplify_pred): Same.
1679         (simplify_preds_2): Same.
1680         (simplify_preds_3): Same.
1681         (simplify_preds_4): Same.
1682         (simplify_preds): Same.
1683         (push_pred): Same.
1684         (push_to_worklist): Same.
1685         (get_pred_info_from_cmp): Same.
1686         (is_degenerated_phi): Same.
1687         (normalize_one_pred_1): Same.
1688         (normalize_one_pred): Same.
1689         (normalize_one_pred_chain): Same.
1690         (normalize_preds): Same.
1691         (can_one_predicate_be_invalidated_p): Same.
1692         (can_chain_union_be_invalidated_p): Same.
1693         (uninit_uses_cannot_happen): Same.
1694         (pass_late_warn_uninitialized::execute): Define.
1695         * gimple-predicate-analysis.cc: New file.
1696         * gimple-predicate-analysis.h: New file.
1698 2021-09-17  Julian Brown  <julian@codesourcery.com>
1700         * config/gcn/gcn.c (gimple.h): Include.
1701         (gcn_fork_join): Emit barrier for worker-level joins.
1702         * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
1703         writes_gang_private bitmap parameter. Set bit for blocks
1704         containing gang-private variable writes.
1705         (worker_single_simple): Don't emit barrier after predicated block.
1706         (worker_single_copy): Don't emit barrier if we're not broadcasting
1707         anything and the block contains no gang-private writes.
1708         (neuter_worker_single): Don't predicate blocks that only contain
1709         NOPs or internal marker functions.  Pass has_gang_private_write
1710         argument to worker_single_copy.
1711         (oacc_do_neutering): Add writes_gang_private bitmap handling.
1713 2021-09-17  Julian Brown  <julian@codesourcery.com>
1715         * config/gcn/gcn-protos.h
1716         (gcn_goacc_create_worker_broadcast_record): Update prototype.
1717         * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
1718         preallocated block of LDS memory.  Do not cache/share decls for
1719         reduction temporaries between invocations.
1720         (gcn_goacc_reduction_teardown): Unshare VAR on second use.
1721         (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
1722         and return temporary LDS space at that offset.  Return pointer in
1723         "sender" case.
1724         * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
1725         New global vars.
1726         (ACC_LDS_SIZE): Define as acc_lds_size.
1727         (gcn_init_machine_status): Don't initialise lds_allocated,
1728         lds_allocs, reduc_decls fields of machine function struct.
1729         (gcn_option_override): Handle default size for gang-private
1730         variables and -mgang-private-size option.
1731         (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
1732         initialising M0_REG.
1733         (gcn_shared_mem_layout): New function.
1734         (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
1735         gang_private_hwm variable.
1736         (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
1737         * config/gcn/gcn.h (machine_function): Remove lds_allocated,
1738         lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
1739         * config/gcn/gcn.opt (gang_private_size_opt): New global.
1740         (mgang-private-size=): New option.
1741         * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
1742         documentation hook.
1743         * doc/tm.texi: Regenerate.
1744         * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
1745         Add includes.
1746         (build_sender_ref): Handle sender_decl being pointer.
1747         (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
1748         parameters.  Pass placement argument to
1749         create_worker_broadcast_record hook invocations.  Handle
1750         sender_decl being pointer and isolate_broadcasts inserting extra
1751         barriers.
1752         (blk_offset_map_t): Add typedef.
1753         (neuter_worker_single): Add BLK_OFFSET_MAP parameter.  Pass
1754         preallocated range to worker_single_copy call.
1755         (dfs_broadcast_reachable_1): New function.
1756         (idx_decl_pair_t, used_range_vec_t): New typedefs.
1757         (sort_size_descending): New function.
1758         (addr_range): New class.
1759         (splay_tree_compare_addr_range, splay_tree_free_key)
1760         (first_fit_range, merge_ranges_1, merge_ranges): New functions.
1761         (execute_omp_oacc_neuter_broadcast): Rename to...
1762         (oacc_do_neutering): ... this.  Add BOUNDS_LO, BOUNDS_HI
1763         parameters.  Arrange layout of shared memory for broadcast
1764         operations.
1765         (execute_omp_oacc_neuter_broadcast): New function.
1766         (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
1767         handling from here.  Enable pass for all OpenACC routines in order
1768         to call shared memory-layout hook.
1769         * target.def (create_worker_broadcast_record): Add OFFSET
1770         parameter.
1771         (shared_mem_layout): New hook.
1773 2021-09-17  Julian Brown  <julian@codesourcery.com>
1774             Thomas Schwinge  <thomas@codesourcery.com>
1776         * omp-oacc-neuter-broadcast.cc
1777         (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
1778         1.
1779         (execute_omp_oacc_neuter_broadcast): Adjust.
1781 2021-09-17  Andrew MacLeod  <amacleod@redhat.com>
1783         * value-relation.cc (class equiv_chain): Move to header file.
1784         (path_oracle::path_oracle): New.
1785         (path_oracle::~path_oracle): New.
1786         (path_oracle::register_relation): New.
1787         (path_oracle::query_relation): New.
1788         (path_oracle::reset_path): New.
1789         (path_oracle::dump): New.
1790         * value-relation.h (class equiv_chain): Move to here.
1791         (class path_oracle): New.
1793 2021-09-17  Andrew MacLeod  <amacleod@redhat.com>
1795         * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
1796         based oracle.
1797         * gimple-range-fold.cc (fur_depend::register_relation): Use
1798         register_stmt/edge routines.
1799         * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
1800         (equiv_oracle::equiv_oracle): Create self equivalence cache.
1801         (equiv_oracle::~equiv_oracle): Release same.
1802         (equiv_oracle::equiv_set): Return entry from self equiv cache if there
1803         are no equivalences.
1804         (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
1805         (equiv_oracle::register_relation): Rename from register_equiv.
1806         (relation_chain_head::find_relation): Relocate from dom_oracle.
1807         (relation_oracle::register_stmt): New.
1808         (relation_oracle::register_edge): New.
1809         (dom_oracle::*): Rename from relation_oracle.
1810         (dom_oracle::register_relation): Adjust to call equiv_oracle.
1811         (dom_oracle::set_one_relation): Split from register_relation.
1812         (dom_oracle::register_transitives): Consolidate 2 methods.
1813         (dom_oracle::find_relation_block): Move core to relation_chain.
1814         (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
1815         * value-relation.h (class relation_oracle): New pure virtual base.
1816         (class equiv_oracle): Inherit from relation_oracle and adjust.
1817         (class dom_oracle): Rename from old relation_oracle and adjust.
1819 2021-09-17  Martin Sebor  <msebor@redhat.com>
1821         PR middle-end/102200
1822         * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
1823         (handle_min_max_size): Change argument.  Store original SSA_NAME for
1824         operands to potentially distinct (sub)objects.
1825         (compute_objsize_r): Adjust call to the above.
1827 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
1829         * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
1830         (rs6000_new_builtin_vectorized_function): New function.
1831         (rs6000_new_builtin_md_vectorized_function): Likewise.
1832         (rs6000_builtin_vectorized_function): Call
1833         rs6000_new_builtin_vectorized_function.
1834         (rs6000_builtin_md_vectorized_function): Call
1835         rs6000_new_builtin_md_vectorized_function.
1837 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
1839         * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
1840         (ASSEMBLE_PAIR): Likewise.
1841         (BUILD_ACC): Likewise.
1842         (DISASSEMBLE_ACC): Likewise.
1843         (DISASSEMBLE_PAIR): Likewise.
1844         (PMXVBF16GER2): Likewise.
1845         (PMXVBF16GER2NN): Likewise.
1846         (PMXVBF16GER2NP): Likewise.
1847         (PMXVBF16GER2PN): Likewise.
1848         (PMXVBF16GER2PP): Likewise.
1849         (PMXVF16GER2): Likewise.
1850         (PMXVF16GER2NN): Likewise.
1851         (PMXVF16GER2NP): Likewise.
1852         (PMXVF16GER2PN): Likewise.
1853         (PMXVF16GER2PP): Likewise.
1854         (PMXVF32GER): Likewise.
1855         (PMXVF32GERNN): Likewise.
1856         (PMXVF32GERNP): Likewise.
1857         (PMXVF32GERPN): Likewise.
1858         (PMXVF32GERPP): Likewise.
1859         (PMXVF64GER): Likewise.
1860         (PMXVF64GERNN): Likewise.
1861         (PMXVF64GERNP): Likewise.
1862         (PMXVF64GERPN): Likewise.
1863         (PMXVF64GERPP): Likewise.
1864         (PMXVI16GER2): Likewise.
1865         (PMXVI16GER2PP): Likewise.
1866         (PMXVI16GER2S): Likewise.
1867         (PMXVI16GER2SPP): Likewise.
1868         (PMXVI4GER8): Likewise.
1869         (PMXVI4GER8PP): Likewise.
1870         (PMXVI8GER4): Likewise.
1871         (PMXVI8GER4PP): Likewise.
1872         (PMXVI8GER4SPP): Likewise.
1873         (XVBF16GER2): Likewise.
1874         (XVBF16GER2NN): Likewise.
1875         (XVBF16GER2NP): Likewise.
1876         (XVBF16GER2PN): Likewise.
1877         (XVBF16GER2PP): Likewise.
1878         (XVF16GER2): Likewise.
1879         (XVF16GER2NN): Likewise.
1880         (XVF16GER2NP): Likewise.
1881         (XVF16GER2PN): Likewise.
1882         (XVF16GER2PP): Likewise.
1883         (XVF32GER): Likewise.
1884         (XVF32GERNN): Likewise.
1885         (XVF32GERNP): Likewise.
1886         (XVF32GERPN): Likewise.
1887         (XVF32GERPP): Likewise.
1888         (XVF64GER): Likewise.
1889         (XVF64GERNN): Likewise.
1890         (XVF64GERNP): Likewise.
1891         (XVF64GERPN): Likewise.
1892         (XVF64GERPP): Likewise.
1893         (XVI16GER2): Likewise.
1894         (XVI16GER2PP): Likewise.
1895         (XVI16GER2S): Likewise.
1896         (XVI16GER2SPP): Likewise.
1897         (XVI4GER8): Likewise.
1898         (XVI4GER8PP): Likewise.
1899         (XVI8GER4): Likewise.
1900         (XVI8GER4PP): Likewise.
1901         (XVI8GER4SPP): Likewise.
1902         (XXMFACC): Likewise.
1903         (XXMTACC): Likewise.
1904         (XXSETACCZ): Likewise.
1905         (ASSEMBLE_PAIR_V): Likewise.
1906         (BUILD_PAIR): Likewise.
1907         (DISASSEMBLE_PAIR_V): Likewise.
1908         (LXVP): New.
1909         (STXVP): New.
1910         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
1911         Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
1912         * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
1913         (parse_bif_attrs): Handle ismmaint.
1914         (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
1915         (write_bif_static_init): Handle ismmaint.
1917 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
1919         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
1920         forward decl.
1921         (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
1922         (rs6000_new_builtin_valid_without_lhs): New function.
1923         (rs6000_gimple_fold_new_mma_builtin): Likewise.
1924         (rs6000_gimple_fold_new_builtin): Likewise.
1926 2021-09-17  Thomas Schwinge  <thomas@codesourcery.com>
1928         * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
1929         Destruct stale Value objects.
1930         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
1931         Update.
1933 2021-09-17  Roger Sayle  <roger@nextmovesoftware.com>
1935         PR c/102245
1936         * match.pd (shift optimizations): Disable recent sign-changing
1937         optimization for shifts by zero, these will be folded later.
1939 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
1941         * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
1942         [power9] to [always].
1944 2021-09-17  Richard Biener  <rguenther@suse.de>
1946         * tree-vect-stmts.c (vectorizable_load): Do not frob
1947         stmt_info for SLP.
1949 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
1951         * config/i386/i386-features.c (remove_partial_avx_dependency):
1952         Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
1953         and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
1954         vxorps.
1955         * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
1956         New.
1957         (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
1958         * config/i386/i386.md (SSE FP to FP splitters): Replace
1959         TARGET_SSE_PARTIAL_REG_DEPENDENCY with
1960         TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
1961         (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
1962         with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
1963         * config/i386/x86-tune.def
1964         (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
1965         (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
1967 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
1969         PR target/101900
1970         * config/i386/i386-features.c (remove_partial_avx_dependency):
1971         Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
1972         before generating vxorps.
1974 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
1976         * config/i386/i386-options.c (processor_cost_table): Use
1977         tremont_cost for Tremont.
1978         * config/i386/x86-tune-costs.h (tremont_memcpy): New.
1979         (tremont_memset): Likewise.
1980         (tremont_cost): Likewise.
1981         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
1982         Enable for Tremont.
1984 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
1986         * common/config/i386/i386-common.c: Use Haswell scheduling model
1987         for Tremont.
1988         * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
1989         scheduling pass.
1990         * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
1991         issue rate to 4.
1992         (ix86_adjust_cost): Handle Tremont.
1993         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
1994         Enable for Tremont.
1995         (X86_TUNE_USE_LEAVE): Likewise.
1996         (X86_TUNE_PUSH_MEMORY): Likewise.
1997         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
1998         (X86_TUNE_USE_CLTD): Likewise.
1999         (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
2000         (X86_TUNE_AVOID_MFENCE): Likewise.
2001         (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
2002         (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
2003         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
2004         (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
2005         (X86_TUNE_OPT_AGU): Likewise.
2006         (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
2007         (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
2008         (X86_TUNE_EXPAND_ABS): Likewise.
2009         (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
2010         (X86_TUNE_SLOW_PSHUFB): Likewise.
2012 2021-09-17  Eric Botcazou  <ebotcazou@adacore.com>
2014         PR rtl-optimization/102306
2015         * combine.c (try_combine): Abort the combination if we are about to
2016         duplicate volatile references.
2018 2021-09-17  liuhongt  <hongtao.liu@intel.com>
2020         * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
2021         New intrinsic.
2022         (_mm256_undefined_ph): Likewise.
2023         (_mm512_undefined_ph): Likewise.
2024         (_mm_cvtsh_h): Likewise.
2025         (_mm256_cvtsh_h): Likewise.
2026         (_mm512_cvtsh_h): Likewise.
2027         (_mm512_castph_ps): Likewise.
2028         (_mm512_castph_pd): Likewise.
2029         (_mm512_castph_si512): Likewise.
2030         (_mm512_castph512_ph128): Likewise.
2031         (_mm512_castph512_ph256): Likewise.
2032         (_mm512_castph128_ph512): Likewise.
2033         (_mm512_castph256_ph512): Likewise.
2034         (_mm512_zextph128_ph512): Likewise.
2035         (_mm512_zextph256_ph512): Likewise.
2036         (_mm512_castps_ph): Likewise.
2037         (_mm512_castpd_ph): Likewise.
2038         (_mm512_castsi512_ph): Likewise.
2039         * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
2040         New intrinsic.
2041         (_mm256_castph_ps): Likewise.
2042         (_mm_castph_pd): Likewise.
2043         (_mm256_castph_pd): Likewise.
2044         (_mm_castph_si128): Likewise.
2045         (_mm256_castph_si256): Likewise.
2046         (_mm_castps_ph): Likewise.
2047         (_mm256_castps_ph): Likewise.
2048         (_mm_castpd_ph): Likewise.
2049         (_mm256_castpd_ph): Likewise.
2050         (_mm_castsi128_ph): Likewise.
2051         (_mm256_castsi256_ph): Likewise.
2052         (_mm256_castph256_ph128): Likewise.
2053         (_mm256_castph128_ph256): Likewise.
2054         (_mm256_zextph128_ph256): Likewise.
2056 2021-09-17  liuhongt  <hongtao.liu@intel.com>
2058         * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
2059         New intrinsic.
2060         (_mm_mask_cvtsh_ss): Likewise.
2061         (_mm_maskz_cvtsh_ss): Likewise.
2062         (_mm_cvtsh_sd): Likewise.
2063         (_mm_mask_cvtsh_sd): Likewise.
2064         (_mm_maskz_cvtsh_sd): Likewise.
2065         (_mm_cvt_roundsh_ss): Likewise.
2066         (_mm_mask_cvt_roundsh_ss): Likewise.
2067         (_mm_maskz_cvt_roundsh_ss): Likewise.
2068         (_mm_cvt_roundsh_sd): Likewise.
2069         (_mm_mask_cvt_roundsh_sd): Likewise.
2070         (_mm_maskz_cvt_roundsh_sd): Likewise.
2071         (_mm_cvtss_sh): Likewise.
2072         (_mm_mask_cvtss_sh): Likewise.
2073         (_mm_maskz_cvtss_sh): Likewise.
2074         (_mm_cvtsd_sh): Likewise.
2075         (_mm_mask_cvtsd_sh): Likewise.
2076         (_mm_maskz_cvtsd_sh): Likewise.
2077         (_mm_cvt_roundss_sh): Likewise.
2078         (_mm_mask_cvt_roundss_sh): Likewise.
2079         (_mm_maskz_cvt_roundss_sh): Likewise.
2080         (_mm_cvt_roundsd_sh): Likewise.
2081         (_mm_mask_cvt_roundsd_sh): Likewise.
2082         (_mm_maskz_cvt_roundsd_sh): Likewise.
2083         * config/i386/i386-builtin-types.def
2084         (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
2085         V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
2086         V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
2087         V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
2088         * config/i386/i386-builtin.def: Add corrresponding new builtins.
2089         * config/i386/i386-expand.c: Handle new builtin types.
2090         * config/i386/sse.md (VF48_128): New mode iterator.
2091         (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
2092         New.
2093         (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
2094         Ditto.
2096 2021-09-17  liuhongt  <hongtao.liu@intel.com>
2098         * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
2099         New intrinsic.
2100         (_mm512_mask_cvtph_pd): Likewise.
2101         (_mm512_maskz_cvtph_pd): Likewise.
2102         (_mm512_cvt_roundph_pd): Likewise.
2103         (_mm512_mask_cvt_roundph_pd): Likewise.
2104         (_mm512_maskz_cvt_roundph_pd): Likewise.
2105         (_mm512_cvtxph_ps): Likewise.
2106         (_mm512_mask_cvtxph_ps): Likewise.
2107         (_mm512_maskz_cvtxph_ps): Likewise.
2108         (_mm512_cvtx_roundph_ps): Likewise.
2109         (_mm512_mask_cvtx_roundph_ps): Likewise.
2110         (_mm512_maskz_cvtx_roundph_ps): Likewise.
2111         (_mm512_cvtxps_ph): Likewise.
2112         (_mm512_mask_cvtxps_ph): Likewise.
2113         (_mm512_maskz_cvtxps_ph): Likewise.
2114         (_mm512_cvtx_roundps_ph): Likewise.
2115         (_mm512_mask_cvtx_roundps_ph): Likewise.
2116         (_mm512_maskz_cvtx_roundps_ph): Likewise.
2117         (_mm512_cvtpd_ph): Likewise.
2118         (_mm512_mask_cvtpd_ph): Likewise.
2119         (_mm512_maskz_cvtpd_ph): Likewise.
2120         (_mm512_cvt_roundpd_ph): Likewise.
2121         (_mm512_mask_cvt_roundpd_ph): Likewise.
2122         (_mm512_maskz_cvt_roundpd_ph): Likewise.
2123         * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
2124         New intrinsic.
2125         (_mm_mask_cvtph_pd): Likewise.
2126         (_mm_maskz_cvtph_pd): Likewise.
2127         (_mm256_cvtph_pd): Likewise.
2128         (_mm256_mask_cvtph_pd): Likewise.
2129         (_mm256_maskz_cvtph_pd): Likewise.
2130         (_mm_cvtxph_ps): Likewise.
2131         (_mm_mask_cvtxph_ps): Likewise.
2132         (_mm_maskz_cvtxph_ps): Likewise.
2133         (_mm256_cvtxph_ps): Likewise.
2134         (_mm256_mask_cvtxph_ps): Likewise.
2135         (_mm256_maskz_cvtxph_ps): Likewise.
2136         (_mm_cvtxps_ph): Likewise.
2137         (_mm_mask_cvtxps_ph): Likewise.
2138         (_mm_maskz_cvtxps_ph): Likewise.
2139         (_mm256_cvtxps_ph): Likewise.
2140         (_mm256_mask_cvtxps_ph): Likewise.
2141         (_mm256_maskz_cvtxps_ph): Likewise.
2142         (_mm_cvtpd_ph): Likewise.
2143         (_mm_mask_cvtpd_ph): Likewise.
2144         (_mm_maskz_cvtpd_ph): Likewise.
2145         (_mm256_cvtpd_ph): Likewise.
2146         (_mm256_mask_cvtpd_ph): Likewise.
2147         (_mm256_maskz_cvtpd_ph): Likewise.
2148         * config/i386/i386-builtin.def: Add corresponding new builtins.
2149         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
2150         * config/i386/i386-expand.c: Handle new builtin types.
2151         * config/i386/sse.md
2152         (VF4_128_8_256): New.
2153         (VF48H_AVX512VL): Ditto.
2154         (ssePHmode): Add HF vector modes.
2155         (castmode): Add new convertable modes.
2156         (qq2phsuff): Ditto.
2157         (ph2pssuffix): New.
2158         (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
2159         (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
2160         (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
2161         (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
2162         (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
2163         (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
2164         (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
2165         Ditto.
2166         (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
2167         (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
2168         (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
2169         (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
2171 2021-09-17  liuhongt  <hongtao.liu@intel.com>
2173         * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
2174         New intrinsic.
2175         (_mm_cvttsh_u32): Likewise.
2176         (_mm_cvtt_roundsh_i32): Likewise.
2177         (_mm_cvtt_roundsh_u32): Likewise.
2178         (_mm_cvttsh_i64): Likewise.
2179         (_mm_cvttsh_u64): Likewise.
2180         (_mm_cvtt_roundsh_i64): Likewise.
2181         (_mm_cvtt_roundsh_u64): Likewise.
2182         * config/i386/i386-builtin.def: Add corresponding new builtins.
2183         * config/i386/sse.md
2184         (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
2185         New.
2187 2021-09-17  liuhongt  <hongtao.liu@intel.com>
2189         * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
2190         New intrinsic.
2191         (_mm512_mask_cvttph_epi32): Likewise.
2192         (_mm512_maskz_cvttph_epi32): Likewise.
2193         (_mm512_cvtt_roundph_epi32): Likewise.
2194         (_mm512_mask_cvtt_roundph_epi32): Likewise.
2195         (_mm512_maskz_cvtt_roundph_epi32): Likewise.
2196         (_mm512_cvttph_epu32): Likewise.
2197         (_mm512_mask_cvttph_epu32): Likewise.
2198         (_mm512_maskz_cvttph_epu32): Likewise.
2199         (_mm512_cvtt_roundph_epu32): Likewise.
2200         (_mm512_mask_cvtt_roundph_epu32): Likewise.
2201         (_mm512_maskz_cvtt_roundph_epu32): Likewise.
2202         (_mm512_cvttph_epi64): Likewise.
2203         (_mm512_mask_cvttph_epi64): Likewise.
2204         (_mm512_maskz_cvttph_epi64): Likewise.
2205         (_mm512_cvtt_roundph_epi64): Likewise.
2206         (_mm512_mask_cvtt_roundph_epi64): Likewise.
2207         (_mm512_maskz_cvtt_roundph_epi64): Likewise.
2208         (_mm512_cvttph_epu64): Likewise.
2209         (_mm512_mask_cvttph_epu64): Likewise.
2210         (_mm512_maskz_cvttph_epu64): Likewise.
2211         (_mm512_cvtt_roundph_epu64): Likewise.
2212         (_mm512_mask_cvtt_roundph_epu64): Likewise.
2213         (_mm512_maskz_cvtt_roundph_epu64): Likewise.
2214         (_mm512_cvttph_epi16): Likewise.
2215         (_mm512_mask_cvttph_epi16): Likewise.
2216         (_mm512_maskz_cvttph_epi16): Likewise.
2217         (_mm512_cvtt_roundph_epi16): Likewise.
2218         (_mm512_mask_cvtt_roundph_epi16): Likewise.
2219         (_mm512_maskz_cvtt_roundph_epi16): Likewise.
2220         (_mm512_cvttph_epu16): Likewise.
2221         (_mm512_mask_cvttph_epu16): Likewise.
2222         (_mm512_maskz_cvttph_epu16): Likewise.
2223         (_mm512_cvtt_roundph_epu16): Likewise.
2224         (_mm512_mask_cvtt_roundph_epu16): Likewise.
2225         (_mm512_maskz_cvtt_roundph_epu16): Likewise.
2226         * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
2227         New intirnsic.
2228         (_mm_mask_cvttph_epi32): Likewise.
2229         (_mm_maskz_cvttph_epi32): Likewise.
2230         (_mm256_cvttph_epi32): Likewise.
2231         (_mm256_mask_cvttph_epi32): Likewise.
2232         (_mm256_maskz_cvttph_epi32): Likewise.
2233         (_mm_cvttph_epu32): Likewise.
2234         (_mm_mask_cvttph_epu32): Likewise.
2235         (_mm_maskz_cvttph_epu32): Likewise.
2236         (_mm256_cvttph_epu32): Likewise.
2237         (_mm256_mask_cvttph_epu32): Likewise.
2238         (_mm256_maskz_cvttph_epu32): Likewise.
2239         (_mm_cvttph_epi64): Likewise.
2240         (_mm_mask_cvttph_epi64): Likewise.
2241         (_mm_maskz_cvttph_epi64): Likewise.
2242         (_mm256_cvttph_epi64): Likewise.
2243         (_mm256_mask_cvttph_epi64): Likewise.
2244         (_mm256_maskz_cvttph_epi64): Likewise.
2245         (_mm_cvttph_epu64): Likewise.
2246         (_mm_mask_cvttph_epu64): Likewise.
2247         (_mm_maskz_cvttph_epu64): Likewise.
2248         (_mm256_cvttph_epu64): Likewise.
2249         (_mm256_mask_cvttph_epu64): Likewise.
2250         (_mm256_maskz_cvttph_epu64): Likewise.
2251         (_mm_cvttph_epi16): Likewise.
2252         (_mm_mask_cvttph_epi16): Likewise.
2253         (_mm_maskz_cvttph_epi16): Likewise.
2254         (_mm256_cvttph_epi16): Likewise.
2255         (_mm256_mask_cvttph_epi16): Likewise.
2256         (_mm256_maskz_cvttph_epi16): Likewise.
2257         (_mm_cvttph_epu16): Likewise.
2258         (_mm_mask_cvttph_epu16): Likewise.
2259         (_mm_maskz_cvttph_epu16): Likewise.
2260         (_mm256_cvttph_epu16): Likewise.
2261         (_mm256_mask_cvttph_epu16): Likewise.
2262         (_mm256_maskz_cvttph_epu16): Likewise.
2263         * config/i386/i386-builtin.def: Add new builtins.
2264         * config/i386/sse.md
2265         (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
2266         New.
2267         (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
2268         (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
2269         (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
2270         (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
2272 2021-09-17  liuhongt  <hongtao.liu@intel.com>
2274         * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
2275         (_mm_cvtsh_u32): Likewise.
2276         (_mm_cvt_roundsh_i32): Likewise.
2277         (_mm_cvt_roundsh_u32): Likewise.
2278         (_mm_cvtsh_i64): Likewise.
2279         (_mm_cvtsh_u64): Likewise.
2280         (_mm_cvt_roundsh_i64): Likewise.
2281         (_mm_cvt_roundsh_u64): Likewise.
2282         (_mm_cvti32_sh): Likewise.
2283         (_mm_cvtu32_sh): Likewise.
2284         (_mm_cvt_roundi32_sh): Likewise.
2285         (_mm_cvt_roundu32_sh): Likewise.
2286         (_mm_cvti64_sh): Likewise.
2287         (_mm_cvtu64_sh): Likewise.
2288         (_mm_cvt_roundi64_sh): Likewise.
2289         (_mm_cvt_roundu64_sh): Likewise.
2290         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
2291         * config/i386/i386-builtin.def: Add corresponding new builtins.
2292         * config/i386/i386-expand.c (ix86_expand_round_builtin):
2293         Handle new builtin types.
2294         * config/i386/sse.md
2295         (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
2296         New define_insn.
2297         (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
2298         (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
2300 2021-09-16  Bill Schmidt  <wschmidt@linux.ibm.com>
2302         * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
2303         (altivec_resolve_new_overloaded_builtin): New forward decl.
2304         (rs6000_new_builtin_type_compatible): New function.
2305         (altivec_resolve_overloaded_builtin): Call
2306         altivec_resolve_new_overloaded_builtin.
2307         (altivec_build_new_resolved_builtin): New function.
2308         (altivec_resolve_new_overloaded_builtin): Likewise.
2309         * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
2310         Likewise.
2311         * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
2312         name of rs6000_new_builtin_is_supported.
2314 2021-09-16  Uroš Bizjak  <ubizjak@gmail.com>
2316         * config/i386/i386-protos.h (ix86_decompose_address):
2317         Change return type to bool.
2318         * config/i386/i386.c (ix86_decompose_address): Ditto.
2320 2021-09-16  Tobias Burnus  <tobias@codesourcery.com>
2322         PR target/102353
2323         * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
2324         Added 'build/' to target, use build/%.o rule.
2325         (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
2326         '$(build_exeext)' to target and 'build/' for the *.o files.
2327         (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
2328         with $(RUN_GEN).
2330 2021-09-16  Martin Jambor  <mjambor@suse.cz>
2332         * cgraph.c (cgraph_node::dump): Do not check caller count sums if
2333         the body has been removed.  Remove trailing whitespace.
2335 2021-09-16  Richard Biener  <rguenther@suse.de>
2337         PR middle-end/102360
2338         * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
2339         of non-memory more robust.
2341 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
2343         * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
2344         * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
2345         (leon5_adjust_cost): Increase cost of store with data dependency
2346         on ALU instruction and FPU anti-dependencies.
2347         (sparc_option_override): Add LEON5 costs
2348         (sparc_adjust_cost): Add LEON5 cost adjustments
2349         * config/sparc/sparc.h: Add LEON5
2350         * config/sparc/sparc.md: Include LEON5 scheduling information
2351         * config/sparc/sparc.opt: Add LEON5
2352         * doc/invoke.texi: Add LEON5
2353         * config/sparc/leon5.md: New file.
2355 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
2357         * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
2358         sensitive sequence for B2BST errata workaround.
2360 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
2362         * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
2363         functions with atomic instruction in the UT700 errata workaround.
2365 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
2367         * config/sparc/sparc.c (next_active_non_empty_insn): New function
2368         that returns next active non empty assembly instruction.
2369         (sparc_do_work_around_errata): Use new function.
2371 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
2373         * config/sparc/sparc.c (store_insn_p): Add predicate for store
2374         attributes.
2375         (load_insn_p): Add predicate for load attributes.
2376         (sparc_do_work_around_errata): Use new predicates.
2378 2021-09-16  Andreas Larsson  <andreas@gaisler.com>
2380         * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
2381         LEON and LEON3.
2383 2021-09-16  Martin Liska  <mliska@suse.cz>
2385         * config/mips/netbsd.h: Fix typo in name of a macro.
2387 2021-09-16  liuhongt  <hongtao.liu@intel.com>
2389         PR middle-end/102080
2390         * match.pd: Check mask type when doing cond_op related gimple
2391         simplification.
2392         * tree.c (is_truth_type_for): New function.
2393         * tree.h (is_truth_type_for): New declaration.
2395 2021-09-16  liuhongt  <hongtao.liu@intel.com>
2397         * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
2398         intrinsic.
2399         (_mm512_mask_cvtepi32_ph): Likewise.
2400         (_mm512_maskz_cvtepi32_ph): Likewise.
2401         (_mm512_cvt_roundepi32_ph): Likewise.
2402         (_mm512_mask_cvt_roundepi32_ph): Likewise.
2403         (_mm512_maskz_cvt_roundepi32_ph): Likewise.
2404         (_mm512_cvtepu32_ph): Likewise.
2405         (_mm512_mask_cvtepu32_ph): Likewise.
2406         (_mm512_maskz_cvtepu32_ph): Likewise.
2407         (_mm512_cvt_roundepu32_ph): Likewise.
2408         (_mm512_mask_cvt_roundepu32_ph): Likewise.
2409         (_mm512_maskz_cvt_roundepu32_ph): Likewise.
2410         (_mm512_cvtepi64_ph): Likewise.
2411         (_mm512_mask_cvtepi64_ph): Likewise.
2412         (_mm512_maskz_cvtepi64_ph): Likewise.
2413         (_mm512_cvt_roundepi64_ph): Likewise.
2414         (_mm512_mask_cvt_roundepi64_ph): Likewise.
2415         (_mm512_maskz_cvt_roundepi64_ph): Likewise.
2416         (_mm512_cvtepu64_ph): Likewise.
2417         (_mm512_mask_cvtepu64_ph): Likewise.
2418         (_mm512_maskz_cvtepu64_ph): Likewise.
2419         (_mm512_cvt_roundepu64_ph): Likewise.
2420         (_mm512_mask_cvt_roundepu64_ph): Likewise.
2421         (_mm512_maskz_cvt_roundepu64_ph): Likewise.
2422         (_mm512_cvtepi16_ph): Likewise.
2423         (_mm512_mask_cvtepi16_ph): Likewise.
2424         (_mm512_maskz_cvtepi16_ph): Likewise.
2425         (_mm512_cvt_roundepi16_ph): Likewise.
2426         (_mm512_mask_cvt_roundepi16_ph): Likewise.
2427         (_mm512_maskz_cvt_roundepi16_ph): Likewise.
2428         (_mm512_cvtepu16_ph): Likewise.
2429         (_mm512_mask_cvtepu16_ph): Likewise.
2430         (_mm512_maskz_cvtepu16_ph): Likewise.
2431         (_mm512_cvt_roundepu16_ph): Likewise.
2432         (_mm512_mask_cvt_roundepu16_ph): Likewise.
2433         (_mm512_maskz_cvt_roundepu16_ph): Likewise.
2434         * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
2435         intrinsic.
2436         (_mm_mask_cvtepi32_ph): Likewise.
2437         (_mm_maskz_cvtepi32_ph): Likewise.
2438         (_mm256_cvtepi32_ph): Likewise.
2439         (_mm256_mask_cvtepi32_ph): Likewise.
2440         (_mm256_maskz_cvtepi32_ph): Likewise.
2441         (_mm_cvtepu32_ph): Likewise.
2442         (_mm_mask_cvtepu32_ph): Likewise.
2443         (_mm_maskz_cvtepu32_ph): Likewise.
2444         (_mm256_cvtepu32_ph): Likewise.
2445         (_mm256_mask_cvtepu32_ph): Likewise.
2446         (_mm256_maskz_cvtepu32_ph): Likewise.
2447         (_mm_cvtepi64_ph): Likewise.
2448         (_mm_mask_cvtepi64_ph): Likewise.
2449         (_mm_maskz_cvtepi64_ph): Likewise.
2450         (_mm256_cvtepi64_ph): Likewise.
2451         (_mm256_mask_cvtepi64_ph): Likewise.
2452         (_mm256_maskz_cvtepi64_ph): Likewise.
2453         (_mm_cvtepu64_ph): Likewise.
2454         (_mm_mask_cvtepu64_ph): Likewise.
2455         (_mm_maskz_cvtepu64_ph): Likewise.
2456         (_mm256_cvtepu64_ph): Likewise.
2457         (_mm256_mask_cvtepu64_ph): Likewise.
2458         (_mm256_maskz_cvtepu64_ph): Likewise.
2459         (_mm_cvtepi16_ph): Likewise.
2460         (_mm_mask_cvtepi16_ph): Likewise.
2461         (_mm_maskz_cvtepi16_ph): Likewise.
2462         (_mm256_cvtepi16_ph): Likewise.
2463         (_mm256_mask_cvtepi16_ph): Likewise.
2464         (_mm256_maskz_cvtepi16_ph): Likewise.
2465         (_mm_cvtepu16_ph): Likewise.
2466         (_mm_mask_cvtepu16_ph): Likewise.
2467         (_mm_maskz_cvtepu16_ph): Likewise.
2468         (_mm256_cvtepu16_ph): Likewise.
2469         (_mm256_mask_cvtepu16_ph): Likewise.
2470         (_mm256_maskz_cvtepu16_ph): Likewise.
2471         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
2472         * config/i386/i386-builtin.def: Add corresponding new builtins.
2473         * config/i386/i386-expand.c
2474         (ix86_expand_args_builtin): Handle new builtin types.
2475         (ix86_expand_round_builtin): Ditto.
2476         * config/i386/i386-modes.def: Declare V2HF and V6HF.
2477         * config/i386/sse.md (VI2H_AVX512VL): New.
2478         (qq2phsuff): Ditto.
2479         (sseintvecmode): Add HF vector modes.
2480         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
2481         New.
2482         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
2483         (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
2484         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
2485         (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
2486         (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
2487         (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
2488         (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
2489         (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
2490         (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
2491         (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
2492         * config/i386/subst.md (round_qq2phsuff): New subst_attr.
2494 2021-09-16  liuhongt  <hongtao.liu@intel.com>
2496         * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
2497         New intrinsic/
2498         (_mm512_mask_cvtph_epi32): Likewise.
2499         (_mm512_maskz_cvtph_epi32): Likewise.
2500         (_mm512_cvt_roundph_epi32): Likewise.
2501         (_mm512_mask_cvt_roundph_epi32): Likewise.
2502         (_mm512_maskz_cvt_roundph_epi32): Likewise.
2503         (_mm512_cvtph_epu32): Likewise.
2504         (_mm512_mask_cvtph_epu32): Likewise.
2505         (_mm512_maskz_cvtph_epu32): Likewise.
2506         (_mm512_cvt_roundph_epu32): Likewise.
2507         (_mm512_mask_cvt_roundph_epu32): Likewise.
2508         (_mm512_maskz_cvt_roundph_epu32): Likewise.
2509         (_mm512_cvtph_epi64): Likewise.
2510         (_mm512_mask_cvtph_epi64): Likewise.
2511         (_mm512_maskz_cvtph_epi64): Likewise.
2512         (_mm512_cvt_roundph_epi64): Likewise.
2513         (_mm512_mask_cvt_roundph_epi64): Likewise.
2514         (_mm512_maskz_cvt_roundph_epi64): Likewise.
2515         (_mm512_cvtph_epu64): Likewise.
2516         (_mm512_mask_cvtph_epu64): Likewise.
2517         (_mm512_maskz_cvtph_epu64): Likewise.
2518         (_mm512_cvt_roundph_epu64): Likewise.
2519         (_mm512_mask_cvt_roundph_epu64): Likewise.
2520         (_mm512_maskz_cvt_roundph_epu64): Likewise.
2521         (_mm512_cvtph_epi16): Likewise.
2522         (_mm512_mask_cvtph_epi16): Likewise.
2523         (_mm512_maskz_cvtph_epi16): Likewise.
2524         (_mm512_cvt_roundph_epi16): Likewise.
2525         (_mm512_mask_cvt_roundph_epi16): Likewise.
2526         (_mm512_maskz_cvt_roundph_epi16): Likewise.
2527         (_mm512_cvtph_epu16): Likewise.
2528         (_mm512_mask_cvtph_epu16): Likewise.
2529         (_mm512_maskz_cvtph_epu16): Likewise.
2530         (_mm512_cvt_roundph_epu16): Likewise.
2531         (_mm512_mask_cvt_roundph_epu16): Likewise.
2532         (_mm512_maskz_cvt_roundph_epu16): Likewise.
2533         * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
2534         New intrinsic.
2535         (_mm_mask_cvtph_epi32): Likewise.
2536         (_mm_maskz_cvtph_epi32): Likewise.
2537         (_mm256_cvtph_epi32): Likewise.
2538         (_mm256_mask_cvtph_epi32): Likewise.
2539         (_mm256_maskz_cvtph_epi32): Likewise.
2540         (_mm_cvtph_epu32): Likewise.
2541         (_mm_mask_cvtph_epu32): Likewise.
2542         (_mm_maskz_cvtph_epu32): Likewise.
2543         (_mm256_cvtph_epu32): Likewise.
2544         (_mm256_mask_cvtph_epu32): Likewise.
2545         (_mm256_maskz_cvtph_epu32): Likewise.
2546         (_mm_cvtph_epi64): Likewise.
2547         (_mm_mask_cvtph_epi64): Likewise.
2548         (_mm_maskz_cvtph_epi64): Likewise.
2549         (_mm256_cvtph_epi64): Likewise.
2550         (_mm256_mask_cvtph_epi64): Likewise.
2551         (_mm256_maskz_cvtph_epi64): Likewise.
2552         (_mm_cvtph_epu64): Likewise.
2553         (_mm_mask_cvtph_epu64): Likewise.
2554         (_mm_maskz_cvtph_epu64): Likewise.
2555         (_mm256_cvtph_epu64): Likewise.
2556         (_mm256_mask_cvtph_epu64): Likewise.
2557         (_mm256_maskz_cvtph_epu64): Likewise.
2558         (_mm_cvtph_epi16): Likewise.
2559         (_mm_mask_cvtph_epi16): Likewise.
2560         (_mm_maskz_cvtph_epi16): Likewise.
2561         (_mm256_cvtph_epi16): Likewise.
2562         (_mm256_mask_cvtph_epi16): Likewise.
2563         (_mm256_maskz_cvtph_epi16): Likewise.
2564         (_mm_cvtph_epu16): Likewise.
2565         (_mm_mask_cvtph_epu16): Likewise.
2566         (_mm_maskz_cvtph_epu16): Likewise.
2567         (_mm256_cvtph_epu16): Likewise.
2568         (_mm256_mask_cvtph_epu16): Likewise.
2569         (_mm256_maskz_cvtph_epu16): Likewise.
2570         * config/i386/i386-builtin-types.def: Add new builtin types.
2571         * config/i386/i386-builtin.def: Add new builtins.
2572         * config/i386/i386-expand.c
2573         (ix86_expand_args_builtin): Handle new builtin types.
2574         (ix86_expand_round_builtin): Ditto.
2575         * config/i386/sse.md (sseintconvert): New.
2576         (ssePHmode): Ditto.
2577         (UNSPEC_US_FIX_NOTRUNC): Ditto.
2578         (sseintconvertsignprefix): Ditto.
2579         (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
2580         Ditto.
2582 2021-09-16  liuhongt  <hongtao.liu@intel.com>
2584         * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
2585         New intrinsic.
2586         (_mm_cvtsi128_si16): Likewise.
2587         (_mm_mask_load_sh): Likewise.
2588         (_mm_maskz_load_sh): Likewise.
2589         (_mm_mask_store_sh): Likewise.
2590         (_mm_move_sh): Likewise.
2591         (_mm_mask_move_sh): Likewise.
2592         (_mm_maskz_move_sh): Likewise.
2593         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
2594         * config/i386/i386-builtin.def: Add corresponding new builtins.
2595         * config/i386/i386-expand.c
2596         (ix86_expand_special_args_builtin): Handle new builtin types.
2597         (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
2598         * config/i386/sse.md (VI2F): New mode iterator.
2599         (vec_set<mode>_0): Use new mode iterator.
2600         (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
2601         (avx512f_store<mode>_mask): Ditto.
2603 2021-09-16  Kewen Lin  <linkw@linux.ibm.com>
2605         * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
2607 2021-09-15  David Edelsohn  <dje.gcc@gmail.com>
2609         * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
2610         Proceed if no symbol summary or the symbol alias flag is false.
2612 2021-09-15  Jakub Jelinek  <jakub@redhat.com>
2614         PR c++/88578
2615         PR c++/102295
2616         * varasm.c (output_constructor_regular_field): Instead of assertion
2617         that array_size_for_constructor result is equal to size of
2618         TREE_TYPE (local->val) in bytes, assert that the type size is greater
2619         or equal to array_size_for_constructor result and use type size as
2620         fieldsize.
2622 2021-09-15  Martin Liska  <mliska@suse.cz>
2624         PR target/102351
2625         * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
2627 2021-09-15  Martin Liska  <mliska@suse.cz>
2629         PR target/102349
2630         * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
2631         Check that we have a symbol summary for a symbol.
2633 2021-09-15  Richard Biener  <rguenther@suse.de>
2635         PR target/102348
2636         * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
2637         to inherit from elfos.h
2639 2021-09-15  liuhongt  <hongtao.liu@intel.com>
2641         PR target/102327
2642         * config/i386/i386-expand.c
2643         (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
2644         HFmodes.
2645         (ix86_expand_vector_set): Use blendw instead of pinsrw.
2646         * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
2647         AVX512FP16 which supports 16bit vector load.
2648         * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
2649         Rename to ..
2650         (avx512bw_interleave_high<mode><mask_name>): .. this, and
2651         extend to V32HFmode.
2652         (avx2_interleave_highv16hi<mask_name>): Rename to ..
2653         (avx2_interleave_high<mode><mask_name>): .. this, and extend
2654         to V16HFmode.
2655         (vec_interleave_highv8hi<mask_name>): Rename to ..
2656         (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
2657         (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
2658         Rename to ..
2659         (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
2660         this, and extend to V32HFmode.
2661         (avx2_interleave_lowv16hi<mask_name>): Rename to ..
2662         (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
2663         (vec_interleave_lowv8hi<mask_name>): Rename to ..
2664         (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
2665         (sse4_1_pblendw): Rename to ..
2666         (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
2667         (avx2_pblendph): New define_expand.
2668         (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
2669         sseintmodesuffix instead of ssemodesuffix.
2670         (blendsuf): New mode attr.
2672 2021-09-15  Richard Biener  <rguenther@suse.de>
2674         * tree-vectorizer.h (dr_misalignment): Move out of line.
2675         (dr_target_alignment): New.
2676         (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
2677         (set_dr_target_alignment): New.
2678         (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
2679         * tree-vect-data-refs.c (dr_misalignment): Compute and
2680         return the group members misalignment.
2681         (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
2682         (vect_analyze_data_refs_alignment): Compute alignment only
2683         for the first element of a DR group.
2684         (vect_slp_analyze_node_alignment): Likewise.
2686 2021-09-15  Hongyu Wang  <hongyu.wang@intel.com>
2688         * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
2689         * config/i386/avx512fp16vlintrin.h: Likewise.
2690         * config/i386/i386-builtin.def: Adjust builtin name and
2691         enumeration to match AVX512F style.
2693 2021-09-15  Richard Biener  <rguenther@suse.de>
2695         PR tree-optimization/102318
2696         * tree-vect-loop.c (vect_transform_cycle_phi): Revert
2697         previous change and do the mode conversion separately from
2698         the sign conversion.
2700 2021-09-15  Hongtao Liu  <hongtao.liu@intel.com>
2701             Peter Cordes  <peter@cordes.ca>
2703         PR target/91103
2704         * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
2705         (*vec_extract<mode><ssescalarmodelower>_valign): Output
2706         vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
2707         0.
2709 2021-09-15  Richard Biener  <rguenther@suse.de>
2711         * config.gcc: Remove vax-*-openbsd* configuration.
2713 2021-09-15  Richard Biener  <rguenther@suse.de>
2715         * config.gcc: Remove m68k-openbsd.
2717 2021-09-15  Max Filippov  <jcmvbkbc@gmail.com>
2719         PR target/102336
2720         * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
2722 2021-09-14  Peter Bergner  <bergner@linux.ibm.com>
2724         * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
2725         (unspecv): Add UNSPECV_MMA_XXSETACCZ.
2726         (*mma_xxsetaccz): Delete.
2727         (mma_xxsetaccz): Change to define_insn.  Remove operand 1.
2728         Use UNSPECV_MMA_XXSETACCZ.  Update comment.
2729         * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
2731 2021-09-14  Iain Sandoe  <iain@sandoe.co.uk>
2733         * Makefile.in: Remove variables related to applying no-PIE
2734         to the exes on $build.
2735         * configure: Regenerate.
2736         * configure.ac: Remove configuration related to applying
2737         no-PIE to the exes on $build.
2739 2021-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
2741         * config/arc/arc.md (doloop_end): Add missing mode.
2742         (loop_end): Likewise.
2744 2021-09-14  Jakub Jelinek  <jakub@redhat.com>
2746         * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
2747         it to recursive calls, for depth above 7 just gimplify or return.
2748         Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
2749         __builtin_clear_padding and TARGET_EXPR.
2750         (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
2752 2021-09-14  liuhongt  <hongtao.liu@intel.com>
2754         * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
2755         New intrinsic.
2756         (_mm_mask_fpclass_sh_mask): Likewise.
2757         (_mm512_mask_fpclass_ph_mask): Likewise.
2758         (_mm512_fpclass_ph_mask): Likewise.
2759         (_mm_getexp_sh): Likewise.
2760         (_mm_mask_getexp_sh): Likewise.
2761         (_mm_maskz_getexp_sh): Likewise.
2762         (_mm512_getexp_ph): Likewise.
2763         (_mm512_mask_getexp_ph): Likewise.
2764         (_mm512_maskz_getexp_ph): Likewise.
2765         (_mm_getexp_round_sh): Likewise.
2766         (_mm_mask_getexp_round_sh): Likewise.
2767         (_mm_maskz_getexp_round_sh): Likewise.
2768         (_mm512_getexp_round_ph): Likewise.
2769         (_mm512_mask_getexp_round_ph): Likewise.
2770         (_mm512_maskz_getexp_round_ph): Likewise.
2771         (_mm_getmant_sh): Likewise.
2772         (_mm_mask_getmant_sh): Likewise.
2773         (_mm_maskz_getmant_sh): Likewise.
2774         (_mm512_getmant_ph): Likewise.
2775         (_mm512_mask_getmant_ph): Likewise.
2776         (_mm512_maskz_getmant_ph): Likewise.
2777         (_mm_getmant_round_sh): Likewise.
2778         (_mm_mask_getmant_round_sh): Likewise.
2779         (_mm_maskz_getmant_round_sh): Likewise.
2780         (_mm512_getmant_round_ph): Likewise.
2781         (_mm512_mask_getmant_round_ph): Likewise.
2782         (_mm512_maskz_getmant_round_ph): Likewise.
2783         * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
2784         New intrinsic.
2785         (_mm_fpclass_ph_mask): Likewise.
2786         (_mm256_mask_fpclass_ph_mask): Likewise.
2787         (_mm256_fpclass_ph_mask): Likewise.
2788         (_mm256_getexp_ph): Likewise.
2789         (_mm256_mask_getexp_ph): Likewise.
2790         (_mm256_maskz_getexp_ph): Likewise.
2791         (_mm_getexp_ph): Likewise.
2792         (_mm_mask_getexp_ph): Likewise.
2793         (_mm_maskz_getexp_ph): Likewise.
2794         (_mm256_getmant_ph): Likewise.
2795         (_mm256_mask_getmant_ph): Likewise.
2796         (_mm256_maskz_getmant_ph): Likewise.
2797         (_mm_getmant_ph): Likewise.
2798         (_mm_mask_getmant_ph): Likewise.
2799         (_mm_maskz_getmant_ph): Likewise.
2800         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
2801         * config/i386/i386-builtin.def: Add corresponding new builtins.
2802         * config/i386/i386-expand.c
2803         (ix86_expand_args_builtin): Handle new builtin types.
2804         (ix86_expand_round_builtin): Ditto.
2805         * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
2806         (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
2807         to support HF vector modes.
2808         (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
2809         Ditto.
2810         (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
2811         (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
2812         (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
2813         (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
2814         Ditto.
2816 2021-09-14  liuhongt  <hongtao.liu@intel.com>
2818         * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
2819         New intrinsic.
2820         (_mm512_mask_reduce_ph): Likewise.
2821         (_mm512_maskz_reduce_ph): Likewise.
2822         (_mm512_reduce_round_ph): Likewise.
2823         (_mm512_mask_reduce_round_ph): Likewise.
2824         (_mm512_maskz_reduce_round_ph): Likewise.
2825         (_mm_reduce_sh): Likewise.
2826         (_mm_mask_reduce_sh): Likewise.
2827         (_mm_maskz_reduce_sh): Likewise.
2828         (_mm_reduce_round_sh): Likewise.
2829         (_mm_mask_reduce_round_sh): Likewise.
2830         (_mm_maskz_reduce_round_sh): Likewise.
2831         (_mm512_roundscale_ph): Likewise.
2832         (_mm512_mask_roundscale_ph): Likewise.
2833         (_mm512_maskz_roundscale_ph): Likewise.
2834         (_mm512_roundscale_round_ph): Likewise.
2835         (_mm512_mask_roundscale_round_ph): Likewise.
2836         (_mm512_maskz_roundscale_round_ph): Likewise.
2837         (_mm_roundscale_sh): Likewise.
2838         (_mm_mask_roundscale_sh): Likewise.
2839         (_mm_maskz_roundscale_sh): Likewise.
2840         (_mm_roundscale_round_sh): Likewise.
2841         (_mm_mask_roundscale_round_sh): Likewise.
2842         (_mm_maskz_roundscale_round_sh): Likewise.
2843         * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
2844         New intrinsic.
2845         (_mm_mask_reduce_ph): Likewise.
2846         (_mm_maskz_reduce_ph): Likewise.
2847         (_mm256_reduce_ph): Likewise.
2848         (_mm256_mask_reduce_ph): Likewise.
2849         (_mm256_maskz_reduce_ph): Likewise.
2850         (_mm_roundscale_ph): Likewise.
2851         (_mm_mask_roundscale_ph): Likewise.
2852         (_mm_maskz_roundscale_ph): Likewise.
2853         (_mm256_roundscale_ph): Likewise.
2854         (_mm256_mask_roundscale_ph): Likewise.
2855         (_mm256_maskz_roundscale_ph): Likewise.
2856         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
2857         * config/i386/i386-builtin.def: Add corresponding new builtins.
2858         * config/i386/i386-expand.c
2859         (ix86_expand_args_builtin): Handle new builtin types.
2860         (ix86_expand_round_builtin): Ditto.
2861         * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
2862         Renamed to ...
2863         (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
2864         ... this, and adjust for round operands.
2865         (reduces<mode><mask_scalar_name>): Likewise, with ...
2866         (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
2867         ... this.
2868         (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
2869         Adjust for HF vector modes.
2870         (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
2871         Ditto.
2872         (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
2874 2021-09-14  liuhongt  <hongtao.liu@intel.com>
2876         * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
2877         New intrinsic.
2878         (_mm512_mask_rcp_ph): Likewise.
2879         (_mm512_maskz_rcp_ph): Likewise.
2880         (_mm_rcp_sh): Likewise.
2881         (_mm_mask_rcp_sh): Likewise.
2882         (_mm_maskz_rcp_sh): Likewise.
2883         (_mm512_scalef_ph): Likewise.
2884         (_mm512_mask_scalef_ph): Likewise.
2885         (_mm512_maskz_scalef_ph): Likewise.
2886         (_mm512_scalef_round_ph): Likewise.
2887         (_mm512_mask_scalef_round_ph): Likewise.
2888         (_mm512_maskz_scalef_round_ph): Likewise.
2889         (_mm_scalef_sh): Likewise.
2890         (_mm_mask_scalef_sh): Likewise.
2891         (_mm_maskz_scalef_sh): Likewise.
2892         (_mm_scalef_round_sh): Likewise.
2893         (_mm_mask_scalef_round_sh): Likewise.
2894         (_mm_maskz_scalef_round_sh): Likewise.
2895         * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
2896         New intrinsic.
2897         (_mm256_rcp_ph): Likewise.
2898         (_mm_mask_rcp_ph): Likewise.
2899         (_mm256_mask_rcp_ph): Likewise.
2900         (_mm_maskz_rcp_ph): Likewise.
2901         (_mm256_maskz_rcp_ph): Likewise.
2902         (_mm_scalef_ph): Likewise.
2903         (_mm256_scalef_ph): Likewise.
2904         (_mm_mask_scalef_ph): Likewise.
2905         (_mm256_mask_scalef_ph): Likewise.
2906         (_mm_maskz_scalef_ph): Likewise.
2907         (_mm256_maskz_scalef_ph): Likewise.
2908         * config/i386/i386-builtin.def: Add new builtins.
2909         * config/i386/sse.md (VFH_AVX512VL): New.
2910         (avx512fp16_rcp<mode>2<mask_name>): Ditto.
2911         (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
2912         (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
2913         Adjust to support HF vector modes.
2914         (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
2916 2021-09-14  liuhongt  <hongtao.liu@intel.com>
2918         * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
2919         New intrinsic.
2920         (_mm512_mask_sqrt_ph): Likewise.
2921         (_mm512_maskz_sqrt_ph): Likewise.
2922         (_mm512_sqrt_round_ph): Likewise.
2923         (_mm512_mask_sqrt_round_ph): Likewise.
2924         (_mm512_maskz_sqrt_round_ph): Likewise.
2925         (_mm512_rsqrt_ph): Likewise.
2926         (_mm512_mask_rsqrt_ph): Likewise.
2927         (_mm512_maskz_rsqrt_ph): Likewise.
2928         (_mm_rsqrt_sh): Likewise.
2929         (_mm_mask_rsqrt_sh): Likewise.
2930         (_mm_maskz_rsqrt_sh): Likewise.
2931         (_mm_sqrt_sh): Likewise.
2932         (_mm_mask_sqrt_sh): Likewise.
2933         (_mm_maskz_sqrt_sh): Likewise.
2934         (_mm_sqrt_round_sh): Likewise.
2935         (_mm_mask_sqrt_round_sh): Likewise.
2936         (_mm_maskz_sqrt_round_sh): Likewise.
2937         * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
2938         (_mm256_sqrt_ph): Likewise.
2939         (_mm_mask_sqrt_ph): Likewise.
2940         (_mm256_mask_sqrt_ph): Likewise.
2941         (_mm_maskz_sqrt_ph): Likewise.
2942         (_mm256_maskz_sqrt_ph): Likewise.
2943         (_mm_rsqrt_ph): Likewise.
2944         (_mm256_rsqrt_ph): Likewise.
2945         (_mm_mask_rsqrt_ph): Likewise.
2946         (_mm256_mask_rsqrt_ph): Likewise.
2947         (_mm_maskz_rsqrt_ph): Likewise.
2948         (_mm256_maskz_rsqrt_ph): Likewise.
2949         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
2950         * config/i386/i386-builtin.def: Add corresponding new builtins.
2951         * config/i386/i386-expand.c
2952         (ix86_expand_args_builtin): Handle new builtins.
2953         (ix86_expand_round_builtin): Ditto.
2954         * config/i386/sse.md (VF_AVX512FP16VL): New.
2955         (sqrt<mode>2): Adjust for HF vector modes.
2956         (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
2957         (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
2958         Likewise.
2959         (<sse>_rsqrt<mode>2<mask_name>): New.
2960         (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
2962 2021-09-13  Thomas Schwinge  <thomas@codesourcery.com>
2964         PR bootstrap/101574
2965         * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
2966         'RESERVED_LOCATION_P' locations.
2967         * warning-control.cc (get_nowarn_spec, suppress_warning)
2968         (copy_warning): Likewise.
2970 2021-09-13  Thomas Schwinge  <thomas@codesourcery.com>
2972         * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
2973         (typedef key_type_t): ... this.  Remove.
2974         (nowarn_map): Document.
2975         * diagnostic-spec.c (nowarn_map): Likewise.
2976         * warning-control.cc (convert_to_key): Evolve functions into...
2977         (get_location): ... these.  Adjust all users.
2979 2021-09-13  Thomas Schwinge  <thomas@codesourcery.com>
2981         * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
2983 2021-09-13  Jason Merrill  <jason@redhat.com>
2985         * params.opt: Add destructive-interference-size and
2986         constructive-interference-size.
2987         * doc/invoke.texi: Document them.
2988         * config/aarch64/aarch64.c (aarch64_override_options_internal):
2989         Set them.
2990         * config/arm/arm.c (arm_option_override): Set them.
2991         * config/i386/i386-options.c (ix86_option_override_internal):
2992         Set them.
2994 2021-09-13  Martin Liska  <mliska@suse.cz>
2995             H.J. Lu  <hjl.tools@gmail.com>
2997         PR target/101696
2998         * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
2999         for x86-64 micro levels for __builtin_cpu_supports.
3000         * common/config/i386/i386-cpuinfo.h (enum feature_priority):
3001         Add priorities for the micro-arch levels.
3002         (enum processor_features): Add new features.
3003         * common/config/i386/i386-isas.h: Add micro-arch features.
3004         * config/i386/i386-builtins.c (get_builtin_code_for_version):
3005         Support the micro-arch levels by callsing
3006         __builtin_cpu_supports.
3007         * doc/extend.texi: Document that the levels are support by
3008           __builtin_cpu_supports.
3010 2021-09-13  Andrew Pinski  <apinski@marvell.com>
3012         PR target/95969
3013         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
3014         New function.
3015         (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
3016         (aarch64_general_gimple_fold_builtin): Likewise.
3018 2021-09-13  Andrew Pinski  <apinski@marvell.com>
3020         * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
3021         to the Unsupported targets list.
3022         Remove support for m32r-*-linux* and m32rle-*-linux*.
3023         * config/m32r/linux.h: Removed.
3024         * config/m32r/t-linux: Removed.
3026 2021-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3028         PR target/102252
3029         * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
3030         register index for SVE predicate modes.
3032 2021-09-13  Aldy Hernandez  <aldyh@redhat.com>
3034         * tree-ssa-threadbackward.c
3035         (back_threader_profitability::profitable_path_p): Remove FSM
3036         references.
3037         (back_threader_registry::register_path): Same.
3038         * tree-ssa-threadedge.c
3039         (jump_threader::simplify_control_stmt_condition): Same.
3040         * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
3041         Add backedge_threads argument.
3042         (fwd_jt_path_registry::fwd_jt_path_registry): Pass
3043         backedge_threads argument.
3044         (back_jt_path_registry::back_jt_path_registry):  Same.
3045         (dump_jump_thread_path): Adjust for FSM removal.
3046         (back_jt_path_registry::rewire_first_differing_edge): Same.
3047         (back_jt_path_registry::adjust_paths_after_duplication): Same.
3048         (back_jt_path_registry::update_cfg): Same.
3049         (jt_path_registry::register_jump_thread): Same.
3050         * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
3051         EDGE_FSM_THREAD.
3052         (class back_jt_path_registry): Add backedge_threads to
3053         constructor.
3055 2021-09-13  Martin Liska  <mliska@suse.cz>
3057         PR c++/101331
3058         * asan.h (sanitize_coverage_p): Handle when fn == NULL.
3060 2021-09-13  H.J. Lu  <hjl.tools@gmail.com>
3062         PR target/101935
3063         * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
3064         (TARGET_AVX256_STORE_BY_PIECES): Likewise.
3065         (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
3066         TARGET_AVX256_STORE_BY_PIECES instead of
3067         TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
3068         TARGET_AVX256_SPLIT_UNALIGNED_STORE.
3069         (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
3070         of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
3071         * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
3072         (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
3074 2021-09-13  liuhongt  <hongtao.liu@intel.com>
3076         PR bootstrap/102302
3077         * expmed.c (extract_bit_field_using_extv): Use
3078         gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
3080 2021-09-13  Aldy Hernandez  <aldyh@redhat.com>
3082         * Makefile.in (OBJS): Add value-pointer-equiv.o.
3083         * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
3084         value-pointer-equiv.*.
3085         (ssa_equiv_stack::ssa_equiv_stack): Same.
3086         (ssa_equiv_stack::enter): Same.
3087         (ssa_equiv_stack::leave): Same.
3088         (ssa_equiv_stack::push_replacement): Same.
3089         (ssa_equiv_stack::get_replacement): Same.
3090         (is_pointer_ssa): Same.
3091         (class pointer_equiv_analyzer): Same.
3092         (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
3093         (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
3094         (pointer_equiv_analyzer::set_global_equiv): Same.
3095         (pointer_equiv_analyzer::set_cond_equiv): Same.
3096         (pointer_equiv_analyzer::get_equiv): Same.
3097         (pointer_equiv_analyzer::enter): Same.
3098         (pointer_equiv_analyzer::leave): Same.
3099         (pointer_equiv_analyzer::get_equiv_expr): Same.
3100         (pta_valueize): Same.
3101         (pointer_equiv_analyzer::visit_stmt): Same.
3102         (pointer_equiv_analyzer::visit_edge): Same.
3103         (hybrid_folder::value_of_expr): Same.
3104         (hybrid_folder::value_on_edge): Same.
3105         * value-pointer-equiv.cc: New file.
3106         * value-pointer-equiv.h: New file.
3108 2021-09-13  Richard Earnshaw  <rearnsha@arm.com>
3110         PR target/102125
3111         * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
3112         memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
3114 2021-09-13  Richard Earnshaw  <rearnsha@arm.com>
3116         PR target/102125
3117         * config/arm/arm.md (movmisaligndi): New define_expand.
3118         * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
3120 2021-09-13  Richard Earnshaw  <rearnsha@arm.com>
3122         PR target/102125
3123         * emit-rtl.c (gen_highpart): Use adjust_address to handle
3124         MEM rather than calling simplify_gen_subreg.
3126 2021-09-13  Jan-Benedict Glaw  <jbglaw@ług-owl.de>
3128         * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
3129         define into a block.
3131 2021-09-13  Richard Biener  <rguenther@suse.de>
3133         * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
3134         * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
3135         change based on DARWIN_PREFER_DWARF not being defined.
3137 2021-09-13  Richard Biener  <rguenther@suse.de>
3139         * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
3140         to inherit from elfos.h
3142 2021-09-13  Richard Biener  <rguenther@suse.de>
3144         * config.gcc: Add cr16-*-* to the list of obsoleted targets.
3146 2021-09-13  Richard Biener  <rguenther@suse.de>
3148         * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
3149         override, pick up DWARF2_DEBUG define from elfos.h
3151 2021-09-13  Richard Biener  <rguenther@suse.de>
3153         * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
3154         DWARF2_DEBUG.
3156 2021-09-13  Richard Biener  <rguenther@suse.de>
3158         * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
3159         DWARF2_DEBUG.
3161 2021-09-13  Richard Biener  <rguenther@suse.de>
3163         * config/i386/cygming.h: Always default to DWARF2 debugging.
3164         Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
3165         already.
3166         * doc/install.texi: Document binutils 2.16 as minimum
3167         requirement for mingw.
3169 2021-09-13  Kewen Lin  <linkw@linux.ibm.com>
3171         * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
3172         nstmts, nloads and extra_ctor_cost.
3173         (rs6000_density_test): Add load density related heuristics.  Do
3174         extra costing on vector construction statements if need.
3175         (rs6000_init_cost): Init new members.
3176         (rs6000_update_target_cost_per_stmt): New function.
3177         (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
3178         rs6000_update_target_cost_per_stmt and call it.
3180 2021-09-13  Kewen Lin  <linkw@linux.ibm.com>
3182         * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
3183         (rs6000_init_cost): Adjust.
3185 2021-09-13  liuhongt  <hongtao.liu@intel.com>
3187         * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
3188         (UNSPEC_XORSIGN): Ditto.
3190 2021-09-12  Roger Sayle  <roger@nextmovesoftware.com>
3192         * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
3193         creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
3194         subreg.
3196 2021-09-11  Aldy Hernandez  <aldyh@redhat.com>
3198         * tree-ssa-threadbackward.c (class back_threader_registry): Use
3199         back_jt_path_registry.
3200         * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
3201         fwd_jt_path_registry.
3202         * tree-ssa-threadedge.h (class jump_threader): Same..
3203         * tree-ssa-threadupdate.c
3204         (jump_thread_path_registry::jump_thread_path_registry): Rename...
3205         (jt_path_registry::jt_path_registry): ...to this.
3206         (jump_thread_path_registry::~jump_thread_path_registry): Rename...
3207         (jt_path_registry::~jt_path_registry): ...this.
3208         (fwd_jt_path_registry::fwd_jt_path_registry): New.
3209         (fwd_jt_path_registry::~fwd_jt_path_registry): New.
3210         (jump_thread_path_registry::allocate_thread_edge): Rename...
3211         (jt_path_registry::allocate_thread_edge): ...to this.
3212         (jump_thread_path_registry::allocate_thread_path): Rename...
3213         (jt_path_registry::allocate_thread_path): ...to this.
3214         (jump_thread_path_registry::lookup_redirection_data): Rename...
3215         (fwd_jt_path_registry::lookup_redirection_data): ...to this.
3216         (jump_thread_path_registry::thread_block_1): Rename...
3217         (fwd_jt_path_registry::thread_block_1): ...to this.
3218         (jump_thread_path_registry::thread_block): Rename...
3219         (fwd_jt_path_registry::thread_block): ...to this.
3220         (jt_path_registry::thread_through_loop_header): Rename...
3221         (fwd_jt_path_registry::thread_through_loop_header): ...to this.
3222         (jump_thread_path_registry::mark_threaded_blocks): Rename...
3223         (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
3224         (jump_thread_path_registry::debug_path): Rename...
3225         (jt_path_registry::debug_path): ...to this.
3226         (jump_thread_path_registry::dump): Rename...
3227         (jt_path_registry::debug): ...to this.
3228         (jump_thread_path_registry::rewire_first_differing_edge): Rename...
3229         (back_jt_path_registry::rewire_first_differing_edge): ...to this.
3230         (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
3231         (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
3232         (jump_thread_path_registry::duplicate_thread_path): Rename...
3233         (back_jt_path_registry::duplicate_thread_path): ...to this.  Also,
3234         drop ill-formed candidates.
3235         (jump_thread_path_registry::remove_jump_threads_including): Rename...
3236         (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
3237         (jt_path_registry::thread_through_all_blocks): New.
3238         (back_jt_path_registry::update_cfg): New.
3239         (fwd_jt_path_registry::update_cfg): New.
3240         (jump_thread_path_registry::register_jump_thread): Rename...
3241         (jt_path_registry::register_jump_thread): ...to this.
3242         * tree-ssa-threadupdate.h (class jump_thread_path_registry):
3243         Abstract to...
3244         (class jt_path_registry): ...here.
3245         (class fwd_jt_path_registry): New.
3246         (class back_jt_path_registry): New.
3248 2021-09-10  liuhongt  <hongtao.liu@intel.com>
3250         Revert:
3251         2021-09-01  liuhongt  <hongtao.liu@intel.com>
3253         * emit-rtl.c (validate_subreg): Get rid of all float-int
3254         special cases.
3256 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
3258         * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
3259         OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
3260         OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
3261         OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
3262         OMP_FAIL_MEMORY_ORDER_MASK enumerators.
3263         (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
3264         * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
3265         dump_gimple_omp_atomic_store): Print [weak] for weak atomic
3266         load/store.
3267         * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
3268         to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
3269         GF_OMP_ATOMIC_WEAK.
3270         (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
3271         functions.
3272         * tree.h (OMP_ATOMIC_WEAK): Define.
3273         * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
3274         fail memory order being encoded in the same enum and also print
3275         fail clause if present.
3276         (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
3277         * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
3278         handle pre_p == NULL case as a test mode that only returns value
3279         but doesn't change gimplify nor change anything otherwise, adjust
3280         recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
3281         and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
3282         __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
3283         than rvalue.
3284         (gimplify_omp_atomic): Adjust goa_stabilize_expr caller.  Handle
3285         COND_EXPR rhs.  Set weak flag on gimple load/store for
3286         OMP_ATOMIC_WEAK.
3287         * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
3288         (omp_memory_order_to_memmodel): Adjust for fail clause encoded
3289         in the same enum.
3290         (expand_omp_atomic_cas): New function.
3291         (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
3292         function.
3293         (expand_omp_atomic): Attempt to optimize atomic compare and exchange
3294         using expand_omp_atomic_cas.
3296 2021-09-10  Aldy Hernandez  <aldyh@redhat.com>
3297             Michael Matz  <matz@suse.de>
3299         * tree-pass.h (PROP_loop_opts_done): New.
3300         * gimple-range-path.cc (path_range_query::internal_range_of_expr):
3301         Intersect with global range.
3302         * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
3303         * tree-ssa-threadbackward.c
3304         (back_threader_profitability::profitable_path_p): Disable
3305         threading through latches until after loop optimizations have run.
3307 2021-09-10  David Faust  <david.faust@oracle.com>
3309         * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
3310         options.
3312 2021-09-10  David Faust  <david.faust@oracle.com>
3314         * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
3315         * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
3316         * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
3317         (bpf_expand_cbranch): New function.
3318         * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
3319         mode.
3320         (zero_extendsidi2): Only use mov32 instruction if it is available.
3321         (SIM mode iterator): Conditionalize support for SI mode.
3322         (JM mode iterator): New.
3323         (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
3324         (*branch_on_di): Update name, use new JM iterator.
3325         * config/bpf/bpf.opt: (mjmpext): New option.
3326         (malu32): Likewise.
3327         (mjmp32): Likewise.
3328         (mcpu): Likewise.
3329         (bpf_isa): New enum.
3331 2021-09-10  David Faust  <david.faust@oracle.com>
3333         * config/bpf/bpf.md (zero_extendhidi2): Add new output template
3334         for register-to-register extensions.
3335         (zero_extendqidi2): Likewise.
3337 2021-09-10  Richard Biener  <rguenther@suse.de>
3339         PR middle-end/102273
3340         * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
3342 2021-09-10  Richard Biener  <rguenther@suse.de>
3344         PR middle-end/102269
3345         * gimplify.c (is_var_need_auto_init): Empty types do not need
3346         initialization.
3348 2021-09-10  Richard Biener  <rguenther@suse.de>
3350         * configure.ac (--with-stabs): Remove.
3351         * configure: Regenerate.
3352         * doc/install.texi: Remove --with-stabs documentation.
3354 2021-09-10  liuhongt  <hongtao.liu@intel.com>
3356         * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
3357         New intrinsic.
3358         (_mm512_mask_cmp_ph_mask): Likewise.
3359         (_mm512_cmp_round_ph_mask): Likewise.
3360         (_mm512_mask_cmp_round_ph_mask): Likewise.
3361         (_mm_cmp_sh_mask): Likewise.
3362         (_mm_mask_cmp_sh_mask): Likewise.
3363         (_mm_cmp_round_sh_mask): Likewise.
3364         (_mm_mask_cmp_round_sh_mask): Likewise.
3365         (_mm_comieq_sh): Likewise.
3366         (_mm_comilt_sh): Likewise.
3367         (_mm_comile_sh): Likewise.
3368         (_mm_comigt_sh): Likewise.
3369         (_mm_comige_sh): Likewise.
3370         (_mm_comineq_sh): Likewise.
3371         (_mm_ucomieq_sh): Likewise.
3372         (_mm_ucomilt_sh): Likewise.
3373         (_mm_ucomile_sh): Likewise.
3374         (_mm_ucomigt_sh): Likewise.
3375         (_mm_ucomige_sh): Likewise.
3376         (_mm_ucomineq_sh): Likewise.
3377         (_mm_comi_round_sh): Likewise.
3378         (_mm_comi_sh): Likewise.
3379         * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
3380         (_mm_mask_cmp_ph_mask): Likewise.
3381         (_mm256_cmp_ph_mask): Likewise.
3382         (_mm256_mask_cmp_ph_mask): Likewise.
3383         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
3384         * config/i386/i386-builtin.def: Add corresponding new builtins.
3385         * config/i386/i386-expand.c
3386         (ix86_expand_args_builtin): Handle new builtin types.
3387         (ix86_expand_round_builtin): Ditto.
3388         * config/i386/i386.md (ssevecmode): Add HF mode.
3389         (MODEFH): New mode iterator.
3390         * config/i386/sse.md
3391         (V48H_AVX512VL): New mode iterator to support HF vector modes.
3392         Ajdust corresponding description.
3393         (ssecmpintprefix): New.
3394         (VI12_AVX512VL): Adjust to support HF vector modes.
3395         (cmp_imm_predicate): Likewise.
3396         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
3397         Likewise.
3398         (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
3399         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
3400         (<sse>_<unord>comi<round_saeonly_name>): Likewise.
3402 2021-09-10  liuhongt  <hongtao.liu@intel.com>
3404         * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
3405         (_mm512_mask_max_ph): Likewise.
3406         (_mm512_maskz_max_ph): Likewise.
3407         (_mm512_min_ph): Likewise.
3408         (_mm512_mask_min_ph): Likewise.
3409         (_mm512_maskz_min_ph): Likewise.
3410         (_mm512_max_round_ph): Likewise.
3411         (_mm512_mask_max_round_ph): Likewise.
3412         (_mm512_maskz_max_round_ph): Likewise.
3413         (_mm512_min_round_ph): Likewise.
3414         (_mm512_mask_min_round_ph): Likewise.
3415         (_mm512_maskz_min_round_ph): Likewise.
3416         (_mm_max_sh): Likewise.
3417         (_mm_mask_max_sh): Likewise.
3418         (_mm_maskz_max_sh): Likewise.
3419         (_mm_min_sh): Likewise.
3420         (_mm_mask_min_sh): Likewise.
3421         (_mm_maskz_min_sh): Likewise.
3422         (_mm_max_round_sh): Likewise.
3423         (_mm_mask_max_round_sh): Likewise.
3424         (_mm_maskz_max_round_sh): Likewise.
3425         (_mm_min_round_sh): Likewise.
3426         (_mm_mask_min_round_sh): Likewise.
3427         (_mm_maskz_min_round_sh): Likewise.
3428         * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
3429         (_mm256_max_ph): Likewise.
3430         (_mm_mask_max_ph): Likewise.
3431         (_mm256_mask_max_ph): Likewise.
3432         (_mm_maskz_max_ph): Likewise.
3433         (_mm256_maskz_max_ph): Likewise.
3434         (_mm_min_ph): Likewise.
3435         (_mm256_min_ph): Likewise.
3436         (_mm_mask_min_ph): Likewise.
3437         (_mm256_mask_min_ph): Likewise.
3438         (_mm_maskz_min_ph): Likewise.
3439         (_mm256_maskz_min_ph): Likewise.
3440         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
3441         * config/i386/i386-builtin.def: Add corresponding new builtins.
3442         * config/i386/i386-expand.c
3443         (ix86_expand_args_builtin): Handle new builtin types.
3444         * config/i386/sse.md
3445         (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
3446         support HF vector modes.
3447         (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
3448         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
3449         Likewise.
3450         (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
3451         Likewise.
3452         * config/i386/subst.md (round_saeonly_mode512bit_condition):
3453         Adjust for HF vector modes.
3455 2021-09-10  Liu, Hongtao  <hongtao.liu@intel.com>
3457         * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
3458         (_mm_mask_add_sh): Likewise.
3459         (_mm_maskz_add_sh): Likewise.
3460         (_mm_sub_sh): Likewise.
3461         (_mm_mask_sub_sh): Likewise.
3462         (_mm_maskz_sub_sh): Likewise.
3463         (_mm_mul_sh): Likewise.
3464         (_mm_mask_mul_sh): Likewise.
3465         (_mm_maskz_mul_sh): Likewise.
3466         (_mm_div_sh): Likewise.
3467         (_mm_mask_div_sh): Likewise.
3468         (_mm_maskz_div_sh): Likewise.
3469         (_mm_add_round_sh): Likewise.
3470         (_mm_mask_add_round_sh): Likewise.
3471         (_mm_maskz_add_round_sh): Likewise.
3472         (_mm_sub_round_sh): Likewise.
3473         (_mm_mask_sub_round_sh): Likewise.
3474         (_mm_maskz_sub_round_sh): Likewise.
3475         (_mm_mul_round_sh): Likewise.
3476         (_mm_mask_mul_round_sh): Likewise.
3477         (_mm_maskz_mul_round_sh): Likewise.
3478         (_mm_div_round_sh): Likewise.
3479         (_mm_mask_div_round_sh): Likewise.
3480         (_mm_maskz_div_round_sh): Likewise.
3481         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
3482         * config/i386/i386-builtin.def: Add corresponding new builtins.
3483         * config/i386/i386-expand.c
3484         (ix86_expand_round_builtin): Handle new builtins.
3485         * config/i386/sse.md (VF_128): Change description.
3486         (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
3487         Adjust to support HF vector modes.
3488         (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
3489         Likewise.
3491 2021-09-10  H.J. Lu  <hjl.tools@gmail.com>
3493         * config/i386/i386-expand.c
3494         (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
3495         * config/i386/i386.c
3496         (ix86_preferred_simd_mode): Handle HF mode.
3497         * config/i386/sse.md (V_256H): New mode iterator.
3498         (avx_vextractf128<mode>): Use it.
3499         (VEC_INIT_MODE): Align vector HFmode condition to vector
3500         HImodes since there're no real HF instruction used.
3501         (VEC_INIT_HALF_MODE): Ditto.
3502         (VIHF): Ditto.
3503         (VIHF_AVX512BW): Ditto.
3504         (*vec_extracthf): Ditto.
3505         (VEC_EXTRACT_MODE): Ditto.
3507 2021-09-10  Richard Biener  <rguenther@suse.de>
3509         PR target/102255
3510         * config/dbx.h: Remove.
3511         * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
3512         * config/lynx.h: Likewise.
3514 2021-09-10  liuhongt  <hongtao.liu@intel.com>
3516         * config/i386/i386-expand.c (ix86_expand_copysign): Expand
3517         right into ANDNOT + AND + IOR, using paradoxical subregs.
3518         (ix86_split_copysign_const): Remove.
3519         (ix86_split_copysign_var): Ditto.
3520         * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
3521         (ix86_split_copysign_var): Ditto.
3522         * config/i386/i386.md (@copysign<mode>3_const): Ditto.
3523         (@copysign<mode>3_var): Ditto.
3525 2021-09-09  qing zhao  <qing.zhao@oracle.com>
3527         * builtins.c (expand_builtin_memset): Make external visible.
3528         * builtins.h (expand_builtin_memset): Declare extern.
3529         * common.opt (ftrivial-auto-var-init=): New option.
3530         * doc/extend.texi: Document the uninitialized attribute.
3531         * doc/invoke.texi: Document -ftrivial-auto-var-init.
3532         * flag-types.h (enum auto_init_type): New enumerated type
3533         auto_init_type.
3534         * gimple-fold.c (clear_padding_type): Add one new parameter.
3535         (clear_padding_union): Likewise.
3536         (clear_padding_emit_loop): Likewise.
3537         (clear_type_padding_in_mask): Likewise.
3538         (gimple_fold_builtin_clear_padding): Handle this new parameter.
3539         * gimplify.c (gimple_add_init_for_auto_var): New function.
3540         (gimple_add_padding_init_for_auto_var): New function.
3541         (is_var_need_auto_init): New function.
3542         (gimplify_decl_expr): Add initialization to automatic variables per
3543         users' requests.
3544         (gimplify_call_expr): Add one new parameter for call to
3545         __builtin_clear_padding.
3546         (gimplify_init_constructor): Add padding initialization in the end.
3547         * internal-fn.c (INIT_PATTERN_VALUE): New macro.
3548         (expand_DEFERRED_INIT): New function.
3549         * internal-fn.def (DEFERRED_INIT): New internal function.
3550         * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
3551         * tree-sra.c (generate_subtree_deferred_init): New function.
3552         (scan_function): Avoid setting cannot_scalarize_away_bitmap for
3553         calls to .DEFERRED_INIT.
3554         (sra_modify_deferred_init): New function.
3555         (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
3556         * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
3557         * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
3558         specially.
3559         (check_defs): Likewise.
3560         (warn_uninitialized_vars): Likewise.
3561         * tree-ssa.c (ssa_undefined_value_p): Likewise.
3562         * tree.c (build_common_builtin_nodes): Build tree node for
3563         BUILT_IN_CLEAR_PADDING when needed.
3565 2021-09-09  Richard Biener  <rguenther@suse.de>
3567         * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
3568         into all subloops.
3570 2021-09-09  Richard Biener  <rguenther@suse.de>
3572         * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
3573         DOM walk from get_loop_body_in_dom_order using a worklist
3574         approach.
3576 2021-09-09  liuhongt  <hongtao.liu@intel.com>
3578         * config.gcc: Add avx512fp16vlintrin.h.
3579         * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
3580         (_mm512_mask_add_ph): Likewise.
3581         (_mm512_maskz_add_ph): Likewise.
3582         (_mm512_sub_ph): Likewise.
3583         (_mm512_mask_sub_ph): Likewise.
3584         (_mm512_maskz_sub_ph): Likewise.
3585         (_mm512_mul_ph): Likewise.
3586         (_mm512_mask_mul_ph): Likewise.
3587         (_mm512_maskz_mul_ph): Likewise.
3588         (_mm512_div_ph): Likewise.
3589         (_mm512_mask_div_ph): Likewise.
3590         (_mm512_maskz_div_ph): Likewise.
3591         (_mm512_add_round_ph): Likewise.
3592         (_mm512_mask_add_round_ph): Likewise.
3593         (_mm512_maskz_add_round_ph): Likewise.
3594         (_mm512_sub_round_ph): Likewise.
3595         (_mm512_mask_sub_round_ph): Likewise.
3596         (_mm512_maskz_sub_round_ph): Likewise.
3597         (_mm512_mul_round_ph): Likewise.
3598         (_mm512_mask_mul_round_ph): Likewise.
3599         (_mm512_maskz_mul_round_ph): Likewise.
3600         (_mm512_div_round_ph): Likewise.
3601         (_mm512_mask_div_round_ph): Likewise.
3602         (_mm512_maskz_div_round_ph): Likewise.
3603         * config/i386/avx512fp16vlintrin.h: New header.
3604         * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
3605         Add new builtin types.
3606         * config/i386/i386-builtin.def: Add corresponding builtins.
3607         * config/i386/i386-expand.c
3608         (ix86_expand_args_builtin): Handle new builtin types.
3609         (ix86_expand_round_builtin): Likewise.
3610         * config/i386/immintrin.h: Include avx512fp16vlintrin.h
3611         * config/i386/sse.md (VFH): New mode_iterator.
3612         (VF2H): Likewise.
3613         (avx512fmaskmode): Add HF vector modes.
3614         (avx512fmaskhalfmode): Likewise.
3615         (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
3616         HF vector modes.
3617         (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
3618         (mul<mode>3<mask_name><round_name>): Likewise.
3619         (*mul<mode>3<mask_name><round_name>): Likewise.
3620         (div<mode>3): Likewise.
3621         (<sse>_div<mode>3<mask_name><round_name>): Likewise.
3622         * config/i386/subst.md (SUBST_V): Add HF vector modes.
3623         (SUBST_A): Likewise.
3624         (round_mode512bit_condition): Adjust for V32HFmode.
3626 2021-09-09  liuhongt  <hongtao.liu@intel.com>
3628         PR target/101059
3629         * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
3630         (reduc_plus_scal_v4sf): .. this, New define_expand.
3631         (reduc_plus_scal_v2df): .. and this, New define_expand.
3633 2021-09-09  liuhongt  <hongtao.liu@intel.com>
3635         PR target/91103
3636         * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
3637         New define_insn.
3639 2021-09-08  Jonathan Wakely  <jwakely@redhat.com>
3641         PR c++/60318
3642         * doc/trouble.texi (Copy Assignment): Fix description of
3643         behaviour and fix code in example.
3645 2021-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
3647         PR target/102107
3648         * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
3649         r11 instead of r12 for restoring CR.
3651 2021-09-08  Jakub Jelinek  <jakub@redhat.com>
3652             liuhongt  <hongtao.liu@intel.com>
3654         PR target/89984
3655         * config/i386/i386.md (@xorsign<mode>3_1): Remove.
3656         * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
3657         into AND with mask and XOR, using paradoxical subregs.
3658         (ix86_split_xorsign): Remove.
3659         * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
3661 2021-09-08  Di Zhao  <dizhao@os.amperecomputing.com>
3663         * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
3665 2021-09-08  Jakub Jelinek  <jakub@redhat.com>
3667         PR target/102224
3668         * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
3669         operands[2], emit abs<mode>2 instead.
3670         (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
3671         first alternative even for avx, add another alternative with
3672         =&Yv <- 0, Yv, Yvm constraints.
3673         * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
3674         to op1, emit vpandn instead.
3676 2021-09-08  liuhongt  <hongtao.liu@intel.com>
3678         * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
3679         (_mm256_set_ph): Likewise.
3680         (_mm512_set_ph): Likewise.
3681         (_mm_setr_ph): Likewise.
3682         (_mm256_setr_ph): Likewise.
3683         (_mm512_setr_ph): Likewise.
3684         (_mm_set1_ph): Likewise.
3685         (_mm256_set1_ph): Likewise.
3686         (_mm512_set1_ph): Likewise.
3687         (_mm_setzero_ph): Likewise.
3688         (_mm256_setzero_ph): Likewise.
3689         (_mm512_setzero_ph): Likewise.
3690         (_mm_set_sh): Likewise.
3691         (_mm_load_sh): Likewise.
3692         (_mm_store_sh): Likewise.
3693         * config/i386/i386-builtin-types.def (V8HF): New type.
3694         (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
3695         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
3696         Support vector HFmodes.
3697         (ix86_expand_vector_init_one_nonzero): Likewise.
3698         (ix86_expand_vector_init_one_var): Likewise.
3699         (ix86_expand_vector_init_interleave): Likewise.
3700         (ix86_expand_vector_init_general): Likewise.
3701         (ix86_expand_vector_set): Likewise.
3702         (ix86_expand_vector_extract): Likewise.
3703         (ix86_expand_vector_init_concat): Likewise.
3704         (ix86_expand_sse_movcc): Handle vector HFmodes.
3705         (ix86_expand_vector_set_var): Ditto.
3706         * config/i386/i386-modes.def: Add HF vector modes in comment.
3707         * config/i386/i386.c (classify_argument): Add HF vector modes.
3708         (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
3709         (ix86_vector_mode_supported_p): Likewise.
3710         (ix86_set_reg_reg_cost): Handle vector HFmode.
3711         (ix86_get_ssemov): Handle vector HFmode.
3712         (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
3713         by stack.
3714         (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
3715         mode.
3716         (function_arg_advance_32): Ditto.
3717         * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
3718         (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
3719         (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
3720         (VALID_SSE2_REG_VHF_MODE): New.
3721         (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
3722         (SSE_REG_MODE_P): Add vector HFmode.
3723         * config/i386/i386.md (mode): Add HF vector modes.
3724         (MODE_SIZE): Likewise.
3725         (ssemodesuffix): Add ph suffix for HF vector modes.
3726         * config/i386/sse.md (VFH_128): New mode iterator.
3727         (VMOVE): Adjust for HF vector modes.
3728         (V): Likewise.
3729         (V_256_512): Likewise.
3730         (avx512): Likewise.
3731         (avx512fmaskmode): Likewise.
3732         (shuffletype): Likewise.
3733         (sseinsnmode): Likewise.
3734         (ssedoublevecmode): Likewise.
3735         (ssehalfvecmode): Likewise.
3736         (ssehalfvecmodelower): Likewise.
3737         (ssePScmode): Likewise.
3738         (ssescalarmode): Likewise.
3739         (ssescalarmodelower): Likewise.
3740         (sseintprefix): Likewise.
3741         (i128): Likewise.
3742         (bcstscalarsuff): Likewise.
3743         (xtg_mode): Likewise.
3744         (VI12HF_AVX512VL): New mode_iterator.
3745         (VF_AVX512FP16): Likewise.
3746         (VIHF): Likewise.
3747         (VIHF_256): Likewise.
3748         (VIHF_AVX512BW): Likewise.
3749         (V16_256): Likewise.
3750         (V32_512): Likewise.
3751         (sseintmodesuffix): New mode_attr.
3752         (sse): Add scalar and vector HFmodes.
3753         (ssescalarmode): Add vector HFmode mapping.
3754         (ssescalarmodesuffix): Add sh suffix for HFmode.
3755         (*<sse>_vm<insn><mode>3): Use VFH_128.
3756         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
3757         (*ieee_<ieee_maxmin><mode>3): Likewise.
3758         (<avx512>_blendm<mode>): New define_insn.
3759         (vec_setv8hf): New define_expand.
3760         (vec_set<mode>_0): New define_insn for HF vector set.
3761         (*avx512fp16_movsh): Likewise.
3762         (avx512fp16_movsh): Likewise.
3763         (vec_extract_lo_v32hi): Rename to ...
3764         (vec_extract_lo_<mode>): ... this, and adjust to allow HF
3765         vector modes.
3766         (vec_extract_hi_v32hi): Likewise.
3767         (vec_extract_hi_<mode>): Likewise.
3768         (vec_extract_lo_v16hi): Likewise.
3769         (vec_extract_lo_<mode>): Likewise.
3770         (vec_extract_hi_v16hi): Likewise.
3771         (vec_extract_hi_<mode>): Likewise.
3772         (vec_set_hi_v16hi): Likewise.
3773         (vec_set_hi_<mode>): Likewise.
3774         (vec_set_lo_v16hi): Likewise.
3775         (vec_set_lo_<mode>): Likewise.
3776         (*vec_extract<mode>_0): New define_insn_and_split for HF
3777         vector extract.
3778         (*vec_extracthf): New define_insn.
3779         (VEC_EXTRACT_MODE): Add HF vector modes.
3780         (PINSR_MODE): Add V8HF.
3781         (sse2p4_1): Likewise.
3782         (pinsr_evex_isa): Likewise.
3783         (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
3784         insert for V8HFmode.
3785         (pbroadcast_evex_isa): Add HF vector modes.
3786         (AVX2_VEC_DUP_MODE): Likewise.
3787         (VEC_INIT_MODE): Likewise.
3788         (VEC_INIT_HALF_MODE): Likewise.
3789         (avx2_pbroadcast<mode>): Adjust to support HF vector mode
3790         broadcast.
3791         (avx2_pbroadcast<mode>_1): Likewise.
3792         (<avx512>_vec_dup<mode>_1): Likewise.
3793         (<avx512>_vec_dup<mode><mask_name>): Likewise.
3794         (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
3795         Likewise.
3797 2021-09-08  Guo, Xuepeng  <xuepeng.guo@intel.com>
3798             H.J. Lu  <hongjiu.lu@intel.com>
3799             Liu Hongtao  <hongtao.liu@intel.com>
3800             Wang Hongyu  <hongyu.wang@intel.com>
3801             Xu Dianhong  <dianhong.xu@intel.com>
3803         * common/config/i386/cpuinfo.h (get_available_features):
3804         Detect FEATURE_AVX512FP16.
3805         * common/config/i386/i386-common.c
3806         (OPTION_MASK_ISA_AVX512FP16_SET,
3807         OPTION_MASK_ISA_AVX512FP16_UNSET,
3808         OPTION_MASK_ISA2_AVX512FP16_SET,
3809         OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
3810         (OPTION_MASK_ISA2_AVX512BW_UNSET,
3811         OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
3812         (ix86_handle_option): Handle -mavx512fp16.
3813         * common/config/i386/i386-cpuinfo.h (enum processor_features):
3814         Add FEATURE_AVX512FP16.
3815         * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
3816         * config.gcc: Add avx512fp16intrin.h.
3817         * config/i386/avx512fp16intrin.h: New intrinsic header.
3818         * config/i386/cpuid.h: Add bit_AVX512FP16.
3819         * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
3820         * config/i386/i386-builtins.c: Support _Float16 type for i386
3821         backend.
3822         (ix86_register_float16_builtin_type): New function.
3823         (ix86_float16_type_node): New.
3824         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3825         __AVX512FP16__.
3826         * config/i386/i386-expand.c (ix86_expand_branch): Support
3827         HFmode.
3828         (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
3829         SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
3830         (ix86_expand_fp_movcc): Ditto.
3831         * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
3832         * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
3833         (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
3834         * config/i386/i386.c (ix86_get_ssemov): Use
3835         vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
3836         (ix86_get_excess_precision): Use
3837         FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
3838         existed.
3839         (sse_store_index): Use SFmode cost for HFmode cost.
3840         (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
3841         GPR cost for HFmode.
3842         (ix86_hard_regno_mode_ok): Allow HImode in sse register.
3843         (ix86_mangle_type): Add manlging for _Float16 type.
3844         (inline_secondary_memory_needed): No memory is needed for
3845         16bit movement between gpr and sse reg under
3846         TARGET_AVX512FP16.
3847         (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
3848         SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
3849         (ix86_division_cost): Ditto.
3850         (ix86_rtx_costs): Ditto.
3851         (ix86_add_stmt_cost): Ditto.
3852         (ix86_optab_supported_p): Ditto.
3853         * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
3854         (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
3855         (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
3856         * config/i386/i386.md (mode): Add HFmode.
3857         (MODE_SIZE): Add HFmode.
3858         (isa): Add avx512fp16.
3859         (enabled): Handle avx512fp16.
3860         (ssemodesuffix): Add sh suffix for HFmode.
3861         (comm): Add mult, div.
3862         (plusminusmultdiv): New code iterator.
3863         (insn): Add mult, div.
3864         (*movhf_internal): Adjust for avx512fp16 instruction.
3865         (*movhi_internal): Ditto.
3866         (*cmpi<unord>hf): New define_insn for HFmode.
3867         (*ieee_s<ieee_maxmin>hf3): Likewise.
3868         (extendhf<mode>2): Likewise.
3869         (trunc<mode>hf2): Likewise.
3870         (float<floatunssuffix><mode>hf2): Likewise.
3871         (*<insn>hf): Likewise.
3872         (cbranchhf4): New expander.
3873         (movhfcc): Likewise.
3874         (<insn>hf3): Likewise.
3875         (mulhf3): Likewise.
3876         (divhf3): Likewise.
3877         * config/i386/i386.opt: Add mavx512fp16.
3878         * config/i386/immintrin.h: Include avx512fp16intrin.h.
3879         * doc/invoke.texi: Add mavx512fp16.
3880         * doc/extend.texi: Add avx512fp16 Usage Notes.
3882 2021-09-08  liuhongt  <hongtao.liu@intel.com>
3884         * common.opt: Support -fexcess-precision=16.
3885         * config/aarch64/aarch64.c (aarch64_excess_precision): Return
3886         FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
3887         EXCESS_PRECISION_TYPE_FLOAT16.
3888         * config/arm/arm.c (arm_excess_precision): Ditto.
3889         * config/i386/i386.c (ix86_get_excess_precision): Ditto.
3890         * config/m68k/m68k.c (m68k_excess_precision): Issue an error
3891         when EXCESS_PRECISION_TYPE_FLOAT16.
3892         * config/s390/s390.c (s390_excess_precision): Ditto.
3893         * coretypes.h (enum excess_precision_type): Add
3894         EXCESS_PRECISION_TYPE_FLOAT16.
3895         * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
3896         * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
3897         * doc/extend.texi (Half-Precision): Document
3898         -fexcess-precision=16.
3899         * flag-types.h (enum excess_precision): Add
3900         EXCESS_PRECISION_FLOAT16.
3901         * target.def (excess_precision): Update document.
3902         * tree.c (excess_precision_type): Set excess_precision_type to
3903         EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
3905 2021-09-08  liuhongt  <hongtao.liu@intel.com>
3907         * doc/extend.texi: (@node Floating Types): Adjust the wording.
3908         (@node Half-Precision): Ditto.
3910 2021-09-07  Takayuki 'January June' Suwa  <jjsuwa_sys3175@yahoo.co.jp>
3912         PR target/102115
3913         * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
3914         'CONST_INT_P (src)' to the condition of the block that tries to
3915         eliminate literal when loading integer contant.
3917 2021-09-07  David Faust  <david.faust@oracle.com>
3919         * doc/extend.texi (BPF Type Attributes) New node.
3920         Document new preserve_access_index attribute.
3921         Document new preserve_access_index builtin.
3922         * doc/invoke.texi: Document -mco-re and -mno-co-re options.
3924 2021-09-07  David Faust  <david.faust@oracle.com>
3926         * config/bpf/bpf.c: Adjust includes.
3927         (bpf_handle_preserve_access_index_attribute): New function.
3928         (bpf_attribute_table): Use it here.
3929         (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
3930         (bpf_option_override): Handle "-mco-re" option.
3931         (bpf_asm_init_sections): New.
3932         (TARGET_ASM_INIT_SECTIONS): Redefine.
3933         (bpf_file_end): New.
3934         (TARGET_ASM_FILE_END): Redefine.
3935         (bpf_init_builtins): Add "__builtin_preserve_access_index".
3936         (bpf_core_compute, bpf_core_get_index): New.
3937         (is_attr_preserve_access): New.
3938         (bpf_expand_builtin): Handle new builtins.
3939         (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
3940         (bpf_core_walk): New.
3941         (bpf_resolve_overloaded_builtin): New.
3942         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
3943         (handle_attr): New.
3944         (pass_bpf_core_attr): New RTL pass.
3945         * config/bpf/bpf-passes.def: New file.
3946         * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
3947         * config/bpf/coreout.c: New file.
3948         * config/bpf/coreout.h: Likewise.
3949         * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
3950         (coreout.o): New rule.
3951         (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
3952         * config.gcc (bpf): Add coreout.h to extra_headers.
3953         Add coreout.o to extra_objs.
3954         Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
3956 2021-09-07  David Faust  <david.faust@oracle.com>
3958         * btfout.c (get_btf_id): Function is no longer static.
3959         * ctfc.h: Expose it here.
3961 2021-09-07  David Faust  <david.faust@oracle.com>
3963         * ctfc.c (ctf_lookup_tree_type): New function.
3964         * ctfc.h: Likewise.
3966 2021-09-07  David Faust  <david.faust@oracle.com>
3968         * ctfc.c (ctf_dtd_lookup): Function is no longer static.
3969         * ctfc.h: Analogous change.
3971 2021-09-07  David Faust  <david.faust@oracle.com>
3973         * dwarf2out.c (lookup_type_die): Function is no longer static.
3974         * dwarf2out.h: Expose it here.
3976 2021-09-07  Indu Bhagat  <indu.bhagat@oracle.com>
3978         * dwarf2ctf.c (ctf_debug_finalize): Make it static.
3979         (ctf_debug_early_finish): New definition.
3980         (ctf_debug_finish): Likewise.
3981         * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
3982         (ctf_debug_early_finish): New declaration.
3983         (ctf_debug_finish): Likewise.
3984         * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
3985         (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
3987 2021-09-07  Indu Bhagat  <indu.bhagat@oracle.com>
3989         * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
3990         support when compiling for CO-RE.
3991         * config/bpf/bpf.opt: Add new command line option -mco-re.
3993 2021-09-07  Indu Bhagat  <indu.bhagat@oracle.com>
3995         * flag-types.h (enum debug_info_type): Add new enum
3996         DINFO_TYPE_BTF_WITH_CORE.
3997         (BTF_WITH_CORE_DEBUG): New bitmask.
3998         * flags.h (btf_with_core_debuginfo_p): New declaration.
3999         * opts.c (btf_with_core_debuginfo_p): New definition.
4001 2021-09-07  Jason Merrill  <jason@redhat.com>
4003         * tree.h (error_operand_p): Change to inline function.
4005 2021-09-07  Aldy Hernandez  <aldyh@redhat.com>
4007         * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
4008         (empty_block_with_phis_p): ...this.
4009         (potentially_threadable_block): Same.
4010         (jump_threader::thread_through_normal_block): Same.
4012 2021-09-07  Eric Botcazou  <ebotcazou@adacore.com>
4014         PR debug/101947
4015         * dwarf2out.c (mark_base_types): New overloaded function.
4016         (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
4017         as the compilation unit, and call move_marked_base_types afterward.
4019 2021-09-07  H.J. Lu  <hjl.tools@gmail.com>
4021         PR target/85819
4022         * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
4023         Enable FMA.
4024         (ix86_expand_vector_convert_uns_vsivsf): Likewise.
4026 2021-09-07  Richard Biener  <rguenther@suse.de>
4028         PR tree-optimization/102226
4029         * tree-vect-loop.c (vect_transform_cycle_phi): Record
4030         the converted value for the epilogue PHI use.
4032 2021-09-07  Martin Liska  <mliska@suse.cz>
4034         PR gcov-profile/80223
4035         * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
4036         options, do not inline when no_profile_instrument_function
4037         attributes are different in early inliner. It's fine to inline
4038         it after PGO instrumentation.
4040 2021-09-07  Richard Biener  <rguenther@suse.de>
4042         PR tree-optimization/101555
4043         * tree-ssa-pre.c (translate_vuse_through_block): Do not
4044         perform an alias walk to determine the validity of the
4045         mem at the start of the block which is already guaranteed
4046         by means of prune_clobbered_mems.
4047         (phi_translate_1): Pass edge to translate_vuse_through_block.
4049 2021-09-07  Xionghu Luo  <luoxhu@linux.ibm.com>
4051         PR target/97142
4052         * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
4053         (remainder<mode>3): Likewise.
4055 2021-09-07  YunQiang Su  <yunqiang.su@cipunited.com>
4057         * config/mips/mips.c (mips_file_start): add .module for
4058           arch and ase.
4060 2021-09-06  Roger Sayle  <roger@nextmovesoftware.com>
4062         * wide-int.cc (wi::clz): Reorder tests to ensure the result
4063         is zero for all negative values.
4065 2021-09-06  Tobias Burnus  <tobias@codesourcery.com>
4067         * doc/invoke.texi (-foffload-options): Fix @opindex.
4069 2021-09-06  H.J. Lu  <hjl.tools@gmail.com>
4071         PR target/89984
4072         * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
4073         * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
4074         source alternative for AVX.
4076 2021-09-06  liuhongt  <hongtao.liu@intel.com>
4078         PR middle-end/102182
4079         * optabs.c (expand_fix): Add from1 to avoid from being
4080         overwritten.
4082 2021-09-06  Eric Botcazou  <ebotcazou@adacore.com>
4084         * dwarf2out.c (modified_type_die): Deal with all array types earlier
4085         and use local variable consistently throughout the function.
4087 2021-09-06  Jakub Jelinek  <jakub@redhat.com>
4089         PR tree-optimization/102207
4090         * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
4091         were promoted from signed to wider unsigned type.
4093 2021-09-06  Andrew Pinski  <apinski@marvell.com>
4095         PR tree-optimization/63184
4096         * match.pd: Add simplification of pointer_diff of two pointer_plus
4097         with addr_expr in the first operand of each pointer_plus.
4098         Add simplificatoin of ne/eq of two pointer_plus with addr_expr
4099         in the first operand of each pointer_plus.
4101 2021-09-06  Richard Biener  <rguenther@suse.de>
4103         PR tree-optimization/102176
4104         * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
4105         New function.
4106         (vect_bb_slp_scalar_cost): Use the computed set of
4107         vectorized scalar stmts instead of relying on the out-of-date
4108         and not accurate PURE_SLP_STMT.
4109         (vect_bb_vectorization_profitable_p): Compute the set
4110         of vectorized scalar stmts.
4112 2021-09-05  Aldy Hernandez  <aldyh@redhat.com>
4114         * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
4115         GIMPLE_COND special casing.
4116         (path_range_query::range_defined_in_block): Use range_of_stmt
4117         instead of calling fold_range directly.
4119 2021-09-05  Aldy Hernandez  <aldyh@redhat.com>
4121         * gimple-range-path.cc (path_range_query::range_of_expr): Set
4122         m_undefined_path when appropriate.
4123         (path_range_query::internal_range_of_expr): Copy from range_of_expr.
4124         (path_range_query::unreachable_path_p): New.
4125         (path_range_query::precompute_ranges): Set m_undefined_path.
4126         * gimple-range-path.h (path_range_query::unreachable_path_p): New.
4127         (path_range_query::internal_range_of_expr): New.
4128         * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
4129         Use unreachable_path_p.
4131 2021-09-05  Aldy Hernandez  <aldyh@redhat.com>
4133         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
4134         Remove argument and call find_taken_edge.
4135         (back_threader::resolve_phi): Do not calculate taken edge before
4136         calling maybe_register_path.
4137         (back_threader::find_paths_to_names): Same.
4139 2021-09-05  Jeff Law  <jlaw@localhost.localdomain>
4141         * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
4142         * config/h8300/testcompare.md (store_c): Update name, use new
4143         QHSI2 iterator.
4144         (store_neg_c, store_shifted_c): New patterns.
4146 2021-09-03  Segher Boessenkool  <segher@kernel.crashing.org>
4148         PR target/102107
4149         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
4150         instead of r12 for CR save, in all cases.
4152 2021-09-03  Andrew Pinski  <apinski@marvell.com>
4154         * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
4155         Handle error_mark_node as the type of the type_decl.
4157 2021-09-03  Andrew Pinski  <apinski@marvell.com>
4159         * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
4160         Mark with GTY.
4161         (aarch64_simd_types): Likewise.
4162         (aarch64_simd_intOI_type_node): Likewise.
4163         (aarch64_simd_intCI_type_node): Likewise.
4164         (aarch64_simd_intXI_type_node): Likewise.
4165         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
4166         (aarch64_fp16_ptr_type_node): Likewise.
4167         (aarch64_bf16_type_node): Likewise.
4168         (aarch64_bf16_ptr_type_node): Likewise.
4170 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4172         * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
4173         out to...
4174         (minus_op1_op2_relation_effect): ...here.
4175         (class operator_pointer_diff): New.
4176         (operator_pointer_diff::op1_op2_relation_effect): Call
4177         minus_op1_op2_relation_effect.
4178         (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
4180 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4182         * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
4183         Add may_peel_loop_headers.
4184         (back_threader_registry::thread_through_all_blocks): Same.
4185         (try_thread_blocks): Pass may_peel_loop_headers argument.
4186         (pass_early_thread_jumps::execute): Same.
4188 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4190         * tree-ssa-threadedge.c (has_phis_p): New.
4191         (forwarder_block_p): New.
4192         (potentially_threadable_block): Call forwarder_block_p.
4193         (jump_threader::thread_around_empty_blocks): Call has_phis_p.
4194         (jump_threader::thread_through_normal_block): Call
4195         forwarder_block_p.
4197 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4199         * tree-ssa-threadbackward.c (back_threader::dump): New.
4200         (back_threader::debug): New.
4201         (back_threader_profitability::profitable_path_p): Dump blocks
4202         even if we are bailing early.
4204 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4206         * tree-ssa-threadupdate.c (cancel_thread): New.
4207         (jump_thread_path_registry::thread_block_1): Use cancel_thread.
4208         (jump_thread_path_registry::mark_threaded_blocks): Same.
4209         (jump_thread_path_registry::register_jump_thread): Same.
4211 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4213         * tree-ssa-threadedge.c (jt_state::push): Only call methods for
4214         which objects are available.
4215         (jt_state::pop): Same.
4216         (jt_state::register_equiv): Same.
4217         (jt_state::register_equivs_on_edge): Same.
4219 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4221         * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
4222         Move pop until after a thread is registered.
4224 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4226         * tree-ssa-threadupdate.c (debug): New.
4228 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4230         * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
4231         (push_dump_file::~push_dump_file): New.
4232         (dump_ranger): Change dump_file temporarily while dumping
4233         ranger.
4234         * gimple-range-trace.h (class push_dump_file): New.
4236 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4238         * gimple-range-trace.cc (debug_seed_ranger): Remove static.
4239         (dump_ranger): Dump function name.
4241 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4243         * gimple-range-path.cc (path_range_query::range_defined_in_block):
4244         Adjust for non-null.
4245         (path_range_query::adjust_for_non_null_uses): New.
4246         (path_range_query::precompute_ranges): Call
4247         adjust_for_non_null_uses.
4248         * gimple-range-path.h: Add m_non_null and
4249         adjust_for_non_null_uses.
4251 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4253         * gimple-range-path.cc (path_range_query::dump): Dump path
4254         length.
4255         (path_range_query::precompute_ranges): Dump entire path.
4257 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4259         * value-relation.cc (relation_oracle::debug): New.
4260         * value-relation.h (relation_oracle::debug): New.
4262 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4264         * tree-ssa-loop-ch.c: Remove unnecessary include file.
4266 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4268         * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
4269         Skip statements with no defining BB.
4270         * gimple-range-path.cc (path_range_query::range_defined_in_block):
4271         Do not get confused by statements with no defining BB.
4273 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
4275         * gimple-range-fold.cc (adjust_imagpart_expr): Move from
4276         gimple_range_adjustment.  Add support for constants.
4277         (adjust_realpart_expr): New.
4278         (gimple_range_adjustment): Move IMAGPART_EXPR code to
4279         adjust_imagpart_expr.
4280         * range-op.cc (integral_table::integral_table): Add entry for
4281         REALPART_CST.
4283 2021-09-03  Jakub Jelinek  <jakub@redhat.com>
4285         * omp-expand.c (expand_omp_atomic_pipeline): Use
4286         IFN_ATOMIC_COMPARE_EXCHANGE instead of
4287         BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
4288         can be provided.
4290 2021-09-03  Jakub Jelinek  <jakub@redhat.com>
4292         PR target/102024
4293         * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
4294         that is false if DECL_BIT_FIELD.
4295         (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
4296         SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
4297         * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
4298         DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
4299         of DECL_FIELD_ABI_IGNORED.
4300         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
4301         SET_DECL_FIELD_ABI_IGNORED instead of writing to
4302         DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
4303         SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
4304         * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
4305         DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
4307 2021-09-03  liuhongt  <hongtao.liu@intel.com>
4309         PR target/102166
4310         * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
4311         * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
4312         * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
4314 2021-09-02  Martin Sebor  <msebor@redhat.com>
4316         PR tree-optimization/17506
4317         PR testsuite/37182
4318         * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
4320 2021-09-02  Richard Biener  <rguenther@suse.de>
4322         * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
4323         fix for PR78185 and continue processing when leaving
4324         finite inner loops.
4326 2021-09-02  Jakub Jelinek  <jakub@redhat.com>
4328         PR tree-optimization/99591
4329         * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
4330         were promoted.
4332 2021-09-02  Richard Biener  <rguenther@suse.de>
4334         Revert:
4335         2021-09-02  Richard Biener  <rguenther@suse.de>
4337         PR tree-optimization/102155
4338         * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
4339         over a part of the RPO array and do not recurse here.
4340         Dump blocks marked as always executed.
4341         (fill_always_executed_in): Walk over the RPO array and
4342         process loops whose header we run into.
4343         (loop_invariant_motion_in_fun): Compute the first RPO
4344         using rev_post_order_and_mark_dfs_back_seme in iteration
4345         order and pass that to fill_always_executed_in.
4347 2021-09-02  liuhongt  <hongtao.liu@intel.com>
4349         * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
4350         * config/i386/i386.c (enum x86_64_reg_class): Add
4351         X86_64_SSEHF_CLASS.
4352         (merge_classes): Handle X86_64_SSEHF_CLASS.
4353         (examine_argument): Ditto.
4354         (construct_container): Ditto.
4355         (classify_argument): Ditto, and set HFmode/HCmode to
4356         X86_64_SSEHF_CLASS.
4357         (function_value_32): Return _FLoat16/Complex Float16 by
4358         %xmm0.
4359         (function_value_64): Return _Float16/Complex Float16 by SSE
4360         register.
4361         (ix86_print_operand): Handle CONST_DOUBLE HFmode.
4362         (ix86_secondary_reload): Require gpr as intermediate register
4363         to store _Float16 from sse register when sse4 is not
4364         available.
4365         (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
4366         sse2.
4367         (ix86_scalar_mode_supported_p): Ditto.
4368         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
4369         * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
4370         (VALID_INT_MODE_P): Add HFmode and HCmode.
4371         * config/i386/i386.md (*pushhf_rex64): New define_insn.
4372         (*pushhf): Ditto.
4373         (*movhf_internal): Ditto.
4374         * doc/extend.texi (Half-Precision Floating Point): Documemt
4375         _Float16 for x86.
4377 2021-09-02  Richard Biener  <rguenther@suse.de>
4379         PR tree-optimization/102155
4380         * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
4381         over a part of the RPO array and do not recurse here.
4382         Dump blocks marked as always executed.
4383         (fill_always_executed_in): Walk over the RPO array and
4384         process loops whose header we run into.
4385         (loop_invariant_motion_in_fun): Compute the first RPO
4386         using rev_post_order_and_mark_dfs_back_seme in iteration
4387         order and pass that to fill_always_executed_in.
4389 2021-09-02  YunQiang Su  <syq@debian.org>
4391         Revert:
4392         2021-08-31  YunQiang Su  <yunqiang.su@cipunited.com>
4394         * config/mips/mips.c (mips_module_isa_name): New.
4395           mips_file_start: add .module mipsREV to all asm output
4397 2021-09-01  Jeff Law  <jlaw@localhost.localdomain>
4399         PR tree-optimization/102152
4400         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
4401         comparison to a scalar comparison before calling
4402         update_stmt_if_modified.
4404 2021-09-01  Andrew Pinski  <apinski@marvell.com>
4406         PR target/101934
4407         * config/aarch64/aarch64.c (aarch64_expand_setmem):
4408         Check STRICT_ALIGNMENT before creating an overlapping
4409         store.
4411 2021-09-01  Martin Sebor  <msebor@redhat.com>
4413         * gimple-ssa-warn-access.cc (get_size_range): Add argument.
4414         (check_access): Pass additional argument.
4415         (check_memop_access): Remove template and make a member function.
4416         (maybe_check_dealloc_call): Make a pass_waccess member function.
4417         (class pass_waccess): Add, rename, and remove members.
4418         (pass_waccess::pass_waccess): Adjust to name change.
4419         (pass_waccess::~pass_waccess): Same.
4420         (check_alloca): Make a member function.
4421         (check_alloc_size_call): Same.
4422         (check_strcat): Same.
4423         (check_strncat): Same.
4424         (check_stxcpy): Same.
4425         (check_stxncpy): Same.
4426         (check_strncmp): Same.
4427         (maybe_warn_rdwr_sizes): Rename...
4428         (pass_waccess::maybe_check_access_sizes): ...to this.
4429         (pass_waccess::check_call): Adjust to name changes.
4430         (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
4431         function.
4432         (pass_waccess::execute): Adjust to name changes.
4433         * gimple-ssa-warn-access.h (check_memop_access): Remove.
4434         * pointer-query.cc (access_ref::phi): Handle null pointer.
4435         (access_ref::inform_access): Same.
4436         (pointer_query::put_ref): Modify a cached value, not a copy of it.
4437         (pointer_query::dump): New function.
4438         (compute_objsize_r): Avoid overwriting access_ref::bndrng.  Cache
4439         more results.
4440         * pointer-query.h (pointer_query::dump): Declare.
4441         * tree-ssa-strlen.c (get_range): Simplify.  Use function query.
4442         (dump_strlen_info): Use function query.
4443         (printf_strlen_execute): Factor code out into pointer_query::put_ref.
4445 2021-09-01  Thomas Schwinge  <thomas@codesourcery.com>
4447         * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
4449 2021-09-01  Iain Sandoe  <iain@sandoe.co.uk>
4451         * doc/extend.texi: Document unavailable attribute.
4452         * print-tree.c (print_node): Handle unavailable attribute.
4453         * tree-core.h (struct tree_base): Add a bit to carry unavailability.
4454         * tree.c (error_unavailable_use): New.
4455         * tree.h (TREE_UNAVAILABLE): New.
4456         (error_unavailable_use): New.
4458 2021-09-01  Jakub Jelinek  <jakub@redhat.com>
4460         PR tree-optimization/102124
4461         * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
4462         MINUS_EXPR, if itype is unsigned with smaller precision than type,
4463         add an extra cast to signed variant of itype to ensure sign-extension.
4465 2021-09-01  Martin Liska  <mliska@suse.cz>
4467         * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
4468           edges and rather use colors for TRUE and FALSE edges.
4470 2021-09-01  Richard Biener  <rguenther@suse.de>
4472         PR tree-optimization/93491
4473         * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
4474         after processing the stmt itself.  Do not consider
4475         pure functions possibly not returning.  Properly avoid
4476         adding possibly trapping calls to EXP_GEN when there's
4477         a preceeding possibly not returning call.
4478         * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
4479         not handle calls.
4481 2021-09-01  Richard Biener  <rguenther@suse.de>
4483         PR tree-optimization/102139
4484         * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
4485         type to record a std::pair of the stmt-info and the innermost
4486         loop behavior.
4487         (dr_vec_info::group): New member.
4488         * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
4489         (vect_compute_data_ref_alignment): Verify the recorded
4490         base alignment can be used.
4491         (data_ref_pair): Remove.
4492         (dr_group_sort_cmp): Adjust.
4493         (vect_analyze_data_ref_accesses): Store the group-ID in the
4494         dr_vec_info and operate on a vector of dr_vec_infos.
4496 2021-09-01  YunQiang Su  <yunqiang.su@cipunited.com>
4498         * read-md.c (md_reader::handle_enum): support value assignation.
4499         * doc/md.texi: record define_c_enum value assignation support.
4501 2021-09-01  Jakub Jelinek  <jakub@redhat.com>
4503         PR tree-optimization/102141
4504         * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
4505         argument.  If false, emit stmts after gsi instead of before, and
4506         with GSI_NEW_STMT.
4507         (bswap_replace): Adjust callers.  When converting output of bswap,
4508         emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
4509         of before it.
4511 2021-09-01  liuhongt  <hongtao.liu@intel.com>
4513         * emit-rtl.c (validate_subreg): Get rid of all float-int
4514         special cases.
4516 2021-09-01  liuhongt  <hongtao.liu@intel.com>
4518         Revert:
4519         2021-08-30  liuhongt  <hongtao.liu@intel.com>
4521         * expmed.c (extract_bit_field_1): Make sure we're playing with
4522         integral modes before call extract_integral_bit_field.
4523         (extract_integral_bit_field): Add a parameter of type
4524         scalar_int_mode which corresponds to of tmode.
4525         And call extract_and_convert_fixed_bit_field instead of
4526         extract_fixed_bit_field and convert_extracted_bit_field.
4527         (extract_and_convert_fixed_bit_field): New function, it's a
4528         combination of extract_fixed_bit_field and
4529         convert_extracted_bit_field.
4531 2021-08-31  Thomas Schwinge  <thomas@codesourcery.com>
4533         * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
4535 2021-08-31  Thomas Schwinge  <thomas@codesourcery.com>
4537         * omp-general.h (omp_is_reference): Rename to...
4538         (omp_privatize_by_reference): ... this.  Adjust all users...
4539         * omp-general.c: ... here, ...
4540         * gimplify.c: ... here, ...
4541         * omp-expand.c: ... here, ...
4542         * omp-low.c: ... here.
4544 2021-08-31  Martin Sebor  <msebor@redhat.com>
4546         * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
4547         pointer element for equality to zero, not that of the cotaining
4548         array.
4550 2021-08-31  Martin Sebor  <msebor@redhat.com>
4552         * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
4554 2021-08-31  Martin Sebor  <msebor@redhat.com>
4556         * function.h (function): Add comments.
4557         (get_range_query): Same.  Add attribute returns nonnull.
4559 2021-08-31  Roger Sayle  <roger@nextmovesoftware.com>
4561         * expr.c (convert_modes): Don't use subreg_promoted_mode on a
4562         SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
4563         Instead use the standard (safer) is_a <scalar_int_mode> idiom.
4565 2021-08-31  Jeff Law  <jlaw@localhost.localdomain>
4567         * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
4568         tm_file.
4569         (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
4570         (mn10300-*-*, am33_2.0-*-linux*): Likewise.
4571         (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
4572         (m32c-*-elf*, m32c-*-rtems*): Likewise.
4573         * config/cris/cris.h (DBX_NO_XREFS): Remove.
4574         (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
4575         * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
4576         (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
4577         * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
4578         * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
4580 2021-08-31  Marcel Vollweiler  <marcel@codesourcery.com>
4582         * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
4583         allowed on target constructs and only with particular other clauses.
4584         * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
4585         'ancestor' is used.
4586         * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
4587         structs when 'ancestor' is used.
4588         (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
4589         'ancestor' is used.
4590         * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
4591         * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
4593 2021-08-31  Roger Sayle  <roger@nextmovesoftware.com>
4595         * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
4596         creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
4597         subreg.
4598         * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
4599         Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
4600         partial subreg from a SUBREG_PROMOTED_VAR_P subreg.  Generate
4601         SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
4602         [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
4603         creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
4604         subreg.  Generate ZERO_EXTEND of the SUBREG_REG when a subreg
4605         would be paradoxical.
4607 2021-08-31  Roger Sayle  <roger@nextmovesoftware.com>
4609         * combine.c (combine_simplify_rtx): Avoid converting an explicit
4610         TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
4611         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4613 2021-08-31  Richard Biener  <rguenther@suse.de>
4615         PR tree-optimization/102142
4616         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
4617         condition under which to unset the visited flag.
4619 2021-08-31  Richard Biener  <rguenther@suse.de>
4621         PR middle-end/102129
4622         * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
4623         possibly trapping expressions across calls.
4625 2021-08-31  Jakub Jelinek  <jakub@redhat.com>
4627         PR tree-optimization/102134
4628         * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
4629         UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
4630         become negative.
4632 2021-08-31  Andrew Pinski  <apinski@marvell.com>
4634         PR driver/79181
4635         * collect-utils.c (setup_signals): New declaration.
4636         * collect-utils.h (setup_signals): New function.
4637         * collect2.c (handler): Delete.
4638         (main): Instead of manually setting up the signals,
4639         just call setup_signals.
4640         * lto-wrapper.c (main): Likewise.
4642 2021-08-31  Andrew Pinski  <apinski@marvell.com>
4644         PR target/56337
4645         * config/i386/i386-protos.h (x86_output_aligned_bss):
4646         Change align argument to unsigned type.
4647         (x86_elf_aligned_decl_common): Likewise.
4648         * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
4649         (x86_output_aligned_bss): Likewise.
4651 2021-08-31  YunQiang Su  <yunqiang.su@cipunited.com>
4653         * config/mips/mips.c (mips_module_isa_name): New.
4654           mips_file_start: add .module mipsREV to all asm output
4656 2021-08-31  YunQiang Su  <yunqiang.su@cipunited.com>
4658         * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
4659           use enum instead of int for 'isa' member.
4660         * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
4661           config/mips/netbsd.h: replace hardcoded numbers with enum.
4663 2021-08-31  liuhongt  <hongtao.liu@intel.com>
4665         * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
4666         define_split to define_insn_and_split.
4667         (*avx2_eq<mode>3): Removed.
4668         (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
4669         (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
4670         (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
4671         adjust pattern.
4672         (*avx2_gt<mode>3): Removed.
4673         (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
4674         define_insn to define_expand, and adjust pattern.
4675         (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
4677 2021-08-30  David Malcolm  <dmalcolm@redhat.com>
4679         PR analyzer/99260
4680         * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
4682 2021-08-30  Jason Merrill  <jason@redhat.com>
4684         * doc/invoke.texi: Document -Wmissing-requires.
4686 2021-08-30  Bill Schmidt  <wschmidt@linux.ibm.com>
4688         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
4689         TARGET_EXTRA_BUILTINS guard.
4691 2021-08-30  Bill Schmidt  <wschmidt@linux.ibm.com>
4693         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
4694         initialization of V2DI_type_node and unsigned_V2DI_type_node.
4696 2021-08-30  Bill Schmidt  <wschmidt@linux.ibm.com>
4698         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
4699         decl when new_builtins_are_live.
4700         * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
4701         built-in.
4703 2021-08-30  Pat Haugen  <pthaugen@linux.ibm.com>
4705         * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
4706         OPTION_MASK_P10_FUSION_2STORE.
4707         (POWERPC_MASKS): Likewise.
4708         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
4709         store fusion for Power10.
4710         (is_fusable_store): New.
4711         (power10_sched_reorder): Likewise.
4712         (rs6000_sched_reorder): Do Power10 specific reordering.
4713         (rs6000_sched_reorder2): Likewise.
4714         * config/rs6000/rs6000.opt: Add new option.
4716 2021-08-30  Richard Biener  <rguenther@suse.de>
4718         PR tree-optimization/102128
4719         * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
4720         Move scanning for if-converted scalar code to the caller
4721         and instead delay clearing the visited flag for profitable
4722         subgraphs.
4723         (vect_slp_region): Cost all subgraphs before scheduling.
4724         For if-converted BB vectorization scan for scalar COND_EXPRs
4725         and do not vectorize if any found and the cost model is
4726         very-cheap.
4728 2021-08-30  Richard Biener  <rguenther@suse.de>
4730         * common.opt (fexceptions): Mark
4731         EnabledBy(fnon-call-exceptions).
4732         * doc/invoke.texi (fnon-call-exceptions): Document this
4733         enables -fexceptions.
4735 2021-08-30  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4737         * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
4738         is not already defined.
4740 2021-08-30  liuhongt  <hongtao.liu@intel.com>
4742         * expmed.c (extract_bit_field_1): Make sure we're playing with
4743         integral modes before call extract_integral_bit_field.
4744         (extract_integral_bit_field): Add a parameter of type
4745         scalar_int_mode which corresponds to of tmode.
4746         And call extract_and_convert_fixed_bit_field instead of
4747         extract_fixed_bit_field and convert_extracted_bit_field.
4748         (extract_and_convert_fixed_bit_field): New function, it's a
4749         combination of extract_fixed_bit_field and
4750         convert_extracted_bit_field.
4752 2021-08-29  Iain Sandoe  <iain@sandoe.co.uk>
4754         * config/darwin.c (darwin_libc_has_function): Do not run
4755         the checks for x86 or modern Darwin.  Make sure that there
4756         is a value set for darwin_macosx_version_min before testing.
4758 2021-08-29  Iain Sandoe  <iain@sandoe.co.uk>
4760         * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
4762 2021-08-28  Jan Hubicka  <hubicka@ucw.cz>
4764         * ipa-modref-tree.h (modref_access_node::merge): Break out
4765         logic combining offsets and logic merging ranges to ...
4766         (modref_access_node::combined_offsets): ... here
4767         (modref_access_node::update2): ... here
4768         (modref_access_node::closer_pair_p): New member function.
4769         (modref_access_node::forced_merge): New member function.
4770         (modre_ref_node::insert): Do merging when table is full.
4772 2021-08-28  YunQiang Su  <yunqiang.su@cipunited.com>
4774         PR target/102089
4775         * config.gcc: MIPS: use N64 ABI by default if the triple end
4776           with -gnuabi64, which is used by Debian since 2013.
4778 2021-08-28  Alexandre Oliva  <oliva@adacore.com>
4780         * ipa-modref.c (analyze_function): Skip debug stmts.
4781         * tree-inline.c (estimate_num_insn): Consider builtins even
4782         without a cgraph_node.
4784 2021-08-27  Jeff Law  <jlaw@localhost.localdomain>
4786         * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
4787         * config/h8300/h8300.c (h8300_expand_branch): Remove function.
4788         * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
4789         * config/h8300/h8300.md (eqne): New code iterator.
4790         (geultu, geultu_to_c): Similarly.
4791         * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
4792         (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
4793         (cmp<mode>_c): New pattern
4795 2021-08-27  Jeff Law  <jlaw@localhost.localdomain>
4797         * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
4798         function.
4799         (dom_opt_dom_walker::optimize_stmt): Use it.
4801 2021-08-27  Iain Sandoe  <iain@sandoe.co.uk>
4803         * config/darwin.c (finalize_ctors): Add a section-start linker-
4804         visible symbol.
4805         (finalize_dtors): Likewise.
4806         * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
4808 2021-08-27  Bill Schmidt  <wschmidt@linux.ibm.com>
4810         * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
4811         (rs6000_init_builtins): Call rs6000_init_generated_builtins.  Skip the
4812         old initialization logic when new builtins are enabled.
4813         * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
4814         rs6000_autoinit_builtins to rs6000_init_generated_builtins.
4815         (write_init_file): Likewise.
4817 2021-08-27  Iain Sandoe  <iain@sandoe.co.uk>
4819         * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
4820         gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
4821         (amdgcn-* | gcn-*) Likewise.
4823 2021-08-27  Anthony Sharp  <anthonysharp15@gmail.com>
4825         * symbol-summary.h: Added missing template keyword.
4827 2021-08-27  Richard Biener  <rguenther@suse.de>
4829         PR tree-optimization/45178
4830         * tree-ssa-dce.c (find_obviously_necessary_stmts): For
4831         infinite loops without exit do not mark control dependent
4832         edges of the latch necessary.
4834 2021-08-27  konglin1  <lingling.kong@intel.com>
4836         PR target/101472
4837         * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
4838         UNSPEC_VSIBADDR.
4839         (<avx512>scattersi<mode>): Likewise.
4840         (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
4841         (*avx512f_scatterdi<VI48F:mode>): Likewise
4843 2021-08-27  Kewen Lin  <linkw@linux.ibm.com>
4845         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
4846         support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
4847         MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
4848         P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
4849         P10_BUILTIN_PEXTD on Power10.
4851 2021-08-27  Kewen Lin  <linkw@linux.ibm.com>
4853         * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
4854         signedness for some Power10 bifs.
4856 2021-08-27  David Edelsohn  <dje.gcc@gmail.com>
4858         PR target/102068
4859         * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
4860         computed alignment if the entire struct has attribute packed.
4862 2021-08-27  liuhongt  <hongtao.liu@intel.com>
4864         PR target/98167
4865         PR target/43147
4866         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
4867         IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
4868         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
4869         IX86_BUILTIN_SHUFPS256.
4870         (ix86_masked_all_ones): New function.
4872 2021-08-26  Uroš Bizjak  <ubizjak@gmail.com>
4874         * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
4875         (conditional moves with memory inputs splitters): Ditto.
4876         * config/i386/sse.md (one_cmpl<mode>2): Simplify.
4878 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
4880         * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
4881         search after merging.
4883 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
4885         * config/rs6000/rs6000-overload.def: Add remaining overloads.
4887 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
4889         * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
4891 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
4893         * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
4894         crypto, and htm stanzas.
4896 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
4898         * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
4900 2021-08-26  Martin Sebor  <msebor@redhat.com>
4902         * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
4903         (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
4904         (warn_uninitialized_vars): Same.  Reduce visibility of locals.
4905         (warn_uninitialized_phi): Same.
4907 2021-08-26  Roger Sayle  <roger@nextmovesoftware.com>
4909         * tree-ssa-ccp.c (get_individual_bits): Helper function to
4910         extract the individual bits from a widest_int constant (mask).
4911         (gray_code_bit_flips): New read-only table for effiently
4912         enumerating permutations/combinations of bits.
4913         (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
4914         by unknown counts that are guaranteed less than the target
4915         precision and four or fewer unknown bits by enumeration.
4916         [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
4917         enumeration under the same conditions.  Handle remaining
4918         shifts as a mask based upon the minimum possible shift value.
4920 2021-08-26  Roger Sayle  <roger@nextmovesoftware.com>
4921             Richard Biener  <rguenther@suse.de>
4923         * match.pd (shift transformations): Remove a redundant
4924         !POINTER_TYPE_P check.
4926 2021-08-26  Uroš Bizjak  <ubizjak@gmail.com>
4928         PR target/102057
4929         * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
4930         Set all_regs to true in the call to replace_rtx.
4932 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
4934         * ipa-modref-tree.c (test_insert_search_collapse): Update test.
4935         * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
4936         hiting --param modref-max-refs limit.
4937         (modref_tree:insert_base): Be smarter when hitting
4938         --param modref-max-bases limit. Add new parameter REF.
4939         (modref_tree:insert): Update.
4940         (modref_tree:merge): Update.
4941         * ipa-modref.c (read_modref_records): Update.
4943 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
4945         * params.opt: (modref-max-adjustments): Add full stop.
4947 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
4949         * ipa-modref-tree.h (modref_ref_node::verify): New member
4950         functoin.
4951         (modref_ref_node::insert): Use it.
4952         (modref_ref_node::try_mere_with): Fix off by one error.
4954 2021-08-26  Martin Liska  <mliska@suse.cz>
4955             Stefan Kneifel  <stefan.kneifel@bluewin.ch>
4957         * cgraph.h (create_version_clone_with_body): Add new parameter.
4958         * cgraphclones.c: Likewise.
4959         * multiple_target.c (create_dispatcher_calls): Do not use
4960         numbered suffixes.
4961         (create_target_clone): Likewise here.
4963 2021-08-26  Jonathan Yong  <10walls@gmail.com>
4965         * doc/extend.texi: Add note about reserved priorities
4966         to the constructor attribute.
4968 2021-08-25  Martin Sebor  <msebor@redhat.com>
4970         * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
4971         range table header alone.
4972         * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
4974 2021-08-25  Jan Hubicka  <hubicka@ucw.cz>
4976         * doc/invoke.texi: Document --param modref-max-adjustments.
4977         * ipa-modref-tree.c (test_insert_search_collapse): Update.
4978         (test_merge): Update.
4979         * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
4980         (modref_access_node::operator==): Fix handling of access ranges.
4981         (modref_access_node::contains): Constify parameter; handle also
4982         mismatched parm offsets.
4983         (modref_access_node::update): New function.
4984         (modref_access_node::merge): New function.
4985         (unspecified_modref_access_node): Update constructor.
4986         (modref_ref_node::insert_access): Add record_adjustments parameter;
4987         handle merging.
4988         (modref_ref_node::try_merge_with): New private function.
4989         (modref_tree::insert): New record_adjustments parameter.
4990         (modref_tree::merge): New record_adjustments parameter.
4991         (modref_tree::copy_from): Update.
4992         * ipa-modref.c (dump_access): Dump adjustments field.
4993         (get_access): Update constructor.
4994         (record_access): Update call of insert.
4995         (record_access_lto): Update call of insert.
4996         (merge_call_side_effects): Add record_adjustments parameter.
4997         (get_access_for_fnspec): Update.
4998         (process_fnspec): Update.
4999         (analyze_call): Update.
5000         (analyze_function): Update.
5001         (read_modref_records): Update.
5002         (ipa_merge_modref_summary_after_inlining): Update.
5003         (propagate_unknown_call): Update.
5004         (modref_propagate_in_scc): Update.
5005         * params.opt (param-max-modref-adjustments=): New.
5007 2021-08-25  Michael Meissner  <meissner@linux.ibm.com>
5009         * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
5010         UNSPEC_XXSPLTID.
5011         (xxspltiw_v4si): Use vecperm type attribute.
5012         (xxspltiw_v4si_inst): Use vecperm type attribute.
5013         (xxspltiw_v4sf_inst): Likewise.
5014         (xxspltidp_v2df): Use vecperm type attribute.  Use
5015         UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
5016         (xxspltidp_v2df_inst): Likewise.
5017         (xxsplti32dx_v4si): Use vecperm type attribute.
5018         (xxsplti32dx_v4si_inst): Likewise.
5019         (xxsplti32dx_v4sf_inst): Likewise.
5020         (xxblend_<mode>): Likewise.
5021         (xxpermx): Likewise.
5022         (xxpermx_inst): Likewise.
5023         (xxeval): Likewise.
5025 2021-08-25  Lewis Hyatt  <lhyatt@gmail.com>
5027         PR other/93067
5028         * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
5029         * diagnostic.c (diagnostic_initialize_input_context): New function.
5030         * diagnostic.h (diagnostic_initialize_input_context): Declare.
5031         * input.c (default_charset_callback): New function.
5032         (file_cache::initialize_input_context): New function.
5033         (file_cache_slot::create): Added ability to convert the input
5034         according to the input context.
5035         (file_cache::file_cache): Initialize the new input context.
5036         (class file_cache_slot): Added new m_alloc_offset member.
5037         (file_cache_slot::file_cache_slot): Initialize the new member.
5038         (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
5039         (file_cache_slot::maybe_grow): Likewise.
5040         (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
5041         (file_cache_slot::get_next_line): Likewise.
5042         * input.h (class file_cache): Added input context member.
5044 2021-08-25  Richard Biener  <rguenther@suse.de>
5046         PR tree-optimization/102046
5047         * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
5048         update ->any_pattern when swapping operands.
5050 2021-08-25  Hongyu Wang  <hongyu.wang@intel.com>
5052         PR target/101716
5053         * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
5054         (ix86_decompose_address): Remove retval check for ASHIFT,
5055         allow non-canonical zero extend if AND mask covers ASHIFT
5056         count.
5057         (ix86_legitimate_address_p): Adjust condition for decompose.
5058         (ix86_rtx_costs): Adjust cost for lea with non-canonical
5059         zero-extend.
5060         Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
5062 2021-08-25  Jiufu Guo  <guojiufu@linux.ibm.com>
5064         PR tree-optimization/101145
5065         * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
5066         New function.
5067         (number_of_iterations_lt): Invoke above function.
5068         (adjust_cond_for_loop_until_wrap):
5069         Merge to number_of_iterations_until_wrap.
5070         (number_of_iterations_cond): Update invokes for
5071         adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
5073 2021-08-25  konglin1  <lingling.kong@intel.com>
5075         PR target/101471
5076         * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
5077         macro define in O0.
5078         (_mm512_mask_fpclass_ps_mask): Ditto.
5080 2021-08-25  Kewen Lin  <linkw@linux.ibm.com>
5082         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
5083         (vec_unpacku_hi_v8hi): Likewise.
5084         (vec_unpacku_lo_v16qi): Likewise.
5085         (vec_unpacku_lo_v8hi): Likewise.
5086         (vec_unpacku_hi_<VP_small_lc>): New define_expand.
5087         (vec_unpacku_lo_<VP_small_lc>): Likewise.
5089 2021-08-24  David Edelsohn  <dje.gcc@gmail.com>
5091         * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
5092         * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
5093         * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
5094         * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
5096 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
5098         PR middle-end/102031
5099         * simplify-rtx.c (simplify_truncation): When comparing precisions
5100         use "subreg_prec" variable, not "subreg_mode".
5102 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
5104         * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
5105         stanzas.
5107 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
5109         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
5110         various pointer type nodes.
5111         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
5112         values for various pointer types.
5113         (ptr_V16QI_type_node): New macro.
5114         (ptr_V1TI_type_node): New macro.
5115         (ptr_V2DI_type_node): New macro.
5116         (ptr_V2DF_type_node): New macro.
5117         (ptr_V4SI_type_node): New macro.
5118         (ptr_V4SF_type_node): New macro.
5119         (ptr_V8HI_type_node): New macro.
5120         (ptr_unsigned_V16QI_type_node): New macro.
5121         (ptr_unsigned_V1TI_type_node): New macro.
5122         (ptr_unsigned_V8HI_type_node): New macro.
5123         (ptr_unsigned_V4SI_type_node): New macro.
5124         (ptr_unsigned_V2DI_type_node): New macro.
5125         (ptr_bool_V16QI_type_node): New macro.
5126         (ptr_bool_V8HI_type_node): New macro.
5127         (ptr_bool_V4SI_type_node): New macro.
5128         (ptr_bool_V2DI_type_node): New macro.
5129         (ptr_bool_V1TI_type_node): New macro.
5130         (ptr_pixel_type_node): New macro.
5131         (ptr_intQI_type_node): New macro.
5132         (ptr_uintQI_type_node): New macro.
5133         (ptr_intHI_type_node): New macro.
5134         (ptr_uintHI_type_node): New macro.
5135         (ptr_intSI_type_node): New macro.
5136         (ptr_uintSI_type_node): New macro.
5137         (ptr_intDI_type_node): New macro.
5138         (ptr_uintDI_type_node): New macro.
5139         (ptr_intTI_type_node): New macro.
5140         (ptr_uintTI_type_node): New macro.
5141         (ptr_long_integer_type_node): New macro.
5142         (ptr_long_unsigned_type_node): New macro.
5143         (ptr_float_type_node): New macro.
5144         (ptr_double_type_node): New macro.
5145         (ptr_long_double_type_node): New macro.
5146         (ptr_dfloat64_type_node): New macro.
5147         (ptr_dfloat128_type_node): New macro.
5148         (ptr_ieee128_type_node): New macro.
5149         (ptr_ibm128_type_node): New macro.
5150         (ptr_vector_pair_type_node): New macro.
5151         (ptr_vector_quad_type_node): New macro.
5152         (ptr_long_long_integer_type_node): New macro.
5153         (ptr_long_long_unsigned_type_node): New macro.
5155 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
5157         * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
5158         and power9-64 stanzas.
5160 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
5161             Tom de Vries  <tdevries@suse.de>
5163         * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
5164         * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
5165         * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
5166         a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
5167         * config/nvptx/t-nvptx (nvptx-c.o): New rule.
5168         * config/nvptx/nvptx-c.c: New source file.
5169         (nvptx_cpu_cpp_builtins): Move implementation here.
5171 2021-08-24  Martin Sebor  <msebor@redhat.com>
5173         PR middle-end/101600
5174         PR middle-end/101977
5175         * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
5176         the phrasing of a warning.
5177         (check_access): Use the remaining size after subtracting any offset
5178         rather than the whole object size.
5179         * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
5180         clear for any nonnull PHI argument.
5181         (compute_objsize): Clear argument.
5183 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
5185         * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
5187 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
5189         * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
5190         stanzas.
5192 2021-08-24  Andrew MacLeod  <amacleod@redhat.com>
5194         * value-relation.cc (rr_transitive_table): New.
5195         (relation_transitive): New.
5196         (value_relation::swap): Remove.
5197         (value_relation::apply_transitive): New.
5198         (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
5199         (relation_oracle::register_relation): Call register_transitives.
5200         (relation_oracle::register_transitives): New.
5201         * value-relation.h (relation_oracle): Add new temporary bitmap and
5202         methods.
5204 2021-08-24  H.J. Lu  <hjl.tools@gmail.com>
5206         PR target/102021
5207         * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
5208         from integer to a pseudo vector register.
5210 2021-08-24  Richard Biener  <rguenther@suse.de>
5212         PR tree-optimization/100089
5213         * tree-vectorizer.h (vect_slp_bb): Rename to ...
5214         (vect_slp_if_converted_bb): ... this and get the original
5215         loop as new argument.
5216         * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
5217         pass original loop to vect_slp_if_converted_bb.
5218         * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
5219         If orig_loop was passed scan the not vectorized stmts
5220         for COND_EXPRs and force not profitable if found.
5221         (vect_slp_region): Pass down all SLP instances to costing
5222         if orig_loop was specified.
5223         (vect_slp_bbs): Pass through orig_loop.
5224         (vect_slp_bb): Rename to ...
5225         (vect_slp_if_converted_bb): ... this and get the original
5226         loop as new argument.
5227         (vect_slp_function): Adjust.
5229 2021-08-24  Richard Earnshaw  <rearnsha@arm.com>
5231         PR target/102035
5232         * config/arm/arm.md (attribute arch): Add fix_vlldm.
5233         (arch_enabled): Use it.
5234         * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
5235         use when erratum mitigation is needed.
5237 2021-08-24  Richard Earnshaw  <rearnsha@arm.com>
5239         PR target/102035
5240         * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
5241         * doc/invoke.texi (Arm Options): Document it.
5242         * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
5243         (ALL_QUIRKS): Add quirk_vlldm.
5244         (cortex-m33): Add quirk_vlldm.
5245         (cortex-m35p, cortex-m55): Likewise.
5246         * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
5247         targetting an affected CPU and not explicitly controlled on
5248         the command line.
5250 2021-08-24  Richard Earnshaw  <rearnsha@arm.com>
5252         * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
5253         (lazy_load_multiple_insn): Likewise.
5255 2021-08-24  liuhongt  <hongtao.liu@intel.com>
5257         PR target/101989
5258         * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
5259         Enable avx512 embedded broadcast.
5260         (*<avx512>_vternlog<mode>_all): Ditto.
5261         (<avx512>_vternlog<mode>_mask): Ditto.
5263 2021-08-24  liuhongt  <hongtao.liu@intel.com>
5265         PR target/101989
5266         * config/i386/i386.c (ix86_rtx_costs): Define cost for
5267         UNSPEC_VTERNLOG.
5268         * config/i386/i386.h (STRIP_UNARY): New macro.
5269         * config/i386/predicates.md (reg_or_notreg_operand): New
5270         predicate.
5271         * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
5272         (*<avx512>_vternlog<mode>_1): New pre_reload
5273         define_insn_and_split.
5274         (*<avx512>_vternlog<mode>_2): Ditto.
5275         (*<avx512>_vternlog<mode>_3): Ditto.
5276         (any_logic1,any_logic2): New code iterator.
5277         (logic_op): New code attribute.
5278         (ternlogsuffix): Extend to VNxDF and VNxSF.
5280 2021-08-24  Richard Biener  <rguenther@suse.de>
5282         * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
5283         * params.opt (--param vect-inner-loop-cost-factor): Adjust
5284         maximum value.
5285         * tree-vect-loop.c (vect_analyze_loop_form): Initialize
5286         inner_loop_cost_factor to the minimum of the estimated number
5287         of iterations of the inner loop and vect-inner-loop-cost-factor.
5289 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
5290             Richard Biener  <rguenther@suse.de>
5292         * config/i386/i386-features.c (compute_convert_gain): Provide
5293         more accurate values for CONST_INT, when optimizing for size.
5294         * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
5295         * config/i386/i386.h (COSTS_N_BYTES): to here.
5297 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
5298             Jakub Jelinek  <jakub@redhat.com>
5300         PR middle-end/102029
5301         * match.pd (shift transformations): Add an additional check for
5302         !POINTER_TYPE_P in the recently added left shift transformation.
5304 2021-08-24  liuhongt  <hongtao.liu@intel.com>
5306         PR tree-optimization/100089
5307         * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
5308         loop vectorizer when cost model is very-cheap.
5310 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
5312         * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
5313         asprintf, which is not available on AIX.
5315 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
5317         * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
5318         * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
5320 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
5322         * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
5323         * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
5324         last.
5325         * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
5326         (rbtree.o): Likewise.
5327         (rs6000-gen-builtins): Likewise.
5328         (rs6000-builtins.c): Likewise.
5329         (rs6000-builtins.h): Likewise.
5330         (rs6000.o): Add dependency.
5331         (EXTRA_HEADERS): Add rs6000-vecdefines.h.
5332         (rs6000-vecdefines.h): New target.
5333         (rs6000-builtins.o): Likewise.
5334         (rs6000-call.o): Add rs6000-builtins.h as a dependency.
5335         (rs6000-c.o): Likewise.
5337 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
5339         PR target/101830
5340         * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
5341         Diagnose buffer overrun.
5342         (safe_inc_pos): Fix overrun detection.
5343         (match_identifier): Diagnose buffer overrun.
5344         (match_integer): Likewise.
5345         (match_to_right_bracket): Likewise.
5347 2021-08-23  Jan Hubicka  <hubicka@ucw.cz>
5349         * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
5350         Improve range compare.
5351         (modref_access_node::contains): New member function.
5352         (modref_access_node::search): Remove.
5353         (modref_access_node::insert): Be smarter about subaccesses.
5355 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
5357         * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
5358         <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
5359         * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
5360         Add "intel_mic".
5362 2021-08-23  Jeff Law  <jlaw@localhost.localdomain>
5364         * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
5365         argument.
5366         * config/h8300/jumpcall.md (call, call_value): Restrict to
5367         !SIBLING_CALL_P cases.
5368         (subcall, sibcall_value): New patterns & expanders.
5369         * config/h8300/proepi.md (epilogue): Pass new argument to
5370         h8300_expand_epilogue.
5371         (sibcall_epilogue): New expander.
5372         * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
5373         epilogues too.
5374         (h8300_ok_for_sibcall_p): New function.
5375         (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
5377 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
5379         * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
5380         Handle case where the operand is already the desired mode.
5382 2021-08-23  Richard Biener  <rguenther@suse.de>
5384         PR ipa/97565
5385         * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
5386         in addition to has_gimple_body.
5388 2021-08-23  Jan Hubicka  <hubicka@ucw.cz>
5390         PR middle-end/101949
5391         * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
5392         EAF_NOCLOBBER
5394 2021-08-23  Martin Liska  <mliska@suse.cz>
5396         * doc/invoke.texi: Put the option out of -mxl-mode-app-model
5397         table.
5399 2021-08-23  Richard Biener  <rguenther@suse.de>
5401         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
5402         Properly scale the inner loop cost only once.
5404 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
5406         * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
5407         Provide bounds for unsigned (and signed with non-negative operands)
5408         division and modulus.
5410 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
5412         * simplify-rtx.c (simplify_truncation): Generalize simplification
5413         of (truncate:A (subreg:B X)).
5414         (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
5415         SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
5416         already has the desired machine mode.
5417         (test_scalar_int_ops): Add tests that useless extensions and
5418         truncations are optimized away.
5419         (test_scalar_int_ext_ops): New self-test function to confirm
5420         that truncations of extensions are correctly simplified.
5421         (test_scalar_int_ext_ops2): New self-test function to check
5422         truncations of truncations, extensions of extensions, and
5423         truncations of extensions.
5424         (test_scalar_ops): Call the above two functions with a
5425         representative sampling of integer machine modes.
5427 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
5429         * match.pd (shift transformations): Change the sign of an
5430         LSHIFT_EXPR if it reduces the number of explicit conversions.
5432 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
5434         PR tree-optimization/86723
5435         * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
5436         cast64_to_32 argument, set *cast64_to_32 to false, unless n is
5437         non-memory permutation of 64-bit src which only has bytes of
5438         0 or [5..8] and n->range is 4.
5439         (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
5440         find_bswap_or_nop_finalize caller, support bswap with some bytes
5441         zeroed, as long as at least two bytes are not zeroed.
5442         (bswap_replace): Add mask argument and handle masking of bswap
5443         result.
5444         (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
5445         caller, punt if cast64_to_32 or mask is not all ones.
5446         (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
5447         caller, for now punt if cast64_to_32.
5449 2021-08-23  Richard Biener  <rguenther@suse.de>
5451         PR tree-optimization/79334
5452         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
5453         a type also for COMPONENT_REFs.
5454         (vn_reference_may_trap): Check ARRAY_REF with constant index
5455         against the array domain.
5457 2021-08-23  liuhongt  <hongtao.liu@intel.com>
5459         PR target/102016
5460         * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
5461         TARGET_AVX512BW to condition.
5463 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
5465         PR debug/101905
5466         * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
5467         register variables already during early_dwarf if possible.
5469 2021-08-23  Christophe Lyon  <christophe.lyon@foss.st.com>
5471         * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
5473 2021-08-23  Christophe Lyon  <christophe.lyon@foss.st.com>
5475         PR target/100856
5476         * config/arm/arm.opt: Fix typo.
5477         * config/arm/t-rmprofile: Fix typo.
5479 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
5481         * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
5482         (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
5483         * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
5484         case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
5485         * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
5486         if either grainsize or num_tasks clause has the strict modifier.
5488 2021-08-23  Martin Liska  <mliska@suse.cz>
5490         * dbgcnt.def (DEBUG_COUNTER): New counter.
5491         * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
5493 2021-08-23  Jan Hubicka  <hubicka@ucw.cz>
5495         * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
5497 2021-08-23  Xi Ruoyao  <xry111@mengyan1223.wang>
5499         PR target/101922
5500         * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
5501           Declare.
5502         * config/mips/mips.c (mips_msa_output_shift_immediate): New
5503           function.
5504         * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
5505           vlshr<mode>3): Call it.
5507 2021-08-22  Jan Hubicka  <hubicka@ucw.cz>
5508             Martin Liska  <mliska@suse.cz>
5510         PR middle-end/101949
5511         * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
5512         ~EAF_NOCLOBBER.
5514 2021-08-21  Dragan Mladjenovic  <OT_Dragan.Mladjenovic@mediatek.com>
5516         * config/mips/mips.c (mips_function_rodata_section,
5517         TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
5519 2021-08-21  John David Anglin  <danglin@gcc.gnu.org>
5521         * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
5523 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
5525         * configure.ac (thread-local storage support): Remove tls_first_major
5526         and tls_first_minor.  Use "$conftest_s" to check support.
5527         * configure: Regenerate.
5529 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
5531         * configure.ac: Fixup formatting.
5533 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
5535         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
5536         * configure.ac: ... update all callers.
5538 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
5540         PR target/91602
5541         * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
5542         (gcc_GAS_VERSION_GTE_IFELSE): Remove.
5543         (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
5544         * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
5545         Remove remaining checks for in-tree assembler.
5546         * configure: Regenerate.
5548 2021-08-20  Jeff Law  <jlaw@localhost.localdomain>
5550         * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
5551         by 15 bits for H8/300H and H8/S.  Improve logical shifts by 12
5552         bits for H8/S.
5553         (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
5554         H8/300H.  Improve arithmetic shift right by 15 bits for H8/S.
5555         Improve logical shifts by 27 bits for H8/S.
5556         (get_shift_alg): Corresponding changes.
5557         (h8300_option_override): Revert to loops for -Os when profitable.
5559 2021-08-20  Richard Biener  <rguenther@suse.de>
5561         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
5562         BBs.
5563         (vect_analyze_data_ref_accesses): Likewise.  Assign the BB
5564         index as group_id when dataref_groups were not computed.
5565         * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
5566         we advace to the next BB.
5568 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
5570         * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
5571         builtins.
5573 2021-08-20  Martin Liska  <mliska@suse.cz>
5575         PR gcov-profile/89961
5576         * gcov.c (make_gcov_file_name): Rewrite using std::string.
5577         (mangle_name): Simplify, do not used the second argument.
5578         (strip_extention): New function.
5579         (get_md5sum): Likewise.
5580         (get_gcov_intermediate_filename): Handle properly -p and -x
5581         options.
5582         (output_gcov_file): Use string type.
5583         (generate_results): Likewise.
5584         (md5sum_to_hex): Remove.
5586 2021-08-20  Michael Meissner  <meissner@linux.ibm.com>
5588         * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
5589         (UNSPEC_XXSPLTIW): Move to vsx.md.
5590         (UNSPEC_XXSPLTID): Move to vsx.md.
5591         (UNSPEC_XXSPLTI32DX): Move to vsx.md.
5592         (UNSPEC_XXBLEND): Move to vsx.md.
5593         (UNSPEC_XXPERMX): Move to vsx.md.
5594         (VM3): Move to vsx.md.
5595         (VM3_char): Move to vsx.md.
5596         (xxspltiw_v4si): Move to vsx.md.
5597         (xxspltiw_v4sf): Move to vsx.md.
5598         (xxspltiw_v4sf_inst): Move to vsx.md.
5599         (xxspltidp_v2df): Move to vsx.md.
5600         (xxspltidp_v2df_inst): Move to vsx.md.
5601         (xxsplti32dx_v4si_inst): Move to vsx.md.
5602         (xxsplti32dx_v4sf): Move to vsx.md.
5603         (xxsplti32dx_v4sf_inst): Move to vsx.md.
5604         (xxblend_<mode>): Move to vsx.md.
5605         (xxpermx): Move to vsx.md.
5606         (xxpermx_inst): Move to vsx.md.
5607         * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
5608         (UNSPEC_XXSPLTIW): Move from altivec.md.
5609         (UNSPEC_XXSPLTID): Move from altivec.md.
5610         (UNSPEC_XXSPLTI32DX): Move from altivec.md.
5611         (UNSPEC_XXBLEND): Move from altivec.md.
5612         (UNSPEC_XXPERMX): Move from altivec.md.
5613         (VM3): Move from altivec.md.
5614         (VM3_char): Move from altivec.md.
5615         (xxspltiw_v4si): Move from altivec.md.
5616         (xxspltiw_v4sf): Move from altivec.md.
5617         (xxspltiw_v4sf_inst): Move from altivec.md.
5618         (xxspltidp_v2df): Move from altivec.md.
5619         (xxspltidp_v2df_inst): Move from altivec.md.
5620         (xxsplti32dx_v4si_inst): Move from altivec.md.
5621         (xxsplti32dx_v4sf): Move from altivec.md.
5622         (xxsplti32dx_v4sf_inst): Move from altivec.md.
5623         (xxblend_<mode>): Move from altivec.md.
5624         (xxpermx): Move from altivec.md.
5625         (xxpermx_inst): Move from altivec.md.
5627 2021-08-19  Roger Sayle  <roger@nextmovesoftware.com>
5629         * tree-vect-generic.c (expand_vector_operations_1): Use either
5630         gimplify_build1 or gimplify_build2 instead of gimple_build_assign
5631         when constructing scalar splat expressions.
5633 2021-08-19  Peter Bergner  <bergner@linux.ibm.com>
5635         PR target/101849
5636         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
5637         pointer to __vector_pair *.
5639 2021-08-19  Martin Sebor  <msebor@redhat.com>
5641         * gimple-range.cc: Add comments.
5642         * gimple-range.h: Same.
5644 2021-08-19  Martin Sebor  <msebor@redhat.com>
5646         PR middle-end/101984
5647         * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
5648         disable_ranger.
5650 2021-08-19  Jeff Law  <jlaw@localhost.localdomain>
5652         * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
5653         (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
5654         * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
5656 2021-08-19  Jakub Jelinek  <jakub@redhat.com>
5658         PR middle-end/101950
5659         * optabs.c (expand_clrsb_using_clz): New function.
5660         (expand_unop): Use it as another clrsb expansion fallback.
5662 2021-08-19  liuhongt  <hongtao.liu@intel.com>
5664         Revert:
5665         2021-07-28  liuhongt  <hongtao.liu@intel.com>
5667         PR target/99881
5668         * config/i386/i386.h (processor_costs): Add new member
5669         integer_to_sse.
5670         * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
5671         i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
5672         geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
5673         bdver_cost, znver1_cost, znver2_cost, znver3_cost,
5674         btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
5675         nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
5676         generic_cost, core_cost): Initialize integer_to_sse same value
5677         as sse_op.
5678         (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
5679         * config/i386/i386.c (ix86_builtin_vectorization_cost):
5680         Use integer_to_sse instead of sse_op to calculate the cost of
5681         vec_construct.
5683 2021-08-18  Iain Sandoe  <iain@sandoe.co.uk>
5685         * config.gcc: Include rpath.opt for Darwin.
5686         * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
5688 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
5690         PR bootstrap/101959
5691         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
5692         Use an 'int_hash'.
5694 2021-08-18  Jonathan Wright  <jonathan.wright@arm.com>
5696         * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
5697         pattern and type cast.
5698         (vld4_lane_f32): Use float RTL pattern.
5699         (vld4q_lane_f64): Use float type cast.
5701 2021-08-18  Jan Hubicka  <hubicka@ucw.cz>
5703         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
5704         EAF_NOREAD.
5706 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
5708         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
5709         (test_map_of_type_with_ctor_and_dtor_expand): Add function.
5710         (hash_map_tests_c_tests): Call it.
5712 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
5714         * ggc.h (enum ggc_collect): New.
5715         (ggc_collect): Use it.
5716         * ggc-page.c: Adjust.
5717         * ggc-common.c: Likewise.
5718         * ggc-tests.c: Likewise.
5719         * read-rtl-function.c: Likewise.
5720         * selftest-run-tests.c: Likewise.
5721         * doc/gty.texi (Invoking the garbage collector): Likewise.
5723 2021-08-18  liuhongt  <hongtao.liu@intel.com>
5725         PR target/97147
5726         * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
5727         New macro.
5728         * config/i386/sse.md (*sse3_haddv2df3_low): Add
5729         TARGET_V2DF_REDUCTION_PREFER_HADDPD.
5730         (*sse3_hsubv2df3_low): Ditto.
5731         * config/i386/x86-tune.def
5732         (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
5734 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
5736         * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
5737         (gori_compute::compute_operand_range): Add tracing.
5738         (gori_compute::logical_combine): Ditto.
5739         (gori_compute::compute_logical_operands): Ditto.
5740         (gori_compute::compute_operand1_range): Ditto.
5741         (gori_compute::compute_operand2_range): Ditto.
5742         (gori_compute::outgoing_edge_range_p): Ditto.
5743         * gimple-range-gori.h (class gori_compute): Add range_tracer.
5745 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
5747         * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
5748         * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
5749         * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
5750         * params.opt (--param=evrp-mode): Adjust options.
5752 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
5754         * Makefile.in (OBJS): Add gimple-range-trace.o.
5755         * gimple-range-cache.h (enable_new_values): Remove unused prototype.
5756         * gimple-range-fold.cc: Adjust headers.
5757         * gimple-range-trace.cc: New.
5758         * gimple-range-trace.h: New.
5759         * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
5760         (gimple_ranger::range_of_expr): Add tracing.
5761         (gimple_ranger::range_on_entry): Ditto.
5762         (gimple_ranger::range_on_exit): Ditto.
5763         (gimple_ranger::range_on_edge): Ditto.
5764         (gimple_ranger::fold_range_internal): Ditto.
5765         (gimple_ranger::dump_bb): Do not calculate edge range twice.
5766         (trace_ranger::*): Remove.
5767         (enable_ranger): Never create a trace_ranger.
5768         (debug_seed_ranger): Move to gimple-range-trace.cc.
5769         (dump_ranger): Ditto.
5770         (debug_ranger): Ditto.
5771         * gimple-range.h: Include gimple-range-trace.h.
5772         (range_on_entry, range_on_exit): No longer virtual.
5773         (class trace_ranger): Remove.
5774         (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
5776 2021-08-17  Martin Sebor  <msebor@redhat.com>
5778         PR middle-end/101854
5779         * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
5780         in gimple-ssa-warn-access.cc.
5781         * calls.c (alloc_max_size): Move code to check_alloca.
5782         (get_size_range): Move to pointer-query.cc.
5783         (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
5784         (get_attr_nonstring_decl): Move to tree.c.
5785         (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
5786         (append_attrname): Same.
5787         (maybe_warn_rdwr_sizes): Same.
5788         (initialize_argument_information): Move code to
5789         gimple-ssa-warn-access.cc.
5790         * calls.h (maybe_warn_alloc_args_overflow): Move to
5791         gimple-ssa-warn-access.h.
5792         (get_attr_nonstring_decl): Move to tree.h.
5793         (maybe_warn_nonstring_arg):  Move to gimple-ssa-warn-access.h.
5794         (enum size_range_flags): Move to pointer-query.h.
5795         (get_size_range): Same.
5796         * gimple-ssa-warn-access.cc (has_location): Remove unused overload
5797         to avoid Clang -Wunused-function.
5798         (get_size_range): Declare static.
5799         (maybe_emit_free_warning): Rename...
5800         (maybe_check_dealloc_call): ...to this for consistency.
5801         (class pass_waccess): Add members.
5802         (pass_waccess::~pass_waccess): Defined.
5803         (alloc_max_size): Move here from calls.c.
5804         (maybe_warn_alloc_args_overflow): Same.
5805         (check_alloca): New function.
5806         (check_alloc_size_call): New function.
5807         (check_strncat): Handle another warning flag.
5808         (pass_waccess::check_builtin): Handle alloca.
5809         (fntype_argno_type): Move here from calls.c.
5810         (append_attrname): Same.
5811         (maybe_warn_rdwr_sizes): Same.
5812         (pass_waccess::check_call): Define.
5813         (check_nonstring_args): New function.
5814         (pass_waccess::check): Call new member functions.
5815         (pass_waccess::execute): Enable ranger.
5816         * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
5817         (maybe_warn_nonstring_arg): Same.
5818         * gimple-ssa-warn-restrict.c: Remove #include.
5819         * pointer-query.cc (get_size_range): Move here from calls.c.
5820         * pointer-query.h (enum size_range_flags): Same.
5821         (get_size_range): Same.
5822         * tree.c (get_attr_nonstring_decl): Move here from calls.c.
5823         * tree.h (get_attr_nonstring_decl): Move here from calls.h.
5825 2021-08-17  Thomas Schwinge  <thomas@codesourcery.com>
5827         * ggc.h (ggc_collect): Add 'force_collect' parameter.
5828         * ggc-page.c (ggc_collect): Use that one instead of global
5829         'ggc_force_collect'.  Adjust all users.
5830         * doc/gty.texi (Invoking the garbage collector): Update.
5831         * ggc-internal.h (ggc_force_collect): Remove.
5832         * ggc-common.c (ggc_force_collect): Likewise.
5833         * selftest.h (forcibly_ggc_collect): Remove.
5834         * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
5835         * read-rtl-function.c (test_loading_labels): Adjust.
5836         * selftest-run-tests.c (run_tests): Likewise.
5838 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
5840         * config/darwin.c (darwin_file_end): Reset and reclaim the
5841         section names table at the end of compile.
5843 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
5845         PR target/100340
5846         * config.in: Regenerate.
5847         * config/i386/darwin.h (EXTRA_ASM_OPTS): New
5848         (ASM_SPEC): Pass options to disable branch shortening where
5849         needed.
5850         * configure: Regenerate.
5851         * configure.ac: Detect versions of 'as' that support the
5852         optimisation which has the bug.
5854 2021-08-17  Richard Biener  <rguenther@suse.de>
5856         * optabs-query.c (supports_vec_gather_load_p): Also check
5857         for masked optabs.
5858         (supports_vec_scatter_store_p): Likewise.
5859         * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
5860         back to masked variants if non-masked are not supported.
5861         * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
5862         When we need to use masked gather/scatter but do not have
5863         a mask set up a constant true one.
5864         * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
5865         non-SSA_NAME masks.
5867 2021-08-17  Roger Sayle  <roger@nextmovesoftware.com>
5869         * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
5870         algorithm as PLUS_EXPR to improve subtraction bit bounds.
5871         [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
5873 2021-08-17  Roger Sayle  <roger@nextmovesoftware.com>
5875         * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
5876         calculate the mask-value pair result of a multiplication by an
5877         unsigned constant.
5878         (bit_value_binop) [MULT_EXPR]:  Call it from here for
5879         multiplications by (sparse) non-negative constants.
5881 2021-08-17  Christophe Lyon  <christophe.lyon@foss.st.com>
5883         PR target/100896
5884         * config.gcc (gcc_cv_initfini_array): Leave undefined for
5885         uclinuxfdpiceabi targets.
5887 2021-08-17  Alexandre Oliva  <oliva@adacore.com>
5889         * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
5890         reverse debug stmts.
5892 2021-08-17  Alexandre Oliva  <oliva@adacore.com>
5894         * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
5896 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
5898         * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
5899         (__LD4Q_LANE_FUNC): Likewise.
5900         (vld4_lane_u8): Define without macro.
5901         (vld4_lane_u16): Likewise.
5902         (vld4_lane_u32): Likewise.
5903         (vld4_lane_u64): Likewise.
5904         (vld4_lane_s8): Likewise.
5905         (vld4_lane_s16): Likewise.
5906         (vld4_lane_s32): Likewise.
5907         (vld4_lane_s64): Likewise.
5908         (vld4_lane_f16): Likewise.
5909         (vld4_lane_f32): Likewise.
5910         (vld4_lane_f64): Likewise.
5911         (vld4_lane_p8): Likewise.
5912         (vld4_lane_p16): Likewise.
5913         (vld4_lane_p64): Likewise.
5914         (vld4q_lane_u8): Likewise.
5915         (vld4q_lane_u16): Likewise.
5916         (vld4q_lane_u32): Likewise.
5917         (vld4q_lane_u64): Likewise.
5918         (vld4q_lane_s8): Likewise.
5919         (vld4q_lane_s16): Likewise.
5920         (vld4q_lane_s32): Likewise.
5921         (vld4q_lane_s64): Likewise.
5922         (vld4q_lane_f16): Likewise.
5923         (vld4q_lane_f32): Likewise.
5924         (vld4q_lane_f64): Likewise.
5925         (vld4q_lane_p8): Likewise.
5926         (vld4q_lane_p16): Likewise.
5927         (vld4q_lane_p64): Likewise.
5928         (vld4_lane_bf16): Likewise.
5929         (vld4q_lane_bf16): Likewise.
5931 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
5933         * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
5934         (__LD3Q_LANE_FUNC): Delete.
5935         (vld3_lane_u8): Define without macro.
5936         (vld3_lane_u16): Likewise.
5937         (vld3_lane_u32): Likewise.
5938         (vld3_lane_u64): Likewise.
5939         (vld3_lane_s8): Likewise.
5940         (vld3_lane_s16): Likewise.
5941         (vld3_lane_s32): Likewise.
5942         (vld3_lane_s64): Likewise.
5943         (vld3_lane_f16): Likewise.
5944         (vld3_lane_f32): Likewise.
5945         (vld3_lane_f64): Likewise.
5946         (vld3_lane_p8): Likewise.
5947         (vld3_lane_p16): Likewise.
5948         (vld3_lane_p64): Likewise.
5949         (vld3q_lane_u8): Likewise.
5950         (vld3q_lane_u16): Likewise.
5951         (vld3q_lane_u32): Likewise.
5952         (vld3q_lane_u64): Likewise.
5953         (vld3q_lane_s8): Likewise.
5954         (vld3q_lane_s16): Likewise.
5955         (vld3q_lane_s32): Likewise.
5956         (vld3q_lane_s64): Likewise.
5957         (vld3q_lane_f16): Likewise.
5958         (vld3q_lane_f32): Likewise.
5959         (vld3q_lane_f64): Likewise.
5960         (vld3q_lane_p8): Likewise.
5961         (vld3q_lane_p16): Likewise.
5962         (vld3q_lane_p64): Likewise.
5963         (vld3_lane_bf16): Likewise.
5964         (vld3q_lane_bf16): Likewise.
5966 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
5968         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
5969         (__LD2Q_LANE_FUNC): Likewise.
5970         (vld2_lane_u8): Define without macro.
5971         (vld2_lane_u16): Likewise.
5972         (vld2_lane_u32): Likewise.
5973         (vld2_lane_u64): Likewise.
5974         (vld2_lane_s8): Likewise.
5975         (vld2_lane_s16): Likewise.
5976         (vld2_lane_s32): Likewise.
5977         (vld2_lane_s64): Likewise.
5978         (vld2_lane_f16): Likewise.
5979         (vld2_lane_f32): Likewise.
5980         (vld2_lane_f64): Likewise.
5981         (vld2_lane_p8): Likewise.
5982         (vld2_lane_p16): Likewise.
5983         (vld2_lane_p64): Likewise.
5984         (vld2q_lane_u8): Likewise.
5985         (vld2q_lane_u16): Likewise.
5986         (vld2q_lane_u32): Likewise.
5987         (vld2q_lane_u64): Likewise.
5988         (vld2q_lane_s8): Likewise.
5989         (vld2q_lane_s16): Likewise.
5990         (vld2q_lane_s32): Likewise.
5991         (vld2q_lane_s64): Likewise.
5992         (vld2q_lane_f16): Likewise.
5993         (vld2q_lane_f32): Likewise.
5994         (vld2q_lane_f64): Likewise.
5995         (vld2q_lane_p8): Likewise.
5996         (vld2q_lane_p16): Likewise.
5997         (vld2q_lane_p64): Likewise.
5998         (vld2_lane_bf16): Likewise.
5999         (vld2q_lane_bf16): Likewise.
6001 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
6003         * haifa-sched.c (advance_one_cycle): Output more context-synchronization
6004         lines for diff.
6006 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
6008         * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
6009         (rank_for_schedule): Use it.
6011 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
6013         PR rtl-optimization/91598
6014         * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
6015         insns after memory reads and before memory writes.
6017 2021-08-17  Alistair_Lee  <alistair.lee@arm.com>
6019         * rtl.h (CONST_VECTOR_P): New macro.
6020         * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
6021         code testing macros.
6022         (aarch64_ptrue_all_mode): Likewise.
6023         (aarch64_expand_mov_immediate): Likewise.
6024         (aarch64_const_vec_all_in_range_p): Likewise.
6025         (aarch64_rtx_costs): Likewise.
6026         (aarch64_legitimate_constant_p): Likewise.
6027         (aarch64_simd_valid_immediate): Likewise.
6028         (aarch64_simd_make_constant): Likewise.
6029         (aarch64_convert_mult_to_shift): Likewise.
6030         (aarch64_expand_sve_vec_perm): Likewise.
6031         (aarch64_vec_fpconst_pow_of_2): Likewise.
6033 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
6035         PR tree-optimization/101938
6036         * range-op.cc (operator_abs::op1_range): Special case
6037         -TYPE_MIN_VALUE for flag_wrapv.
6039 2021-08-17  Kewen Lin  <linkw@linux.ibm.com>
6041         * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
6042         value extraction.
6044 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
6046         * tree.def (OMP_SCOPE): New tree code.
6047         * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
6048         * tree-nested.c (convert_nonlocal_reference_stmt,
6049         convert_local_reference_stmt, convert_gimple_call): Handle
6050         GIMPLE_OMP_SCOPE.
6051         * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
6052         * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
6053         * gimple.c (gimple_build_omp_scope): New function.
6054         (gimple_copy): Handle GIMPLE_OMP_SCOPE.
6055         * gimple.h (gimple_build_omp_scope): Declare.
6056         (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
6057         (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
6058         gimple_omp_scope_set_clauses): New inline functions.
6059         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
6060         * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
6061         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
6062         * gimple-walk.c (walk_gimple_stmt): Likewise.
6063         * gimple-low.c (lower_stmt): Likewise.
6064         * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
6065         (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
6066         like ORT_WORKSHARE constructs.  Adjust diagnostics for %<scope%>
6067         allowing task reductions.  Reject inscan reductions on scope.
6068         (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
6069         (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
6070         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
6071         (estimate_num_insns): Likewise.
6072         * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
6073         contexts if var isn't privatized there.
6074         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
6075         (scan_omp_1_stmt): Likewise.
6076         (maybe_add_implicit_barrier_cancel): Look through outer
6077         scope constructs.
6078         (lower_omp_scope): New function.
6079         (lower_omp_task_reductions): Handle OMP_SCOPE.
6080         (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
6081         (diagnose_sb_1, diagnose_sb_2): Likewise.
6082         * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
6083         (expand_omp): Handle GIMPLE_OMP_SCOPE.
6084         (omp_make_gimple_edges): Likewise.
6085         * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
6087 2021-08-17  Richard Biener  <rguenther@suse.de>
6089         PR tree-optimization/101925
6090         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
6091         reverse on COMPONENT_REF and ARRAY_REF according to
6092         what reverse_storage_order_for_component_p does.
6093         (vn_reference_eq): Compare reversed on reference ops.
6094         (reverse_storage_order_for_component_p): New overload.
6095         (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
6096         on the reference looked up.
6098 2021-08-17  Jeff Law  <jlaw@localhost.localdomain>
6100         * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
6101         shifts on the H8/S.
6102         (h8300_option_override): Use loops on H8/S more often when optimizing
6103         for size.
6104         (get_shift_alg): Handle new "special" cases on H8/S.  Simplify
6105         accordingly.  Handle various arithmetic right shifts with special
6106         sequences that we couldn't handle before.
6108 2021-08-16  Jeff Law  <jlaw@localhost.localdomain>
6110         * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
6112 2021-08-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6114         * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
6115         * config/sparc/sparc.c (sparc_gcov_type_size): New.
6116         (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
6117         * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
6118         * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
6119         * doc/tm.texi.in: Regenerate.
6120         * target.def (gcov_type_size): New target hook.
6121         * targhooks.c (default_gcov_type_size): New.
6122         * targhooks.h (default_gcov_type_size): Declare.
6123         * tree-profile.c (gimple_gen_edge_profiler): Use precision of
6124         gcov_type_node.
6125         (gimple_gen_time_profiler): Likewise.
6127 2021-08-16  Eric Botcazou  <ebotcazou@gcc.gnu.org>
6129         * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
6131 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
6133         PR middle-end/101931
6134         * omp-low.c (omp_runtime_api_call): Update for routines
6135         added in the meanwhile.
6137 2021-08-16  Martin Liska  <mliska@suse.cz>
6139         PR tree-optimization/100393
6140         * tree-switch-conversion.c (group_cluster::dump): Use
6141           get_comparison_count.
6142         (jump_table_cluster::find_jump_tables): Pre-compute number of
6143         comparisons and then decrement it. Cache also max_ratio.
6144         (jump_table_cluster::can_be_handled): Change signature.
6145         * tree-switch-conversion.h (get_comparison_count): New.
6147 2021-08-16  Eric Botcazou  <ebotcazou@gcc.gnu.org>
6149         * dwarf2out.c (add_data_member_location_attribute): Use GNAT
6150         encodings only when -fgnat-encodings=all is specified.
6151         (add_bound_info): Likewise.
6152         (add_byte_size_attribute): Likewise.
6153         (gen_member_die): Likewise.
6155 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
6157         * omp-oacc-neuter-broadcast.cc
6158         (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
6160 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
6162         * omp-oacc-neuter-broadcast.cc
6163         (execute_omp_oacc_neuter_broadcast): Clarify memory management for
6164         'prop_set'.
6166 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
6168         * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
6169         (execute_omp_oacc_neuter_broadcast): ... here.
6170         (install_var_field, build_receiver_ref, build_sender_ref): Take
6171         'field_map_t *' parameter.  Adjust all users.
6172         (worker_single_copy, neuter_worker_single): Take a
6173         'record_field_map_t *' parameter.  Adjust all users.
6175 2021-08-16  liuhongt  <hongtao.liu@intel.com>
6177         PR target/101930
6178         * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
6179         reg.
6181 2021-08-16  Martin Liska  <mliska@suse.cz>
6183         PR ipa/101726
6184         * multiple_target.c (create_dispatcher_calls): Make default
6185           function local only if it is a definition.
6187 2021-08-16  Martin Liska  <mliska@suse.cz>
6189         PR ipa/100600
6190         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
6191           consider equal SSA_NAMEs when one is a param.
6193 2021-08-16  liuhongt  <hongtao.liu@intel.com>
6195         PR target/101846
6196         * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
6197         Support vpermi2b for V32QI/V16QImode.
6198         (ix86_extract_perm_from_pool_constant): New function.
6199         (ix86_expand_vec_one_operand_perm_avx512): Support
6200         vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
6201         (expand_vec_perm_1): Adjust comments for upper.
6202         * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
6203         New declare.
6204         * config/i386/predicates.md (permvar_truncate_operand): New predicate.
6205         (pshufb_truncv4siv4hi_operand): Ditto.
6206         (pshufb_truncv8hiv8qi_operand): Ditto.
6207         * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
6208         New pre_reload define_insn_and_split.
6209         (*avx512f_permvar_truncv8siv8hi_1): Ditto.
6210         (*avx512f_vpermvar_truncv8div8si_1): Ditto.
6211         (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
6212         (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
6213         (*avx512f_permvar_truncv4div4si_1): Ditto.
6214         (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
6215         (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
6216         (*avx512f_pshufd_truncv2div2si_1): Ditto.
6218 2021-08-16  Kito Cheng  <kito.cheng@sifive.com>
6220         * config/riscv/multilib-generator: Support code model option for
6221         multi-lib.
6222         * doc/install.texi: Add document of new option for
6223         --with-multilib-generator.
6225 2021-08-15  Clément Chigot  <clement.chigot@atos.net>
6227         * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
6228         (rs6000_legitimize_tls_address_aix): Use it.
6229         (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
6230         xcoff_tls_exec_model_detected is true.
6232 2021-08-15  Jeff Law  <jlaw@localhost.localdomain>
6234         * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
6235         to allow a bit more code growth, saving many dozens of cycles.
6236         (h8300_option_override): Adjus shift_alg_si if optimizing for
6237         code size.
6238         (get_shift_alg): Use special + inline shifts for residuals
6239         in more cases.
6241 2021-08-14  Stafford Horne  <shorne@gmail.com>
6243         PR target/99783
6244         * config/or1k/or1k-opts.h: New file.
6245         * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
6246         Support generating gotha relocations if -mcmodel=large is
6247         specified.
6248         * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
6249         New macros.
6250         * config/or1k/or1k.opt (mcmodel=): New option.
6251         * doc/invoke.texi (OpenRISC Options): Document mcmodel.
6253 2021-08-14  Martin Sebor  <msebor@redhat.com>
6255         PR middle-end/101791
6256         * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
6257         to valid_new_delete_pair_p.
6258         * tree.c (valid_new_delete_pair_p): Add argument.
6259         * tree.h (valid_new_delete_pair_p): Same.
6261 2021-08-14  Jakub Jelinek  <jakub@redhat.com>
6263         PR target/101896
6264         * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
6265         <case E_V64QImode>: For this mode assert
6266         !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
6268 2021-08-13  Michael Meissner  <meissner@linux.ibm.com>
6270         PR target/99921
6271         * config/rs6000/altivec.md (xxeval): Use register_predicate
6272         instead of altivec_register_predicate.
6274 2021-08-13  Martin Sebor  <msebor@redhat.com>
6276         PR middle-end/101734
6277         * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
6278         (maybe_warn_operand): Call it.
6280 2021-08-13  Martin Liska  <mliska@suse.cz>
6282         PR ipa/101354
6283         * attribs.c (decl_attributes): Make naked functions "noipa"
6284           functions.
6286 2021-08-13  Martin Liska  <mliska@suse.cz>
6288         PR ipa/101261
6289         * symtab.c (symtab_node::noninterposable_alias): Do not create
6290           local aliases for target_clone functions as the clonning pass
6291           rejects aliases.
6293 2021-08-13  Martin Liska  <mliska@suse.cz>
6295         * opts.c (LIVE_PATCHING_OPTION): Define.
6296         (control_options_for_live_patching): Use it in error messages.
6298 2021-08-13  Jan Hubicka  <hubicka@ucw.cz>
6300         * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
6301         (implicit_const_eaf_flags, implicit_pure_eaf_flags,
6302          ignore_stores_eaf_flags): New constants.
6303         (remove_useless_eaf_flags): New function.
6304         (eaf_flags_useful_p): Use it.
6305         (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
6306         handle EAF_NOREAD.
6307         (modref_lattice::init): Add EAF_NOREAD.
6308         (modref_lattice::add_escape_point): Do not reacord escape point if
6309         result is unused.
6310         (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
6311         use remove_useless_eaf_flags.
6312         (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
6313         (modref_lattice::merge_direct_load): Add EAF_NOREAD
6314         (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
6315         (analyze_parms): Use remove_useless_eaf_flags.
6316         (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
6317         (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
6318         use remove_useless_eaf_flags.
6319         (modref_propagate_flags_in_scc): Update.
6320         * ipa-modref.h: Turn eaf_flags_t back to char.
6321         * tree-core.h (EAF_NOT_RETURNED): Fix.
6322         (EAF_NOREAD): New constant
6323         * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
6324         EAF_NOREAD.
6325         * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
6326         (handle_pure_call): Likewise.
6328 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
6330         * tree.def (OMP_MASKED): New tree code.
6331         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
6332         * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
6333         OMP_CLAUSE_FILTER_EXPR): Define.
6334         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
6335         (omp_clause_code_name): Likewise.
6336         (walk_tree_1): Handle OMP_CLAUSE_FILTER.
6337         * tree-nested.c (convert_nonlocal_omp_clauses,
6338         convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
6339         (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
6340         convert_gimple_call): Handle GIMPLE_OMP_MASTER.
6341         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
6342         (dump_generic_node): Handle OMP_MASTER.
6343         * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
6344         * gimple.c (gimple_build_omp_masked): New function.
6345         (gimple_copy): Handle GIMPLE_OMP_MASKED.
6346         * gimple.h (gimple_build_omp_masked): Declare.
6347         (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
6348         (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
6349         gimple_omp_masked_set_clauses): New inline functions.
6350         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
6351         * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
6352         (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
6353         * gimple-walk.c (walk_gimple_stmt): Likewise.
6354         * gimple-low.c (lower_stmt): Likewise.
6355         * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
6356         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER.  For clauses
6357         that take one expression rather than decl or constant, force
6358         gimplification of that into a SSA_NAME or temporary unless min
6359         invariant.
6360         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
6361         (gimplify_expr): Handle OMP_MASKED.
6362         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
6363         (estimate_num_insns): Likewise.
6364         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
6365         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED.  Adjust
6366         diagnostics for existence of masked construct.
6367         (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
6368         diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
6369         * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
6370         Likewise.
6372 2021-08-12  Uroš Bizjak  <ubizjak@gmail.com>
6374         PR target/98309
6375         * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
6376         (ldexp<mode>3): Use avx512f_scalef<mode>2.
6377         (UNSPEC_SCALEF): Move from ...
6378         * config/i386/sse.md (UNSPEC_SCALEF): ... here.
6380 2021-08-12  Jan Hubicka  <hubicka@ucw.cz>
6382         * ipa-split.c (consider_split): Fix condition testing void functions.
6384 2021-08-12  Aldy Hernandez  <aldyh@redhat.com>
6386         * doc/invoke.texi: Remove docs for threader-mode param.
6387         * flag-types.h (enum threader_mode): Remove.
6388         * params.opt: Remove threader-mode param.
6389         * tree-ssa-threadbackward.c (class back_threader): Remove
6390         path_is_unreachable_p.
6391         Make find_paths private.
6392         Add maybe_thread and thread_through_all_blocks.
6393         Remove reference marker for m_registry.
6394         Remove reference marker for m_profit.
6395         (back_threader::back_threader): Adjust for registry and profit not
6396         being references.
6397         (dump_path): Move down.
6398         (debug): Move down.
6399         (class thread_jumps): Remove.
6400         (class back_threader_registry): Remove m_all_paths.
6401         Remove destructor.
6402         (thread_jumps::thread_through_all_blocks): Move to back_threader
6403         class.
6404         (fsm_find_thread_path): Remove
6405         (back_threader::maybe_thread): New.
6406         (back_threader::thread_through_all_blocks): Move from
6407         thread_jumps.
6408         (back_threader_registry::back_threader_registry): Remove
6409         m_all_paths.
6410         (back_threader_registry::~back_threader_registry): Remove.
6411         (thread_jumps::find_taken_edge): Remove.
6412         (thread_jumps::check_subpath_and_update_thread_path): Remove.
6413         (thread_jumps::maybe_register_path): Remove.
6414         (thread_jumps::handle_phi): Remove.
6415         (handle_assignment_p): Remove.
6416         (thread_jumps::handle_assignment): Remove.
6417         (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
6418         (thread_jumps::find_jump_threads_backwards): Remove.
6419         (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
6420         (try_thread_blocks): Rename find_jump_threads_backwards to
6421         maybe_thread.
6422         (pass_early_thread_jumps::execute): Same.
6424 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
6426         * tree-core.h (omp_clause_proc_bind_kind): Add
6427         OMP_CLAUSE_PROC_BIND_PRIMARY.
6428         * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
6429         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
6431 2021-08-12  Claudiu Zissulescu  <claziss@synopsys.com>
6433         * common/config/arc/arc-common.c (arc_option_init_struct): Remove
6434         fno-common reference.
6435         * config/arc/arc.c (arc_override_options): Remove overriding of
6436         flag_no_common.
6438 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
6440         PR target/101860
6441         * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
6442         If d->testing_p, return true after performing checks instead of
6443         actually expanding the insn.
6444         (expand_vec_perm_broadcast_1): Handle V32HImode - assert
6445         !TARGET_AVX512BW and return false.
6447 2021-08-12  Eric Botcazou  <ebotcazou@gcc.gnu.org>
6449         * configure.ac (PE linker --disable-dynamicbase support): New check.
6450         * configure: Regenerate.
6451         * config.in: Likewise.
6452         * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
6453         (LINK_SPEC): Use it.
6454         * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
6455         (LINK_SPEC): Likewise.
6457 2021-08-12  liuhongt  <hongtao.liu@intel.com>
6459         PR target/101846
6460         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
6461         post_reload define_insn_and_split.
6462         (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
6463         (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
6464         (*avx512f_zero_extendv16hiv16si2_2): Ditto.
6465         (*avx2_zero_extendv8hiv8si2_2): Ditto.
6466         (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
6467         (*avx512f_zero_extendv8siv8di2_2): Ditto.
6468         (*avx2_zero_extendv4siv4di2_2): Ditto.
6469         (*sse4_1_zero_extendv2siv2di2_4): Ditto.
6470         (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
6471         mode iterator.
6473 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
6475         * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
6476         power6 stanzas.
6478 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
6480         * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
6482 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
6484         * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
6485         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
6486         initialization of pcvoid_type_node here...
6487         (altivec_init_builtins): ...from here.
6488         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
6489         RS6000_BTI_const_ptr_void.
6490         (pcvoid_type_node): New macro.
6492 2021-08-11  Richard Biener  <rguenther@suse.de>
6494         PR target/101877
6495         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
6496         hard-register accesses.
6498 2021-08-11  Richard Biener  <rguenther@suse.de>
6500         * tree-ssa-operands.c (operands_scanner::get_expr_operands):
6501         Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
6502         to determine has_volatile_ops.
6504 2021-08-11  Eric Botcazou  <ebotcazou@gcc.gnu.org>
6506         * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
6508 2021-08-11  Jan Hubicka  <hubicka@ucw.cz>
6509             Alexandre Oliva  <oliva@adacore.com>
6511         * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
6512         dumping.
6513         (modref_lattice::merge_deref): Fix handling of indirect scape points.
6514         (update_escape_summary_1): Likewise.
6515         (update_escape_summary): Likewise.
6516         (ipa_merge_modref_summary_after_inlining): Likewise.
6518 2021-08-11  Richard Biener  <rguenther@suse.de>
6520         PR middle-end/101858
6521         * fold-const.c (fold_binary_loc): Guard simplification
6522         of  X < (cast) (1 << Y) to integer types.
6524 2021-08-11  Richard Biener  <rguenther@suse.de>
6526         PR tree-optimization/101861
6527         * tree-vect-stmts.c (vectorizable_load): Fix error in
6528         previous change with regard to gather vectorization.
6530 2021-08-11  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
6532         PR target/66791
6533         * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
6534         with constructor.
6535         (vdup_n_s16): Likewise.
6536         (vdup_n_s32): Likewise.
6537         (vdup_n_s64): Likewise.
6538         (vdup_n_u8): Likewise.
6539         (vdup_n_u16): Likewise.
6540         (vdup_n_u32): Likewise.
6541         (vdup_n_u64): Likewise.
6542         (vdup_n_p8): Likewise.
6543         (vdup_n_p16): Likewise.
6544         (vdup_n_p64): Likewise.
6545         (vdup_n_f16): Likewise.
6546         (vdup_n_f32): Likewise.
6547         (vdupq_n_s8): Likewise.
6548         (vdupq_n_s16): Likewise.
6549         (vdupq_n_s32): Likewise.
6550         (vdupq_n_s64): Likewise.
6551         (vdupq_n_u8): Likewise.
6552         (vdupq_n_u16): Likewise.
6553         (vdupq_n_u32): Likewise.
6554         (vdupq_n_u64): Likewise.
6555         (vdupq_n_p8): Likewise.
6556         (vdupq_n_p16): Likewise.
6557         (vdupq_n_p64): Likewise.
6558         (vdupq_n_f16): Likewise.
6559         (vdupq_n_f32): Likewise.
6560         (vmov_n_s8): Replace call to builtin with call to corresponding
6561         vdup_n intrinsic.
6562         (vmov_n_s16): Likewise.
6563         (vmov_n_s32): Likewise.
6564         (vmov_n_s64): Likewise.
6565         (vmov_n_u8): Likewise.
6566         (vmov_n_u16): Likewise.
6567         (vmov_n_u32): Likewise.
6568         (vmov_n_u64): Likewise.
6569         (vmov_n_p8): Likewise.
6570         (vmov_n_p16): Likewise.
6571         (vmov_n_f16): Likewise.
6572         (vmov_n_f32): Likewise.
6573         (vmovq_n_s8): Likewise.
6574         (vmovq_n_s16): Likewise.
6575         (vmovq_n_s32): Likewise.
6576         (vmovq_n_s64): Likewise.
6577         (vmovq_n_u8): Likewise.
6578         (vmovq_n_u16): Likewise.
6579         (vmovq_n_u32): Likewise.
6580         (vmovq_n_u64): Likewise.
6581         (vmovq_n_p8): Likewise.
6582         (vmovq_n_p16): Likewise.
6583         (vmovq_n_f16): Likewise.
6584         (vmovq_n_f32): Likewise.
6585         * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
6587 2021-08-11  liuhongt  <hongtao.liu@intel.com>
6589         PR target/98309
6590         * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
6591         when TARGET_AVX512F and TARGET_SSE_MATH.
6593 2021-08-10  Jakub Jelinek  <jakub@redhat.com>
6595         PR target/80355
6596         * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
6597         for V32HImode if !TARGET_AVX512BW.
6598         (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
6599         If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
6600         early, but actually check the permutation.
6602 2021-08-10  Richard Biener  <rguenther@suse.de>
6604         PR tree-optimization/101809
6605         * tree-vect-stmts.c (get_load_store_type): Allow emulated
6606         gathers with offset vector nunits being a constant multiple
6607         of the data vector nunits.
6608         (vect_get_gather_scatter_ops): Use the appropriate nunits
6609         for the offset vector defs.
6610         (vectorizable_store): Adjust call to
6611         vect_get_gather_scatter_ops.
6612         (vectorizable_load): Likewise.  Handle the case of less
6613         offset vectors than data vectors.
6615 2021-08-10  Jakub Jelinek  <jakub@redhat.com>
6617         PR target/80355
6618         * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
6619         *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
6620         patterns.
6622 2021-08-10  Richard Biener  <rguenther@suse.de>
6624         PR tree-optimization/101801
6625         PR tree-optimization/101819
6626         * tree-vectorizer.h (vect_emulated_vector_p): Declare.
6627         * tree-vect-loop.c (vect_emulated_vector_p): New function.
6628         (vectorizable_reduction): Re-instantiate a check for emulated
6629         operations.
6630         * tree-vect-stmts.c (vectorizable_shift): Likewise.
6631         (vectorizable_operation): Likewise.  Cost emulated vector
6632         operations according to the scalar sequence synthesized by
6633         vector lowering.
6635 2021-08-10  Richard Biener  <rguenther@suse.de>
6637         PR middle-end/101824
6638         * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
6639         volatile in case the variable was.
6641 2021-08-10  H.J. Lu  <hjl.tools@gmail.com>
6643         PR target/101804
6644         * config/i386/constraints.md (BC): Document for integer SSE
6645         constant all bits set operand.
6646         (BF): New constraint for const floating-point all bits set
6647         vectors.
6648         * config/i386/i386.c (standard_sse_constant_p): Likewise.
6649         (standard_sse_constant_opcode): Likewise.
6650         * config/i386/sse.md (sseconstm1): New mode attribute.
6651         (mov<mode>_internal): Replace BC with <sseconstm1>.
6653 2021-08-10  liuhongt  <hongtao.liu@intel.com>
6655         * config/i386/sse.md (cond_<insn><mode>): New expander.
6656         (VI248_AVX512VLBW): New mode iterator.
6657         * config/i386/predicates.md
6658         (nonimmediate_or_const_vec_dup_operand): New predicate.
6660 2021-08-09  Andrew MacLeod  <amacleod@redhat.com>
6662         PR tree-optimization/101741
6663         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
6664         type of parameter for toupper/tolower.
6666 2021-08-09  Martin Jambor  <mjambor@suse.cz>
6668         PR testsuite/101654
6669         * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
6671 2021-08-09  Pat Haugen  <pthaugen@linux.ibm.com>
6673         * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
6674         register.
6675         (is_store_insn1): Verify source is a register.
6677 2021-08-09  Uroš Bizjak  <ubizjak@gmail.com>
6679         PR target/101812
6680         * config/i386/mmx.md (<any_logic:code>v2sf3):
6681         Rename from *mmx_<any_logic:code>v2sf3
6683 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
6685         * config/nvptx/nvptx.c: Cross-reference parts adapted in
6686         'gcc/omp-oacc-neuter-broadcast.cc'.
6687         * omp-low.c: Likewise.
6688         * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
6689         the above files.
6691 2021-08-09  Julian Brown  <julian@codesourcery.com>
6692             Kwok Cheung Yeung  <kcy@codesourcery.com>
6693             Thomas Schwinge  <thomas@codesourcery.com>
6695         * config/gcn/gcn.c (gcn_init_builtins): Override decls for
6696         BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
6697         BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
6698         (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
6699         (gcn_fork_join): Update comment.
6700         * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
6701         (macc_experimental_workers): Remove unused option.
6703 2021-08-09  Julian Brown  <julian@codesourcery.com>
6704             Nathan Sidwell  <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
6705             Kwok Cheung Yeung  <kcy@codesourcery.com>
6706             Thomas Schwinge  <thomas@codesourcery.com>
6708         * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
6709         * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
6710         Add documentation hook.
6711         * doc/tm.texi: Regenerate.
6712         * omp-oacc-neuter-broadcast.cc: New file.
6713         * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
6714         (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
6715         (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
6716         * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
6717         * target.def (goacc.create_worker_broadcast_record): Add target
6718         hook.
6719         * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
6720         prototype.
6721         * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
6722         Rename prototype to...
6723         (gcn_goacc_create_worker_broadcast_record): ... this.
6724         * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
6725         function to...
6726         (gcn_goacc_create_worker_broadcast_record): ... this.
6727         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
6728         Rename to...
6729         (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
6731 2021-08-09  Tejas Belagod  <tejas.belagod@arm.com>
6733         PR target/101609
6734         * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
6735         the right iterator.
6737 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
6739         * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
6741 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
6743         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
6744         consider '-foffload-abi'.
6745         * common.opt (-foffload-abi): Remove 'Var', 'Init'.
6746         * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
6747         Ignore.
6749 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
6751         * optc-gen.awk: Sanity check that 'Init' doesn't appear without
6752         'Var'.
6754 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
6756         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
6758 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
6760         * doc/gty.texi (Files): Update.
6762 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
6764         * doc/gty.texi (Files): Fix GTY header file example.
6766 2021-08-09  Roger Sayle  <roger@nextmovesoftware.com>
6768         * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
6769         determine the upper and lower bounds from a mask-value pair.
6770         (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
6771         absolute value and unsigned absolute value expressions.
6772         (bit_value_binop):  Initialize *VAL's precision.
6773         [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
6774         upper and lower bounds of operands.  Add LE_EXPR/GE_EXPR
6775         support when the operands are unknown but potentially equal.
6776         [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
6778 2021-08-09  Bin Cheng  <bin.cheng@linux.alibaba.com>
6780         * config/aarch64/aarch64.md
6781         (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
6783 2021-08-08  Sergei Trofimovich  <siarheit@google.com>
6785         * lra-constraints.c: Fix s/otput/output/ typo.
6787 2021-08-06  Martin Sebor  <msebor@redhat.com>
6789         * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
6790         (expand_builtin_strcat): Same.
6791         (expand_builtin_stpncpy): Same.
6792         (expand_builtin_strncat): Same.
6793         (check_read_access): Same.
6794         (check_memop_access): Same.
6795         (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
6796         (expand_builtin_strnlen): Same.
6797         (expand_builtin_memcpy): Same.
6798         (expand_builtin_memmove): Same.
6799         (expand_builtin_mempcpy): Same.
6800         (expand_builtin_strcpy): Same.
6801         (expand_builtin_strcpy_args): Same.
6802         (expand_builtin_stpcpy_1): Same.
6803         (expand_builtin_strncpy): Same.
6804         (expand_builtin_memset): Same.
6805         (expand_builtin_bzero): Same.
6806         (expand_builtin_strcmp): Same.
6807         (expand_builtin_strncmp): Same.
6808         (expand_builtin): Remove handlers.
6809         (fold_builtin_strlen): Add a comment.
6810         * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
6811         * calls.c (maybe_warn_nonstring_arg): Same.
6812         * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
6813         * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
6814         (gimple_fold_builtin_stpcpy): Same.
6815         * gimple-ssa-warn-access.cc (has_location): New function.
6816         (get_location): Same.
6817         (get_callee_fndecl): Same.
6818         (call_nargs): Same.
6819         (call_arg): Same.
6820         (warn_string_no_nul): Define.
6821         (unterminated_array): Same.
6822         (check_nul_terminated_array): Same.
6823         (maybe_warn_nonstring_arg): Same.
6824         (maybe_warn_for_bound): Same.
6825         (warn_for_access): Same.
6826         (check_access): Same.
6827         (check_memop_access): Same.
6828         (check_read_access): Same.
6829         (warn_dealloc_offset): Use helper functions.
6830         (maybe_emit_free_warning): Same.
6831         (class pass_waccess): Add members.
6832         (check_strcat): New function.
6833         (check_strncat): New function.
6834         (check_stxcpy): New function.
6835         (check_stxncpy): New function.
6836         (check_strncmp): New function.
6837         (pass_waccess::check_builtin): New function.
6838         (pass_waccess::check): Call it.
6839         * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
6840         builtins.h.
6841         (maybe_warn_for_bound): Same.
6842         (check_access): Same.
6843         (check_memop_access): Same.
6844         (check_read_access): Same.
6845         * pointer-query.h (struct access_data): Define a ctor overload.
6847 2021-08-06  Richard Biener  <rguenther@suse.de>
6849         PR tree-optimization/101801
6850         * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
6851         (vect_can_vectorize_without_simd_p): ... to this.
6852         * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
6853         (vect_can_vectorize_without_simd_p): ... to this and fold
6854         in vect_min_worthwhile_factor.
6855         (vect_min_worthwhile_factor): Remove.
6856         (vectorizable_reduction): Adjust and remove the cost part.
6857         * tree-vect-stmts.c (vectorizable_shift): Likewise.
6858         (vectorizable_operation): Likewise.
6860 2021-08-06  Uroš Bizjak  <ubizjak@gmail.com>
6862         PR target/101797
6863         * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
6864         Add general_gr_operand predicate to operand 3.
6866 2021-08-06  Roger Sayle  <roger@nextmovesoftware.com>
6868         * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
6869         CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
6871 2021-08-06  Tamar Christina  <tamar.christina@arm.com>
6873         * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
6874         register_svprfop): Pass vec<> by pointer.
6875         * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
6876         * langhooks.c (lhd_simulate_enum_decl): Likewise.
6877         * langhooks.h (struct lang_hooks_for_types): Likewise.
6879 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
6881         * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
6882         __builtin_memcpy instead of constructing an additional
6883         __builtin_aarch64_simd_oi one vector at a time.
6884         (vst1q_bf16_x2): Likewise.
6885         (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
6886         an additional __builtin_aarch64_simd_ci one vector at a time.
6887         (vst1q_bf16_x3): Likewise.
6888         (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
6889         (vst1q_bf16_x4): Likewise.
6890         (vst2_bf16): Use __builtin_memcpy instead of constructing an
6891         additional __builtin_aarch64_simd_oi one vector at a time.
6892         (vst2q_bf16): Likewise.
6893         (vst3_bf16): Use __builtin_memcpy instead of constructing an
6894         additional __builtin_aarch64_simd_ci mode one vector at a
6895         time.
6896         (vst3q_bf16): Likewise.
6897         (vst4_bf16): Use __builtin_memcpy instead of constructing an
6898         additional __builtin_aarch64_simd_xi one vector at a time.
6899         (vst4q_bf16): Likewise.
6901 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
6903         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
6904         (__ST2Q_LANE_FUNC): Delete.
6905         (vst2_lane_f16): Use __builtin_memcpy to copy vector
6906         structure instead of constructing __builtin_aarch64_simd_oi
6907         one vector at a time.
6908         (vst2_lane_f32): Likewise.
6909         (vst2_lane_f64): Likewise.
6910         (vst2_lane_p8): Likewise.
6911         (vst2_lane_p16): Likewise.
6912         (vst2_lane_p64): Likewise.
6913         (vst2_lane_s8): Likewise.
6914         (vst2_lane_s16): Likewise.
6915         (vst2_lane_s32): Likewise.
6916         (vst2_lane_s64): Likewise.
6917         (vst2_lane_u8): Likewise.
6918         (vst2_lane_u16): Likewise.
6919         (vst2_lane_u32): Likewise.
6920         (vst2_lane_u64): Likewise.
6921         (vst2_lane_bf16): Likewise.
6922         (vst2q_lane_f16): Use __builtin_memcpy to copy vector
6923         structure instead of using a union.
6924         (vst2q_lane_f32): Likewise.
6925         (vst2q_lane_f64): Likewise.
6926         (vst2q_lane_p8): Likewise.
6927         (vst2q_lane_p16): Likewise.
6928         (vst2q_lane_p64): Likewise.
6929         (vst2q_lane_s8): Likewise.
6930         (vst2q_lane_s16): Likewise.
6931         (vst2q_lane_s32): Likewise.
6932         (vst2q_lane_s64): Likewise.
6933         (vst2q_lane_u8): Likewise.
6934         (vst2q_lane_u16): Likewise.
6935         (vst2q_lane_u32): Likewise.
6936         (vst2q_lane_u64): Likewise.
6937         (vst2q_lane_bf16): Likewise.
6939 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
6941         * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
6942         (__ST3Q_LANE_FUNC): Delete.
6943         (vst3_lane_f16): Use __builtin_memcpy to copy vector
6944         structure instead of constructing __builtin_aarch64_simd_ci
6945         one vector at a time.
6946         (vst3_lane_f32): Likewise.
6947         (vst3_lane_f64): Likewise.
6948         (vst3_lane_p8): Likewise.
6949         (vst3_lane_p16): Likewise.
6950         (vst3_lane_p64): Likewise.
6951         (vst3_lane_s8): Likewise.
6952         (vst3_lane_s16): Likewise.
6953         (vst3_lane_s32): Likewise.
6954         (vst3_lane_s64): Likewise.
6955         (vst3_lane_u8): Likewise.
6956         (vst3_lane_u16): Likewise.
6957         (vst3_lane_u32): Likewise.
6958         (vst3_lane_u64): Likewise.
6959         (vst3_lane_bf16): Likewise.
6960         (vst3q_lane_f16): Use __builtin_memcpy to copy vector
6961         structure instead of using a union.
6962         (vst3q_lane_f32): Likewise.
6963         (vst3q_lane_f64): Likewise.
6964         (vst3q_lane_p8): Likewise.
6965         (vst3q_lane_p16): Likewise.
6966         (vst3q_lane_p64): Likewise.
6967         (vst3q_lane_s8): Likewise.
6968         (vst3q_lane_s16): Likewise.
6969         (vst3q_lane_s32): Likewise.
6970         (vst3q_lane_s64): Likewise.
6971         (vst3q_lane_u8): Likewise.
6972         (vst3q_lane_u16): Likewise.
6973         (vst3q_lane_u32): Likewise.
6974         (vst3q_lane_u64): Likewise.
6975         (vst3q_lane_bf16): Likewise.
6977 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
6979         * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
6980         (__ST4Q_LANE_FUNC): Delete.
6981         (vst4_lane_f16): Use __builtin_memcpy to copy vector
6982         structure instead of constructing __builtin_aarch64_simd_xi
6983         one vector at a time.
6984         (vst4_lane_f32): Likewise.
6985         (vst4_lane_f64): Likewise.
6986         (vst4_lane_p8): Likewise.
6987         (vst4_lane_p16): Likewise.
6988         (vst4_lane_p64): Likewise.
6989         (vst4_lane_s8): Likewise.
6990         (vst4_lane_s16): Likewise.
6991         (vst4_lane_s32): Likewise.
6992         (vst4_lane_s64): Likewise.
6993         (vst4_lane_u8): Likewise.
6994         (vst4_lane_u16): Likewise.
6995         (vst4_lane_u32): Likewise.
6996         (vst4_lane_u64): Likewise.
6997         (vst4_lane_bf16): Likewise.
6998         (vst4q_lane_f16): Use __builtin_memcpy to copy vector
6999         structure instead of using a union.
7000         (vst4q_lane_f32): Likewise.
7001         (vst4q_lane_f64): Likewise.
7002         (vst4q_lane_p8): Likewise.
7003         (vst4q_lane_p16): Likewise.
7004         (vst4q_lane_p64): Likewise.
7005         (vst4q_lane_s8): Likewise.
7006         (vst4q_lane_s16): Likewise.
7007         (vst4q_lane_s32): Likewise.
7008         (vst4q_lane_s64): Likewise.
7009         (vst4q_lane_u8): Likewise.
7010         (vst4q_lane_u16): Likewise.
7011         (vst4q_lane_u32): Likewise.
7012         (vst4q_lane_u64): Likewise.
7013         (vst4q_lane_bf16): Likewise.
7015 2021-08-06  Martin Liska  <mliska@suse.cz>
7017         * config/rs6000/rs6000.c (rs6000_option_override_internal): When
7018         a target option is restored, it can have
7019         rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
7020         and error should not be emitted.
7022 2021-08-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7024         * gcov-io.h (gcov_write): Declare.
7025         * gcov-io.c (gcov_write): New.
7026         (gcov_write_counter): Remove.
7027         (gcov_write_tag_length): Likewise.
7028         (gcov_write_summary): Replace gcov_write_tag_length() with calls to
7029         gcov_write_unsigned().
7030         * doc/invoke.texi (fprofile-info-section): Mention
7031         __gcov_info_to_gdca().
7033 2021-08-06  Martin Sebor  <msebor@redhat.com>
7035         * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
7036         arguments to by-reference.
7037         (iterate_fix_dominators): Same.
7038         * dominance.h (iterate_fix_dominators): Same.
7039         * ipa-prop.h: Call auto_vec::to_vec_legacy.
7040         * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
7041         arguments to by-reference.
7042         (debug_data_dependence_relation): Same.
7043         (dump_data_dependence_relations): Same.
7044         * tree-data-ref.h (debug_data_dependence_relation): Same.
7045         (dump_data_dependence_relations): Same.
7046         * tree-predcom.c (dump_chains): Same.
7047         (initialize_root_vars_lm): Same.
7048         (determine_unroll_factor): Same.
7049         (replace_phis_by_defined_names): Same.
7050         (insert_init_seqs): Same.
7051         (pcom_worker::tree_predictive_commoning_loop): Call
7052          auto_vec::to_vec_legacy.
7053         * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
7054         arguments to by-reference.
7055         * tree-ssa-threadbackward.c (populate_worklist): Same.
7056         (back_threader::resolve_def): Same.
7057         * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
7058         (vect_enhance_data_refs_alignment): Same.
7059         (vect_check_lower_bound): Same.
7060         (vect_prune_runtime_alias_test_list): Same.
7061         (vect_permute_store_chain): Same.
7062         * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
7063         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
7064         * tree-vectorizer.h (vect_permute_store_chain): Same.
7065         * vec.c (test_init): New function.
7066         (vec_c_tests): Call new function.
7067         * vec.h (vec): Declare ctors, dtor, and assignment.
7068         (auto_vec::vec_to_legacy): New function.
7069         (vec::copy): Adjust initialization.
7071 2021-08-05  H.J. Lu  <hjl.tools@gmail.com>
7073         PR target/99744
7074         * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
7075         callee only uses GPRs.
7076         * config/i386/ia32intrin.h: Revert commit 5463cee2770.
7077         * config/i386/serializeintrin.h: Revert commit 71958f740f1.
7078         * config/i386/x86gprintrin.h: Add
7079         #pragma GCC target("general-regs-only") and #pragma GCC pop_options
7080         to disable non-GPR ISAs.
7082 2021-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7084         PR middle-end/101787
7085         * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
7087 2021-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7089         * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
7090         (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
7091         (vect_is_extending_load, vect_is_integer_truncation): New functions,
7092         moved from aarch64.c but given different names.
7093         * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
7094         (aarch64_is_reduction, aarch64_reduc_type)
7095         (aarch64_embedded_comparison_type, aarch64_comparison_type)
7096         (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
7097         in favor of the above.  Update callers accordingly.
7099 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
7101         PR target/101723
7102         * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
7103         writing .cpu directive in asm output.
7104         * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
7105         (arm_last_printed_arch_string): Delete.
7106         (arm_last-printed_fpu_string): Delete.
7107         (arm_configure_build_target): If use of floating-point/SIMD is
7108         disabled, remove all fp/simd related features from the target ISA.
7109         (last_arm_targ_options): New variable.
7110         (arm_print_asm_arch_directives): Add new parameters.  Change order
7111         of emitted directives and handle all cases here.
7112         (arm_file_start): Always call arm_print_asm_arch_directives, move
7113         all generation of .arch/.arch_extension here.
7114         (arm_file_end): Call arm_print_asm_arch.
7115         (arm_declare_function_name): Call arm_print_asm_arch_directives
7116         instead of printing .arch/.fpu directives directly.
7118 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
7120         * config/arm/arm.c (arm_configure_build_target): Don't call
7121         arm_option_reconfigure_globals.
7122         (arm_option_restore): Call arm_option_reconfigure_globals after
7123         reconfiguring the target.
7124         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
7126 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
7128         * config/arm/arm.c (arm_configure_build_target): Ensure the target's
7129         arch_name is always set.
7131 2021-08-05  Jonathan Wright  <jonathan.wright@arm.com>
7133         * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
7134         of vec_select high-half from being added into Neon subtract
7135         cost.
7137 2021-08-05  Jonathan Wright  <jonathan.wright@arm.com>
7139         * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
7140         of vec_select high-half from being added into Neon add cost.
7142 2021-08-05  Kewen Lin  <linkw@linux.ibm.com>
7144         * cfgloop.h (loops_list::loops_list): Add one optional argument
7145         root and adjust accordingly, update loop tree walking and factor
7146         out to ...
7147         * cfgloop.c (loops_list::walk_loop_tree): ... this.  New function.
7149 2021-08-05  Eric Botcazou  <ebotcazou@gcc.gnu.org>
7151         PR tree-optimization/101626
7152         * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
7153         reverse scalar storage order on a pointer or vector component.
7155 2021-08-05  liuhongt  <hongtao.liu@intel.com>
7157         * config/i386/sse.md (cond_<code><mode>): New expander.
7159 2021-08-05  liuhongt  <hongtao.liu@intel.com>
7161         * config/i386/sse.md (cond_<code><mode>): New expander.
7163 2021-08-05  liuhongt  <hongtao.liu@intel.com>
7165         * config/i386/sse.md (cond_<code><mode>): New expander.
7167 2021-08-04  David Malcolm  <dmalcolm@redhat.com>
7169         PR analyzer/101570
7170         * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
7172 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
7174         PR target/101742
7175         * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
7176         only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
7178 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
7180         PR target/101772
7181         * config/i386/i386-expand.c (ix86_expand_vector_move): Call
7182         ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
7183         data with SSE register from one memory location to another.
7185 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
7187         * config/s390/s390.c (expand_perm_with_vpdi): New function.
7188         (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
7189         * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
7190         parameterized expander.
7191         (*vpdi4<mode>, @vpdi4<mode>): Likewise.
7193 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
7195         * config/s390/s390.c (MAX_VECT_LEN): Define macro.
7196         (struct expand_vec_perm_d): Define struct.
7197         (expand_perm_with_merge): New function.
7198         (vectorize_vec_perm_const_1): New function.
7199         (s390_vectorize_vec_perm_const): New function.
7200         (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
7202 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
7204         * config/s390/vector.md (V_HW_64): Remove mode iterator.
7205         (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
7206         * config/s390/vx-builtins.md
7207         (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
7208         V_HW_64.
7210 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
7212         * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
7213         definition.
7214         * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
7215         definitions.
7216         * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
7217         instead of an unspec.
7219 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
7221         * config/s390/s390-modes.def: Add more vector modes to support
7222         concatenation of two vectors.
7223         * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
7224         prototype.
7225         (s390_expand_merge): Likewise.
7226         * config/s390/s390.c (s390_expand_merge_perm_const): New function.
7227         (s390_expand_merge): New function.
7228         * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
7229         Remove constant definitions.
7230         * config/s390/vector.md (V_HW_2): Add mode iterators.
7231         (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
7232         (vec_2x_nelts, vec_2x_wide): New mode attributes.
7233         (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
7234         New pattern definitions.
7235         (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
7236         (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
7237         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
7238         (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
7239         vec merge.
7240         * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
7241         in vector.md.
7242         (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
7243         emit vec merge pattern.
7245 2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>
7247         * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
7248         Define.
7249         (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
7250         vec_select high-half from being added into Neon multiply
7251         cost.
7252         * rtlanal.c (vec_series_highpart_p): Define.
7253         * rtlanal.h (vec_series_highpart_p): Declare.
7255 2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>
7257         * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
7258         Define.
7259         (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
7260         vec_select cost from being added into Neon multiply cost.
7262 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
7264         * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
7265         which old_loop_vinfo is an epilogue loop that handles a constant
7266         number of iterations.
7268 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
7270         * tree-vect-loop.c (vect_analyze_loop): Print a dump message
7271         when a reanalyzed loop fails to be cheaper than the current
7272         main loop.
7274 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
7276         * config/aarch64/aarch64.c: Fix a typo.
7278 2021-08-04  Vincent Lefèvre  <vincent-gcc@vinc17.net>
7280         PR gcov-profile/101773
7281         * gcov-io.c (gcov_close): Check return code of a fclose.
7283 2021-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7285         PR ada/101575
7286         * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
7287         .file statement when needed.
7289 2021-08-04  Richard Biener  <rguenther@suse.de>
7291         * tree-vect-data-refs.c (vect_check_gather_scatter):
7292         Include widening conversions only when the result is
7293         still handed by native gather or the current offset
7294         size not already matches the data size.
7295         Also succeed analysis in case there's no native support,
7296         noted by a IFN_LAST ifn and a NULL decl.
7297         (vect_analyze_data_refs): Always consider gathers.
7298         * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
7299         Test for no IFN gather rather than decl gather.
7300         * tree-vect-stmts.c (vect_model_load_cost): Pass in the
7301         gather-scatter info and cost emulated gathers accordingly.
7302         (vect_truncate_gather_scatter_offset): Properly test for
7303         no IFN gather.
7304         (vect_use_strided_gather_scatters_p): Likewise.
7305         (get_load_store_type): Handle emulated gathers and its
7306         restrictions.
7307         (vectorizable_load): Likewise.  Emulate them by extracting
7308         scalar offsets, doing scalar loads and a vector construct.
7310 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
7312         PR target/101742
7313         * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
7314         argument to set m_max_size.
7315         (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
7316         (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
7317         (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
7319 2021-08-04  Roger Sayle  <roger@nextmovesoftware.com>
7320             Marc Glisse  <marc.glisse@inria.fr>
7322         * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
7323         (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
7324         tree_nonzero_bits to ensure that operands are bit-wise disjoint.
7326 2021-08-04  Richard Biener  <rguenther@suse.de>
7328         * tree-ssa-forwprop.c (pass_forwprop::execute): Split
7329         out code to decompose vector loads ...
7330         (optimize_vector_load): ... here.  Generalize it to
7331         handle intermediate widening and TARGET_MEM_REF loads
7332         and apply it to loads with a supported vector mode as well.
7334 2021-08-04  Richard Biener  <rguenther@suse.de>
7336         PR tree-optimization/101756
7337         * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
7338         the result of the reduction epilogue is compatible to the original
7339         scalar result.
7341 2021-08-04  liuhongt  <hongtao.liu@intel.com>
7343         PR target/101743
7344         * config/i386/i386.md (peephole2): Refine predicate from
7345         register_operand to general_reg_operand.
7347 2021-08-04  Aldy Hernandez  <aldyh@redhat.com>
7349         * gimple-range-path.h (path_range_query::dump): Mark override.
7351 2021-08-04  Richard Biener  <rguenther@suse.de>
7353         PR tree-optimization/101769
7354         * tree-tailcall.c (eliminate_tail_call): Add the created loop
7355         for the first recursion and return it via the new output parameter.
7356         (optimize_tail_call): Pass through new output param.
7357         (tree_optimize_tail_calls_1): After creating all latches,
7358         add the created loop to the loop tree.  Do not mark loops for fixup.
7360 2021-08-04  Martin Liska  <mliska@suse.cz>
7362         * doc/invoke.texi: Document threader-mode param.
7364 2021-08-04  liuhongt  <hongtao.liu@intel.com>
7366         * config/i386/sse.md (cond_fma<mode>): New expander.
7367         (cond_fms<mode>): Ditto.
7368         (cond_fnma<mode>): Ditto.
7369         (cond_fnms<mode>): Ditto.
7371 2021-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
7373         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
7375 2021-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
7377         * config/rs6000/constraints.md: Remove "e" from the list of available
7378         constraint characters.
7380 2021-08-03  Eugene Rozenfeld  <erozen@microsoft.com>
7382         PR gcov-profile/71672
7383         * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
7385 2021-08-03  Paul A. Clarke  <pc@us.ibm.com>
7387         * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
7389 2021-08-03  H.J. Lu  <hjl.tools@gmail.com>
7391         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
7392         try XMM31 to avoid vzeroupper.
7394 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
7396         * doc/invoke.texi: Document -mtune=neoverse-512tvb and
7397         -mcpu=neoverse-512tvb.
7398         * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
7399         * config/aarch64/aarch64-tune.md: Regenerate.
7400         * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
7401         (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
7402         (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
7403         (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
7404         (aarch64_adjust_body_cost): Likewise.
7406 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
7408         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
7409         record issue information for operations that occur in the
7410         innermost loop.
7412 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
7414         * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
7415         parameter.  Detect cases in which an Advanced SIMD MLA would almost
7416         certainly require a MOV.
7417         (aarch64_count_ops): Update accordingly.
7419 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
7421         * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
7422         function, split out from...
7423         (aarch64_detect_vector_stmt_subtype): ...here.
7424         (aarch64_add_stmt_cost): Treat extracting element 0 as free.
7426 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
7428         * config/aarch64/aarch64-protos.h (sve_vec_cost):
7429         Add gather_load_x32_cost and gather_load_x64_cost.
7430         * config/aarch64/aarch64.c (generic_sve_vector_cost)
7431         (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
7432         accordingly, using the values given by the scalar_load * number
7433         of elements calculation that we used previously.
7434         (aarch64_detect_vector_stmt_subtype): Use the new fields.
7436 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
7438         * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
7439         function, split out from...
7440         (aarch64_adjust_body_cost): ...here.
7442 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
7444         * config/aarch64/fractional-cost.h: New file.
7445         * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
7446         and cost_fraction.h.
7447         (vec_cost_fraction): New typedef.
7448         (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
7449         (aarch64_detect_vector_stmt_subtype): Likewise.
7450         (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
7451         (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
7452         for cycle counts.
7453         (aarch64_adjust_body_cost): Likewise.
7454         (aarch64_test_cost_fraction): New function.
7455         (aarch64_run_selftests): Call it.
7457 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
7459         * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
7460         into a bitmask.
7461         * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
7462         accordingly.
7463         (aarch64_estimated_poly_value): Likewise.  Use the least significant
7464         set bit for the minimum and likely values.  Use the most significant
7465         set bit for the maximum value.
7467 2021-08-03  liuhongt  <hongtao.liu@intel.com>
7469         * config/i386/sse.md (cond_<insn><mode>): New expander.
7470         (cond_mul<mode>): Ditto.
7472 2021-08-03  Kewen Lin  <linkw@linux.ibm.com>
7474         * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
7476 2021-08-03  liuhongt  <hongtao.liu@intel.com>
7478         * config/i386/sse.md (cond_<insn><mode>):New expander.
7479         (cond_mul<mode>): Ditto.
7480         (cond_div<mode>): Ditto.
7482 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
7484         * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
7485         check stack_realign_needed for stack realignment.
7486         (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
7487         than the largest integer supported by vector register.
7488         * config/i386/i386.h (MAX_MOVE_MAX): New.  Set to 64.
7489         (MOVE_MAX): Set to bytes of the largest integer supported by
7490         vector register.
7491         (STORE_MAX_PIECES): New.
7493 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
7495         * config/i386/i386-expand.c (ix86_expand_vector_move): Call
7496         ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
7497         data from one memory location to another.
7499 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
7501         PR middle-end/90773
7502         * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
7504 2021-08-02  Aldy Hernandez  <aldyh@redhat.com>
7506         PR tree-optimization/101724
7507         * params.opt: Remove --param=threader-iterative.
7508         * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
7509         iterative mode.
7511 2021-08-02  Tom de Vries  <tdevries@suse.de>
7513         PR middle-end/101665
7514         * doc/extend.texi (nonnull attribute): Improve documentation.
7516 2021-08-02  Andrew Pinski  <apinski@marvell.com>
7518         PR rtl-optimization/101683
7519         * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
7521 2021-08-02  Roger Sayle  <roger@nextmovesoftware.com>
7523         * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
7524         Renamed from cond_removal_in_popcount_clz_ctz_pattern.
7525         Add support for BSWAP, FFS, PARITY and CLRSB builtins.
7526         (tree_ssa_phiop_worker): Update call to function above.
7528 2021-08-01  H.J. Lu  <hjl.tools@gmail.com>
7530         PR target/78103
7531         * config/i386/i386.md (bsr_rex64_1_zext): New.
7532         (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
7533         with gen_bsr_rex64_1_zext.
7535 2021-07-31  Jakub Jelinek  <jakub@redhat.com>
7537         PR target/78103
7538         * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
7539         define_insn patterns.
7540         (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
7541         Add combine splitters for constant - clz.
7542         (clz<mode>2): Use a temporary pseudo for bsr result.
7544 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
7546         * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
7547         _mm_floor_sd, _mm_floor_ss): New.
7549 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
7551         * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
7552         _mm_ceil_sd, _mm_ceil_ss): New.
7554 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
7556         * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
7557         _mm_blend_ps, _mm_blendv_ps): New.
7559 2021-07-30  Roger Sayle  <roger@nextmovesoftware.com>
7560             Uroš Bizjak  <ubizjak@gmail.com>
7562         * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
7563         to generate a conditional move using the carry flag after sub $1.
7564         (peephole2): Eliminate a register-to-register move by inverting
7565         the condition of a conditional move.
7567 2021-07-30  Hans-Peter Nilsson  <hp@bitrange.com>
7569         * config/mmix/mmix.md ("call", "call_value", "*call_real")
7570         ("*call_value_real"): Don't generate rtx mentioning the generic
7571         operands 1 and 2 to "call", and similarly for "call_value".
7572         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
7573         (mmix_print_operand): Use '!' instead of 'p'.
7575 2021-07-30  Hans-Peter Nilsson  <hp@bitrange.com>
7577         * doc/md.texi (call): Correct information about operand 2.
7578         * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
7580 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
7582         * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
7584 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
7586         * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
7588 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
7590         * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
7591         const_basic_block..
7592         (*::get_bb_range): Ditto.
7593         (*::bb_range_p): Ditto.
7594         * gimple-range-cache.h: Change prototypes.
7596 2021-07-30  H.J. Lu  <hjl.tools@gmail.com>
7598         PR middle-end/90773
7599         * builtins.c (builtin_memcpy_read_str): Change the mode argument
7600         from scalar_int_mode to fixed_size_mode.
7601         (builtin_strncpy_read_str): Likewise.
7602         (gen_memset_value_from_prev): New function.
7603         (builtin_memset_read_str): Change the mode argument from
7604         scalar_int_mode to fixed_size_mode.  Use gen_memset_value_from_prev
7605         and support CONST_VECTOR.
7606         (builtin_memset_gen_str): Likewise.
7607         (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
7608         constfun.
7609         * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
7610         with fixed_size_mode.
7611         (builtin_memset_read_str): Likewise.
7612         * expr.c (widest_int_mode_for_size): Renamed to ...
7613         (widest_fixed_size_mode_for_size): Add a bool argument to
7614         indicate if QI vector mode can be used.
7615         (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
7616         instead of widest_int_mode_for_size.
7617         (pieces_addr::adjust): Change the mode argument from
7618         scalar_int_mode to fixed_size_mode.
7619         (op_by_pieces_d): Make m_len read-only.  Add a bool member,
7620         m_qi_vector_mode, to indicate that QI vector mode can be used.
7621         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
7622         initialize m_qi_vector_mode.  Call widest_fixed_size_mode_for_size
7623         instead of widest_int_mode_for_size.
7624         (op_by_pieces_d::get_usable_mode): Change the mode argument from
7625         scalar_int_mode to fixed_size_mode.  Call
7626         widest_fixed_size_mode_for_size instead of
7627         widest_int_mode_for_size.
7628         (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
7629         function to return the smallest integer or QI vector mode.
7630         (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
7631         instead of widest_int_mode_for_size.  Call
7632         smallest_fixed_size_mode_for_size instead of
7633         smallest_int_mode_for_size.
7634         (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
7635         indicate that QI vector mode can be used and pass it to
7636         op_by_pieces_d::op_by_pieces_d.
7637         (can_store_by_pieces): Call widest_fixed_size_mode_for_size
7638         instead of widest_int_mode_for_size.  Pass memsetp to
7639         widest_fixed_size_mode_for_size to support QI vector mode.
7640         Allow all CONST_VECTORs for memset if vec_duplicate is supported.
7641         (store_by_pieces): Pass memsetp to
7642         store_by_pieces_d::store_by_pieces_d.
7643         (clear_by_pieces_1): Removed.
7644         (clear_by_pieces): Replace clear_by_pieces_1 with
7645         builtin_memset_read_str and pass true to store_by_pieces_d to
7646         support vector mode broadcast.
7647         (string_cst_read_str): Change the mode argument from
7648         scalar_int_mode to fixed_size_mode.
7649         * expr.h (by_pieces_constfn): Change scalar_int_mode to
7650         fixed_size_mode.
7651         (by_pieces_prev): Likewise.
7652         * rtl.h (lowpart_subreg_regno): New.
7653         * rtlanal.c (lowpart_subreg_regno): New.  A wrapper around
7654         simplify_subreg_regno.
7655         * target.def (gen_memset_scratch_rtx): New hook.
7656         * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
7657         * doc/tm.texi: Regenerated.
7659 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
7661         PR target/94780
7662         * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
7663           TARGET_EXPR instead of MODIFY_EXPR.
7665 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
7667         PR target/101132
7668         * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
7669         * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
7670         * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
7671           expander.
7672           (vec_cmpu<IMSA:mode><mode_i>): New expander.
7674 2021-07-30  H.J. Lu  <hjl.tools@gmail.com>
7676         PR target/101685
7677         * config/i386/i386-options.c (ix86_option_override_internal):
7678         Don't enable LZCNT/POPCNT if they have been disabled explicitly.
7680 2021-07-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
7682         PR target/66791
7683         * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
7684         explicitly dereferencing __a.
7685         (vld1_s64): Likewise.
7686         (vld1_u64): Likewise.
7687         * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
7688         and change to VAR13.
7690 2021-07-30  Aldy Hernandez  <aldyh@redhat.com>
7692         * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
7693         use of m_range_analyzer.
7694         (loop_versioning::lv_dom_walker::before_dom_children): Same.
7695         (loop_versioning::lv_dom_walker::after_dom_children): Remove.
7696         (loop_versioning::prune_loop_conditions): Replace vr_values use
7697         with range_query interface.
7698         (pass_loop_versioning::execute): Use ranger.
7700 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
7702         PR ipa/101396
7703         * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
7704           enum values, and emit a warning if they mismatch.
7706 2021-07-30  Kewen Lin  <linkw@linux.ibm.com>
7708         * cfgloop.h (as_const): New function.
7709         (class loop_iterator): Rename to ...
7710         (class loops_list): ... this.
7711         (loop_iterator::next): Rename to ...
7712         (loops_list::Iter::fill_curr_loop): ... this and adjust.
7713         (loop_iterator::loop_iterator): Rename to ...
7714         (loops_list::loops_list): ... this and adjust.
7715         (loops_list::Iter): New class.
7716         (loops_list::iterator): New type.
7717         (loops_list::const_iterator): New type.
7718         (loops_list::begin): New function.
7719         (loops_list::end): Likewise.
7720         (loops_list::begin const): Likewise.
7721         (loops_list::end const): Likewise.
7722         (FOR_EACH_LOOP): Remove.
7723         (FOR_EACH_LOOP_FN): Remove.
7724         * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
7725         for loop with loops_list instance.
7726         (sort_sibling_loops): Likewise.
7727         (disambiguate_loops_with_multiple_latches): Likewise.
7728         (verify_loop_structure): Likewise.
7729         * cfgloopmanip.c (create_preheaders): Likewise.
7730         (force_single_succ_latches): Likewise.
7731         * config/aarch64/falkor-tag-collision-avoidance.c
7732         (execute_tag_collision_avoidance): Likewise.
7733         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
7734         * config/s390/s390.c (s390_adjust_loops): Likewise.
7735         * doc/loop.texi: Likewise.
7736         * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
7737         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
7738         * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
7739         (loop_versioning::make_versioning_decisions): Likewise.
7740         * gimple-ssa-split-paths.c (split_paths): Likewise.
7741         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
7742         * graphite.c (canonicalize_loop_form): Likewise.
7743         (graphite_transform_loops): Likewise.
7744         * ipa-fnsummary.c (analyze_function_body): Likewise.
7745         * ipa-pure-const.c (analyze_function): Likewise.
7746         * loop-doloop.c (doloop_optimize_loops): Likewise.
7747         * loop-init.c (loop_optimizer_finalize): Likewise.
7748         (fix_loop_structure): Likewise.
7749         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
7750         (move_loop_invariants): Likewise.
7751         * loop-unroll.c (decide_unrolling): Likewise.
7752         (unroll_loops): Likewise.
7753         * modulo-sched.c (sms_schedule): Likewise.
7754         * predict.c (predict_loops): Likewise.
7755         (pass_profile::execute): Likewise.
7756         * profile.c (branch_prob): Likewise.
7757         * sel-sched-ir.c (sel_finish_pipelining): Likewise.
7758         (sel_find_rgns): Likewise.
7759         * tree-cfg.c (replace_loop_annotate): Likewise.
7760         (replace_uses_by): Likewise.
7761         (move_sese_region_to_fn): Likewise.
7762         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
7763         * tree-loop-distribution.c (loop_distribution::execute): Likewise.
7764         * tree-parloops.c (parallelize_loops): Likewise.
7765         * tree-predcom.c (tree_predictive_commoning): Likewise.
7766         * tree-scalar-evolution.c (scev_initialize): Likewise.
7767         (scev_reset): Likewise.
7768         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
7769         * tree-ssa-live.c (remove_unused_locals): Likewise.
7770         * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
7771         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
7772         (tree_ssa_lim_initialize): Likewise.
7773         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
7774         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
7775         * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
7776         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
7777         (free_numbers_of_iterations_estimates): Likewise.
7778         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
7779         * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
7780         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
7781         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
7782         (pass_scev_cprop::execute): Likewise.
7783         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
7784         * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
7785         * tree-ssa-threadupdate.c
7786         (jump_thread_path_registry::thread_through_all_blocks): Likewise.
7787         * tree-vectorizer.c (vectorize_loops): Likewise.
7788         * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
7790 2021-07-29  Hans-Peter Nilsson  <hp@bitrange.com>
7792         * config/mmix/mmix.c (mmix_function_arg_1): Avoid
7793         generating a VOIDmode register for e.g the
7794         function_arg_info::end_marker.
7796 2021-07-29  Jeff Law  <jeffreyalaw@gmail.com>
7798         * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
7799         * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
7800         (cc mode_attr): Similarly.
7801         (ccz subst_attr): Similarly.
7802         * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
7803         * config/h8300/testcompare.md: Remove various cc0 based patterns
7804         that had been commented out.  Add pattern to set CCZ from a bit
7805         test.
7807 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
7808             Julian Brown  <julian@codesourcery.com>
7809             Kwok Cheung Yeung  <kcy@codesourcery.com>
7811         * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
7812         'update_stmt' after modification.
7813         (pass_oacc_loop_designation): New function, extracted out of...
7814         (pass_oacc_device_lower): ... this.
7815         (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
7816         (make_pass_oacc_loop_designation): New
7817         * passes.def: Add it.
7818         * tree-parloops.c (create_parallel_loop): Adjust.
7819         * tree-pass.h (make_pass_oacc_loop_designation): New.
7821 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
7823         * flag-types.h (enum threader_mode): New.
7824         * params.opt: Add entry for --param=threader-mode.
7825         * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
7826         (class back_threader): New.
7827         (back_threader::back_threader): New.
7828         (back_threader::~back_threader): New.
7829         (back_threader::maybe_register_path): New.
7830         (back_threader::find_taken_edge): New.
7831         (back_threader::find_taken_edge_switch): New.
7832         (back_threader::find_taken_edge_cond): New.
7833         (back_threader::resolve_def): New.
7834         (back_threader::resolve_phi): New.
7835         (back_threader::find_paths_to_names): New.
7836         (back_threader::find_paths): New.
7837         (dump_path): New.
7838         (debug): New.
7839         (thread_jumps::find_jump_threads_backwards): Call ranger threader.
7840         (thread_jumps::find_jump_threads_backwards_with_ranger): New.
7841         (pass_thread_jumps::execute): Abstract out code...
7842         (try_thread_blocks): ...here.
7843         * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
7844         Abstract out threading candidate code to...
7845         (single_succ_to_potentially_threadable_block): ...here.
7846         * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
7847         New.
7848         * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
7849         * tree-ssa-threadupdate.h (class jump_thread_path_registry):
7850         Return bool from register_jump_thread.
7852 2021-07-29  Andreas Krebbel  <krebbel@linux.ibm.com>
7854         * target.def: in0 and in1 do not need to be registers.
7855         * doc/tm.texi: Regenerate.
7857 2021-07-29  liuhongt  <hongtao.liu@intel.com>
7859         PR target/39821
7860         * config/i386/i386.c (ix86_widen_mult_cost): New function.
7861         (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
7862         WIDEN_MULT_EXPR.
7864 2021-07-29  Jiufu Guo  <guojiufu@linux.ibm.com>
7866         PR target/61837
7867         * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
7868         (rs6000_preferred_doloop_mode): New hook.
7869         * doc/tm.texi: Regenerate.
7870         * doc/tm.texi.in: Add hook preferred_doloop_mode.
7871         * target.def (preferred_doloop_mode): New hook.
7872         * targhooks.c (default_preferred_doloop_mode): New hook.
7873         * targhooks.h (default_preferred_doloop_mode): New hook.
7874         * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
7875         (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
7876         and compute_doloop_base_on_mode.
7878 2021-07-28  Martin Sebor  <msebor@redhat.com>
7880         PR middle-end/101494
7881         * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
7882         and size computation.
7884 2021-07-28  Martin Sebor  <msebor@redhat.com>
7886         PR middle-end/101601
7887         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
7888         a pointless test.
7889         Handle pointers to functions.
7891 2021-07-28  Martin Sebor  <msebor@redhat.com>
7893         * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
7894         * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
7895         * builtins.c (compute_objsize_r): Move to pointer-query.cc.
7896         (access_ref::access_ref): Same.
7897         (access_ref::phi): Same.
7898         (access_ref::get_ref): Same.
7899         (access_ref::size_remaining): Same.
7900         (access_ref::offset_in_range): Same.
7901         (access_ref::add_offset): Same.
7902         (access_ref::inform_access): Same.
7903         (ssa_name_limit_t::visit_phi): Same.
7904         (ssa_name_limit_t::leave_phi): Same.
7905         (ssa_name_limit_t::next): Same.
7906         (ssa_name_limit_t::next_phi): Same.
7907         (ssa_name_limit_t::~ssa_name_limit_t): Same.
7908         (pointer_query::pointer_query): Same.
7909         (pointer_query::get_ref): Same.
7910         (pointer_query::put_ref): Same.
7911         (pointer_query::flush_cache): Same.
7912         (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
7913         (check_nul_terminated_array): Same.
7914         (unterminated_array): Same.
7915         (maybe_warn_for_bound): Same.
7916         (check_read_access): Same.
7917         (warn_for_access): Same.
7918         (get_size_range): Same.
7919         (check_access): Same.
7920         (gimple_call_alloc_size): Move to tree.c.
7921         (gimple_parm_array_size): Move to pointer-query.cc.
7922         (get_offset_range): Same.
7923         (gimple_call_return_array): Same.
7924         (handle_min_max_size): Same.
7925         (handle_array_ref): Same.
7926         (handle_mem_ref): Same.
7927         (compute_objsize): Same.
7928         (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
7929         (call_dealloc_argno): Same.
7930         (fndecl_dealloc_argno): Same.
7931         (new_delete_mismatch_p): Same.
7932         (matching_alloc_calls_p): Same.
7933         (warn_dealloc_offset): Same.
7934         (maybe_emit_free_warning): Same.
7935         * builtins.h (check_nul_terminated_array): Move to
7936         gimple-ssa-warn-access.h.
7937         (check_nul_terminated_array): Same.
7938         (warn_string_no_nul): Same.
7939         (unterminated_array): Same.
7940         (class ssa_name_limit_t): Same.
7941         (class pointer_query): Same.
7942         (struct access_ref): Same.
7943         (class range_query): Same.
7944         (struct access_data): Same.
7945         (gimple_call_alloc_size): Same.
7946         (gimple_parm_array_size): Same.
7947         (compute_objsize): Same.
7948         (class access_data): Same.
7949         (maybe_emit_free_warning): Same.
7950         * calls.c (initialize_argument_information): Remove call to
7951         maybe_emit_free_warning.
7952         * gimple-array-bounds.cc: Include new header..
7953         * gimple-fold.c: Same.
7954         * gimple-ssa-sprintf.c: Same.
7955         * gimple-ssa-warn-restrict.c: Same.
7956         * passes.def: Add pass_warn_access.
7957         * tree-pass.h (make_pass_warn_access): Declare.
7958         * tree-ssa-strlen.c: Include new headers.
7959         * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
7960         * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
7961         * gimple-ssa-warn-access.cc: New file.
7962         * gimple-ssa-warn-access.h: New file.
7963         * pointer-query.cc: New file.
7964         * pointer-query.h: New file.
7966 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
7968         PR middle-end/101624
7969         * ubsan.c (maybe_instrument_pointer_overflow,
7970         instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
7971         PARM_DECLs or RESULT_DECLs.
7972         * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
7974 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
7976         PR middle-end/101642
7977         * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
7978         to type of bswap16 for comparison.
7979         (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
7981 2021-07-28  Richard Biener  <rguenther@suse.de>
7983         PR tree-optimization/101615
7984         * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
7985         at CTOR SLP graph entries.
7987 2021-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7989         * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
7990         Add "r,w" alternative.
7992 2021-07-28  H.J. Lu  <hjl.tools@gmail.com>
7994         PR target/101456
7995         * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
7996         AVX_U128_DIRTY when all bits are zero.
7998 2021-07-28  Richard Biener  <rguenther@suse.de>
8000         PR tree-optimization/101615
8001         * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
8002         external nodes cannot be permuted so make them perm_out 0.
8004 2021-07-28  Andrew Stubbs  <ams@codesourcery.com>
8006         PR target/100208
8007         * config.in: Regenerate.
8008         * config/gcn/gcn-hsa.h (A_FIJI): New define.
8009         (A_900): New define.
8010         (A_906): New define.
8011         (A_908): New define.
8012         (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
8013         * config/gcn/gcn.c (output_file_start): Adjust attributes according
8014         to the assembler capabilities.
8015         * config/gcn/mkoffload.c (main): Likewise.
8016         * configure: Regenerate.
8017         * configure.ac: Add tests for LLVM assembler attribute features.
8019 2021-07-28  Andrew MacLeod  <amacleod@redhat.com>
8021         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
8022         cond_false and cond_true on branches.
8024 2021-07-28  Bin Cheng  <bin.cheng@linux.alibaba.com>
8026         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
8027         gcc_stablesort.
8029 2021-07-28  Bin Cheng  <bin.cheng@linux.alibaba.com>
8031         * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
8033 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
8035         PR target/101611
8036         * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
8037         and vashrv4di3 expander, where the latter requires just TARGET_AVX2
8038         and has special !TARGET_AVX512VL expansion.
8039         (vashrv2di3<mask_name>): Rename to ...
8040         (vashrv2di3): ... this.  Change condition to TARGET_XOP || TARGET_AVX2
8041         and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
8043 2021-07-28  Martin Uecker  <muecker@gwdg.de>
8045         * calls.c (maybe_warn_rdwr_sizes): Correct argument
8046         numbers in warning that were switched.
8048 2021-07-28  Kewen Lin  <linkw@linux.ibm.com>
8050         PR tree-optimization/101596
8051         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
8052         by using new_type's precision instead.
8054 2021-07-28  liuhongt  <hongtao.liu@intel.com>
8056         PR target/99881
8057         * config/i386/i386.h (processor_costs): Add new member
8058         integer_to_sse.
8059         * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
8060         i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
8061         geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
8062         bdver_cost, znver1_cost, znver2_cost, znver3_cost,
8063         btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
8064         nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
8065         generic_cost, core_cost): Initialize integer_to_sse same value
8066         as sse_op.
8067         (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
8068         * config/i386/i386.c (ix86_builtin_vectorization_cost):
8069         Use integer_to_sse instead of sse_op to calculate the cost of
8070         vec_construct.
8072 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
8074         * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
8075         function.
8076         (write_init_file): Call write_ovld_static_init.
8078 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
8080         * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
8081         function.
8082         (write_init_file): Call write_bif_static_init.
8084 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
8086         * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
8087         (TYPE_MAP_SIZE): New macro.
8088         (type_map): New initialized variable.
8089         (typemap_cmp): New function.
8090         (write_type_node): Likewise.
8091         (write_fntype_init): Implement.
8093 2021-07-27  Martin Sebor  <msebor@redhat.com>
8095         PR tree-optimization/101584
8096         * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
8097         (check_defs): Call it.
8099 2021-07-27  Aldy Hernandez  <aldyh@redhat.com>
8101         * tree-ssa-dom.c (dom_jump_threader_simplifier):
8102         Put avail_exprs_stack in the class, instead of passing it to
8103         jump_threader_simplifier.
8104         (dom_jump_threader_simplifier::simplify): Add state argument.
8105         (dom_opt_dom_walker): Add state.
8106         (pass_dominator::execute): Pass state to threader.
8107         (dom_opt_dom_walker::before_dom_children): Use state.
8108         * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
8109         arguments by state.
8110         (jump_threader::record_temporary_equivalences_from_phis):
8111         Register equivalences through the state variable.
8112         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
8113         Record ranges in a statement through the state variable.
8114         (jump_threader::simplify_control_stmt_condition): Pass state to
8115         simplify.
8116         (jump_threader::simplify_control_stmt_condition_1): Same.
8117         (jump_threader::thread_around_empty_blocks): Remove obsolete
8118         comment.
8119         (jump_threader::thread_through_normal_block): Record equivalences
8120         on edge through the state variable.
8121         (jump_threader::thread_across_edge): Abstract state pushing.
8122         (jt_state::jt_state): New.
8123         (jt_state::push): New.
8124         (jt_state::pop): New.
8125         (jt_state::register_equiv): New.
8126         (jt_state::record_ranges_from_stmt): New.
8127         (jt_state::register_equivs_on_edge): New.
8128         (jump_threader_simplifier::jump_threader_simplifier): Move from
8129         header.
8130         (jump_threader_simplifier::simplify): Add state argument.
8131         * tree-ssa-threadedge.h (class jt_state): New.
8132         (class jump_threader): Add state to constructor.
8133         (class jump_threader_simplifier): Add state to simplify.  Remove
8134         avail_exprs_stack from class.
8135         * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
8136         argument.
8137         (vrp_jump_threader::vrp_jump_threader): Add state.
8138         (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
8140 2021-07-27  Aldy Hernandez  <aldyh@redhat.com>
8142         * Makefile.in (OBJS): Add gimple-range-path.o.
8143         * gimple-range-path.cc: New file.
8144         * gimple-range-path.h: New file.
8146 2021-07-27  Jonathan Wright  <jonathan.wright@arm.com>
8148         * config/aarch64/aarch64-simd.md: Push sign/zero-extension
8149         inside vec_duplicate for all patterns.
8150         * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
8151         Push sign/zero-extension inside vec_duplicate.
8153 2021-07-27  Richard Biener  <rguenther@suse.de>
8155         PR tree-optimization/101573
8156         * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
8157         looking at uninitialized PHI arg defs in some constrained cases.
8158         (warn_uninitialized_vars): Call it.
8159         (execute_early_warn_uninitialized): Calculate dominators.
8161 2021-07-27  Richard Biener  <rguenther@suse.de>
8163         PR tree-optimization/39821
8164         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
8165         vector_stmt for widening arithmetic.
8166         (vectorizable_conversion): Adjust.
8168 2021-07-27  Martin Jambor  <mjambor@suse.cz>
8170         * cgraph.h (ipa_replace_map): New field force_load_ref.
8171         * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
8172         aded new flag load_dereferenced, adjusted comments.
8173         (ipa_get_param_dereferenced): New function.
8174         (ipa_set_param_dereferenced): Likewise.
8175         * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
8176         * ipa-cp.c: Include gimple.h.
8177         (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
8178         (get_replacement_map): New parameter force_load_ref, set the
8179         appropriate flag in ipa_replace_map if set.
8180         (struct symbol_and_index_together): New type.
8181         (adjust_refs_in_act_callers): New function.
8182         (adjust_references_in_caller): Likewise.
8183         (create_specialized_node): When appropriate, call
8184         adjust_references_in_caller and force only load references.
8185         * ipa-prop.c (load_from_dereferenced_name): New function.
8186         (ipa_analyze_controlled_uses): Also detect loads from a
8187         dereference, harden testing of call statements.
8188         (ipa_write_node_info): Stream the dereferenced flag.
8189         (ipa_read_node_info): Likewise.
8190         (ipa_set_jf_constant): Also create refdesc when jump function
8191         references a variable.
8192         (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
8193         also on references of variables and return a symtab_node.  Adjust
8194         all callers.
8195         (propagate_controlled_uses): Also remove references to VAR_DECLs.
8197 2021-07-27  Jakub Jelinek  <jakub@redhat.com>
8199         PR middle-end/101586
8200         * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
8201         positions above or equal to sz except for diagnostics of flexible
8202         array members.
8204 2021-07-26  Andrew MacLeod  <amacleod@redhat.com>
8206         PR tree-optimization/78888
8207         * gimple-range-fold.cc (get_letter_range): New.
8208         (fold_using_range::range_of_builtin_call): Call get_letter_range.
8210 2021-07-26  Andrew MacLeod  <amacleod@redhat.com>
8212         PR tree-optimization/78888
8213         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
8214         for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
8216 2021-07-26  Roger Sayle  <roger@nextmovesoftware.com>
8217             Marc Glisse  <marc.glisse@inria.fr>
8219         * match.pd (rotate): Simplify equality/inequality of rotations.
8220         (bswap): Simplify equality/inequality tests of byte swapping.
8222 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
8224         * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
8225         New.
8227 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
8229         * range-op.cc (operator_lshift::fold_range): Pass rel to
8230         base class fold_range.
8231         (operator_rshift::fold_range): Same.
8233 2021-07-26  Ashimida  <ashimida@linux.alibaba.com>
8235         PR driver/101447
8236         * toplev.h (min_align_loops_log): Remove declaration.
8237         (min_align_jumps_log, min_align_labels_log): Likewise.
8238         (min_align_functions_log): Likewise.
8240 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
8242         * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
8243         with range_query.
8244         (execute_vrp): Abstract out simplification of conditionals...
8245         (simplify_casted_conds): ...here.
8247 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
8249         * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
8250         Add gimple argument.
8251         (array_bounds_checker::check_array_ref): Same.
8252         (array_bounds_checker::check_addr_expr): Same.
8253         (array_bounds_checker::check_array_bounds): Pass statement to
8254         check_array_bounds and check_addr_expr.
8255         * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
8256         (check_addr_expr): Same.
8257         (get_value_range): Same.
8259 2021-07-26  Tamar Christina  <tamar.christina@arm.com>
8261         * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
8262         (sdot_prod, udot_prod): ... This.
8263         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
8264         into...
8265         (<sur>dot_prod<vsi2qi>): ... this.
8266         (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
8267         Change operands order.
8268         (<sur>sadv16qi): Use new operands order.
8269         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
8270         vdotq_s32): Use new RTL ordering.
8272 2021-07-26  Tamar Christina  <tamar.christina@arm.com>
8274         * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
8275         aarch64_types_ternop_suss_qualifiers): New.
8276         * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
8277         * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
8278         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
8280 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
8282         PR rtl-optimization/101562
8283         * expmed.c (store_integral_bit_field): Only use movstrict_optab
8284         if the operand isn't paradoxical.
8286 2021-07-23  Aldy Hernandez  <aldyh@redhat.com>
8288         * gimple-array-bounds.h (class array_bounds_checker): Change
8289         ranges type to range_query.
8291 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
8293         * config/aarch64/arm_neon.h (vst1_s64_x2): Use
8294         __builtin_memcpy instead of constructing
8295         __builtin_aarch64_simd_oi one vector at a time.
8296         (vst1_u64_x2): Likewise.
8297         (vst1_f64_x2): Likewise.
8298         (vst1_s8_x2): Likewise.
8299         (vst1_p8_x2): Likewise.
8300         (vst1_s16_x2): Likewise.
8301         (vst1_p16_x2): Likewise.
8302         (vst1_s32_x2): Likewise.
8303         (vst1_u8_x2): Likewise.
8304         (vst1_u16_x2): Likewise.
8305         (vst1_u32_x2): Likewise.
8306         (vst1_f16_x2): Likewise.
8307         (vst1_f32_x2): Likewise.
8308         (vst1_p64_x2): Likewise.
8309         (vst1q_s8_x2): Likewise.
8310         (vst1q_p8_x2): Likewise.
8311         (vst1q_s16_x2): Likewise.
8312         (vst1q_p16_x2): Likewise.
8313         (vst1q_s32_x2): Likewise.
8314         (vst1q_s64_x2): Likewise.
8315         (vst1q_u8_x2): Likewise.
8316         (vst1q_u16_x2): Likewise.
8317         (vst1q_u32_x2): Likewise.
8318         (vst1q_u64_x2): Likewise.
8319         (vst1q_f16_x2): Likewise.
8320         (vst1q_f32_x2): Likewise.
8321         (vst1q_f64_x2): Likewise.
8322         (vst1q_p64_x2): Likewise.
8324 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
8326         * config/aarch64/arm_neon.h (vst1_s64_x3): Use
8327         __builtin_memcpy instead of constructing
8328         __builtin_aarch64_simd_ci one vector at a time.
8329         (vst1_u64_x3): Likewise.
8330         (vst1_f64_x3): Likewise.
8331         (vst1_s8_x3): Likewise.
8332         (vst1_p8_x3): Likewise.
8333         (vst1_s16_x3): Likewise.
8334         (vst1_p16_x3): Likewise.
8335         (vst1_s32_x3): Likewise.
8336         (vst1_u8_x3): Likewise.
8337         (vst1_u16_x3): Likewise.
8338         (vst1_u32_x3): Likewise.
8339         (vst1_f16_x3): Likewise.
8340         (vst1_f32_x3): Likewise.
8341         (vst1_p64_x3): Likewise.
8342         (vst1q_s8_x3): Likewise.
8343         (vst1q_p8_x3): Likewise.
8344         (vst1q_s16_x3): Likewise.
8345         (vst1q_p16_x3): Likewise.
8346         (vst1q_s32_x3): Likewise.
8347         (vst1q_s64_x3): Likewise.
8348         (vst1q_u8_x3): Likewise.
8349         (vst1q_u16_x3): Likewise.
8350         (vst1q_u32_x3): Likewise.
8351         (vst1q_u64_x3): Likewise.
8352         (vst1q_f16_x3): Likewise.
8353         (vst1q_f32_x3): Likewise.
8354         (vst1q_f64_x3): Likewise.
8355         (vst1q_p64_x3): Likewise.
8357 2021-07-23  H.J. Lu  <hjl.tools@gmail.com>
8359         PR target/101504
8360         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
8361         hard register when LRA is in progress.
8363 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
8365         * config/aarch64/arm_neon.h (vst1_s8_x4): Use
8366         __builtin_memcpy instead of using a union.
8367         (vst1q_s8_x4): Likewise.
8368         (vst1_s16_x4): Likewise.
8369         (vst1q_s16_x4): Likewise.
8370         (vst1_s32_x4): Likewise.
8371         (vst1q_s32_x4): Likewise.
8372         (vst1_u8_x4): Likewise.
8373         (vst1q_u8_x4): Likewise.
8374         (vst1_u16_x4): Likewise.
8375         (vst1q_u16_x4): Likewise.
8376         (vst1_u32_x4): Likewise.
8377         (vst1q_u32_x4): Likewise.
8378         (vst1_f16_x4): Likewise.
8379         (vst1q_f16_x4): Likewise.
8380         (vst1_f32_x4): Likewise.
8381         (vst1q_f32_x4): Likewise.
8382         (vst1_p8_x4): Likewise.
8383         (vst1q_p8_x4): Likewise.
8384         (vst1_p16_x4): Likewise.
8385         (vst1q_p16_x4): Likewise.
8386         (vst1_s64_x4): Likewise.
8387         (vst1_u64_x4): Likewise.
8388         (vst1_p64_x4): Likewise.
8389         (vst1q_s64_x4): Likewise.
8390         (vst1q_u64_x4): Likewise.
8391         (vst1q_p64_x4): Likewise.
8392         (vst1_f64_x4): Likewise.
8393         (vst1q_f64_x4): Likewise.
8395 2021-07-23  Jonathan Wrightt  <jonathan.wright@arm.com>
8397         * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
8398         instead of constructing __builtin_aarch64_simd_oi one vector
8399         at a time.
8400         (vst2_u64): Likewise.
8401         (vst2_f64): Likewise.
8402         (vst2_s8): Likewise.
8403         (vst2_p8): Likewise.
8404         (vst2_s16): Likewise.
8405         (vst2_p16): Likewise.
8406         (vst2_s32): Likewise.
8407         (vst2_u8): Likewise.
8408         (vst2_u16): Likewise.
8409         (vst2_u32): Likewise.
8410         (vst2_f16): Likewise.
8411         (vst2_f32): Likewise.
8412         (vst2_p64): Likewise.
8413         (vst2q_s8): Likewise.
8414         (vst2q_p8): Likewise.
8415         (vst2q_s16): Likewise.
8416         (vst2q_p16): Likewise.
8417         (vst2q_s32): Likewise.
8418         (vst2q_s64): Likewise.
8419         (vst2q_u8): Likewise.
8420         (vst2q_u16): Likewise.
8421         (vst2q_u32): Likewise.
8422         (vst2q_u64): Likewise.
8423         (vst2q_f16): Likewise.
8424         (vst2q_f32): Likewise.
8425         (vst2q_f64): Likewise.
8426         (vst2q_p64): Likewise.
8428 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
8430         * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
8431         instead of constructing __builtin_aarch64_simd_ci one vector
8432         at a time.
8433         (vst3_u64): Likewise.
8434         (vst3_f64): Likewise.
8435         (vst3_s8): Likewise.
8436         (vst3_p8): Likewise.
8437         (vst3_s16): Likewise.
8438         (vst3_p16): Likewise.
8439         (vst3_s32): Likewise.
8440         (vst3_u8): Likewise.
8441         (vst3_u16): Likewise.
8442         (vst3_u32): Likewise.
8443         (vst3_f16): Likewise.
8444         (vst3_f32): Likewise.
8445         (vst3_p64): Likewise.
8446         (vst3q_s8): Likewise.
8447         (vst3q_p8): Likewise.
8448         (vst3q_s16): Likewise.
8449         (vst3q_p16): Likewise.
8450         (vst3q_s32): Likewise.
8451         (vst3q_s64): Likewise.
8452         (vst3q_u8): Likewise.
8453         (vst3q_u16): Likewise.
8454         (vst3q_u32): Likewise.
8455         (vst3q_u64): Likewise.
8456         (vst3q_f16): Likewise.
8457         (vst3q_f32): Likewise.
8458         (vst3q_f64): Likewise.
8459         (vst3q_p64): Likewise.
8461 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
8463         * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
8464         instead of constructing __builtin_aarch64_simd_xi one vector
8465         at a time.
8466         (vst4_u64): Likewise.
8467         (vst4_f64): Likewise.
8468         (vst4_s8): Likewise.
8469         (vst4_p8): Likewise.
8470         (vst4_s16): Likewise.
8471         (vst4_p16): Likewise.
8472         (vst4_s32): Likewise.
8473         (vst4_u8): Likewise.
8474         (vst4_u16): Likewise.
8475         (vst4_u32): Likewise.
8476         (vst4_f16): Likewise.
8477         (vst4_f32): Likewise.
8478         (vst4_p64): Likewise.
8479         (vst4q_s8): Likewise.
8480         (vst4q_p8): Likewise.
8481         (vst4q_s16): Likewise.
8482         (vst4q_p16): Likewise.
8483         (vst4q_s32): Likewise.
8484         (vst4q_s64): Likewise.
8485         (vst4q_u8): Likewise.
8486         (vst4q_u16): Likewise.
8487         (vst4q_u32): Likewise.
8488         (vst4q_u64): Likewise.
8489         (vst4q_f16): Likewise.
8490         (vst4q_f32): Likewise.
8491         (vst4q_f64): Likewise.
8492         (vst4q_p64): Likewise.
8494 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
8496         * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
8497         instead of constructing __builtin_aarch64_simd_oi one vector
8498         at a time.
8499         (vtbx4_u8): Likewise.
8500         (vtbx4_p8): Likewise.
8502 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
8504         * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
8505         instead of constructing __builtin_aarch64_simd_oi one vector
8506         at a time.
8507         (vtbl3_u8): Likewise.
8508         (vtbl3_p8): Likewise.
8509         (vtbl4_s8): Likewise.
8510         (vtbl4_u8): Likewise.
8511         (vtbl4_p8): Likewise.
8513 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
8515         * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
8516         instead of constructing __builtin_aarch64_simd_oi one vector
8517         at a time.
8518         (vqtbx2_u8): Likewise.
8519         (vqtbx2_p8): Likewise.
8520         (vqtbx2q_s8): Likewise.
8521         (vqtbx2q_u8): Likewise.
8522         (vqtbx2q_p8): Likewise.
8523         (vqtbx3_s8): Use __builtin_memcpy instead of constructing
8524         __builtin_aarch64_simd_ci one vector at a time.
8525         (vqtbx3_u8): Likewise.
8526         (vqtbx3_p8): Likewise.
8527         (vqtbx3q_s8): Likewise.
8528         (vqtbx3q_u8): Likewise.
8529         (vqtbx3q_p8): Likewise.
8530         (vqtbx4_s8): Use __builtin_memcpy instead of constructing
8531         __builtin_aarch64_simd_xi one vector at a time.
8532         (vqtbx4_u8): Likewise.
8533         (vqtbx4_p8): Likewise.
8534         (vqtbx4q_s8): Likewise.
8535         (vqtbx4q_u8): Likewise.
8536         (vqtbx4q_p8): Likewise.
8538 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
8540         * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
8541         instead of constructing __builtin_aarch64_simd_oi one vector
8542         at a time.
8543         (vqtbl2_u8): Likewise.
8544         (vqtbl2_p8): Likewise.
8545         (vqtbl2q_s8): Likewise.
8546         (vqtbl2q_u8): Likewise.
8547         (vqtbl2q_p8): Likewise.
8548         (vqtbl3_s8): Use __builtin_memcpy instead of constructing
8549         __builtin_aarch64_simd_ci one vector at a time.
8550         (vqtbl3_u8): Likewise.
8551         (vqtbl3_p8): Likewise.
8552         (vqtbl3q_s8): Likewise.
8553         (vqtbl3q_u8): Likewise.
8554         (vqtbl3q_p8): Likewise.
8555         (vqtbl4_s8): Use __builtin_memcpy instead of constructing
8556         __builtin_aarch64_simd_xi one vector at a time.
8557         (vqtbl4_u8): Likewise.
8558         (vqtbl4_p8): Likewise.
8559         (vqtbl4q_s8): Likewise.
8560         (vqtbl4q_u8): Likewise.
8561         (vqtbl4q_p8): Likewise.
8563 2021-07-23  Haochen Gui  <guihaoc@gcc.gnu.org>
8565         PR target/100952
8566         * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
8568 2021-07-22  Andrew Pinski  <apinski@marvell.com>
8570         PR tree-optimization/10153
8571         * tree-tailcall.c (create_tailcall_accumulator):
8572         Don't call fold_convert as the type should be correct already.
8573         (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
8574         of integer_{one,zero}_node for the call of create_tailcall_accumulator.
8576 2021-07-22  Aldy Hernandez  <aldyh@redhat.com>
8578         * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
8579         varying_p check for null/non-null check.
8581 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
8583         PR tree-optimization/101511
8584         * value-relation.cc (relation_oracle::query_relation): Check if ssa1
8585         is in ssa2's equiv set, and don't trap if so.
8587 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
8589         PR tree-optimization/101497
8590         * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
8591         for undefined.
8593 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
8595         PR tree-optimization/101496
8596         * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
8597         first, then vrp_visit_cond_Stmt.
8599 2021-07-22  liuhongt  <hongtao.liu@intel.com>
8601         * config/i386/i386-expand.c
8602         (ix86_broadcast_from_integer_constant): Rename to ..
8603         (ix86_broadcast_from_constant): .. this, and extend it to
8604         handle float mode.
8605         (ix86_expand_vector_move): Extend to float mode.
8606         * config/i386/i386-features.c
8607         (replace_constant_pool_with_broadcast): Remove.
8608         (remove_partial_avx_dependency_gate): Ditto.
8609         (constant_pool_broadcast): Ditto.
8610         (class pass_constant_pool_broadcast): Ditto.
8611         (make_pass_constant_pool_broadcast): Ditto.
8612         (remove_partial_avx_dependency): Adjust gate.
8613         * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
8614         * config/i386/i386-protos.h
8615         (make_pass_constant_pool_broadcast): Remove.
8617 2021-07-22  liuhongt  <hongtao.liu@intel.com>
8619         * config/i386/constraints.md (Wb): New constraint.
8620         (Ww): Ditto.
8621         * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
8622         shift.
8623         (*ashlqi3_1): Ditto.
8624         (*<insn><mode>3_1): Split to ..
8625         (*ashr<mode>3_1): this, ...
8626         (*lshr<mode>3_1): and this, also extend this pattern to avx512
8627         mask registers.
8628         (*<insn><mode>3_1): Split to ..
8629         (*ashr<mode>3_1): this, ...
8630         (*lshrqi3_1): and this, also extend this pattern to avx512
8631         mask registers.
8632         (*lshrhi3_1): And this, also extend this pattern to avx512
8633         mask registers.
8634         * config/i386/sse.md (k<code><mode>): New define_split after
8635         it to convert generic shift pattern to mask shift ones.
8637 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
8638             Joseph Myers  <joseph@codesourcery.com>
8639             Cesar Philippidis  <cesar@codesourcery.com>
8641         * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
8642         * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
8643         Handle it.
8644         * tree-pretty-print.c (dump_omp_clause): Likewise.
8645         * omp-general.c (oacc_verify_routine_clauses): Likewise.
8646         * gimplify.c (gimplify_scan_omp_clauses)
8647         (gimplify_adjust_omp_clauses): Likewise.
8648         * tree-nested.c (convert_nonlocal_omp_clauses)
8649         (convert_local_omp_clauses): Likewise.
8650         * omp-low.c (scan_sharing_clauses): Likewise.
8651         * omp-offload.c (execute_oacc_device_lower): Update.
8653 2021-07-21  Martin Sebor  <msebor@redhat.com>
8655         * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
8657 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
8659         * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
8660         Implement.
8662 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
8664         * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
8665         callback function.
8666         (write_fntype_init): New stub function.
8667         (write_init_bif_table): Likewise.
8668         (write_init_ovld_table): New function.
8669         (write_init_file): Implement.
8671 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
8673         * config/rs6000/rs6000-gen-builtins.c
8674         (write_autogenerated_header): New function.
8675         (write_decls): Likewise.
8676         (write_extern_fntype): New callback function.
8677         (write_header_file): Implement.
8679 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
8681         * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
8682         Implement.
8684 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
8686         * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
8687         function.
8688         (complete_base_type): Likewise.
8689         (construct_fntype_id): Likewise.
8690         (parse_bif_entry): Call contruct_fntype_id.
8691         (parse_ovld_entry): Likewise.
8693 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
8695         * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
8696         (MAXOVLDSTANZAS): New macro.
8697         (ovld_stanzas): New variable.
8698         (curr_ovld_stanza): Likewise.
8699         (MAXOVLDS): New macro.
8700         (ovlddata): New struct.
8701         (ovlds): New variable.
8702         (curr_ovld): Likewise.
8703         (max_ovld_args): Likewise.
8704         (parse_ovld_entry): New function.
8705         (parse_ovld_stanza): Likewise.
8706         (parse_ovld): Implement.
8708 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
8710         * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
8711         Implement.
8713 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
8715         * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
8716         (parse_prototype): Implement.
8718 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
8720         * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
8721         (curr_bif_stanza): New variable.
8722         (stanza_entry): New struct.
8723         (stanza_map): New initialized variable.
8724         (enable_string): Likewise.
8725         (fnkinds): New enum.
8726         (typelist): New struct.
8727         (attrinfo): Likewise.
8728         (MAXRESTROPNDS): New macro.
8729         (prototype): New struct.
8730         (MAXBIFS): New macro.
8731         (bifdata): New struct.
8732         (bifs): New variable.
8733         (curr_bif): Likewise.
8734         (bif_order): Likewise.
8735         (bif_index): Likewise.
8736         (fatal): New function.
8737         (stanza_name_to_stanza): Likewise.
8738         (parse_bif_attrs): New stub function.
8739         (parse_prototype): Likewise.
8740         (parse_bif_entry): New function.
8741         (parse_bif_stanza): Likewise.
8742         (parse_bif): Implement.
8743         (set_bif_order): New function.
8744         (create_bif_order): Implement.
8746 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
8748         * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
8749         (num_bifs): New variable.
8750         (num_ovld_stanzas): Likewise.
8751         (num_ovlds): Likewise.
8752         (parse_codes): New enum.
8753         (bif_rbt): New variable.
8754         (ovld_rbt): Likewise.
8755         (fntype_rbt): Likewise.
8756         (bifo_rbt): Likewise.
8757         (parse_bif): New stub function.
8758         (create_bif_order): Likewise.
8759         (parse_ovld): Likewise.
8760         (write_header_file): Likewise.
8761         (write_init_file): Likewise.
8762         (write_defines_file): Likewise.
8763         (delete_output_files): New function.
8764         (main): Likewise.
8766 2021-07-21  H.J. Lu  <hjl.tools@gmail.com>
8768         PR target/101549
8769         * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
8770         from CRC32 _builtin functions.
8772 2021-07-21  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8774         * coverage.c (build_gcov_info_var_registration): Mark the object placed
8775         in the linker set as referenced so that it does not get optimized away.
8777 2021-07-21  Kito Cheng  <kito.cheng@sifive.com>
8779         Revert:
8780         2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
8782         * config.gcc (riscv*-*-*): Detect which python is available.
8784 2021-07-21  Jakub Jelinek  <jakub@redhat.com>
8786         PR middle-end/101535
8787         * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
8788         contexts in which decl isn't privatized and for ORT_TARGET return
8789         false if decl is mapped.
8791 2021-07-21  Richard Sandiford  <richard.sandiford@arm.com>
8793         * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
8794         (tree_loop_unroll_and_jam): Run value-numbering on a loop that
8795         has been successfully unrolled.
8797 2021-07-21  Richard Sandiford  <richard.sandiford@arm.com>
8799         * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
8800         exit condition if no tail loop is needed, and if the original exit
8801         condition should therefore be kept as-is.
8802         (tree_transform_and_unroll_loop): Handle that case here too.
8804 2021-07-21  Kewen Lin  <linkw@linux.ibm.com>
8806         * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
8807         by reference.
8808         (free_data_refs): Likewise.
8809         * tree-data-ref.h (free_dependence_relations): Likewise.
8810         (free_data_refs): Likewise.
8811         * tree-predcom.c (struct chain): Use auto_vec instead of vec for
8812         members.
8813         (struct component): Likewise.
8814         (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
8815         (pcom_worker::~pcom_worker): Likewise.
8816         (pcom_worker::release_chain): Adjust as auto_vec changes.
8817         (pcom_worker::loop): Rename to ...
8818         (pcom_worker::m_loop): ... this.
8819         (pcom_worker::datarefs): Rename to ...
8820         (pcom_worker::m_datarefs): ... this.  Use auto_vec instead of vec.
8821         (pcom_worker::dependences): Rename to ...
8822         (pcom_worker::m_dependences): ... this.  Use auto_vec instead of vec.
8823         (pcom_worker::chains): Rename to ...
8824         (pcom_worker::m_chains): ... this.  Use auto_vec instead of vec.
8825         (pcom_worker::looparound_phis): Rename to ...
8826         (pcom_worker::m_looparound_phis): ... this.  Use auto_vec instead of
8827         vec.
8828         (pcom_worker::cache): Rename to ...
8829         (pcom_worker::m_cache): ... this.  Use auto_vec instead of vec.
8830         (pcom_worker::release_chain): Adjust for auto_vec changes.
8831         (pcom_worker::release_chains): Adjust for auto_vec and renaming
8832         changes.
8833         (release_component): Remove.
8834         (release_components): Adjust for release_component removal.
8835         (component_of): Adjust to use vec.
8836         (merge_comps): Likewise.
8837         (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
8838         (pcom_worker::determine_offset): Likewise.
8839         (class comp_ptrs): Remove.
8840         (pcom_worker::split_data_refs_to_components): Adjust for renaming
8841         changes, for comp_ptrs removal with auto_vec.
8842         (pcom_worker::suitable_component_p): Adjust for renaming changes.
8843         (pcom_worker::filter_suitable_components): Adjust for release_component
8844         removal.
8845         (pcom_worker::valid_initializer_p): Adjust for renaming changes.
8846         (pcom_worker::find_looparound_phi): Likewise.
8847         (pcom_worker::add_looparound_copies): Likewise.
8848         (pcom_worker::determine_roots_comp): Likewise.
8849         (pcom_worker::single_nonlooparound_use): Likewise.
8850         (pcom_worker::execute_pred_commoning_chain): Likewise.
8851         (pcom_worker::execute_pred_commoning): Likewise.
8852         (pcom_worker::try_combine_chains): Likewise.
8853         (pcom_worker::prepare_initializers_chain): Likewise.
8854         (pcom_worker::prepare_initializers): Likewise.
8855         (pcom_worker::prepare_finalizers_chain): Likewise.
8856         (pcom_worker::prepare_finalizers): Likewise.
8857         (pcom_worker::tree_predictive_commoning_loop): Likewise.
8859 2021-07-20  Martin Sebor  <msebor@redhat.com>
8861         PR middle-end/101397
8862         * builtins.c (gimple_call_return_array): Add argument.  Correct
8863         offsets for memchr, mempcpy, stpcpy, and stpncpy.
8864         (compute_objsize_r): Adjust offset computation for argument returning
8865         built-ins.
8867 2021-07-20  Martin Sebor  <msebor@redhat.com>
8869         PR middle-end/101300
8870         * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
8872 2021-07-20  Jeff Law  <jlaw@localhost.localdomain>
8874         * function.c (assign_parm_setup_block): Use adjust_address instead
8875         of change_address to preserve MEM_EXPR and friends.
8877 2021-07-20  Martin Sebor  <msebor@redhat.com>
8879         * cfgloop.h (single_likely_exit): Adjust by-value argument to
8880         by-const-reference.
8881         * cfgloopanal.c (single_likely_exit): Same.
8882         * cgraph.h (struct cgraph_node): Same.
8883         * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
8884         * genautomata.c (merge_states): Same.
8885         * genextract.c (VEC_char_to_string): Same.
8886         * genmatch.c (dt_node::gen_kids_1): Same.
8887         (walk_captures): Adjust by-value argument to by-reference.
8888         * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
8889         to by-const-reference.
8890         * gimple.c (gimple_build_call_vec): Same.
8891         (gimple_build_call_internal_vec): Same.
8892         (gimple_build_switch): Same.
8893         (sort_case_labels): Same.
8894         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
8895         by-reference.
8896         * gimple.h (gimple_build_call_vec): Adjust by-value argument to
8897         by-const-reference.
8898         (gimple_build_call_internal_vec): Same.
8899         (gimple_build_switch): Same.
8900         (sort_case_labels): Same.
8901         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
8902         by-reference.
8903         * haifa-sched.c (calc_priorities): Adjust by-value argument to
8904         by-const-reference.
8905         (sched_init_luids): Same.
8906         (haifa_init_h_i_d): Same.
8907         * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
8908         (adjust_callers_for_value_intersection): Adjust by-value argument to
8909         by-reference.
8910         (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
8911         by-const-reference.
8912         (find_more_contexts_for_caller_subset): Same.
8913         (find_aggregate_values_for_callers_subset): Same.
8914         (copy_useful_known_contexts): Same.
8915         * ipa-fnsummary.c (remap_edge_summaries): Same.
8916         (remap_freqcounting_predicate): Same.
8917         * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
8918         by-reference.
8919         * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
8920         to by-const-reference.
8921         * ipa-predicate.h (predicate::remap_after_inlining): Same.
8922         * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
8923         * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
8924         * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
8925         * read-rtl.c (add_overload_instance): Same.
8926         * rtl.h (native_decode_rtx): Same.
8927         (native_decode_vector_rtx): Same.
8928         * sched-int.h (sched_init_luids): Same.
8929         (haifa_init_h_i_d): Same.
8930         * simplify-rtx.c (native_decode_vector_rtx): Same.
8931         (native_decode_rtx): Same.
8932         * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
8933         (shrink_wrap_one_built_in_call_with_conds): Same.
8934         (shrink_wrap_conditional_dead_built_in_calls): Same.
8935         * tree-data-ref.c (create_runtime_alias_checks): Same.
8936         (compute_all_dependences): Same.
8937         * tree-data-ref.h (compute_all_dependences): Same.
8938         (create_runtime_alias_checks): Same.
8939         (index_in_loop_nest): Same.
8940         * tree-if-conv.c (mask_exists): Same.
8941         * tree-loop-distribution.c (class loop_distribution): Same.
8942         (loop_distribution::create_rdg_vertices): Same.
8943         (dump_rdg_partitions): Same.
8944         (debug_rdg_partitions): Same.
8945         (partition_contains_all_rw): Same.
8946         (loop_distribution::distribute_loop): Same.
8947         * tree-parloops.c (oacc_entry_exit_ok_1): Same.
8948         (oacc_entry_exit_single_gang): Same.
8949         * tree-ssa-loop-im.c (hoist_memory_references): Same.
8950         (loop_suitable_for_sm): Same.
8951         * tree-ssa-loop-niter.c (bound_index): Same.
8952         * tree-ssa-reassoc.c (update_ops): Same.
8953         (swap_ops_for_binary_stmt): Same.
8954         (rewrite_expr_tree): Same.
8955         (rewrite_expr_tree_parallel): Same.
8956         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
8957         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
8958         * tree-ssa-structalias.c (process_all_all_constraints): Same.
8959         (make_constraints_to): Same.
8960         (handle_lhs_call): Same.
8961         (find_func_aliases_for_builtin_call): Same.
8962         (sort_fieldstack): Same.
8963         (check_for_overlaps): Same.
8964         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
8965         (vect_create_cond_for_unequal_addrs): Same.
8966         (vect_create_cond_for_lower_bounds): Same.
8967         (vect_create_cond_for_alias_checks): Same.
8968         * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
8969         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
8970         (vect_make_slp_decision): Same.
8971         (vect_slp_bbs): Same.
8972         (duplicate_and_interleave): Same.
8973         (vect_transform_slp_perm_load): Same.
8974         (vect_schedule_slp): Same.
8975         * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
8976         (vect_schedule_slp): Same.
8977         (duplicate_and_interleave): Same.
8978         * tree.c (build_vector_from_ctor): Same.
8979         (build_vector): Same.
8980         (check_vector_cst): Same.
8981         (check_vector_cst_duplicate): Same.
8982         (check_vector_cst_fill): Same.
8983         (check_vector_cst_stepped): Same.
8984         * tree.h (build_vector_from_ctor): Same.
8986 2021-07-20  Jakub Jelinek  <jakub@redhat.com>
8988         PR target/101384
8989         * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
8990         type from bool to int.
8991         * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
8992         EASY_VECTOR_MSB case if either step or copies is not 1.
8993         (vspltis_shifted): Fix comment typo.
8994         (easy_altivec_constant): Change return type from bool to int, instead
8995         of returning true return byte size of the element mode that should be
8996         used to synthetize the constant.
8997         * config/rs6000/predicates.md (easy_vector_constant_msb): Require
8998         that vspltis_shifted is 0, handle the case where easy_altivec_constant
8999         assumes using different vector mode from CONST_VECTOR's mode.
9000         * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
9001         easy_altivec_constant to determine mode in which -1 >> -1 should be
9002         performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
9004 2021-07-20  Richard Biener  <rguenther@suse.de>
9006         PR debug/101473
9007         * dwarf2out.h (dwarf_file_data): Add key member.
9008         * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
9009         (dwarf_file_hasher::hash): Hash key.
9010         (lookup_filename): Remap the filename and store it in the
9011         filename member of dwarf_file_data when creating a new
9012         dwarf_file_data.
9013         (file_name_acquire): Do not remap the filename again.
9014         (maybe_emit_file): Likewise.
9016 2021-07-20  Jonathan Wright  <jonathan.wright@arm.com>
9018         * config/aarch64/aarch64-simd-builtins.def: Use two variant
9019         generators for all TBL/TBX intrinsics and rename to
9020         consistent forms: qtbl[1234] or qtbx[1234].
9021         * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
9022         Rename to...
9023         (aarch64_qtbl1<mode>): This.
9024         (aarch64_tbx1<mode>): Rename to...
9025         (aarch64_qtbx1<mode>): This.
9026         (aarch64_tbl2v16qi): Delete.
9027         (aarch64_tbl3<mode>): Rename to...
9028         (aarch64_qtbl2<mode>): This.
9029         (aarch64_tbx4<mode>): Rename to...
9030         (aarch64_qtbx2<mode>): This.
9031         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
9032         renamed qtbl1 and qtbl2 RTL patterns.
9033         * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
9034         RTL pattern.
9035         (vqtbl1_s8): Likewise.
9036         (vqtbl1_u8): Likewise.
9037         (vqtbl1q_p8): Likewise.
9038         (vqtbl1q_s8): Likewise.
9039         (vqtbl1q_u8): Likewise.
9040         (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
9041         (vqtbx1_u8): Likewise.
9042         (vqtbx1_p8): Likewise.
9043         (vqtbx1q_s8): Likewise.
9044         (vqtbx1q_u8): Likewise.
9045         (vqtbx1q_p8): Likewise.
9046         (vtbl1_s8): Use renamed qtbl1 RTL pattern.
9047         (vtbl1_u8): Likewise.
9048         (vtbl1_p8): Likewise.
9049         (vtbl2_s8): Likewise
9050         (vtbl2_u8): Likewise.
9051         (vtbl2_p8): Likewise.
9052         (vtbl3_s8): Use renamed qtbl2 RTL pattern.
9053         (vtbl3_u8): Likewise.
9054         (vtbl3_p8): Likewise.
9055         (vtbl4_s8): Likewise.
9056         (vtbl4_u8): Likewise.
9057         (vtbl4_p8): Likewise.
9058         (vtbx2_s8): Use renamed qtbx2 RTL pattern.
9059         (vtbx2_u8): Likewise.
9060         (vtbx2_p8): Likewise.
9061         (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
9062         (vqtbl2_u8): Likewise.
9063         (vqtbl2_p8): Likewise.
9064         (vqtbl2q_s8): Likewise.
9065         (vqtbl2q_u8): Likewise.
9066         (vqtbl2q_p8): Likewise.
9067         (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
9068         (vqtbx2_u8): Likewise.
9069         (vqtbx2_p8): Likewise.
9070         (vqtbx2q_s8): Likewise.
9071         (vqtbx2q_u8): Likewise.
9072         (vqtbx2q_p8): Likewise.
9073         (vtbx4_s8): Likewise.
9074         (vtbx4_u8): Likewise.
9075         (vtbx4_p8): Likewise.
9077 2021-07-20  Uroš Bizjak  <ubizjak@gmail.com>
9079         PR target/100182
9080         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
9081         Remove.
9082         (define_peephole2 atomic_loaddi_fpu): Ditto.
9084 2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
9086         * config.gcc (riscv*-*-*): Detect which python is available.
9088 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
9090         * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
9091         (smul<mode>3_highpart): ... this.
9092         (mulhu_<mode>): Rename to...
9093         (umul<mode>3_highpart): ... this.
9094         * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
9095         MULHU_V2DI, MULHU_V4SI): Adjust.
9097 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
9099         PR tree-optimization/100696
9100         * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
9101         * internal-fn.def (IFN_MULH): New internal function.
9102         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
9103         recog normal multiply highpart as IFN_MULH.
9104         * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
9105         function CFN_MULH.
9107 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
9109         * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
9110         (BTF_DEBUGGING_INFO): Likewise.
9111         * doc/tm.texi.in: Document the new macros.
9112         * doc/tm.texi: Regenerated.
9113         * toplev.c: Guard initialization of debug hooks.
9115 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
9117         * flags.h (ctf_debuginfo_p): New function declaration.
9118         * opts.c (ctf_debuginfo_p): New function definition.
9120 2021-07-19  Andrew Stubbs  <ams@codesourcery.com>
9122         PR target/100208
9123         * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
9124         (ASM_SPEC): Set -mattr for xnack and sram-ecc.
9125         * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
9126         * config/gcn/gcn-valu.md: Add a warning comment.
9127         * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
9128         (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
9129         * config/gcn/gcn.md: Add a warning comment.
9130         * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
9131         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
9132         SRAM-ECC flag.
9133         (EF_AMDGPU_XNACK): New.
9134         (EF_AMDGPU_SRAM_ECC): New.
9135         (elf_flags): New.
9136         (copy_early_debug_info): Use elf_flags.
9137         (main): Handle -mxnack and -msram-ecc options.
9138         * doc/invoke.texi: Document -mxnack and -msram-ecc.
9140 2021-07-19  Andrew Pinski  <apinski@marvell.com>
9142         PR target/101205
9143         * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
9144         (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
9146 2021-07-19  Richard Biener  <rguenther@suse.de>
9148         PR tree-optimization/101505
9149         * tree-vect-patterns.c (vect_determine_precisions): Walk
9150         PHIs also for loop vectorization.
9152 2021-07-19  Richard Biener  <rguenther@suse.de>
9154         * gimple.h (gimple_expr_type): Remove.
9155         * doc/gimple.texi: Remove gimple_expr_type documentation.
9157 2021-07-19  Richard Biener  <rguenther@suse.de>
9159         * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
9160         (ao_ref_init_from_vn_reference): Likewise.
9161         (fully_constant_reference): Likewise.
9162         (vn_reference_lookup_call): Do not set vr->type to random
9163         values.
9164         * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
9165         without a value.
9166         * tree-vect-generic.c (expand_vector_piecewise): Pass in
9167         whether we expanded parallel.
9168         (expand_vector_parallel): Adjust.
9169         (expand_vector_addition): Likewise.
9170         (expand_vector_comparison): Likewise.
9171         (expand_vector_operation): Likewise.
9172         (expand_vector_scalar_condition): Likewise.
9173         (expand_vector_conversion): Likewise.
9175 2021-07-19  Richard Biener  <rguenther@suse.de>
9177         * tree-vrp.c (register_edge_assert_for_2): Use the
9178         type from the LHS.
9179         (vrp_folder::fold_predicate_in): Likewise.
9180         * vr-values.c (gimple_assign_nonzero_p): Likewise.
9181         (vr_values::extract_range_from_comparison): Likewise.
9182         (vr_values::extract_range_from_ubsan_builtin): Use the
9183         type of the first operand.
9184         (vr_values::extract_range_basic): Push down type
9185         computation, use the appropriate LHS.
9186         (vr_values::extract_range_from_assignment): Use the
9187         type of the LHS.
9189 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
9191         PR target/101492
9192         * common/config/i386/i386-common.c (ix86_handle_option): For
9193         -mgeneral-regs-only, enable the GPR only instructions which are
9194         enabled implicitly by SSE ISAs unless they have been disabled
9195         explicitly.
9197 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
9199         PR target/101495
9200         * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
9201         ix86_avx_u128_mode_needed.
9202         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
9203         returns AVX register.
9205 2021-07-17  Jan Hubicka  <hubicka@ucw.cz>
9207         * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
9208         (handle_const_call): Liekise
9209         (handle_pure_call): Liekise
9211 2021-07-17  Andrew MacLeod  <amacleod@redhat.com>
9213         PR tree-optimization/96542
9214         * range-op.cc (range_operator::wi_fold_in_parts): New.
9215         (range_operator::fold_range): Call wi_fold_in_parts.
9216         (operator_lshift::wi_fold): Fix broken lshift by [0,0].
9217         * range-op.h (wi_fold_in_parts): Add prototype.
9219 2021-07-16  David Malcolm  <dmalcolm@redhat.com>
9221         * doc/analyzer.texi: Add __analyzer_dump_state.
9223 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
9225         * config/rs6000/rbtree.c: New file.
9226         * config/rs6000/rbtree.h: New file.
9228 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
9230         * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
9231         (typeinfo): Add restr field.
9232         (match_bracketed_pair): New function.
9233         (match_const_restriction): Implement.
9235 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
9237         * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
9239 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
9241         * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
9242         (basetype): Likewise.
9243         (typeinfo): Likewise.
9244         (handle_pointer): New function.
9245         (match_basetype): New stub function.
9246         (match_const_restriction): Likewise.
9247         (match_type): New function.
9249 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
9251         * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
9252         function.
9253         (advance_line): Likewise.
9254         (safe_inc_pos): Likewise.
9255         (match_identifier): Likewise.
9256         (match_integer): Likewise.
9257         (match_to_right_bracket): Likewise.
9259 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
9261         * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
9262         (ovld_file): Likewise.
9263         (header_file): Likewise.
9264         (init_file): Likewise.
9265         (defines_file): Likewise.
9266         (pgm_path): Likewise.
9267         (bif_path): Likewise.
9268         (ovld_path): Likewise.
9269         (header_path): Likewise.
9270         (init_path): Likewise.
9271         (defines_path): Likewise.
9272         (LINELEN): New macro.
9273         (linebuf): New variable.
9274         (line): Likewise.
9275         (pos): Likewise.
9276         (diag): Likewise.
9277         (bif_diag): New function.
9278         (ovld_diag): Likewise.
9280 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
9282         * config/rs6000/rs6000-builtin-new.def: New.
9283         * config/rs6000/rs6000-overload.def: New.
9285 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
9287         * config/rs6000/rs6000-gen-builtins.c: New.
9289 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
9291         * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
9292         (s-gtype): Depend on EXTRA_GTYPE_DEPS.
9293         * gengtype-state.c (state_writer::write_state_file_list): Add a
9294         parameter to the fileslist expression for the number of build
9295         headers to scan.
9296         (read_state_files_list): Detect build headers and strip the
9297         initial "./" or ".\" from their names.
9298         * gengtype.c (build_headers): New global variable.
9299         (num_build_headers): Likewise.
9300         (open_base_files): Emit #include for each build header.
9301         (main): Detect and count build headers.
9302         * gengtype.h (build_headers): New extern variable.
9303         (num_build_headers): Likewise.
9305 2021-07-16  Richard Biener   <rguenther@suse.de>
9307         * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
9308         the type of the LHS.
9309         (find_bswap_or_nop_1): Likewise.
9310         (find_bswap_or_nop): Likewise.
9311         * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
9312         prototype.
9313         * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
9314         Remove unused parameters, pass in the scalar type.  Fix
9315         internal store function handling.
9316         * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
9317         (vect_get_vector_types_for_stmt): Move down check for
9318         existing vector stmt after we've determined a scalar type.
9319         Pass down the used scalar type to vect_get_smallest_scalar_type.
9320         * tree-vect-generic.c (expand_vector_condition): Use
9321         the type of the LHS.
9322         (expand_vector_scalar_condition): Likewise.
9323         (expand_vector_operations_1): Likewise.
9324         * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
9325         (vect_recog_dot_prod_pattern): Likewise.
9326         (vect_recog_sad_pattern): Likewise.
9327         (vect_recog_widen_op_pattern): Likewise.
9328         (vect_recog_widen_sum_pattern): Likewise.
9329         (vect_recog_mixed_size_cond_pattern): Likewise.
9331 2021-07-16  Jan Hubicka  <hubicka@ucw.cz>
9333         * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
9334         (dump_eaf_flags): Dump EAF_NOT_RETURNED
9335         (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
9336         and EAF_NOT_RETURNED.
9337         (modref_summary::useful_p): Likewise.
9338         (modref_summary_lto::useful_p): Likewise.
9339         (struct) modref_summary_lto: Use eaf_fleags_t.
9340         (deref_flags): Handle EAF_NOT_RETURNED.
9341         (struct escape_point): Use min_flags.
9342         (modref_lattice::init): Add EAF_NOT_RETURNED.
9343         (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
9344         (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
9345         handle call flags.
9346         (analyze_parms): Also analyze const functions; update conition on
9347         flags usefulness.
9348         (modref_write): Update streaming.
9349         (read_section): Update streaming.
9350         (remap_arg_flags): Use eaf_flags_t.
9351         (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
9352         * ipa-modref.h: (eaf_flags_t): New typedef.
9353         (struct modref_summary): Use eaf_flags_t.
9354         * tree-core.h (EAF_NOT_RETURNED): New constant.
9356 2021-07-16  Richard Biener  <rguenther@suse.de>
9358         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
9359         the type of the LHS.
9360         (gimple_assign_nonnegative_warnv_p): Likewise.
9361         (gimple_call_nonnegative_warnv_p): Likewise.  Return false
9362         if the call has no LHS.
9363         * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
9364         * tree-eh.c (stmt_could_throw_1_p): Likewise.
9365         * tree-inline.c (insert_init_stmt): Likewise.
9366         * tree-ssa-loop-niter.c (get_val_for): Likewise.
9367         * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
9368         the def.
9369         * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
9370         gassign *.  Use the type of the lhs.
9371         (vn_nary_op_lookup_stmt): Adjust.
9372         (vn_nary_op_insert_stmt): Likewise.
9374 2021-07-16  Ilya Leoshkevich  <iii@linux.ibm.com>
9376         * config/s390/predicates.md (bras_sym_operand): Accept all
9377         functions in 64-bit mode, use UNSPEC_PLT31.
9378         (larl_operand): Use UNSPEC_PLT31.
9379         * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
9380         (legitimize_pic_address): Likewise.
9381         (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
9382         use UNSPEC_PLT31.
9383         (s390_delegitimize_address): Use UNSPEC_PLT31.
9384         (s390_output_addr_const_extra): Likewise.
9385         (print_operand): Add @PLT to TLS calls, handle %K.
9386         (s390_function_profiler): Mark __fentry__/_mcount as function,
9387         use %K, use UNSPEC_PLT31.
9388         (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
9389         (s390_emit_call): Use UNSPEC_PLT31.
9390         (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
9391         * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
9392         (*movdi_64): Use %K.
9393         (reload_base_64): Likewise.
9394         (*sibcall_brc): Likewise.
9395         (*sibcall_brcl): Likewise.
9396         (*sibcall_value_brc): Likewise.
9397         (*sibcall_value_brcl): Likewise.
9398         (*bras): Likewise.
9399         (*brasl): Likewise.
9400         (*bras_r): Likewise.
9401         (*brasl_r): Likewise.
9402         (*bras_tls): Likewise.
9403         (*brasl_tls): Likewise.
9404         (main_base_64): Likewise.
9405         (reload_base_64): Likewise.
9406         (@split_stack_call<mode>): Likewise.
9408 2021-07-16  Richard Biener  <rguenther@suse.de>
9410         PR tree-optimization/101467
9411         * tree-vect-stmts.c (vect_gen_while): Properly guard
9412         make_temp_ssa_name usage.
9414 2021-07-16  Cooper Qu  <cooper.qu@linux.alibaba.com>
9416         * config.gcc: Don't use forked print-sysroot-suffix.sh and
9417         t-sysroot-suffix for C-SKY.
9418         * config/csky/print-sysroot-suffix.sh: Delete.
9419         * config/csky/t-csky-linux: Delete.
9420         * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
9421         instead of CSKY_MULTILIB_DIRNAMES.
9423 2021-07-16  Richard Biener  <rguenther@suse.de>
9425         * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
9426         conversion issues with the partial reduction of the reused
9427         vector accumulator.
9429 2021-07-16  Richard Biener  <rguenther@suse.de>
9431         * config/i386/i386-options.c (ix86_option_override_internal): Set
9432         param_vect_partial_vector_usage to zero if not set.
9434 2021-07-15  Uroš Bizjak  <ubizjak@gmail.com>
9436         PR target/101346
9437         * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
9438         (VALID_INT_MODE_P): Add SDmode and DDmode.
9439         Add TDmode for TARGET_64BIT.
9440         (VALID_DFP_MODE_P): Remove.
9441         * config/i386/i386.c (ix86_hard_regno_mode_ok):
9442         Do not use VALID_DFP_MODE_P.
9444 2021-07-15  Andrew MacLeod  <amacleod@redhat.com>
9446         * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
9447         gimple_range_type.
9448         (fold_using_range::fold_stmt): Ditto.
9449         (fold_using_range::range_of_range_op): Ditto.
9450         (fold_using_range::range_of_phi): Ditto.
9451         (fold_using_range::range_of_call): Ditto.
9452         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
9453         (fold_using_range::range_of_builtin_call): Ditto.
9454         (fold_using_range::range_of_cond_expr): Ditto.
9455         * gimple-range-fold.h (gimple_range_type): New.
9457 2021-07-15  Martin Sebor  <msebor@redhat.com>
9459         PR middle-end/97027
9460         * tree-ssa-strlen.c (handle_assign): New function.
9461         (maybe_warn_overflow): Add argument.
9462         (nonzero_bytes_for_type): New function.
9463         (count_nonzero_bytes): Handle more tree types.  Call
9464         nonzero_bytes_for_tye.
9465         (count_nonzero_bytes): Handle types.
9466         (handle_store): Handle stores from function calls.
9467         (strlen_check_and_optimize_call): Move code to handle_assign.  Call
9468         it for assignments from function calls.
9470 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
9472         PR analyzer/95006
9473         PR analyzer/94713
9474         PR analyzer/94714
9475         * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
9477 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
9479         * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
9481 2021-07-15  Martin Sebor  <msebor@redhat.com>
9483         PR c/101289
9484         PR c/97548
9485         * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
9486         (operand_compare::verify_hash_value): Same.
9487         * tree-core.h (OEP_DECL_NAME): New.
9489 2021-07-15  Martin Jambor  <mjambor@suse.cz>
9491         * profile-count.h (profile_count::value): Change the return type to
9492         uint64_t.
9493         * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
9494         statement.
9495         * tree-cfg.c (dump_function_to_file): Likewise.
9497 2021-07-15  Bill Schmidt  <wschmidt@linux.ibm.com>
9499         PR target/101129
9500         * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
9501         (rs6000_analyze_swaps): Insns containing a subreg of a mult are
9502         not swappable.
9504 2021-07-15  Richard Biener  <rguenther@suse.de>
9506         * tree-vectorizer.h (vect_gen_while): Match up with
9507         vect_gen_while_not.
9508         * tree-vect-stmts.c (vect_gen_while): Adjust API to that
9509         of vect_gen_while_not.
9510         (vect_gen_while_not): Adjust.
9511         * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
9513 2021-07-15  Aldy Hernandez  <aldyh@redhat.com>
9515         * gimple-range-cache.cc (non_null_ref::adjust_range): New.
9516         (ranger_cache::range_of_def): Call adjust_range.
9517         (ranger_cache::entry_range): Same.
9518         * gimple-range-cache.h (non_null_ref::adjust_range): New.
9519         * gimple-range.cc (gimple_ranger::range_of_expr): Call
9520         adjust_range.
9521         (gimple_ranger::range_on_entry): Same.
9523 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
9525         Revert:
9526         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
9528         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
9530 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
9532         Revert:
9533         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
9535         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
9536         (sdot_prod, udot_prod): ...These.
9537         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
9538         (aarch64_<sur>dot<vsi2qi>): Rename to...
9539         (<sur>dot_prod<vsi2qi>): ...This.
9540         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
9541         Update builtins.
9543 2021-07-15  Jakub Jelinek  <jakub@redhat.com>
9545         PR middle-end/101437
9546         * gimplify.c (gimplify_expr): Throw away volatile reads from empty
9547         types even if they have non-BLKmode TYPE_MODE.
9549 2021-07-15  Richard Biener  <rguenther@suse.de>
9551         PR driver/101383
9552         * gcc.c (process_command): Process -gtoggle like process_options
9553         would after parsing options.
9555 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
9557         * cfgexpand.c (expand_asm_loc): Adjust.
9558         (expand_asm_stmt): Likewise.
9559         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
9560         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
9561         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
9562         * config/avr/avr.c (avr_md_asm_adjust): Likewise.
9563         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
9564         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
9565         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
9566         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
9567         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
9568         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
9569         * config/s390/s390.c (s390_md_asm_adjust): Likewise.
9570         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
9571         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
9572         * doc/tm.texi: Regenerate.
9573         * target.def: Add location argument to md_asm_adjust.
9575 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
9577         * tree-diagnostic.c (diagnostic_report_current_function): Use the
9578         diagnostic's location, not input_location.
9580 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
9582         * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
9583         diagnostics.
9584         (expand_asm_stmt): Likewise.
9586 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
9588         * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
9589         addressed memory rtx, if any.
9590         (rs6000_split_multireg_move): Fix code formatting.
9591         Handle MMA build built-ins with operands in adjacent memory locations.
9593 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
9595         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
9596         in the file.
9598 2021-07-14  Jason Merrill  <jason@redhat.com>
9600         * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
9602 2021-07-14  Jason Merrill  <jason@redhat.com>
9604         * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
9605         C++.
9607 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
9609         * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
9610         Remove erroneous line.
9612 2021-07-14  Andrew MacLeod  <amacleod@redhat.com>
9614         * params.opt (param_evrp_mode): Change default.
9616 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
9618         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
9619         (sdot_prod, udot_prod): ...These.
9620         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
9621         (aarch64_<sur>dot<vsi2qi>): Rename to...
9622         (<sur>dot_prod<vsi2qi>): ...This.
9623         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
9624         Update builtins.
9626 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
9628         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
9630 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
9632         * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
9634 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
9636         * config/arm/neon.md (usdot_prod<vsi2qi>): New.
9638 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
9640         * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
9641         (usdot_prod<vsi2qi>): ... This.
9642         * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
9643         (usdot_prod): ...This.
9644         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
9645         * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
9646         Rename to...
9647         (@<sur>dot_prod<vsi2qi>): ...This.
9648         * config/aarch64/aarch64-sve-builtins-base.cc
9649         (svusdot_impl::expand): Use it.
9651 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
9653         * optabs.def (usdot_prod_optab): New.
9654         * doc/md.texi: Document it and clarify other dot prod optabs.
9655         * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
9656         * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
9657         * optabs.c (expand_widen_pattern_expr): Likewise.
9658         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
9659         * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
9660         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
9661         optab subtype.
9662         (vect_widened_op_tree): Optionally ignore
9663         mismatch types.
9664         (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
9666 2021-07-14  H.J. Lu  <hjl.tools@gmail.com>
9668         PR target/101395
9669         * config/i386/driver-i386.c (host_detect_local_cpu): Check
9670         "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
9671         Enable UINTR only for 64-bit codegen.
9672         * config/i386/i386-options.c
9673         (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
9674         in 64-bit mode.
9675         * config/i386/i386.h (ARCH_ARG): New.
9676         (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
9677         "[arch|tune] 64" for 64-bit codegen.
9679 2021-07-14  Richard Biener  <rguenther@suse.de>
9681         PR tree-optimization/101445
9682         * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
9683         of the IV in the correct direction for negative stride
9684         accesses.
9686 2021-07-14  Jakub Jelinek  <jakub@redhat.com>
9688         PR go/101407
9689         * godump.c (godump_str_hash): New type.
9690         (godump_container::pot_dummy_types): Use string_hash instead of
9691         ptr_hash in the hash_set.
9693 2021-07-14  Richard Biener  <rguenther@suse.de>
9695         * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
9696         vector types where the old vector type has a multiple of
9697         the new vector type elements.
9698         (vect_create_partial_epilog): New function, split out from...
9699         (vect_create_epilog_for_reduction): ... here.
9700         (vect_transform_cycle_phi): Reduce the re-used accumulator
9701         to the new vector type.
9703 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
9705         * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
9706         non-'t'-sized arg check.
9708 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
9710         * tree-cfg.c (cleanup_dead_labels_eh): Update
9711         post_landing_pad label upon change of landing pad block's
9712         primary label.
9713         (cleanup_dead_labels): Check that a removed label is not that
9714         of a landing pad.
9716 2021-07-13  Jonathan Wright  <jonathan.wright@arm.com>
9718         * combine.c (combine_simplify_rtx): Add vec_select -> subreg
9719         simplification.
9720         * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
9721         Add Neon to general purpose register case for zero-extend
9722         pattern.
9723         * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
9724         case to prevent some cases opting to go through memory.
9725         * cse.c (fold_rtx): Add vec_select -> subreg simplification.
9726         * rtl.c (rtvec_series_p): Define predicate to determine
9727         whether a vector contains a linear series of integers.
9728         * rtl.h (rtvec_series_p): Define.
9729         * rtlanal.c (vec_series_lowpart_p): Define predicate to
9730         determine if a vector selection is equivalent to the low part
9731         of the vector.
9732         * rtlanal.h (vec_series_lowpart_p): Define.
9733         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
9734         Add vec_select -> subreg simplification.
9736 2021-07-13  Paul A. Clarke  <pc@us.ibm.com>
9738         * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
9739         _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
9740         _mm_test_mix_ones_zeros): New.
9742 2021-07-13  Roger Sayle  <roger@nextmovesoftware.com>
9743             Richard Biener  <rguenther@suse.de>
9745         * gimple.c (gimple_could_trap_p_1):  Make S argument a
9746         "const gimple*".  Preserve constness in call to
9747         gimple_asm_volatile_p.
9748         (gimple_could_trap_p): Make S argument a "const gimple*".
9749         * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
9750         Update function prototypes.
9752 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
9754         * tree-vectorizer.h (vect_reusable_accumulator): New structure.
9755         (_loop_vec_info::main_loop_edge): New field.
9756         (_loop_vec_info::skip_main_loop_edge): Likewise.
9757         (_loop_vec_info::skip_this_loop_edge): Likewise.
9758         (_loop_vec_info::reusable_accumulators): Likewise.
9759         (_stmt_vec_info::reduc_scalar_results): Likewise.
9760         (_stmt_vec_info::reused_accumulator): Likewise.
9761         (vect_get_main_loop_result): Declare.
9762         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9763         reduc_scalar_inputs.
9764         (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
9765         * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
9766         (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
9767         skip_main_loop_edge and skip_this_loop_edge fields.
9768         * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
9769         (vect_emit_reduction_init_stmts): New function.
9770         (get_initial_def_for_reduction): Use it.
9771         (get_initial_defs_for_reduction): Likewise.  Change the vinfo
9772         parameter to a loop_vec_info.
9773         (vect_create_epilog_for_reduction): Store the scalar results
9774         in the reduc_info.  If an epilogue loop is reusing an accumulator
9775         from the main loop, and if the epilogue loop can also be skipped,
9776         try to place the reduction code in the join block.  Record
9777         accumulators that could potentially be reused by epilogue loops.
9778         (vect_transform_cycle_phi): When vectorizing epilogue loops,
9779         try to reuse accumulators from the main loop.  Record the initial
9780         value in reduc_info for non-SLP reductions too.
9782 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
9784         * tree-vect-loop.c (get_initial_def_for_reduction): Remove
9785         adjustment handling.  Take the neutral value as an argument,
9786         in place of the code argument.
9787         (vect_transform_cycle_phi): Update accordingly.  Handle the
9788         initial values of cond reductions separately from code reductions.
9789         Choose the adjustment here rather than in
9790         get_initial_def_for_reduction.  Sink the splat of vec_initial_def.
9792 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
9794         * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
9795         (neutral_op_for_reduction): ...this, providing a more general
9796         interface.
9797         (vect_create_epilog_for_reduction): Update accordingly.
9798         (vectorizable_reduction): Likewise.
9799         (vect_transform_cycle_phi): Likewise.
9801 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
9803         * tree-vect-loop.c (get_initial_def_for_reduction): Take the
9804         reduc_info instead of the original stmt_vec_info.
9805         (vect_transform_cycle_phi): Update accordingly.
9807 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
9809         * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
9810         reduc_info as an additional parameter.
9811         (vect_transform_cycle_phi): Update accordingly.
9813 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
9815         * tree-vectorizer.h: Include tree-ssa-operands.h.
9816         (vect_phi_initial_value): New function.
9817         * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
9818         (get_initial_defs_for_reduction, info_for_reduction): Likewise.
9819         (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
9820         (vect_transform_cycle_phi, vectorizable_induction): Likewise.
9822 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
9824         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
9825         the phi results to vectype after creating them.  Remove later
9826         conversion code that thus becomes redundant.
9828 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
9830         * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
9831         the new_phis vector with a reduc_inputs vector.  Combine handling
9832         of reduction chains and ncopies > 1.
9834 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
9836         * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
9837         scalar_results to group_size elements after reducing down from
9838         N*group_size elements.  Construct an array_slice of the live-out
9839         stmts and assert that there is one stmt per scalar result.
9841 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
9843         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
9844         nested_in_vect_loop and use double_reduc everywhere.  Remove dead
9845         assignment to "loop".
9847 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
9849         * internal-fn.c (vectorized_internal_fn_supported_p): Handle
9850         vector types first.  For scalar types, consider both the preferred
9851         vector mode and the alternative vector modes.
9852         * optabs-query.c (can_vec_mask_load_store_p): Use the same
9853         structure as above, in particular using related_vector_mode
9854         for modes provided by autovectorize_vector_modes.
9856 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
9857             Richard Biener  <rguenther@suse.de>
9859         PR tree-optimization/101419
9860         * tree-pass.h (PROP_objsz): Define.
9861         (make_pass_early_object_sizes): Declare.
9862         * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
9863         there to pass_early_object_sizes, drop parameter.
9864         (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
9865         drop parameter, move pass_post_ipa_warn right after that.
9866         * tree-object-size.c (pass_object_sizes::execute): Rename to...
9867         (object_sizes_execute): ... this.  Add insert_min_max_p argument.
9868         (pass_data_object_sizes): Move after object_sizes_execute.
9869         (pass_object_sizes): Likewise.  In execute method call
9870         object_sizes_execute, drop set_pass_param method and insert_min_max_p
9871         non-static data member and its initializer in the ctor.
9872         (pass_data_early_object_sizes, pass_early_object_sizes,
9873         make_pass_early_object_sizes): New.
9874         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
9875         (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
9877 2021-07-13  Kito Cheng  <kito.cheng@sifive.com>
9879         PR target/101275
9880         * config/riscv/constraints.md ("S"): Update description and remove
9881         @internal.
9882         * doc/md.texi (Machine Constraints): Document the 'S' constraints
9883         for RISC-V.
9885 2021-07-13  Richard Biener  <rguenther@suse.de>
9887         Revert:
9888         2021-07-12  Richard Biener  <rguenther@suse.de>
9890         * tree-vect-slp.c (vect_slp_region): Show the number of
9891         SLP graph entries in the optimization message.
9893 2021-07-13  Michael Meissner  <meissner@linux.ibm.com>
9895         * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
9896         value to to long.
9897         * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
9898         return type to long.
9899         * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
9900         type to long.
9902 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
9904         * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
9905         Query relation between the 2 operands and use it.
9907 2021-07-12  Sergei Trofimovich  <siarheit@google.com>
9909         * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
9911 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
9913         PR target/101424
9914         * config/i386/predicates.md (vec_setm_sse41_operand):
9915         Rename from vec_setm_operand.
9916         (vec_setm_avx2_operand): New predicate.
9917         * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
9918         Use vec_setm_sse41_operand as operand 2 predicate.
9919         (vec_set<V_256_512:mode): New expander.
9920         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
9921         as operand 2 predicate.
9923 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
9925         PR tree-optimization/101335
9926         * range-op.cc (operator_cast::lhs_op1_relation): Delete.
9928 2021-07-12  Andrew Pinski  <apinski@marvell.com>
9930         * tree-ssa-phiopt.c (match_simplify_replacement): Move
9931         insert of the sequence before the movement of the
9932         statement. Check if to see if the statement is used
9933         outside of the original phi to see if we should move it.
9935 2021-07-12  Richard Biener  <rguenther@suse.de>
9937         * dump-context.h (debug_dump_context::debug_dump_context):
9938         Add FILE * parameter defaulted to stderr.
9939         * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
9940         * tree-vect-slp.c (dot_slp_tree): New functions.
9942 2021-07-12  Richard Biener  <rguenther@suse.de>
9944         PR tree-optimization/101373
9945         * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
9946         references when the BB may not return.
9947         (compute_avail): Pass in the function we're working on and
9948         replace cfun references with it.  Externally throwing
9949         const calls also possibly terminate the function.
9950         (pass_pre::execute): Pass down the function we're working on.
9951         * gcse.c (compute_hash_table_work): Externally throwing
9952         const/pure calls also need record_last_mem_set_info.
9953         * postreload-gcse.c (record_opr_changes): Looping or externally
9954         throwing const/pure calls also need record_last_mem_set_info.
9956 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
9958         * recog.c (memory_address_addr_space_p): Change the type to bool.
9959         Return true/false instead of 1/0.
9960         (offsettable_memref_p): Ditto.
9961         (offsettable_nonstrict_memref_p): Ditto.
9962         (offsettable_address_addr_space_p): Ditto.
9963         Change the type of addressp indirect function to bool.
9964         * recog.h (memory_address_addr_space_p): Change the type to bool.
9965         (strict_memory_address_addr_space_p): Ditto.
9966         (offsettable_memref_p): Ditto.
9967         (offsettable_nonstrict_memref_p): Ditto.
9968         (offsettable_address_addr_space_p): Ditto.
9969         * reload.c (maybe_memory_address_addr_space_p): Ditto.
9970         (strict_memory_address_addr_space_p): Change the type to bool.
9971         Return true/false instead of 1/0.
9972         (maybe_memory_address_addr_space_p): Change the type to bool.
9974 2021-07-12  Richard Biener  <rguenther@suse.de>
9976         * tree-vect-slp.c (vect_slp_region): Show the number of
9977         SLP graph entries in the optimization message.
9979 2021-07-12  Richard Biener  <rguenther@suse.de>
9981         PR tree-optimization/101394
9982         * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
9983         copies from abnormals for a full redundancy.
9985 2021-07-12  Richard Biener  <rguenther@suse.de>
9987         PR middle-end/101423
9988         * gimple.c (gimple_could_trap_p_1): Internal function calls
9989         do not trap.
9990         * tree-eh.c (tree_could_trap_p): Likewise.
9992 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
9994         PR target/66791
9995         * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
9996         __a * __b.
9997         (vmulq_n_u32): Likewise.
9998         (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
9999         (vmulq_n_f32): Likewise.
10000         (vmul_n_f16): Likewise.
10001         (vmulq_n_f16): Likewise.
10003 2021-07-12  Martin Liska  <mliska@suse.cz>
10005         PR sanitizer/101425
10006         * gcc.c (check_offload_target_name): Call
10007           candidates_list_and_hint only if we have a candidate.
10009 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
10011         PR target/98435
10012         * config/arm/neon.md (vec_init): Move to ...
10013         * config/arm/vec-common.md (vec_init): ... here.
10014         Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
10016 2021-07-12  Roger Sayle  <roger@nextmovesoftware.com>
10018         PR tree-optimization/101403
10019         * match.pd ((T)bswap(X)>>C): Correctly handle cases where
10020         signedness of the shift is not the same as the signedness of
10021         the type extension.
10023 2021-07-09  Roger Sayle  <roger@nextmovesoftware.com>
10024             Uroš Bizjak  <ubizjak@gmail.com>
10026         * config/i386/i386.md (*divmodsi4_const): Optimize SImode
10027         divmod of a constant numerator with new define_insn_and_split.
10029 2021-07-09  Iain Sandoe  <iain@sandoe.co.uk>
10031         PR target/100152
10032         * config/i386/i386-expand.c (ix86_expand_call): If a call is
10033         to a non-local-binding, or local but to a public symbol, then
10034         assume that it might be indirected via the lazy symbol binder.
10035         Mark R10 and R10 as clobbered in that case.
10037 2021-07-09  Eric Botcazou  <ebotcazou@adacore.com>
10039         PR target/101377
10040         * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
10041         the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
10042         and HAVE_LD_BROKEN_PE_DWARF5 is defined.
10044 2021-07-09  Uroš Bizjak  <ubizjak@gmail.com>
10046         * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
10047         log2 range of operands[3] to [1,31].
10048         (*udivmodsi4_pow2_zext_2): Ditto.  Correct insn RTX pattern.
10050 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
10052         * doc/md.texi: Don't split @smallexample in multiple @groups.
10054 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
10056         * doc/md.texi: Add missing 'see' word.
10058 2021-07-09  Andrew Pinski  <apinski@marvell.com>
10060         * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
10061         to take sequence and gimple_match_op.  Accept the case where
10062         op is a SSA_NAME and one statement in the sequence.
10063         Also allow constants.
10064         (gimple_simplify_phiopt): Always pass a sequence to resimplify.
10065         Update call to phiopt_early_allow.  Discard the sequence if not
10066         used.
10068 2021-07-09  Xi Ruoyao  <xry111@mengyan1223.wang>
10070         PR target/100760
10071         PR target/100761
10072         PR target/100762
10073         * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
10074         instead of ISA_HAS_MSA.
10075         (mips_expand_vec_unpack): Likewise.
10076         (mips_expand_vector_init): Likewise.
10078 2021-07-09  Kewen Lin  <linkw@linux.ibm.com>
10080         * config/rs6000/vsx.md (mods_<mode>): Rename to...
10081         (mod<mode>3): ... this.
10082         (modu_<mode>): Rename to...
10083         (umod<mode>3): ... this.
10084         * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
10085         MODU_V4SI): Adjust.
10087 2021-07-08  Jeff Law  <jeffreyalaw@gmail.com>
10089         * config/h8300/shiftrotate.md (variable shifts): Expose condition
10090         code handling for the test before the loop.
10092 2021-07-08  Martin Jambor  <mjambor@suse.cz>
10094         PR ipa/101066
10095         * ipa-sra.c (class isra_call_summary): New member
10096         m_before_any_store, initialize it in the constructor.
10097         (isra_call_summary::dump): Dump the new field.
10098         (ipa_sra_call_summaries::duplicate): Copy it.
10099         (process_scan_results): Set it.
10100         (isra_write_edge_summary): Stream it.
10101         (isra_read_edge_summary): Likewise.
10102         (param_splitting_across_edge): Only override
10103         safe_to_import_accesses if m_before_any_store is set.
10105 2021-07-08  Martin Sebor  <msebor@redhat.com>
10107         PR bootstrap/101374
10108         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
10109         Use Object Size Type 0 instead of 1.
10111 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
10113         * tree-vect-loop.c (vectorizable_reduction): Remove always-true
10114         if condition.
10116 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
10118         * match.pd: Simplify an extend-operate-truncate sequence involving
10119         a POLY_INT_CST.
10121 2021-07-08  Roger Sayle  <roger@nextmovesoftware.com>
10122             Richard Biener  <rguenther@suse.de>
10124         PR tree-optimization/40210
10125         * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
10126         (x>>C3)&C2 when possible.  Simplify bswap(x)>>C1 as ((T)x)>>C2
10127         when possible.  Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
10129 2021-07-08  Uroš Bizjak  <ubizjak@gmail.com>
10131         PR target/100637
10132         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
10133         Handle V4QI mode.
10134         * config/i386/mmx.md (V_32): New mode iterator.
10135         (mov<V_32:mode>): Use V_32 mode iterator.
10136         (*mov<V_32:mode>_internal): Ditto.
10137         (*push<V_32:mode>2_rex64): Ditto.
10138         (*push<V_32:mode>2): Ditto.
10139         (movmisalign<V_32:mode>): Ditto.
10140         (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
10141         (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
10142         (vec_unpacks_lo_v4qi): New expander.
10143         (vec_unpacks_hi_v4qi): Ditto.
10144         (vec_unpacku_lo_v4qi): Ditto.
10145         (vec_unpacku_hi_v4qi): Ditto.
10146         * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
10147         (VALID_INT_MODE_P): Ditto.
10149 2021-07-08  Michael Meissner  <meissner@linux.ibm.com>
10151         PR target/100809
10152         * config/rs6000/rs6000.md (udivti3): New insn.
10153         (divti3): New insn.
10154         (umodti3): New insn.
10155         (modti3): New insn.
10157 2021-07-07  Martin Sebor  <msebor@redhat.com>
10159         PR tree-optimization/100137
10160         PR tree-optimization/99121
10161         PR tree-optimization/97027
10162         * builtins.c (access_ref::access_ref): Also set offmax.
10163         (access_ref::offset_in_range): Define new function.
10164         (access_ref::add_offset): Set offmax.
10165         (access_ref::inform_access): Handle access_none.
10166         (handle_mem_ref): Clear ostype.
10167         (compute_objsize_r): Handle ASSERT_EXPR.
10168         * builtins.h (struct access_ref): Add offmax member.
10169         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
10170         compute_objsize() and simplify.
10172 2021-07-07  Peter Bergner  <bergner@linux.ibm.com>
10174         * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
10175         and VSX_BUILTIN_STXVP.
10177 2021-07-07  Martin Sebor  <msebor@redhat.com>
10179         PR target/101363
10180         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
10181         a stray %K from error_at() missed in r12-2088.
10183 2021-07-07  Richard Biener  <rguenther@suse.de>
10185         PR tree-optimization/99728
10186         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
10187         aggregate copies.
10188         (mem_refs_may_alias_p): Add assert we handled aggregate
10189         copies elsewhere.
10190         (sm_seq_valid_bb): Give up when running into aggregate copies.
10191         (ref_indep_loop_p): Handle aggregate copies as never
10192         being invariant themselves but allow other refs to be
10193         disambiguated against them.
10194         (can_sm_ref_p): Do not try to apply store-motion to aggregate
10195         copies.
10197 2021-07-06  Indu Bhagat  <indu.bhagat@oracle.com>
10199         PR debug/101283
10200         * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
10201         number of bits.
10203 2021-07-06  Martin Sebor  <msebor@redhat.com>
10205         * gimple-pretty-print.c (percent_G_format): Remove.
10206         * tree-diagnostic.c (default_tree_printer): Remove calls.
10207         * tree-pretty-print.c (percent_K_format): Remove.
10208         * tree-pretty-print.h (percent_K_format): Remove.
10210 2021-07-06  Martin Sebor  <msebor@redhat.com>
10212         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
10213         Remove %K and use error_at.
10214         (aarch64_expand_fcmla_builtin): Same.
10215         (aarch64_expand_builtin_tme): Same.
10216         (aarch64_expand_builtin_memtag): Same.
10217         * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
10218         (arm_expand_builtin): Same.
10219         * config/arm/arm.c (bounds_check): Same.
10221 2021-07-06  Martin Sebor  <msebor@redhat.com>
10223         * builtins.c (warn_string_no_nul): Remove %G.
10224         (maybe_warn_for_bound): Same.
10225         (warn_for_access): Same.
10226         (check_access): Same.
10227         (check_strncat_sizes): Same.
10228         (expand_builtin_strncat): Same.
10229         (expand_builtin_strncmp): Same.
10230         (expand_builtin): Same.
10231         (expand_builtin_object_size): Same.
10232         (warn_dealloc_offset): Same.
10233         (maybe_emit_free_warning): Same.
10234         * calls.c (maybe_warn_alloc_args_overflow): Same.
10235         (maybe_warn_nonstring_arg): Same.
10236         (maybe_warn_rdwr_sizes): Same.
10237         * expr.c (expand_expr_real_1): Remove %K.
10238         * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
10239         (gimple_fold_builtin_strncat): Same.
10240         * gimple-ssa-sprintf.c (format_directive): Same.
10241         (handle_printf_call): Same.
10242         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
10243         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
10244         (maybe_diag_access_bounds): Same.  Call gimple_location.
10245         (check_bounds_or_overlap): Same.
10246         * trans-mem.c (ipa_tm_scan_irr_block): Remove %K.  Simplify.
10247         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
10248         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
10249         (maybe_diag_stxncpy_trunc): Same.
10250         (handle_builtin_stxncpy_strncat): Same.
10251         (maybe_warn_pointless_strcmp): Same.
10252         * tree-ssa-uninit.c (maybe_warn_operand): Same.
10254 2021-07-06  Uroš Bizjak  <ubizjak@gmail.com>
10256         PR target/97194
10257         * config/i386/predicates.md (vec_setm_operand): Enable
10258         register_operand for TARGET_SSE4_1.
10259         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
10260         as operand 2 predicate.  Call ix86_expand_vector_set_var
10261         for non-constant index operand.
10262         (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
10263         Call ix86_expand_vector_set_var for non-constant index operand.
10265 2021-07-06  Jeff Law  <jeffreyalaw@gmail.com>
10267         * config/h8300/jumpcall.md (*branch): When possible, generate
10268         the comparison in CCZN mode.
10269         * config/h8300/predicates.md (simple_memory_operand): Reject all
10270         auto-increment addressing modes.
10272 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
10274         PR bootstrap/100246
10275         * config/i386/i386.h (struct stringop_algs): Define a CTOR for
10276         this type.
10278 2021-07-06  Richard Biener  <rguenther@suse.de>
10280         * doc/md.texi (vec_fmaddsub<mode>4): Document.
10281         (vec_fmsubadd<mode>4): Likewise.
10282         * optabs.def (vec_fmaddsub$a4): Add.
10283         (vec_fmsubadd$a4): Likewise.
10284         * internal-fn.def (IFN_VEC_FMADDSUB): Add.
10285         (IFN_VEC_FMSUBADD): Likewise.
10286         * tree-vect-slp-patterns.c (addsub_pattern::recognize):
10287         Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
10288         (addsub_pattern::build): Likewise.
10289         * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
10290         and CFN_VEC_FMSUBADD are not transparent for permutes.
10291         * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
10292         (vec_fmsubadd<mode>4): Likewise.
10294 2021-07-06  Richard Biener  <rguenther@suse.de>
10296         * doc/invoke.texi (fmove-loop-stores): Document.
10297         * common.opt (fmove-loop-stores): New option.
10298         * opts.c (default_options_table): Enable -fmove-loop-stores
10299         at -O1 but not -Og.
10300         * tree-ssa-loop-im.c (pass_lim::execute): Pass
10301         flag_move_loop_stores instead of true to
10302         loop_invariant_motion_in_fun.
10304 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
10306         * doc/install.texi: Document --with-dsymutil.
10308 2021-07-06  Andrew Pinski  <apinski@marvell.com>
10310         PR tree-optimization/101256
10311         * dbgcnt.def (phiopt_edge_range): New counter.
10312         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
10313         Check to make sure the new name is defined in the same
10314         bb as the conditional before duplicating range info.
10315         Also add debug counter.
10317 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
10319         PR rtl-optimization/100328
10320         * config/i386/i386-options.c (ix86_option_override_internal):
10321         Set param_ira_consider_dup_in_all_alts to 0.
10323 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
10325         PR rtl-optimization/100328
10326         * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
10327         parameter.
10328         * ira.c (ira_get_dup_out_num): Adjust as parameter
10329         param_ira_consider_dup_in_all_alts.
10330         * params.opt (ira-consider-dup-in-all-alts): New.
10331         * ira-conflicts.c (process_regs_for_copy): Add one parameter
10332         single_input_op_has_cstr_p.
10333         (get_freq_for_shuffle_copy): New function.
10334         (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
10335         * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
10337 2021-07-05  Jeff Law  <jeffreyalaw@gmail.com>
10339         * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
10340         generate condition code aware RTL directly.
10342 2021-07-05  Andrew Pinski  <apinski@marvell.com>
10344         PR tree-optimization/101039
10345         * match.pd (A CMP 0 ? A : -A): New patterns.
10346         * tree-ssa-phiopt.c (abs_replacement): Delete function.
10347         (tree_ssa_phiopt_worker): Don't call abs_replacement.
10348         Update comment about abs_replacement.
10350 2021-07-05  Andrew Pinski  <apinski@marvell.com>
10352         * tree-ssa-phiopt.c (gimple_simplify_phiopt):
10353         If "A ? B : C" fails to simplify, try "(!A) ? C : B".
10355 2021-07-05  Andrew Pinski  <apinski@marvell.com>
10357         * tree-ssa-phiopt.c (match_simplify_replacement):
10358         Add early_p argument. Call gimple_simplify_phiopt
10359         instead of gimple_simplify.
10360         (tree_ssa_phiopt_worker): Update call to
10361         match_simplify_replacement and allow unconditionally.
10362         (phiopt_early_allow): New function.
10363         (gimple_simplify_phiopt): New function.
10365 2021-07-05  Andrew Pinski  <apinski@marvell.com>
10367         PR middle-end/101237
10368         * fold-const.c (negate_expr_p): Remove call to element_mode
10369         and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
10370         HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
10371         (fold_negate_expr_1): Likewise.
10372         (const_unop): Likewise.
10373         (fold_cond_expr_with_comparison): Likewise.
10374         (fold_binary_loc): Likewise.
10375         (fold_ternary_loc): Likewise.
10376         (tree_call_nonnegative_warnv_p): Likewise.
10377         * match.pd (-(A + B) -> (-B) - A): Likewise.
10379 2021-07-05  Iain Sandoe  <iain@sandoe.co.uk>
10381         * configure.ac: Handle --with-dsymutil in the same way as we
10382         do for the assembler and linker.  (DEFAULT_DSYMUTIL): New.
10383         Extract the type and version for the dsymutil configured or
10384         found by the default searches.
10385         * config.in: Regenerated.
10386         * configure: Regenerated.
10387         * collect2.c (do_dsymutil): Handle locating dsymutil in the
10388         same way as for the assembler and  linker.
10389         * config/darwin.h (DSYMUTIL): Delete.
10390         * gcc.c: Report a configured dsymutil correctly.
10391         * exec-tool.in: Allow for dsymutil.
10393 2021-07-05  Uroš Bizjak  <ubizjak@gmail.com>
10395         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
10396         Handle V4QI and V2HI modes.
10397         (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
10398         Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
10399         (expand_vec_perm_pshufb): Rewrite to use switch statemets.
10400         Handle 4-byte dual operands with TARGET_XOP and single operands
10401         with TARGET_SSSE3.  Emit mmx_ppermv32 for TARGET_XOP and
10402         mmx_pshufbv4qi3 for TARGET_SSSE3.
10403         (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
10404         (expand_vec_perm_interleave2): Allow 4-byte vector modes.
10405         (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
10406         (expand_vec_perm_even_odd_1): Handle V4QI mode.
10407         (expand_vec_perm_broadcast_1): Handle V4QI mode.
10408         (ix86_vectorize_vec_perm_const): Handle V4QI mode.
10409         * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
10410         (mmx_pshufbv4qi3): Ditto.
10411         (*mmx_pblendw32): Ditto.
10412         (*mmx_pblendw64): Rename from *mmx_pblendw.
10413         (mmx_punpckhbw_low): New insn_and_split pattern.
10414         (mmx_punpcklbw_low): Ditto.
10416 2021-07-05  Richard Biener  <rguenther@suse.de>
10418         * tree-vect-loop-manip.c (vect_loop_versioning): Do not
10419         set LOOP_C_INFINITE on the vectorized loop.
10421 2021-07-05  Richard Biener  <rguenther@suse.de>
10423         PR middle-end/101291
10424         * cfgloopmanip.c (loop_version): Set the loop copy of the
10425         versioned loop to the new loop.
10427 2021-07-04  Iain Sandoe  <iain@sandoe.co.uk>
10429         PR target/100269
10430         * config.gcc: Ensure that Darwin biarch definitions are
10431         added before i386.h.
10432         * config/i386/darwin.h (TARGET_64BIT): Remove.
10433         (PR80556_WORKAROUND): New.
10434         (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
10435         (DARWIN_SUBARCH_SPEC): New.
10436         * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
10437         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
10438         (REAL_LIBGCC_SPEC): Remove.
10439         * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
10440         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
10441         (REAL_LIBGCC_SPEC): Remove.
10443 2021-07-03  H.J. Lu  <hjl.tools@gmail.com>
10445         PR middle-end/101294
10446         * expr.c (store_constructor): Don't use vec_duplicate on vector.
10448 2021-07-02  Martin Sebor  <msebor@redhat.com>
10450         PR middle-end/98871
10451         PR middle-end/98512
10452         * diagnostic.c (get_any_inlining_info): New.
10453         (update_effective_level_from_pragmas): Handle inlining context.
10454         (diagnostic_enabled): Same.
10455         (diagnostic_report_diagnostic): Same.
10456         * diagnostic.h (struct diagnostic_info): Add ctor.
10457         (struct diagnostic_context): Add new member.
10458         * tree-diagnostic.c (set_inlining_locations): New.
10459         (tree_diagnostics_defaults): Set new callback pointer.
10461 2021-07-02  Peter Bergner  <bergner@linux.ibm.com>
10463         * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
10464         New macros.
10465         (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
10466         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
10467         lxvp and stxvp built-ins.
10468         (mma_init_builtins): Handle lxvp and stxvp built-ins.
10469         (builtin_function_type): Likewise.
10470         * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
10472 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
10474         * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
10475         additional argument for the code.
10476         * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
10477         argument for the code.  Just return if the ZN bits are useful or
10478         not rather than the old style CC_* enums.
10479         * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
10480         more generic shiftqi patterns.
10481         (shifthi_noscratch, shiftsi_noscratch): Similarly.
10482         (shiftqi_noscratch_set_flags): New pattern.
10483         (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
10485 2021-07-02  Andrew MacLeod  <amacleod@redhat.com>
10487         PR tree-optimization/101223
10488         * range-op.cc (build_lt): Add -1 for signed values.
10489         (built_gt): Subtract -1 for signed values.
10491 2021-07-02  David Faust  <david.faust@oracle.com>
10493         * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
10494         (btf_asm_type): Likewise.
10496 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
10498         * config/h8300/h8300-protos.h (output_a_shift): Make first argument
10499         an array of rtx rather than a pointer to rtx.  Add code argument.
10500         (compute_a_shift_length): Similarly.
10501         * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
10502         shift itself isn't an operand.  Create dummy operand[0] to carry
10503         a mode and pass a suitable rtx code to compute_a_shift_length.
10504         (get_shift_alg): Adjust operand number of clobber in output templates.
10505         (output_a_shift): Make first argument an array of rtx rather than
10506         a pointer to rtx.  Add code argument for the type of shift.
10507         Adjust now that the shift itself is no longer an operand.
10508         (compute_a_shift_length): Similarly.
10509         * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
10510         iterator rather than nshift_operator.
10511         (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
10512         (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
10513         and compute_a_shift_length.
10514         (shiftqi_noscratch_clobber_flags): Likewise.
10515         (shifthi_noscratch_clobber_flags): Likewise.
10516         (shiftsi_noscratch_clobber_flags): Likewise.
10518 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
10520         PR debug/101283
10521         * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
10522         dsymutil for BTF/CTF.
10524 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
10526         PR debug/101283
10527         * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
10528         segment to include BTF.
10529         (BTF_INFO_SECTION_NAME): New.
10531 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
10533         * config/m32r/m32r-protos.h (call_operand): Adjust return type.
10534         (small_data_operand, memreg_operand, small_insn_p): Likewise.
10535         * config/m32r/m32r.c (call_operand): Adjust return type.
10536         (small_data_operand, memreg_operand): Likewise.
10538 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
10540         * config/frv/frv-protos.h  (integer_register_operand): Adjust return
10541         type.
10542         (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
10543         (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
10544         (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
10545         (move_source_operand, move_destination_operand): Likewise.
10546         (condexec_source_operand, condexec_dest_operand): Likewise.
10547         (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
10548         (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
10549         (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
10550         (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
10551         (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
10552         (even_fpr_operand, odd_fpr_operand): Likewise.
10553         (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
10554         (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
10555         (uint4_operand, uint1_operand, int_2word_operand): Likewise
10556         (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
10557         (relational_operator, float_relational_operator): Likewise.
10558         (ccr_eqne_operator, minmax_operator): Likewise.
10559         (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
10560         (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
10561         (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
10562         (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
10563         (quad_acc_operand, accg_operand): Likewise.
10565 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
10567         * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
10568         return type to a bool.
10569         (nonimmediate_nonstack_operand): Likewise.
10570         (xstormy16_splittable_below100_operand): Likewise.
10571         * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
10572         return type.
10573         (xstormy16_splittable_below100_operand): Likewise.
10575 2021-07-02  Richard Biener  <rguenther@suse.de>
10577         PR tree-optimization/101293
10578         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
10579         with combined offsets.
10580         (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
10581         combined with the rest of the offset.
10583 2021-07-02  Eric Botcazou  <ebotcazou@adacore.com>
10585         * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
10586         PIC encodings for PE-COFF targets.
10588 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
10590         PR target/101286
10591         * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
10592         Return nullptr for TImode inner mode.
10594 2021-07-02  Richard Biener  <rguenther@suse.de>
10596         PR tree-optimization/101280
10597         PR tree-optimization/101173
10598         * gimple-loop-interchange.cc
10599         (tree_loop_interchange::valid_data_dependences): Properly
10600         guard all dependence checks with DDR_REVERSED_P or its
10601         inverse.
10603 2021-07-02  Hongyu Wang  <hongyu.wang@intel.com>
10605         * config/i386/i386-expand.c (ix86_expand_builtin):
10606         Add branch to clear odata when ZF is set for asedecenc_expand
10607         and wideaesdecenc_expand.
10609 2021-07-02  Eugene Rozenfeld  <erozen@microsoft.com>
10611         * config/i386/gcc-auto-profile: regenerate
10613 2021-07-02  liuhongt  <hongtao.liu@intel.com>
10615         * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
10616         (trunc<mode><pmov_dst_4_lower>2): this.
10618 2021-07-01  David Malcolm  <dmalcolm@redhat.com>
10620         * diagnostic.h (diagnostic_context::m_file_cache): New field.
10621         * input.c (class fcache): Rename to...
10622         (class file_cache_slot): ...this, making most members private and
10623         prefixing fields with "m_".
10624         (file_cache_slot::get_file_path): New accessor.
10625         (file_cache_slot::get_use_count): New accessor.
10626         (file_cache_slot::missing_trailing_newline_p): New accessor.
10627         (file_cache_slot::inc_use_count): New.
10628         (fcache_buffer_size): Move to...
10629         (file_cache_slot::buffer_size): ...here.
10630         (fcache_line_record_size): Move to...
10631         (file_cache_slot::line_record_size): ...here.
10632         (fcache_tab): Delete, in favor of global_dc->m_file_cache.
10633         (fcache_tab_size): Move to file_cache::num_file_slots.
10634         (diagnostic_file_cache_init): Update for move of fcache_tab
10635         to global_dc->m_file_cache.
10636         (diagnostic_file_cache_fini): Likewise.
10637         (lookup_file_in_cache_tab): Convert to...
10638         (file_cache::lookup_file): ...this.
10639         (diagnostics_file_cache_forcibly_evict_file): Update for move of
10640         fcache_tab to global_dc->m_file_cache, moving most of
10641         implementation to...
10642         (file_cache::forcibly_evict_file): ...this new function and...
10643         (file_cache_slot::evict): ...this new function.
10644         (evicted_cache_tab_entry): Convert to...
10645         (file_cache::evicted_cache_tab_entry): ...this.
10646         (add_file_to_cache_tab): Convert to...
10647         (file_cache::add_file): ...this, moving bulk of implementation
10648         to...
10649         (file_cache_slot::create): ..this new function.
10650         (file_cache::file_cache): New.
10651         (file_cache::~file_cache): New.
10652         (lookup_or_add_file_to_cache_tab): Convert to...
10653         (file_cache::lookup_or_add_file): ..this new function.
10654         (fcache::fcache): Rename to...
10655         (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
10656         to fields.
10657         (fcache::~fcache): Rename to...
10658         (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
10659         to fields.
10660         (needs_read): Convert to...
10661         (file_cache_slot::needs_read_p): ...this.
10662         (needs_grow): Convert to...
10663         (file_cache_slot::needs_grow_p): ...this.
10664         (maybe_grow): Convert to...
10665         (file_cache_slot::maybe_grow): ...this.
10666         (read_data): Convert to...
10667         (file_cache_slot::read_data): ...this.
10668         (maybe_read_data): Convert to...
10669         (file_cache_slot::maybe_read_data): ...this.
10670         (get_next_line): Convert to...
10671         (file_cache_slot::get_next_line): ...this.
10672         (goto_next_line): Convert to...
10673         (file_cache_slot::goto_next_line): ...this.
10674         (read_line_num): Convert to...
10675         (file_cache_slot::read_line_num): ...this.
10676         (location_get_source_line): Update for moving of globals to
10677         global_dc->m_file_cache.
10678         (location_missing_trailing_newline): Likewise.
10679         * input.h (class file_cache_slot): New forward decl.
10680         (class file_cache): New.
10682 2021-07-01  Michael Meissner  <meissner@linux.ibm.com>
10684         * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
10685         128-bit floating point conditional move support.
10686         (have_compare_and_set_mask): Add IEEE 128-bit floating point
10687         types.
10688         * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
10689         (mov<mode>cc_p10, IEEE128 iterator): New insn.
10690         (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
10691         (fpmask<mode>, IEEE128 iterator): New insn.
10692         (xxsel<mode>, IEEE128 iterator): New insn.
10694 2021-07-01  Iain Sandoe  <iain@sandoe.co.uk>
10696         PR debug/101283
10697         * config/darwin.h (CTF_INFO_SECTION_NAME): New.
10699 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
10701         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
10702         Make it global.
10703         * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
10704         New prototype.
10705         * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
10706         (vec_duplicate<mode>): New expander.
10708 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
10710         PR target/100865
10711         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
10712         New prototype.
10713         (ix86_byte_broadcast): New function.
10714         (ix86_convert_const_wide_int_to_broadcast): Likewise.
10715         (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
10716         size is 16 bytes or bigger.
10717         (ix86_broadcast_from_integer_constant): New function.
10718         (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
10719         to broadcast if mode size is 16 bytes or bigger.
10720         * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
10721         prototype.
10722         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
10724 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
10726         * config/i386/predicates.md (ix86_endbr_immediate_operand):
10727         Return true/false instead of 1/0.
10728         (movq_parallel): Ditto.
10730 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
10732         * recog.c (general_operand): Return true/false instead of 1/0.
10733         (register_operand): Ditto.
10734         (immediate_operand): Ditto.
10735         (const_int_operand): Ditto.
10736         (const_scalar_int_operand): Ditto.
10737         (const_double_operand): Ditto.
10738         (push_operand): Ditto.
10739         (pop_operand): Ditto.
10740         (memory_operand): Ditto.
10741         (indirect_operand): Ditto.
10743 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
10745         * genpreds.c (write_predicate_subfunction):
10746         Change the type of written subfunction to bool.
10747         (write_one_predicate_function):
10748         Change the type of written function to bool.
10749         (write_tm_preds_h): Ditto.
10750         * recog.h (*insn_operand_predicate_fn): Change the type to bool.
10751         * recog.c (general_operand): Change the type to bool.
10752         (address_operand): Ditto.
10753         (register_operand): Ditto.
10754         (pmode_register_operand): Ditto.
10755         (scratch_operand): Ditto.
10756         (immediate_operand): Ditto.
10757         (const_int_operand): Ditto.
10758         (const_scalar_int_operand): Ditto.
10759         (const_double_operand): Ditto.
10760         (nonimmediate_operand): Ditto.
10761         (nonmemory_operand): Ditto.
10762         (push_operand): Ditto.
10763         (pop_operand): Ditto.
10764         (memory_operand): Ditto.
10765         (indirect_operand): Ditto.
10766         (ordered_comparison_operator): Ditto.
10767         (comparison_operator): Ditto.
10768         * config/i386/i386-expand.c (ix86_expand_sse_cmp):
10769         Change the type of indirect predicate function to bool.
10770         * config/rs6000/rs6000.c (easy_vector_constant):
10771         Change the type to bool.
10772         * config/mips/mips-protos.h (m16_based_address_p):
10773         Change the type of operand 3 to bool.
10775 2021-07-01  Richard Biener  <rguenther@suse.de>
10777         PR tree-optimization/101280
10778         PR tree-optimization/101173
10779         * gimple-loop-interchange.cc
10780         (tree_loop_interchange::valid_data_dependences): Revert
10781         previous change and instead correctly handle DDR_REVERSED_P
10782         dependence.
10784 2021-07-01  Richard Biener  <rguenther@suse.de>
10786         PR tree-optimization/101278
10787         * tree-ssa-dse.c (dse_classify_store): First check for
10788         uses, then ignore stmt for chaining purposes.
10790 2021-07-01  Richard Biener  <rguenther@suse.de>
10792         PR tree-optimization/100778
10793         * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
10794         vectorized ops ahead of their scalar BB.
10796 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
10798         PR target/101044
10799         * config/i386/i386.md (*nabs<dwi>2_doubleword):
10800         New insn_and_split pattern.
10801         (*nabs<dwi>2_1): Ditto.
10802         * config/i386/i386-features.c
10803         (general_scalar_chain::compute_convert_gain):
10804         Handle (NEG (ABS (...))) RTX.  Rewrite src code
10805         scanner as switch statement.
10806         (general_scalar_chain::convert_insn):
10807         Handle (NEG (ABS (...))) RTX.
10808         (general_scalar_to_vector_candidate_p):
10809         Detect  (NEG (ABS (...))) RTX.  Reorder case statements
10810         for (AND (NOT (...) ...)) fallthrough.
10812 2021-07-01  Richard Biener  <rguenther@suse.de>
10814         PR tree-optimization/101178
10815         * tree-vect-slp.c (slpg_vertex::materialize): Remove.
10816         (slpg::perm_in): Add.
10817         (slpg::get_perm_in): Remove.
10818         (slpg::get_perm_materialized): Add.
10819         (vect_optimize_slp): Handle VEC_PERM nodes more optimally
10820         during permute propagation and materialization.
10822 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
10824         PR debug/101266
10825         * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
10827 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
10829         PR middle-end/94366
10830         * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
10831         is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
10832         use boolean_type_node instead of integer_type_node as NE_EXPR type.
10833         (lower_reduction_clauses): Likewise.
10835 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
10837         * config/gcn/gcn.c: Include dwarf2.h.
10838         (gcn_addr_space_debug): New function.
10839         (TARGET_ADDR_SPACE_DEBUG): New hook.
10841 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
10843         * common/config/gcn/gcn-common.c
10844         (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
10845         * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
10846         when emitting CFI.
10847         (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
10848         (gcn_frame_pointer_rqd): New function.
10849         (TARGET_FRAME_POINTER_REQUIRED): New hook.
10851 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
10853         * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
10854         prologue register saves.
10855         (gcn_debug_unwind_info): Use UI_DWARF2.
10856         (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
10857         (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
10858         * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
10859         (DWARF_LINK_REGISTER): New define.
10860         (FIRST_PSEUDO_REGISTER): Increment.
10861         (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
10862         (CALL_USED_REGISTERS): Likewise.
10863         (REGISTER_NAMES): Likewise.
10865 2021-06-30  Richard Biener  <rguenther@suse.de>
10867         PR tree-optimization/101267
10868         * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
10869         API and use SLP compatible interface of vect_is_simple_use.
10870         Reject not vectorized SLP defs for callers that do not support
10871         that.
10872         (vect_check_store_rhs): Handle masked stores and pass down
10873         the appropriate operator index.
10874         (vectorizable_call): Adjust.
10875         (vectorizable_store): Likewise.
10876         (vectorizable_load): Likewise.  Handle SLP pecularity of
10877         masked loads.
10878         (vect_is_simple_use): Remove special-casing of masked stores.
10880 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
10882         * common.opt (foffload): Remove help as Driver only.
10883         * gcc.c (display_help): Add -foffload.
10885 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
10887         * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
10888         (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
10889         a candidate list; better inform no offload target is configured
10890         and fix hint extraction when passed target is not '\0' at [len].
10891         * common.opt (foffload): Add tailing '.'.
10892         (foffload-options): Likewise; fix flag name in the help string.
10894 2021-06-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
10896         PR target/66791
10897         * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
10898         (vcage_f32): Gate comparison on __FAST_MATH__.
10899         (vcageq_f32): Likewise.
10900         (vcale_f32): Likewise.
10901         (vcaleq_f32): Likewise.
10902         (vcagt_f32): Likewise.
10903         (vcagtq_f32): Likewise.
10904         (vcalt_f32): Likewise.
10905         (vcaltq_f32): Likewise.
10906         (vcage_f16): Likewise.
10907         (vcageq_f16): Likewise.
10908         (vcale_f16): Likewise.
10909         (vcaleq_f16): Likewise.
10910         (vcagt_f16): Likewise.
10911         (vcagtq_f16): Likewise.
10912         (vcalt_f16): Likewise.
10913         (vcaltq_f16): Likewise.
10915 2021-06-30  Richard Biener  <rguenther@suse.de>
10917         PR tree-optimization/101264
10918         * tree-vect-slp.c (vect_optimize_slp): Propagate the
10919         computed perm_in to all "any" permute successors
10920         we cannot de-duplicate immediately.
10922 2021-06-30  liuhongt  <hongtao.liu@intel.com>
10924         PR target/101248
10925         * config/i386/sse.md
10926         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
10927         Refined to ..
10928         (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
10929         this.
10930         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
10931         * config/i386/subst.md (maskz_scalar): New define_subst.
10932         (maskz_scalar_name): New subst_attr.
10933         (maskz_scalar_op5): Ditto.
10934         (round_saeonly_maskz_scalar_op5): Ditto.
10935         (round_saeonly_maskz_scalar_operand5): Ditto.
10937 2021-06-30  David Edelsohn  <dje.gcc@gmail.com>
10939         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
10940         Increase code CSECT alignment to at least 32 bytes.
10941         * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
10942         alignment designation.
10944 2021-06-29  Sergei Trofimovich  <siarheit@google.com>
10946         * doc/generic.texi: Fix s/net yet/not yet/ typo.
10948 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
10950         PR tree-optimization/101254
10951         * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
10952         wrapping/non-wrapping when setting the result range.
10954 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
10956         * value-query.cc (gimple_range_global): Allow phis.
10958 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
10960         * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
10961         (simplify_using_ranges::op_with_boolean_value_range_p): Add a
10962         statement for location context.
10963         (check_for_binary_op_overflow): Ditto.
10964         (simplify_using_ranges::get_vr_for_comparison): Ditto.
10965         (simplify_using_ranges::compare_name_with_value): Ditto.
10966         (simplify_using_ranges::compare_names): Ditto.
10967         (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
10968         (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
10969         (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
10970         (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
10971         (simplify_using_ranges::two_valued_val_range_p): Ditto.
10972         (simplify_using_ranges::simplify): Ditto.
10973         * vr-values.h: Adjust prototypes.
10975 2021-06-29  Uroš Bizjak  <ubizjak@gmail.com>
10977         PR target/95046
10978         * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
10980 2021-06-29  Julian Brown  <julian@codesourcery.com>
10982         * config/gcn/gcn.c (gcn_init_libfuncs): New function.
10983         (TARGET_INIT_LIBFUNCS): Define target hook using above function.
10984         * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
10985         otherwise.
10986         (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
10987         (MAX_FIXED_MODE_SIZE): Change to 128.
10989 2021-06-29  Julian Brown  <julian@codesourcery.com>
10991         * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
10992         (s_mnemonic): Add clrsb.
10993         (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
10994         (clrsb<mode>2): Add expander for SImode/DImode.
10996 2021-06-29  Julian Brown  <julian@codesourcery.com>
10998         * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
10999         muldi3): Add patterns.
11001 2021-06-29  Julian Brown  <julian@codesourcery.com>
11003         * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
11004         (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
11006 2021-06-29  Julian Brown  <julian@codesourcery.com>
11008         * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
11010 2021-06-29  Joseph Myers  <joseph@codesourcery.com>
11012         * btfout.c, ctfout.c: Include "memmodel.h".
11014 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
11016         * gcc.c (check_offload_target_name): Cast len argument to
11017         %q.*s to 'int'; avoid -Wstringop-truncation warning.
11019 2021-06-29  Richard Biener  <rguenther@suse.de>
11021         * tree-vect-slp.c (vect_optimize_slp): Forward propagate
11022         to "any" permute nodes and relax "any" permute proapgation
11023         during iterative backward propagation.
11025 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
11027         PR other/67300
11028         * common.opt (-foffload=): Update description.
11029         (-foffload-options=): New.
11030         * doc/invoke.texi (C Language Options): Document
11031         -foffload and -foffload-options.
11032         * gcc.c (check_offload_target_name): New, split off from
11033         handle_foffload_option.
11034         (check_foffload_target_names): New.
11035         (handle_foffload_option): Handle -foffload=default.
11036         (driver_handle_option): Update for -foffload-options.
11037         * lto-opts.c (lto_write_options): Use -foffload-options
11038         instead of -foffload.
11039         * lto-wrapper.c (merge_and_complain, append_offload_options):
11040         Likewise.
11041         * opts.c (common_handle_option): Likewise.
11043 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
11045         * doc/invoke.texi (C Language Options): Sort options
11046         alphabetically in optlist and also the description itself.
11047         Remove leftover -fallow-single-precision from and add missing
11048         -fgnu-tm to the optlist.
11050 2021-06-29  Richard Biener  <rguenther@suse.de>
11052         * tree-vect-slp.c (slpg_vertex::visited): Remove.
11053         (vect_slp_perms_eq): Handle -1 permutes.
11054         (vect_optimize_slp): Rewrite permute propagation.
11056 2021-06-29  Jakub Jelinek  <jakub@redhat.com>
11058         PR c++/101210
11059         * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
11060         perform the optimization in GENERIC when sanitizing and x has a
11061         reference type.
11063 2021-06-29  Richard Biener  <rguenther@suse.de>
11065         PR tree-optimization/101242
11066         * tree-vect-slp.c (vect_slp_build_vertices): Force-add
11067         PHIs with not represented initial values as leafs.
11069 2021-06-29  Jan-Benedict Glaw  <jbglaw@getslash.de>
11071         * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
11072         * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
11073         "register" keyword.
11074         (pdp11_initial_elimination_offset) Remove unused variable.
11075         (pdp11_cmp_length) Ditto.
11076         (pdp11_insn_cost): Ditto, and fix signedness warning.
11078 2021-06-29  David Edelsohn  <dje.gcc@gmail.com>
11080         * btfout.c: Include tm_p.h.
11081         * ctfout.c: Same.
11083 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
11085         * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
11086         frame related.
11087         (bpf_expand_epilogue): Likewise.
11088         * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
11089         Do not define DBX_DEBUGGING_INFO.
11091 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
11093         * doc/invoke.texi: Document the CTF and BTF debug info options.
11095 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
11096             David Faust  <david.faust@oracle.com>
11097             Jose E. Marchesi  <jose.marchesi@oracle.com>
11098             Weimin Pan  <weimin.pan@oracle.com>
11100         * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
11101         GTFILES.  Add new object files.
11102         * common.opt: Add CTF and BTF debug info options.
11103         * btfout.c: New file.
11104         * ctfc.c: Likewise.
11105         * ctfc.h: Likewise.
11106         * ctfout.c: Likewise.
11107         * dwarf2ctf.c: Likewise.
11108         * dwarf2ctf.h: Likewise.
11109         * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
11110         BTF_DEBUG.
11111         * dwarf2out.c (dwarf2out_source_line): Likewise.
11112         (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
11113         be generated.
11114         (debug_format_do_cu): New function.
11115         (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
11116         them if requested.
11117         Include dwarf2ctf.c.
11118         * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
11119         formats.
11120         * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
11121         (CTF_DEBUG): New bitmask.
11122         (BTF_DEBUG): Likewise.
11123         (enum ctf_debug_info_levels): New enum.
11124         * gengtype.c (open_base_files): Handle ctfc.h.
11125         (main): Handle uint32_t type.
11126         * flags.h (btf_debuginfo_p): New definition.
11127         (dwarf_based_debuginfo_p): Likewise.
11128         * opts.c (debug_type_names): Add entries for CTF and BTF.
11129         (btf_debuginfo_p): New function.
11130         (dwarf_based_debuginfo_p): Likewise.
11131         (common_handle_option): Handle -gctfN and -gbtf options.
11132         (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
11133         * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
11134         frontend is not C.
11136 2021-06-28  Jose E. Marchesi  <jose.marchesi@oracle.com>
11138         * dwarf2out.c (AT_class): Function is no longer static.
11139         (AT_int): Likewise.
11140         (AT_unsigned): Likewise.
11141         (AT_loc): Likewise.
11142         (get_AT): Likewise.
11143         (get_AT_string): Likewise.
11144         (get_AT_flag): Likewise.
11145         (get_AT_unsigned): Likewise.
11146         (get_AT_ref): Likewise.
11147         (new_die_raw): Likewise.
11148         (lookup_decl_die): Likewise.
11149         (base_type_die): Likewise.
11150         (add_name_attribute): Likewise.
11151         (add_AT_int): Likewise.
11152         (add_AT_unsigned): Likewise.
11153         (add_AT_loc): Likewise.
11154         (dw_get_die_tag): New function.
11155         (dw_get_die_child): Likewise.
11156         (dw_get_die_sib): Likewise.
11157         (struct dwarf_file_data): Move from here to dwarf2out.h
11158         (struct dw_attr_struct): Likewise.
11159         * dwarf2out.h: Analogous changes.
11161 2021-06-28  Martin Jambor  <mjambor@suse.cz>
11163         PR ipa/93385
11164         * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
11165         members m_dead_stmts and m_dead_ssas.
11166         * ipa-param-manipulation.c
11167         (ipa_param_body_adjustments::mark_dead_statements): New function.
11168         (ipa_param_body_adjustments::common_initialization): Call it on
11169         all removed but not split parameters.
11170         (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
11171         new mwmbers.
11172         (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
11173         are dead.
11174         * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
11175         dead debug statements.
11176         (copy_phis_for_bb): Do not copy dead PHI nodes.
11178 2021-06-28  Martin Jambor  <mjambor@suse.cz>
11180         PR ipa/93385
11181         * symtab-clones.h (clone_info): Removed member param_adjustments.
11182         * ipa-param-manipulation.h: Adjust initial comment to reflect how we
11183         deal with pass-through splits now.
11184         (ipa_param_performed_split): Removed.
11185         (ipa_param_adjustments::modify_call): Adjusted parameters.
11186         (class ipa_param_body_adjustments): Adjusted parameters of
11187         register_replacement, modify_gimple_stmt and modify_call_stmt.
11188         (ipa_verify_edge_has_no_modifications): Declare.
11189         (ipa_edge_modifications_finalize): Declare.
11190         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
11191         performed_splits processing, pas only edge to padjs->modify_call,
11192         check that call arguments were not modified if they should not have
11193         been.
11194         * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
11195         splits.
11196         * ipa-param-manipulation.c (struct pass_through_split_map): New type.
11197         (ipa_edge_modification_info): Likewise.
11198         (ipa_edge_modification_sum): Likewise.
11199         (ipa_edge_modifications): New edge summary.
11200         (ipa_verify_edge_has_no_modifications): New function.
11201         (transitive_split_p): Removed.
11202         (transitive_split_map): Likewise.
11203         (init_transitive_splits): Likewise.
11204         (ipa_param_adjustments::modify_call): Adjusted to use the new edge
11205         summary instead of performed_splits.
11206         (ipa_param_body_adjustments::register_replacement): Drop dummy
11207         parameter, set base_index of the created ipa_param_body_replacement.
11208         (phi_arg_will_live_p): New function.
11209         (ipa_param_body_adjustments::common_initialization): Do not create
11210         IPA_SRA dummy decls.
11211         (simple_tree_swap_info): Removed.
11212         (remap_split_decl_to_dummy): Likewise.
11213         (record_argument_state_1): New function.
11214         (record_argument_state): Likewise.
11215         (ipa_param_body_adjustments::modify_call_stmt): New parameter
11216         orig_stmt.  Do not work with dummy decls, save necessary info about
11217         changes to ipa_edge_modifications.
11218         (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
11219         orig_stmt, pass it to modify_call_stmt.
11220         (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
11221         modify_gimple_stmt.
11222         (ipa_edge_modifications_finalize): New function.
11223         * tree-inline.c (remap_gimple_stmt): Pass original statement to
11224         modify_gimple_stmt.
11225         (copy_phis_for_bb): Do not copy dead PHI nodes.
11226         (expand_call_inline): Do not remap performed_splits.
11227         (update_clone_info): Likewise.
11228         * toplev.c: Include ipa-param-manipulation.h.
11229         (toplev::finalize): Call ipa_edge_modifications_finalize.
11231 2021-06-28  Andrew Pinski  <apinski@marvell.com>
11233         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
11234         info if we're the only things setting the target PHI.
11235         (value_replacement): Don't duplicate range here.
11236         (minmax_replacement): Likewise.
11238 2021-06-28  Richard Biener  <rguenther@suse.de>
11240         PR tree-optimization/101229
11241         * gimple-walk.c (gimple_walk_op): Handle PHIs.
11243 2021-06-28  Martin Liska  <mliska@suse.cz>
11245         * config/v850/v850.c (construct_dispose_instruction): Allocate
11246         a bigger buffer.
11247         (construct_prepare_instruction): Likewise.
11249 2021-06-28  Martin Liska  <mliska@suse.cz>
11251         * config/v850/v850.c (v850_option_override): Build default
11252         target node.
11253         (v850_can_inline_p): New.  Allow MASK_PROLOG_FUNCTION to be
11254         ignored for inlining.
11255         (TARGET_CAN_INLINE_P): New.
11257 2021-06-28  Richard Biener  <rguenther@suse.de>
11259         PR tree-optimization/101207
11260         * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
11261         permute eliding for load permutations properly.
11263 2021-06-28  Richard Biener  <rguenther@suse.de>
11265         PR tree-optimization/101173
11266         * gimple-loop-interchange.cc
11267         (tree_loop_interchange::valid_data_dependences): Disallow outer
11268         loop dependence distance of zero.
11270 2021-06-28  liuhongt  <hongtao.liu@intel.com>
11272         PR target/100648
11273         * config/i386/sse.md (*avx_cmp<mode>3_lt): New
11274         define_insn_and_split.
11275         (*avx_cmp<mode>3_ltint): Ditto.
11276         (*avx2_pcmp<mode>3_3): Ditto.
11277         (*avx2_pcmp<mode>3_4): Ditto.
11278         (*avx2_pcmp<mode>3_5): Ditto.
11280 2021-06-28  liuhongt  <hongtao.liu@intel.com>
11282         * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
11283         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
11284         IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
11285         IX86_BUILTIN_PBLENDVB128): Replace icode with
11286         CODE_FOR_nothing.
11287         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
11288         builtins.
11289         * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
11290         New pre_reload splitter.
11292 2021-06-27  Andrew Pinski  <apinski@marvell.com>
11294         PR middle-end/101230
11295         * fold-const.c (fold_ternary_loc): Check
11296         the return value of invert_tree_comparison.
11298 2021-06-27  David Edelsohn  <dje.gcc@gmail.com>
11300         * config.gcc: Add SPDX License Identifier.
11301         (powerpc-ibm-aix789): Default to aix73.h.
11302         (powerpc-ibm-aix7.2.*.*): New stanza.
11303         * config/rs6000/aix72.h: Add SPDX License Identifier.
11304         * config/rs6000/aix73.h: New file.
11306 2021-06-26  Jason Merrill  <jason@redhat.com>
11308         * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
11310 2021-06-26  Andrew Pinski  <apinski@marvell.com>
11312         * genmatch.c (lower_cond): Copy for_subst_vec
11313         for the simplify also.
11314         (lower): Swap the order for lower_for and lower_cond.
11316 2021-06-26  Andrew Pinski  <apinski@marvell.com>
11318         * tree-ssa-phiopt.c (match_simplify_replacement): Reset
11319         flow senatitive info on the moved ssa set.
11321 2021-06-26  Andrew Pinski  <apinski@marvell.com>
11323         * fold-const.c (fold_cond_expr_with_comparison):
11324         Exand arg0 into comp_code, arg00, and arg01.
11325         (fold_ternary_loc): Use invert_tree_comparison
11326         instead of fold_invert_truthvalue for the case
11327         where we have A CMP B ? C : A.
11329 2021-06-25  Martin Sebor  <msebor@redhat.com>
11331         PR middle-end/101216
11332         * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
11334 2021-06-25  Jeff Law  <jeffreyalaw@gmail.com>
11336         * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
11338 2021-06-25  Richard Biener  <rguenther@suse.de>
11340         PR tree-optimization/101202
11341         * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
11342         failed nodes.
11344 2021-06-25  Richard Biener  <rguenther@suse.de>
11346         * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
11347         STMT_VINFO_REDUC_DEF from the original representative.
11349 2021-06-25  Martin Sebor  <msebor@redhat.com>
11351         * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
11352         gimple_no_warning_p and gimple_set_no_warning with
11353         warning_suppressed_p, and suppress_warning.
11354         (c_strlen): Same.
11355         (maybe_warn_for_bound): Same.
11356         (warn_for_access): Same.
11357         (check_access): Same.
11358         (expand_builtin_strncmp): Same.
11359         (fold_builtin_varargs): Same.
11360         * calls.c (maybe_warn_nonstring_arg): Same.
11361         (maybe_warn_rdwr_sizes): Same.
11362         * cfgexpand.c (expand_call_stmt): Same.
11363         * cgraphunit.c (check_global_declaration): Same.
11364         * fold-const.c (fold_undefer_overflow_warnings): Same.
11365         (fold_truth_not_expr): Same.
11366         (fold_unary_loc): Same.
11367         (fold_checksum_tree): Same.
11368         * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
11369         (array_bounds_checker::check_mem_ref): Same.
11370         (array_bounds_checker::check_addr_expr): Same.
11371         (array_bounds_checker::check_array_bounds): Same.
11372         * gimple-expr.c (copy_var_decl): Same.
11373         * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
11374         (gimple_fold_builtin_strncat): Same.
11375         (gimple_fold_builtin_stxcpy_chk): Same.
11376         (gimple_fold_builtin_stpcpy): Same.
11377         (gimple_fold_builtin_sprintf): Same.
11378         (fold_stmt_1): Same.
11379         * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
11380         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
11381         * gimple-ssa-sprintf.c (handle_printf_call): Same.
11382         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
11383         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
11384         * gimple-ssa-warn-restrict.h: Adjust declarations.
11385         (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
11386         gimple_no_warning_p and gimple_set_no_warning with
11387         warning_suppressed_p, and suppress_warning.
11388         (check_call): Same.
11389         (check_bounds_or_overlap): Same.
11390         * gimple.c (gimple_build_call_from_tree): Same.
11391         * gimplify.c (gimplify_return_expr): Same.
11392         (gimplify_cond_expr): Same.
11393         (gimplify_modify_expr_complex_part): Same.
11394         (gimplify_modify_expr): Same.
11395         (gimple_push_cleanup): Same.
11396         (gimplify_expr): Same.
11397         * omp-expand.c (expand_omp_for_generic): Same.
11398         (expand_omp_taskloop_for_outer): Same.
11399         * omp-low.c (lower_rec_input_clauses): Same.
11400         (lower_lastprivate_clauses): Same.
11401         (lower_send_clauses): Same.
11402         (lower_omp_target): Same.
11403         * tree-cfg.c (pass_warn_function_return::execute): Same.
11404         * tree-complex.c (create_one_component_var): Same.
11405         * tree-inline.c (remap_gimple_op_r): Same.
11406         (copy_tree_body_r): Same.
11407         (declare_return_variable): Same.
11408         (expand_call_inline): Same.
11409         * tree-nested.c (lookup_field_for_decl): Same.
11410         * tree-sra.c (create_access_replacement): Same.
11411         (generate_subtree_copies): Same.
11412         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
11413         * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
11414         * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
11415         * tree-ssa-loop-im.c (execute_sm): Same.
11416         * tree-ssa-phiopt.c (cond_store_replacement): Same.
11417         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
11418         (handle_builtin_strcpy): Same.
11419         (maybe_diag_stxncpy_trunc): Same.
11420         (handle_builtin_stxncpy_strncat): Same.
11421         (handle_builtin_strcat): Same.
11422         * tree-ssa-uninit.c (get_no_uninit_warning): Same.
11423         (set_no_uninit_warning): Same.
11424         (uninit_undefined_value_p): Same.
11425         (warn_uninit): Same.
11426         (maybe_warn_operand): Same.
11427         * tree-vrp.c (compare_values_warnv): Same.
11428         * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
11429         (test_for_singularity): Same.
11430         * gimple.h (warning_suppressed_p): New function.
11431         (suppress_warning): Same.
11432         (copy_no_warning): Same.
11433         (gimple_set_block): Call gimple_set_location.
11434         (gimple_set_location): Call copy_warning.
11436 2021-06-25  Martin Sebor  <msebor@redhat.com>
11438         * tree.h (warning_suppressed_at, copy_warning,
11439         warning_suppressed_p, suppress_warning): New functions.
11441 2021-06-25  Martin Sebor  <msebor@redhat.com>
11443         * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
11444         * gengtype.c (open_base_files): Add diagnostic-spec.h.
11445         * diagnostic-spec.c: New file.
11446         * diagnostic-spec.h: New file.
11447         * tree.h (no_warning, all_warnings, suppress_warning_at): New
11448         declarations.
11449         * warning-control.cc: New file.
11451 2021-06-25  liuhongt  <hongtao.liu@intel.com>
11453         PR target/101185
11454         * config/i386/i386.c (x86_order_regs_for_local_alloc):
11455         Revert r12-1669.
11457 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
11459         PR tree-optimization/101189
11460         * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
11461         LHS range of condition to postfold routine.
11462         (fold_using_range::postfold_gcond_edges): Only process the TRUE or
11463         FALSE edge if the LHS range supports it being taken.
11464         * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
11466 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
11468         * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
11469         (relation_oracle::find_relation_block): Check correct bitmap.
11470         (relation_oracle::dump): Do not dump NULL blocks.
11472 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
11474         * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
11475         range_on_edge instead of manually calculating.
11477 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
11479         * range-op.cc: Fix comment.
11481 2021-06-24  Uroš Bizjak  <ubizjak@gmail.com>
11483         PR target/89021
11484         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
11485         Handle V8QI and V4HI modes.
11486         * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
11487         New insn pattern.
11488         (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
11489         (mmxpackmode): New mode attribute.
11490         (vec_pack_trunc_<mmxpackmode:mode>): New expander.
11491         (mmxunpackmode): New mode attribute.
11492         (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
11493         (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
11494         (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
11495         (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
11496         * config/i386/i386.md (extsuffix): Move from ...
11497         * config/i386/sse.md: ... here.
11499 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
11501         * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
11502         (dwarf2out_finish): ...instead of here.
11504 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
11506         * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
11507         (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
11508         (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
11509         * configure: Regenerate.
11511 2021-06-24  Richard Biener  <rguenther@suse.de>
11513         * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
11514         vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
11515         (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
11517 2021-06-24  Richard Biener  <rguenther@suse.de>
11519         * config/i386/sse.md (avx_addsubv4df3): Rename to
11520         vec_addsubv4df3.
11521         (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
11522         (sse3_addsubv2df3): Rename to vec_addsubv2df3.
11523         (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
11524         * config/i386/i386-builtin.def: Adjust.
11525         * internal-fn.def (VEC_ADDSUB): New internal optab fn.
11526         * optabs.def (vec_addsub_optab): New optab.
11527         * tree-vect-slp-patterns.c (class addsub_pattern): New.
11528         (slp_patterns): Add addsub_pattern.
11529         * tree-vect-slp.c (vect_optimize_slp): Disable propagation
11530         across CFN_VEC_ADDSUB.
11531         * tree-vectorizer.h (vect_pattern::vect_pattern): Make
11532         m_ops optional.
11533         * doc/md.texi (vec_addsub<mode>3): Document.
11535 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
11537         PR middle-end/101170
11538         * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
11539         where regno + subreg_regno_offset wraps around use 0 as starting
11540         regno.
11542 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
11544         PR middle-end/101172
11545         * stor-layout.c (finish_bitfield_representative): If nextf has
11546         error_mark_node type, set repr type to error_mark_node too.
11548 2021-06-24  Ilya Leoshkevich  <iii@linux.ibm.com>
11550         * config/s390/s390.c (s390_function_profiler): Ignore labelno
11551         parameter.
11552         * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
11554 2021-06-24  Richard Biener  <rguenther@suse.de>
11556         * tree-vect-slp.c (vect_optimize_slp): Do not propagate
11557         across operations that have different semantics on different
11558         lanes.
11560 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
11562         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
11563         * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
11564         with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
11565         of non-decl OMP_CLAUSE_DECL.  For OMP_CLAUSE_IN_REDUCTION on
11566         OMP_TARGET user outer_ctx instead of ctx for placeholders and
11567         initializer/combiner gimplification.
11568         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
11569         on target constructs.
11570         (lower_rec_input_clauses): Likewise.
11571         (lower_omp_target): Likewise.
11572         * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
11573         on target if in_reduction is present.
11575 2021-06-24  Kewen Lin  <linkw@linux.ibm.com>
11577         * tree-predcom.c (class pcom_worker): New class.
11578         (release_chain): Renamed to...
11579         (pcom_worker::release_chain): ...this.
11580         (release_chains): Renamed to...
11581         (pcom_worker::release_chains): ...this.
11582         (aff_combination_dr_offset): Renamed to...
11583         (pcom_worker::aff_combination_dr_offset): ...this.
11584         (determine_offset): Renamed to...
11585         (pcom_worker::determine_offset): ...this.
11586         (class comp_ptrs): New class.
11587         (split_data_refs_to_components): Renamed to...
11588         (pcom_worker::split_data_refs_to_components): ...this,
11589         and update with class comp_ptrs.
11590         (suitable_component_p): Renamed to...
11591         (pcom_worker::suitable_component_p): ...this.
11592         (filter_suitable_components): Renamed to...
11593         (pcom_worker::filter_suitable_components): ...this.
11594         (valid_initializer_p): Renamed to...
11595         (pcom_worker::valid_initializer_p): ...this.
11596         (find_looparound_phi): Renamed to...
11597         (pcom_worker::find_looparound_phi): ...this.
11598         (add_looparound_copies): Renamed to...
11599         (pcom_worker::add_looparound_copies): ...this.
11600         (determine_roots_comp): Renamed to...
11601         (pcom_worker::determine_roots_comp): ...this.
11602         (determine_roots): Renamed to...
11603         (pcom_worker::determine_roots): ...this.
11604         (single_nonlooparound_use): Renamed to...
11605         (pcom_worker::single_nonlooparound_use): ...this.
11606         (remove_stmt): Renamed to...
11607         (pcom_worker::remove_stmt): ...this.
11608         (execute_pred_commoning_chain): Renamed to...
11609         (pcom_worker::execute_pred_commoning_chain): ...this.
11610         (execute_pred_commoning): Renamed to...
11611         (pcom_worker::execute_pred_commoning): ...this.
11612         (struct epcc_data): New member worker.
11613         (execute_pred_commoning_cbck): Call execute_pred_commoning
11614         with pcom_worker pointer.
11615         (find_use_stmt): Renamed to...
11616         (pcom_worker::find_use_stmt): ...this.
11617         (find_associative_operation_root): Renamed to...
11618         (pcom_worker::find_associative_operation_root): ...this.
11619         (find_common_use_stmt): Renamed to...
11620         (pcom_worker::find_common_use_stmt): ...this.
11621         (combinable_refs_p): Renamed to...
11622         (pcom_worker::combinable_refs_p): ...this.
11623         (reassociate_to_the_same_stmt): Renamed to...
11624         (pcom_worker::reassociate_to_the_same_stmt): ...this.
11625         (stmt_combining_refs): Renamed to...
11626         (pcom_worker::stmt_combining_refs): ...this.
11627         (combine_chains): Renamed to...
11628         (pcom_worker::combine_chains): ...this.
11629         (try_combine_chains): Renamed to...
11630         (pcom_worker::try_combine_chains): ...this.
11631         (prepare_initializers_chain): Renamed to...
11632         (pcom_worker::prepare_initializers_chain): ...this.
11633         (prepare_initializers): Renamed to...
11634         (pcom_worker::prepare_initializers): ...this.
11635         (prepare_finalizers_chain): Renamed to...
11636         (pcom_worker::prepare_finalizers_chain): ...this.
11637         (prepare_finalizers): Renamed to...
11638         (pcom_worker::prepare_finalizers): ...this.
11639         (tree_predictive_commoning_loop): Renamed to...
11640         (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
11641         some calls and remove some cleanup code.
11642         (tree_predictive_commoning): Adjusted to use pcom_worker instance.
11643         (static variable looparound_phis): Remove.
11644         (static variable name_expansions): Remove.
11646 2021-06-24  Richard Biener  <rguenther@suse.de>
11648         * tree-vect-slp.c (slpg_vertex): New struct.
11649         (vect_slp_build_vertices): Adjust.
11650         (vect_optimize_slp): Likewise.  Maintain an outgoing permute
11651         and a materialized one.
11653 2021-06-24  Richard Biener  <rguenther@suse.de>
11655         PR tree-optimization/101105
11656         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
11657         Only ignore steps when they are equal or scalar order is preserved.
11659 2021-06-24  liuhongt  <hongtao.liu@intel.com>
11661         PR target/98434
11662         * config/i386/i386-expand.c (ix86_expand_vec_interleave):
11663         Adjust comments for ix86_expand_vecop_qihi2.
11664         (ix86_expand_vecmul_qihi): Renamed to ..
11665         (ix86_expand_vecop_qihi2): Adjust function prototype to
11666         support shift operation, add static to definition.
11667         (ix86_expand_vec_shift_qihi_constant): Add static to definition.
11668         (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
11669         ix86_expand_vec_shift_qihi_constant.
11670         * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
11671         (ix86_expand_vec_shift_qihi_constant): Deleted.
11672         * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
11673         iterator.
11674         (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
11675         condition TARGET_64BIT.
11676         (mul<mode>3): Ditto.
11677         (<insn><mode>3): Ditto.
11678         (vlshr<mode>3): Extend to support avx512 vlshr.
11679         (v<insn><mode>3): New expander for
11680         vashr/vlshr/vashl.
11681         (v<insn>v8qi3): Ditto.
11682         (vashrv8hi3<mask_name>): Renamed to ..
11683         (vashr<mode>3): And extend to support V16QImode for avx512.
11684         (vashrv16qi3): Deleted.
11685         (vashrv2di3<mask_name>): Extend expander to support avx512
11686         instruction.
11688 2021-06-23  Dimitar Dimitrov  <dimitar@dinux.eu>
11690         * doc/lto.texi (Design Overview): Update that slim objects are
11691         the default.
11693 2021-06-23  Aaron Sawdey  <acsawdey@linux.ibm.com>
11695         * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
11696         of OTHER_POWER10_MASKS so it will not be enabled by default.
11698 2021-06-23  Richard Biener  <rguenther@suse.de>
11699             Martin Jambor  <mjambor@suse.cz>
11701         * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
11702         param replacement unconditionally.  Adjust comment.
11704 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
11706         * Makefile.in (OBJS): Add gimple-range-fold.o
11707         * gimple-range-fold.cc: New.
11708         * gimple-range-fold.h: New.
11709         * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
11710         (gimple_range_calc_op2): Ditto.
11711         * gimple-range-gori.h: Move prototypes to here.
11712         * gimple-range.cc: Adjust include files.
11713         (fur_source:fur_source): Relocate to gimple-range-fold.cc.
11714         (fur_source::get_operand): Ditto.
11715         (fur_source::get_phi_operand): Ditto.
11716         (fur_source::query_relation): Ditto.
11717         (fur_source::register_relation): Ditto.
11718         (class fur_edge): Ditto.
11719         (fur_edge::fur_edge): Ditto.
11720         (fur_edge::get_operand): Ditto.
11721         (fur_edge::get_phi_operand): Ditto.
11722         (fur_stmt::fur_stmt): Ditto.
11723         (fur_stmt::get_operand): Ditto.
11724         (fur_stmt::get_phi_operand): Ditto.
11725         (fur_stmt::query_relation): Ditto.
11726         (class fur_depend): Relocate to gimple-range-fold.h.
11727         (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
11728         (fur_depend::register_relation): Ditto.
11729         (fur_depend::register_relation): Ditto.
11730         (class fur_list): Ditto.
11731         (fur_list::fur_list): Ditto.
11732         (fur_list::get_operand): Ditto.
11733         (fur_list::get_phi_operand): Ditto.
11734         (fold_range): Ditto.
11735         (adjust_pointer_diff_expr): Ditto.
11736         (gimple_range_adjustment): Ditto.
11737         (gimple_range_base_of_assignment): Ditto.
11738         (gimple_range_operand1): Ditto.
11739         (gimple_range_operand2): Ditto.
11740         (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
11741         (gimple_range_calc_op2): Ditto.
11742         (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
11743         (fold_using_range::range_of_range_op): Ditto.
11744         (fold_using_range::range_of_address): Ditto.
11745         (fold_using_range::range_of_phi): Ditto.
11746         (fold_using_range::range_of_call): Ditto.
11747         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
11748         (fold_using_range::range_of_builtin_call): Ditto.
11749         (fold_using_range::range_of_cond_expr): Ditto.
11750         (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
11751         (fold_using_range::relation_fold_and_or): Ditto.
11752         (fold_using_range::postfold_gcond_edges): Ditto.
11753         * gimple-range.h: Add gimple-range-fold.h to include files. Change
11754         GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
11755         (gimple_range_handler): Relocate to gimple-range-fold.h.
11756         (gimple_range_ssa_p): Ditto.
11757         (range_compatible_p): Ditto.
11758         (class fur_source): Ditto.
11759         (class fur_stmt): Ditto.
11760         (class fold_using_range): Ditto.
11761         (gimple_range_calc_op1): Relocate to gimple-range-gori.h
11762         (gimple_range_calc_op2): Ditto.
11764 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
11766         PR tree-optimization/101148
11767         PR tree-optimization/101014
11768         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
11769         (ranger_cache::~ranger_cache): Adjust.
11770         (ranger_cache::block_range): Check if propagation disallowed.
11771         (ranger_cache::propagate_cache): Disallow propagation if new value
11772         can't be stored properly.
11773         * gimple-range-cache.h (ranger_cache::m_propfail): New member.
11775 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
11777         * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
11778         (sbr_vector::set_bb_range): Return true.
11779         (class sbr_sparse_bitmap): Adjust.
11780         (sbr_sparse_bitmap::set_bb_range): Return value.
11781         (block_range_cache::set_bb_range): Return value.
11782         (ranger_cache::propagate_cache): Use return value to print msg.
11783         * gimple-range-cache.h (class block_range_cache): Adjust.
11785 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
11787         * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
11789 2021-06-23  Jeff Law  <jeffreyalaw@gmail.com>
11791         * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
11792         so this pattern can be used for test/compare removal.  Pass
11793         current insn to compute_logical_op_length and output_logical_op.
11794         * config/h8300/h8300.c (compute_logical_op_cc): Remove.
11795         (h8300_and_costs): Add argument to compute_logical_op_length.
11796         (output_logical_op): Add new argument.  Use it to determine if the
11797         condition codes are used and adjust the output accordingly.
11798         (compute_logical_op_length): Add new argument and update length
11799         computations when condition codes are used.
11800         * config/h8300/h8300-protos.h (compute_logical_op_length): Update
11801         prototype.
11802         (output_logical_op): Likewise.
11804 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
11806         PR target/89021
11807         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
11808         Handle 64bit modes for TARGET_XOP.  Use indirect gen_* functions.
11809         * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
11810         * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
11811         * config/i386/sse.md (unspec): ... here.
11813 2021-06-23  Martin Liska  <mliska@suse.cz>
11815         PR target/98636
11816         * optc-save-gen.awk: Put back arm_fp16_format to
11817         checked_options.
11819 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
11821         PR target/101175
11822         * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
11823         (bsr): Ditto.
11824         (*bsrhi): Remove.
11825         (clz<mode>2): Update RTX pattern for additions.
11827 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
11829         PR middle-end/101167
11830         * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
11831         and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
11833 2021-06-22  Sergei Trofimovich  <siarheit@google.com>
11835         * doc/rtl.texi: drop unbalanced parenthesis.
11837 2021-06-22  Richard Biener  <rguenther@suse.de>
11839         PR middle-end/101156
11840         * gimplify.c (gimplify_expr): Remove premature incorrect
11841         optimization.
11843 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
11845         PR tree-optimization/101159
11846         * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
11847         comment typos.
11849 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
11851         PR middle-end/101160
11852         * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
11853         clear crtl->return_rtx instead of keeping it referencing a pseudo.
11855 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
11856             Andrew Pinski  <apinski@marvell.com>
11858         PR tree-optimization/101162
11859         * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
11860         types.
11862 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
11864         * range-op.cc (range_relational_tests): New.
11865         (range_op_tests): Call range_relational_tests.
11867 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
11869         * range-op.cc (operator_cast::lhs_op1_relation): New.
11870         (operator_identity::lhs_op1_relation): Mew.
11872 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
11874         * range-op.cc (operator_minus::op1_op2_relation_effect): New.
11876 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
11878         * range-op.cc (operator_plus::lhs_op1_relation): New.
11879         (operator_plus::lhs_op2_relation): New.
11881 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
11883         * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
11884         relation_oracle if dominators exist.
11885         (ranger_cache::~ranger_cache): Dispose of oracle.
11886         (ranger_cache::dump_bb): Dump oracle.
11887         * gimple-range.cc (fur_source::fur_source): New.
11888         (fur_source::get_operand): Use mmeber query.
11889         (fur_source::get_phi_operand): Use member_query.
11890         (fur_source::query_relation): New.
11891         (fur_source::register_dependency): Delete.
11892         (fur_source::register_relation): New.
11893         (fur_edge::fur_edge): Adjust.
11894         (fur_edge::get_phi_operand): Fix comment.
11895         (fur_edge::query): Delete.
11896         (fur_stmt::fur_stmt): Adjust.
11897         (fur_stmt::query): Delete.
11898         (fur_depend::fur_depend): Adjust.
11899         (fur_depend::register_relation): New.
11900         (fur_depend::register_relation): New.
11901         (fur_list::fur_list): Adjust.
11902         (fur_list::get_operand): Use member query.
11903         (fold_using_range::range_of_range_op): Process and query relations.
11904         (fold_using_range::range_of_address): Adjust dependency call.
11905         (fold_using_range::range_of_phi): Ditto.
11906         (gimple_ranger::gimple_ranger): New.  Use ranger_ache oracle.
11907         (fold_using_range::relation_fold_and_or): New.
11908         (fold_using_range::postfold_gcond_edges): New.
11909         * gimple-range.h (class gimple_ranger): Adjust.
11910         (class fur_source): Adjust members.
11911         (class fur_stmt): Ditto.
11912         (class fold_using_range): Ditto.
11914 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
11916         * range-op.cc (range_operator::wi_fold): Apply relation effect.
11917         (range_operator::fold_range): Adjust and apply relation effect.
11918         (*::fold_range): Add relation parameters.
11919         (*::op1_range): Ditto.
11920         (*::op2_range): Ditto.
11921         (range_operator::lhs_op1_relation): New.
11922         (range_operator::lhs_op2_relation): New.
11923         (range_operator::op1_op2_relation): New.
11924         (range_operator::op1_op2_relation_effect): New.
11925         (relop_early_resolve): New.
11926         (operator_equal::op1_op2_relation): New.
11927         (operator_equal::fold_range): Call relop_early_resolve.
11928         (operator_not_equal::op1_op2_relation): New.
11929         (operator_not_equal::fold_range): Call relop_early_resolve.
11930         (operator_lt::op1_op2_relation): New.
11931         (operator_lt::fold_range): Call relop_early_resolve.
11932         (operator_le::op1_op2_relation): New.
11933         (operator_le::fold_range): Call relop_early_resolve.
11934         (operator_gt::op1_op2_relation): New.
11935         (operator_gt::fold_range): Call relop_early_resolve.
11936         (operator_ge::op1_op2_relation): New.
11937         (operator_ge::fold_range): Call relop_early_resolve.
11938         * range-op.h (class range_operator): Adjust parameters and methods.
11940 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
11942         * Makefile.in (OBJS): Add value-relation.o.
11943         * gimple-range.h: Adjust include files.
11944         * tree-data-ref.c: Adjust include file order.
11945         * value-query.cc (range_query::get_value_range): Default to no oracle.
11946         (range_query::query_relation): New.
11947         (range_query::query_relation): New.
11948         * value-query.h (class range_query): Adjust.
11949         * value-relation.cc: New.
11950         * value-relation.h: New.
11952 2021-06-22  Richard Biener  <rguenther@suse.de>
11954         PR tree-optimization/101151
11955         * tree-ssa-sink.c (statement_sink_location): Expand irreducible
11956         region check.
11958 2021-06-22  Jojo R  <rjiejie@linux.alibaba.com>
11960         * config/riscv/riscv.c (thead_c906_tune_info): New.
11961         (riscv_tune_info_table): Use new tune.
11963 2021-06-22  Richard Biener  <rguenther@suse.de>
11965         PR tree-optimization/101158
11966         * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
11967         checking after checking for matching operation.
11969 2021-06-22  Richard Biener  <rguenther@suse.de>
11971         PR tree-optimization/101159
11972         * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
11973         missing NULL vectype check.
11975 2021-06-22  Richard Biener  <rguenther@suse.de>
11977         PR tree-optimization/101154
11978         * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
11980 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
11982         PR target/11877
11983         * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
11984         * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
11985         * config/i386/i386.c (ix86_expand_prologue): Clear it.
11986         * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
11987         Remove "" from match_operand.  Emit new insns using emit_move_insn and
11988         set ix86_last_zero_store_uid to INSN_UID of the last store.
11989         Add peephole2s for 1/2/4 stores of const0_rtx following previous
11990         successful peep2s.
11992 2021-06-22  Martin Liska  <mliska@suse.cz>
11994         * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
11995         was changed.
11997 2021-06-22  Martin Liska  <mliska@suse.cz>
11999         * gcov-io.h: Remove padding entries.
12001 2021-06-22  liuhongt  <hongtao.liu@intel.com>
12003         PR tree-optimization/97770
12004         * tree-vect-patterns.c (vect_recog_popcount_pattern):
12005         New.
12006         (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
12008 2021-06-22  liuhongt  <hongtao.liu@intel.com>
12010         PR target/100267
12011         * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
12012         * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
12013         (expand<mode>_mask): this ..
12014         (*expand<mode>_mask): New pre_reload splitter to transform
12015         v{,p}expand* to vmov* when mask is zero, all ones, or has all
12016         ones in it's lower part, otherwise still generate
12017         v{,p}expand*.
12019 2021-06-22  liuhongt  <hongtao.liu@intel.com>
12021         PR target/100310
12022         * config/i386/i386-expand.c
12023         (ix86_expand_special_args_builtin): Keep constm1_operand only
12024         if it satisfies insn's operand predicate.
12026 2021-06-21  Jason Merrill  <jason@redhat.com>
12028         PR target/88529
12029         * df-scan.c (df_ref_record): Check that regno < endregno.
12030         * function.c (assign_parms, expand_function_end): Do nothing with a
12031         TYPE_EMPTY_P result.
12033 2021-06-21  Richard Biener  <rguenther@suse.de>
12035         PR tree-optimization/101120
12036         * tree-vect-data-refs.c (bump_vector_ptr): Fold the
12037         built increment.
12038         * tree-vect-slp.c (vect_transform_slp_perm_load): Add
12039         DR chain DCE capability.
12040         * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
12041         * tree-vect-stmts.c (vectorizable_load): Remove unused
12042         loads in the DR chain for SLP.
12044 2021-06-21  Jakub Jelinek  <jakub@redhat.com>
12046         PR inline-asm/100785
12047         * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
12048         output or input operands were already error_mark_node.
12049         * cfgexpand.c (expand_asm_stmt): If errors are emitted,
12050         remove all inputs, outputs and clobbers from the asm and
12051         set template to "".
12053 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
12055         * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
12056         (vceq_s16): Likewise.
12057         (vceq_s32): Likewise.
12058         (vceq_u8): Likewise.
12059         (vceq_u16): Likewise.
12060         (vceq_u32): Likewise.
12061         (vceq_p8): Likewise.
12062         (vceqq_s8): Likewise.
12063         (vceqq_s16): Likewise.
12064         (vceqq_s32): Likewise.
12065         (vceqq_u8): Likewise.
12066         (vceqq_u16): Likewise.
12067         (vceqq_u32): Likewise.
12068         (vceqq_p8): Likewise.
12069         (vceq_f32): Gate __a == __b on __FAST_MATH__.
12070         (vceqq_f32): Likewise.
12071         (vceq_f16): Likewise.
12072         (vceqq_f16): Likewise.
12074 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
12076         PR target/97906
12077         * config/arm/iterators.md (NEON_VACMP): Remove.
12078         * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
12079         iterator.
12080         (neon_vca<cmp_op><mode>_insn): Likewise.
12081         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
12082         NEON_VACMP.
12084 2021-06-21  Richard Biener  <rguenther@suse.de>
12086         PR tree-optimization/101121
12087         * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
12088         when we just lack a stmt with the desired op when doing permutation.
12089         (vect_build_slp_tree): When caching a failed SLP build attempt
12090         assert that at least one lane is marked as not matching.
12092 2021-06-21  liuhongt  <hongtao.liu@intel.com>
12094         PR target/101142
12095         * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
12096         register alternative.
12097         (*and<mode>_1): Ditto.
12098         (*andqi_1): Ditto.
12099         (*andn<mode>_1): Ditto.
12100         (*<code><mode>_1): Ditto.
12101         (*<code>qi_1): Ditto.
12102         (*one_cmpl<mode>2_1): Ditto.
12103         (*one_cmplsi2_1_zext): Ditto.
12104         (*one_cmplqi2_1): Ditto.
12105         * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
12106         the order of mask registers to be before general registers.
12108 2021-06-21  Roger Sayle  <roger@nextmovesoftware.com>
12110         PR target/11877
12111         * config/i386/i386.md: New define_peephole2s to shrink writing
12112         1, 2 or 4 consecutive zeros to memory when optimizing for size.
12114 2021-06-18  Jeff Law  <jeffreyalaw@gmail.com>
12116         * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
12117         * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
12118         more efficient code when the source can be trivially simplified.
12120 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
12122         * gimple-range-cache.cc (ranger_cache::range_of_def):  Calculate
12123         a range if global is not available.
12124         (ranger_cache::entry_range): Fallback to range_of_def.
12125         * gimple-range-cache.h (range_of_def): Adjust prototype.
12127 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
12129         PR tree-optimization/101014
12130         * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
12131         value list.
12132         (ranger_cache::~ranger_cache): Ditto.
12133         (ranger_cache::enable_new_values): Delete.
12134         (ranger_cache::push_poor_value): Delete.
12135         (ranger_cache::range_of_def): Remove poor value processing.
12136         (ranger_cache::entry_range): Ditto.
12137         (ranger_cache::fill_block_cache): Ditto.
12138         * gimple-range-cache.h (class ranger_cache): Remove poor value members.
12139         * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
12140         * gimple-range.h (class gimple_ranger): Adjust.
12142 2021-06-18  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
12144         PR target/100856
12145         * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
12146         derived from arm_canon_arch.
12147         (arm_canon_arch_option): Call it.
12148         (arm_canon_arch_multilib_option): New function.
12149         * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
12150         * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
12151         (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
12152         (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
12153         (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
12154         * config/arm/arm.opt (mlibarch): New option.
12155         * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
12156         of march on RHS with mlibarch.
12158 2021-06-18  Marcel Vollweiler  <marcel@codesourcery.com>
12160         * config.in: Regenerate.
12161         * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
12162         functions.
12163         * configure: Regenerate.
12164         * configure.ac: Fix for global_load assembler functions.
12166 2021-06-18  Richard Biener  <rguenther@suse.de>
12168         PR tree-optimization/101112
12169         * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
12170         to lookup a pattern stmt def.
12172 2021-06-18  Jakub Jelinek  <jakub@redhat.com>
12174         PR middle-end/101062
12175         * stor-layout.c (finish_bitfield_layout): Don't add bitfield
12176         representatives in QUAL_UNION_TYPE.
12178 2021-06-18  Andrew Pinski  <apinski@marvell.com>
12180         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
12181         Add counting of how many times it is done.
12182         (factor_out_conditional_conversion): Likewise.
12183         (match_simplify_replacement): Likewise.
12184         (value_replacement): Likewise.
12185         (spaceship_replacement): Likewise.
12186         (cond_store_replacement): Likewise.
12187         (cond_if_else_store_replacement_1): Likewise.
12188         (hoist_adjacent_loads): Likewise.
12190 2021-06-18  Andrew Pinski  <apinski@marvell.com>
12192         * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
12193         types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
12194         (verify_gimple_assign_binary): Reject point and offset types on
12195         MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
12196         FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
12197         FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
12199 2021-06-18  Michael Meissner  <meissner@linux.ibm.com>
12201         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
12202         3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
12203         * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
12204         New insns.
12206 2021-06-17  Aaron Sawdey  <acsawdey@linux.ibm.com>
12208         * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
12209         earlyclobber to alts 0/1.
12210         (gen_addadd): Add earlyclobber to alts 0/1.
12211         * config/rs6000/fusion.md: Regenerate file.
12213 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
12215         * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
12217 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
12219         * gimple-range-cache.cc: Comment cleanups.
12220         * gimple-range-gori.cc: Comment cleanups.
12221         * gimple-range.cc: Comment/spacing cleanups
12222         * value-range.h: Comment cleanups.
12224 2021-06-17  H.J. Lu  <hjl.tools@gmail.com>
12226         PR target/100704
12227         * calls.c (expand_call): Replace PUSH_ARGS with
12228         targetm.calls.push_argument (0).
12229         (emit_library_call_value_1): Likewise.
12230         * defaults.h (PUSH_ARGS): Removed.
12231         (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
12232         targetm.calls.push_argument (0).
12233         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12234         (emit_push_insn): Pass the number bytes to push to
12235         targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
12236         * hooks.c (hook_bool_uint_true): New.
12237         * hooks.h (hook_bool_uint_true): Likewise.
12238         * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
12239         targetm.calls.push_argument (0).
12240         * target.def (push_argument): Add a targetm.calls hook.
12241         * targhooks.c (default_push_argument): New.
12242         * targhooks.h (default_push_argument): Likewise.
12243         * config/bpf/bpf.h (PUSH_ARGS): Removed.
12244         * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
12245         * config/cr16/cr16.h (PUSH_ARGS): Removed.
12246         * config/i386/i386.c (ix86_push_argument): New.
12247         (TARGET_PUSH_ARGUMENT): Likewise.
12248         * config/i386/i386.h (PUSH_ARGS): Removed.
12249         * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
12250         * config/m32c/m32c.h (PUSH_ARGS): Removed.
12251         * config/nios2/nios2.h (PUSH_ARGS): Likewise.
12252         * config/pru/pru.h (PUSH_ARGS): Likewise.
12253         * doc/tm.texi.in: Remove PUSH_ARGS documentation.  Add
12254         TARGET_PUSH_ARGUMENT hook.
12255         * doc/tm.texi: Regenerated.
12257 2021-06-17  Uroš Bizjak  <ubizjak@gmail.com>
12259         PR target/97194
12260         * config/i386/i386-expand.c (expand_vector_set_var):
12261         Handle V2FS mode remapping.  Pass TARGET_MMX_WITH_SSE to
12262         ix86_expand_vector_init_duplicate.
12263         (ix86_expand_vector_init_duplicate): Emit insv_1 for
12264         QImode for !TARGET_PARTIAL_REG_STALL.
12265         * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
12266         * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
12267         as operand 2 predicate.  Call ix86_expand_vector_set_var
12268         for non-constant index operand.
12269         (vec_setv2si): Ditto.
12270         (vec_setv4hi): Ditto.
12271         (vec_setv8qi): ditto.
12273 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
12275         PR tree-optimization/100790
12276         * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
12277         code.
12279 2021-06-17  Martin Liska  <mliska@suse.cz>
12281         * doc/invoke.texi: Use consistently -O1 instead of -O.
12283 2021-06-17  Martin Liska  <mliska@suse.cz>
12285         * gcov-io.h: Update documentation entry about string format.
12287 2021-06-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
12289         PR target/100871
12290         * config/s390/vecintrin.h (vec_doublee): Fix to use
12291           __builtin_s390_vflls.
12292         (vec_floate): Fix to use __builtin_s390_vflrd.
12294 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
12296         * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
12297         * dominance.h (get_dominated_to_depth): Likewise.
12298         (get_all_dominated_blocks): Likewise.
12299         * cfgcleanup.c (delete_unreachable_blocks): Adjust.
12300         * gcse.c (hoist_code): Likewise.
12301         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
12302         * tree-parloops.c (oacc_entry_exit_ok): Likewise.
12303         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
12304         * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
12306 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
12308         * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
12309         * dominance.h (get_dominated_by_region): Likewise.
12310         * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
12311         (gimple_duplicate_sese_tail): Likewise.
12312         (move_sese_region_to_fn): Likewise.
12314 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
12316         * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
12317         * dominance.h (get_dominated_by): Likewise.
12318         * auto-profile.c (afdo_find_equiv_class): Adjust.
12319         * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
12320         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
12321         * tree-cfg.c (test_linear_chain): Likewise.
12322         (test_diamond): Likewise.
12324 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
12326         * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
12327         * cfgloopanal.c (get_loop_hot_path): Likewise.
12328         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
12330 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
12332         * cgraph.c (cgraph_node::collect_callers): Return
12333         auto_vec<cgraph_edge *>.
12334         * cgraph.h (cgraph_node::collect_callers): Likewise.
12335         * ipa-cp.c (create_specialized_node): Adjust.
12336         (decide_about_value): Likewise.
12337         (decide_whether_version_node): Likewise.
12338         * ipa-sra.c (process_isra_node_results): Likewise.
12340 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
12342         * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
12343         (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
12344         constructor.
12345         (auto_vec<T, 0>::operator=): Define move assignment and delete copy
12346         assignment.
12348 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
12350         * gimple-range.cc (debug_seed_ranger): New.
12351         (dump_ranger): New.
12352         (debug_ranger): New.
12354 2021-06-17  Richard Biener   <rguenther@suse.de>
12356         PR tree-optimization/54400
12357         * tree-vectorizer.h (enum slp_instance_kind): Add
12358         slp_inst_kind_bb_reduc.
12359         (reduction_fn_for_scalar_code): Declare.
12360         * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
12361         Check SLP_INSTANCE_KIND instead of looking at the
12362         representative.
12363         (vect_slp_analyze_instance_alignment): Likewise.
12364         * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
12365         * tree-vect-slp.c (vect_slp_linearize_chain): Split out
12366         chain linearization from vect_build_slp_tree_2 and generalize
12367         for the use of BB reduction vectorization.
12368         (vect_build_slp_tree_2): Adjust accordingly.
12369         (vect_optimize_slp): Elide permutes at the root of BB reduction
12370         instances.
12371         (vectorizable_bb_reduc_epilogue): New function.
12372         (vect_slp_prune_covered_roots): Likewise.
12373         (vect_slp_analyze_operations): Use them.
12374         (vect_slp_check_for_constructors): Recognize associatable
12375         chains for BB reduction vectorization.
12376         (vectorize_slp_instance_root_stmt): Generate code for the
12377         BB reduction epilogue.
12379 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
12381         * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
12382         may_recompute_p.
12383         (gori_compute::may_recompute_p): New.
12384         (gori_compute::outgoing_edge_range_p): Perform recomputations.
12385         * gimple-range-gori.h (class gori_compute): Add prototype.
12387 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
12389         * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
12390         true when a range can be calculated.
12391         * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
12393 2021-06-16  Martin Sebor  <msebor@redhat.com>
12395         * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
12396         Correct documented defaults.
12398 2021-06-16  Andrew MacLeod  <amacleod@redhat.com>
12400         * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
12401         m_new_value_p directly.
12403 2021-06-16  Uroš Bizjak  <ubizjak@gmail.com>
12405         PR target/89021
12406         * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
12407         Handle 64bit modes for TARGET_SSE4_1.
12408         (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
12409         (expand_vec_perm_even_odd_pack): Handle V4HI mode.
12410         (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
12411         expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
12412         expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
12413         * config/i386/mmx.md (mmx_packusdw): New insn pattern.
12415 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
12417         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
12418         Change to an expander that emits the correct instruction
12419         depending on endianness.
12420         (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
12421         (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
12423 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
12425         * config/aarch64/aarch64-simd-builtins.def: Split generator
12426         for aarch64_<su>qmovn builtins into scalar and vector
12427         variants.
12428         * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
12429         Define.
12430         (aarch64_<su>qmovn<mode>_insn_be): Define.
12431         (aarch64_<su>qmovn<mode>): Split into scalar and vector
12432         variants. Change vector variant to an expander that emits the
12433         correct instruction depending on endianness.
12435 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
12437         * config/aarch64/aarch64-simd-builtins.def: Split generator
12438         for aarch64_sqmovun builtins into scalar and vector variants.
12439         * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
12440         Split into scalar and vector variants. Change vector variant
12441         to an expander that emits the correct instruction depending
12442         on endianness.
12443         (aarch64_sqmovun<mode>_insn_le): Define.
12444         (aarch64_sqmovun<mode>_insn_be): Define.
12446 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
12448         * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
12449         Define - modeling zero-high-half semantics.
12450         (aarch64_xtn<mode>): Change to an expander that emits the
12451         appropriate instruction depending on endianness.
12452         (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
12453         semantics.
12454         (aarch64_xtn2<mode>_le): Rename to...
12455         (aarch64_xtn2<mode>_insn_le): This.
12456         (aarch64_xtn2<mode>_be): Rename to...
12457         (aarch64_xtn2<mode>_insn_be): This.
12458         (vec_pack_trunc_<mode>): Emit truncation instruction instead
12459         of aarch64_xtn.
12460         * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
12461         attribute iterator.
12463 2021-06-16  Martin Jambor  <mjambor@suse.cz>
12465         PR tree-optimization/100453
12466         * tree-sra.c (create_access): Disqualify any const candidates
12467         which are written to.
12468         (sra_modify_expr): Do not store sub-replacements back to a const base.
12469         (handle_unscalarized_data_in_subtree): Likewise.
12470         (sra_modify_assign): Likewise.  Earlier, use TREE_READONLy test
12471         instead of constant_decl_p.
12473 2021-06-16  Jakub Jelinek  <jakub@redhat.com>
12475         PR middle-end/101062
12476         * stor-layout.c (finish_bitfield_representative): For fields in unions
12477         assume nextf is always NULL.
12478         (finish_bitfield_layout): Compute bit field representatives also in
12479         unions, but handle it as if each bitfield was the only field in the
12480         aggregate.
12482 2021-06-16  Richard Biener  <rguenther@suse.de>
12484         PR tree-optimization/101088
12485         * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
12486         supported refs on edges.  Do not assert same ref but
12487         different kind stores are unsuported but mark them so.
12488         (hoist_memory_references): Only look for supported refs
12489         on exits.
12491 2021-06-16  Roger Sayle  <roger@nextmovesoftware.com>
12493         PR rtl-optimization/46235
12494         * config/i386/i386.md: New define_split for bt followed by cmov.
12495         (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
12496         (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
12497         (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
12498         by setnc with zero extension.
12500 2021-06-16  Richard Biener  <rguenther@suse.de>
12502         PR tree-optimization/101083
12503         * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
12504         vectype as argument.
12505         (vect_build_slp_tree_2): Adjust.
12507 2021-06-15  Martin Sebor  <msebor@redhat.com>
12509         PR middle-end/100876
12510         * builtins.c: (gimple_call_return_array): Account for size_t
12511         mangling as either unsigned int or unsigned long
12513 2021-06-15  Jeff Law  <jeffreyalaw@gmail.com>
12515         * compare-elim.c (try_eliminate_compare): Run DCE to clean things
12516         up before eliminating comparisons.
12518 2021-06-15  Aldy Hernandez  <aldyh@redhat.com>
12520         * range-op.cc (operator_bitwise_or::wi_fold): Make sure
12521         nonzero|X is nonzero.
12522         (range_op_bitwise_and_tests): Add tests for above.
12524 2021-06-15  Carl Love  <cel@us.ibm.com>
12526         PR target/101022
12527         * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
12528         enum definition.
12529         (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
12530         definitions.
12532 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
12534         PR fortran/92568
12535         * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
12536         (struct gimplify_omp_ctx): Extend defaultmap array by one.
12537         (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
12538         (omp_notice_variable): Update type classification for Fortran.
12539         (gimplify_scan_omp_clauses): Update calls for new argument; handle
12540         GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
12541         * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
12542         * langhooks.c (lhd_omp_scalar_p): Likewise.
12543         (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
12544         (LANG_HOOKS_DECLS): Add them.
12545         * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
12546         omp_scalar_p pointer type to include the new bool argument.
12548 2021-06-15  David Malcolm  <dmalcolm@redhat.com>
12550         * doc/analyzer.texi
12551         (Special Functions for Debugging the Analyzer): Add
12552         __analyzer_dump_capacity.
12554 2021-06-15  Jakub Jelinek  <jakub@redhat.com>
12556         PR target/101046
12557         * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
12558         case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
12560 2021-06-15  Richard Biener  <rguenther@suse.de>
12562         * cfgloopanal.c (mark_irreducible_loops): Use a dominance
12563         check to identify loop latches.
12564         * cfgloop.c (verify_loop_structure): Likewise.
12565         * loop-init.c (apply_loop_flags): Allow marked irreducible
12566         regions even with multiple latches.
12567         * predict.c (rebuild_frequencies): Simplify.
12569 2021-06-15  Richard Biener  <rguenther@suse.de>
12571         * tree-ssa-threadupdate.c
12572         (jump_thread_path_registry::mark_threaded_blocks): Assert we
12573         have marked irreducible regions.
12575 2021-06-14  Martin Sebor  <msebor@redhat.com>
12577         PR c++/100876
12578         * builtins.c (gimple_call_return_array): Check for attribute fn spec.
12579         Handle calls to placement new.
12580         (ndecl_dealloc_argno): Avoid placement delete.
12582 2021-06-14  Peter Bergner  <bergner@linux.ibm.com>
12584         PR target/100777
12585         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
12586         create_tmp_reg_or_ssa_name().
12588 2021-06-14  Andrew MacLeod  <amacleod@redhat.com>
12590         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
12591         (ranger_cache::enable_new_values): Set to specified value and
12592         return the old value.
12593         (ranger_cache::disable_new_values): Delete.
12594         (ranger_cache::fill_block_cache): Disable non 1st order derived
12595         poor values.
12596         * gimple-range-cache.h (ranger_cache): Adjust prototypes.
12597         * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
12599 2021-06-14  Uroš Bizjak  <ubizjak@gmail.com>
12601         PR target/101058
12602         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
12603         Return true early when testing with V2HImode.
12604         * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
12606 2021-06-14  Christophe Lyon  <christophe.lyon@linaro.org>
12608         * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
12609         (mve_vec_unpack<US>_hi_<mode>): New pattern.
12610         (@mve_vec_pack_trunc_lo_<mode>): New pattern.
12611         (mve_vmovntq_<supf><mode>): Prefix with '@'.
12612         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
12613         vec-common.md.
12614         (vec_unpack<US>_lo_<mode>): Likewise.
12615         (vec_pack_trunc_<mode>): Rename to
12616         neon_quad_vec_pack_trunc_<mode>.
12617         * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
12618         pattern.
12619         (vec_unpack<US>_lo_<mode>): New.
12620         (vec_pack_trunc_<mode>): New.
12622 2021-06-14  Richard Biener  <rguenther@suse.de>
12624         PR tree-optimization/100934
12625         * tree-ssa-dom.c (pass_dominator::execute): Properly
12626         mark irreducible regions.
12628 2021-06-14  Martin Liska  <mliska@suse.cz>
12630         * doc/invoke.texi: Put r{...} on the same line as @item.
12632 2021-06-14  Martin Liska  <mliska@suse.cz>
12634         * doc/invoke.texi: Add missing newline.
12636 2021-06-14  Martin Liska  <mliska@suse.cz>
12638         * doc/invoke.texi: Remove '+' charasters.
12640 2021-06-14  Claudiu Zissulescu  <claziss@synopsys.com>
12642         * config.gcc (arc): Add support for with_cpu option.
12643         * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
12645 2021-06-14  Richard Biener  <rguenther@suse.de>
12647         PR tree-optimization/101031
12648         * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
12649         instead of size when accounting for a possibly string
12650         terminating nul.
12652 2021-06-14  Martin Liska  <mliska@suse.cz>
12654         * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
12656 2021-06-14  Aldy Hernandez  <aldyh@redhat.com>
12658         * value-query.cc (gimple_range_global): Call get_range_global
12659         if called after inlining.
12661 2021-06-13  Uroš Bizjak  <ubizjak@gmail.com>
12663         PR target/101021
12664         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
12665         Emit constant permutation insn directly from here.
12667 2021-06-13  Trevor Saunders  <tbsaunde@tbsaunde.org>
12669         * attribs.c (find_attribute_namespace): Iterate over vec<> with
12670         range based for.
12671         * auto-profile.c (afdo_find_equiv_class): Likewise.
12672         * gcc.c (do_specs_vec): Likewise.
12673         (do_spec_1): Likewise.
12674         (driver::set_up_specs): Likewise.
12675         * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
12676         * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
12677         (imm_store_chain_info::try_coalesce_bswap): Likewise.
12678         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
12679         (get_location_for_stmts): Likewise.
12680         * graphite-poly.c (print_iteration_domains): Likewise.
12681         (free_poly_bb): Likewise.
12682         (remove_gbbs_in_scop): Likewise.
12683         (free_scop): Likewise.
12684         (dump_gbb_cases): Likewise.
12685         (dump_gbb_conditions): Likewise.
12686         (print_pdrs): Likewise.
12687         (print_scop): Likewise.
12688         * ifcvt.c (cond_move_process_if_block): Likewise.
12689         * lower-subreg.c (decompose_multiword_subregs): Likewise.
12690         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
12691         * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
12692         * sel-sched-dump.c (dump_insn_vector): Likewise.
12693         * store-motion.c (store_ops_ok): Likewise.
12694         (store_killed_in_insn): Likewise.
12695         * timevar.c (timer::named_items::print): Likewise.
12696         * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
12697         (cleanup_tree_cfg_noloop): Likewise.
12698         * tree-data-ref.c (dump_data_references): Likewise.
12699         (print_dir_vectors): Likewise.
12700         (print_dist_vectors): Likewise.
12701         (dump_data_dependence_relations): Likewise.
12702         (dump_dist_dir_vectors): Likewise.
12703         (dump_ddrs): Likewise.
12704         (create_runtime_alias_checks): Likewise.
12705         (free_subscripts): Likewise.
12706         (save_dist_v): Likewise.
12707         (save_dir_v): Likewise.
12708         (invariant_access_functions): Likewise.
12709         (same_access_functions): Likewise.
12710         (access_functions_are_affine_or_constant_p): Likewise.
12711         (find_data_references_in_stmt): Likewise.
12712         (graphite_find_data_references_in_stmt): Likewise.
12713         (free_dependence_relations): Likewise.
12714         (free_data_refs): Likewise.
12715         * tree-inline.c (copy_debug_stmts): Likewise.
12716         * tree-into-ssa.c (dump_currdefs): Likewise.
12717         (rewrite_update_phi_arguments): Likewise.
12718         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
12719         * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
12720         Likewise.
12721         (vect_slp_analyze_node_dependences): Likewise.
12722         (vect_slp_analyze_instance_dependence): Likewise.
12723         (vect_record_base_alignments): Likewise.
12724         (vect_get_peeling_costs_all_drs): Likewise.
12725         (vect_peeling_supportable): Likewise.
12726         * tree-vectorizer.c (vec_info::~vec_info): Likewise.
12727         (vec_info::free_stmt_vec_infos): Likewise.
12729 2021-06-13  Jeff Law  <jeffreyalaw@gmail.com>
12731         * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
12732         (andqi3_1<cczn>): Removed.
12733         (<ors>qi3_1): Do not split for IOR/XOR a single bit.
12734         (H8/SX bit logicals): Split out from other patterns.
12735         * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
12736         mulqihi3_const_clobber_flags.
12737         (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
12739 2021-06-13  H.J. Lu  <hjl.tools@gmail.com>
12741         PR target/101023
12742         * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
12743         to true if red zone is used.
12744         (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
12745         ix86_red_zone_used.
12746         * config/i386/i386.h (machine_function): Add red_zone_used.
12747         (ix86_red_zone_size): Removed.
12748         (ix86_red_zone_used): New.
12749         * config/i386/i386.md (peephole2 patterns): Replace
12750         ix86_red_zone_size with ix86_red_zone_used.
12752 2021-06-12  Jason Merrill  <jason@redhat.com>
12754         * doc/extend.texi (unused variable attribute): Applies to
12755         structure fields as well.
12757 2021-06-12  Eugene Rozenfeld  <erozen@microsoft.com>
12759         * auto-profile.c (read_profile): fix a typo in an error string
12761 2021-06-11  Thomas Schwinge  <thomas@codesourcery.com>
12763         * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
12764         default argument.
12765         * tree-pretty-print.c (dump_omp_clauses): Update.
12766         (dump_generic_node) <OMP_CLAUSE>: Use it.
12768 2021-06-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
12770         PR target/101016
12771         * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
12772         int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
12773         the polymorphic variants matching code.
12774         (__arm_vld1q_z): Likewise.
12775         (__arm_vld2q): Likewise.
12776         (__arm_vld4q): Likewise.
12777         (__arm_vldrbq_gather_offset): Likewise.
12778         (__arm_vldrbq_gather_offset_z): Likewise.
12780 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
12782         PR tree-optimization/96392
12783         * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
12785 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
12787         PR tree-optimization/96392
12788         * fold-const.c (fold_real_zero_addition_p): Take both arguments
12789         of the addition or subtraction, not just the zero.  Use this
12790         other argument in tests for signaling NaNs and signed zeros.
12791         (tree_expr_maybe_real_minus_zero_p): New predicate.
12792         * fold-const.h (fold_real_zero_addition_p): Update prototype.
12793         (tree_expr_maybe_real_minus_zero_p): New function prototype.
12794         * match.pd: Update calls to fold_real_zero_addition_p.
12795         Replace HONOR_NANS with tree_expr_maybe_nan_p.
12796         Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
12797         Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
12798         * tree-ssa-reassoc.c (eliminate_using_constants): Update
12799         call to fold_real_zero_addition_p.
12801 2021-06-11  Richard Biener  <rguenther@suse.de>
12803         PR tree-optimization/101025
12804         * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
12805         all refs that require dependence checking.
12807 2021-06-11  Richard Biener  <rguenther@suse.de>
12809         PR tree-optimization/101028
12810         * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
12811         reassoc discovery fails fatally, mark appropriate lanes
12812         in matches[] so.
12814 2021-06-11  Richard Biener  <rguenther@suse.de>
12816         PR tree-optimization/101026
12817         * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
12818         have a representative for the associated chain nodes.
12820 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
12822         PR rtl-optimization/101008
12823         * simplify-rtx.c (relational_result): New function.
12824         (simplify_logical_relational_operation,
12825         simplify_relational_operation): Use it.
12827 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
12829         PR target/101007
12830         * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
12832 2021-06-11  Uroš Bizjak  <ubizjak@gmail.com>
12834         PR target/101021
12835         * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
12836         false if the permutation can be implemented with constant
12837         permutation instruction in wider mode.
12838         (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
12839         Handle V8QImode and V4HImode.
12841 2021-06-11  Martin Liska  <mliska@suse.cz>
12843         PR gcov-profile/100788
12844         * common.opt: Add new option.
12845         * coverage.c (coverage_begin_function): Emit warning instead on
12846         the internal compiler error.
12847         * doc/invoke.texi: Document the option.
12848         * toplev.c (process_options): Enable it by default.
12850 2021-06-11  Richard Biener  <rguenther@suse.de>
12852         PR middle-end/101009
12853         * tree-data-ref.c (build_classic_dist_vector_1): Make sure
12854         to set *init_b to true when we encounter a constant equal
12855         index pair.
12856         (compute_affine_dependence): Also dump the actual DR_REF.
12858 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
12860         PR tree-optimization/100984
12861         * gimple-ssa-evrp.c  (ssa_equiv_stack): Use auto_vec for
12862         replacements table.
12863         (ssa_equiv_stack::~ssa_equiv_stack): Remove.
12865 2021-06-11  Kewen Lin  <linkw@linux.ibm.com>
12867         * config/rs6000/rs6000.md
12868         (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
12869         define_insn_and_split.
12871 2021-06-11  Richard Biener  <rguenther@suse.de>
12873         * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
12874         to sort operands of the associative chain.
12876 2021-06-11  Richard Biener  <rguenther@suse.de>
12878         * system.h (gcc_stablesort_r): Declare.
12879         * sort.cc (gcc_sort_r): Support stable sort.
12880         (gcc_stablesort_r): Define.
12881         * vec.h (vec<>::stablesort): Add.
12883 2021-06-10  Uroš Bizjak  <ubizjak@gmail.com>
12885         PR target/89021
12886         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
12887         Handle V2SF mode.  Emit SHUFPS to fixup unpack-high for V2SF mode.
12888         (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
12889         (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
12890         (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
12891         (expand_vec_perm_interleave2): Handle 64bit modes.
12892         (expand_vec_perm_even_odd_pack): Handle V8QI mode.
12893         (expand_vec_perm_even_odd_1): Ditto.
12894         (ix86_vectorize_vec_perm_const): Ditto.
12895         * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
12896         * config/i386/sse.md: ... here.
12897         * config/i386/mmx.md (*vec_interleave_lowv2sf):
12898         New insn_and_split pattern.
12899         (*vec_interleave_highv2sf): Ditto.
12900         (mmx_pshufbv8qi3): New insn pattern.
12901         (*mmx_pblendw): Ditto.
12903 2021-06-10  Peter Bergner  <bergner@linux.ibm.com>
12905         * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
12906         (build_acc): Likewise.
12907         * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
12908         source operands in little-endian mode.
12909         (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
12910         (mma_init_builtins): Likewise.
12911         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
12912         ordering for the MMA assemble and build source operands.
12913         * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
12914         Document.
12915         (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
12916         documentation.
12918 2021-06-10  Jeff Law  <jeffreyalaw@gmail.com>
12920         * config/h8300/h8300.c (select_cc_mode): Handle MEM.  Use
12921         REG_P.
12922         * config/h8300/extensions.md: Replace _clobber_flags patterns
12923         with <cczn>.
12925 2021-06-10  Robin Dapp  <rdapp@linux.ibm.com>
12927         * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
12928         (vcond_mask_<mode><tointvec>): this.
12930 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
12931             Thomas Schwinge  <thomas@codesourcery.com>
12933         * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
12934         (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
12935         * gimple.h (enum gf_mask): Split
12936         'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
12937         'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
12938         'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
12939         (is_gimple_omp_oacc): Update.
12940         * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
12941         * gimplify.c (gimplify_omp_target_update): Likewise.
12942         * omp-expand.c (expand_omp_target, build_omp_regions_1)
12943         (omp_make_gimple_edges): Likewise.
12944         * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
12945         Likewise.
12947 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
12949         * value-query.cc (value_query::value_on_edge): Rename name to
12950         expr.
12951         (range_query::range_on_edge): Same.
12952         (range_query::value_of_expr): Same.
12953         (range_query::value_on_edge): Same.
12954         * value-query.h (class value_query): Same.
12955         (class range_query): Same.
12957 2021-06-10  Richard Biener  <rguenther@suse.de>
12959         PR tree-optimization/101003
12960         * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
12961         use the pattern stmt defs when linearizing a chain.
12963 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
12965         PR debug/100852
12966         * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
12967         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
12969 2021-06-10  Clement Chigot  <clement.chigot@atos.net>
12971         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
12972         * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
12974 2021-06-09  Andrew Pinski  <apinski@marvell.com>
12976         PR tree-optimization/100925
12977         * match.pd (a ? CST1 : CST2): Limit transformations
12978         that would produce a negative to integeral types only.
12979         Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
12981 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
12983         Revert:
12984         2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
12986         * doc/tm.texi: Correctly update.
12988 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
12990         * doc/tm.texi: Correctly update.
12992 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
12994         PR other/100735
12995         * doc/tm.texi.in (Trampolines): Add a missing blank line.
12997 2021-06-09  Paul Eggert  <eggert@cs.ucla.edu>
12999         PR other/100735
13000         * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
13001         and -ftrampolines work only with Ada.
13002         * doc/tm.texi.in (Trampolines): Likewise.
13003         * doc/tm.texi: Regenerated.
13005 2021-06-09  Carl Love  <cel@us.ibm.com>
13007         * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
13008         Add define for new builtins.
13009         * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
13010         * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL):  Add
13011         overloaded builtin definitions.
13012         (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
13013         VSIGNEXTSD2Q):  Add builtin expansions.
13014         (SIGNEXT): Add P10 overload definition.
13015         * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
13016         P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
13017         * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
13018         (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
13019         vsignextend_si_v2di)[VIlong]: Add define_expand.
13020         Make define_insn vsx_sign_extend_si_v2di visible.
13021         * doc/extend.texi:  Add documentation for the vec_signexti,
13022         vec_signextll builtins and vec_signextq.
13024 2021-06-09  Carl Love  <cel@us.ibm.com>
13026         * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
13027         __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
13028         __floattikf_sw, __floatuntikf_sw respectively.
13029         * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
13030         fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
13031         define_insn for mode IEEE 128.
13033 2021-06-09  Carl Love  <cel@us.ibm.com>
13035         * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
13036         Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
13037         * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
13038         (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
13039         (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
13040         * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
13041         uses of VSX_TI to VEC_TI.
13043 2021-06-09  Carl Love  <cel@us.ibm.com>
13045         * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
13047 2021-06-09  Carl Love  <cel@us.ibm.com>
13049         * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
13050         builtins.
13051         * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
13052         UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
13053         (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
13054         altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
13055         altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
13056         altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
13057         altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
13058         define_insn.
13059         (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
13060         vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
13061         altivec_vrlqnm): New define_expands.
13062         * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
13063         VCMPGTUT_P): Add macro expansions.
13064         (BU_P10V_AV_P): Add builtin predicate definition.
13065         (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
13066         CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
13067         VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
13068         VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
13069         MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
13070         (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
13071         * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
13072         P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
13073         P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
13074         P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
13075         P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
13076         P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
13077         P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
13078         P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
13079         P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
13080         P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
13081         P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
13082         P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
13083         P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
13084         P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
13085         P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
13086         P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
13087         P10V_BUILTIN_MODU_V1TI):
13088         New overloaded definitions.
13089         (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
13090         P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
13091         P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
13092         P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
13093         P10V_BUILTIN_CMPLE_U1TI]: New case statements.
13094         (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
13095         New assignments.
13096         (altivec_init_builtins): New E_V1TImode case statement.
13097         (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
13098         P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
13099         P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
13100         P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
13101         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
13102         E_V1TImode]: New case statements.
13103         * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
13104         value RS6000_BTI_bool_V1TI.
13105         * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
13106         vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
13107         vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
13108         vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
13109         vlshrv1ti3, vashrv1ti3): New define_expands.
13110         * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
13111         UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
13112         UNSPEC_VSX_MODUQ): New unspecs.
13113         (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
13114         vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
13115         define_insns.
13116         (vcmpnet): New define_expand.
13117         * doc/extend.texi: Add documentation for the new builtins vec_rl,
13118         vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
13119         vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
13120         vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
13121         vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
13122         vec_any_ge, vec_any_le.
13124 2021-06-09  Carl Love  <cel@us.ibm.com>
13126         * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
13127         bug in argument generation.
13129 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
13131         * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
13132         (VCLZQ): Remove.
13133         * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
13134         remove <supf> iterator.
13135         (mve_vclzq_u<mode>): New.
13136         * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
13137         (neon_vclz<mode): Move to ...
13138         * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
13139         * config/arm/vec-common.md: ... here. Add support for MVE.
13141 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
13143         * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
13144         (@mve_vrhaddq_<supf><mode): Likewise.
13145         * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
13146         * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
13147         (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
13149 2021-06-09  imba-tjd  <109224573@qq.com>
13151         * doc/invoke.texi: Fix typo.
13153 2021-06-09  Roger Sayle  <roger@nextmovesoftware.com>
13155         PR middle-end/53267
13156         * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
13157         Support evaluation of fmod/fmodf/fmodl at compile-time.
13159 2021-06-09  Richard Biener  <rguenther@suse.de>
13161         PR tree-optimization/100981
13162         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
13163         gimple_get_lhs to also handle calls.
13164         * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
13165         reduction info.
13167 2021-06-09  Richard Biener  <rguenther@suse.de>
13169         PR tree-optimization/97832
13170         * tree-vectorizer.h (_slp_tree::failed): New.
13171         * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
13172         failed member.
13173         (_slp_tree::~_slp_tree): Free failed.
13174         (vect_build_slp_tree): Retain failed nodes and record
13175         matches in them, copying that back out when running
13176         into a cached fail.  Dump start and end of discovery.
13177         (dt_sort_cmp): New.
13178         (vect_build_slp_tree_2): Handle associatable chains
13179         together doing more aggressive operand swapping.
13181 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
13183         PR target/100896
13184         * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
13185         GNU targets.
13186         * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
13187         Linux and GNU targets.
13189 2021-06-09  Richard Biener  <rguenther@suse.de>
13191         * tree-vect-stmts.c (vect_is_simple_use): Always get dt
13192         from the stmt.
13194 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
13196         * config/arc/arc.md (loop_end): Change it to
13197         define_insn_and_split.
13199 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
13201         * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
13202         (machi): New pattern.
13203         (umaddhisi4): Use VMAC2HU instruction.
13204         (umachi): New pattern.
13206 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
13208         * config/arc/arc-protos.h (arc_split_move_p): New prototype.
13209         * config/arc/arc.c (arc_split_move_p): New function.
13210         (arc_split_move): Clean up.
13211         * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
13212         (movdf_insn): Likewise.
13213         * config/arc/simdext.md (mov<VWH>_insn): Likewise.
13215 2021-06-09  Uroš Bizjak  <ubizjak@gmail.com>
13217         PR target/100936
13218         * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
13219         argument to "raw".  Do not emit segment overrides when "raw" is true.
13221 2021-06-09  Martin Liska  <mliska@suse.cz>
13223         * doc/gcov.texi: Create a proper JSON files.
13224         * doc/invoke.texi: Remove dots in order to make it a valid
13225         JSON object.
13227 2021-06-09  Xionghu Luo  <luoxhu@linux.ibm.com>
13229         * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
13230         (insn_is_load_p): Use pattern_is_rotate64.
13231         (insn_is_swap_p): Likewise.
13232         (quad_aligned_load_p): Likewise.
13233         (const_load_sequence_p): Likewise.
13234         (replace_swapped_aligned_load): Likewise.
13235         (recombine_lvx_pattern): Likewise.
13236         (recombine_stvx_pattern): Likewise.
13238 2021-06-09  Andrew MacLeod  <amacleod@redhat.com>
13240         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
13241         fur_stmt source record.
13242         * gimple-range.cc (fur_source::get_operand): Generic range query.
13243         (fur_source::get_phi_operand): New.
13244         (fur_source::register_dependency): New.
13245         (fur_source::query): New.
13246         (class fur_edge): New.  Edge source for operands.
13247         (fur_edge::fur_edge): New.
13248         (fur_edge::get_operand): New.
13249         (fur_edge::get_phi_operand): New.
13250         (fur_edge::query): New.
13251         (fur_stmt::fur_stmt): New.
13252         (fur_stmt::get_operand): New.
13253         (fur_stmt::get_phi_operand): New.
13254         (fur_stmt::query): New.
13255         (class fur_depend): New.  Statement source and process dependencies.
13256         (fur_depend::fur_depend): New.
13257         (fur_depend::register_dependency): New.
13258         (class fur_list): New.  List source for operands.
13259         (fur_list::fur_list): New.
13260         (fur_list::get_operand): New.
13261         (fur_list::get_phi_operand): New.
13262         (fold_range): New.  Instantiate appropriate fur_source class and fold.
13263         (fold_using_range::range_of_range_op): Use new API.
13264         (fold_using_range::range_of_address): Ditto.
13265         (fold_using_range::range_of_phi): Ditto.
13266         (imple_ranger::fold_range_internal): Use fur_depend class.
13267         (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
13268         * gimple-range.h (class fur_source): Now a base class.
13269         (class fur_stmt): New.
13270         (fold_range): New prototypes.
13271         (fur_source::fur_source): Delete.
13273 2021-06-08  Andrew Pinski  <apinski@marvell.com>
13275         PR tree-optimization/25290
13276         * tree-ssa-phiopt.c (xor_replacement): Delete.
13277         (tree_ssa_phiopt_worker): Delete use of xor_replacement.
13278         (match_simplify_replacement): Allow one cheap preparation
13279         statement that can be moved to before the if.
13281 2021-06-08  Pat Haugen  <pthaugen@linux.ibm.com>
13283         * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
13284         power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
13286 2021-06-08  Jeff Law  <jeffreyalaw@gmail.com>
13288         * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
13289         Create length attribute on define_insn_and_split.  Only split for cases which we
13290         know will use AND.
13291         (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags.  Only handle AND here and
13292         fix length computation.
13293         (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
13295 2021-06-08  Richard Biener  <rguenther@suse.de>
13297         PR tree-optimization/100923
13298         * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
13299         the operand vector to be valueized.
13300         (valueize_refs): Likewise.
13301         (valueize_shared_reference_ops_from_ref): Adjust.
13302         (valueize_shared_reference_ops_from_call): Likewise.
13303         (vn_reference_lookup_3): Likewise.
13304         (vn_reference_lookup_pieces): Likewise.  Re-valueize
13305         with honoring availability when we are about to create
13306         the ao_ref and valueized before.
13307         (vn_reference_lookup): Likewise.
13308         (vn_reference_insert_pieces): Adjust.
13310 2021-06-08  Richard Biener  <rguenther@suse.de>
13312         * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
13313         (_slp_instance::root_stmts): ... a vector.
13314         (SLP_INSTANCE_ROOT_STMT): Rename to ...
13315         (SLP_INSTANCE_ROOT_STMTS): ... this.
13316         (slp_root::root): Change to...
13317         (slp_root::roots): ... a vector.
13318         (slp_root::slp_root): Adjust.
13319         * tree-vect-slp.c (_slp_instance::location): Adjust.
13320         (vect_free_slp_instance): Release the root stmt vector.
13321         (vect_build_slp_instance): Adjust.
13322         (vect_analyze_slp): Likewise.
13323         (_bb_vec_info::~_bb_vec_info): Likewise.
13324         (vect_slp_analyze_operations): Likewise.
13325         (vect_bb_vectorization_profitable_p): Likewise.  Adjust
13326         costs for the root stmt.
13327         (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
13328         as root stmts.
13329         (vect_slp_analyze_bb_1): Simplify by marking all root stmts
13330         as pure_slp.
13331         (vectorize_slp_instance_root_stmt): Adjust.
13332         (vect_schedule_slp): Likewise.
13334 2021-06-08  Aldy Hernandez  <aldyh@redhat.com>
13336         * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
13337         (ssa_equiv_stack::ssa_equiv_stack): New.
13338         (ssa_equiv_stack::~ssa_equiv_stack): New.
13339         (ssa_equiv_stack::enter): New.
13340         (ssa_equiv_stack::leave): New.
13341         (ssa_equiv_stack::push_replacement): New.
13342         (ssa_equiv_stack::get_replacement): New.
13343         (is_pointer_ssa): New.
13344         (class pointer_equiv_analyzer): New.
13345         (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
13346         (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
13347         (pointer_equiv_analyzer::set_global_equiv): New.
13348         (pointer_equiv_analyzer::set_cond_equiv): New.
13349         (pointer_equiv_analyzer::get_equiv): New.
13350         (pointer_equiv_analyzer::enter): New.
13351         (pointer_equiv_analyzer::leave): New.
13352         (pointer_equiv_analyzer::get_equiv_expr): New.
13353         (pta_valueize): New.
13354         (pointer_equiv_analyzer::visit_stmt): New.
13355         (pointer_equiv_analyzer::visit_edge): New.
13356         (hybrid_folder::value_of_expr): Call PTA.
13357         (hybrid_folder::value_on_edge): Same.
13358         (hybrid_folder::pre_fold_bb): New.
13359         (hybrid_folder::post_fold_bb): New.
13360         (hybrid_folder::pre_fold_stmt): New.
13361         (rvrp_folder::pre_fold_bb): New.
13362         (rvrp_folder::post_fold_bb): New.
13363         (rvrp_folder::pre_fold_stmt): New.
13364         (rvrp_folder::value_of_expr): Call PTA.
13365         (rvrp_folder::value_on_edge): Same.
13367 2021-06-08  Jakub Jelinek  <jakub@redhat.com>
13369         PR c++/100957
13370         * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
13371         check TREE_CODE if OMP_CLAUSE_DECL is NULL.
13373 2021-06-08  Richard Biener  <rguenther@suse.de>
13375         PR middle-end/100951
13376         * tree-vect-generic.c (expand_vector_piecewise): Build a
13377         VECTOR_CST if all elements are constant.
13378         (expand_vector_condition): Likewise.
13379         (lower_vec_perm): Likewise.
13380         (expand_vector_conversion): Likewise.
13382 2021-06-08  Martin Liska  <mliska@suse.cz>
13384         * doc/invoke.texi: Document new param evrp-sparse-threshold.
13386 2021-06-08  Martin Liska  <mliska@suse.cz>
13388         * genautomata.c (create_automata): Fix typo.
13390 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
13392         PR tree-optimization/100794
13393         * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
13394         allow_unroll_p and only allow unrolling when it's true.
13395         (tree_predictive_commoning): Add parameter allow_unroll_p and
13396         adjust for it.
13397         (run_tree_predictive_commoning): Likewise.
13398         (pass_predcom::gate): Check flag_tree_loop_vectorize and
13399         global_options_set.x_flag_predictive_commoning.
13400         (pass_predcom::execute): Adjust for allow_unroll_p.
13402 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
13404         * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
13405         (tree_predictive_commoning_loop): Factor some cleanup stuffs into
13406         lambda function cleanup, remove scev_reset call, and adjust return
13407         value.
13408         (tree_predictive_commoning): Adjust for different changed values,
13409         only set flag TODO_update_ssa_only_virtuals if changed.
13410         (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
13411         from todo_flags_finish.
13413 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
13415         * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
13416         (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
13417         (sbr_sparse_bitmap::bitmap_set_quad): New.
13418         (sbr_sparse_bitmap::bitmap_get_quad): New.
13419         (sbr_sparse_bitmap::set_bb_range): New.
13420         (sbr_sparse_bitmap::get_bb_range): New.
13421         (sbr_sparse_bitmap::bb_range_p): New.
13422         (block_range_cache::block_range_cache): initialize bitmap obstack.
13423         (block_range_cache::~block_range_cache): Destruct obstack.
13424         (block_range_cache::set_bb_range): Decide when to utilze the
13425         sparse on entry cache.
13426         * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
13427         * params.opt (-param=evrp-sparse-threshold): New.
13429 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
13431         * bitmap.c (bitmap_set_aligned_chunk): New.
13432         (bitmap_get_aligned_chunk): New.
13433         (test_aligned_chunk): New.
13434         (bitmap_c_tests): Call test_aligned_chunk.
13435         * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
13437 2021-06-07  Uroš Bizjak  <ubizjak@gmail.com>
13439         PR target/100637
13440         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
13441         Handle V4QI mode.
13442         (ix86_expand_vector_init_one_nonzero): Ditto.
13443         (ix86_expand_vector_init_one_var): Ditto.
13444         (ix86_expand_vector_init_general): Ditto.
13445         * config/i386/mmx.md (vec_initv4qiqi): New expander.
13447 2021-06-07  Jeff Law  <jeffreyalaw@gmail.com>
13449         * config/h8300/movepush.md: Change most _clobber_flags
13450         patterns to instead use <cczn> subst.
13451         (movsi_cczn): New pattern with usable CC cases split out.
13452         (movsi_h8sx_cczn): Likewise.
13454 2021-06-07  Martin Liska  <mliska@suse.cz>
13456         * common/common-target.def: Split long lines and replace them
13457         with '\n\'.
13458         * target.def: Likewise.
13459         * doc/tm.texi: Re-generated.
13461 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
13463         PR target/100887
13464         * fold-const.c (fold_read_from_vector): Return NULL if trying to
13465         read from a CONSTRUCTOR with vector type elements.
13467 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
13469         PR middle-end/100898
13470         * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
13471         should copy any arguments.  Don't call gimple_call_num_args
13472         on id->call_stmt or call_stmt more than once.
13474 2021-06-07  liuhongt  <hongtao.liu@intel.com>
13476         PR target/100885
13477         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
13478         constraints.
13479         (<insn>v4siv4di2): Delete constraints for define_expand.
13481 2021-06-07  liuhongt  <hongtao.liu@intel.com>
13483         PR target/82735
13484         * config/i386/i386-expand.c (ix86_expand_builtin): Remove
13485         assignment of cfun->machine->has_explicit_vzeroupper.
13486         * config/i386/i386-features.c
13487         (ix86_add_reg_usage_to_vzerouppers): Delete.
13488         (ix86_add_reg_usage_to_vzeroupper): Ditto.
13489         (rest_of_handle_insert_vzeroupper): Remove
13490         ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
13491         of the function.
13492         (gate): Remove cfun->machine->has_explicit_vzeroupper.
13493         * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
13494         Declared.
13495         * config/i386/i386.c (ix86_insn_callee_abi): New function.
13496         (ix86_initialize_callee_abi): Ditto.
13497         (ix86_expand_avx_vzeroupper): Ditto.
13498         (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
13499         ABI.
13500         (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
13501         (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
13502         directly.
13503         * config/i386/i386.h (struct GTY(()) machine_function): Delete
13504         has_explicit_vzeroupper.
13505         * config/i386/i386.md (enum unspec): New member
13506         UNSPEC_CALLEE_ABI.
13507         (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
13508         define_constants for insn callee abi index.
13509         * config/i386/predicates.md (vzeroupper_pattern): Adjust.
13510         * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
13511         (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
13512         (*avx_vzeroupper): Rename to ..
13513         (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
13514         call_insn which has a special vzeroupper ABI.
13515         (*avx_vzeroupper_1): Deleted.
13517 2021-06-07  liuhongt  <hongtao.liu@intel.com>
13519         PR target/82735
13520         * df-scan.c (df_get_call_refs): When call_insn is a fake call,
13521         it won't use stack pointer reg.
13522         * final.c (leaf_function_p): When call_insn is a fake call, it
13523         won't affect caller as a leaf function.
13524         * reg-stack.c (callee_clobbers_any_stack_reg): New.
13525         (subst_stack_regs): When call_insn doesn't clobber any stack
13526         reg, don't clear the arguments.
13527         * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
13528         a insn.
13529         * shrink-wrap.c (requires_stack_frame_p): No need for stack
13530         frame for a fake call.
13531         * rtl.h (FAKE_CALL_P): New macro.
13533 2021-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13535         * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
13536         to...
13537         (sparc_order_regs_for_local_alloc): ...this.
13538         (sparc_leaf_reg_remap): Declare.
13539         * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
13540         (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
13541         * config/sparc/sparc.c (leaf_reg_remap): Delete.
13542         (order_regs_for_local_alloc): Rename to...
13543         (sparc_order_regs_for_local_alloc): ...this.
13544         (sparc_leaf_reg_remap): New function.
13545         (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
13547 2021-06-06  David Edelsohn  <dje.gcc@gmail.com>
13549         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
13550         Use assemble_name to output BSS section name.
13552 2021-06-06  Uroš Bizjak  <ubizjak@gmail.com>
13554         * config/i386/constraints.md (Bs):
13555         Remove boolean operators from match_test RTX.
13556         (Bw): Ditto.
13557         (L): Ditto.
13558         (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
13559         (Wz): Ditto.
13561 2021-06-06  Martin Liska  <mliska@suse.cz>
13563         * doc/extend.texi: Add missing @headitem.
13564         * doc/invoke.texi: Likewise.
13565         * doc/objc.texi: Likewise.
13567 2021-06-06  Martin Liska  <mliska@suse.cz>
13569         * genhooks.c (emit_findices): Remove unused function.
13570         (emit_documentation): Do not call emit_findices
13571         and do not search for @Fcode directives.
13573 2021-06-06  Martin Liska  <mliska@suse.cz>
13575         * doc/invoke.texi: Remove extra character.
13577 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
13579         * config/sh/sh.md (doloop_end_split): Fix empty split condition.
13581 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
13583         * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
13584         *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
13585         *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
13586         *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
13588 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
13590         * config/or1k/or1k.md (*movdi): Fix empty split condition.
13592 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
13594         * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
13595         split condition.
13597 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
13599         * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
13600         *zero_extendsidi2): Fix empty split condition.
13602 2021-06-05  Jeff Law  <jeffreyalaw@gmail.com>
13604         * config/h8300/addsub.md: Fix split condition in define_insn_and_split
13605         patterns.
13606         * config/h8300/bitfield.md: Likewise.
13607         * config/h8300/combiner.md: Likewise.
13608         * config/h8300/divmod.md: Likewise.
13609         * config/h8300/extensions.md: Likewise.
13610         * config/h8300/jumpcall.md: Likewise.
13611         * config/h8300/movepush.md: Likewise.
13612         * config/h8300/multiply.md: Likewise.
13613         * config/h8300/other.md: Likewise.
13614         * config/h8300/shiftrotate.md: Likewise.
13615         * config/h8300/logical.md: Likewise.  Fix split pattern to use
13616         code iterator that somehow slipped through.
13618 2021-06-04  Tobias Burnus  <tobias@codesourcery.com>
13620         PR middle-end/100905
13621         * tree-nested.c (convert_nonlocal_omp_clauses,
13622         convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
13624 2021-06-04  Martin Sebor  <msebor@redhat.com>
13626         PR middle-end/100732
13627         * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
13628         with either source or destination argument of invalid type.
13629         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
13630         calls with arguments of invalid type.
13632 2021-06-04  Martin Sebor  <msebor@redhat.com>
13634         * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
13635         order.
13636         (attr_access::vla_bounds): Also handle VLA bounds.
13638 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
13640         * config/i386/predicates.md (GOT_memory_operand):
13641         Implement using match_code RTXes.
13642         (GOT32_symbol_operand): Ditto.
13644 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
13646         PR target/100637
13647         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
13648         Handle V2HI mode.
13649         (ix86_expand_vector_init_general): Ditto.
13650         Use SImode instead of word_mode for logic operations
13651         when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
13652         (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
13653         implemented by expand_vec_perm_1.
13654         (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
13655         should be implemented using standard shuffle patterns.
13656         (ix86_vectorize_vec_perm_const): Handle V2HImode.  Add V4HI and
13657         V2HI modes to modes, implementable with shuffle for one operand.
13658         * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
13659         (*pshufw_1): New insn pattern.
13660         (*vec_dupv2hi): Ditto.
13661         (vec_initv2hihi): New expander.
13663 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
13665         * config/arm/vfp.md (no_literal_pool_df_immediate,
13666         no_literal_pool_sf_immediate): Fix empty split condition.
13668 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
13670         * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
13671         *tls_dynamic_gnu2_combine_32): Fix empty split condition.
13672         * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
13673         *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
13674         *<sse4_1_avx2>_pblendvb_lt): Likewise.
13676 2021-06-04  Jakub Jelinek  <jakub@redhat.com>
13678         PR target/100887
13679         * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
13680         concatenation from half-sized modes with TImode elements.
13682 2021-06-04  Claudiu Zissulescu  <claziss@synopsys.com>
13684         * config/arc/arc.c (arc_override_options): Disable millicode
13685         thunks when RF16 is on.
13687 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
13689         * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
13691 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
13693         * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
13694         Replace PROMOTE_MODE marco with its content.
13696 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
13698         * config/cris/cris.md (*addi_reload): Fix empty split condition.
13700 2021-06-03  Jim Wilson  <jimw@sifive.com>
13702         * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
13703         turn it on for all riscv targets.
13705 2021-06-03  Uroš Bizjak  <ubizjak@gmail.com>
13707         PR target/100637
13708         * config/i386/i386-expand.c (ix86_expand_vector_set):
13709         Handle V2HI and V4QI modes.
13710         (ix86_expand_vector_extract): Ditto.
13711         * config/i386/mmx.md (*pinsrw): New insn pattern.
13712         (*pinsrb): Ditto.
13713         (*pextrw): Ditto.
13714         (*pextrw_zext): Ditto.
13715         (*pextrb): Ditto.
13716         (*pextrb_zext): Ditto.
13717         (vec_setv2hi): New expander.
13718         (vec_extractv2hihi): Ditto.
13719         (vec_setv4qi): Ditto.
13720         (vec_extractv4qiqi): Ditto.
13721         (vec_setv8qi): Enable only for TARGET_SSE4_1.
13722         (vec_extractv8qiqi): Ditto.
13724 2021-06-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
13726         * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
13727         order to subf instruction.
13728         * config/rs6000/fusion.md: Regenerate.
13730 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
13732         * calls.c (get_size_range): Use range_of_expr instead of
13733         determine_value_range.
13734         * tree-affine.c (expr_to_aff_combination): Same.
13735         * tree-data-ref.c (split_constant_offset): Same.
13736         * tree-vrp.c (determine_value_range_1): Remove.
13737         (determine_value_range): Remove.
13738         * tree-vrp.h (determine_value_range): Remove.
13740 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
13742         * function-tests.c (test_ranges): Call gimple_range_tests.
13743         * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
13744         to get_tree_range.
13745         * gimple-range.cc (fur_source::get_operand): Do not call
13746         get_tree_range or gimple_range_global.
13747         get_tree_range.
13748         (get_tree_range): Move to value-query.cc.
13749         Call get_arith_expr_range.
13750         (gimple_ranger::range_of_expr): Add argument to get_tree_range.
13751         Include gimple-range-tests.cc.
13752         * gimple-range.h (fold_range): Add argument.
13753         (get_tree_range): Remove.
13754         * selftest.h (gimple_range_tests): New.
13755         * value-query.cc (global_range_query::range_of_expr): Add
13756         stmt argument.
13757         (range_query::get_tree_range): Move from gimple-range.cc.
13758         * value-query.h (class range_query): Add get_tree_range and
13759         get_arith_expr_range.  Make fur_source a friend.
13760         * vr-values.c (vr_values::range_of_expr): Pass stmt to
13761         get_tree_range.
13762         * gimple-range-tests.cc: New file.
13764 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
13766         * gimple-range.cc (gimple_ranger::export_global_ranges): Call
13767           update_global_range.
13768         * value-query.cc (update_global_range): New.
13769         * value-query.h (update_global_range): New.
13771 2021-06-03  David Malcolm  <dmalcolm@redhat.com>
13773         * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
13774         printing the same location twice if there are fix-it hints,
13775         multiple locations, or a label.
13777 2021-06-03  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13779         * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
13780         thresholds to narrow the upper bound on epilogue iterations.
13782 2021-06-03  Christophe Lyon  <christophe.lyon@linaro.org>
13784         * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
13785         (mve_vabsq_s<mode>): Likewise.
13786         * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
13787         * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
13788         * config/arm/vec-common.md (neg<mode>2): Rename to
13789         <absneg_str><mode>2.
13791 2021-06-03  Claudiu Zissulescu  <claziss@synopsys.com>
13793         * common/config/arc/arc-common.c (arc_option_optimization_table):
13794         Remove malign-call.
13795         * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
13796         * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
13797         (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
13798         * config/arc/arc.md (abssi2_mixed): Remove pattern.
13799         * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
13800         (malign-call): Likewise.
13801         (mmixed-code): Likewise.
13802         * doc/invoke.texi (ARC): Update doc.
13804 2021-06-03  Martin Liska  <mliska@suse.cz>
13806         * common.opt: Use proper Enum values.
13807         * opts.c (COVERAGE_SANITIZER_OPT): Remove.
13808         (parse_sanitizer_options): Handle only sanitizer_opts.
13809         (common_handle_option): Just assign value.
13811 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
13813         PR ipa/99122
13814         * tree-inline.c (inline_forbidden_p): Remove test on return type.
13816 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
13818         * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
13819         DW_OP_GNU_variable_value referencing an existing DIE at file scope.
13820         (type_byte_size): Inline into...
13821         (add_byte_size_attribute): ...this and call add_scalar_info.
13823 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
13825         * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
13826         (typed_binop_from_tree): New function.
13827         (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
13828         turn a divide by a power of 2 into a shift.
13829         <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
13830         size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
13831         typed divide by calling typed_binop_from_tree.
13833 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
13835         * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
13836         (is_handled_procedure_type): Likewise.
13837         (struct loc_descr_context): Add strict_signedness field.
13838         (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
13839         DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
13840         (resolve_args_picking): Minor tweak.
13841         (function_to_dwarf_procedure): Initialize strict_signedness field.
13842         (type_byte_size): Likewise.
13843         (field_byte_offset): Likewise.
13844         (gen_descr_array_type_die): Likewise.
13845         (gen_variant_part): Likewise.
13846         (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
13847         to true when a context is present before evaluating the arguments.
13848         <COND_EXPR>: Do not generate a useless comparison with zero.
13849         When dereferencing an address, if strict_signedness is true and the
13850         type is small and signed, use DW_OP_deref_type to do the dereference
13851         and then DW_OP_convert to convert back to the generic type.
13853 2021-06-03  Jakub Jelinek  <jakub@redhat.com>
13855         PR c++/100859
13856         * tree-inline.c (copy_tree_body_r): Handle iterators on
13857         OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
13859 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
13861         * config/arc/arc.md (*bbit_di): Remove.
13863 2021-06-02  Christoph Muellner  <cmuellner@gcc.gnu.org>
13865         PR rtl-optimization/100264
13866         * ree.c (get_sub_rtx): Ignore SET expressions without register
13867         destinations and remove assertion, as it is not valid anymore
13868         with this new behaviour.
13869         (merge_def_and_ext): Eliminate destination check for register
13870         as such SET expressions can't occur anymore.
13871         (combine_reaching_defs): Likewise.
13873 2021-06-02  Jakub Jelinek  <jakub@redhat.com>
13875         PR target/100841
13876         * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
13877         -Wtype-limits warnings.
13878         (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
13879         in operands to avoid -Wsign-compare warnings.
13881 2021-06-02  Pat Haugen  <pthaugen@linux.ibm.com>
13883         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
13884         gen_frame_store.
13886 2021-06-02  Vineet Gupta  <vgupta@synopsys.com>
13888         * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
13890 2021-06-02  Ilya Leoshkevich  <iii@linux.ibm.com>
13892         * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
13893         constraint.
13894         * config/s390/subst.md(cconly_subst): Use a single constraint
13895         in (match_scratch).
13897 2021-06-02  Martin Liska  <mliska@suse.cz>
13899         * ipa-icf.h: Use auto_vec for memory_access_types.
13901 2021-06-02  Jeff Law  <jeffreyalaw@gmail.com>
13903         * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
13904         argument from prototype.
13905         (output_logical_op): Add rtx_code argument.
13906         (compute_logical_op_length): Likewise.
13907         * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
13908         to compute_a_shift_length.
13909         (output_logical_op); New argument with the rtx code rather than
13910         extracting it from an operand.  Handle QImode too.
13911         (compute_logical_op_length): Similary.
13912         (compute_a_shift_length): Drop unused argument.
13913         * config/h8300/h8300.md (logicals): New code iterator.
13914         * config/h8300/logical.md (<code><mode>3 expander): Combine
13915         the "and" expander with the "ior"/"xor" expander.
13916         (bclr<mode>msx): Combine the QI/HI mode patterns.
13917         (<logical><mode>3 insns): Use code iterator rather than match_operator.
13918         Handle QImode as well.   Update call to output_logical_op and
13919         compute_logical_op_length to pass in rtx_code
13920         Fix split condition on all define_insn_and_split patterns.
13921         (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
13922         the flags and setting ZN via existing define_subst.
13923         * config/h8300/shiftrotate.md: Drop unused argument from
13924         calls to compute_a_shift_length.
13925         Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
13927 2021-06-01  Andrew Pinski  <apinski@marvell.com>
13929         PR tree-optimization/25290
13930         * tree-ssa-phiopt.c (match_simplify_replacement):
13931         New function.
13932         (tree_ssa_phiopt_worker): Use match_simplify_replacement.
13933         (two_value_replacement): Change the comment about
13934         conditional_replacement.
13935         (conditional_replacement): Delete.
13937 2021-06-01  Andrew Pinski  <apinski@marvell.com>
13939         PR tree-optimization/95481
13940         * tree-tailcall.c (find_tail_calls): Handle empty typed
13941         return decls.
13943 2021-06-01  Andrew Pinski  <apinski@marvell.com>
13945         * gimplify.c (zero_sized_field_decl): Delete
13946         (zero_sized_type): Delete
13947         (gimplify_init_ctor_eval): Use is_empty_type instead
13948         of zero_sized_field_decl.
13949         (gimplify_modify_expr): Use is_empty_type instead of
13950         zero_sized_type.
13952 2021-06-01  Jason Merrill  <jason@redhat.com>
13954         PR c++/91859
13955         * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
13957 2021-06-01  Jason Merrill  <jason@redhat.com>
13959         PR c++/94492
13960         * diagnostic.h (warning_enabled_at): Declare.
13961         * diagnostic.c (diagnostic_enabled): Factor out from...
13962         (diagnostic_report_diagnostic): ...here.
13963         (warning_enabled_at): New.
13965 2021-06-01  Aldy Hernandez  <aldyh@redhat.com>
13967         * gimple-ssa-evrp.c: Enable exporting of global ranges.
13969 2021-06-01  Martin Liska  <mliska@suse.cz>
13971         PR other/100826
13972         * doc/invoke.texi: Mention that -fgcse-after-reload
13973         is enabled with -O3.
13975 2021-06-01  liuhongt  <hongtao.liu@intel.com>
13977         PR tree-optimization/98365
13978         * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
13979         (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
13980         (convert_scalar_cond_reduction): Ditto.
13981         (predicate_scalar_phi): Ditto.
13983 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
13985         PR tree-optimization/100781
13986         * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
13987         value calculation by default.
13988         (ranger_cache::enable_new_values): New.
13989         (ranger_cache::disable_new_values): New.
13990         (ranger_cache::push_poor_value): Check if new values are allowed.
13991         * gimple-range-cache.h (class ranger_cache): New member/methods.
13992         * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
13993         statement, and disable/renable new value calculation.
13995 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
13997         * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
13998         (ranger_cache::range_of_def): New.
13999         (ranger_cache::entry_range): New.
14000         (ranger_cache::exit_range): New.
14001         (ranger_cache::range_of_expr): Adjust.
14002         (ranger_cache::range_on_edge): Adjust.
14003         (ranger_cache::propagate_cache): Call exit_range directly.
14004         * gimple-range-cache.h (class ranger_cache): Adjust.
14006 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
14008         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
14009         gori_compute being a member rather than base class.
14010         dervied call to member call.
14011         (ranger_cache::dump): No longer dump gori_map.
14012         (ranger_cache::dump_bb): New.
14013         (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
14014         being a member rather than base class.
14015         (ranger_cache::set_global_range): Ditto.
14016         (ranger_cache::ssa_range_in_bb): Ditto.
14017         (ranger_cache::range_of_expr): New.
14018         (ranger_cache::range_on_edge): New.
14019         (ranger_cache::block_range): Adjust for gori_computes.  Debug changes.
14020         (ranger_cache::propagate_cache):  Adjust debugging output.
14021         (ranger_cache::fill_block_cache): Adjust for gori_computes.  Debug
14022         output changes.
14023         * gimple-range-cache.h (class ranger_cache): Make gori_compute a
14024         member, and inherit from range_query instead.
14025         (ranger_cache::dump_bb): New. split from dump.
14026         * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
14027         (gori_compute::expr_range_at_stmt): Delete.
14028         (gori_compute::compute_name_range_op): Delete.
14029         (gori_compute::compute_operand_range_switch): Add fur_source.
14030         (gori_compute::compute_operand_range): Add fur_source param, inline
14031         old compute_name_range_op and optimize_logical_operands.
14032         (struct tf_range): Delete.
14033         (gori_compute::logical_combine): Adjust
14034         (gori_compute::optimize_logical_operands): Delete.
14035         (gori_compute::compute_logical_operands_in_chain): Delete.
14036         (gori_compute::compute_logical_operands): Adjust.
14037         (gori_compute::compute_operand1_range): Adjust to fur_source.
14038         (gori_compute::compute_operand2_range): Ditto.
14039         (gori_compute::compute_operand1_and_operand2_range): Ditto.
14040         (gori_compute::outgoing_edge_range_p): Add range_query parameter,
14041         and adjust to fur_source.
14042         * gimple-range-gori.h (class gori_compute): Simplify and adjust to
14043         range_query and fur_source.
14044         * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
14045         from the ranger_cache..
14046         (gimple_ranger::fold_range_internal): Adjust to base class change of
14047         ranger_cache.
14048         (gimple_ranger::dump_bb): Adjust dump.
14049         * gimple-range.h (gimple_ranger):export gori computes object.
14051 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
14053         PR tree-optimization/100774
14054         * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
14055         Constant values are also not stale.
14056         (ranger_cache::set_global_range): Range invariant values should also
14057         have the correct timestamp.
14059 2021-05-31  Martin Liska  <mliska@suse.cz>
14061         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
14062         Unpack FUNCTION_DECL_DECL_TYPE.
14063         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
14064         Stream FUNCTION_DECL_DECL_TYPE instead of
14065         DECL_IS_OPERATOR_NEW_P.
14066         * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
14067         macro.
14068         (DECL_IS_OPERATOR_NEW_P): Likewise.
14069         (DECL_IS_OPERATOR_DELETE_P): Likewise.
14070         (DECL_LAMBDA_FUNCTION_P): Likewise.
14072 2021-05-31  Richard Biener  <rguenther@suse.de>
14074         PR c++/88601
14075         * internal-fn.c (expand_SHUFFLEVECTOR): Define.
14076         * internal-fn.def (SHUFFLEVECTOR): New.
14077         * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
14078         * doc/extend.texi: Document __builtin_shufflevector.
14080 2021-05-31  Peter Bergner  <bergner@linux.ibm.com>
14082         PR target/99842
14083         * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
14084         indexed form addresses.
14086 2021-05-29  Jeff Law  <jlaw@tachyum.com>
14088         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
14089         parameter.  Call callers fixed.
14090         (push): Likewise.
14091         (output_plussi): Add FALLTHRU markers.
14092         (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
14094 2021-05-29  Jakub Jelinek  <jakub@redhat.com>
14096         PR middle-end/99928
14097         * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
14098         combined with parallel, make sure to add shared clause to
14099         parallel for explicit linear clause.
14101 2021-05-29  Aldy Hernandez  <aldyh@redhat.com>
14103         PR tree-optimization/100787
14104         * gimple-ssa-evrp.c: Disable exporting of global ranges.
14106 2021-05-28  Jason Merrill  <jason@redhat.com>
14108         * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
14109         operator--, operator*, operator==, and operator!=.
14110         (class tsi_range): New.
14112 2021-05-28  Richard Biener  <rguenther@suse.de>
14114         PR tree-optimization/100778
14115         * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
14116         trapping ops in different BBs.
14118 2021-05-28  Richard Biener  <rguenther@suse.de>
14120         PR ipa/100791
14121         * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
14122         copy fntype from original call.
14124 2021-05-28  Martin Liska  <mliska@suse.cz>
14126         PR gcov-profile/100751
14127         * doc/gcov.texi: Revert partially a hunk that was wrong.
14129 2021-05-28  Cooper Qu  <cooper.qu@linux.alibaba.com>
14131         * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
14132         Defined.
14133         (HAVE_sync_compare_and_swaphi): Likewise.
14134         (HAVE_sync_compare_and_swapsi): Likewise.
14136 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
14138         PR middle-end/99928
14139         * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
14141 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
14143         * gimplify.c (gimplify_omp_affinity): New.
14144         (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
14145         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
14146         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
14147         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
14148         (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
14150 2021-05-28  Joern Rennecke  <joern.rennecke@riscy-ip.com>
14151             Richard Biener   <rguenther@suse.de>
14153         * match.pd <popcount & / + pattern matching>:
14154         When generating popcount directly fails, try doing it in two halves.
14156 2021-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14158         * Makefile.in (generated_files): Add gimple-match.c and
14159         generic-match.c
14161 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
14163         * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
14165 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
14167         * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
14169 2021-05-28  Kewen Lin  <linkw@linux.ibm.com>
14171         PR tree-optimization/99398
14172         * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
14173         where the fed operands are CTOR/CST and propagated through
14174         VIEW_CONVERT_EXPR.  Call vec_perm_indices::new_shrunk_vector.
14175         * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
14176         function.
14177         * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
14178         declare.
14180 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
14182         * config/i386/mmx.md (addv2sf3): Do not call
14183         ix86_fixup_binary_operands_no_copy.
14184         (subv2sf3): Ditto.
14185         (mulv2sf3): Ditto.
14186         (<smaxmin:code>v2sf3): Ditto.
14187         (<plusminus:insn><MMXMODEI:mode>3): Ditto.
14188         (<plusminus:insn><VI_32:mode>3): Remove expander.
14189         (<plusminus:insn><VI_32:mode>3): Rename from
14190         "*<plusminus:insn><VI_32:mode>3".
14191         (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
14192         (mulv2hi3): Remove expander.
14193         (mulv2hi3): Rename from *mulv2hi3.
14194         (<s>mulv2hi3_highpart): Remove expander.
14195         (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
14196         (<smaxmin:code><MMXMODE14:mode>3): Rename from
14197         "*mmx_<smaxmin:code><MMXMODE14:mode>3".
14198         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
14199         (SMAXMIN_MMXMODEI): Remove mode iterator.
14200         (<smaxmin:code>v4hi3): New expander.
14201         (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
14202         (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
14203         (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
14204         (SMAXMIN_VI_32): Remove mode iterator.
14205         (<umaxmin:code><MMXMODE24:mode>3): Rename from
14206         "*mmx_<umaxmin:code><MMXMODE24:mode>3".
14207         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
14208         (UMAXMIN_MMXMODEI): Remove mode iterator.
14209         (<umaxmin:code>v8qi3): New expander.
14210         (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
14211         (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
14212         (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
14213         (UMAXMIN_VI_32): Remove mode iterator.
14214         (<any_shift:insn>v2hi3): Remove expander.
14215         (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
14216         (<any_logic:code><MMXMODEI:mode>3): Do not call
14217         ix86_fixup_binary_operands_no_copy.
14218         (<any_logic:code><VI_32:mode>3): Remove expander.
14219         (<any_logic:code><VI_32:mode>3): Rename from
14220         "*<any_logic:code><VI_32:mode>3".
14221         (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
14222         * config/i386/sse.md (div<VF2:mode>3): Do not call
14223         ix86_fixup_binary_operands_no_copy.
14224         (div<VF1:mode>3): Ditto.
14225         (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
14226         (smulhrsv4hi3): Ditto.
14227         (smulhrsv2hi3): Ditto.
14229 2021-05-27  Martin Sebor  <msebor@redhat.com>
14231         * ggc.h (gt_ggc_mx): Add overloads for all integers.
14232         (gt_pch_nx):  Same.
14233         * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
14234         integers.
14235         (hash_map::operator==): New function.
14237 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
14239         PR target/100637
14240         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
14241         For TARGET_XOP bypass SSE comparisons for all supported vector modes.
14242         * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
14243         (*xop_maskcmp<VI_32:mode>3): Ditto.
14244         (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
14245         (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
14247 2021-05-27  Richard Earnshaw  <rearnsha@arm.com>
14249         PR target/100767
14250         * config/arm/arm.c (arm_configure_build_target): Remove parameter
14251         opts_set, directly check opts parameters for being non-null.
14252         (arm_option_restore): Update call to arm_configure_build_target.
14253         (arm_option_override): Likewise.
14254         (arm_can_inline_p): Likewise.
14255         (arm_valid_target_attribute_tree): Likewise.
14256         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
14257         * config/arm/arm-protos.h (arm_configure_build_target): Adjust
14258         prototype.
14260 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
14262         * vr-values.c (simplify_conversion_using_ranges): Use
14263         get_range_query instead of get_global_range_query.
14265 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
14267         * gimple-range.cc (get_range_global): Move to value-query.cc.
14268         (gimple_range_global): Same.
14269         (get_global_range_query): Same.
14270         (global_range_query::range_of_expr): Same.
14271         * gimple-range.h (class global_range_query): Move to
14272         value-query.h.
14273         (gimple_range_global): Same.
14274         * tree-ssanames.c (get_range_info): Move to value-query.cc.
14275         (get_ptr_nonnull): Same.
14276         * tree-ssanames.h (get_range_info): Remove.
14277         (get_ptr_nonnull): Remove.
14278         * value-query.cc (get_ssa_name_range_info): Move from
14279         tree-ssanames.c.
14280         (get_ssa_name_ptr_info_nonnull): Same.
14281         (get_range_global): Move from gimple-range.cc.
14282         (gimple_range_global): Same.
14283         (get_global_range_query): Same.
14284         (global_range_query::range_of_expr): Same.
14285         * value-query.h (class global_range_query): Move from
14286         gimple-range.h.
14287         (gimple_range_global): Same.
14289 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
14291         PR target/100637
14292         * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
14293         (uavgv2hi3_ceil): Ditto.
14295 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14297         PR c/100653
14298         * doc/extend.texi (scalar_storage_order): Rephrase slightly.
14300 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
14302         * tree-ssanames.c (get_range_info): Merge both copies of
14303         get_range_info into one that works with irange.
14304         * tree-ssanames.h (get_range_info): Remove version that works on
14305         wide_ints.
14307 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
14309         * builtins.c (check_nul_terminated_array): Convert to get_range_query.
14310         (expand_builtin_strnlen): Same.
14311         (determine_block_size): Same.
14312         * fold-const.c (expr_not_equal_to): Same.
14313         * gimple-fold.c (size_must_be_zero_p): Same.
14314         * gimple-match-head.c: Include gimple-range.h.
14315         * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
14316         * gimple-ssa-warn-restrict.c
14317         (builtin_memref::extend_offset_range): Same.
14318         * graphite-sese-to-poly.c (add_param_constraints): Same.
14319         * internal-fn.c (get_min_precision): Same.
14320         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
14321         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
14322         * match.pd: Same.
14323         * tree-data-ref.c (split_constant_offset): Same.
14324         (dr_step_indicator): Same.
14325         * tree-dfa.c (get_ref_base_and_extent): Same.
14326         * tree-scalar-evolution.c (iv_can_overflow_p): Same.
14327         * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
14328         (determine_value_range): Same.
14329         (record_nonwrapping_iv): Same.
14330         (infer_loop_bounds_from_signedness): Same.
14331         (scev_var_range_cant_overflow): Same.
14332         * tree-ssa-phiopt.c (two_value_replacement): Same.
14333         * tree-ssa-pre.c (insert_into_preds_of_block): Same.
14334         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
14335         * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
14336         (get_range): Same.
14337         (dump_strlen_info): Same.
14338         (set_strlen_range): Same.
14339         (maybe_diag_stxncpy_trunc): Same.
14340         (get_len_or_size): Same.
14341         (handle_integral_assign): Same.
14342         * tree-ssa-structalias.c (find_what_p_points_to): Same.
14343         * tree-ssa-uninit.c (find_var_cmp_const): Same.
14344         * tree-switch-conversion.c (bit_test_cluster::emit): Same.
14345         * tree-vect-patterns.c (vect_get_range_info): Same.
14346         (vect_recog_divmod_pattern): Same.
14347         * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
14348         (register_edge_assert_for_2): Same.
14349         (determine_value_range_1): Same.
14350         * tree.c (get_range_pos_neg): Same.
14351         * vr-values.c (vr_values::get_lattice_entry): Same.
14352         (vr_values::update_value_range): Same.
14353         (simplify_conversion_using_ranges): Same.
14355 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
14357         * gimple-ssa-warn-alloca.c (alloca_call_type): Use
14358           get_range_query instead of query argument.
14359         (pass_walloca::execute): Enable and disable global ranger.
14361 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
14363         * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
14364         enable_ranger.
14365         (rvrp_folder::~rvrp_folder): Call disable_ranger.
14366         (hybrid_folder::hybrid_folder): Call enable_ranger.
14367         (hybrid_folder::~hybrid_folder): Call disable_ranger.
14369 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
14371         * function.c (allocate_struct_function): Set cfun->x_range_query.
14372         * function.h (struct function): Declare x_range_query.
14373         (get_range_query): New.
14374         (get_global_range_query): New.
14375         * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
14376         Remove call to safe_grow_cleared.
14377         * gimple-range.cc (get_range_global): New.
14378         (gimple_range_global): Move from gimple-range.h.
14379         (get_global_range_query): New.
14380         (global_range_query::range_of_expr): New.
14381         (enable_ranger): New.
14382         (disable_ranger): New.
14383         * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
14384         (class global_range_query): New.
14385         (enable_ranger): New.
14386         (disable_ranger): New.
14387         * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
14388         dump_all_value_ranges to dump.
14389         * tree-vrp.c (vrp_prop::finalize): Same.
14390         * value-query.cc (range_query::dump): New.
14391         * value-query.h (range_query::dump): New.
14392         * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
14393         (vr_values::dump): ...this.
14394         * vr-values.h (class vr_values): Rename dump_all_value_ranges to
14395         dump and make virtual.
14397 2021-05-26  Uroš Bizjak  <ubizjak@gmail.com>
14399         * config/i386/i386.c (ix86_autovectorize_vector_modes):
14400         Add V4QImode and V16QImode for TARGET_SSE2.
14401         * doc/sourcebuild.texi (Vector-specific attributes):
14402         Add vect64 and vect32 description.
14404 2021-05-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14406         * gimple-range-gori.cc (range_def_chain::register_dependency):
14407         Resize m_def_chain when needed.
14409 2021-05-26  Christophe Lyon  <christophe.lyon@linaro.org>
14411         * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
14412         * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
14413         * config/arm/vec-common.md: .. here. Add support for MVE.
14415 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
14417         * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
14418         register keywords.
14419         * config/microblaze/microblaze.c (microblaze_legitimize_address,
14420         call_internal1,
14421         microblaze_option_override, print_operand): Likewise.
14422         * config/microblaze/microblaze.md (call_internal_plt,
14423         call_value_intern_plt, call_value_intern): Likewise.
14424         * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
14425         * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
14426         call_value_multiple_internal1): Likewise.
14427         * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
14429 2021-05-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14431         * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
14432         arc_ccfsm_advance, symbolic_reference_mentioned_p,
14433         arc_raw_symbolic_reference_mentioned_p): Remove register
14434         keyword.
14436 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
14438         PR libgomp/100573
14439         * omp-low.c: Include omp-offload.h.
14440         (create_omp_child_function): If current_function_decl has
14441         "omp declare target" attribute and is_gimple_omp_offloaded,
14442         remove that attribute from the copy of attribute list and
14443         add "omp target entrypoint" attribute instead.
14444         (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
14445         variables for offloading if in omp_maybe_offloaded_ctx.
14446         * omp-offload.c (pass_omp_target_link::execute): Nullify second
14447         argument to GOMP_target_data_ext in offloaded code.
14449 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
14451         * config/csky/csky.c (csky_can_change_mode_class): Delete.
14452         For csky, HF/SF mode use the low bits of VREGS.
14454 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14456         * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
14457         DECL which is a reference for OMP.
14459 2021-05-26  Martin Liska  <mliska@suse.cz>
14461         PR gcov-profile/100751
14462         * doc/gcov.texi: Document that __gcov_dump can be called just
14463         once and that __gcov_reset resets run-time counters.
14465 2021-05-26  Martin Liska  <mliska@suse.cz>
14467         * doc/install.texi: Port relevant part from install-old.texi
14468         and re-generate list of CPUs and systems.
14470 2021-05-26  Martin Liska  <mliska@suse.cz>
14472         * Makefile.in: Remove it.
14473         * doc/include/fdl.texi: Update next/previous chapters.
14474         * doc/install.texi: Likewise.
14475         * doc/install-old.texi: Removed.
14477 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
14479         * config/csky/csky.c (ck810_legitimate_index_p): Support
14480         "base + index" with DF mode.
14481         * config/csky/constraints.md ("Y"): New constraint for memory operands
14482         without index register.
14483         * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
14484         when mov between memory and general registers, and lower their priority.
14485         * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
14487 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
14489         * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
14491 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
14493         * config/csky/csky.md (untyped_call): Emit clobber for return
14494         registers to mark them used.
14496 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
14498         * config/csky/csky.md (cskyv2_sextend_ldbs): New.
14500 2021-05-26  Andrew Pinski  <apinski@marvell.com>
14502         * match.pd (x < 0 ? ~y : y): New patterns.
14504 2021-05-26  Andrew Pinski  <apinski@marvell.com>
14506         * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
14507         A?POW2:0 and A?0:POW2.
14509 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
14511         * gimple-range-gori.cc (class logical_stmt_cache): Delete
14512         (logical_stmt_cache::logical_stmt_cache ): Delete.
14513         (logical_stmt_cache::~logical_stmt_cache): Delete.
14514         (logical_stmt_cache::cache_entry::dump): Delete.
14515         (logical_stmt_cache::get_range): Delete.
14516         (logical_stmt_cache::cached_name ): Delete.
14517         (logical_stmt_cache::same_cached_name): Delete.
14518         (logical_stmt_cache::cacheable_p): Delete.
14519         (logical_stmt_cache::slot_diagnostics ): Delete.
14520         (logical_stmt_cache::dump): Delete.
14521         (gori_compute_cache::gori_compute_cache): Delete.
14522         (gori_compute_cache::~gori_compute_cache): Delete.
14523         (gori_compute_cache::compute_operand_range): Delete.
14524         (gori_compute_cache::cache_stmt): Delete.
14525         * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
14526         virtual.
14527         (class gori_compute_cache): Delete.
14529 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
14531         * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
14532         intead of m_cache.
14533         (fold_using_range::range_of_address): Adjust.
14534         (fold_using_range::range_of_phi): Adjust.
14535         * gimple-range.h (class fur_source): Adjust.
14536         (fur_source::fur_source): Adjust.
14538 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
14540         * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
14541         from expr_range_in_bb and adjust.
14542         (gori_compute::compute_name_range_op): Adjust.
14543         (gori_compute::optimize_logical_operands): Adjust.
14544         (gori_compute::compute_logical_operands_in_chain): Adjust.
14545         (gori_compute::compute_operand1_range): Adjust.
14546         (gori_compute::compute_operand2_range): Adjust.
14547         (ori_compute_cache::cache_stmt): Adjust.
14548         * gimple-range-gori.h (gori_compute): Rename prototype.
14550 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
14552         * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
14553         checked only after range_of_stmt, not range_on_entry.
14554         (gimple_ranger::range_on_entry): Check for non-null in any
14555         predecessor block, if it is not already non-null.
14556         (gimple_ranger::range_on_exit): DOnt check for non-null after
14557         range on entry call.
14558         (gimple_ranger::dump_bb): New.  Split from dump.
14559         (gimple_ranger::dump): Adjust.
14560         * gimple-range.h (class gimple_ranger): Adjust.
14562 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
14564         * gimple-range-cache.cc (struct range_timestamp): Delete.
14565         (class temporal_cache): Adjust.
14566         (temporal_cache::get_timestamp): Delete.
14567         (temporal_cache::set_dependency): Delete.
14568         (temporal_cache::temporal_value): Adjust.
14569         (temporal_cache::current_p): Take dependencies as params.
14570         (temporal_cache::set_timestamp): Adjust.
14571         (temporal_cache::set_always_current): Adjust.
14572         (ranger_cache::get_non_stale_global_range): Adjust.
14573         (ranger_cache::register_dependency): Delete.
14574         * gimple-range-cache.h (class range_cache): Adjust.
14576 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
14578         * gimple-range-gori.cc (range_def_chain::range_def_chain): init
14579         bitmap obstack.
14580         (range_def_chain::~range_def_chain): Dispose of obstack rather than
14581         each individual bitmap.
14582         (range_def_chain::set_import): New.
14583         (range_def_chain::get_imports): New.
14584         (range_def_chain::chain_import_p): New.
14585         (range_def_chain::register_dependency): Rename from build_def_chain
14586         and set imports.
14587         (range_def_chain::def_chain_in_bitmap_p): New.
14588         (range_def_chain::add_def_chain_to_bitmap): New.
14589         (range_def_chain::has_def_chain): Just check first depenedence.
14590         (range_def_chain::get_def_chain): Process imports, use generic
14591         register_dependency routine.
14592         (range_def_chain::dump): New.
14593         (gori_map::gori_map): Allocate import list.
14594         (gori_map::~gori_map): Release imports.
14595         (gori_map::exports): Check for past allocated block size.
14596         (gori_map::imports): New.
14597         (gori_map::def_chain_in_export_p): Delete.
14598         (gori_map::is_import_p): New.
14599         (gori_map::maybe_add_gori): Handle imports.
14600         (gori_map::dump): Adjust output, add imports.
14601         (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
14602         (gori_export_iterator::gori_export_iterator): New.
14603         (gori_export_iterator::next): New.
14604         (gori_export_iterator::get_name): New.
14605         * gimple-range-gori.h (range_def_chain): Add imports and direct
14606         dependecies via struct rdc.
14607         (range_def_chain::depend1): New.
14608         (range_def_chain::depend2): New.
14609         (class gori_map): Adjust.
14610         (FOR_EACH_GORI_IMPORT_NAME): New.
14611         (FOR_EACH_GORI_EXPORT_NAME): New.
14612         (class gori_export_iterator): New.
14614 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
14616         * gimple-range-cache.cc (ranger_cache::ranger_cache):  Move initial
14617         export cache filling to here.
14618         * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
14620 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
14622         * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
14623         (gori_map): Move to gimple-range-gori.h.
14624         (gori_compute::gori_compute): Adjust.
14625         (gori_compute::~gori_compute): Delete.
14626         (gori_compute::compute_operand_range_switch): Adjust.
14627         (gori_compute::compute_operand_range): Adjust.
14628         (gori_compute::compute_logical_operands): Adjust.
14629         (gori_compute::has_edge_range_p ): Adjust.
14630         (gori_compute::set_range_invariant): Delete.
14631         (gori_compute::dump): Adjust.
14632         (gori_compute::outgoing_edge_range_p): Adjust.
14633         * gimple-range-gori.h (class range_def_chain): Relocate here.
14634         (class gori_map): Relocate here.
14635         (class gori_compute): Inherit from gori_map, and adjust.
14637 2021-05-25  Aldy Hernandez  <aldyh@redhat.com>
14639         * value-range.cc (range_tests_legacy): Use
14640         build_nonstandard_integer_type instead of int and short.
14642 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14644         * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
14645         when really creating an initialization statement for it.
14647 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14649         * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
14651 2021-05-25  Kito Cheng  <kito.cheng@sifive.com>
14653         * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
14655 2021-05-25  Martin Liska  <mliska@suse.cz>
14657         PR tree-optimization/92860
14658         PR target/99592
14659         * optc-save-gen.awk: Remove exceptions.
14661 2021-05-25  Martin Liska  <mliska@suse.cz>
14663         * asan.h (sanitize_coverage_p): New function.
14664         * doc/extend.texi: Document it.
14665         * fold-const.c (fold_range_test): Use sanitize_flags_p
14666         instead of flag_sanitize_coverage.
14667         (fold_truth_andor): Likewise.
14668         * sancov.c: Likewise.
14669         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
14670         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
14671         -fsanitize-coverage when inlining.
14673 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
14675         * config/csky/csky-modes.def : Fix copyright.
14677 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
14679         * config/csky/csky-modes.def : Amend copyright.
14680         * config/csky/csky_insn_fpuv2.md : Likewise.
14681         * config/csky/csky_insn_fpuv3.md : Likewise.
14683 2021-05-25  Richard Biener  <rguenther@suse.de>
14685         PR middle-end/100727
14686         * calls.c (initialize_argument_information): Explicitely test
14687         for WITH_SIZE_EXPR.
14688         * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
14690 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
14692         * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
14693         HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
14694         the signle definition. The signle definition may not work well
14695         at simplify_subreg_regno().
14696         (HARD_FRAME_POINTER_REGNUM): New.
14697         (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
14698         * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
14699         csky_initial_elimination_offset, csky_expand_prologue,
14700         csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
14702 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
14704         * config/csky/csky.c (csky_option_override):
14705         Init csky_arch_isa_features[] in advance, so TARGET_DSP
14706         and TARGET_DIV can be set well.
14708 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
14710         * config/csky/constraints.md ("l", "h"): Delete.
14711         * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
14712         REG_CLASS_CONTENTS):  Delete LO_REGS and HI_REGS.
14713         * config/csky/csky.c (regno_reg_classm,
14714         csky_secondary_reload, csky_register_move_cost):
14715         Use HILO_REGS instead of LO_REGS and HI_REGS.
14717 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
14719         * config/csky/constraints.md ("W"): New constriant for mem operand
14720         with base reg, index register.
14721         ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
14722         "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
14723         constraint.
14724         ("Dv"): New constraint for const double value that can be used at
14725         fmovi instruction.
14726         * config/csky/csky-modes.def (HFmode): New mode.
14727         * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
14728         to "csky_valid_mem_constraint_operand" and support new constraint
14729         "W".
14730         (csky_get_movedouble_length): New.
14731         (fpuv3_output_move): New.
14732         (fpuv3_const_double): New.
14733         * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
14734         (decompose_csky_address): Refine.
14735         (csky_print_operand): New "CONST_DOUBLE" operand.
14736         (csky_output_move): Support fpv3 instructions.
14737         (csky_get_movedouble_length): New.
14738         (fpuv3_output_move): New.
14739         (fpuv3_const_double): New.
14740         (csky_emit_compare): Cover float comparsion.
14741         (csky_emit_compare_float): Refine.
14742         (csky_vaild_fpuv2_mem_operand): Rename to
14743         "csky_valid_mem_constraint_operand" and support new constraint "W".
14744         (ck860_rtx_costs): New.
14745         (csky_rtx_costs): Add the cost calculation of CK860.
14746         (regno_reg_class): New vregs for fpuv3.
14747         (csky_dbx_regno): Likewise.
14748         (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
14749         (csky_conditional_register_usage): Suporrot fpuv3.
14750         (csky_dwarf_register_span): Suporrot fpuv3.
14751         (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
14752         (ck810_legitimate_index_p): Support fp16.
14753         * config/csky/csky.h (TARGET_TLS): ADD CK860.
14754         (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
14755         (TARGET_SINGLE_FPU): Support fpuv3.
14756         (TARGET_SUPPORT_FPV3): New.
14757         (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
14758         (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
14759          REG_CLASS_CONTENTS): Support fpuv3.
14760         * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
14761         (csky_movsf_fpv2): Likewise.
14762         (ck801_movsf): Likewise.
14763         (csky_movsf): Likewise.
14764         (movdf): Likewise.
14765         (csky_movdf_fpv2): Likewise.
14766         (ck801_movdf): Likewise.
14767         (csky_movdf): Likewise.
14768         (movsicc): Refine. Use "comparison_operatior" instead of
14769         "ordered_comparison_operatior".
14770         (addsicc): Likewise.
14771         (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
14772         (call_value_internal_vh): New.
14773         * config/csky/csky_cores.def (CK860): New arch and cpu.
14774         (fpv3_hf): New.
14775         (fpv3_hsf): New.
14776         (fpv3_sdf): New.
14777         (fpv3): New.
14778         * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
14779         into emit-patterns and match-patterns, remain the emit-patterns here,
14780         and move the match-patterns to csky_insn_fpuv2.md or
14781         csky_insn_fpuv3.md.
14782         * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
14783         * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
14784         isntructions.
14785         * config/csky/csky_isa.def (fcr): New.
14786         (fpv3_hi): New.
14787         (fpv3_hf): New.
14788         (fpv3_sf): New.
14789         (fpv3_df): New.
14790         (CK860): New definition for ck860.
14791         * config/csky/csky_tables.opt (ck860): New processors ck860,
14792         ck860f. And new arch ck860.
14793         (fpv3_hf): New.
14794         (fpv3_hsf): New.
14795         (fpv3_hdf): New.
14796         (fpv3): New.
14797         * config/csky/predicates.md (csky_float_comparsion_operator): Delete
14798         "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
14799         * config/csky/t-csky-elf: Support 860.
14800         * config/csky/t-csky-linux: Likewise.
14801         * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
14803 2021-05-24  Aaron Sawdey  <acsawdey@linux.ibm.com>
14805         * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
14806         add generation of logical-add and add-logical fusion pairs.
14807         * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
14808         and powerpc mask.
14809         * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
14810         logical-add and add-logical fusion by default.
14811         * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
14812         -mpower10-fusion-add-logical options.
14813         * config/rs6000/fusion.md: Regenerate file.
14815 2021-05-24  Aldy Hernandez  <aldyh@redhat.com>
14817         * value-range.cc (irange::legacy_equal_p): Check type when
14818         comparing VR_VARYING types.
14819         (range_tests_legacy): Test comparing VARYING ranges of different
14820         sizes.
14822 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
14824         * config/aarch64/aarch64.c (neoversen1_tunings):
14825         Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
14827 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
14829         * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
14830         extern weak symbols.  Limit symbol offsets for non-GOT symbols with
14831         PIC/PIE.
14833 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
14835         * config/arm/neon.md (vec_load_lanesxi<mode>)
14836         (vec_store_lanexoi<mode>): Move ...
14837         * config/arm/vec-common.md: here.
14839 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
14841         * config/arm/neon.md (vec_load_lanesoi<mode>)
14842         (vec_store_lanesoi<mode>): Move ...
14843         * config/arm/vec-common.md: here.
14845 2021-05-24  liuhongt  <hongtao.liu@intel.com>
14847         PR target/100660
14848         * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
14849         stmt with GIMPLE_NOP when lhs doesn't exist.
14851 2021-05-23  Uroš Bizjak  <ubizjak@gmail.com>
14853         PR target/100722
14854         * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
14855         New instruction pattern.
14856         (*push<VI_32:mode>2): Ditto.
14857         (push splitter for SSE registers): New splitter.
14859 2021-05-23  Andrew Pinski  <apinski@marvell.com>
14861         * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
14863 2021-05-22  Aaron Sawdey  <acsawdey@linux.ibm.com>
14865         * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
14866         * config/rs6000/fusion.md: Regenerate file.
14868 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
14870         * config/rs6000/genfusion.pl (gen_addadd): New function.
14871         * config/rs6000/fusion.md: Regenerate file.
14872         * config/rs6000/rs6000-cpus.def: Add
14873         OPTION_MASK_P10_FUSION_2ADD to masks.
14874         * config/rs6000/rs6000.c (rs6000_option_override_internal):
14875         Handle default value of OPTION_MASK_P10_FUSION_2ADD.
14876         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
14878 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
14880         PR middle-end/99928
14881         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
14882         * gimplify.c (enum gimplify_omp_var_data): Fix up
14883         GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
14884         (omp_lastprivate_for_combined_outer_constructs): If combined target
14885         has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
14886         GOVD_MAP | GOVD_SEEN.
14887         (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
14888         firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
14889         (gimplify_adjust_omp_clauses): For firstprivate clauses with
14890         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
14891         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
14892         let it be replaced by implicit map clause.
14894 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
14896         PR middle-end/99928
14897         * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
14898         function.
14899         (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
14900         (gimplify_omp_for): Likewise.
14902 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14904         PR middle-end/90115
14905         * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
14906         'external' in blocks.
14908 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14910         PR middle-end/90115
14911         * flag-types.h (enum openacc_privatization): New.
14912         * params.opt (-param=openacc-privatization): New.
14913         * doc/invoke.texi (openacc-privatization): Document it.
14914         * omp-general.h (get_openacc_privatization_dump_flags): New
14915         function.
14916         * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
14917         * omp-offload.c (execute_oacc_device_lower)
14918         <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
14919         * target.def (goacc.adjust_private_decl): Add 'location_t'
14920         parameter.
14921         * doc/tm.texi: Regenerate.
14922         * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
14923         * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
14924         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
14925         Likewise.  Preserve it for...
14926         (nvptx_goacc_expand_var_decl): ... use here.
14928 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14930         * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
14931         DejaGnu selector.
14933 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14935         PR middle-end/90115
14936         * omp-low.c (oacc_privatization_candidate_p): New function.
14937         (oacc_privatization_scan_clause_chain)
14938         (oacc_privatization_scan_decl_chain): Use it.  Also
14939         'gcc_checking_assert' that we're not seeing duplicates.
14941 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14943         PR middle-end/90115
14944         * omp-offload.c (execute_oacc_device_lower): Skip processing if no
14945         work to be done.
14947 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14949         PR middle-end/90115
14950         * omp-offload.c (execute_oacc_device_lower): Explain.
14952 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14954         PR middle-end/90115
14955         * omp-offload.c (execute_oacc_device_lower)
14956         <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
14957         case, too.
14958         * internal-fn.c (expand_UNIQUE): Don't expect
14959         'IFN_UNIQUE_OACC_PRIVATE'.
14961 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14963         PR middle-end/90115
14964         * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
14966 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14968         PR middle-end/90115
14969         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
14970         (nvptx_goacc_expand_var_decl): Tighten.
14972 2021-05-21  Julian Brown  <julian@codesourcery.com>
14973             Chung-Lin Tang  <cltang@codesourcery.com>
14974             Thomas Schwinge  <thomas@codesourcery.com>
14976         PR middle-end/90115
14977         * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
14978         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
14979         * doc/tm.texi: Regenerate.
14980         * expr.c (expand_expr_real_1): Expand decls using the
14981         expand_var_decl OpenACC hook if defined.
14982         * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
14983         * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
14984         * omp-low.c (omp_context): Add oacc_privatization_candidates
14985         field.
14986         (lower_oacc_reductions): Add PRIVATE_MARKER parameter.  Insert
14987         before fork.
14988         (lower_oacc_head_tail): Add PRIVATE_MARKER parameter.  Modify
14989         private marker's gimple call arguments, and pass it to
14990         lower_oacc_reductions.
14991         (oacc_privatization_scan_clause_chain)
14992         (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
14993         New functions.
14994         (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
14995         * omp-offload.c (convert.h): Include.
14996         (oacc_loop_xform_head_tail): Treat private-variable markers like
14997         fork/join when transforming head/tail sequences.
14998         (struct var_decl_rewrite_info): Add struct.
14999         (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
15000         (execute_oacc_device_lower): Support rewriting gang-private
15001         variables using target hook, and fix up addr_expr and var_decl
15002         nodes afterwards.
15003         * target.def (adjust_private_decl, expand_var_decl): New hooks.
15004         * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
15005         Rename to...
15006         (gcn_goacc_adjust_private_decl): ...this.
15007         * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
15008         Rename to...
15009         (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
15010         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
15011         definition using gcn_goacc_adjust_gangprivate_decl...
15012         (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
15013         gcn_goacc_adjust_private_decl.
15014         * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
15015         (gang_private_shared_size): New global variable.
15016         (gang_private_shared_align): Likewise.
15017         (gang_private_shared_sym): Likewise.
15018         (gang_private_shared_hmap): Likewise.
15019         (nvptx_option_override): Initialize these.
15020         (nvptx_file_end): Output gang_private_shared_sym.
15021         (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
15022         New functions.
15023         (nvptx_set_current_function): Clear gang_private_shared_hmap.
15024         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
15025         (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
15027 2021-05-21  H.J. Lu  <hjl.tools@gmail.com>
15029         * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
15031 2021-05-21  Richard Biener  <rguenther@suse.de>
15032             H.J. Lu  <hjl.tools@gmail.com>
15034         PR middle-end/90773
15035         * expr.c (expand_constructor): Elide expand_constructor if
15036         move by pieces is preferred.
15038 2021-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15040         * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
15041         Take a flag and mode value as arguments.
15042         (aarch64_modifies_global_state_p): Likewise.
15043         (aarch64_reads_global_state_p): Likewise.
15044         (aarch64_could_trap_p): Likewise.
15045         (aarch64_get_attributes): Likewise.
15046         (aarch64_init_simd_builtins): Adjust callsite of above.
15047         (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
15048         function attributes to apply to builtins.
15049         (aarch64_init_crc32_builtins): Likewise.
15050         (aarch64_init_builtin_rsqrt): Likewise.
15052 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
15054         * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
15055         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
15056         (gen_2logical): Use new fusion types.
15057         * config/rs6000/fusion.md: Regenerate.
15059 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
15061         PR target/100637
15062         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
15063         Handle V4QI and V2HI modes.
15064         (ix86_expand_sse_movcc): Ditto.
15065         * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
15066         New instruction pattern.
15067         (*eq<VI_32:mode>3): Ditto.
15068         (*gt<VI_32:mode>3): Ditto.
15069         (*xop_pcmov_<VI_32:mode>): Ditto.
15070         (mmx_pblendvb32): Ditto.
15071         (mmx_pblendvb64): Rename from mmx_pblendvb.
15072         (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
15073         (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
15074         (vcond<VI_32:mode><VI_32:mode>): Ditto.
15075         (vcondu<VI_32:mode><VI_32:mode>): Ditto.
15076         (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
15078 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
15080         PR tree-optimization/94589
15081         * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
15082         rhs2, treat x <= 4 equivalently to x < 5 etc.  In cmp1 and cmp2 (if
15083         not the same as cmp3) treat <= the same as < and >= the same as >.
15084         Don't require that cond2_phi_edge is true edge, instead take
15085         false/true edges into account based on cmp1/cmp2 comparison kinds.
15087 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
15089         PR target/100637
15090         * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
15091         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
15092         from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
15093         using SMAXMIN_MMXMODEI mode iterator.
15094         (*<smaxmin:code>v4qi3): New insn pattern.
15095         (*<smaxmin:code>v2hi3): Ditto.
15096         (SMAXMIN_VI_32): New mode iterator.
15097         (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
15098         (UMAXMIN_MMXMODEI): New mode iterator.
15099         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
15100         from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
15101         using UMAXMIN_MMXMODEI mode iterator.
15102         (*<umaxmin:code>v4qi3): New insn pattern.
15103         (*<umaxmin:code>v2hi3): Ditto.
15104         (UMAXMIN_VI_32): New mode iterator.
15105         (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
15106         (abs<VI_32:mode>2): New insn pattern.
15107         (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
15108         * config/i386/sse.md: ... here.
15110 2021-05-20  Clement Chigot  <clement.chigot@atos.net>
15111             David Edelsohn  <dje.gcc@gmail.com>
15113         * collect2.c (scan_prog_file): Issue non-fatal warning for
15114         non-COFF files.
15116 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
15118         * doc/invoke.texi (-Wno-c++11-extensions)
15119         (-Wno-c++14-extensions, -Wno-c++17-extensions)
15120         (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
15121         new options.
15123 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
15125         * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
15126         * config/darwin.c (darwin_override_options): Likewise.
15127         * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
15128         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
15129         (DWARF2_FRAME_REG_OUT): Likewise.
15130         * config/mips/mips.c (mips_output_filename): Likewise.
15131         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
15132         Likewise.
15133         (rs6000_dbx_register_number): Likewise.
15134         * dbxout.c: Include flags.h.
15135         * dwarf2cfi.c (cfi_label_required_p): Likewise.
15136         (dwarf2out_do_frame): Likewise.
15137         * except.c: Include flags.h.
15138         * final.c (dwarf2_debug_info_emitted_p): Likewise.
15139         (final_scan_insn_1): Likewise.
15140         * flags.h (dwarf_debuginfo_p): New function declaration.
15141         * opts.c (dwarf_debuginfo_p): New function definition.
15142         * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
15143         * toplev.c (process_options): Likewise.
15145 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
15147         * common.opt: Change type to support bitmasks.
15148         * flag-types.h (enum debug_info_type): Rename enumerator constants.
15149         (NO_DEBUG): New bitmask.
15150         (DBX_DEBUG): Likewise.
15151         (DWARF2_DEBUG): Likewise.
15152         (XCOFF_DEBUG): Likewise.
15153         (VMS_DEBUG): Likewise.
15154         (VMS_AND_DWARF2_DEBUG): Likewise.
15155         * flags.h (debug_set_to_format): New function declaration.
15156         (debug_set_count): Likewise.
15157         (debug_set_names): Likewise.
15158         * opts.c (debug_type_masks): Array of bitmasks for debug formats.
15159         (debug_set_to_format): New function definition.
15160         (debug_set_count): Likewise.
15161         (debug_set_names): Likewise.
15162         (set_debug_level): Update access to debug_type_names.
15163         * toplev.c: Likewise.
15165 2021-05-20  Martin Sebor  <msebor@redhat.com>
15167         PR middle-end/100684
15168         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
15170 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
15172         PR target/100701
15173         * config/i386/i386.md (isa): Remove x64_bmi.
15174         (enabled): Remove x64_bmi.
15175         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
15176         Remove general register alternative.
15177         (*andnot<VI_32:mode>3): Ditto.
15178         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
15179         (*<any_logic:code><VI_32:mode>3): Ditto.
15181 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
15183         * config/arm/arm.c: Include head files tree-vectorizer.h and
15184         cfgloop.h.
15186 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
15188         PR target/100637
15189         * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
15190         (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
15191         (<s>mulv4hi3_highpart): New expander.
15192         (*<s>mulv2hi3_highpart): New insn pattern.
15193         (<s>mulv2hi3_higpart): New expander.
15194         (*<any_shift:insn>v2hi3): New insn pattern.
15195         (<any_shift:insn>v2hi3): New expander.
15196         * config/i386/sse.md (smulhrsv2hi3): New expander.
15197         (*smulhrsv2hi3): New insn pattern.
15199 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
15201         * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
15202         parameter.
15203         * params.opt (vect-inner-loop-cost-factor): New.
15204         * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
15205         50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
15206         tree-vectorizer.h and its required ones.
15207         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
15208         hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
15209         * config/arm/arm.c (arm_add_stmt_cost): Likewise.
15210         * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
15211         * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
15212         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
15213         Likewise.
15214         (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
15215         * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
15216         (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
15218 2021-05-20  Christophe Lyon  <christophe.lyon@linaro.org>
15219             Torbjörn Svensson  <torbjorn.svensson@st.com>
15221         PR c/42579
15222         * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
15224 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
15226         PR middle-end/99928
15227         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
15228         explicit linear clause when combined with target, make it map(tofrom:)
15229         instead of no clause or firstprivate.
15231 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
15233         PR tree-optimization/94589
15234         * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
15235         of integral conversions.
15237 2021-05-19  Andrew MacLeod  <amacleod@redhat.com>
15239         * gimple-range.cc (fur_source::get_operand): New.
15240         (gimple_range_fold): Delete.
15241         (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
15242         (fold_using_range::range_of_range_op): Move from gimple_ranger.
15243         (fold_using_range::range_of_address): Ditto.
15244         (fold_using_range::range_of_phi): Ditto.
15245         (fold_using_range::range_of_call): Ditto.
15246         (fold_using_range::range_of_builtin_ubsan_call): Move from
15247         range_of_builtin_ubsan_call.
15248         (fold_using_range::range_of_builtin_call): Move from
15249         range_of_builtin_call.
15250         (gimple_ranger::range_of_builtin_call): Delete.
15251         (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
15252         (gimple_ranger::fold_range_internal): New.
15253         (gimple_ranger::range_of_stmt): Use new fold_using_range API.
15254         (fold_using_range::range_of_ssa_name_with_loop_info): Move from
15255         gimple_ranger.  Improve ranges of SSA_NAMES when possible.
15256         * gimple-range.h (gimple_ranger): Remove various range_of routines.
15257         (class fur_source): New.
15258         (class fold_using_range): New.
15259         (fur_source::fur_source): New.
15260         (fold_range): New.
15261         * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
15262         instead of range_of_builtin_call.
15264 2021-05-19  Jonathan Wakely  <jwakely@redhat.com>
15266         * doc/cpp.texi (Common Predefined Macros): Update documentation
15267         for the __GXX_EXPERIMENTAL_CXX0X__ macro.
15269 2021-05-19  Alex Coplan  <alex.coplan@arm.com>
15271         PR target/100333
15272         * config/arm/arm.md (nonsecure_call_internal): Always ensure
15273         callee's address is in a register.
15275 2021-05-19  Geng Qi  <gengqi@linux.alibaba.com>
15277         * common/config/riscv/riscv-common.c
15278         (riscv_subset_list::parsing_subset_version): Properly parse the letter
15279         'p' in '-march'.
15280         (riscv_subset_list::parse_std_ext,
15281          riscv_subset_list::parse_multiletter_ext): To handle errors generated
15282         in riscv_subset_list::parsing_subset_version.
15284 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
15286         * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
15287         type attribute in patterns generating XTN(2).
15289 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
15291         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
15292         Remove as duplicate of...
15293         (aarch64_xtn<mode>): This.
15294         (aarch64_xtn2<mode>_le): Move position in file.
15295         (aarch64_xtn2<mode>_be): Move position in file.
15296         (aarch64_xtn2<mode>): Move position in file.
15297         (vec_pack_trunc_<mode>): Define as an expander.
15299 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
15301         * config/aarch64/aarch64-simd-builtins.def: Split builtin
15302         generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
15303         separate scalar and vector generators.
15304         * config/aarch64/aarch64-simd.md
15305         (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
15306         split into...
15307         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
15308         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
15309         * config/aarch64/iterators.md: Define SD_HSDI iterator.
15311 2021-05-19  Jonathn Wright  <jonathan.wright@arm.com>
15313         * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
15314         of UNSPEC_SQXTUN2.
15315         * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
15317 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
15319         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
15320         Implement as an expand emitting a big/little endian
15321         instruction pattern.
15322         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
15323         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
15325 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
15327         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
15328         Implement as an expand emitting a big/little endian
15329         instruction pattern.
15330         (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
15331         (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
15332         * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
15333         UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
15335 2021-05-19  Richard Biener  <rguenther@suse.de>
15337         PR middle-end/100672
15338         * fold-const.c (fold_negate_expr_1): Use element_precision.
15339         (negate_expr_p): Likewise.
15341 2021-05-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
15343         * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
15344         (pred_load): New int attribute.
15345         * config/aarch64/aarch64-sve.md
15346         (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
15347         SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
15348         * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
15349         code_for_aarch64_load.
15351 2021-05-19  Richard Biener  <rguenther@suse.de>
15353         * cfgexpand.c (discover_nonconstant_array_refs_r): Make
15354         sure TARGET_MEM_REF bases are expanded as memory.
15355         * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
15356         Do not mark TARGET_MEM_REF bases addressable.
15357         * tree-ssa.c (non_rewritable_mem_ref_base): Handle
15358         TARGET_MEM_REF bases as never rewritable.
15359         * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
15360         walk TARGET_MEM_REF bases as address-takens.
15361         * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
15363 2021-05-19  Richard Biener  <rguenther@suse.de>
15365         * builtins.c (get_object_alignment_1): Strip outer
15366         WITH_SIZE_EXPR.
15367         * tree-dfa.c (get_ref_base_and_extent): Handle outer
15368         WITH_SIZE_EXPR for size processing and process the
15369         containing ref.
15370         * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
15371         outer WITH_SIZE_EXPR.
15372         (ao_ref_base_alias_ptr_type): Likewise.
15373         (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
15374         and handle that accordingly, stripping it for the
15375         core alias workers.
15376         * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
15377         looking through it instead of returning NULL.
15379 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
15381         PR middle-end/100576
15382         * builtins.c (check_read_access): Convert bound to size_type_node if
15383         non-NULL.
15385 2021-05-19  Richard Biener  <rguenther@suse.de>
15387         * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
15388         (verify_types_in_gimple_reference): ... here.  Sanitize.
15389         (verify_gimple_call): Verify references in LHS and arguments.
15390         (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
15392 2021-05-19  Uroš Bizjak  <ubizjak@gmail.com>
15394         * config/i386/i386.h (VALID_INT_MODE_P):
15395         Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
15396         * config/i386/i386.md (isa): Add x64_bmi.
15397         (enabled): Handle x64_bmi.
15398         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
15399         Add alternative using 64bit general registers.
15400         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
15402 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
15404         PR middle-end/99928
15405         * tree.h (OMP_MASTER_COMBINED): Define.
15406         * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
15407         handling for outer combined/composite constructs to a loop.
15408         Handle lastprivate on combined target.
15409         (gimplify_expr): Formatting fix.
15411 2021-05-19  Xionghu Luo  <luoxhu@linux.ibm.com>
15413         * passes.def: Add sink_code pass before store_merging.
15414         * tree-ssa-sink.c (pass_sink_code:clone): New.
15416 2021-05-18  Bill Schmidt  <wschmidt@linux.ibm.com>
15418         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
15419         rs6000_special_adjust_field_align_p.
15420         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
15421         * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
15422         Remove ABI warning.
15423         (rs6000_function_arg): Likewise.
15424         * config/rs6000/rs6000-protos.h
15425         (rs6000_special_adjust_field_align_p): Remove prototype.
15426         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
15427         Remove.
15428         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
15429         rs6000_special_adjust_field_align_p.
15431 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
15433         PR target/100637
15434         * config/i386/i386.h (VALID_SSE2_REG_MODE):
15435         Add V4QI and V2HI modes.
15436         (VALID_INT_MODE_P): Ditto.
15437         * config/i386/mmx.md (VI_32): New mode iterator.
15438         (mmxvecsize): Handle V4QI and V2HI.
15439         (Yv_Yw): Ditto.
15440         (mov<VI_32:mode>): New expander.
15441         (*mov<mode>_internal): New insn pattern.
15442         (movmisalign<VI_32:mode>): New expander.
15443         (neg<VI_32:mode>): New expander.
15444         (<plusminus:insn><VI_32:mode>3): New expander.
15445         (*<plusminus:insn><VI_32:mode>3): New insn pattern.
15446         (mulv2hi3): New expander.
15447         (*mulv2hi3): New insn pattern.
15448         (one_cmpl<VI_32:mode>2): New expander.
15449         (*andnot<VI_32:mode>3): New insn pattern.
15450         (<any_logic:code><VI_32:mode>3): New expander.
15451         (*<any_logic:code><VI_32:mode>3): New insn pattern.
15453 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
15455         * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
15456         Fix a mode mismatch with operand 1.
15458 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
15460         PR target/100626
15461         * config/i386/i386-expand.c (split_double_mode): Return
15462         temporary register when simplify_gen_subreg fails with
15463         the high half od the paradoxical subreg.
15465 2021-05-18  Richard Biener  <rguenther@suse.de>
15467         * cfgexpand.c (expand_one_var): Pass in forced_stack_var
15468         and honor it when expanding.
15469         (expand_used_vars_for_block): Pass through forced_stack_var.
15470         (expand_used_vars): Likewise.
15471         (discover_nonconstant_array_refs_r): Set bits in
15472         forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
15473         (avoid_type_punning_on_regs): Likewise.
15474         (discover_nonconstant_array_refs): Likewise.
15475         (pass_expand::execute): Create and pass down forced_stack_var
15476         bitmap.  For parameters and returns temporarily set
15477         TREE_ADDRESSABLE when expand_function_start.
15479 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
15481         * doc/sourcebuild.texi: Document 'dg-note'.
15483 2021-05-18  Tobias Burnus  <tobias@codesourcery.com>
15485         PR other/100598
15486         * configure: Regenerate.
15487         * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
15489 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
15491         * gimple.h (is_gimple_omp_oacc): Tighten.
15492         * omp-low.c (check_omp_nesting_restrictions): Adjust.
15494 2021-05-18  Richard Biener  <rguenther@suse.de>
15496         * tree-ssa-operands.c (mark_address_taken): Simplify.
15498 2021-05-18  Martin Liska  <mliska@suse.cz>
15500         * config/gcn/mkoffload.c (STR): Redefine.
15501         * config/i386/intelmic-mkoffload.c (STR): Likewise.
15502         * config/nvptx/mkoffload.c (STR): Likewise.
15504 2021-05-18  Martin Liska  <mliska@suse.cz>
15506         * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
15507         Use startswith function instead of strncmp.
15508         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
15509         * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
15510         * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
15511         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
15512         * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
15513         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
15514         * config/arm/arm.c (arm_file_start): Likewise.
15515         (arm_valid_target_attribute_rec): Likewise.
15516         (thumb1_md_asm_adjust): Likewise.
15517         * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
15518         * config/avr/avr.c (STR_PREFIX_P): Likewise.
15519         (avr_set_current_function): Likewise.
15520         (avr_handle_addr_attribute): Likewise.
15521         (avr_asm_output_aligned_decl_common): Likewise.
15522         (avr_asm_named_section): Likewise.
15523         (avr_section_type_flags): Likewise.
15524         (avr_asm_select_section): Likewise.
15525         * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
15526         (c6x_section_type_flags): Likewise.
15527         * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
15528         (darwin_objc_declare_unresolved_class_reference): Likewise.
15529         (darwin_objc_declare_class_definition): Likewise.
15530         * config/darwin.c (indirect_data): Likewise.
15531         (darwin_encode_section_info): Likewise.
15532         (darwin_objc2_section): Likewise.
15533         (darwin_objc1_section): Likewise.
15534         (machopic_select_section): Likewise.
15535         (darwin_globalize_label): Likewise.
15536         (darwin_label_is_anonymous_local_objc_name): Likewise.
15537         (darwin_asm_named_section): Likewise.
15538         (darwin_asm_output_dwarf_offset): Likewise.
15539         * config/frv/frv.c (frv_string_begins_with): Likewise.
15540         (frv_in_small_data_p): Likewise.
15541         * config/gcn/mkoffload.c (STR): Likewise.
15542         (main): Likewise.
15543         * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
15544         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
15545         * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
15546         (ix86_md_asm_adjust): Likewise.
15547         * config/i386/intelmic-mkoffload.c (STR): Likewise.
15548         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
15549         (i386_pe_file_end): Likewise.
15550         * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
15551         (ia64_section_type_flags): Likewise.
15552         * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
15553         * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
15554         (mips16_stub_function_p): Likewise.
15555         (mips_function_rodata_section): Likewise.
15556         * config/msp430/msp430.c (msp430_mcu_name): Likewise.
15557         (msp430_function_section): Likewise.
15558         (msp430_section_type_flags): Likewise.
15559         (msp430_expand_helper): Likewise.
15560         * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
15561         (nios2_valid_target_attribute_rec): Likewise.
15562         * config/nvptx/mkoffload.c (process): Likewise.
15563         (STR): Likewise.
15564         * config/pa/som.h: Likewise.
15565         * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
15566         * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
15567         * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
15568         (rs6000_inner_target_options): Likewise.
15569         * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
15570         * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
15571         * config/vax/vax.c (vax_output_int_move): Likewise.
15572         * config/vms/vms-ld.c (startswith): Likewise.
15573         (process_args): Likewise.
15574         (main): Likewise.
15575         * config/vms/vms.c: Likewise.
15577 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
15579         PR rtl-optimization/100590
15580         * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
15581         they are NONJUMP_INSN_P.
15583 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
15585         PR c++/100580
15586         * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
15587         DECL_ASSEMBLER_NAME on the fn_decl.
15589 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
15591         PR tree-optimization/94589
15592         * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
15593         phi result used in (res & ~1) == 0 comparison as res >= 0 as
15594         res == 2 would be UB with -ffinite-math-only.
15596 2021-05-18  Martin Liska  <mliska@suse.cz>
15598         * Makefile.in: genversion.o should depend on DATESTAMP.
15600 2021-05-18  Claudiu Zissulescu  <claziss@synopsys.com>
15602         * config/arc/simdext.md (negv2si2): Remove round bracket.
15604 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
15606         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
15607         _Bool as macro expanding to _Bool.
15609 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
15611         PR c++/100281
15612         * tree.c (build_reference_type_for_mode)
15613         (build_pointer_type_for_mode): Pick pointer mode if MODE argument
15614         is VOIDmode.
15615         (build_reference_type, build_pointer_type): Invoke
15616         build_*_type_for_mode with VOIDmode.
15618 2021-05-17  Andrew MacLeod  <amacleod@redhat.com>
15620         PR tree-optimization/100512
15621         * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
15622         and non-zero pointer ranges as invariant.
15623         * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
15624         processing from here.
15626 2021-05-17  Tom de Vries  <tdevries@suse.de>
15628         PR target/100497
15629         * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
15630         * config/nvptx/nvptx.c (nvptx_output_barrier)
15631         (nvptx_output_atomic_insn): New function.
15632         (nvptx_print_operand): Add support for 'B'.
15633         * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
15634         insns.
15636 2021-05-17  Aldy Hernandez  <aldyh@redhat.com>
15638         PR tree-optimization/100349
15639         * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
15640           NULL.
15642 2021-05-17  Tamar Christina  <tamar.christina@arm.com>
15644         * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
15645         (host_detect_local_cpu): Use it.
15647 2021-05-17  Martin Liska  <mliska@suse.cz>
15649         * doc/invoke.texi: Add 2 missing dots.
15651 2021-05-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
15653         PR bootstrap/100552
15654         * configure.ac: Replace pattern substitution with call to sed.
15655         * configure: Regenerate.
15657 2021-05-17  Richard Biener  <rguenther@suse.de>
15659         PR middle-end/100582
15660         * tree.c (array_at_struct_end_p): Get to the base of the
15661         reference before looking for the underlying decl.
15663 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
15665         * genoutput.c (validate_insn_alternatives) Make "wrong number of
15666         alternatives" message more specific, and remove assumption on where
15667         the problem is.
15669 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
15671         * config/arm/iterators.md (V16): New iterator.
15672         (VH_cvtto): New iterator.
15673         (v_cmp_result): Added V4HF and V8HF support.
15674         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
15675         (vcond<mode><mode>): Likewise.
15676         (vcond_mask_<mode><v_cmp_result>): Likewise.
15677         (vcond<VH_cvtto><mode>): New expander.
15679 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
15681         * config/arm/arm-protos.h (arm_expand_vector_compare): Update
15682         prototype.
15683         * config/arm/arm.c (arm_expand_vector_compare): Add support for
15684         MVE.
15685         (arm_expand_vcond): Likewise.
15686         * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
15687         VCMPEQQ_N_S, VCMPNEQ_N_S.
15688         (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
15689         * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
15690         (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
15691         (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
15692         (@mve_vpselq_<supf><mode>): Likewise.
15693         (@mve_vpselq_f<mode>"): Likewise.
15694         * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
15695         and move to vec-common.md.
15696         (vec_cmpu<mode><mode>): Likewise.
15697         (vcond<mode><mode>): Likewise.
15698         (vcond<V_cvtto><mode>): Likewise.
15699         (vcondu<mode><v_cmp_result>): Likewise.
15700         (vcond_mask_<mode><v_cmp_result>): Likewise.
15701         * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
15702         (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
15703         (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
15704         (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
15705         (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
15706         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
15707         from neon.md.
15708         (vec_cmpu<mode><mode>): Likewise.
15709         (vcond<mode><mode>): Likewise.
15710         (vcond<V_cvtto><mode>): Likewise.
15711         (vcondu<mode><v_cmp_result>): Likewise.
15712         (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
15713         condition.
15715 2021-05-17  liuhongt  <hongtao.liu@intel.com>
15717         PR target/100549
15718         * config/i386/i386.c (ix86_gimple_fold_builtin): Use
15719         gsi_insert_seq_before instead.
15721 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
15723         * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
15724         (arm_sat_ok): ...this.
15726 2021-05-17  Martin Liska  <mliska@suse.cz>
15728         * lto-wrapper.c (merge_flto_options): Factor out a new function.
15729         (merge_and_complain): Use it.
15730         (run_gcc): Merge also linker command line -flto=foo argument
15731         with IL files.
15733 2021-05-16  Christophe Lyon  <christophe.lyon@linaro.org>
15735         * config/arm/arm.h (CPP_SPEC): Remove error message about
15736         -mlittle-endian/-mbig-endian conflict.
15738 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
15740         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
15741         __ROP_PROTECT__ if -mrop-protect is selected.
15743 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
15745         * config/rs6000/rs6000-internal.h (rs6000_stack): Add
15746         rop_hash_save_offset and rop_hash_size.
15747         * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
15748         rop_hash_size and rop_hash_save_offset.
15749         (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
15750         (rs6000_emit_prologue): Emit hashst[p] in prologue.
15751         (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
15752         * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
15753         UNSPEC_HASHCHK.
15754         (hashst): New define_insn.
15755         (hashchk): Likewise.
15757 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
15759         * config/rs6000/rs6000.c (rs6000_option_override_internal):
15760         Disable shrink wrap when inserting ROP-protect instructions.
15761         * config/rs6000/rs6000.opt (mrop-protect): New option.
15762         (mprivileged): Likewise.
15763         * doc/invoke.texi: Document mrop-protect and mprivileged.
15765 2021-05-15  Hans-Peter Nilsson  <hp@axis.com>
15767         * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
15768         "Remove CC0".
15770 2021-05-15  Martin Jambor  <mjambor@suse.cz>
15772         Revert:
15773         2021-05-13  Martin Jambor  <mjambor@suse.cz>
15775         PR tree-optimization/100453
15776         * tree-sra.c (sra_modify_assign): All const base accesses do not
15777         need refreshing, not just those from decl_pool.
15778         (sra_modify_assign): Do not refresh into a const base decl.
15780 2021-05-15  Jakub Jelinek  <jakub@redhat.com>
15782         PR rtl-optimization/100342
15783         * regcprop.c (copy_value): When copying a source reg in a wider
15784         mode than it has recorded for the value, adjust recorded destination
15785         mode too or punt if !REG_CAN_CHANGE_MODE_P.
15787 2021-05-14  Jason Merrill  <jason@redhat.com>
15789         * intl.h: Add comments.
15791 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15793         * config/aarch64/aarch64-simd.md
15794         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
15795         (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
15796         (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
15797         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
15798         (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
15799         (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
15800         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
15801         (aarch64_sqdmlsl2_n<mode>_internal): ... This...
15802         (aarch64_sqdmlal2_n<mode>_internal): ... And this.
15804 2021-05-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15806         PR target/66791
15807         * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
15808         boolean logic equivalent.
15809         (vtst_s16): Likewise.
15810         (vtst_s32): Likewise.
15811         (vtst_u8): Likewise.
15812         (vtst_u16): Likewise.
15813         (vtst_u32): Likewise.
15814         (vtst_p8): Likewise.
15815         (vtst_p16): Likewise.
15816         (vtstq_s8): Likewise.
15817         (vtstq_s16): Likewise.
15818         (vtstq_s32): Likewise.
15819         (vtstq_u8): Likewise.
15820         (vtstq_u16): Likewise.
15821         (vtstq_u32): Likewise.
15822         (vtstq_p8): Likewise.
15823         (vtstq_p16): Likewise.
15824         * config/arm/arm_neon_builtins.def: Remove entry for vtst.
15825         * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
15827 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15829         * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
15830         (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
15831         (aarch64_sqdmlsl2<mode>): Delete.
15832         (aarch64_sqdmlal2_lane<mode>): Merge this...
15833         (aarch64_sqdmlsl2_lane<mode>): ... And this...
15834         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
15835         (aarch64_sqdmlal2_laneq<mode>): Merge this...
15836         (aarch64_sqdmlsl2_laneq<mode>): ... And this...
15837         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
15838         (aarch64_sqdmlal2_n<mode>): Merge this...
15839         (aarch64_sqdmlsl2_n<mode>): ... And this...
15840         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
15842 2021-05-13  Martin Sebor  <msebor@redhat.com>
15844         PR middle-end/100574
15845         * builtins.c (access_ref::get_ref): Improve detection of PHIs with
15846         all null arguments.
15848 2021-05-13  Martin Sebor  <msebor@redhat.com>
15850         PR tree-optimization/93100
15851         PR middle-end/98583
15852         * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
15853         don't modify referenced objects.
15855 2021-05-13  Martin Jambor  <mjambor@suse.cz>
15857         PR tree-optimization/100453
15858         * tree-sra.c (sra_modify_assign): All const base accesses do not
15859         need refreshing, not just those from decl_pool.
15860         (sra_modify_assign): Do not refresh into a const base decl.
15862 2021-05-13  Martin Liska  <mliska@suse.cz>
15864         * tree-ssa-dom.c: Remove m_simplifier.
15866 2021-05-13  Richard Earnshaw  <rearnsha@arm.com>
15868         PR target/100563
15869         * config/arm/arm.c (arm_canonicalize_comparison): Correctly
15870         canonicalize DImode inequality comparisons against the
15871         maximum integral value.
15873 2021-05-13  Jakub Jelinek  <jakub@redhat.com>
15875         PR tree-optimization/98856
15876         * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
15877         Expect V2DI and V4DI arithmetic right shifts to be emulated.
15878         (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
15879         caller.
15880         * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
15881         expand_vec_perm_2perm_pblendv): New functions.
15882         (ix86_expand_vec_perm_const_1): Use them.
15883         * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
15884         (<mask_codefor>ashr<mode>3<mask_name>): ... this.
15885         (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
15886         (ashrv4di3): New define_expand.
15887         (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
15888         and !TARGET_AVX512VL expansion.
15890 2021-05-13  Uroš Bizjak  <ubizjak@gmail.com>
15892         PR target/100581
15893         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
15894         sizes < 16 to a register when constructing vpcmov pattern.
15895         * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
15897 2021-05-13  Martin Liska  <mliska@suse.cz>
15899         * gcov-io.c (gcov_write_block): Remove.
15900         (gcov_write_words): Likewise.
15901         (gcov_read_words): Re-implement using gcov_read_bytes.
15902         (gcov_allocate): Remove.
15903         (GCOV_BLOCK_SIZE): Likewise.
15904         (struct gcov_var): Remove most of the fields.
15905         (gcov_position): Implement with ftell.
15906         (gcov_rewrite): Remove setting of start and offset fields.
15907         (from_file): Re-format.
15908         (gcov_open): Remove setbuf call. It should not be needed.
15909         (gcov_close): Remove internal buffer handling.
15910         (gcov_magic): Use __builtin_bswap32.
15911         (gcov_write_counter): Use directly gcov_write_unsigned.
15912         (gcov_write_string): Use direct fwrite and do not round
15913         to 4 bytes.
15914         (gcov_seek): Use directly fseek.
15915         (gcov_write_tag): Use gcov_write_unsigned directly.
15916         (gcov_write_length): Likewise.
15917         (gcov_write_tag_length): Likewise.
15918         (gcov_read_bytes): Use directly fread.
15919         (gcov_read_unsigned): Use gcov_read_words.
15920         (gcov_read_counter): Likewise.
15921         (gcov_read_string): Use gcov_read_bytes.
15922         * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
15923         that size is not in bytes, but words (4B).
15924         (GCOV_TAG_FUNCTION_LENGTH): Likewise.
15925         (GCOV_TAG_ARCS_LENGTH): Likewise.
15926         (GCOV_TAG_ARCS_NUM): Likewise.
15927         (GCOV_TAG_COUNTER_LENGTH): Likewise.
15928         (GCOV_TAG_COUNTER_NUM): Likewise.
15929         (GCOV_TAG_SUMMARY_LENGTH): Likewise.
15931 2021-05-13  liuhongt  <hongtao.liu@intel.com>
15933         PR target/94680
15934         * config/i386/sse.md (ssedoublevecmode): Add attribute for
15935         V64QI/V32HI/V16SI/V4DI.
15936         (ssehalfvecmode): Add attribute for V2DI/V2DF.
15937         (*vec_concatv4si_0): Extend to VI124_128.
15938         (*vec_concat<mode>_0): New pre-reload splitter.
15939         * config/i386/predicates.md (movq_parallel): New predicate.
15941 2021-05-13  Alexandre Oliva  <oliva@adacore.com>
15943         * targhooks.c (default_zero_call_used_regs): Retry using
15944         successfully-zeroed registers as sources.
15946 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
15948         * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
15950 2021-05-12  Aldy Hernandez  <aldyh@redhat.com>
15952         PR c/100521
15953         * gimple-range.cc (range_of_builtin_call): Skip out on
15954           processing __builtin_clz when varying.
15956 2021-05-12  Tom de Vries  <tdevries@suse.de>
15958         PR target/96005
15959         * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
15960         * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
15961         to ptx_version_option.
15962         * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
15963         * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
15964         (define_insn "nvptx_vote_ballot"): Use sync variant for
15965         TARGET_PTX_6_3.
15966         * config/nvptx/nvptx.opt (ptx_version): Add enum.
15967         (mptx): Add option.
15968         * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
15970 2021-05-12  Richard Biener  <rguenther@suse.de>
15972         PR tree-optimization/100566
15973         * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
15974         allow_back for all edge queries.
15976 2021-05-12  liuhongt  <hongtao.liu@intel.com>
15978         PR target/99908
15979         * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
15980         splitters for pblendvb of NOT mask register.
15982 2021-05-12  Richard Biener  <rguenther@suse.de>
15984         PR tree-optimization/100519
15985         * tree-ssa-reassoc.c (can_associate_p): Split into...
15986         (can_associate_op_p): ... this
15987         (can_associate_type_p): ... and this.
15988         (is_reassociable_op): Call can_associate_op_p.
15989         (break_up_subtract_bb): Call the appropriate predicates.
15990         (reassociate_bb): Likewise.
15992 2021-05-12  Martin Liska  <mliska@suse.cz>
15994         * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
15995         (run_gcc): Use -flto argument detection for merged
15996         fdecoded_options.
15998 2021-05-12  Martin Liska  <mliska@suse.cz>
16000         * lto-wrapper.c (print_lto_docs_link): New function.
16001         (run_gcc): Print warning about missing job server detection
16002         after we know NR of partitions. Do the same for -flto{,=1}.
16003         * opts.c (get_option_html_page): Support -flto option.
16005 2021-05-12  Martin Liska  <mliska@suse.cz>
16007         * lto-wrapper.c (get_options_from_collect_gcc_options): Change
16008         return type.
16009         (append_option): Remove.
16010         (find_option): Rework to use the vector type.
16011         (remove_option): Remove.
16012         (merge_and_complain): Use vectors for cl_decoded_option data
16013         type arguments.
16014         (append_compiler_options): Likewise.
16015         (append_diag_options): Likewise.
16016         (append_linker_options): Likewise.
16017         (append_offload_options): Likewise.
16018         (compile_offload_image): Likewise.
16019         (compile_images_for_offload_targets): Likewise.
16020         (find_and_merge_options): Likewise.
16021         (run_gcc): Likewise.
16023 2021-05-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16025         PR debug/100515
16026         * dwarf2out.c (dwarf2out_finish): Set
16027         have_multiple_function_sections with multi-range text_section.
16029 2021-05-12  Martin Liska  <mliska@suse.cz>
16031         PR bootstrap/100560
16032         * Makefile.in: Remove version.h from linker command line.
16034 2021-05-12  Richard Biener  <rguenther@suse.de>
16036         PR middle-end/100547
16037         * rtl.h (rtvec_alloc): Make argument size_t.
16038         * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
16040 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
16042         PR middle-end/100508
16043         * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
16044         type, don't reuse DECL_RTL if it has different mode, instead force
16045         creation of a new DEBUG_EXPR.
16047 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
16048             Marc Glisse  <marc.glisse@inria.fr>
16050         PR tree-optimization/94589
16051         * match.pd ((X & Y) == X -> (X & ~Y) == 0,
16052         (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
16054 2021-05-12  Uroš Bizjak  <ubizjak@gmail.com>
16056         PR target/98218
16057         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
16058         * config/i386/mmx.md (MMXMODE124): New mode iterator.
16059         (V2FI): Ditto.
16060         (mmxintvecmode): New mode attribute.
16061         (mmxintvecmodelower): Ditto.
16062         (*mmx_maskcmpv2sf3_comm): New insn pattern.
16063         (*mmx_maskcmpv2sf3): Ditto.
16064         (vec_cmpv2sfv2si): New expander.
16065         (vcond<V2FI:mode>v2si): Ditto.
16066         (mmx_vlendvps): New insn pattern.
16067         (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
16068         (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
16069         (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
16071 2021-05-11  Martin Sebor  <msebor@redhat.com>
16073         PR middle-end/21433
16074         * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
16076 2021-05-11  Richard Biener  <rguenther@suse.de>
16078         * gimple-fold.c (gimple_fold_call): Do not call
16079         maybe_fold_reference on call arguments or the static chain.
16080         (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
16081         inputs.
16083 2021-05-11  Martin Liska  <mliska@suse.cz>
16085         * builtins.def (DEF_HSAIL_BUILTIN): Remove.
16086         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
16087         (DEF_HSAIL_SAT_BUILTIN): Likewise.
16088         (DEF_HSAIL_INTR_BUILTIN): Likewise.
16089         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
16090         * doc/frontends.texi: Remove BRIG.
16091         * doc/install.texi: Likewise.
16092         * doc/invoke.texi: Likewise.
16093         * doc/standards.texi: Likewise.
16094         * brig-builtins.def: Removed.
16095         * brig/ChangeLog: Removed.
16096         * brig/Make-lang.in: Removed.
16097         * brig/brig-builtins.h: Removed.
16098         * brig/brig-c.h: Removed.
16099         * brig/brig-lang.c: Removed.
16100         * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
16101         * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
16102         * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
16103         * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
16104         * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
16105         * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
16106         * brig/brigfrontend/brig-code-entry-handler.h: Removed.
16107         * brig/brigfrontend/brig-comment-handler.cc: Removed.
16108         * brig/brigfrontend/brig-control-handler.cc: Removed.
16109         * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
16110         * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
16111         * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
16112         * brig/brigfrontend/brig-function-handler.cc: Removed.
16113         * brig/brigfrontend/brig-function.cc: Removed.
16114         * brig/brigfrontend/brig-function.h: Removed.
16115         * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
16116         * brig/brigfrontend/brig-label-handler.cc: Removed.
16117         * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
16118         * brig/brigfrontend/brig-machine.c: Removed.
16119         * brig/brigfrontend/brig-machine.h: Removed.
16120         * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
16121         * brig/brigfrontend/brig-module-handler.cc: Removed.
16122         * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
16123         * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
16124         * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
16125         * brig/brigfrontend/brig-to-generic.cc: Removed.
16126         * brig/brigfrontend/brig-to-generic.h: Removed.
16127         * brig/brigfrontend/brig-util.cc: Removed.
16128         * brig/brigfrontend/brig-util.h: Removed.
16129         * brig/brigfrontend/brig-variable-handler.cc: Removed.
16130         * brig/brigfrontend/hsa-brig-format.h: Removed.
16131         * brig/brigfrontend/phsa.h: Removed.
16132         * brig/brigspec.c: Removed.
16133         * brig/config-lang.in: Removed.
16134         * brig/gccbrig.texi: Removed.
16135         * brig/lang-specs.h: Removed.
16136         * brig/lang.opt: Removed.
16138 2021-05-11  Richard Biener  <rguenther@suse.de>
16140         PR ipa/100513
16141         * ipa-param-manipulation.c
16142         (ipa_param_body_adjustments::modify_call_stmt): Avoid
16143         altering SSA_NAME_DEF_STMT by adjusting the calls LHS
16144         via gimple_call_lhs_ptr.
16146 2021-05-11  Alex Coplan  <alex.coplan@arm.com>
16148         PR target/99725
16149         * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
16150         Avoid emitting CFA adjusts on the sp if we have the fp.
16152 2021-05-11  Richard Sandiford  <richard.sandiford@arm.com>
16154         * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
16155         (VMULD): New iterator.
16156         (VCOND): Handle V4HF and V8HF.
16157         (VCONQ): Fix entry for V2SF.
16158         * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
16159         instead of VMUL.  Use a 64-bit vector mode for the indexed operand.
16160         (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
16161         (mul_laneq<mode>3): ...this define_insn.  Use VMUL instead of VDQSF.
16162         Use a 128-bit vector mode for the indexed operand.  Use stype for
16163         the scheduling type.
16165 2021-05-11  Richard Biener  <rguenther@suse.de>
16167         * gimple-fold.c (maybe_fold_reference): Only return
16168         is_gimple_min_invariant values.
16170 2021-05-11  Richard Biener  <rguenther@suse.de>
16172         PR middle-end/100509
16173         * gimple-fold.c (fold_gimple_assign): Only call
16174         get_symbol_constant_value on register type symbols.
16176 2021-05-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
16177             Joe Ramsay   <joe.ramsay@arm.com>
16179         PR target/100419
16180         * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
16181         (__arm_vcmpneq): Remove duplicate definition.
16182         (__arm_vstrwq_scatter_offset_p): Likewise.
16183         (__arm_vmaxq_x): Likewise.
16184         (__arm_vmlsdavaq): Likewise.
16185         (__arm_vmlsdavaxq): Likewise.
16186         (__arm_vmlsdavq_p): Likewise.
16187         (__arm_vmlsdavxq_p): Likewise.
16188         (__arm_vrmlaldavhaq): Likewise.
16189         (__arm_vstrbq_p): Likewise.
16190         (__arm_vstrbq_scatter_offset): Likewise.
16191         (__arm_vstrbq_scatter_offset_p): Likewise.
16192         (__arm_vstrdq_scatter_offset): Likewise.
16193         (__arm_vstrdq_scatter_offset_p): Likewise.
16194         (__arm_vstrdq_scatter_shifted_offset): Likewise.
16195         (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
16197 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
16199         PR middle-end/100471
16200         * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
16201         is 0, bypass the reduction loop including
16202         GOMP_taskgroup_reduction_unregister call.
16204 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
16206         * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
16207         costing_for_scalar.
16208         (rs6000_density_test): Early return if costing_for_scalar is true.
16209         (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
16211 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
16213         * doc/tm.texi: Regenerated.
16214         * target.def (init_cost): Add new parameter costing_for_scalar.
16215         * targhooks.c (default_init_cost): Adjust for new parameter.
16216         * targhooks.h (default_init_cost): Likewise.
16217         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
16218         (vect_compute_single_scalar_iteration_cost): Likewise.
16219         (vect_analyze_loop_2): Likewise.
16220         * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
16221         (vect_bb_vectorization_profitable_p): Likewise.
16222         * tree-vectorizer.h (init_cost): Likewise.
16223         * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
16224         * config/i386/i386.c (ix86_init_cost): Likewise.
16225         * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
16227 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
16229         * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
16230         vect_nonmem and moved into...
16231         (struct rs6000_cost_data): ...here.
16232         (rs6000_init_cost): Use vect_nonmem of cost_data instead.
16233         (rs6000_add_stmt_cost): Likewise.
16234         (rs6000_finish_cost): Likewise.
16236 2021-05-10  Eric Botcazou  <ebotcazou@adacore.com>
16238         * range-op.cc (get_bool_state): Adjust head comment.
16239         (operator_not_equal::op1_range): Fix comment.
16240         (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
16242 2021-05-10  Martin Sebor  <msebor@redhat.com>
16244         PR middle-end/100425
16245         PR middle-end/100510
16246         * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
16247         (pass_walloca::xlimit_certain_p): ...to this.
16248         (pass_walloca::gate): Execute for any kind of handled warning.
16249         (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
16250         warnings when xlimit_certain_p is set.
16252 2021-05-10  Pat Haugen  <pthaugen@linux.ibm.com>
16254         * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
16255         Return ALTIVEC_REGS if that is best_class.
16256         (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
16258 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
16260         * config/arm/arm.h (CPP_SPEC): Remove error message about
16261         -mfloat-abi.
16263 2021-05-10  Martin Jambor  <mjambor@suse.cz>
16265         * ipa-prop.h (IPA_NODE_REF): Removed.
16266         (IPA_NODE_REF_GET_CREATE): Likewise.
16267         (IPA_EDGE_REF): Likewise.
16268         (IPA_EDGE_REF_GET_CREATE): Likewise.
16269         (IS_VALID_JUMP_FUNC_INDEX): Likewise.
16270         * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
16271         use of ipa_node_params_sum.
16272         (ipcp_versionable_function_p): Likewise.
16273         (push_node_to_stack): Likewise.
16274         (pop_node_from_stack): Likewise.
16275         (set_single_call_flag): Replaced two IPA_NODE_REF with one single
16276         direct use of ipa_node_params_sum.
16277         (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
16278         ipa_node_params_sum.
16279         (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
16280         ipa_edge_args_sum.
16281         (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
16282         use of ipa_node_params_sum.
16283         (self_recursively_generated_p): Likewise.
16284         (propagate_scalar_across_jump_function): Likewise.
16285         (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
16286         direct use of ipa_edge_args_sum, moved the lookup after the early
16287         exit.  Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
16288         (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
16289         direct uses of ipa_node_params_sum.
16290         (propagate_vr_across_jump_function): Likewise.
16291         (propagate_aggregate_lattice): Likewise.
16292         (propagate_aggs_across_jump_function): Likewise.
16293         (propagate_constants_across_call): Likewise, also replaced
16294         IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
16295         (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
16296         of ipa_node_params_sum.
16297         (estimate_local_effects): Likewise.
16298         (add_all_node_vals_to_toposort): Likewise.
16299         (propagate_constants_topo): Likewise.
16300         (ipcp_propagate_stage): Likewise.
16301         (ipcp_discover_new_direct_edges): Likewise.
16302         (calls_same_node_or_its_all_contexts_clone_p): Likewise.
16303         (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
16304         (get_info_about_necessary_edges): Likewise.
16305         (want_remove_some_param_p): Likewise.
16306         (create_specialized_node): Likewise.
16307         (self_recursive_pass_through_p): Likewise.
16308         (self_recursive_agg_pass_through_p): Likewise.
16309         (find_more_scalar_values_for_callers_subset): Likewise and also
16310         replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
16311         case replacing two of those with a single query.
16312         (find_more_contexts_for_caller_subset): Likewise for the
16313         ipa_polymorphic_call_context overload.
16314         (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
16315         use of ipa_edge_args_sum.  Replaced IPA_NODE_REF with direct uses of
16316         ipa_node_params_sum.
16317         (find_aggregate_values_for_callers_subset): Likewise, also reusing
16318         results of ipa_edge_args_sum->get.
16319         (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
16320         direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
16321         direct use of ipa_edge_args_sum.
16322         (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
16323         summary query after the early exit and reused the result later.
16324         (decide_about_value): Replaced IPA_NODE_REF with a direct use of
16325         ipa_node_params_sum.
16326         (decide_whether_version_node): Likewise.  Removed re-querying for
16327         summaries after cloning.
16328         (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
16329         ipa_node_params_sum.
16330         (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
16331         some queries.
16332         (identify_dead_nodes): Likewise.
16333         (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
16334         ipa_node_params_sum.
16335         (ipcp_store_vr_results): Likewise.
16336         * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
16337         (ipa_fn_summary_t::duplicate): Likewise.
16338         (analyze_function_body): Likewise.
16339         (estimate_calls_size_and_time): Likewise.
16340         (ipa_cached_call_context::duplicate_from): Likewise.
16341         (ipa_call_context::equal_to): Likewise.
16342         (remap_edge_params): Likewise.
16343         (ipa_merge_fn_summary_after_inlining): Likewise.
16344         (inline_read_section): Likewise.
16345         * ipa-icf.c (sem_function::param_used_p): Likewise.
16346         * ipa-modref.c (compute_parm_map): Likewise.
16347         (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
16348         ipa_edge_args_sum.
16349         (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
16350         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
16351         ipa_edge_args_sum.
16352         * ipa-profile.c (check_argument_count): Likewise.
16353         * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
16354         with a direct use of ipa_node_params_sum.
16355         (ipa_initialize_node_params): Likewise.
16356         (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
16357         direct use of ipa_edge_args_sum and reused the query result.
16358         (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
16359         direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
16360         direct use of ipa_edge_args_sum.
16361         (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
16362         ipa_node_params_sum and reused the result of the query.
16363         (ipa_analyze_node): Likewise.
16364         (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
16365         of ipa_node_params_sum.
16366         (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
16367         direct uses of ipa_edge_args_sum.
16368         (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
16369         direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
16370         direct use of ipa_edge_args_sum.  Removed superficial re-querying the
16371         top edge summary.
16372         (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
16373         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
16374         ipa_edge_args_sum.
16375         (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
16376         direct use of ipa_edge_args_sum.
16377         (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
16378         use of ipa_node_params_sum.
16379         (ipa_print_node_params): Likewise.
16380         (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
16381         direct uses of ipa_edge_args_sum.
16382         (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
16383         ipa_edge_args_sum.
16384         (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
16385         ipa_node_params_sum.
16386         (ipa_prop_write_jump_functions): Likewise.  Move variable node to the
16387         scopes where it is used.
16389 2021-05-10  Uroš Bizjak  <ubizjak@gmail.com>
16391         * config/i386/i386-expand.c (ix86_expand_sse_movcc)
16392         <case E_V2SImode>: Force op_true to register.
16394 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
16396         * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
16397         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
16398         (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
16399         patterns.
16400         (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
16401         (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
16402         (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
16403         (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
16404         (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
16405         (mve_vcmpneq_n_f<mode>): Remove.
16406         * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
16407         (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
16408         (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
16410 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
16412         * config/arm/iterators.md (MVE_COMPARISONS): New.
16413         (mve_cmp_op): New.
16414         (mve_cmp_type): New.
16415         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
16416         mve_vcmp patterns.
16417         (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
16418         (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
16419         (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
16420         (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
16421         (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
16422         (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
16423         (mve_vcmpneq_n_<mode>): Remove.
16425 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
16427         * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
16428         * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
16429         * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
16430         names.
16432 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
16434         * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
16435         (vcmpneq_n_u): Likewise.
16436         (vcmpeqq_u,): Likewise.
16437         (vcmpeqq_n_u): Likewise.
16438         * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
16439         VCMPEQQ_N_U and VCMPNEQ_N_U.
16440         * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
16441         (mve_vcmpeqq_n): Likewise.
16442         (mve_vcmpeqq): Likewise.
16443         (mve_vcmpneq_n): Likewise.
16445 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
16447         * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
16448         the 's' version of the builtin.
16450 2021-05-10  Richard Biener  <rguenther@suse.de>
16452         PR tree-optimization/100492
16453         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
16454         Find nothing when the loop contains an irreducible region.
16456 2021-05-10  Richard Biener  <rguenther@suse.de>
16458         PR middle-end/100464
16459         PR c++/100468
16460         * gimple-fold.c (canonicalize_constructor_val): Do not set
16461         TREE_ADDRESSABLE.
16463 2021-05-10  Richard Biener  <rguenther@suse.de>
16465         PR tree-optimization/100434
16466         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
16467         call LHS.
16468         (dse_optimize_stmt): Handle call LHS by dropping the
16469         LHS or the whole call if it doesn't have other
16470         side-effects.
16471         (pass_dse::execute): Adjust.
16473 2021-05-10  Martin Liska  <mliska@suse.cz>
16475         * Makefile.in: Add missing genversion rule.
16477 2021-05-10  Alex Coplan  <alex.coplan@arm.com>
16479         PR target/99960
16480         * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
16481         vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
16483 2021-05-10  Martin Liska  <mliska@suse.cz>
16485         * builtins.c (is_builtin_name): Use startswith
16486         function instead of strncmp.
16487         * collect2.c (main): Likewise.
16488         (has_lto_section): Likewise.
16489         (scan_libraries): Likewise.
16490         * coverage.c (coverage_checksum_string): Likewise.
16491         (coverage_init): Likewise.
16492         * dwarf2out.c (is_cxx): Likewise.
16493         (gen_compile_unit_die): Likewise.
16494         * gcc-ar.c (main): Likewise.
16495         * gcc.c (init_spec): Likewise.
16496         (read_specs): Likewise.
16497         (execute): Likewise.
16498         (check_live_switch): Likewise.
16499         * genattrtab.c (write_attr_case): Likewise.
16500         (IS_ATTR_GROUP): Likewise.
16501         * gencfn-macros.c (main): Likewise.
16502         * gengtype.c (type_for_name): Likewise.
16503         (gen_rtx_next): Likewise.
16504         (get_file_langdir): Likewise.
16505         (write_local): Likewise.
16506         * genmatch.c (get_operator): Likewise.
16507         (get_operand_type): Likewise.
16508         (expr::gen_transform): Likewise.
16509         * genoutput.c (validate_optab_operands): Likewise.
16510         * incpath.c (add_sysroot_to_chain): Likewise.
16511         * langhooks.c (lang_GNU_C): Likewise.
16512         (lang_GNU_CXX): Likewise.
16513         (lang_GNU_Fortran): Likewise.
16514         (lang_GNU_OBJC): Likewise.
16515         * lto-wrapper.c (run_gcc): Likewise.
16516         * omp-general.c (omp_max_simt_vf): Likewise.
16517         * omp-low.c (omp_runtime_api_call): Likewise.
16518         * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
16519         * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
16520         * real.c (real_from_string): Likewise.
16521         * selftest.c (assert_str_startswith): Likewise.
16522         * timevar.c (timer::validate_phases): Likewise.
16523         * tree.c (get_file_function_name): Likewise.
16524         * ubsan.c (ubsan_use_new_style_p): Likewise.
16525         * varasm.c (default_function_rodata_section): Likewise.
16526         (incorporeal_function_p): Likewise.
16527         (default_section_type_flags): Likewise.
16528         * system.h (startswith): Define startswith.
16530 2021-05-10  Martin Liska  <mliska@suse.cz>
16532         * bitmap.h (class auto_bitmap): Remove
16533         __cplusplus >= 201103.
16534         * config/aarch64/aarch64.c: Likewise.
16535         * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
16536         Likewise.
16537         * sbitmap.h: Likewise.
16539 2021-05-10  Martin Liska  <mliska@suse.cz>
16541         * Makefile.in: Rename gcov-iov to genversion and depend
16542         on version.h (instead of gcov-iov.h).
16543         * gcov-io.h: Include version.h instread of gcov-iov.h.
16544         * gengtype-state.c (read_state_version): Likewise.
16545         * gcov-iov.c: Moved to...
16546         * genversion.c: ...here.
16547         * lto-streamer.h (LTO_major_version): Define it with
16548         GCC_major_version.
16549         * version.c: Removed.
16550         * version.h: Removed.
16552 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
16554         * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
16555         * config/arc/simdext.md (VCT): Add predicates for iterator
16556         elements.
16557         (EMUVEC): Define.
16558         (voptab): Likewise.
16559         (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
16560         (<voptab>v2si3): New patterns.
16561         (neg): Likewise.
16562         (reduc_plus_scal_v4hi): Likewise.
16563         (reduc_plus_scal_v2si): Likewise.
16564         (vec_duplicatev2si): Likewise.
16565         (vec_duplicatev4hi): Likewise.
16567 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
16569         * config/arc/simdext.md: Format and cleanup file.
16571 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
16573         * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
16574         only when munaligned-access option is on.
16575         (movmisalign<mode>): Likewise.
16577 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
16579         * common/config/arc/arc-common.c (arc_handle_option): Remove dot
16580         from string.
16581         * config/arc/arc.c (arc_reorg): Remove underscore from string.
16583 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
16585         * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
16586         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
16587         * config/arc/arc.md (clrsbsi2): Cleanup pattern.
16588         (norm_f): Likewise.
16589         (ffs): Likewise.
16590         (ffs_f): Likewise.
16591         (clzsi2): Use fls instruction when available.
16592         (arc_clzsi2): Likewise.
16594 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
16596         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
16598 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
16600         * doc/extend.texi (__builtin_arc_sr): Swap arguments.
16602 2021-05-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16604         PR middle-end/100467
16605         * toplev.c (compile_file): Call insn_locations_init before
16606         targetm.asm_out.code_end.
16608 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
16610         Revert:
16611         2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
16613         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
16615 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
16616             Andrew Stubbs  <amd@codesourcery.com>
16618         PR target/100418
16619         * builtins.c (try_store_by_multiple_pieces): Use force_operand for
16620         emit_move_insn operands.
16622 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
16624         * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
16625         location for the outgoing edges of an empty block.
16626         * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
16627         type by means of the get_array_descr_info langhook, if it is set and
16628         returns true.  Remove obsolete code dealing with unnamed subtypes.
16630 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
16632         * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
16633         (sbr_vector): Renamed from ssa_block_cache.
16634         (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
16635         (ssa_block_ranges::~ssa_block_ranges): Remove.
16636         (sbr_vector::set_bb_range): Use varying and undefined cached values.
16637         (ssa_block_ranges::set_bb_varying): Remove.
16638         (sbr_vector::get_bb_range): Adjust assert.
16639         (sbr_vector::bb_range_p): Adjust assert.
16640         (~block_range_cache): No freeing loop required.
16641         (block_range_cache::get_block_ranges): Remove.
16642         (block_range_cache::set_bb_range): Inline get_block_ranges.
16643         (block_range_cache::set_bb_varying): Remove.
16644         * gimple-range-cache.h (set_bb_varying): Remove prototype.
16645         * value-range.h (irange_allocator::get_memory): New.
16647 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
16649         * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
16650         dominator tree is available and requested.
16651         (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
16652         (ranger_cache::fill_block_cache): Don't search dom tree here either.
16653         * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
16655 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
16657         * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
16658         only PHI nodes better.
16660 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
16662         * gimple-range-edge.h (gimple_outgoing_range): Rename from
16663         outgoing_range.
16664         (gcond_edge_range): Export prototype.
16665         * gimple-range-edge.cc (gcond_edge_range): New.
16666         (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
16667         * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
16669 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
16671         * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
16672         default range into a temp and allocate only what is needed.
16674 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
16676         * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
16678 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
16680         * gimple-range.h (gimple_range_global): Pick up parameter initial
16681         values, and use-before defined locals are UNDEFINED.
16683 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
16685         * doc/extend.texi (scalar_storage_order): Mention effect on pointer
16686         and vector fields.
16687         * tree.h (reverse_storage_order_for_component_p): Return false if
16688         the type is a pointer.
16690 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
16692         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
16694 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
16696         PR target/98218
16697         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
16698         Handle V8QI, V4HI and V2SI modes.
16699         * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
16700         * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
16701         * config/i386/i386.md (unspec): ... here.
16703 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
16704             Tom de Vries  <tdevries@suse.de>
16706         * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
16707         a truth_value_p reduction variable is nonintegral.
16709 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
16711         PR target/100445
16712         * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
16713         Return false for mode sizes < 16.
16715 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
16717         PR target/100445
16718         * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
16720 2021-05-06  Martin Jambor  <mjambor@suse.cz>
16722         * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
16723         when there is no function summary.
16724         (ipa_sra_summarize_function): produce edge summaries even when
16725         bailing out early.
16727 2021-05-06  Tom Tromey  <tom@tromey.com>
16729         * godump.c (string_hash_eq): Remove.
16730         (go_finish): Use htab_eq_string.
16732 2021-05-06  Tom Tromey  <tom@tromey.com>
16734         * gengtype-state.c (read_state): Use htab_eq_string.
16735         (string_eq): Remove.
16737 2021-05-06  Tom Tromey  <tom@tromey.com>
16739         * gensupport.c (htab_eq_string): Remove.
16741 2021-05-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16743         PR ipa/97937
16744         * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
16745         * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
16746         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
16747         set_ignored_loc callbacks.
16748         * debug.c (do_nothing_debug_hooks): Likewise.
16749         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16750         * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
16751         (in_text_section_p, last_text_label, last_cold_label,
16752         switch_text_ranges, switch_cold_ranges): New data items.
16753         (dwarf2out_note_section_used): Remove.
16754         (dwarf2out_begin_prologue): Set fde->ignored_debug and
16755         in_text_section_p.
16756         (mark_ignored_debug_section): New helper function.
16757         (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
16758         mark_ignored_debug_section.
16759         (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
16760         (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
16761         (size_of_aranges): Adjust formula for multi-part text ranges size.
16762         (output_aranges): Output multi-part text ranges.
16763         (dwarf2out_set_ignored_loc): New callback function.
16764         (dwarf2out_finish): Output multi-part text ranges.
16765         (dwarf2out_c_finalize): Clear new data items.
16766         * final.c (final_start_function_1): Call set_ignored_loc callback.
16767         (final_scan_insn_1): Likewise.
16768         * ggc-page.c (gt_ggc_mx): New helper function.
16769         * stringpool.c (gt_pch_nx): Likewise.
16771 2021-05-06  Richard Biener  <rguenther@suse.de>
16773         * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
16774         (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
16775         (TV_TREE_INTO_SSA): New.
16776         * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
16777         (rewrite_blocks): Likewise.
16778         (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
16780 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
16782         * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
16783         abs_replacement, xor_replacement,
16784         cond_removal_in_popcount_clz_ctz_pattern,
16785         replace_phi_edge_with_variable): Change type of phi argument from
16786         gimple * to gphi *.
16788 2021-05-06  Richard Biener  <rguenther@suse.de>
16790         * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
16791         Output an opt-info message.
16792         (do_split_loop_on_cond): Likewise.
16793         (tree_ssa_split_loops): Update SSA form here.
16795 2021-05-06  Richard Biener  <rguenther@suse.de>
16797         * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
16798         return variable removal.
16800 2021-05-06  Marius Hillenbrand  <mhillen@linux.ibm.com>
16802         * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
16803         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
16804         (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
16805         operand.
16806         * config/s390/s390.c (s390_const_operand_ok): Remove unused
16807         values.
16809 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
16811         PR tree-optimization/94589
16812         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
16813         spaceship_replacement.
16814         (cond_only_block_p, spaceship_replacement): New functions.
16816 2021-05-06  Richard Biener  <rguenther@suse.de>
16818         PR ipa/100373
16819         * tree-emutls.c (gen_emutls_addr): Pass in whether we're
16820         dealing with a debug use and only query existing addresses
16821         if so.
16822         (lower_emutls_1): Avoid splitting out addresses for debug
16823         stmts, reset the debug stmt when we fail to find existing
16824         lowered addresses.
16825         (lower_emutls_phi_arg): Set wi.stmt.
16827 2021-05-06  Christoph Muellner  <cmuellner@gcc.gnu.org>
16829         PR target/100266
16830         * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
16831         * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
16832         (stack_protect_test): Use cbranch helper.
16834 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
16836         PR target/100402
16837         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
16838         always return the establisher frame for __builtin_frame_address (0).
16840 2021-05-05  Ivan Sorokin  <vanyacpp@gmail.com>
16842         PR target/91400
16843         * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
16844         (ix86_cpu_model_var): Likewise.
16845         (ix86_cpu_features2_type_node): Likewise.
16846         (ix86_cpu_features2_var): Likewise.
16847         (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
16848         their types.
16850 2021-05-05  Martin Sebor  <msebor@redhat.com>
16852         * passes.def (pass_warn_printf): Run after SSA.
16854 2021-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16856         * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
16857         * config/arm/predicates.md (minus_one_operand): New predicate.
16859 2021-05-05  Jeff Law  <jlaw@tachyum.com>
16861         * config/avr/avr.md: Remove references to CC_STATUS_INIT.
16863 2021-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
16865         PR rtl-optimization/100263
16866         * postreload.c (move2add_valid_value_p): Ensure register can
16867         change mode.
16869 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
16871         PR rtl-optimization/100411
16872         * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
16873         and beginning of function markers.
16875 2021-05-05  Jeff Law  <jlaw@tachyum.com>
16877         * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
16878         * config/cr16/cr16.c (notice_update_cc): Remove.
16879         * config/cr16/cr16-protos.h (notice_update_cc): Remove.
16881 2021-05-05  Uroš Bizjak  <ubizjak@gmail.com>
16883         PR target/98218
16884         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
16885         Handle V8QI, V4HI and V2SI modes.
16886         * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
16887         (ix86_build_signbit_mask): Ditto.
16888         * config/i386/mmx.md (MMXMODE14): New mode iterator.
16889         (<smaxmin:code><MMXMODE14:mode>3): New expander.
16890         (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
16891         (<umaxmin:code><MMXMODE24:mode>3): New expander.
16892         (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
16893         (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
16894         (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
16895         (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
16896         (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
16897         (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
16899 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
16901         * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
16902         not expand the VALUE_EXPR of variables put in the non-local frame.
16903         * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
16904         to be ignored for debug info, ensure its variable offsets are not.
16906 2021-05-05  Richard Biener  <rguenther@suse.de>
16908         PR tree-optimization/79333
16909         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
16910         Fold stmt following SSA edges.
16912 2021-05-05  Richard Biener  <rguenther@suse.de>
16914         PR middle-end/100394
16915         * calls.c (expand_call): Preserve possibly throwing calls.
16916         * cfgexpand.c (expand_call_stmt): When a call can throw signal
16917         RTL expansion there are side-effects.
16918         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
16919         mark all possibly throwing stmts necessary unless we can elide
16920         dead EH.
16921         * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
16922         -fdelete-dead-exceptions.
16923         * tree.h (DECL_PURE_P): Add note about exceptions.
16925 2021-05-05  Alexandre Oliva  <oliva@adacore.com>
16927         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
16928         unconditional.
16930 2021-05-04  David Edelsohn  <dje.gcc@gmail.com>
16932         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
16933         get_fnname_from_decl for name of thunk.
16934         * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
16935         and ASM_OUTPUT_LABEL.
16936         (rs6000_xcoff_declare_function_name): Use assemble_name and
16937         ASM_OUTPUT_LABEL.
16938         (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
16939         (rs6000_xcoff_encode_section_info): Don't add mapping class
16940         for aliases.  Always add [DS] mapping class to primary
16941         FUNCTION_DECL.
16942         (rs6000_asm_weaken_decl): Don't explicitly add [DS].
16944 2021-05-04  Martin Sebor  <msebor@redhat.com>
16946         PR middle-end/100307
16947         * builtins.c (compute_objsize_r): Clear base0 for pointers.
16949 2021-05-04  Jeff Law  <jlaw@tachyum.com>
16951         * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
16953 2021-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
16955         * caller-save.c: Remove CC0.
16956         * cfgcleanup.c: Remove CC0.
16957         * cfgrtl.c: Remove CC0.
16958         * combine.c: Remove CC0.
16959         * compare-elim.c: Remove CC0.
16960         * conditions.h: Remove CC0.
16961         * config/h8300/h8300.h: Remove CC0.
16962         * config/h8300/h8300-protos.h: Remove CC0.
16963         * config/h8300/peepholes.md: Remove CC0.
16964         * config/i386/x86-tune-sched.c: Remove CC0.
16965         * config/m68k/m68k.c: Remove CC0.
16966         * config/rl78/rl78.c: Remove CC0.
16967         * config/sparc/sparc.c: Remove CC0.
16968         * config/xtensa/xtensa.c: Remove CC0.
16969         (gen_conditional_move):  Use pc_rtx instead of cc0_rtx in a piece of
16970         RTL where that is used as a placeholder only.
16971         * cprop.c: Remove CC0.
16972         * cse.c: Remove CC0.
16973         * cselib.c: Remove CC0.
16974         * df-problems.c: Remove CC0.
16975         * df-scan.c: Remove CC0.
16976         * doc/md.texi: Remove CC0.  Adjust an example.
16977         * doc/rtl.texi: Remove CC0.  Adjust an example.
16978         * doc/tm.texi: Regenerate.
16979         * doc/tm.texi.in: Remove CC0.
16980         * emit-rtl.c: Remove CC0.
16981         * final.c: Remove CC0.
16982         * fwprop.c: Remove CC0.
16983         * gcse-common.c: Remove CC0.
16984         * gcse.c: Remove CC0.
16985         * genattrtab.c: Remove CC0.
16986         * genconfig.c: Remove CC0.
16987         * genemit.c: Remove CC0.
16988         * genextract.c: Remove CC0.
16989         * gengenrtl.c: Remove CC0.
16990         * genrecog.c: Remove CC0.
16991         * haifa-sched.c: Remove CC0.
16992         * ifcvt.c: Remove CC0.
16993         * ira-costs.c: Remove CC0.
16994         * ira.c: Remove CC0.
16995         * jump.c: Remove CC0.
16996         * loop-invariant.c: Remove CC0.
16997         * lra-constraints.c: Remove CC0.
16998         * lra-eliminations.c: Remove CC0.
16999         * optabs.c: Remove CC0.
17000         * postreload-gcse.c: Remove CC0.
17001         * postreload.c: Remove CC0.
17002         * print-rtl.c: Remove CC0.
17003         * read-rtl-function.c: Remove CC0.
17004         * reg-notes.def: Remove CC0.
17005         * reg-stack.c: Remove CC0.
17006         * reginfo.c: Remove CC0.
17007         * regrename.c: Remove CC0.
17008         * reload.c: Remove CC0.
17009         * reload1.c: Remove CC0.
17010         * reorg.c: Remove CC0.
17011         * resource.c: Remove CC0.
17012         * rtl.c: Remove CC0.
17013         * rtl.def: Remove CC0.
17014         * rtl.h: Remove CC0.
17015         * rtlanal.c: Remove CC0.
17016         * sched-deps.c: Remove CC0.
17017         * sched-rgn.c: Remove CC0.
17018         * shrink-wrap.c: Remove CC0.
17019         * simplify-rtx.c: Remove CC0.
17020         * system.h: Remove CC0.  Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
17021         CC_STATUS_MDEP, and CC_STATUS.
17022         * target.def: Remove CC0.
17023         * valtrack.c: Remove CC0.
17024         * var-tracking.c: Remove CC0.
17026 2021-05-04  Richard Biener  <rguenther@suse.de>
17028         PR tree-optimization/100414
17029         * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
17030         info here.
17031         (tree_ssa_phiopt_worker): But unconditionally here.
17033 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
17035         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
17036         && and || with floating-point and complex arguments.
17038 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
17040         * tree-inline.c (insert_debug_decl_map): Delete.
17041         (copy_debug_stmt): Minor tweak.
17042         (setup_one_parameter): Do not use a variable if the value is either
17043         a read-only DECL or a non-addressable local variable in the caller.
17044         In this case, insert the debug-only variable in the map manually.
17045         (expand_call_inline): Do not generate a CLOBBER for these values.
17046         * tree-inline.h (debug_map): Minor tweak.
17048 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
17050         * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
17051         * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
17053 2021-05-04  Richard Biener  <rguenther@suse.de>
17055         PR tree-optimization/100329
17056         * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
17057         asm goto defs.
17058         (insert_stmt_after): Assert we're not running into asm goto.
17060 2021-05-04  Richard Biener  <rguenther@suse.de>
17062         PR tree-optimization/100398
17063         * tree-ssa-dse.c (pass_dse::execute): Preserve control
17064         altering stmts.
17066 2021-05-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17068         * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
17070 2021-05-04  Alexandre Oliva  <oliva@adacore.com>
17072         * builtins.c (try_store_by_multiple_pieces): New.
17073         (expand_builtin_memset_args): Use it.  If target_char_cast
17074         fails, proceed as for non-constant val.  Pass len's ctz to...
17075         * expr.c (clear_storage_hints): ... this.  Try store by
17076         multiple pieces after setmem.
17077         (clear_storage): Adjust.
17078         * expr.h (clear_storage_hints): Likewise.
17079         (try_store_by_multiple_pieces): Declare.
17080         * passes.def: Replace the last copy_prop with ccp.
17082 2021-05-03  Tom de Vries  <tdevries@suse.de>
17084         PR target/100321
17085         * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
17086         reduction.
17088 2021-05-03  Richard Biener  <rguenther@suse.de>
17090         * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
17092 2021-05-03  Richard Biener  <rguenther@suse.de>
17094         * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
17095         (dse_dom_walker): Remove.
17096         (dse_dom_walker::dse_optimize_stmt): Rename...
17097         (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
17098         (dse_dom_walker::before_dom_children): Inline ...
17099         (pass_dse::execute): ... here.  Perform a reverse program
17100         order walk.
17102 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
17104         PR bootstrap/99703
17105         * configure: Regenerated.
17107 2021-05-03  Ilya Leoshkevich  <iii@linux.ibm.com>
17109         PR target/100217
17110         * config/s390/s390.c (s390_hard_fp_reg_p): New function.
17111         (s390_md_asm_adjust): Handle hard registers.
17113 2021-05-03  Jakub Jelinek  <jakub@redhat.com>
17115         PR tree-optimization/100382
17116         * tree-ssa-dse.c: Include tree-eh.h.
17117         (dse_dom_walker::before_dom_children): Don't remove stmts if
17118         stmt_unremovable_because_of_non_call_eh_p is true.
17120 2021-05-02  David Edelsohn  <dje.gcc@gmail.com>
17122         * varasm.c (compute_reloc_for_var): Split out from...
17123         (get_variable_section): Use it.
17124         * output.h (compute_reloc_for_var): Declare.
17125         * config/rs6000/rs6000-protos.h
17126         (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
17127         unsigned int.
17128         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
17129         Don't append storage mapping class to symbol.
17130         (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
17131         Don't convert TLS BSS to common.
17132         (rs6000_xcoff_unique_section): Don't fall back to select_secton.
17133         (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
17134         bss_initializer.
17135         (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
17136         mapping class.
17137         (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
17138         If align is 0 from TLS class, use the same rules as varasm.c
17139         If not common, switch to BSS section manually.
17140         If common, emit appropriate comm or lcomm directive.
17141         (rs6000_xcoff_encode_section_info): Add logic to append all
17142         storage mapping classes.
17143         (rs6000_asm_weaken_decl): Adjust for qualname symbols.
17144         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
17145         rs6000_xcoff_asm_output_aligned_decl_common.
17146         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
17147         rs6000_xcoff_asm_output_aligned_decl_common.
17148         (ASM_OUTPUT_TLS_COMMON): Use
17149         rs6000_xcoff_asm_output_aligned_decl_common.
17151 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
17153         PR target/100375
17154         * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
17155         as first argument of pseudo_node_t constructors.
17157 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
17159         PR target/100336
17160         * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
17162 2021-05-01  Aldy Hernandez  <aldyh@redhat.com>
17164         * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
17165         (gt_pch_nx (int_range<1> *&)): New.
17166         (gt_ggc_mx (int_range<1> *&)): New.
17167         * value-range.h (class irange): Add GTY support for
17168         the base class.
17170 2021-05-01  Geng Qi  <gengqi@linux.alibaba.com>
17172         * doc/options.texi (Negative): Change either or to both and.
17174 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
17176         * config/aarch64/aarch64-simd-builtins.def: Add
17177         float_ml[as][q]_laneq builtin generator macros.
17178         * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
17179         (aarch64_float_mla_laneq<mode>): Define.
17180         (aarch64_float_mls_laneq<mode>): Define.
17181         * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
17182         instead of GCC vector extensions.
17183         (vmlaq_laneq_f32): Likewise.
17184         (vmls_laneq_f32): Likewise.
17185         (vmlsq_laneq_f32): Likewise.
17187 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
17189         * config/aarch64/aarch64-simd-builtins.def: Add
17190         float_ml[as]_lane builtin generator macros.
17191         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
17192         Rename to...
17193         (mul_lane<mode>3): This, and re-order arguments.
17194         (aarch64_float_mla_lane<mode>): Define.
17195         (aarch64_float_mls_lane<mode>): Define.
17196         * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
17197         instead of GCC vector extensions.
17198         (vmlaq_lane_f32): Likewise.
17199         (vmls_lane_f32): Likewise.
17200         (vmlsq_lane_f32): Likewise.
17202 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
17204         * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
17205         builtin generator macros.
17206         * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
17207         Define.
17208         (aarch64_float_mls<mode>): Define.
17209         * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
17210         instead of relying on GCC vector extensions.
17211         (vmla_f64): Likewise.
17212         (vmlaq_f32): Likewise.
17213         (vmlaq_f64): Likewise.
17214         (vmls_f32): Likewise.
17215         (vmls_f64): Likewise.
17216         (vmlsq_f32): Likewise.
17217         (vmlsq_f64): Likewise.
17218         * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
17220 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
17222         * config/aarch64/aarch64-simd-builtins.def: Add
17223         float_ml[as]_n_builtin generator macros.
17224         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
17225         Rename to...
17226         (mul_n<mode>3): This, and re-order arguments.
17227         (aarch64_float_mla_n<mode>): Define.
17228         (aarch64_float_mls_n<mode>): Define.
17229         * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
17230         instead of inline asm.
17231         (vmlaq_n_f32): Likewise.
17232         (vmls_n_f32): Likewise.
17233         (vmlsq_n_f32): Likewise.
17235 2021-04-30  Jonathan Wright  <joanthan.wright@arm.com>
17237         * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
17238         builtin generator macros.
17239         * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
17240         (aarch64_pmull_hiv16qi_insn): Define.
17241         (aarch64_pmull_hiv16qi): Define.
17242         * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
17243         instead of inline asm.
17244         (vmull_p8): Likewise.
17246 2021-04-30  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
17248         * config/avr/avr.md: Adjust peepholes to match and
17249         generate parallels with clobber of REG_CC.
17250         (mov<mode>_insn): Rename to mov<mode>_insn_split.
17251         (*mov<mode>_insn): Rename to mov<mode>_insn.
17253 2021-04-30  David Edelsohn  <dje.gcc@gmail.com>
17255         * varasm.c (use_blocks_for_decl_p): Don't use section anchors
17256         for VAR_DECLs if -fdata-sections enabled.
17258 2021-04-30  Michael Meissner  <meissner@linux.ibm.com>
17260         PR bootstrap/100327
17261         * config/rs6000/rs6000.c
17262         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
17263         (rs6000_libgcc_floating_mode_supported_p): New target hook.
17265 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
17267         * tree-ssa-threadbackward.c (class thread_jumps): Split out code
17268         from here...
17269         (class back_threader_registry): ...to here...
17270         (class back_threader_profitability): ...and here...
17271         (thread_jumps::thread_through_all_blocks): Remove argument.
17272         (back_threader_registry::back_threader_registry): New.
17273         (back_threader_registry::~back_threader_registry): New.
17274         (back_threader_registry::thread_through_all_blocks): New.
17275         (thread_jumps::profitable_jump_thread_path): Move from here...
17276         (back_threader_profitability::profitable_path_p): ...to here.
17277         (thread_jumps::find_taken_edge): New.
17278         (thread_jumps::convert_and_register_current_path): Move...
17279         (back_threader_registry::register_path): ...to here.
17280         (thread_jumps::register_jump_thread_path_if_profitable): Move...
17281         (thread_jumps::maybe_register_path): ...to here.
17282         (thread_jumps::handle_phi): Call find_taken_edge and
17283         maybe_register_path.
17284         (thread_jumps::handle_assignment): Same.
17285         (thread_jumps::fsm_find_control_statement_thread_paths): Remove
17286         tree argument to handle_phi and handle_assignment.
17287         (thread_jumps::find_jump_threads_backwards): Set m_name.  Remove
17288         set of m_speed_p and m_max_threaded_paths.
17289         (pass_thread_jumps::execute): Remove second argument from
17290         find_jump_threads_backwards.
17291         (pass_early_thread_jumps::execute): Same.
17293 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
17295         * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
17296         (class dom_opt_dom_walker): Initialize some class variables.
17297         (pass_dominator::execute): Pass evrp_range_analyzer and
17298         dom_jump_threader_simplifier to dom_opt_dom_walker.
17299         Adjust for some functions moving into classes.
17300         (simplify_stmt_for_jump_threading): Adjust and move to...
17301         (jump_threader_simplifier::simplify): ...here.
17302         (dom_opt_dom_walker::before_dom_children): Adjust for
17303         m_evrp_range_analyzer.
17304         (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
17305         (test_for_singularity): Place in dom_opt_dom_walker class.
17306         (dom_opt_dom_walker::optimize_stmt): The argument
17307         evrp_range_analyzer is now a class field.
17308         * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
17309         (thread_jumps::thread_through_all_blocks): New.
17310         (thread_jumps::convert_and_register_current_path): Use m_registry.
17311         (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
17312         being in the threader class.
17313         (pass_early_thread_jumps::execute): Same.
17314         * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
17315         (jump_threader::jump_threader): ...here.
17316         (threadedge_finalize_values): Move...
17317         (jump_threader::~jump_threader): ...here.
17318         (jump_threader::remove_jump_threads_including): New.
17319         (jump_threader::thread_through_all_blocks): New.
17320         (record_temporary_equivalences_from_phis): Move...
17321         (jump_threader::record_temporary_equivalences_from_phis): ...here.
17322         (record_temporary_equivalences_from_stmts_at_dest): Move...
17323         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
17324         Here...
17325         (simplify_control_stmt_condition_1): Move to jump_threader class.
17326         (simplify_control_stmt_condition): Move...
17327         (jump_threader::simplify_control_stmt_condition): ...here.
17328         (thread_around_empty_blocks): Move...
17329         (jump_threader::thread_around_empty_blocks): ...here.
17330         (thread_through_normal_block): Move...
17331         (jump_threader::thread_through_normal_block): ...here.
17332         (thread_across_edge): Move...
17333         (jump_threader::thread_across_edge): ...here.
17334         (thread_outgoing_edges): Move...
17335         (jump_threader::thread_outgoing_edges): ...here.
17336         * tree-ssa-threadedge.h: Move externally facing functings...
17337         (class jump_threader): ...here...
17338         (class jump_threader_simplifier): ...and here.
17339         * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
17340         (jump_thread_path_allocator::jump_thread_path_allocator): New.
17341         (jump_thread_path_allocator::~jump_thread_path_allocator): New.
17342         (jump_thread_path_allocator::allocate_thread_edge): New.
17343         (jump_thread_path_allocator::allocate_thread_path): New.
17344         (jump_thread_path_registry::jump_thread_path_registry): New.
17345         (jump_thread_path_registry::~jump_thread_path_registry): New.
17346         (jump_thread_path_registry::allocate_thread_edge): New.
17347         (jump_thread_path_registry::allocate_thread_path): New.
17348         (dump_jump_thread_path): Make extern.
17349         (debug (const vec<jump_thread_edge *> &path)): New.
17350         (struct removed_edges): Move to tree-ssa-threadupdate.h.
17351         (struct thread_stats_d): Remove.
17352         (remove_ctrl_stmt_and_useless_edges): Make static.
17353         (lookup_redirection_data): Move...
17354         (jump_thread_path_registry::lookup_redirection_data): ...here.
17355         (ssa_redirect_edges): Make static.
17356         (thread_block_1): Move...
17357         (jump_thread_path_registry::thread_block_1): ...here.
17358         (thread_block): Move...
17359         (jump_thread_path_registry::thread_block): ...here.
17360         (thread_through_loop_header):  Move...
17361         (jump_thread_path_registry::thread_through_loop_header): ...here.
17362         (mark_threaded_blocks): Move...
17363         (jump_thread_path_registry::mark_threaded_blocks): ...here.
17364         (debug_path): Move...
17365         (jump_thread_path_registry::debug_path): ...here.
17366         (debug_all_paths): Move...
17367         (jump_thread_path_registry::dump): ..here.
17368         (rewire_first_differing_edge): Move...
17369         (jump_thread_path_registry::rewire_first_differing_edge): ...here.
17370         (adjust_paths_after_duplication): Move...
17371         (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
17372         (duplicate_thread_path): Move...
17373         (jump_thread_path_registry::duplicate_thread_path): ..here.
17374         (remove_jump_threads_including): Move...
17375         (jump_thread_path_registry::remove_jump_threads_including): ...here.
17376         (thread_through_all_blocks): Move to...
17377         (jump_thread_path_registry::thread_through_all_blocks): ...here.
17378         (delete_jump_thread_path): Remove.
17379         (register_jump_thread): Move...
17380         (jump_thread_path_registry::register_jump_thread): ...here.
17381         * tree-ssa-threadupdate.h: Move externally facing functions...
17382         (class jump_thread_path_allocator): ...here...
17383         (class jump_thread_path_registry): ...and here.
17384         (thread_through_all_blocks): Remove.
17385         (struct removed_edges): New.
17386         (register_jump_thread): Remove.
17387         (remove_jump_threads_including): Remove.
17388         (delete_jump_thread_path): Remove.
17389         (remove_ctrl_stmt_and_useless_edges): Remove.
17390         (free_dom_edge_info): New prototype.
17391         * tree-vrp.c: Remove x_vr_values hack.
17392         (class vrp_jump_threader_simplifier): New.
17393         (vrp_jump_threader_simplifier::simplify): New.
17394         (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
17395         Remove m_dummy_cond.
17396         Instantiate m_simplifier and m_threader.
17397         (vrp_jump_threader::thread_through_all_blocks): New.
17398         (vrp_jump_threader::simplify_stmt): Remove.
17399         (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
17400         Remove x_vr_values hack.
17401         (execute_vrp): Adjust for thread_through_all_blocks being in a
17402         class.
17404 2021-04-30  Christophe Lyon  <christophe.lyon@linaro.org>
17406         * genflags.c (gen_insn): Print failed expansion string.
17408 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
17410         * expr.c (alignment_for_piecewise_move): Call mode_for_size
17411         without limit to MAX_FIXED_MODE_SIZE.
17413 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
17415         PR middle-end/90773
17416         * builtins.c (builtin_memset_gen_str): Don't use return from
17417         simplify_gen_subreg.
17419 2021-04-30  Uroš Bizjak  <ubizjak@gmail.com>
17421         PR target/98060
17422         * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
17423         (*addsi3_carry_zext_0r): Ditto.
17424         (*sub<mode>3_carry_0): Ditto.
17425         (*subsi3_carry_zext_0r): Ditto.
17426         * config/i386/predicates.md (ix86_carry_flag_unset_operator):
17427         New predicate.
17428         * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
17429         Also consider ix86_carry_flag_unset_operator to calculate
17430         the cost of adc/sbb insn.
17432 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
17434         PR rtl-optimization/100225
17435         PR rtl-optimization/84878
17436         * modulo-sched.c (sms_schedule): Use note_stores to skip loops
17437         where we have an instruction which touches (writes) any hard
17438         register from df->regular_block_artificial_uses set.
17439         Allow not-single-set instruction only right before basic block
17440         tail.
17442 2021-04-30  Geng Qi  <gengqi@linux.alibaba.com>
17444         * config/riscv/riscv.opt (march=,mabi=): Negative itself.
17446 2021-04-30  LevyHsu  <admin@levyhsu.com>
17448         * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
17449         * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
17450         * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
17451         (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
17453 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
17455         * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
17457 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
17459         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
17460         (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this.  Enclose in do/while(0).
17461         * config/i386/i386.c: Adjust.
17462         * config/i386/i386.md: Adjust.
17463         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
17464         * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17465         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17466         * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17467         * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17468         * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17469         * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17470         * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17471         * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17472         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17473         (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
17475 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
17477         * config/i386/i386-expand.c (ix86_expand_int_compare):
17478         Swap operands of GTU and LEU comparison to emit carry flag comparison.
17479         * config/i386/i386.md (*add<mode>3_carry_0): Change insn
17480         predicate to allow more combine opportunities with memory operands.
17481         (*sub<mode>3_carry_0): Ditto.
17483 2021-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17485         PR rtl-optimization/100303
17486         * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
17487         boolean that indicates whether the use will only be used in
17488         debug instructions.  Treat it in the same way that existing
17489         cross-EBB debug references would be handled if so.
17490         (function_info::make_uses_available): Likewise.
17491         * rtl-ssa/functions.h (function_info::make_uses_available): Update
17492         prototype accordingly.
17493         (function_info::make_uses_available): Likewise.
17494         * fwprop.c (try_fwprop_subst): Update call accordingly.
17496 2021-04-29  Jeff Law  <jlaw@tachyum.com>
17498         * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
17499         of RTX_CODE guard.
17501 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
17502             Richard Biener  <rguenther@suse.de>
17504         PR target/100312
17505         * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
17506         (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
17507         (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
17508         (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
17509         (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
17510         to PURE_ARGS category.
17511         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
17512         Handle PURE_ARGS category.
17513         * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
17515 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
17517         * configure.ac: Check for the presence of sys/locking.h header and
17518         for whether _LK_LOCK is supported by _locking.
17519         * configure: Regenerate.
17520         * config.in: Likewise.
17521         * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
17522         * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
17523         * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
17525 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
17527         * config/i386/predicates.md (fcmov_comparison_operator):
17528         Do not check for trivial FP comparison operator.
17529         <case GEU, case LTU>: Allow CCGZmode.
17530         <case GTU, case LEU>: Do not allow CCCmode.
17531         (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
17532         (ix86_carry_flag_operator): Match only LTU and UNLT code.
17533         Do not check for trivial FP comparison operator.  Allow CCGZmode.
17535 2021-04-29  Tom de Vries  <tdevries@suse.de>
17537         * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
17538         fd->loop.step by either step or orig_step.
17540 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
17542         * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
17543         (load_got_register): Do the PIC dance here.
17544         (sparc_legitimize_tls_address): Simplify.
17545         (sparc_emit_probe_stack_range): Likewise.
17546         (sparc32_initialize_trampoline): Likewise.
17547         (sparc64_initialize_trampoline): Likewise.
17548         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
17549         (probe_stack_range<P:mode>): Likewise.
17550         (flush<P:mode>): Likewise.
17551         (tgd_hi22<P:mode>): Likewise.
17552         (tgd_lo10<P:mode>): Likewise.
17553         (tgd_add<P:mode>): Likewise.
17554         (tgd_call<P:mode>): Likewise.
17555         (tldm_hi22<P:mode>): Likewise.
17556         (tldm_lo10<P:mode>): Likewise.
17557         (tldm_add<P:mode>): Likewise.
17558         (tldm_call<P:mode>): Likewise.
17559         (tldo_hix22<P:mode>): Likewise.
17560         (tldo_lox10<P:mode>): Likewise.
17561         (tldo_add<P:mode>): Likewise.
17562         (tie_hi22<P:mode>): Likewise.
17563         (tie_lo10<P:mode>): Likewise.
17564         (tie_add<P:mode>): Likewise.
17565         (tle_hix22<P:mode>): Likewise.
17566         (tle_lox10<P:mode>): Likewise.
17567         (stack_protect_setsi): Rename to...
17568         (stack_protect_set32): ...this.
17569         (stack_protect_setdi): Rename to...
17570         (stack_protect_set64): ...this.
17571         (stack_protect_set): Adjust calls to above.
17572         (stack_protect_testsi): Rename to...
17573         (stack_protect_test32): ...this.
17574         (stack_protect_testdi): Rename to...
17575         (stack_protect_test64): ...this.
17576         (stack_protect_test): Adjust calls to above.
17578 2021-04-29  H.J. Lu  <hjl.tools@gmail.com>
17580         PR middle-end/90773
17581         * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
17582         (builtin_strncpy_read_str): Likewise.
17583         (builtin_memset_read_str): Add an argument for the previous RTL
17584         information and generate the new RTL from the previous RTL info.
17585         (builtin_memset_gen_str): Likewise.
17586         * builtins.h (builtin_strncpy_read_str): Update the prototype.
17587         (builtin_memset_read_str): Likewise.
17588         * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
17589         returns true, round up size and alignment to the widest integer
17590         mode for maximum size.
17591         (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
17592         and pass it to m_constfn.
17593         (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
17594         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
17595         initialize m_push.  Initialize m_overlap_op_by_pieces with
17596         targetm.overlap_op_by_pieces_p ().
17597         (op_by_pieces_d::run): Pass the previous RTL information to
17598         pieces_addr::adjust and generate overlapping operations if
17599         m_overlap_op_by_pieces is true.
17600         (PUSHG_P): New.
17601         (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
17602         change.
17603         (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
17604         change.
17605         (can_store_by_pieces): Use by_pieces_constfn on constfun.
17606         (store_by_pieces): Use by_pieces_constfn on constfun.  Updated
17607         for op_by_pieces_d change.
17608         (clear_by_pieces_1): Add a dummy argument.
17609         (clear_by_pieces): Updated for op_by_pieces_d change.
17610         (compare_by_pieces_d::compare_by_pieces_d): Likewise.
17611         (string_cst_read_str): Add a dummy argument.
17612         * expr.h (by_pieces_constfn): Add a dummy argument.
17613         (by_pieces_prev): New.
17614         * target.def (overlap_op_by_pieces_p): New target hook.
17615         * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
17616         * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
17617         * doc/tm.texi: Regenerated.
17619 2021-04-29  Richard Biener  <rguenther@suse.de>
17621         PR tree-optimization/100253
17622         * tree-vect-stmts.c (vectorizable_load): Do not assume
17623         element alignment when DR_MISALIGNMENT is -1.
17624         (vectorizable_store): Likewise.
17626 2021-04-29  Jakub Jelinek  <jakub@redhat.com>
17628         PR target/100302
17629         * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
17630         absu_hwi instead of abs_hwi.
17632 2021-04-29  Richard Biener  <rguenther@suse.de>
17634         PR middle-end/38474
17635         * tree-ssa-structalias.c (add_graph_edge): Avoid direct
17636         forwarding when indirect forwarding through ESCAPED
17637         alread happens.
17639 2021-04-29  Tom de Vries  <tdevries@suse.de>
17641         PR target/100232
17642         * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
17643         (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
17644         (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
17645         (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
17647 2021-04-29  Richard Biener  <rguenther@suse.de>
17649         PR tree-optimization/99912
17650         * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
17651         (dse_dom_walker::todo): Likewise.
17652         (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
17653         caller.
17654         (dse_dom_walker::before_dom_children): Remove trivially
17655         dead SSA defs and schedule CFG cleanup if we removed all
17656         PHIs in a block.
17657         (pass_dse::execute): Get TODO as computed by the DOM walker
17658         and return it.  Wipe dominator info earlier.
17660 2021-04-29  Richard Biener  <rguenther@suse.de>
17662         PR ipa/100308
17663         * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
17664         Track blocks to cleanup EH in new m_need_eh_cleanup.
17665         (ipcp_modif_dom_walker::cleanup_eh): New.
17666         (ipcp_transform_function): Release dominator info before
17667         doing EH cleanup.
17669 2021-04-29  Martin Sebor  <msebor@redhat.com>
17671         PR middle-end/100250
17672         * attribs.c (attr_access::array_as_string): Avoid dereferencing
17673         a pointer when it's null.
17675 2021-04-29  Martin Sebor  <msebor@redhat.com>
17677         * Makefile.in (OBJS): Add ipa-free-lang-data.o.
17678         * ipa-free-lang-data.cc: New file.
17679         * tree.c: Move pass free_lang_data to file above.
17680          (build_array_type_1): Declare extern.
17681         * tree.h (build_array_type_1): Declare.
17683 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
17685         * config/aarch64/aarch64-simd-builtins.def: Modify comment to
17686         make consistent with updated RTL pattern.
17687         * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
17688         Implement using ss_truncate and us_truncate rather than
17689         unspecs.
17690         * config/aarch64/iterators.md: Remove redundant unspecs and
17691         iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
17693 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
17695         * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
17696         attributes consistent with those defined in arm_neon.h.
17698 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
17700         * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
17701         attributes consistent with those defined in arm_neon.h.
17703 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
17705         * config/aarch64/aarch64-simd-builtins.def: Add
17706         float_trunc_rodd builtin generator macros.
17707         * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
17708         Define.
17709         (aarch64_float_trunc_rodd_lo_v2sf): Define.
17710         (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
17711         (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
17712         (aarch64_float_trunc_rodd_hi_v4sf): Define.
17713         * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
17714         instead of inline asm.
17715         (vcvtx_high_f32_f64): Likewise.
17716         (vcvtxd_f32_f64): Likewise.
17717         * config/aarch64/iterators.md: Add FCVTXN unspec.
17719 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
17721         * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
17722         generator macros.
17723         * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
17724         Define.
17725         * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
17726         instead of inline asm.
17727         (vqtbx1_u8): Likewise.
17728         (vqtbx1_p8): Likewise.
17729         (vqtbx1q_s8): Likewise.
17730         (vqtbx1q_u8): Likewise.
17731         (vqtbx1q_p8): Likewise.
17732         (vtbx2_s8): Likewise.
17733         (vtbx2_u8): Likewise.
17734         (vtbx2_p8): Likewise.
17736 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
17738         * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
17739         generator macros.
17740         * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
17741         instead of inline asm.
17742         (vqtbl1_s8): Likewise.
17743         (vqtbl1_u8): Likewise.
17744         (vqtbl1q_p8): Likewise.
17745         (vqtbl1q_s8): Likewise.
17746         (vqtbl1q_u8): Likewise.
17747         (vtbl1_s8): Likewise.
17748         (vtbl1_u8): Likewise.
17749         (vtbl1_p8): Likewise.
17750         (vtbl2_s8): Likewise.
17751         (vtbl2_u8): Likewise.
17752         (vtbl2_p8): Likewise.
17754 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
17756         * config/aarch64/aarch64-simd-builtins.def: Add polynomial
17757         ssri_n buitin generator macro.
17758         * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
17759         instead of inline asm.
17760         (vsri_n_p16): Likewise.
17761         (vsri_n_p64): Likewise.
17762         (vsriq_n_p8): Likewise.
17763         (vsriq_n_p16): Likewise.
17764         (vsriq_n_p64): Likewise.
17766 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
17768         * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
17769         iterator for polynomial ssli_n builtin generator macro.
17770         * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
17771         instead of inline asm.
17772         (vsli_n_p16): Likewise.
17773         (vsliq_n_p8): Likewise.
17774         (vsliq_n_p16): Likewise.
17775         * config/aarch64/iterators.md: Define VALLP mode iterator.
17777 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
17779         * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
17780         iterator to generate [su]adalp RTL builtins.
17781         * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
17782         [su]adalp RTL pattern.
17783         * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
17784         instead of inline asm.
17785         (vpadal_u32): Likewise.
17787 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
17789         * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
17790         builtin generator macros.
17791         * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
17792         Define.
17793         * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
17794         instead of inline asm.
17795         (vpaddl_s16): Likewise.
17796         (vpaddl_s32): Likewise.
17797         (vpaddl_u8): Likewise.
17798         (vpaddl_u16): Likewise.
17799         (vpaddl_u32): Likewise.
17800         (vpaddlq_s8): Likewise.
17801         (vpaddlq_s16): Likewise.
17802         (vpaddlq_s32): Likewise.
17803         (vpaddlq_u8): Likewise.
17804         (vpaddlq_u16): Likewise.
17805         (vpaddlq_u32): Liwewise.
17806         * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
17807         appropriate attributes.
17809 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
17811         * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
17812         for aarch64_addp<mode> builtin macro generator.
17813         * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
17814         aarch64_addp<mode> RTL pattern.
17815         * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
17816         instead of inline asm.
17817         (vpaddq_s16): Likewise.
17818         (vpaddq_s32): Likewise.
17819         (vpaddq_s64): Likewise.
17820         (vpaddq_u8): Likewise.
17821         (vpaddq_u16): Likewise.
17822         (vpaddq_u32): Likewise.
17823         (vpaddq_u64): Likewise.
17825 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
17827         * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
17828         builtin generator macros.
17829         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
17830         Define.
17831         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
17832         instead of inline asm.
17833         (vqdmulh_n_s32): Likewise.
17834         (vqdmulhq_n_s16): Likewise.
17835         (vqdmulhq_n_s32): Likewise.
17836         (vqrdmulh_n_s16): Likewise.
17837         (vqrdmulh_n_s32): Likewise.
17838         (vqrdmulhq_n_s16): Likewise.
17839         (vqrdmulhq_n_s32): Likewise.
17841 2021-04-28  Tobias Burnus  <tobias@codesourcery.com>
17843         * doc/install.texi (--enable-offload-defaulted): Document.
17845 2021-04-28  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
17847         * config/avr/avr-dimode.md: Turn existing patterns into
17848         define_insn_and_split style patterns where the splitter
17849         adds a clobber of the condition code register.  Drop "cc"
17850         attribute.  Add new patterns to match output of
17851         the splitters.
17852         * config/avr/avr-fixed.md: Likewise.
17853         * config/avr/avr.c (cc_reg_rtx): New.
17854         (avr_parallel_insn_from_insns): Adjust insn count
17855         for removal of set of cc0.
17856         (avr_is_casesi_sequence): Likewise.
17857         (avr_casei_sequence_check_operands): Likewise.
17858         (avr_optimize_casesi): Likewise. Also insert
17859         new insns after jump_insn.
17860         (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
17861         for removal of set of cc0.
17862         (avr_init_expanders): Initialize cc_reg_rtx.
17863         (avr_regno_reg_class): Handle REG_CC.
17864         (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
17865         (avr_notice_update_cc): Remove function.
17866         (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
17867         (compare_condition): Adjust for PARALLEL with
17868         REG_CC clobber.
17869         (out_shift_with_cnt): Likewise.
17870         (ashlhi3_out): Likewise.
17871         (ashrhi3_out): Likewise.
17872         (lshrhi3_out): Likewise.
17873         (avr_class_max_nregs): Return single reg for REG_CC.
17874         (avr_compare_pattern): Check for REG_CC instead
17875         of cc0_rtx.
17876         (avr_reorg_remove_redundant_compare): Likewise.
17877         (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
17878         (avr_hard_regno_nregs): Return single reg for REG_CC.
17879         (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
17880         (avr_md_asm_adjust): Clobber REG_CC.
17881         (TARGET_HARD_REGNO_NREGS): Define.
17882         (TARGET_CLASS_MAX_NREGS): Define.
17883         (TARGET_MD_ASM_ADJUST): Define.
17884         * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
17885         for REG_CC.
17886         (enum reg_class): Add CC_REG class.
17887         (NOTICE_UPDATE_CC): Remove.
17888         (CC_OVERFLOW_UNUSABLE): Remove.
17889         (CC_NO_CARRY): Remove.
17890         * config/avr/avr.md: Turn existing patterns into
17891         define_insn_and_split style patterns where the splitter
17892         adds a clobber of the condition code register.  Drop "cc"
17893         attribute.  Add new patterns to match output of
17894         the splitters.
17895         (sez): Remove unused pattern.
17897 2021-04-28  Richard Earnshaw  <rearnsha@arm.com>
17899         PR target/100311
17900         * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
17901         used in HImode.
17903 2021-04-28  Richard Sandiford  <richard.sandiford@arm.com>
17905         PR target/100305
17906         * config/aarch64/constraints.md (Utq): Require the address to
17907         be valid for both the element mode and for V2DImode.
17909 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
17910             Tobias Burnus  <tobias@codesourcery.com>
17912         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
17913         * gcc.c (process_command): New variable.
17914         (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
17915         set it if -foffload is defaulted.
17916         * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
17917         (compile_offload_image): If OFFLOAD_DEFAULTED and
17918         OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
17919         if corresponding mkoffload can't be found.
17920         (compile_images_for_offload_targets): Likewise.  Free and clear
17921         offload_names if no valid offload is found.
17922         * config.in: Regenerate.
17923         * configure: Regenerate.
17925 2021-04-28  Richard Biener  <rguenther@suse.de>
17927         PR tree-optimization/100292
17928         * tree-vect-generic.c (expand_vector_condition): Do not fold
17929         the comparisons.
17931 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
17933         * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
17934         * config/rs6000/aix64.opt (m64): New.
17935         (m32): New.
17937 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
17939         * config/vax/vax.c (print_operand_address, vax_address_cost_1)
17940         (index_term_p): Handle ASHIFT too.
17942 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
17944         * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
17945         (sync_lock_test_and_set<mode>): Adjust accordingly.
17946         (sync_lock_release<mode>): Likewise.
17948 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
17950         * config/vax/vax-protos.h (adjacent_operands_p): Remove
17951         prototype.
17952         * config/vax/vax.c (adjacent_operands_p): Remove.
17954 2021-04-27  Maciej W. Rozycki  <macro@linux-mips.org>
17956         * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
17957         through to the non-conditional execution case if getting the
17958         condition for conditional execution has failed.
17960 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
17962         PR middle-end/100284
17963         * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
17964         * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
17965         than asserting on it.
17967 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
17969         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
17970         with TARGET_AIX_OS.
17972 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
17974         PR target/94177
17975         * calls.c (precompute_register_parameters): Additionally test
17976         targetm.precompute_tls_p to pre-compute argument.
17977         * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
17978         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
17979         * target.def (precompute_tls_p): New.
17980         * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
17981         * doc/tm.texi: Regenerated.
17983 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
17985         PR target/100200
17986         * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
17987         back to HOST_WIDE_INT.
17989 2021-04-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17991         PR target/100106
17992         * simplify-rtx.c (simplify_context::simplify_subreg): Check the
17993         memory alignment for the outer mode.
17995 2021-04-27  H.J. Lu  <hjl.tools@gmail.com>
17997         PR middle-end/90773
17998         * expr.c (op_by_pieces_d::get_usable_mode): New member function.
17999         (op_by_pieces_d::run): Cange a while loop to a do-while loop.
18001 2021-04-27  Alex Coplan  <alex.coplan@arm.com>
18003         PR target/99977
18004         * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
18005         with negative immediates: ensure we expand cbranchsi4_scratch
18006         correctly and ensure we satisfy its constraints.
18007         * config/arm/sync.md
18008         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
18009         attempt to tie two output operands together with constraints;
18010         collapse two alternatives.
18011         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
18012         * config/arm/thumb1.md (cbranchsi4_neg_late): New.
18014 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
18016         PR target/100200
18017         * config/aarch64/predicates.md (aarch64_sub_immediate,
18018         aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
18019         * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
18020         * config/aarch64/aarch64.c (aarch64_print_operand,
18021         aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
18023 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
18025         PR tree-optimization/100239
18026         * tree-vect-generic.c (lower_vec_perm): Don't accept constant
18027         permutations with all indices from the first zero element as vec_shl.
18029 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
18031         PR rtl-optimization/100254
18032         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
18033         last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
18035 2021-04-27  Richard Biener  <rguenther@suse.de>
18037         PR tree-optimization/99912
18038         * passes.def: Add comment about new TODO_remove_unused_locals.
18039         * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
18040         at start.
18042 2021-04-27  Richard Biener  <rguenther@suse.de>
18044         PR tree-optimization/99912
18045         * passes.def (pass_all_optimizations): Add pass_dse before
18046         the first pass_dce, move the first pass_dse before the
18047         pass_dce following pass_pre.
18049 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
18051         PR tree-optimization/95527
18052         * generic-match-head.c: Include tm.h.
18053         * gimple-match-head.c: Include tm.h.
18054         * match.pd (CLZ == INTEGER_CST): Don't use
18055         #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
18056         if clz == CFN_CLZ.  Add missing val declaration.
18057         (CTZ cmp CST): New simplifications.
18059 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
18061         PR tree-optimization/96696
18062         * expr.c (expand_expr_divmod): New function.
18063         (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
18064         divisions.  Formatting fixes.
18065         <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
18066         cheaper.
18068 2021-04-27  Martin Jambor  <mjambor@suse.cz>
18070         PR ipa/99951
18071         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
18072         If removing a call statement LHS SSA name, release it.
18074 2021-04-27  Richard Earnshaw  <rearnsha@arm.com>
18076         PR target/100236
18077         * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
18078         is valid before including it in the mask.
18080 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
18082         PR target/100270
18083         * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
18084         SVE attributes.
18086 2021-04-27  Richard Biener  <rguenther@suse.de>
18088         PR tree-optimization/100051
18089         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
18090         disambiguator based on access size vs. decl size.
18092 2021-04-27  Richard Biener  <rguenther@suse.de>
18094         PR tree-optimization/100278
18095         * tree-ssa-pre.c (compute_avail): Give up when we cannot
18096         adjust TBAA beacuse of mismatching bases.
18098 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
18100         PR target/99405
18101         * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
18102         For any_rotate define_insn_split and following splitters, use
18103         SWI iterator instead of SWI48.
18105 2021-04-27  Richard Biener  <rguenther@suse.de>
18107         PR tree-optimization/99776
18108         * match.pd (bit_field_ref (ctor)): Relax element extract
18109         type compatibility checks.
18111 2021-04-27  Cui,Lili  <lili.cui@intel.com>
18113         * common/config/i386/i386-common.c (processor_names):
18114         Sync processor_names with processor_type.
18115         * config/i386/i386-options.c (processor_cost_table):
18116         Sync processor_cost_table with processor_type.
18118 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
18120         * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
18121         (irange::set): Call irange_set_1bit_anti_range for handling all
18122         1-bit ranges.  Fall through on ~[MIN,MAX].
18124 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
18126         * value-range.cc (irange::legacy_num_pairs): Remove.
18127         (irange::invert): Change gcc_assert to gcc_checking_assert.
18128         * value-range.h (irange::num_pairs): Adjust for a cached
18129         num_pairs().  Also, rename all gcc_assert's to
18130         gcc_checking_assert's.
18132 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
18134         * value-range.cc (irange::operator=): Set m_kind.
18135         (irange::copy_to_legacy): Handle varying and undefined sources
18136         as a legacy copy since they can be easily copied.
18137         (irange::irange_set): Set m_kind.
18138         (irange::irange_set_anti_range): Same.
18139         (irange::set): Rename normalize_min_max to normalize_kind.
18140         (irange::verify_range): Adjust for multi-ranges having the
18141         m_kind field set.
18142         (irange::irange_union): Set m_kind.
18143         (irange::irange_intersect): Same.
18144         (irange::invert): Same.
18145         * value-range.h (irange::kind): Always return m_kind.
18146         (irange::varying_p): Rename to...
18147         (irange::varying_comptaible_p): ...this.
18148         (irange::undefined_p): Only look at m_kind.
18149         (irange::irange): Always set VR_UNDEFINED if applicable.
18150         (irange::set_undefined): Always set VR_UNDEFINED.
18151         (irange::set_varying): Always set m_kind to VR_VARYING.
18152         (irange::normalize_min_max): Rename to...
18153         (irange::normalize_kind): ...this.
18155 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
18157         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
18158         Adjust for constant_p including varying_p.
18159         * tree-vrp.c (vrp_prop::finalize): Same.
18160         (determine_value_range): Same.
18161         * vr-values.c (vr_values::range_of_expr): Same.
18162         * value-range.cc (irange::symbolic_p): Do not check varying_p.
18163         (irange::constant_p): Same.
18165 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
18167         * value-range.cc (irange::legacy_lower_bound): Replace
18168           !undefined_p check with num_ranges > 0.
18169         (irange::legacy_upper_bound): Same.
18170         * value-range.h (irange::type): Same.
18171         (irange::lower_bound): Same.
18172         (irange::upper_bound): Same.
18174 2021-04-26  Richard Biener  <rguenther@suse.de>
18176         PR tree-optimization/99956
18177         * gimple-loop-interchange.cc (compute_access_stride):
18178         Try instantiating the access in a shallower loop nest
18179         if instantiating failed.
18180         (compute_access_strides): Pass adjustable loop_nest
18181         to compute_access_stride.
18183 2021-04-26  Christophe Lyon  <christophe.lyon@linaro.org>
18185         * doc/sourcebuild.texi (arm_cmse_hw): Document.
18187 2021-04-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18189         * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
18191 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
18192             Nathan Sidwell  <nathan@codesourcery.com>
18193             Tom de Vries  <vries@codesourcery.com>
18194             Julian Brown  <julian@codesourcery.com>
18195             Kwok Cheung Yeung  <kcy@codesourcery.com>
18197         * omp-offload.c (oacc_validate_dims): Implement
18198         '-Wopenacc-parallelism'.
18199         * doc/invoke.texi (-Wopenacc-parallelism): Document.
18201 2021-04-26  Richard Biener  <rguenther@suse.de>
18203         * tree-cfg.h (gimplify_build1): Remove.
18204         (gimplify_build2): Likewise.
18205         (gimplify_build3): Likewise.
18206         * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
18207         (gimplify_build2): Likewise.
18208         (gimplify_build3): Likewise.
18209         * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
18210         Modernize.
18211         (gimplify_build2): Likewise.
18212         (gimplify_build3): Likewise.
18213         (tree_vec_extract): Use resimplify with following SSA edges.
18214         (expand_vector_parallel): Avoid passing NULL size/bitpos
18215         to tree_vec_extract.
18216         * expr.c (store_constructor): Deal with zero-element CTORs.
18217         * match.pd (bit_field_ref <vector CTOR>): Make sure to
18218         produce vector constants when possible.
18220 2021-04-26  Richard Biener  <rguenther@suse.de>
18222         * tree-complex.c: Include gimple-fold.h.
18223         (expand_complex_addition): Use gimple_build.
18224         (expand_complex_multiplication_components): Likewise.
18225         (expand_complex_multiplication): Likewise.
18226         (expand_complex_div_straight): Likewise.
18227         (expand_complex_div_wide): Likewise.
18228         (expand_complex_division): Likewise.
18229         (expand_complex_conjugate): Likewise.
18230         (expand_complex_comparison): Likewise.
18232 2021-04-26  Richard Biener  <rguenther@suse.de>
18234         * tree-ssa-phiopt.c (two_value_replacement): Remove use
18235         of legacy gimplify_buildN API.
18237 2021-04-26  Richard Biener  <rguenther@suse.de>
18239         PR tree-optimization/99473
18240         * tree-ssa-phiopt.c (cond_store_replacement): Handle all
18241         stores.
18243 2021-04-26  Richard Biener  <rguenther@suse.de>
18245         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
18246         Use replace_call_with_value.
18248 2021-04-26  Richard Biener  <rguenther@suse.de>
18250         * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
18251         (update_gimple_call): Likewise.
18252         (update_call_from_tree): Likewise.
18253         * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
18254         (valid_gimple_call_p): Likewise.
18255         (move_ssa_defining_stmt_for_defs): Likewise.
18256         (finish_update_gimple_call): Likewise.
18257         (update_gimple_call): Likewise.
18258         (update_call_from_tree): Likewise.
18259         (propagate_tree_value_into_stmt): Use replace_call_with_value.
18260         * gimple-fold.h (update_gimple_call): Declare.
18261         * gimple-fold.c (valid_gimple_rhs_p): Move here from
18262         tree-ssa-propagate.c.
18263         (update_gimple_call): Likewise.
18264         (valid_gimple_call_p): Likewise.
18265         (finish_update_gimple_call): Likewise, and simplify.
18266         (gimplify_and_update_call_from_tree): Implement
18267         update_call_from_tree functionality, avoid excessive
18268         push/pop_gimplify_context.
18269         (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
18270         (gimple_fold_call): Likewise.
18271         * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
18272         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
18273         (pass_fold_builtins::execute): Likewise.
18274         (optimize_stack_restore): Use replace_call_with_value.
18275         * tree-cfg.c (fold_loop_internal_call): Likewise.
18276         * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
18277         only gimplify_and_update_call_from_tree.
18278         * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
18279         (handle_builtin_strchr): Likewise.
18280         * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
18282 2021-04-26  Jakub Jelinek  <jakub@redhat.com>
18284         PR debug/100255
18285         * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
18286         vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
18287         register keywords.
18289 2021-04-25  liuhongt  <hongtao.liu@intel.com>
18291         PR target/98911
18292         * config/i386/i386-builtin.def (BDESC): Change the icode of
18293         the following builtins to CODE_FOR_nothing.
18294         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
18295         IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
18296         IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
18297         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
18298         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
18299         IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
18300         IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
18301         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
18302         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
18303         * config/i386/sse.md (avx2_eq<mode>3): Deleted.
18304         (sse2_eq<mode>3): Ditto.
18305         (sse4_1_eqv2di3): Ditto.
18306         (sse2_gt<mode>3): Rename to ..
18307         (*sse2_gt<mode>3): .. this.
18309 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
18311         Revert:
18312         2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
18314         PR target/100152
18315         * config/darwin.c (darwin_binds_local_p): Assume that any
18316         public symbol might be interposed for PIC code. Update function
18317         header comment to reflect current Darwin capability.
18319 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
18321         PR target/100152
18322         * config/darwin.c (darwin_binds_local_p): Assume that any
18323         public symbol might be interposed for PIC code. Update function
18324         header comment to reflect current Darwin capability.
18326 2021-04-24  Richard Sandiford  <richard.sandiford@arm.com>
18328         * doc/sourcebuild.texi: Document no-opts and any-opts target
18329         selectors.
18331 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
18333         * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
18335 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
18337         * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
18339 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
18341         PR target/100041
18342         * config/i386/i386-options.c (ix86_option_override_internal):
18343         Error out when -m96bit-long-double is used with 64bit targets.
18344         * config/i386/i386.md (*pushxf_rounded): Remove pattern.
18346 2021-04-23  Martin Liska  <mliska@suse.cz>
18348         * lto-wrapper.c: Remove FIXME about usage of
18349         hardware_concurrency. The function is not on par with
18350         what we have now.
18352 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
18354         PR target/100182
18355         * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
18356         Copy operand 3 to operand 4.  Use sse_reg_operand
18357         as operand 3 predicate.
18358         (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
18359         (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
18360         (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
18361         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
18362         Copy operand 1 to operand 0.
18363         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
18364         (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
18365         (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
18367 2021-04-23  Alex Coplan  <alex.coplan@arm.com>
18369         PR rtl-optimization/100230
18370         * early-remat.c (early_remat::sort_candidates): Use delete[]
18371         instead of delete for array allocated with new[].
18373 2021-04-23  Richard Biener  <rguenther@suse.de>
18375         * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
18376         (capture_info::capture_info): Likewise.
18377         (capture_info::walk_match): Likewise.
18378         (expr::gen_transform): Likewise.
18379         (dt_simplify::gen_1): Likewise.
18380         * gimple-match-head.c (maybe_resimplify_conditional_op):
18381         Remove VEC_COND_EXPR special-casing.
18382         (gimple_simplify): Likewise.
18383         * gimple.c (gimple_could_trap_p_1): Adjust.
18384         * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
18385         to participate in PRE.
18387 2021-04-23  Richard Biener  <rguenther@suse.de>
18389         * cfganal.c (connect_infinite_loops_to_exit): First call
18390         add_noreturn_fake_exit_edges.
18391         * ipa-sra.c (process_scan_results): Do not call the now redundant
18392         add_noreturn_fake_exit_edges.
18393         * predict.c (tree_estimate_probability): Likewise.
18394         (rebuild_frequencies): Likewise.
18395         * store-motion.c (one_store_motion_pass): Likewise.
18397 2021-04-23  Richard Biener  <rguenther@suse.de>
18399         PR tree-optimization/100222
18400         * predict.c (pass_profile::execute): Remove redundant call to
18401         mark_irreducible_loops.
18402         (report_predictor_hitrates): Likewise.
18404 2021-04-23  Richard Biener  <rguenther@suse.de>
18406         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
18407         valid_gimple_rhs_p by instead gimplifying to one.
18409 2021-04-23  Richard Biener  <rguenther@suse.de>
18411         PR tree-optimization/99971
18412         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
18413         Always use TBAA for loads.
18415 2021-04-23  liuhongt  <hongtao.liu@intel.com>
18417         PR target/100093
18418         * config/i386/i386-options.c (ix86_option_override_internal):
18419         Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
18420         when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
18421         by target attribute.
18423 2021-04-23  David Edelsohn  <dje.gcc@gmail.com>
18425         * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
18426         DWARF2_DEBUG.
18427         * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
18429 2021-04-22  David Edelsohn  <dje.gcc@gmail.com>
18431         * config.gcc (powerpc-ibm-aix6.*): Remove.
18432         * config/rs6000/aix61.h: Delete.
18434 2021-04-22  Martin Liska  <mliska@suse.cz>
18436         PR testsuite/100159
18437         PR testsuite/100192
18438         * builtins.c (expand_builtin): Fix typos and missing comments.
18439         * dwarf2out.c (gen_subprogram_die): Likewise.
18440         (gen_struct_or_union_type_die): Likewise.
18442 2021-04-22  Uroš Bizjak  <ubizjak@gmail.com>
18444         PR target/100119
18445         * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
18446         Remove the sign with FE_DOWNWARD, where x - x = -0.0.
18448 2021-04-21  Iain Sandoe  <iain@sandoe.co.uk>
18450         * config/i386/darwin.h (TARGET_64BIT): Remove definition
18451         based on TARGET_ISA_64BIT.
18452         (TARGET_64BIT_P): Remove definition based on
18453         TARGET_ISA_64BIT_P().
18455 2021-04-21  Martin Liska  <mliska@suse.cz>
18457         Revert:
18458         2021-04-21  Martin Liska  <mliska@suse.cz>
18460         * lto-wrapper.c (cpuset_popcount): Remove.
18461         (init_num_threads): Remove and use hardware_concurrency.
18463 2021-04-21  Martin Liska  <mliska@suse.cz>
18465         PR jit/98615
18466         * main.c (main): Call toplev::finalize in CHECKING_P mode.
18467         * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
18468         when incremental LTO linking happens.
18470 2021-04-21  Martin Liska  <mliska@suse.cz>
18472         * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
18473         makeserver cannot be detected, then use -flto=N fallback.
18475 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
18477         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
18478         default to yes for aarch64-linux-gnu.
18479         * configure: Regenerate.
18481 2021-04-21  Martin Liska  <mliska@suse.cz>
18483         * lto-wrapper.c (cpuset_popcount): Remove.
18484         (init_num_threads): Remove and use hardware_concurrency.
18486 2021-04-21  Martin Liska  <mliska@suse.cz>
18488         * config/i386/i386.c: Remove superfluous || TARGET_MACHO
18489         which remains to be '(... || 0)' and clang complains about it.
18490         * dwarf2out.c (AT_vms_delta): Declare conditionally.
18491         (add_AT_vms_delta): Likewise.
18492         * tree.c (fld_simplified_type): Use rather more common pattern
18493         for disabling of something (#if 0).
18494         (get_tree_code_name): Likewise.
18495         (verify_type_variant): Likewise.
18497 2021-04-21  Martin Liska  <mliska@suse.cz>
18499         * config/i386/i386-expand.c (decide_alignment): Use newly named
18500         macro TARGET_CPU_P.
18501         * config/i386/i386.c (ix86_decompose_address): Likewise.
18502         (ix86_address_cost): Likewise.
18503         (ix86_lea_outperforms): Likewise.
18504         (ix86_avoid_lea_for_addr): Likewise.
18505         (ix86_add_stmt_cost): Likewise.
18506         * config/i386/i386.h (TARGET_*): Remove.
18507         (TARGET_CPU_P): New macro.
18508         * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
18509         * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
18510         (swap_top_of_ready_list): Likewise.
18511         (ix86_atom_sched_reorder): Likewise.
18512         * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
18513         * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
18515 2021-04-21  Martin Liska  <mliska@suse.cz>
18517         * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
18518         Define.
18519         (SET_TARGET_NO_SAHF): Likewise.
18520         (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
18521         (SET_TARGET_PREFETCH_SSE): Likewise.
18522         (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
18523         (SET_TARGET_NO_TUNE): Likewise.
18524         (TARGET_EXPLICIT_NO_80387_P): Likewise.
18525         (SET_TARGET_NO_80387): Likewise.
18526         (DEF_PTA): New.
18527         * config/i386/i386.h (TARGET_*): Remove.
18528         * opth-gen.awk: Generate new used macros.
18530 2021-04-21  Martin Liska  <mliska@suse.cz>
18532         * config/i386/i386.h (PTA_*): Remove.
18533         (enum pta_flag): New.
18534         (DEF_PTA): Generate PTA_* values from i386-isa.def.
18535         * config/i386/i386-isa.def: New file.
18537 2021-04-21  Alex Coplan  <alex.coplan@arm.com>
18539         PR target/99988
18540         * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
18541         (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
18542         jump table targets.
18544 2021-04-21  H.J. Lu  <hjl.tools@gmail.com>
18546         * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
18547         x86_64-*-* targets.
18548         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
18549         New.
18550         (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
18551         (ix86_handle_option): Handle -mmwait.
18552         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18553         Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
18554         __builtin_ia32_monitor and __builtin_ia32_mwait.
18555         * config/i386/i386-options.c (isa2_opts): Add -mmwait.
18556         (ix86_valid_target_attribute_inner_p): Likewise.
18557         (ix86_option_override_internal): Enable mwait/monitor
18558         instructions for -msse3.
18559         * config/i386/i386.h (TARGET_MWAIT): New.
18560         (TARGET_MWAIT_P): Likewise.
18561         * config/i386/i386.opt: Add -mmwait.
18562         * config/i386/mwaitintrin.h: New file.
18563         * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
18564         * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
18565         TARGET_MWAIT.
18566         (@sse3_monitor_<mode>): Likewise.
18567         * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
18568         * doc/extend.texi: Document mwait target attribute.
18569         * doc/invoke.texi: Document -mmwait.
18571 2021-04-21  Martin Liska  <mliska@suse.cz>
18573         * config/i386/i386-options.c (DEF_ENUM): Remove it.
18574         * config/i386/i386-opts.h (DEF_ENUM): Likewise.
18575         * config/i386/stringop.def (DEF_ENUM): Likewise.
18577 2021-04-21  Martin Liska  <mliska@suse.cz>
18579         * tree-cfg.c (gimple_verify_flow_info): Use qD instead
18580         of print_generic_expr.
18582 2021-04-21  Jakub Jelinek  <jakub@redhat.com>
18584         PR rtl-optimization/100148
18585         * cprop.c (constprop_register): Use next_nondebug_insn instead of
18586         NEXT_INSN.
18588 2021-04-21  Martin Liska  <mliska@suse.cz>
18590         PR ipa/98815
18591         * cgraphunit.c (cgraph_node::analyze): Remove duplicate
18592         free_dominance_info calls.
18594 2021-04-21  Richard Biener  <rguenther@suse.de>
18596         * gimple-fold.c (maybe_fold_reference): Remove is_lhs
18597         parameter (and assume it to be false).
18598         (fold_gimple_assign): Adjust, remove all callers of
18599         maybe_fold_reference calling it with is_lhs true.
18600         (gimple_fold_call): Likewise.
18601         (fold_stmt_1): Likewise.
18603 2021-04-21  Richard Biener  <rguenther@suse.de>
18605         * fold-const.c (pedantic_non_lvalue_loc): Remove.
18606         (fold_binary_loc): Adjust.
18607         (fold_ternary_loc): Likewise.
18609 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
18611         PR middle-end/100130
18612         * varasm.c (get_block_for_decl): Make sure that any use of the
18613         retain attribute matches the section's retain flag.
18614         (switch_to_section): Check for retain mismatches even when
18615         changing sections, but do not warn if the given decl is the
18616         section's named.decl.
18617         (output_object_block): Pass the first decl in the block (if any)
18618         to switch_to_section.
18620 2021-04-20  H.J. Lu  <hjl.tools@gmail.com>
18622         * config/i386/i386-c.c (ix86_target_macros_internal): Define
18623         __CRC32__ for -mcrc32.
18624         * config/i386/i386-options.c (ix86_option_override_internal):
18625         Enable crc32 instruction for -msse4.2.
18626         * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
18627         check.
18628         (sse4_2_crc32di): Likewise.
18629         * config/i386/ia32intrin.h: Use crc32 target option for CRC32
18630         intrinsics.
18632 2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>
18634         PR target/100108
18635         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
18636         OPTION_MASK_ISEL.
18638 2021-04-20  Martin Liska  <mliska@suse.cz>
18640         * doc/invoke.texi: Fix typo.
18641         * params.opt: Likewise.
18643 2021-04-20  Martin Liska  <mliska@suse.cz>
18645         * doc/invoke.texi: Document new param.
18647 2021-04-19  Andrew MacLeod  <amacleod@redhat.com>
18649         PR tree-optimization/100081
18650         * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
18651         rather than gori_compute_cache.
18652         * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
18653         (range_def_chain::m_logical_depth): New member.
18654         (range_def_chain::range_def_chain): Initialize m_logical_depth.
18655         (range_def_chain::get_def_chain): Don't build defchains through more
18656         than LOGICAL_LIMIT logical expressions.
18657         * params.opt (param_ranger_logical_depth): New.
18659 2021-04-19  Richard Earnshaw  <rearnsha@arm.com>
18661         PR target/100067
18662         * config/arm/arm.c (arm_configure_build_target): Do not strip
18663         extended FPU/SIMD feature bits from the target ISA when -mfpu
18664         is specified (partial revert of r11-8168).
18666 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
18668         * params.opt (-param=openacc-kernels=): Add.
18669         * omp-oacc-kernels-decompose.cc
18670         (pass_omp_oacc_kernels_decompose::gate): Use it.
18671         * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
18672         (--param): ... here, 'openacc-kernels'.
18674 2021-04-19  Martin Liska  <mliska@suse.cz>
18676         PR c/100143
18677         * gengtype.c (finish_root_table): Align function arguments
18678         in between declaration and definition.
18680 2021-04-19  Eric Botcazou  <ebotcazou@adacore.com>
18682         * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
18683         frames larger than the SEH maximum frame size.
18685 2021-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
18687         PR rtl-optimization/99927
18688         * combine.c (distribute_notes) [REG_UNUSED]: If the register already
18689         is dead, just drop it.
18691 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
18693         PR d/99914
18694         * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
18695         * doc/tm.texi: Regenerate.
18696         * doc/tm.texi.in (D language and ABI): Add @hook for
18697         TARGET_D_TEMPLATES_ALWAYS_COMDAT.
18699 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
18701         * config/darwin-d.c (darwin_d_handle_target_object_format): New
18702         function.
18703         (darwin_d_register_target_info): New function.
18704         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
18705         * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
18706         function.
18707         (dragonfly_d_register_target_info): New function.
18708         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
18709         * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
18710         function.
18711         (freebsd_d_register_target_info): New function.
18712         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
18713         * config/glibc-d.c (glibc_d_handle_target_object_format): New
18714         function.
18715         (glibc_d_register_target_info): New function.
18716         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
18717         * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
18718         function.
18719         (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
18720         as handler for objectFormat key.
18721         * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
18722         function.
18723         (winnt_d_register_target_info): New function.
18724         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
18725         * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
18726         function.
18727         (netbsd_d_register_target_info): New function.
18728         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
18729         * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
18730         function.
18731         (openbsd_d_register_target_info): New function.
18732         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
18733         * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
18734         (pa_d_register_target_info): Add pa_d_handle_target_object_format as
18735         handler for objectFormat key.
18736         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
18737         function.
18738         (rs6000_d_register_target_info): Add
18739         rs6000_d_handle_target_object_format as handler for objectFormat key.
18740         * config/sol2-d.c (solaris_d_handle_target_object_format): New
18741         function.
18742         (solaris_d_register_target_info): New function.
18743         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
18745 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
18747         PR target/91710
18748         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
18749         abi_break argument from bool * to unsigned *, store there the pre-GCC 9
18750         alignment.
18751         (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
18752         (aarch64_function_arg_regno_p): Likewise.  Only emit -Wpsabi note if
18753         the old and new alignment after applying MIN/MAX to it is different.
18755 2021-04-16  Tamar Christina  <tamar.christina@arm.com>
18757         PR target/100048
18758         * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
18759         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
18760         TRN optab.
18761         * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
18763 2021-04-16  Bill Schmidt  <wschmidt@linux.ibm.com>
18765         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
18766         this section and its subsections.
18768 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
18770         PR target/100075
18771         * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
18772         define_insn patterns.
18774 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
18776         PR rtl-optimization/98689
18777         * reg-notes.def (UNTYPED_CALL): New note.
18778         * combine.c (distribute_notes): Handle it.
18779         * emit-rtl.c (try_split): Likewise.
18780         * rtlanal.c (rtx_properties::try_to_add_insn): Likewise.  Assume
18781         that calls with the note implicitly set all return value registers.
18782         * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
18783         to untyped_calls.
18785 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
18787         PR rtl-optimization/99596
18788         * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
18789         register accesses for const calls.  Assume that pure functions
18790         can only read from global registers.  Ignore cases in which
18791         the stack pointer has been marked global.
18793 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
18795         PR target/99767
18796         * tree-vect-loop.c (vect_transform_loop): Don't remove just
18797         dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
18798         them by their last argument.
18800 2021-04-15  Martin Liska  <mliska@suse.cz>
18802         * doc/invoke.texi: Other params don't use it, remove it.
18804 2021-04-15  Richard Biener  <rguenther@suse.de>
18806         * gimple-builder.h: Add deprecation note.
18808 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
18810         PR c++/98852
18811         * attribs.h (restrict_type_identity_attributes_to): Declare.
18812         * attribs.c (restrict_type_identity_attributes_to): New function.
18814 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
18816         PR c/98852
18817         * attribs.h (affects_type_identity_attributes): Declare.
18818         * attribs.c (remove_attributes_matching): New function.
18819         (affects_type_identity_attributes): Likewise.
18821 2021-04-15  Jakub Jelinek  <jakub@redhat.com>
18823         PR target/100056
18824         * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
18825         Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
18826         ZERO_EXTEND, SIGN_EXTEND or AND.
18828 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
18830         PR rtl-optimization/99929
18831         * rtl.h (same_vector_encodings_p): New function.
18832         * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
18833         * cselib.c (rtx_equal_for_cselib_1): Likewise.
18834         * jump.c (rtx_renumbered_equal_p): Likewise.
18835         * lra-constraints.c (operands_match_p): Likewise.
18836         * reload.c (operands_match_p): Likewise.
18837         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
18839 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
18841         * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
18842         more information about variable-length CONST_VECTORs.
18844 2021-04-14  Vladimir N. Makarov  <vmakarov@redhat.com>
18846         PR rtl-optimization/100066
18847         * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
18848         ordered modes when choosing splitting mode for hard reg.
18850 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
18852         PR target/99246
18853         * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
18854         New function.
18855         (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
18857 2021-04-14  Andreas Krebbel  <krebbel@linux.ibm.com>
18859         * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
18860         for mask operand types.
18861         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
18862         (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
18863         operand.
18864         (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
18865         immediate operand.
18866         * config/s390/s390.c (s390_const_operand_ok): Check the new
18867         operand types and generate a list of valid values.
18869 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
18871         * doc/tm.texi: Regenerate.
18872         * doc/tm.texi.in (D language and ABI): Add @hook for
18873         TARGET_D_REGISTER_OS_TARGET_INFO.
18875 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
18877         * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
18878         function.
18879         (aarch64_d_register_target_info): New function.
18880         * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
18881         Declare.
18882         * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
18883         Define.
18884         * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
18885         (arm_d_register_target_info): New function.
18886         * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
18887         * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
18888         * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
18889         (ix86_d_register_target_info): New function.
18890         * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
18891         * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
18892         * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
18893         (mips_d_register_target_info): New function.
18894         * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
18895         * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
18896         * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
18897         (pa_d_register_target_info): New function.
18898         * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
18899         * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
18900         * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
18901         function.
18902         (riscv_d_register_target_info): New function.
18903         * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
18904         * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
18905         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
18906         function.
18907         (rs6000_d_register_target_info): New function.
18908         * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
18909         Declare.
18910         * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
18911         * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
18912         (s390_d_register_target_info): New function.
18913         * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
18914         * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
18915         * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
18916         function.
18917         (sparc_d_register_target_info): New function.
18918         * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
18919         * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
18920         * doc/tm.texi: Regenerate.
18921         * doc/tm.texi.in (D language and ABI): Add @hook for
18922         TARGET_D_REGISTER_CPU_TARGET_INFO.
18924 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
18926         * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
18927         * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
18928         * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
18929         * doc/tm.texi: Regenerate.
18930         * doc/tm.texi.in (D language and ABI): Add @hook for
18931         TARGET_D_HAS_STDCALL_CONVENTION.
18933 2021-04-14  Richard Biener  <rguenther@suse.de>
18935         * tree-cfg.c (verify_gimple_assign_ternary): Verify that
18936         VEC_COND_EXPRs have a gimple_val condition.
18937         * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
18938         can no longer have a GENERIC condition.
18940 2021-04-14  Richard Earnshaw  <rearnsha@arm.com>
18942         PR target/100067
18943         * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
18944         from the isa_delta when -mfpu has been used.
18945         (arm_options_perform_arch_sanity_checks): It's the architecture that
18946         lacks an FPU not the processor.
18948 2021-04-13  Richard Biener  <rguenther@suse.de>
18950         PR tree-optimization/100053
18951         * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
18952         not use optimistic dominance queries for backedges to validate
18953         predicated values.
18954         (dominated_by_p_w_unex): Add parameter to ignore executable
18955         state on backedges.
18956         (rpo_elim::eliminate_avail): Adjust.
18958 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
18960         PR target/100028
18961         * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
18962         *aarch64_bfxilsi_extrdi): New define_insn patterns.
18964 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
18966         PR target/99648
18967         * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
18968         outermode, return NULL if the result doesn't encode back to the
18969         original byte sequence.
18970         (simplify_gen_subreg): Don't create SUBREGs from constants to
18971         MODE_COMPOSITE_P outermode.
18973 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
18975         PR rtl-optimization/99905
18976         * combine.c (expand_compound_operation): If pos + len > modewidth,
18977         perform the right shift by pos in inner_mode and then convert to mode,
18978         instead of trying to simplify a shift of rtx with inner_mode by pos
18979         as if it was a shift in mode.
18981 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
18983         PR debug/99830
18984         * combine.c (simplify_and_const_int_1): Don't optimize varop
18985         away if it has side-effects.
18987 2021-04-12  Martin Liska  <mliska@suse.cz>
18989         * doc/extend.texi: Escape @smallexample content.
18991 2021-04-12  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
18993         * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
18994           alternative in order to load a DFP zero.
18996 2021-04-12  Martin Liska  <mliska@suse.cz>
18998         * doc/extend.texi: Be more precise in documentation
18999         of symver attribute.
19001 2021-04-12  Martin Liska  <mliska@suse.cz>
19003         PR sanitizer/99877
19004         * gimplify.c (gimplify_expr): Right now, we unpoison all
19005         variables before a goto <dest>. We should not do it if we are
19006         in a omp context.
19008 2021-04-12  Cui,Lili  <lili.cui@intel.com>
19010         * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
19011         rocketlake.
19012         * common/config/i386/i386-common.c (processor_names): Add
19013         rocketlake.
19014         (processor_alias_table): Add rocketlake.
19015         * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
19016         INTEL_COREI7_ROCKETLAKE.
19017         * config.gcc: Add -march=rocketlake.
19018         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19019         rocketlake.
19020         * config/i386/i386-options.c (m_ROCKETLAKE)  : Define.
19021         (processor_cost_table): Add rocketlake cost.
19022         * config/i386/i386.h (ix86_size_cost) : Define
19023         TARGET_ROCKETLAKE.
19024         (processor_type) : Add PROCESSOR_ROCKETLAKE.
19025         (PTA_ROCKETLAKE): Ditto.
19026         * doc/extend.texi: Add rocketlake.
19027         * doc/invoke.texi: Add rocketlake.
19029 2021-04-12  Cui,Lili  <lili.cui@intel.com>
19031         * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
19032         * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
19033         * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
19034         * doc/invoke.texi: Change alderlake ISA list.
19036 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
19038         PR middle-end/98088
19039         * omp-expand.c (expand_oacc_collapse_init): Update condition in
19040         a gcc_assert.
19042 2021-04-10  H.J. Lu  <hjl.tools@gmail.com>
19044         PR target/99744
19045         * config/i386/serializeintrin.h (_serialize): Defined as macro.
19047 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
19049         PR lto/99849
19050         * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
19051         just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
19053 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
19055         PR middle-end/99989
19056         * gimple-ssa-warn-alloca.c
19057         (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
19058         0 with integer precision unconditionally.
19060 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
19062         PR rtl-optimization/98601
19063         * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
19064         not just for BLKmode, but also for VOIDmode.  For STRICT_ALIGNMENT
19065         unaligned_mems handle VOIDmode like BLKmode.
19067 2021-04-10  Jan Hubicka  <hubicka@ucw.cz>
19069         PR lto/99857
19070         * tree.c (free_lang_data_in_decl): Do not release body of
19071         declare_variant_alt.
19073 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
19075         * config/aarch64/aarch64.c (aarch64_option_restore): If the
19076         architecture was specified explicitly and the tuning wasn't,
19077         tune for the architecture rather than the configured default CPU.
19079 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
19081         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
19082         as the temporary register.
19084 2021-04-09  Martin Liska  <mliska@suse.cz>
19086         * doc/extend.texi: Move non-target attributes on the top level.
19088 2021-04-09  Martin Liska  <mliska@suse.cz>
19090         * doc/invoke.texi: Document minimum and maximum value of the
19091         argument for both supported compression algorithms.
19093 2021-04-08  David Edelsohn  <dje.gcc@gmail.com>
19095         * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
19096         TLS BSS before TLS data.
19097         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
19099 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
19101         * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
19103 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
19105         * match.pd: Extend vec_cond folds to handle shifts.
19107 2021-04-08  Maciej W. Rozycki  <macro@orcam.me.uk>
19109         * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
19110         peephole.
19112 2021-04-08  Alex Coplan  <alex.coplan@arm.com>
19114         PR target/99647
19115         * config/arm/iterators.md (MVE_vecs): New.
19116         (V_elem): Also handle V2DF.
19117         * config/arm/mve.md (*mve_mov<mode>): Rename to ...
19118         (*mve_vdup<mode>): ... this. Remove second alternative since
19119         vec_duplicate of const_int is not canonical RTL, and we don't
19120         want to match symbol_refs.
19121         (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
19123 2021-04-08  Xionghu Luo  <luoxhu@linux.ibm.com>
19125         * fold-const.c (fold_single_bit_test): Fix typo.
19126         * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
19127         instead.
19129 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
19131         PR tree-optimization/97513
19132         * tree-vect-slp.c (vect_add_slp_permutation): New function,
19133         split out from...
19134         (vectorizable_slp_permutation): ...here.  Detect cases in which
19135         all VEC_PERM_EXPRs are guaranteed to have the same stepped
19136         permute vector and only generate one permute vector for that case.
19137         Extend that case to handle variable-length vectors.
19139 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
19141         PR tree-optimization/99873
19142         * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
19143         (vect_build_slp_instance): Don't split store groups that could
19144         use IFN_STORE_LANES.
19146 2021-04-07  Jakub Jelinek  <jakub@redhat.com>
19148         PR target/99872
19149         * varasm.c (output_constant_pool_contents): Don't strip name encoding
19150         from XSTR (desc->sym, 0) or from label before passing those to
19151         ASM_OUTPUT_DEF.
19153 2021-04-07  Richard Biener  <rguenther@suse.de>
19155         PR tree-optimization/99954
19156         * tree-loop-distribution.c: Include tree-affine.h.
19157         (generate_memcpy_builtin): Try using tree-affine to prove
19158         non-overlap.
19159         (loop_distribution::classify_builtin_ldst): Always classify
19160         as PKIND_MEMMOVE.
19162 2021-04-07  Richard Biener  <rguenther@suse.de>
19164         PR tree-optimization/99947
19165         * tree-vect-loop.c (vectorizable_induction): Pre-allocate
19166         steps vector to avoid pushing elements from the reallocated
19167         vector.
19169 2021-04-07  Richard Biener  <rguenther@suse.de>
19171         * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
19172         * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
19173         printing...
19174         * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
19175         function.
19176         (debug_vn_reference_ops): New.
19178 2021-04-07  Bin Cheng  <bin.cheng@linux.alibaba.com>
19180         PR tree-optimization/98736
19181         * tree-loop-distribution.c
19182         * (loop_distribution::bb_top_order_init):
19183         Compute RPO with programing order preserved by calling function
19184         rev_post_order_and_mark_dfs_back_seme.
19186 2021-04-06  Vladimir N. Makarov  <vmakarov@redhat.com>
19188         PR target/99781
19189         * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
19190         * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
19191         functions.
19192         (process_bb_lives): Don't update biggest mode of hard reg for
19193         implicit in multi-register group.  Use the new functions for
19194         updating dead_set and unused_set by register notes.
19196 2021-04-06  Xianmiao Qu  <xianmiao_qu@c-sky.com>
19198         * config/csky/csky_pipeline_ck802.md : Use insn reservation name
19199         instead of *.
19201 2021-04-06  H.J. Lu  <hjl.tools@gmail.com>
19203         * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
19204         (skylake_memset): Likewise.
19205         (skylake_cost): Change CLEAR_RATIO to 17.
19206         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
19207         Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
19208         m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
19210 2021-04-06  Richard Biener  <rguenther@suse.de>
19212         PR tree-optimization/99880
19213         * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
19214         set vectorized defs of relevant PHIs.
19216 2021-04-06  Richard Biener  <rguenther@suse.de>
19218         PR tree-optimization/99924
19219         * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
19220         nodes w/o scalar stmts as visited.
19222 2021-04-06  Alex Coplan  <alex.coplan@arm.com>
19224         PR target/99748
19225         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
19226         PCS for [su]fix_optab.
19228 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
19230         * config/darwin.c (machopic_legitimize_pic_address): Check
19231         that the current pic register is one of the hard reg set
19232         before setting liveness.
19234 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
19236         * config/darwin.c (machopic_legitimize_pic_address): Fix
19237         whitespace, remove unused code.
19239 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
19241         PR tree-optimization/99882
19242         * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
19243         pointer type.
19245 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
19247         PR rtl-optimization/99863
19248         * dse.c (replace_read): Drop regs_live argument.  Instead of
19249         regs_live, use store_insn->fixed_regs_live if non-NULL,
19250         otherwise punt if insns sequence clobbers or sets any hard
19251         registers.
19253 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
19255         PR testsuite/98125
19256         * targhooks.h (default_print_patchable_function_entry_1): Declare.
19257         * targhooks.c (default_print_patchable_function_entry_1): New function,
19258         copied from default_print_patchable_function_entry with an added flags
19259         argument.
19260         (default_print_patchable_function_entry): Rewritten into a small
19261         wrapper around default_print_patchable_function_entry_1.
19262         * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
19263         Redefine.
19264         (rs6000_print_patchable_function_entry): New function.
19266 2021-04-02  Eric Botcazou  <ebotcazou@adacore.com>
19268         * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
19270 2021-04-01  Jason Merrill  <jason@redhat.com>
19272         PR c++/98481
19273         * common.opt: Document v15 and v16.
19275 2021-04-01  Richard Biener  <rguenther@suse.de>
19277         PR tree-optimization/99863
19278         * gimplify.c (gimplify_init_constructor): Recompute vector
19279         constructor flags.
19281 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
19283         * doc/extend.texi (symver attribute): Fix up syntax errors
19284         in the examples.
19286 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
19288         PR tree-optimization/96573
19289         * gimple-ssa-store-merging.c (init_symbolic_number): Handle
19290         also pointer types.
19292 2021-04-01  Richard Biener  <rguenther@suse.de>
19294         PR tree-optimization/99856
19295         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
19296         precision to vector element precision.
19298 2021-04-01  Martin Jambor  <mjambor@suse.cz>
19300         PR tree-optimization/97009
19301         * tree-sra.c (access_or_its_child_written): New function.
19302         (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
19303         test.
19305 2021-03-31  Jan Hubicka  <hubicka@ucw.cz>
19307         PR ipa/98265
19308         * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
19310 2021-03-31  Pat Haugen  <pthaugen@linux.ibm.com>
19312         PR target/99133
19313         * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
19314         xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
19315         xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
19316         * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
19317         mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
19318         mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
19319         Likewise.
19320         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
19321         * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
19322         (define_attr "prefixed"): Update initializer.
19324 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
19326         PR debug/99490
19327         * dwarf2out.c (debug_ranges_dwo_section): New variable.
19328         (DW_RANGES_IDX_SKELETON): Define.
19329         (struct dw_ranges): Add begin_entry and end_entry members.
19330         (DEBUG_DWO_RNGLISTS_SECTION): Define.
19331         (add_ranges_num): Adjust r initializer for addition of *_entry
19332         members.
19333         (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
19334         set idx to DW_RANGES_IDX_SKELETON.
19335         (use_distinct_base_address_for_range): New function.
19336         (index_rnglists): Don't set r->idx if it is equal to
19337         DW_RANGES_IDX_SKELETON.  Initialize r->begin_entry and
19338         r->end_entry for -gsplit-dwarf if those will be needed by
19339         output_rnglists.
19340         (output_rnglists): Add DWO argument.  If true, switch to
19341         debug_ranges_dwo_section rather than debug_ranges_section.
19342         Adjust l1/l2 label indexes.  Only output the offset table when
19343         dwo is true and don't include in there the skeleton range
19344         entry if present.  For -gsplit-dwarf, skip ranges that belong
19345         to the other rnglists section.  Change return type from void
19346         to bool and return true if there are any range entries for
19347         the other section.  For dwarf_split_debug_info use
19348         DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
19349         entries instead of DW_RLE_start_end, DW_RLE_start_length and
19350         DW_RLE_base_address.  Use use_distinct_base_address_for_range.
19351         (init_sections_and_labels): Initialize debug_ranges_dwo_section
19352         if -gsplit-dwarf and DWARF >= 5.  Adjust ranges_section_label
19353         and range_base_label indexes.
19354         (dwarf2out_finish): Call index_rnglists earlier before finalizing
19355         .debug_addr.  Never emit DW_AT_rnglists_base attribute.  For
19356         -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
19357         with different dwo arguments.
19358         (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
19360 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
19362         PR tree-optimization/98268
19363         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
19364         recompute_tree_invariant_for_addr_expr after successfully
19365         folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
19367 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
19369         PR tree-optimization/99726
19370         * tree-data-ref.c (create_intersect_range_checks_index): Bail
19371         out if there is more than one access function SCEV for the loop
19372         being versioned.
19374 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
19376         PR rtl-optimization/97141
19377         PR rtl-optimization/98726
19378         * emit-rtl.c (valid_for_const_vector_p): Return true for
19379         CONST_POLY_INT_P.
19380         * rtx-vector-builder.h (rtx_vector_builder::step): Return a
19381         poly_wide_int instead of a wide_int.
19382         (rtx_vector_builder::apply_set): Take a poly_wide_int instead
19383         of a wide_int.
19384         * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
19385         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
19386         false for CONST_VECTORs that cannot be forced to memory.
19387         * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
19388         is too complex to force to memory, build it up from individual
19389         elements instead.
19391 2021-03-31  Jan Hubicka  <jh@suse.cz>
19393         PR lto/99447
19394         * cgraph.c (cgraph_node::release_body): Fix overactive check.
19396 2021-03-31  Christophe Lyon  <christophe.lyon@linaro.org>
19398         PR target/99786
19399         * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
19400         for V4HI and V2SI.
19402 2021-03-31  H.J. Lu  <hjl.tools@gmail.com>
19404         * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
19405         For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
19406         to SImode.
19407         (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
19408         "rep movsb/stosb" only for known sizes.
19409         * config/i386/i386-options.c (processor_cost_table): Use Ice
19410         Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
19411         Rapids and Alder Lake.
19412         * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
19413         * config/i386/x86-tune-costs.h (icelake_memcpy): New.
19414         (icelake_memset): Likewise.
19415         (icelake_cost): Likewise.
19416         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
19417         New.
19419 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
19421         PR target/98119
19422         * config/aarch64/aarch64.c
19423         (aarch64_vectorize_preferred_vector_alignment): Query the size
19424         of the provided SVE vector; do not assume that all SVE vectors
19425         have the same size.
19427 2021-03-31  Jan Hubicka  <jh@suse.cz>
19429         PR lto/99447
19430         * cgraph.c (cgraph_node::release_body): Remove all callers and
19431         references.
19432         * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
19433         * cgraphunit.c (cgraph_node::expand): And here.
19435 2021-03-31  Martin Liska  <mliska@suse.cz>
19437         * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
19438         and one negated condition.
19440 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
19441             Richard Sandiford  <richard.sandiford@arm.com>
19443         PR target/99813
19444         * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
19445         constraints on operands[2] and similarly 0 and rk constraints
19446         on operands[1] corresponding to that.
19448 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
19450         PR bootstrap/98860
19451         * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
19452         linker doesn't support DWARF sections new in DWARF5.
19453         * config/i386/i386-options.c (ix86_option_override_internal): Default
19454         to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
19455         targets.
19456         * config.in: Regenerated.
19457         * configure: Regenerated.
19459 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19461         PR target/99820
19462         * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
19463         available issue_info before using it.
19465 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19467         PR target/99822
19468         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
19469         in operand 1.
19471 2021-03-30  Xionghu Luo  <luoxhu@linux.ibm.com>
19473         PR target/99718
19474         * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
19475         (altivec_lvsl_reg_<mode>): ... this.
19476         (altivec_lvsr_reg): Change to ...
19477         (altivec_lvsr_reg_<mode>): ... this.
19478         * config/rs6000/predicates.md (vec_set_index_operand): New.
19479         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19480         Enable 32bit variable vec_insert for all TARGET_VSX.
19481         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
19482         Enable 32bit variable vec_insert for p9 and above.
19483         (rs6000_expand_vector_set_var_p8): Rename to ...
19484         (rs6000_expand_vector_set_var_p7): ... this.
19485         (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
19486         position.
19487         * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
19488         * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
19489         gen_altivec_lvsr_reg_di.
19491 2021-03-30  H.J. Lu  <hjl.tools@gmail.com>
19493         PR target/99744
19494         * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
19495         (__rdtscp): Likewise.
19497 2021-03-30  Tamar Christina  <tamar.christina@arm.com>
19499         PR tree-optimization/99825
19500         * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
19501         Reject non-mult 2 lanes.
19503 2021-03-30  Richard Earnshaw  <rearnsha@arm.com>
19505         PR target/99773
19506         * config/arm/arm.c (arm_file_start): Fix emission of
19507         Tag_ABI_VFP_args attribute.
19509 2021-03-30  Richard Biener  <rguenther@suse.de>
19511         PR tree-optimization/99824
19512         * stor-layout.c (set_min_and_max_values_for_integral_type):
19513         Assert the precision is within the bounds of
19514         WIDE_INT_MAX_PRECISION.
19515         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
19516         the outermost component ref only to lower the access size
19517         and initialize that from the access type.
19519 2021-03-30  Richard Sandiford  <richard.sandiford@arm.com>
19521         PR target/98136
19522         * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
19523         CONST_INTs to aarch64_expand_mov_immediate when called after RA.
19525 2021-03-30  Mihailo Stojanovic  <mihailo.stojanovic@typhoon-hil.com>
19527         * config/aarch64/aarch64.md
19528         (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
19529         attribute to disambiguate between SIMD and FP variants of the
19530         instruction.
19532 2021-03-29  Jan Hubicka  <hubicka@ucw.cz>
19534         * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
19535         (analyze_ssa_name_flags): Fix typo in comment.
19537 2021-03-29  Alex Coplan  <alex.coplan@arm.com>
19539         PR target/99216
19540         * config/aarch64/aarch64-sve-builtins.cc
19541         (function_builder::add_function): Add placeholder_p argument, use
19542         placeholder decls if this is set.
19543         (function_builder::add_unique_function): Instead of conditionally adding
19544         direct overloads, unconditionally add either a direct overload or a
19545         placeholder.
19546         (function_builder::add_overloaded_function): Set placeholder_p if we're
19547         using C++ overloads. Use the obstack for string storage instead
19548         of relying on the tree nodes.
19549         (function_builder::add_overloaded_functions): Don't return early for
19550         m_direct_overloads: we need to add placeholders.
19551         * config/aarch64/aarch64-sve-builtins.h
19552         (function_builder::add_function): Add placeholder_p argument.
19554 2021-03-29  Richard Biener  <rguenther@suse.de>
19556         PR tree-optimization/99807
19557         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
19558         assert below VEC_PERM handling.
19560 2021-03-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19562         PR target/99037
19563         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
19564         aarch64_simd_or_scalar_imm_zero to match zeroes.  Remove pattern
19565         matching const_int 0.
19566         (move_lo_quad_internal_be_<mode>): Likewise.
19567         (move_lo_quad_<mode>): Update for the above.
19568         * config/aarch64/iterators.md (VQ_2E): Delete.
19570 2021-03-29  Jakub Jelinek  <jakub@redhat.com>
19572         PR tree-optimization/99777
19573         * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
19574         types other than scalar integral types.
19576 2021-03-28  David Edelsohn  <dje.gcc@gmail.com>
19578         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
19579         XCOFF TLS reloc decorations.
19581 2021-03-28  Gerald Pfeifer  <gerald@pfeifer.com>
19583         * doc/analyzer.texi (Analyzer Internals): Update link to
19584         "A Memory Model for Static Analysis of C Programs".
19586 2021-03-26  David Edelsohn  <dje.gcc@gmail.com>
19588         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
19589         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
19590         Declare.
19591         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
19592         (rs6000_special_round_type_align): Recursively check innermost first
19593         field.
19595 2021-03-26  Jakub Jelinek  <jakub@redhat.com>
19597         PR debug/99334
19598         * dwarf2out.h (struct dw_fde_node): Add rule18 member.
19599         * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
19600         assignment with drap_reg active, queue reg save for hfp with offset 0
19601         and flush queued reg saves.  When handling a push with rule18,
19602         defer queueing reg save for hfp and just assert the offset is 0.
19603         (scan_trace): Assert that fde->rule18 is false.
19605 2021-03-26  Vladimir Makarov  <vmakarov@redhat.com>
19607         PR target/99766
19608         * ira-costs.c (record_reg_classes): Put case with
19609         CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
19610         * ira.c (ira_setup_alts): Ditto.
19611         * lra-constraints.c (process_alt_operands): Ditto.
19612         * recog.c (asm_operand_ok): Ditto.
19613         * reload.c (find_reloads): Ditto.
19615 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19617         * config/aarch64/aarch64-protos.h
19618         (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
19619         (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
19620         * config/aarch64/aarch64.c (generic_addrcost_table): Update
19621         accordingly, using the same costs as for post_modify.
19622         (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
19623         (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
19624         (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
19625         (a64fx_addrcost_table): Likewise.
19626         (neoversev1_addrcost_table): New.
19627         (neoversev1_tunings): Use neoversev1_addrcost_table.
19628         (aarch64_address_cost): Use the new post_modify costs for CImode
19629         and XImode.
19631 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19633         * config/aarch64/aarch64.opt
19634         (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
19635         * doc/invoke.texi: Document it.
19636         * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
19637         (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
19638         (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
19639         (aarch64_vec_issue_info): New structures.
19640         (cpu_vector_cost): Write comments above the variables rather
19641         than to the side.
19642         (cpu_vector_cost::issue_info): New member variable.
19643         * config/aarch64/aarch64.c: Include gimple-pretty-print.h
19644         and tree-ssa-loop-niter.h.
19645         (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
19646         (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
19647         (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
19648         (thunderx3t110_vector_cost): Initialize issue_info to null.
19649         (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
19650         (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
19651         (neoversev1_vector_cost): Use them.
19652         (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
19653         (aarch64_vector_costs::saw_sve_only_op): New member variable.
19654         (aarch64_vector_costs::num_vector_iterations): Likewise.
19655         (aarch64_vector_costs::scalar_ops): Likewise.
19656         (aarch64_vector_costs::advsimd_ops): Likewise.
19657         (aarch64_vector_costs::sve_ops): Likewise.
19658         (aarch64_vector_costs::seen_loads): Likewise.
19659         (aarch64_simd_vec_costs_for_flags): New function.
19660         (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
19661         Count the number of predicate operations required by SVE WHILE
19662         instructions.
19663         (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
19664         (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
19665         (aarch64_count_ops): Likewise.
19666         (aarch64_add_stmt_cost): Record whether see an SVE operation
19667         that cannot currently be implementing using Advanced SIMD.
19668         Record issue information about the scalar, Advanced SIMD
19669         and (where relevant) SVE versions of a loop.
19670         (aarch64_vec_op_count::dump): New function.
19671         (aarch64_sve_op_count::dump): Likewise.
19672         (aarch64_estimate_min_cycles_per_iter): Likewise.
19673         (aarch64_adjust_body_cost): If issue information is available,
19674         try to compare the issue rates of the various loop implementations
19675         and increase or decrease the vector body cost accordingly.
19677 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19679         * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
19680         Assume a zero cost for induction phis.
19682 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19684         * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
19685         function.
19686         (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
19687         vector comparisons.
19689 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19691         * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
19692         New function.
19693         (aarch64_add_stmt_cost): Call it.
19695 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19697         * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
19698         New tuning parameter.
19699         * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
19700         (aarch64_estimated_sve_vq): New function.
19701         (aarch64_vector_costs::analyzed_vinfo): New member variable.
19702         (aarch64_vector_costs::is_loop): Likewise.
19703         (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
19704         (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
19705         (aarch64_record_potential_advsimd_unrolling): New function.
19706         (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
19707         (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
19708         aarch64_analyze_bb_vinfo on the first use of a costs structure.
19709         Detect whether we're vectorizing a loop for SVE that might be
19710         completely unrolled if it used Advanced SIMD instead.
19711         (aarch64_adjust_body_cost_for_latency): New function.
19712         (aarch64_finish_cost): Call it.
19714 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19716         * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
19717         (aarch64_init_cost): New function.
19718         (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
19719         the default unsigned[3].
19720         (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
19721         (TARGET_VECTORIZE_INIT_COST): Override.
19722         (TARGET_VECTORIZE_FINISH_COST): Likewise.
19723         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
19725 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19727         * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
19728         (neoversev1_sve_vector_cost): New cost structures.
19729         (neoversev1_vector_cost): Likewise.
19730         (neoversev1_tunings): Use them.  Enable use_new_vector_costs.
19732 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19734         * config/aarch64/aarch64-protos.h
19735         (sve_vec_cost::scatter_store_elt_cost): New member variable.
19736         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
19737         accordingly, taking the cost from the cost of a scalar_store.
19738         (a64fx_sve_vector_cost): Likewise.
19739         (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
19741 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19743         * config/aarch64/aarch64-protos.h
19744         (simd_vec_cost::store_elt_extra_cost): New member variable.
19745         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
19746         accordingly, using the vec_to_scalar cost for the new field.
19747         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
19748         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
19749         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
19750         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
19751         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
19752         (thunderx3t110_advsimd_vector_cost): Likewise.
19753         (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
19755 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19757         * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
19758         (simd_vec_cost::ld3_st3_permute_cost): New member variables.
19759         (simd_vec_cost::ld4_st4_permute_cost): Likewise.
19760         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
19761         accordingly, using zero for the new costs.
19762         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
19763         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
19764         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
19765         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
19766         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
19767         (thunderx3t110_advsimd_vector_cost): Likewise.
19768         (aarch64_ld234_st234_vectors): New function.
19769         (aarch64_adjust_stmt_cost): Likewise.
19770         (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
19771         the new vector costs.
19773 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19775         * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
19776         derived class of simd_vec_cost.  Add information about CLAST[AB]
19777         and FADDA instructions.
19778         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
19779         accordingly, using the vec_to_scalar costs for the new fields.
19780         (a64fx_sve_vector_cost): Likewise.
19781         (aarch64_reduc_type): New function.
19782         (aarch64_sve_in_loop_reduction_latency): Likewise.
19783         (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
19784         Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
19785         that occur in the loop body.
19786         (aarch64_add_stmt_cost): Update call accordingly.
19788 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
19790         * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
19791         New tuning flag.
19792         * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
19793         above the fields rather than to the right.
19794         (simd_vec_cost::reduc_i8_cost): New member variable.
19795         (simd_vec_cost::reduc_i16_cost): Likewise.
19796         (simd_vec_cost::reduc_i32_cost): Likewise.
19797         (simd_vec_cost::reduc_i64_cost): Likewise.
19798         (simd_vec_cost::reduc_f16_cost): Likewise.
19799         (simd_vec_cost::reduc_f32_cost): Likewise.
19800         (simd_vec_cost::reduc_f64_cost): Likewise.
19801         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
19802         accordingly, using the vec_to_scalar_cost for the new fields.
19803         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
19804         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
19805         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
19806         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
19807         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
19808         (thunderx3t110_advsimd_vector_cost): Likewise.
19809         (aarch64_use_new_vector_costs_p): New function.
19810         (aarch64_simd_vec_costs): New function, split out from...
19811         (aarch64_builtin_vectorization_cost): ...here.
19812         (aarch64_is_reduction): New function.
19813         (aarch64_detect_vector_stmt_subtype): Likewise.
19814         (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
19815         using the new vector costs.
19817 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
19819         PR ipa/99466
19820         * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
19821         TLS declarations as public.
19823 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
19825         * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
19826         * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
19827         * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
19828         * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
19829         * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
19830         * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
19831         * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
19832         * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
19833         * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
19835 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
19837         PR d/91595
19838         * config.gcc (*-*-cygwin*): Add winnt-d.o
19839         (*-*-mingw*): Likewise.
19840         * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
19841         * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
19842         * config/i386/t-cygming: Add winnt-d.o.
19843         * config/i386/winnt-d.c: New file.
19845 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
19847         * config/freebsd-d.c: Include memmodel.h.
19849 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
19851         PR d/99691
19852         * config.gcc (*-*-openbsd*): Add openbsd-d.o.
19853         * config/t-openbsd: Add openbsd-d.o.
19854         * config/openbsd-d.c: New file.
19856 2021-03-25  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
19858         PR tree-optimization/96974
19859         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
19860         with graceful exit.
19862 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
19864         Revert:
19865         2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
19867         PR target/98209
19868         PR target/99744
19869         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
19870         always_inline in system headers.
19872 2021-03-25  Kewen Lin  <linkw@linux.ibm.com>
19874         * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
19876 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
19878         PR c++/99565
19879         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
19880         * fold-const.c (operand_compare::operand_equal_p): Don't compare
19881         field offsets if OEP_ADDRESS_OF_SAME_FIELD.
19883 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
19885         PR target/98209
19886         PR target/99744
19887         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
19888         always_inline in system headers.
19890 2021-03-25  Richard Biener  <rguenther@suse.de>
19892         PR tree-optimization/99746
19893         * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
19894         the scalar stmt as patterned.  Instead set up required things
19895         manually.
19897 2021-03-25  Xionghu Luo  <luoxhu@linux.ibm.com>
19899         * config/rs6000/rs6000.c (power8_costs): Change l2 cache
19900         from 256 to 512.
19902 2021-03-24  Martin Liska  <mliska@suse.cz>
19904         PR target/99753
19905         * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
19906         error.
19907         * config/i386/i386-options.c (ix86_option_override_internal):
19908         Add run-time assert.
19910 2021-03-24  Martin Jambor  <mjambor@suse.cz>
19912         PR ipa/99122
19913         * ipa-cp.c (initialize_node_lattices): Mark as bottom all
19914         parameters with unknown type.
19915         (ipacp_value_safe_for_type): New function.
19916         (propagate_vals_across_arith_jfunc): Verify that the constant type
19917         can be used for a type of the formal parameter.
19918         (propagate_vals_across_ancestor): Likewise.
19919         (propagate_scalar_across_jump_function): Likewise.  Pass the type
19920         also to propagate_vals_across_ancestor.
19922 2021-03-24  Christophe Lyon  <christophe.lyon@linaro.org>
19924         PR target/99727
19925         * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
19926         constraint.
19927         (movmisalign<mode>_mve_load): Likewise.
19929 2021-03-24  Jakub Jelinek  <jakub@redhat.com>
19931         PR target/99724
19932         * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
19933         movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
19935 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
19937         * doc/sourcebuild.texi (sysconf): New effective target.
19939 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
19941         * config/i386/predicates.md (reg_or_const_vec_operand): New.
19942         * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
19943         the now *-prefixed insn_and_split, turn the splitter const vec
19944         into an input for the insn, making it an ignored immediate for
19945         non-split cases, and loaded into the scratch register
19946         otherwise.
19948 2021-03-23  Vladimir N. Makarov  <vmakarov@redhat.com>
19950         PR target/99581
19951         * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
19952         Use define_relaxed_memory_constraint for them.
19954 2021-03-23  Iain Sandoe  <iain@sandoe.co.uk>
19956         PR target/99733
19957         * config/host-darwin.c (darwin_gt_pch_use_address): Add a
19958         colon to the diagnostic message.
19960 2021-03-23  Ilya Leoshkevich  <iii@linux.ibm.com>
19962         * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
19963         set_info's uses.
19964         (try_fwprop_subst_note): Use set_info instead of insn_info.
19965         (try_fwprop_subst_pattern): Likewise.
19966         (try_fwprop_subst_notes): Likewise.
19967         (try_fwprop_subst): Likewise.
19968         (forward_propagate_subreg): Likewise.
19969         (forward_propagate_and_simplify): Likewise.
19970         (forward_propagate_into): Likewise.
19971         * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
19972         method.
19973         (set_info::single_nondebug_insn_use): Likewise.
19974         (set_info::single_phi_use): Likewise.
19975         * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
19976         method.
19977         (set_info::single_nondebug_insn_use): Likewise.
19978         (set_info::single_phi_use): Likewise.
19980 2021-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
19982         * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
19984 2021-03-23  Jakub Jelinek  <jakub@redhat.com>
19986         PR target/99540
19987         * config/aarch64/aarch64.c (aarch64_add_offset): Tell
19988         expand_mult to perform an unsigned rather than a signed
19989         multiplication.
19991 2021-03-23  H.J. Lu  <hjl.tools@gmail.com>
19993         PR target/99704
19994         * config/i386/cpuid.h (__cpuid): Add __volatile__.
19995         (__cpuid_count): Likewise.
19997 2021-03-23  Richard Biener  <rguenther@suse.de>
19999         PR tree-optimization/99721
20000         * tree-vect-slp.c (vect_slp_analyze_node_operations):
20001         Make sure we can schedule the node.
20003 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
20005         * config/riscv/riscv.c (riscv_subword): Take endianness into
20006         account when calculating the byte offset.
20008 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
20010         * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
20011         * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
20012         (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
20013         (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
20014         (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
20015         new predicate "subreg_lowpart_operator"
20017 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
20019         * config/riscv/riscv.c (riscv_swap_instruction): New function
20020         to byteswap an SImode rtx containing an instruction.
20021         (riscv_trampoline_init): Byteswap the generated instructions
20022         when needed.
20024 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
20026         * common/config/riscv/riscv-common.c
20027         (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
20028         * config.gcc (riscv32be-*, riscv64be-*): Set
20029         TARGET_BIG_ENDIAN_DEFAULT to 1.
20030         * config/riscv/elf.h (LINK_SPEC): Change -melf* value
20031         depending on default endianness.
20032         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20033         * config/riscv/linux.h (LINK_SPEC): Likewise.
20034         * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
20035         default endianness.
20036         * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
20038 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
20040         * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
20041         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20042         * config/riscv/linux.h (LINK_SPEC): Likewise.
20043         * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
20044         -mlittle-endian.
20045         (BYTES_BIG_ENDIAN): Handle big endian.
20046         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
20047         * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
20048         options.
20049         * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
20051 2021-03-23  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
20053         * regcprop.c (find_oldest_value_reg): Ask target whether
20054           different mode is fine for replacement register.
20056 2021-03-23  Aldy Hernandez  <aldyh@redhat.com>
20058         PR tree-optimization/99296
20059         * value-range.cc (irange::irange_set_1bit_anti_range): New.
20060         (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
20061         * value-range.h (irange::irange_set_1bit_anti_range): New.
20063 2021-03-22  Vladimir N. Makarov  <vmakarov@redhat.com>
20065         PR target/99581
20066         * config/aarch64/constraints.md (UtQ): Use
20067         define_relaxed_memory_constraint for it.
20068         * doc/md.texi (define_relaxed_memory_constraint): Describe it.
20069         * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
20070         * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
20071         (have_relaxed_memory_constraints): New static var.
20072         (relaxed_memory_start, relaxed_memory_end): Ditto.
20073         (add_constraint): Add arg is_relaxed_memory.  Check name for
20074         relaxed memory.  Set up is_relaxed_memory in constraint_data and
20075         have_relaxed_memory_constraints.  Adjust calls.
20076         (choose_enum_order): Process relaxed memory.
20077         (write_tm_preds_h): Ditto.
20078         (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
20079         * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
20080         * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
20081         * ira-lives.c (single_reg_class): Use
20082         insn_extra_relaxed_memory_constraint.
20083         * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
20084         * lra-constraints.c (valid_address_p): Use
20085         insn_extra_relaxed_memory_constraint instead of other memory
20086         constraints.
20087         (process_alt_operands): Process CT_RELAXED_MEMORY.
20088         (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
20089         * recog.c (asm_operand_ok, preprocess_constraints): Process
20090         CT_RELAXED_MEMORY.
20091         * reload.c (find_reloads): Ditto.
20092         * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
20093         * stmt.c (parse_input_constraint): Use
20094         insn_extra_relaxed_memory_constraint.
20096 2021-03-22  Segher Boessenkool  <segher@kernel.crashing.org>
20098         PR target/97926
20099         * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
20100         there are no NaNs.
20102 2021-03-22  Alex Coplan  <alex.coplan@arm.com>
20104         PR target/97252
20105         * config/arm/arm-protos.h (neon_make_constant): Add generate
20106         argument to guard emitting insns, default to true.
20107         * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
20108         CONST_VECTORs which neon_make_constant can't handle.
20109         (neon_vdup_constant): Add generate argument, avoid emitting
20110         insns if it's not set.
20111         (neon_make_constant): Plumb new generate argument through.
20112         * config/arm/constraints.md (Ui): New. Use it...
20113         * config/arm/mve.md (*mve_mov<mode>): ... here.
20114         * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
20115         synthesize constants.
20117 2021-03-22  Richard Biener  <rguenther@suse.de>
20119         * debug.h: Add deprecation warning.
20121 2021-03-22  Richard Biener  <rguenther@suse.de>
20123         PR tree-optimization/99694
20124         * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
20125         PHI result.
20127 2021-03-22  Kito Cheng  <kito.cheng@sifive.com>
20129         PR target/99702
20130         * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
20131         after type checking.
20133 2021-03-22  Jakub Jelinek  <jakub@redhat.com>
20135         PR debug/99562
20136         PR debug/66728
20137         * dwarf2out.c (get_full_len): Use get_precision rather than
20138         min_precision.
20139         (add_const_value_attribute): Make sure add_AT_wide argument has
20140         precision prec rather than some very wide one.
20142 2021-03-22  Kewen Lin  <linkw@linux.ibm.com>
20144         * config/rs6000/rs6000.md (*rotldi3_insert_sf,
20145         *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
20146         floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
20147         floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
20148         *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
20149         fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
20150         *round32<mode>2_fprs, *roundu32<mode>2_fprs,
20151         *fix_trunc<mode>si2_internal): Fix empty split condition.
20152         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
20153         vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
20154         *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
20155         *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
20157 2021-03-22  Xionghu Luo  <luoxhu@linux.ibm.com>
20159         PR target/98914
20160         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
20161         Convert idx to DImode.
20162         (rs6000_expand_vector_set_var_p8): Likewise.
20164 2021-03-21  Jakub Jelinek  <jakub@redhat.com>
20166         PR debug/99388
20167         * dwarf2out.c (insert_float): Change return type from void to
20168         unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
20169         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
20170         Adjust callers.
20172 2021-03-20  H.J. Lu  <hjl.tools@gmail.com>
20174         PR target/99679
20175         * config/i386/i386.c (construct_container): Check cfun != NULL
20176         before accessing silent_p.
20178 2021-03-20  Ahamed Husni  <ahamedhusni73@gmail.com>
20180         * asan.c: Fix typos in comments.
20182 2021-03-20  Vladimir N. Makarov  <vmakarov@redhat.com>
20184         PR rtl-optimization/99680
20185         * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
20186         (process_address_1): Check empty constraint before using
20187         CONSTRAINT_LEN.
20189 2021-03-19  Pat Haugen  <pthaugen@linux.ibm.com>
20191         * config/rs6000/rs6000.c (power10_cost): New.
20192         (rs6000_option_override_internal): Set Power10 costs.
20193         (rs6000_issue_rate): Set Power10 issue rate.
20194         * config/rs6000/power10.md: Rewrite for Power10.
20196 2021-03-19  Vladimir N. Makarov  <vmakarov@redhat.com>
20198         PR target/99663
20199         * lra-constraints.c (process_address_1): Don't use unknown
20200         constraint for address constraint.
20202 2021-03-19  Iain Sandoe  <iain@sandoe.co.uk>
20204         PR target/99661
20205         * config.gcc (powerpc-*-darwin8): Delete the reference to
20206         the now removed darwin8.h.
20208 2021-03-19  Olivier Hainque  <hainque@adacore.com>
20210         PR target/99660
20211         * config/vxworksae.h (VX_CPU_PREFIX): Define.
20213 2021-03-19  John David Anglin  <danglin@gcc.gnu.org>
20215         * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
20217 2021-03-19  Tamar Christina  <tamar.christina@arm.com>
20219         PR tree-optimization/99656
20220         * tree-vect-slp-patterns.c (linear_loads_p,
20221         complex_add_pattern::matches, is_eq_or_top,
20222         vect_validate_multiplication, complex_mul_pattern::matches,
20223         complex_fms_pattern::matches): Remove complex_perm_kinds_t.
20224         * tree-vectorizer.h: (complex_load_perm_t): Removed.
20225         (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
20226         complex_load_perm_t.
20228 2021-03-19  H.J. Lu  <hjl.tools@gmail.com>
20230         PR target/99652
20231         * config/i386/i386-options.c (ix86_init_machine_status): Set
20232         silent_p to true.
20233         * config/i386/i386.c (init_cumulative_args): Set silent_p to
20234         false.
20235         (construct_container): Return early for return and argument
20236         errors if silent_p is true.
20237         * config/i386/i386.h (machine_function): Add silent_p.
20239 2021-03-19  Jakub Jelinek  <jakub@redhat.com>
20241         PR target/99593
20242         * config/arm/constraints.md (Ds): New constraint.
20243         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
20244         constraint instead of w,Dm.
20246 2021-03-19  Andrew Stubbs  <ams@codesourcery.com>
20248         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
20249         in error message.
20251 2021-03-19  Eric Botcazou  <ebotcazou@adacore.com>
20253         PR middle-end/99641
20254         * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
20255         array type, do the computation of the current position in sizetype.
20257 2021-03-18  Vladimir N. Makarov  <vmakarov@redhat.com>
20259         PR target/99422
20260         * lra-constraints.c (process_address_1): Use lookup_constraint
20261         only for a single constraint.
20263 2021-03-18  Martin Sebor  <msebor@redhat.com>
20265         PR middle-end/99502
20266         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
20267         (inbounds_memaccess_p): ...to this.  Check the ending offset of
20268         the accessed member.
20270 2021-03-18  Andrew Stubbs  <ams@codesourcery.com>
20272         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
20273           %> quote markers to error messages.
20274         (gcn_goacc_validate_dims): Likewise.
20275         (gcn_conditional_register_usage): Remove exclaimation mark from error
20276         message.
20277         (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
20279 2021-03-18  Jan Hubicka  <hubicka@ucw.cz>
20281         * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
20282         integer divides1.
20284 2021-03-18  Sinan Lin  <sinan@isrc.iscas.ac.cn>
20285             Kito Cheng  <kito.cheng@sifive.com>
20287         * config/riscv/riscv.c (riscv_block_move_straight): Change type
20288         to unsigned HOST_WIDE_INT for parameter and local variable with
20289         HOST_WIDE_INT type.
20290         (riscv_adjust_block_mem): Ditto.
20291         (riscv_block_move_loop): Ditto.
20292         (riscv_expand_block_move): Ditto.
20294 2021-03-18  Nick Clifton  <nickc@redhat.com>
20296         * config/v850/v850.c (construct_restore_jr): Increase static
20297          buffer size.
20298         (construct_save_jarl): Likewise.
20299         * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
20301 2021-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20303         * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
20304         (aarch64_override_options_internal): Use it.
20305         (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
20306         tune_flags.
20308 2021-03-17  Sandra Loosemore  <sandra@codesourcery.com>
20310         * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
20311         error message format issues.
20312         (nios2_option_override): Likewise.
20313         (nios2_expand_fpu_builtin): Likewise.
20314         (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
20315         truncation warning.
20316         (nios2_expand_custom_builtin): More error message format fixes.
20317         (nios2_expand_rdwrctl_builtin): Likewise.
20318         (nios2_expand_rdprs_builtin): Likewise.
20319         (nios2_expand_eni_builtin): Likewise.
20320         (nios2_expand_builtin): Likewise.
20321         (nios2_register_custom_code): Likewise.
20322         (nios2_valid_target_attribute_rec): Likewise.
20323         (nios2_add_insn_asm): Fix uninitialized variable warning.
20325 2021-03-17  Jan Hubicka  <jh@suse.cz>
20327         * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
20328         of gather to match reality.
20329         * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
20331 2021-03-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20333         * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
20334         to compare against CC_REG rather than NE.
20336 2021-03-17  H.J. Lu  <hjl.tools@gmail.com>
20338         PR target/99504
20339         * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
20340         inline assembly statements.
20341         (ix86_print_operand): Update 'P' handling for -fno-plt.
20343 2021-03-17  Tamar Christina  <tamar.christina@arm.com>
20345         PR target/99542
20346         * config/aarch64/aarch64.c
20347         (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
20349 2021-03-16  Segher Boessenkool  <segher@kernel.crashing.org>
20351         PR target/98092
20352         * config/rs6000/predicates.md (branch_comparison_operator): Allow
20353         ordered and unordered for CCFPmode, if flag_finite_math_only.
20355 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
20357         PR target/99600
20358         * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
20359         rather than ASHIFT.
20360         * config/i386/i386.md (mult by 1248 into ashift): New splitter.
20362 2021-03-16  Martin Liska  <mliska@suse.cz>
20364         PR target/99592
20365         * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
20366         cl_optimization_compare function.
20368 2021-03-16  Ilya Leoshkevich  <iii@linux.ibm.com>
20370         * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
20371         as "v".
20373 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
20375         PR target/99563
20376         * config/i386/i386.h (struct machine_function): Add
20377         has_explicit_vzeroupper bitfield.
20378         * config/i386/i386-expand.c (ix86_expand_builtin): Set
20379         cfun->machine->has_explicit_vzeroupper when expanding
20380         IX86_BUILTIN_VZEROUPPER.
20381         * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
20382         Do the mode switching only when TARGET_VZEROUPPER, expensive
20383         optimizations turned on and not optimizing for size.
20384         (pass_insert_vzeroupper::gate): Enable even when
20385         cfun->machine->has_explicit_vzeroupper is set.
20387 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
20389         PR target/99542
20390         * config/aarch64/aarch64.c
20391         (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
20392         definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
20393         instead of DECL_ARGUMENTS.  Ignore types for uniform arguments.
20395 2021-03-15  Richard Biener  <rguenther@suse.de>
20397         PR tree-optimization/98834
20398         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
20399         subsetting by truncating the access size.
20401 2021-03-15  Jan Hubicka  <hubicka@ucw.cz>
20403         * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
20404         * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
20405         of znver2_cost.
20407 2021-03-15  Martin Liska  <mliska@suse.cz>
20409         * spellcheck.c: Add missing comma in initialization.
20411 2021-03-14  Uroš Bizjak  <ubizjak@gmail.com>
20413         * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
20414         alternative 2 and alternative 1 with alternative 3 using
20415         YW register constraint.
20416         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
20417         using YW register constraint.
20418         (*vec_extractv16qi_zext): Ditto.
20419         (*vec_extractv4si): Merge alternatives 4 and 5
20420         using Yw register constraint.
20421         (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
20423 2021-03-13  Martin Sebor  <msebor@redhat.com>
20425         PR tree-optimization/99489
20426         * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
20427         is not a call statement.
20429 2021-03-13  Jakub Jelinek  <jakub@redhat.com>
20431         PR tree-optimization/99544
20432         * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
20433         if for vector types multiplication can't be done in type's mode.
20435 2021-03-12  Eric Botcazou  <ebotcazou@adacore.com>
20437         PR target/99422
20438         * config/sparc/constraints.md (w): Rename to...
20439         (W): ... this and ditch previous implementation.
20440         * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
20441         (*movdf_insn_sp64): Likewise.
20442         (*mov<VM64:mode>_insn_sp64): Likewise.
20443         * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
20444         w with W.
20445         (atomic_compare_and_swap_leon3_1): Likewise.
20446         (*atomic_compare_and_swapdi_v8plus): Likewise.
20447         * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
20448         architecture and add missing address validity check during LRA.
20450 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
20452         PR fortran/98858
20453         * gimplify.c (omp_add_variable): Handle NULL_TREE as size
20454         occuring for assumed-size arrays in use_device_{ptr,addr}.
20456 2021-03-12  Jakub Jelinek  <jakub@redhat.com>
20458         PR target/99321
20459         * config/i386/constraints.md (YW): New internal constraint.
20460         * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
20461         (*<sse2_avx2>_<insn><mode>3<mask_name>,
20462         *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
20463         *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
20464         constraints.
20465         (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
20466         (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
20467         avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
20468         into one, use Yw instead of former x,v.
20469         (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
20470         the last alternative.
20471         (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
20472         <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
20473         *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
20474         <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
20475         into one, use <v_Yw> instead of former x,v.
20476         (avx2_interleave_highv32qi<mask_name>,
20477         vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
20478         constraints.  Add && <mask_avx512bw_condition> to condition.
20479         (avx2_interleave_lowv32qi<mask_name>,
20480         vec_interleave_lowv16qi<mask_name>,
20481         avx2_interleave_highv16hi<mask_name>,
20482         vec_interleave_highv8hi<mask_name>,
20483         avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
20484         avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
20485         avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
20486         avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
20487         *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
20488         Yw instead of v in constraints.
20489         * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
20490         (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
20491         instead of Yv in constraints.
20492         (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
20493         *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
20494         *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
20495         mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
20496         *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
20497         constraints.
20498         (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
20499         *mmx_pextrb_zext): Use YW instead of Yv in constraints.
20500         (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
20501         (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
20502         two, one with just x, another isa avx512vl with v.
20504 2021-03-12  Martin Liska  <mliska@suse.cz>
20506         * doc/invoke.texi: Add missing param documentation.
20508 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
20510         PR analyzer/96374
20511         * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
20512         analyzer/trimmed-graph.o.
20513         * doc/analyzer.texi (Analyzer Paths): Rewrite description of
20514         feasibility checking to reflect new implementation.
20515         * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
20516         option.
20517         * shortest-paths.h (shortest_paths::get_shortest_distance): New.
20519 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
20521         * digraph.cc (selftest::test_shortest_paths): Update
20522         shortest_paths init for new param.  Add test of
20523         SPS_TO_GIVEN_TARGET.
20524         * shortest-paths.h (enum shortest_path_sense): New.
20525         (shortest_paths::shortest_paths): Add "sense" param.
20526         Update for renamings.  Generalize to use "sense" param.
20527         (shortest_paths::get_shortest_path): Rename param.
20528         (shortest_paths::m_sense): New field.
20529         (shortest_paths::m_prev): Rename...
20530         (shortest_paths::m_best_edge): ...to this.
20531         (shortest_paths::get_shortest_path): Update for renamings.
20532         Conditionalize flipping of path on sense of traversal.
20534 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
20536         * digraph.cc (selftest::test_shortest_paths): Add test coverage
20537         for paths from B and C.
20538         * shortest-paths.h (shortest_paths::shortest_paths): Handle
20539         unreachable nodes, rather than asserting.
20541 2021-03-11  David Edelsohn  <dje.gcc@gmail.com>
20543         PR target/99094
20544         * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
20545         xcoff_tbss_section_name.
20546         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
20547         * xcoffout.c (xcoff_tbss_section_name): Delete.
20548         * xcoffout.h (xcoff_tbss_section_name): Delete.
20550 2021-03-11  Richard Biener  <rguenther@suse.de>
20552         PR tree-optimization/99523
20553         * tree-cfg.c (dump_function_to_file): Dump SSA names
20554         w/o identifier to the decls section as well, not only those
20555         without a VAR_DECL.
20557 2021-03-11  Jakub Jelinek  <jakub@redhat.com>
20559         PR ipa/99517
20560         * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
20561         function calls with lhs fail if the lhs don't have compatible types.
20563 2021-03-11  Hans-Peter Nilsson  <hp@axis.com>
20565         * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
20566         Change FRAME_POINTER_REGNUM to correspond to a new faked
20567         register faked_fp, part of GENNONACR_REGS like faked_ap.
20568         (CRIS_FAKED_REGS_CONTENTS): New helper macro.
20569         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
20570         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
20571         (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
20572         * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
20573         register.
20574         (CRIS_REAL_FP_REGNUM): New constant.
20575         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
20576         for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
20577         (cris_initial_elimination_offset): Handle elimination changes
20578         to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
20579         and add one from FRAME_POINTER_REGNUM to
20580         HARD_FRAME_POINTER_REGNUM.
20581         (cris_expand_prologue, cris_expand_epilogue): Emit code for
20582         hard_frame_pointer_rtx instead of frame_pointer_rtx.
20584 2021-03-10  David Edelsohn  <dje.gcc@gmail.com>
20586         PR target/99492
20587         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
20588         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
20590 2021-03-10  Vladimir N. Makarov  <vmakarov@redhat.com>
20592         PR target/99422
20593         * lra-constraints.c (process_address_1): Don't check unknown
20594         constraint, use X for empty constraint.
20596 2021-03-10  Alex Coplan  <alex.coplan@arm.com>
20598         * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
20599         Fix typo in comment describing "is_ha" argument.
20601 2021-03-10  John David Anglin  <danglin@gcc.gnu.org>
20603         * doc/sourcebuild.texi: Document LRA target selector.
20605 2021-03-10  David Malcolm  <dmalcolm@redhat.com>
20607         * doc/ux.texi: Add subsection contrasting interactive versus
20608         batch usage of GCC.
20610 2021-03-10  Joel Hutton  <joel.hutton@arm.com>
20612         PR target/99102
20613         * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
20614         check condition.
20615         (vectorizable_load): Fix gather load mask check condition.
20617 2021-03-10  Richard Biener  <rguenther@suse.de>
20619         PR tree-optimization/99510
20620         * tree.c (check_aligned_type): Check that the candidate
20621         has TYPE_USER_ALIGN set instead of matching with the
20622         original type.
20624 2021-03-10  Eric Botcazou  <ebotcazou@adacore.com>
20626         * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
20627         float and vector integer modes only if the mode is not larger.
20629 2021-03-10  Hans-Peter Nilsson  <hp@axis.com>
20631         * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
20633 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
20635         * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
20636         constraints > 9.
20637         * ira-lives.c (single_reg_class): Ditto.
20639 2021-03-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20641         * config.gcc (aarch64-*-rtems*): Include general rtems.h after
20642         the architecture-specific rtems.h.
20643         (aarch64-*-rtems*): Likewise.
20644         (arm*-*-rtems*): Likewise.
20645         (epiphany-*-rtems*): Likewise.
20646         (riscv*-*-rtems*): Likewise.
20648 2021-03-09  Jakub Jelinek  <jakub@redhat.com>
20650         PR tree-optimization/99305
20651         * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
20652         before integer_all_onesp instead of vice versa.
20654 2021-03-09  Richard Earnshaw  <rearnsha@arm.com>
20656         * common/config/arm/arm-common.c (arm_config_default): Change type
20657         of 'i' to unsigned.
20659 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
20661         PR target/99454
20662         * lra-constraints.c (process_address_1): Process constraint 'g'
20663         separately and digital constraints containing more one digit.
20665 2021-03-09  Nick Clifton  <nickc@redhat.com>
20667         * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
20668         (DWARF"_DEBUGGING_INFO): Define.
20670 2021-03-09  Eric Botcazou  <ebotcazou@adacore.com>
20672         PR c++/90448
20673         * calls.c (initialize_argument_information): When the argument
20674         is passed by reference, do not make a copy in a thunk only if
20675         the argument is already in memory.  Remove redundant test for
20676         the case of callee copy.
20678 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
20680         PR target/99454
20681         * lra-constraints.c (process_address_1): Process 0..9 constraints
20682         in process_address_1.
20684 2021-03-09  Andreas Krebbel  <krebbel@linux.ibm.com>
20686         * config/s390/s390.c (struct s390_processor processor_table):
20687         Binutils name string must not be empty.
20689 2021-03-09  Claudiu Zissulescu  <claziss@synopsys.com>
20691         * config/arc/arc.c (arc_attr_type): Remove function.
20693 2021-03-09  Martin Liska  <mliska@suse.cz>
20695         PR target/99464
20696         * config/i386/i386-options.c (ix86_option_override_internal):
20697         Set isa_flags for OPTS argument and not for the global
20698         global_options.
20700 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
20702         * config/rs6000/predicates.md (ds_form_mem_operand): Check
20703         in correct code.
20705 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
20707         PR target/99070
20708         * config/rs6000/predicates.md (ds_form_mem_operand) New
20709         predicate.
20710         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
20711         ds_form_mem_operand in ld/lwa patterns.
20712         * config/rs6000/fusion.md: Regenerate file.
20714 2021-03-08  Martin Sebor  <msebor@redhat.com>
20716         PR middle-end/98266
20717         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
20718         (array_bounds_checker::check_array_bounds): Call it.
20720 2021-03-08  Martin Sebor  <msebor@redhat.com>
20722         PR middle-end/97631
20723         * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
20724         (handle_builtin_stxncpy_strncat): Rename locals.  Determine
20725         destination size from allocation calls.  Issue a more appropriate
20726         kind of warning.
20727         (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
20728         (handle_builtin_memset): Same.
20730 2021-03-08  Peter Bergner  <bergner@linux.ibm.com>
20732         PR target/98959
20733         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
20734         to ensure we do not have an Altivec style address.
20735         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
20736         an Altivec style address.
20737         (*vsx_le_perm_store_<mode>): Likewise.
20738         (splitters after *vsx_le_perm_store_<mode>): Likewise.
20739         (vsx_load_<mode>): Disable special expander if passed an Altivec
20740         style address.
20741         (vsx_store_<mode>): Likewise.
20743 2021-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20745         PR target/99437
20746         * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
20747         (aarch64_simd_shift_imm_vec_hi): Likewise.
20748         (aarch64_simd_shift_imm_vec_si): Likewise.
20749         (aarch64_simd_shift_imm_vec_di): Likewise.
20750         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
20751         predicate from above.
20752         (aarch64_shrn<mode>_insn_be): Likewise.
20753         (aarch64_rshrn<mode>_insn_le): Likewise.
20754         (aarch64_rshrn<mode>_insn_be): Likewise.
20755         (aarch64_shrn2<mode>_insn_le): Likewise.
20756         (aarch64_shrn2<mode>_insn_be): Likewise.
20757         (aarch64_rshrn2<mode>_insn_le): Likewise.
20758         (aarch64_rshrn2<mode>_insn_be): Likewise.
20760 2021-03-08  Vladimir N. Makarov  <vmakarov@redhat.com>
20762         PR target/99422
20763         * lra-constraints.c (skip_contraint_modifiers): New function.
20764         (process_address_1): Use it before lookup_constraint call.
20766 2021-03-08  Martin Liska  <mliska@suse.cz>
20768         PR target/99463
20769         * config/i386/i386-options.c (ix86_option_override_internal):
20770         Enable UINTR and HRESET for -march that supports it.
20772 2021-03-08  Ilya Leoshkevich  <iii@linux.ibm.com>
20774         * config/s390/s390.c (f_constraint_p): New function.
20775         (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
20776         (TARGET_MD_ASM_ADJUST): Likewise.
20778 2021-03-08  Tobias Burnus  <tobias@codesourcery.com>
20780         PR fortran/97927
20781         * tree-nested.c (convert_local_reference_stmt): Avoid calling
20782         lookup_field_for_decl for Fortran module (= namespace context).
20784 2021-03-08  Andreas Krebbel  <krebbel@linux.ibm.com>
20786         * config/s390/s390.c (s390_expand_vec_compare): Implement <0
20787         comparison with arithmetic right shift.
20788         (s390_expand_vcond): No need for a force_reg anymore.
20789         s390_vec_compare will do it.
20790         * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
20791         immediate operands.
20793 2021-03-07  Jakub Jelinek  <jakub@redhat.com>
20795         PR target/99321
20796         * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
20797         but TARGET_AVX512BW or TARGET_AVX512VL is not set.  Adjust description
20798         and comment.
20799         * config/i386/sse.md (v_Yw): New define_mode_attr.
20800         (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
20801         *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
20802         in constraints.
20803         * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
20804         xYw in constraints.
20806 2021-03-06  Julian Brown  <julian@codesourcery.com>
20808         * tree-pretty-print.c (dump_generic_node): Emit non-generic
20809         address space info for aggregates.
20811 2021-03-06  Hans-Peter Nilsson  <hp@axis.com>
20813         * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
20815 2021-03-05  Jakub Jelinek  <jakub@redhat.com>
20817         PR middle-end/99322
20818         * tree-cfg.c (bb_to_omp_idx): New variable.
20819         (execute_build_cfg): Release the bb_to_omp_idx vector after
20820         cleanup_tree_cfg returns.
20821         (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
20822         for bb_to_omp_idx being a vec<int> instead of pointer to array
20823         of ints.
20824         (make_edges): Remove bb_to_omp_idx local variable, don't pass
20825         it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
20826         vec<int> instead of pointer to array of ints and don't free/release
20827         it at the end.
20828         (remove_bb): When removing a bb and placing forced label somewhere
20829         else, ensure it is put into the same OpenMP region during cfg
20830         pass if possible or to entry successor as fallback.  Unregister
20831         bb from bb_to_omp_idx.
20833 2021-03-05  Vladimir N. Makarov  <vmakarov@redhat.com>
20835         PR target/99378
20836         * lra-constraints.c (process_address_1): Skip decomposing address
20837         for asm insn operand with unknown constraint.
20839 2021-03-05  Martin Jambor  <mjambor@suse.cz>
20841         PR ipa/98078
20842         * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
20843         corresponding speculative edges if we are about to resolve
20844         sepculation.  Make edge direct (and so resolve speculations) before
20845         removing it from call_site_hash.
20846         (cgraph_edge::make_direct): Relax the initial assert to allow calling
20847         the function on speculative direct edges.
20849 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
20851         PR rtl-optimization/99376
20852         * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
20853         of low-order zero bits is too large, set the result to 0 directly.
20855 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
20857         PR middle-end/93235
20858         * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
20859         SUBREG and a SUBREG to op_mode can't be created.
20861 2021-03-04  Alex Coplan  <alex.coplan@arm.com>
20863         PR target/99381
20864         * config/aarch64/aarch64-sve-builtins.cc
20865         (function_resolver::require_vector_type): Handle error_mark_node.
20867 2021-03-04  Ilya Leoshkevich  <iii@linux.ibm.com>
20869         * cfgexpand.c (expand_asm_loc): Pass new parameter.
20870         (expand_asm_stmt): Likewise.
20871         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
20872         parameter.
20873         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
20874         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
20875         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
20876         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
20877         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
20878         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
20879         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
20880         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
20881         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
20882         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
20883         * doc/tm.texi (md_asm_adjust): Likewise.
20884         * target.def (md_asm_adjust): Likewise.
20886 2021-03-04  Richard Biener  <rguenther@suse.de>
20888         PR middle-end/97855
20889         * tree-pretty-print.c: Poison pp_printf.
20890         (dump_decl_name): Avoid use of pp_printf.
20891         (dump_block_node): Likewise.
20892         (dump_generic_node): Likewise.
20894 2021-03-04  Martin Sebor  <msebor@redhat.com>
20896         PR middle-end/96963
20897         PR middle-end/94655
20898         * builtins.c (handle_array_ref): New helper.
20899         (handle_mem_ref): New helper.
20900         (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
20901         into new helper functions.  Correct a workaround for vectorized
20902         assignments.
20904 2021-03-03  Pat Haugen  <pthaugen@linux.ibm.com>
20906         * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
20907         floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
20908         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
20909         *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
20910         attribute for Power10.
20911         * config/rs6000/mma.md (*movoo): Likewise.
20912         * config/rs6000/rs6000.md (define_attr "size"): Add 256.
20913         (define_mode_attr bits): Add DD/TD modes.
20914         * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
20915         store_conditionalpti): Update size attribute for Power10.
20917 2021-03-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20919         PR bootstrap/92002
20920         * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
20921         -Wuninitialized, -Wmaybe-uninitialized.
20922         (wide-int.o-warn): Likewise.
20924 2021-03-03  Richard Earnshaw  <rearnsha@arm.com>
20926         * common/config/arm/arm-common.c: Include configargs.h.
20927         (arm_config_default): New function.
20928         (arm_target_mode): Renamed from arm_target_thumb_only.  Handle
20929         processors that do not support Thumb.  Take into account the
20930         --with-mode configuration setting for selecting the default.
20931         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
20932         (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
20934 2021-03-03  Martin Liska  <mliska@suse.cz>
20936         PR gcov-profile/97461
20937         * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
20939 2021-03-03  Eric Botcazou  <ebotcazou@adacore.com>
20941         PR target/99234
20942         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
20943         point back the hard frame pointer to its default location when the
20944         frame is larger than SEH_MAX_FRAME_SIZE.
20946 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
20948         PR target/99321
20949         * config/i386/predicates.md (logic_operator): New define_predicate.
20950         * config/i386/i386.md (mov + mem using comm arith peephole2):
20951         Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
20952         and the inner mode is [QH]Imode.
20954 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
20956         PR debug/99090
20957         * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
20958         (new_loc_list): Clear end_entry.
20959         (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
20960         if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx.  Fix comment
20961         typo.
20962         (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
20963         initialize also end_entry.
20965 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
20967         PR target/99085
20968         * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
20969         partitions, if in non-layout mode after reorder_blocks also move
20970         affected blocks to ensure a single partition transition.
20972 2021-03-03  Jason Merrill  <jason@redhat.com>
20974         PR c++/96078
20975         * cgraphunit.c (process_function_and_variable_attributes): Don't
20976         warn about flatten on an alias if the target also has it.
20977         * cgraph.h (symtab_node::get_alias_target_tree): New.
20979 2021-03-02  David Edelsohn  <dje.gcc@gmail.com>
20981         * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
20982         period to symbol name.
20983         (tls_get_addr_internal<mode>): Same.
20985 2021-03-02  David Malcolm  <dmalcolm@redhat.com>
20987         PR c/99323
20988         * diagnostic-show-locus.c
20989         (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
20990         column 0.
20992 2021-03-02  Martin Sebor  <msebor@redhat.com>
20994         PR middle-end/99276
20995         * builtins.c (warn_for_access): Remove stray warning text.
20997 2021-03-02  Martin Sebor  <msebor@redhat.com>
20999         PR middle-end/99295
21000         * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
21001         property.
21003 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
21005         PR debug/99319
21006         * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
21007         -gdwarf-5 -gstrict-dwarf.  For -gsplit-dwarf -gdwarf-5 use
21008         DW_MACRO_*_strx instead of DW_MACRO_*_strp.  Handle
21009         DW_MACRO_define_strx and DW_MACRO_undef_strx.
21010         (save_macinfo_strings): Use DW_MACRO_*_str* even with
21011         -gdwarf-5 -gstrict-dwarf.  Handle DW_MACRO_define_strx and
21012         DW_MACRO_undef_strx.
21014 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
21016         * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
21017         builtin signature.
21018         (BT_FN_V8HI_V8HI_UINT): Likewise.
21019         (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
21020         * config/s390/s390-builtins.def (B_NNPA): New macro definition.
21021         (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
21022         New builtin definitions.
21023         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
21024         vector extension version.
21025         * config/s390/s390.c (s390_expand_builtin): Check if builtins are
21026         available with current -march level.
21027         * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
21028         (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
21029         (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
21030         * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
21031         (vec_extend_to_fp32_lo): Likewise.
21032         (vec_round_from_fp32): Likewise.
21033         (vec_convert_to_fp16): Likewise.
21034         (vec_convert_from_fp16): Likewise.
21035         * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
21036         (vclfnls_v8hi): Likewise.
21037         (vcrnfs_v8hi): Likewise.
21038         (vcfn_v8hi): Likewise.
21039         (vcnf_v8hi): Likewise.
21041 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
21043         * common/config/s390/s390-common.c (processor_flags_table): New entry.
21044         * config.gcc: Enable arch14 for --with-arch and --with-tune.
21045         * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
21046         arch14 for unknown CPU models.
21047         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
21048         * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
21049         (s390_get_sched_attrmask): Likewise.
21050         (s390_get_unit_mask): Likewise.
21051         * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
21052         (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
21053         (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
21054         (TARGET_NNPA_P): New macro definitions.
21055         * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
21056         * config/s390/s390.opt: Add PROCESSOR_ARCH14.
21058 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
21060         PR middle-end/95757
21061         * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
21062         condition.  Call register_edge_assert_for_1 for == 0, != 0, == 1 and
21063         != 1 comparisons if name is lhs of a comparison.
21065 2021-03-01  Iain Sandoe  <iain@sandoe.co.uk>
21067         PR target/44107
21068         PR target/48097
21069         * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
21070         * config/darwin.c (darwin_should_restore_cfa_state): New.
21071         * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
21072         * doc/tm.texi: Regenerated.
21073         * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
21074         * dwarf2cfi.c (connect_traces): If the target requests, restore
21075         the CFA expression after a DW_CFA_restore.
21076         * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
21078 2021-03-01  Martin Liska  <mliska@suse.cz>
21080         PR target/99313
21081         * optc-save-gen.awk: Add 4 more exceptions.
21083 2021-03-01  Nathan Sidwell  <nathan@acm.org>
21085         PR c++/99294
21086         * tree.h (TYPE_ALIGN_RAW): New accessor.
21087         (TYPE_ALIGN): Use it.
21089 2021-03-01  Jan Hubicka  <jh@suse.cz>
21091         PR ipa/98338
21092         * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
21094 2021-03-01  Eric Botcazou  <ebotcazou@adacore.com>
21096         PR target/99234
21097         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
21098         point the hard frame pointer to the SSE register save area instead
21099         of the general register save area.  Perform only minimal adjustment
21100         for small frames if it is initially not correctly aligned.
21101         (ix86_expand_prologue): Remove early saves for a SEH target.
21102         * config/i386/winnt.c (struct seh_frame_state): Document constraint.
21104 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
21106         PR c/99304
21107         * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
21108         typo - referneced -> referenced.
21109         * tree.c (component_ref_size): Fix comment typo -
21110         refernce -> reference.
21111         * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
21112         traling -> trailing.
21113         (aliasing_component_refs_p): Fix comment typos -
21114         refernce -> reference and refernece -> reference and
21115         traling -> trailing.
21116         (nonoverlapping_refs_since_match_p): Fix comment typo -
21117         referneces -> references.
21118         * doc/invoke.texi (--param modref-max-bases): Fix a typo -
21119         referneces -> references.
21121 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
21123         * config/host-darwin.c (darwin_gt_pch_use_address): Modify
21124         diagnostic message to avoid use of a contraction and format
21125         warning.
21127 2021-02-27  Jakub Jelinek  <jakub@redhat.com>
21129         PR other/99288
21130         * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
21131         HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
21132         * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
21133         HOST_WIDE_INT_PRINT_DEC in inform format string.  Fix comment
21134         typos.
21136 2021-02-26  Richard Biener  <rguenther@suse.de>
21138         PR middle-end/99281
21139         * expr.c (store_field): For calls with return-slot optimization
21140         and addressable return type expand the store directly.
21142 2021-02-26  Richard Biener  <rguenther@suse.de>
21144         PR c/99275
21145         * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
21147 2021-02-26  Peter Bergner  <bergner@linux.ibm.com>
21149         PR target/99279
21150         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
21151         with an "if" test.
21153 2021-02-26  Aaron Sawdey  <acsawdey@linux.ibm.com>
21155         * config.gcc: Add rs6000-pcrel-opt.o.
21156         * config/rs6000/rs6000-pcrel-opt.c: New file.
21157         * config/rs6000/pcrel-opt.md: New file.
21158         * config/rs6000/predicates.md: Add d_form_memory predicate.
21159         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
21160         * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
21161         * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
21162         pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
21163         and make_pass_pcrel_opt().
21164         * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
21165         (rs6000_option_override_internal): Add pcrel-opt.
21166         (rs6000_delegitimize_address): Support pcrel-opt.
21167         (rs6000_opt_masks): Add pcrel-opt.
21168         (pcrel_opt_valid_mem_p): New function.
21169         (reg_to_non_prefixed): Make global.
21170         (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
21171         (output_pcrel_opt_reloc): New function.
21172         * config/rs6000/rs6000.md (loads_extern_addr): New attr.
21173         (pcrel_extern_addr): Set loads_extern_addr.
21174         Add include for pcrel-opt.md.
21175         * config/rs6000/rs6000.opt: Add -mpcrel-opt.
21176         * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
21177         pcrel-opt.md.
21179 2021-02-26  YunQiang Su  <yunqiang.su@cipunited.com>
21181         PR target/98996
21182         * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
21183         If TARGET_64BIT and dest is SUBREG, we check the width, if it
21184         equal to SImode, we use SImode operation, just like what we are
21185         doing for REG one.
21187 2021-02-26  Marek Polacek  <polacek@redhat.com>
21189         * builtins.c (warn_for_access): Fix typos.
21191 2021-02-25  Iain Sandoe  <iain@sandoe.co.uk>
21193         * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
21194         mark in front of the immediate quantity.
21195         (<optab>_rolsi3_uxtw): Likewise.
21197 2021-02-25  Richard Earnshaw  <rearnsha@arm.com>
21199         PR target/99271
21200         * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
21201         (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
21202         (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
21203         address and disable when the FPCXT is not available.
21204         (nonsecure_call_value_reg_thumb2): Likewise.
21206 2021-02-25  Nathan Sidwell  <nathan@acm.org>
21208         PR c++/99166
21209         * doc/invoke.texi (flang-info-module-cmi): Renamed option.
21211 2021-02-25  Tamar Christina  <tamar.christina@arm.com>
21213         * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
21215 2021-02-25  Richard Biener  <rguenther@suse.de>
21217         PR tree-optimization/99253
21218         * tree-vect-loop.c (check_reduction_path): First compute
21219         code, then verify out-of-loop uses.
21221 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
21223         PR target/95798
21224         * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
21226 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
21228         PR tree-optimization/80635
21229         * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
21230         VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
21231         has mode precision.
21233 2021-02-25  Richard Biener  <rguenther@suse.de>
21235         * tree-vect-slp.c (optimize_load_redistribution_1): Delay
21236         load_map population.
21237         (vect_match_slp_patterns_2): Revert part of last change.
21238         (vect_analyze_slp): Do not interleave optimize_load_redistribution
21239         with pattern detection but do it afterwards.  Dump the
21240         whole SLP graph after pattern recognition and load
21241         redistribution optimization finished.
21243 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
21245         PR fortran/99226
21246         * omp-low.c (struct omp_context): Add teams_nested_p and
21247         nonteams_nested_p members.
21248         (scan_omp_target): Diagnose teams nested inside of target with other
21249         directives strictly nested inside of the same target.
21250         (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
21251         ctx->nonteams_nested_p as needed.
21253 2021-02-24  Vladimir N. Makarov  <vmakarov@redhat.com>
21255         PR inline-asm/99123
21256         * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
21258 2021-02-24  Hans-Peter Nilsson  <hp@axis.com>
21260         * config/cris/cris.c (cris_expand_prologue): Set
21261         current_function_static_stack_size, if flag_stack_usage_info.
21263 2021-02-24  Pat Haugen  <pthaugen@linux.ibm.com>
21265         * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
21266         (rs6000_final_prescan_insn): Adjust.
21267         (rs6000_asm_output_opcode): Likewise.
21269 2021-02-24  Martin Sebor  <msebor@redhat.com>
21271         PR middle-end/97172
21272         * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
21273         from function arguments.
21275 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
21277         PR tree-optimization/99220
21278         * tree-vect-slp.c (optimize_load_redistribution_1): Remove
21279         node from cache when it's about to be deleted.
21281 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
21283         PR tree-optimization/99225
21284         * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
21285         to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
21286         build_int_cst (..., 1).  Formatting fixes.
21288 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
21290         PR tree-optimization/99149
21291         * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
21292         buffer.
21293         (vect_slp_reset_pattern): Remove.
21294         (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
21295         (complex_mul_pattern::build, complex_fma_pattern::build,
21296         complex_fms_pattern::build): Fix ref counts.
21297         * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
21298         when node is being deleted.
21299         (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
21300         (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
21301         stores.
21302         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
21304 2021-02-24  Matthias Klose  <doko@ubuntu.com>
21306         Revert:
21307         2020-12-07  Matthias Klose  <doko@ubuntu.com>
21309         * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
21310         and ENABLE_RTL_FLAG_CHECKING.
21312 2021-02-24  Richard Biener  <rguenther@suse.de>
21314         PR c/99224
21315         * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
21317 2021-02-23  Peter Bergner  <bergner@linux.ibm.com>
21319         * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
21320         (vsx_assemble_pair): ...to this.
21321         (*mma_assemble_pair): Rename from this...
21322         (*vsx_assemble_pair): ...to this.
21323         (mma_disassemble_pair): Rename from this...
21324         (vsx_disassemble_pair): ...to this.
21325         (*mma_disassemble_pair): Rename from this...
21326         (*vsx_disassemble_pair): ...to this.
21327         * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
21328         BU_COMPAT): New macros.
21329         (mma_assemble_pair): Rename from this...
21330         (vsx_assemble_pair): ...to this.
21331         (mma_disassemble_pair): Rename from this...
21332         (vsx_disassemble_pair): ...to this.
21333         (mma_assemble_pair): New compatibility built-in.
21334         (mma_disassemble_pair): Likewise.
21335         * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
21336         (RS6000_BUILTIN_COMPAT): Define.
21337         (bdesc_compat): New.
21338         (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
21339         (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
21340         and VSX_BUILTIN_ASSEMBLE_PAIR.
21341         (rs6000_init_builtins): Register compatibility built-ins.
21342         (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
21343         VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
21344         VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
21345         * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
21346         (__builtin_vsx_assemble_pair): ...to this.
21347         (__builtin_mma_disassemble_pair): Rename from this...
21348         (__builtin_vsx_disassemble_pair): ...to this.
21350 2021-02-23  Martin Liska  <mliska@suse.cz>
21352         PR sanitizer/99168
21353         * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
21354         with different alignment. That leads to an invalid red zone
21355         size allocated in runtime.
21357 2021-02-23  Jakub Jelinek  <jakub@redhat.com>
21359         PR tree-optimization/99204
21360         * fold-const.c (fold_read_from_constant_string): Check that
21361         tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
21363 2021-02-23  Segher Boessenkool  <segher@kernel.crashing.org>
21364             Kewen Lin  <linkw@gcc.gnu.org>
21366         * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
21367         (rotl<mode>3_insert_3): ...this.
21368         (plus_ior_xor): New code_iterator.
21369         (define_split for GPR rl*imi): New splitter.
21370         * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
21371         for integer merging.
21373 2021-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21375         * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
21376         Define.
21377         * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
21378         into a register when the above is enabled.
21379         * config/aarch64/aarch64.c (neoversev1_tunings):
21380         AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
21381         (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
21383 2021-02-22  Hans-Peter Nilsson  <hp@axis.com>
21385         * config/cris/cris.c (cris_print_operand) <'T'>: Change
21386         valid operand from is now an addi mult-value to shift-value.
21387         * config/cris/cris.md (*addi): Change expression of scaled
21388         operand from mult to ashift.
21389         * config/cris/cris.md (*addi_reload): New insn_and_split.
21391 2021-02-22  John David Anglin  <danglin@gcc.gnu.org>
21393         PR target/85074
21394         * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
21395         hook_bool_const_tree_hwi_hwi_const_tree_true.
21396         (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
21398 2021-02-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
21400         PR rtl-optimization/98791
21401         * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
21402         for unordered modes.
21404 2021-02-22  Martin Liska  <mliska@suse.cz>
21406         * tree-inline.c (inline_forbidden_p): Set
21407         inline_forbidden_reason.
21409 2021-02-22  Richard Biener  <rguenther@suse.de>
21411         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
21412         costed subgraph.
21414 2021-02-22  Richard Biener  <rguenther@suse.de>
21416         PR tree-optimization/99165
21417         * gimple-ssa-store-merging.c (pass_store_merging::process_store):
21418         Accumulate changed to ret.
21420 2021-02-21  Uros Bizjak  <ubizjak@gmail.com>
21422         Revert:
21423         2020-12-09  Uroš Bizjak  <ubizjak@gmail.com>
21425         * config/i386/i386.h (REG_ALLOC_ORDER): Remove
21427 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
21429         PR target/99134
21430         * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
21431         pattern.
21432         (trunctf<DFP_ALL:mode>2): Likewise.
21433         (trunctdtf2_vr): Likewise.
21434         (trunctdtf2): Likewise.
21435         (extend<DFP_ALL:mode>tf2_vr): Likewise.
21436         (extend<DFP_ALL:mode>tf2): Likewise.
21437         (extendtftd2_vr): Likewise.
21438         (extendtftd2): Likewise.
21440 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
21442         * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
21443         add memory alternative.
21444         (tf_to_fprx2): New pattern.
21446 2021-02-19  Martin Sebor  <msebor@redhat.com>
21448         PR c/97172
21449         * attribs.c (init_attr_rdwr_indices): Guard vblist use.
21450         (attr_access::free_lang_data): Remove a spurious test.
21452 2021-02-19  Nathan Sidwell  <nathan@acm.org>
21454         * doc/invoke.texi (flang-info-module-read): Document.
21456 2021-02-19  Martin Liska  <mliska@suse.cz>
21458         PR translation/99167
21459         * params.opt: Fix typo.
21461 2021-02-19  Richard Biener  <rguenther@suse.de>
21463         PR middle-end/99122
21464         * tree-inline.c (inline_forbidden_p): Do not inline functions
21465         with VLA arguments or return value.
21467 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
21469         PR target/98998
21470         * config/arm/arm.md (*stack_protect_combined_set_insn,
21471         *stack_protect_combined_test_insn): If force_const_mem result
21472         is not valid general operand, force its address into the destination
21473         register first.
21475 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
21477         PR ipa/99034
21478         * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
21479         pad or non-local label, put FORCED_LABELs from bb b after that label
21480         rather than before it.
21482 2021-02-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
21484         PR target/98657
21485         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
21486         expand_vector_broadcast' to emit the vec_duplicate operand.
21488 2021-02-18  Vladimir N. Makarov  <vmakarov@redhat.com>
21490         PR rtl-optimization/96264
21491         * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
21492         hard regs.
21494 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
21496         PR target/99113
21497         * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
21498         looking up the retain attribute.
21499         (resolve_unique_section): Likewise.
21500         (get_variable_section): Likewise.
21501         (switch_to_section): Likewise.  Warn when a symbol without the
21502         retain attribute and a symbol with the retain attribute are
21503         placed in the section with the same name, instead of the used
21504         attribute.
21505         * doc/extend.texi: Document the "retain" attribute.
21507 2021-02-18  Nathan Sidwell  <nathan@acm.org>
21509         PR c++/99023
21510         * doc/invoke.texi (flang-info-include-translate): Document header
21511         lookup behaviour.
21513 2021-02-18  Richard Biener  <rguenther@suse.de>
21515         PR middle-end/99122
21516         * ipa-fnsummary.c (analyze_function_body): Set
21517         CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
21518         * tree-inline.c (insert_init_debug_bind): Pass NULL for
21519         error_mark_node values.
21520         (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
21521         values.
21522         (setup_one_parameter): Delay force_value_to_type until when
21523         it's needed.
21525 2021-02-18  Hans-Peter Nilsson  <hp@axis.com>
21527         PR tree-optimization/99142
21528         * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
21530 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
21532         * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
21533         wide_int_bitmask::wide_int_bitmask (uint64_t),
21534         wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
21535         wide_int_bitmask::operator ~ () const,
21536         wide_int_bitmask::operator | (wide_int_bitmask) const,
21537         wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
21538         instead of inline.
21539         * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
21540         PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
21541         PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
21542         PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
21543         PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
21544         PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
21545         PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
21546         PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
21547         PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
21548         PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
21549         PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
21550         PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
21551         PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
21552         PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
21553         PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
21554         PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
21555         PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
21556         PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
21557         PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
21558         PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
21559         PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
21560         PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
21561         PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
21562         PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
21564 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
21566         PR middle-end/99109
21567         * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
21568         (build_printable_array_type): ... this.  Add nelts argument.  For
21569         overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead.  If
21570         nelts, call build_array_type_nelts.
21571         (array_bounds_checker::check_mem_ref): Use build_printable_array_type
21572         instead of build_zero_elt_array_type and build_array_type_nelts.
21574 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
21576         PR target/99104
21577         * config/i386/i386.c (distance_non_agu_define): Don't call
21578         extract_insn_cached here.
21579         (ix86_lea_outperforms): Save and restore recog_data around call
21580         to distance_non_agu_define and distance_agu_use.
21581         (ix86_ok_to_clobber_flags): Remove.
21582         (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
21583         (ix86_avoid_lea_for_addr): Likewise.  Adjust function comment.
21584         * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
21585         into define_insn.  Move the splitting to define_peephole2 and
21586         check there using peep2_regno_dead_p if FLAGS_REG is dead.
21588 2021-02-17  Julian Brown  <julian@codesourcery.com>
21590         * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
21591         for non-decls.
21593 2021-02-17  Xi Ruoyao  <xry111@mengyan1223.wang>
21595         PR target/98491
21596         * config/mips/mips.c (mips_symbol_insns): Do not use
21597         MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
21599 2021-02-16  Vladimir N. Makarov  <vmakarov@redhat.com>
21601         PR inline-asm/98096
21602         * stmt.c (resolve_operand_name_1): Take inout operands into account
21603         for access to labels by names.
21604         * doc/extend.texi: Describe counting operands for accessing labels.
21606 2021-02-16  Richard Biener  <rguenther@suse.de>
21608         PR tree-optimization/38474
21609         * tree-ssa-structalias.c (variable_info::address_taken): New.
21610         (new_var_info): Initialize address_taken.
21611         (process_constraint): Set address_taken.
21612         (solve_constraints): Use the new address_taken flag rather
21613         than is_reg_var for sorting variables.
21614         (dump_constraint): Dump the variable number if the name
21615         is just NULL.
21617 2021-02-16  Jakub Jelinek  <jakub@redhat.com>
21619         PR target/99100
21620         * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
21621         multiply by 4096 and for inbranch by 8192.
21622         * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
21623         return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
21625 2021-02-15  Maya Rashish  <coypu@sdf.org>
21627         * config/aarch64/aarch64.c (aarch64_init_builtins):
21628         Call SUBTARGET_INIT_BUILTINS.
21630 2021-02-15  Peter Bergner  <bergner@linux.ibm.com>
21632         PR rtl-optimization/98872
21633         * init-regs.c (initialize_uninitialized_regs): Skip initialization
21634         if CONST0_RTX is NULL.
21636 2021-02-15  Richard Sandiford  <richard.sandiford@arm.com>
21638         PR rtl-optimization/98863
21639         * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
21640         (function_info::build_info): Turn into a declaration, moving the
21641         definition to internals.h.
21642         (function_info::bb_walker): Declare.
21643         (function_info::create_reg_use): Likewise.
21644         (function_info::calculate_potential_phi_regs): Take a build_info
21645         parameter.
21646         (function_info::place_phis, function_info::create_ebbs): Declare.
21647         (function_info::calculate_ebb_live_in_for_debug): Likewise.
21648         (function_info::populate_backedge_phis): Delete.
21649         (function_info::start_block, function_info::end_block): Declare.
21650         (function_info::populate_phi_inputs): Delete.
21651         (function_info::m_potential_phi_regs): Move information to build_info.
21652         * rtl-ssa/internals.h: New file.
21653         (function_info::bb_phi_info): New class.
21654         (function_info::build_info): Moved from functions.h.
21655         Add a constructor and destructor.
21656         (function_info::build_info::ebb_use): Delete.
21657         (function_info::build_info::ebb_def): Likewise.
21658         (function_info::build_info::bb_live_out): Likewise.
21659         (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
21660         (function_info::build_info::potential_phi_regs): Likewise.
21661         (function_info::build_info::potential_phi_regs_for_debug): Likewise.
21662         (function_info::build_info::ebb_def_regs): Likewise.
21663         (function_info::build_info::bb_phis): Likewise.
21664         (function_info::build_info::bb_mem_live_out): Likewise.
21665         (function_info::build_info::bb_to_rpo): Likewise.
21666         (function_info::build_info::def_stack): Likewise.
21667         (function_info::build_info::old_def_stack_limit): Likewise.
21668         * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
21669         Remove the regno argument.  Push the previous definition onto the
21670         definition stack where necessary.
21671         * rtl-ssa/accesses.cc: Include internals.h.
21672         * rtl-ssa/changes.cc: Likewise.
21673         * rtl-ssa/blocks.cc: Likewise.
21674         (function_info::build_info::build_info): Define.
21675         (function_info::build_info::~build_info): Likewise.
21676         (function_info::bb_walker): New class.
21677         (function_info::bb_walker::bb_walker): Define.
21678         (function_info::add_live_out_use): Convert a logarithmic-complexity
21679         test into a linear one.  Allow the same definition to be passed
21680         multiple times.
21681         (function_info::calculate_potential_phi_regs): Moved from
21682         functions.cc.  Take a build_info parameter and store the
21683         information there instead.
21684         (function_info::place_phis): New function.
21685         (function_info::add_entry_block_defs): Update call to record_reg_def.
21686         (function_info::calculate_ebb_live_in_for_debug): New function.
21687         (function_info::add_phi_nodes): Use bb_phis to decide which
21688         registers need phi nodes and initialize ebb_def_regs accordingly.
21689         Do not add degenerate phis here.
21690         (function_info::add_artificial_accesses): Use create_reg_use.
21691         Assert that all definitions are listed in the DF LR sets.
21692         Update call to record_reg_def.
21693         (function_info::record_block_live_out): Record live-out register
21694         values in the phis of successor blocks.  Use the live-out set
21695         when processing the last block in an EBB, instead of always
21696         using the live-in sets of successor blocks.  AND the live sets
21697         with the set of registers that have been defined in the EBB,
21698         rather than with all potential phi registers.  Cope correctly
21699         with branches back to the start of the current EBB.
21700         (function_info::start_block): New function.
21701         (function_info::end_block): Likewise.
21702         (function_info::populate_phi_inputs): Likewise.
21703         (function_info::create_ebbs): Likewise.
21704         (function_info::process_all_blocks): Rewrite into a multi-phase
21705         process.
21706         * rtl-ssa/functions.cc: Include internals.h.
21707         (function_info::calculate_potential_phi_regs): Move to blocks.cc.
21708         (function_info::init_function_data): Remove caller.
21709         * rtl-ssa/insns.cc: Include internals.h
21710         (function_info::create_reg_use): New function.  Lazily any
21711         degenerate phis needed by the linear RPO view.
21712         (function_info::record_use): Use create_reg_use.  When processing
21713         debug uses, use potential_phi_regs and test it before checking
21714         whether the register is live on entry to the current EBB.  Lazily
21715         calculate ebb_live_in_for_debug.
21716         (function_info::record_call_clobbers): Update call to record_reg_def.
21717         (function_info::record_def): Likewise.
21719 2021-02-15  Martin Liska  <mliska@suse.cz>
21721         * toplev.c (init_asm_output): Free output of
21722         gen_command_line_string function.
21723         (process_options): Likewise.
21725 2021-02-15  Martin Liska  <mliska@suse.cz>
21727         * params.opt: Add 2 missing Param keywords.
21729 2021-02-15  Eric Botcazou  <ebotcazou@adacore.com>
21731         * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
21733 2021-02-15  Jakub Jelinek  <jakub@redhat.com>
21735         PR tree-optimization/99079
21736         * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
21737         useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check.  Instead
21738         require both type and TREE_TYPE (@1) to be integral types and either
21739         type having smaller or equal precision, or TREE_TYPE (@1) being
21740         unsigned type, or type being signed type.  If TREE_TYPE (@1)
21741         doesn't have wrapping overflow, perform the subtraction of one in
21742         unsigned type.
21744 2021-02-14  Jan Hubicka  <hubicka@ucw.cz>
21745             Richard Biener  <rguether@suse.de>
21747         PR ipa/97346
21748         * ipa-reference.c (ipa_init): Only conditinally initialize
21749         reference_vars_to_consider.
21750         (propagate): Conditionally deninitialize reference_vars_to_consider.
21751         (ipa_reference_write_optimization_summary): Sanity check that
21752         reference_vars_to_consider is not allocated.
21754 2021-02-13  Levy Hsu  <admin@levyhsu.com>
21756         PR target/97417
21757         * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
21758         extend parameter to get_si_mem_base_reg declaration.
21759         (get_si_mem_base_reg): Add extend parameter.  Set it.
21760         (analyze): Pass extend arg to get_si_mem_base_reg.
21761         (transform): Likewise.  Use it when rewriting mems.
21762         * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
21763         loads and emit sign/zero extending load followed by subreg move.
21765 2021-02-13  Jim Wilson  <jimw@sifive.com>
21767         PR target/97417
21768         * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
21769         exit when !reload_completed.  Only perform check for compressed reg
21770         if reload_completed.
21771         (riscv_rtx_costs): In MEM case, when optimizing for size and
21772         shorten memrefs, if not compressible, then increase cost.
21774 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
21776         PR rtl-optimization/98439
21777         * recog.c (pass_split_before_regstack::gate): Enable even when
21778         pass_split_before_sched2 is enabled if -fselective-scheduling2 is
21779         on.
21781 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
21783         PR target/96166
21784         * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
21785         swap of V2SImode elements in memory into DImode memory rotate by 32.
21787 2021-02-12  Martin Sebor  <msebor@redhat.com>
21789         * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
21791 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
21793         * rtl-ssa/accesses.cc (function_info::make_use_available): Use
21794         m_temp_obstack rather than m_obstack to allocate the temporary use.
21796 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
21798         * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
21799         as read-modify operations.
21801 2021-02-12  Richard Biener  <rguenther@suse.de>
21803         PR middle-end/38474
21804         * ipa-fnsummary.c (unmodified_parm_1): Only walk when
21805         fbi->aa_walk_budget is bigger than zero.  Update
21806         fbi->aa_walk_budget.
21807         (param_change_prob): Likewise.
21808         * ipa-prop.c (detect_type_change_from_memory_writes):
21809         Properly account walk_aliased_vdefs.
21810         (parm_preserved_before_stmt_p): Canonicalize updates.
21811         (parm_ref_data_preserved_p): Likewise.
21812         (parm_ref_data_pass_through_p): Likewise.
21813         (determine_known_aggregate_parts): Account own alias queries.
21815 2021-02-12  Martin Liska  <mliska@suse.cz>
21817         * opts-common.c (decode_cmdline_option): Release werror_arg.
21818         * opts.c (gen_producer_string): Release output of
21819         gen_command_line_string.
21821 2021-02-12  Richard Biener  <rguenther@suse.de>
21823         PR tree-optimization/38474
21824         * params.opt (-param=max-store-chains-to-track=): New param.
21825         (-param=max-stores-to-track=): Likewise.
21826         * doc/invoke.texi (max-store-chains-to-track): Document.
21827         (max-stores-to-track): Likewise.
21828         * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
21829         New.
21830         (pass_store_merging::m_n_stores): Likewise.
21831         (pass_store_merging::terminate_and_process_chain): Update
21832         m_n_stores and m_n_chains.
21833         (pass_store_merging::process_store): Likewise.   Terminate
21834         oldest chains if the number of stores or chains get too large.
21835         (imm_store_chain_info::terminate_and_process_chain): Dump
21836         chain length.
21838 2021-02-11  Eric Botcazou  <ebotcazou@adacore.com>
21840         * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
21841         the cold section, emit a nop before the directive if the previous
21842         active instruction can throw.
21844 2021-02-11  Peter Bergner  <bergner@linux.ibm.com>
21846         PR target/99041
21847         * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
21848         memory addresses that are legal for quad word accesses.
21850 2021-02-11  Andrea Corallo  <andrea.corallo@arm.com>
21852         PR target/98931
21853         * config/arm/thumb2.md (*doloop_end_internal): Generate
21854         alternative sequence to handle long range branches.
21856 2021-02-11  Joel Hutton  <joel.hutton@arm.com>
21858         PR tree-optimization/98772
21859         * optabs-tree.c (supportable_half_widening_operation): New function
21860         to check for supportable V8QI->V8HI widening patterns.
21861         * optabs-tree.h (supportable_half_widening_operation): New function.
21862         * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
21863         to create promotion stmts for V8QI->V8HI widening patterns.
21864         (vectorizable_conversion): Add case for V8QI->V8HI.
21866 2021-02-11  Richard Biener  <rguenther@suse.de>
21868         * sparseset.h (SPARSESET_ELT_BITS): Remove.
21869         (SPARSESET_ELT_TYPE): Use unsigned int.
21870         * fwprop.c: Do not include sparseset.h.
21872 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
21874         PR c++/99035
21875         * varasm.c (declare_weak): For -fsyntax-only, allow even
21876         TREE_ASM_WRITTEN function decls.
21878 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
21880         PR target/99025
21881         * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
21882         <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
21883         <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
21884         <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
21885         calling simplify_gen_subreg on it.
21887 2021-02-10  Martin Liska  <mliska@suse.cz>
21889         * config/nvptx/nvptx.c (nvptx_option_override): Use
21890         flag_patchable_function_entry instead of the removed
21891         function_entry_patch_area_size.
21893 2021-02-10  Martin Liska  <mliska@suse.cz>
21895         PR tree-optimization/99002
21896         PR tree-optimization/99026
21897         * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
21898         leak when adjacent cases are merged.
21899         * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
21900         release_clusters.
21901         (make_pass_lower_switch): Remove trailing whitespace.
21902         * tree-switch-conversion.h (release_clusters): New.
21904 2021-02-10  Richard Biener  <rguenther@suse.de>
21906         PR rtl-optimization/99054
21907         * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
21908         (fixup_partitions): Adjust.
21909         (rtl_verify_edges): Likewise.
21911 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
21913         PR middle-end/99007
21914         * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
21915         temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
21916         calls.
21918 2021-02-10  Richard Biener  <rguenther@suse.de>
21920         PR ipa/99029
21921         * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
21922         for callees.
21924 2021-02-10  Richard Biener  <rguenther@suse.de>
21926         PR tree-optimization/99024
21927         * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
21928         clear loop->aux if it is associated with the destroyed loop_vinfo.
21930 2021-02-10  Martin Liska  <mliska@suse.cz>
21932         PR tree-optimization/99002
21933         * gimple-if-to-switch.cc (find_conditions): Fix memory leak
21934         in the function.
21936 2021-02-10  Martin Liska  <mliska@suse.cz>
21938         PR ipa/99003
21939         * ipa-icf.c (sem_item::add_reference): Fix memory leak when
21940         a reference exists.
21942 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
21944         PR debug/98755
21945         * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
21946         at class scope for DWARF5+.
21948 2021-02-09  Eric Botcazou  <ebotcazou@adacore.com>
21950         PR rtl-optimization/96015
21951         * reorg.c (skip_consecutive_labels): Minor comment tweaks.
21952         (relax_delay_slots): When deleting a jump to the next active
21953         instruction over a barrier, first delete the barrier if the
21954         jump is the only way to reach the target label.
21956 2021-02-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
21958         * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
21959         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
21960         vector multiplies and vect.alu for SSRA.
21961         * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
21962         vect.mul cost field.
21963         * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
21964         * config/arm/arm.c: Likewise.
21966 2021-02-09  Richard Biener  <rguenther@suse.de>
21968         PR tree-optimization/98863
21969         * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
21970         * tree-ssa-sccvn.c (last_pushed_avail): New global.
21971         (rpo_elim::eliminate_push_avail): Chain pushed avails.
21972         (unwind_state::avail_top): Add.
21973         (do_unwind): Rewrite unwinding of avail entries.
21974         (do_rpo_vn): Initialize last_pushed_avail and
21975         avail_top of the undo state.
21977 2021-02-09  Jakub Jelinek  <jakub@redhat.com>
21979         PR middle-end/99004
21980         * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
21981         const char * to char * and free those pointers after use.
21983 2021-02-09  Richard Biener  <rguenther@suse.de>
21985         PR tree-optimization/99017
21986         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
21987         zero vector cost entries.
21989 2021-02-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
21991         PR middle-end/98974
21992         * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
21993         parameter in vectorizable_condition.
21995 2021-02-08  Richard Biener  <rguenther@suse.de>
21997         PR lto/96591
21998         * tree.c (walk_tree_1): Walk VECTOR_CST elements.
22000 2021-02-08  Martin Liska  <mliska@suse.cz>
22002         PR lto/98971
22003         * cfgexpand.c (pass_expand::execute): Parse per-function option
22004         flag_patchable_function_entry and use it.
22005         * common.opt: Remove function_entry_patch_area_size and
22006         function_entry_patch_area_start global variables.
22007         * opts.c (parse_and_check_patch_area): New function.
22008         (common_handle_option): Use it.
22009         * opts.h (parse_and_check_patch_area): New function.
22010         * toplev.c (process_options): Parse and use
22011         function_entry_patch_area_size.
22013 2021-02-08  Martin Sebor  <msebor@redhat.com>
22015         * doc/extend.texi (attribute malloc): Correct typos.
22017 2021-02-05  Nathan Sidwell  <nathan@acm.org>
22019         PR driver/98943
22020         * gcc.c (driver::maybe_run_linker): Check for input file
22021         accessibility if not linking.
22023 2021-02-05  Richard Biener  <rguenther@suse.de>
22025         PR tree-optimization/98855
22026         * tree-vectorizer.h (add_stmt_cost): New overload.
22027         * tree-vect-slp.c (li_cost_vec_cmp): New.
22028         (vect_bb_slp_scalar_cost): Cost individual loop regions
22029         separately.  Account for the scalar instance root stmt.
22031 2021-02-05  Tom de Vries  <tdevries@suse.de>
22033         PR debug/98656
22034         * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
22035         argument.
22036         (bit_test_cluster::emit): Reuse location_t for newly created
22037         gswitch statement.
22038         (switch_decision_tree::try_switch_expansion): Preserve
22039         location_t.
22040         * tree-switch-conversion.h: Change function signatures.
22042 2021-02-05  Jakub Jelinek  <jakub@redhat.com>
22044         PR target/98957
22045         * config/i386/i386-options.c (m_NONE, m_ALL): Define.
22046         * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
22047         X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
22048         (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
22050 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22052         * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
22053         * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
22054         * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
22055         (vget_high_f16): Reimplement using new builtin.
22056         (vget_high_f32): Likewise.
22057         (vget_high_f64): Likewise.
22058         (vget_high_p8): Likewise.
22059         (vget_high_p16): Likewise.
22060         (vget_high_p64): Likewise.
22061         (vget_high_s8): Likewise.
22062         (vget_high_s16): Likewise.
22063         (vget_high_s32): Likewise.
22064         (vget_high_s64): Likewise.
22065         (vget_high_u8): Likewise.
22066         (vget_high_u16): Likewise.
22067         (vget_high_u32): Likewise.
22068         (vget_high_u64): Likewise.
22070 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22072         * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
22073         * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
22074         * config/aarch64/arm_neon.h (__GET_LOW): Delete.
22075         (vget_low_f16): Reimplement using new builtin.
22076         (vget_low_f32): Likewise.
22077         (vget_low_f64): Likewise.
22078         (vget_low_p8): Likewise.
22079         (vget_low_p16): Likewise.
22080         (vget_low_p64): Likewise.
22081         (vget_low_s8): Likewise.
22082         (vget_low_s16): Likewise.
22083         (vget_low_s32): Likewise.
22084         (vget_low_s64): Likewise.
22085         (vget_low_u8): Likewise.
22086         (vget_low_u16): Likewise.
22087         (vget_low_u32): Likewise.
22088         (vget_low_u64): Likewise.
22090 2021-02-05  Kito Cheng  <kito.cheng@sifive.com>
22092         * gcc.c (print_multilib_info): Check all required argument is provided
22093         by default arg.
22095 2021-02-05  liuhongt  <hongtao.liu@intel.com>
22097         PR target/98537
22098         * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
22099         generate integer mask comparison for 128/256-bits vector when
22100         op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
22101         delete redundant !maskcmp condition.
22102         (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
22103         here.
22104         (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
22105         condition directly to if (maskcmp), add extra check for
22106         cmpmode, it should be MODE_INT.
22107         (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
22108         parameters op_true/op_false.
22109         (ix86_use_mask_cmp_p): New.
22111 2021-02-05  liuhongt  <hongtao.liu@intel.com>
22113         PR target/98172
22114         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
22115         Remove m_GENERIC from ~list.
22116         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
22118 2021-02-04  David Malcolm  <dmalcolm@redhat.com>
22120         PR c/97932
22121         * diagnostic-show-locus.c (compatible_locations_p): Require
22122         locations in the same macro map to be either both from the
22123         macro definition, or both from the macro arguments.
22125 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
22127         * config/aarch64/aarch64-simd-builtins.def: Add
22128         [su]mull_hi_lane[q] builtin generator macros.
22129         * config/aarch64/aarch64-simd.md
22130         (aarch64_<su>mull_hi_lane<mode>_insn): Define.
22131         (aarch64_<su>mull_hi_lane<mode>): Define.
22132         (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
22133         (aarch64_<su>mull_hi_laneq<mode>): Define.
22134         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
22135         builtin instead of inline asm.
22136         (vmull_high_lane_s32): Likewise.
22137         (vmull_high_lane_u16): Likewise.
22138         (vmull_high_lane_u32): Likewise.
22139         (vmull_high_laneq_s16): Likewise.
22140         (vmull_high_laneq_s32): Likewise.
22141         (vmull_high_laneq_u16): Likewise.
22142         (vmull_high_laneq_u32): Liekwise.
22144 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
22146         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
22147         builtin generator macros.
22148         * config/aarch64/aarch64-simd.md
22149         (aarch64_<su>mull_hi_n<mode>_insn): Define.
22150         (aarch64_<su>mull_hi_n<mode>): Define.
22151         * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
22152         instead of inline asm.
22153         (vmull_high_n_s32): Likewise.
22154         (vmull_high_n_u16): Likewise.
22155         (vmull_high_n_u32): Likewise.
22157 2021-02-04  Richard Biener  <rguenther@suse.de>
22159         PR tree-optimization/98855
22160         * tree-vect-loop.c (vectorizable_phi): Do not cost
22161         single-argument PHIs.
22162         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
22163         * tree-vect-stmts.c (vectorizable_bswap): Also perform
22164         costing for SLP operation.
22166 2021-02-04  Martin Liska  <mliska@suse.cz>
22168         * doc/extend.texi: Mention -mprefer-vector-width in target
22169         attributes.
22171 2021-02-03  Martin Sebor  <msebor@redhat.com>
22173         PR tree-optimization/98937
22174         * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
22175         Flush pointer_query cache.
22177 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
22179         * config/rs6000/genfusion.pl (gen_2logical): Add missing
22180         fixes based on patch review.
22181         * config/rs6000/fusion.md: Regenerate file.
22183 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
22185         * config/rs6000/t-rs6000: Comment out auto generation of
22186         fusion.md for now.
22188 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
22190         * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
22191         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
22192         (output_file_start): Add gfx908.
22193         * config/gcn/gcn.opt (gpu_type): Add gfx908.
22194         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
22195         (MULTILIB_DIRNAMES): Add gfx908.
22196         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
22197         (main): Recognize gfx908.
22198         * config/gcn/t-omp-device: Add gfx908.
22200 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
22202         * config/aarch64/aarch64-simd-builtins.def: Add
22203         [su]mlsl_hi_lane[q] builtin macro generators.
22204         * config/aarch64/aarch64-simd.md
22205         (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
22206         (aarch64_<su>mlsl_hi_lane<mode>): Define.
22207         (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
22208         (aarch64_<su>mlsl_hi_laneq<mode>): Define.
22209         * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
22210         builtin instead of inline asm.
22211         (vmlsl_high_lane_s32): Likewise.
22212         (vmlsl_high_lane_u16): Likewise.
22213         (vmlsl_high_lane_u32): Likewise.
22214         (vmlsl_high_laneq_s16): Likewise.
22215         (vmlsl_high_laneq_s32): Likewise.
22216         (vmlsl_high_laneq_u16): Likewise.
22217         (vmlsl_high_laneq_u32): Likewise.
22218         (vmlal_high_laneq_u32): Likewise.
22220 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
22222         * config/aarch64/aarch64-simd-builtins.def: Add
22223         [su]mlal_hi_lane[q] builtin generator macros.
22224         * config/aarch64/aarch64-simd.md
22225         (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
22226         (aarch64_<su>mlal_hi_lane<mode>): Define.
22227         (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
22228         (aarch64_<su>mlal_hi_laneq<mode>): Define.
22229         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
22230         builtin instead of inline asm.
22231         (vmlal_high_lane_s32): Likewise.
22232         (vmlal_high_lane_u16): Likewise.
22233         (vmlal_high_lane_u32): Likewise.
22234         (vmlal_high_laneq_s16): Likewise.
22235         (vmlal_high_laneq_s32): Likewise.
22236         (vmlal_high_laneq_u16): Likewise.
22237         (vmlal_high_laneq_u32): Likewise.
22239 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
22241         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
22242         builtin generator macros.
22243         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
22244         Define.
22245         (aarch64_<su>mlsl_hi_n<mode>): Define.
22246         * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
22247         instead of inline asm.
22248         (vmlsl_high_n_s32): Likewise.
22249         (vmlsl_high_n_u16): Likewise.
22250         (vmlsl_high_n_u32): Likewise.
22252 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
22254         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
22255         builtin generator macros.
22256         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
22257         Define.
22258         (aarch64_<su>mlal_hi_n<mode>): Define.
22259         * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
22260         instead of inline asm.
22261         (vmlal_high_n_s32): Likewise.
22262         (vmlal_high_n_u16): Likewise.
22263         (vmlal_high_n_u32): Likewise.
22265 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
22267         * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
22268         generator macros.
22269         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
22270         Rename to...
22271         (aarch64_<su>mlal_hi<mode>_insn): This.
22272         (aarch64_<su>mlal_hi<mode>): Define.
22273         * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
22274         instead of inline asm.
22275         (vmlal_high_s16): Likewise.
22276         (vmlal_high_s32): Likewise.
22277         (vmlal_high_u8): Likewise.
22278         (vmlal_high_u16): Likewise.
22279         (vmlal_high_u32): Likewise.
22281 2021-02-03  Ilya Leoshkevich  <iii@linux.ibm.com>
22283         * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
22284         after calling alter_subreg() on a (mem).
22286 2021-02-03  Martin Liska  <mliska@suse.cz>
22288         PR lto/98912
22289         * lto-streamer-out.c (produce_lto_section): Fill up missing
22290         padding.
22291         * lto-streamer.h (struct lto_section): Add _padding field.
22293 2021-02-03  Richard Biener  <rguenther@suse.de>
22295         * lto-streamer.c (lto_get_section_name): Free temporary
22296         buffer.
22297         * tree-loop-distribution.c
22298         (loop_distribution::merge_dep_scc_partitions): Free edge data.
22300 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
22302         PR middle-end/97487
22303         * ifcvt.c (noce_can_force_operand): New function.
22304         (noce_emit_move_insn): Use it.
22305         (noce_try_sign_mask): Likewise.  Formatting fix.
22307 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
22309         PR middle-end/97971
22310         * lra-constraints.c (process_alt_operands): For inline asm, don't call
22311         fatal_insn, but instead return false.
22313 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
22315         PR tree-optimization/98287
22316         * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
22317         for V1DImode.
22319 2021-02-03  Tamar Christina  <tamar.christina@arm.com>
22321         PR tree-optimization/98928
22322         * tree-vect-loop.c (vect_analyze_loop_2): Change
22323         STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
22324         * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
22325         * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
22326         (class _stmt_vec_info): Add slp_vect_pattern_only_p.
22328 2021-02-02  Richard Biener  <rguenther@suse.de>
22330         * gimple-loop-interchange.cc (prepare_data_references):
22331         Release vectors.
22332         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
22333         * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
22334         * tree-vect-stmts.c (vectorizable_condition): Do not
22335         allocate vectors.
22336         (vectorizable_comparison): Likewise.
22338 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22340         * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
22341         * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
22342         * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
22343         (vrsqrteq_u32): Likewise.
22345 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22347         * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
22348         * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
22349         (aarch64_sqxtun2<mode>_be): Likewise.
22350         (aarch64_sqxtun2<mode>): Likewise.
22351         * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
22352         (vqmovun_high_s32): Likewise.
22353         (vqmovun_high_s64): Likewise.
22354         * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
22356 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22358         * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
22359         AUTO_FP flags.
22360         (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
22362 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22364         * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
22365         fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
22366         fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
22367         ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
22368         fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
22369         fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
22370         fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
22371         fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
22373 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22375         * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
22376         * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
22377         ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
22379 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22381         * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
22382         uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
22384 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22386         * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
22387         vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
22388         vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
22389         ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
22390         udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
22391         ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
22392         ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
22393         ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
22394         NONE builtin flags.
22396 2021-02-02  Jakub Jelinek  <jakub@redhat.com>
22398         PR tree-optimization/98848
22399         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
22400         STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
22402 2021-02-02  Kito Cheng  <kito.cheng@sifive.com>
22404         PR target/98743
22405         * expr.c: Check mode before calling store_expr.
22407 2021-02-02  Christophe Lyon  <christophe.lyon@linaro.org>
22409         * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
22410         (VORNQ): Remove.
22411         * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
22412         instruction using expression ior.
22413         (mve_vornq_u<mode>): New expander.
22414         (mve_vornq_f<mode>): Use ior code instead of unspec.
22415         * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
22417 2021-02-02  Alexandre Oliva  <oliva@adacore.com>
22419         * tree-nested.c (convert_nonlocal_reference_op): Move
22420         current_function_decl restore after re-gimplification.
22421         (convert_local_reference_op): Likewise.
22423 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22425         * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
22426         Define builtins.
22427         * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
22428         Define.
22429         (aarch64_rshrn<mode>_insn_be): Likewise.
22430         (aarch64_rshrn<mode>): Likewise.
22431         (aarch64_rshrn2<mode>_insn_le): Likewise.
22432         (aarch64_rshrn2<mode>_insn_be): Likewise.
22433         (aarch64_rshrn2<mode>): Likewise.
22434         * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
22435         * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
22436         using builtin.
22437         (vrshrn_high_n_s32): Likewise.
22438         (vrshrn_high_n_s64): Likewise.
22439         (vrshrn_high_n_u16): Likewise.
22440         (vrshrn_high_n_u32): Likewise.
22441         (vrshrn_high_n_u64): Likewise.
22442         (vrshrn_n_s16): Likewise.
22443         (vrshrn_n_s32): Likewise.
22444         (vrshrn_n_s64): Likewise.
22445         (vrshrn_n_u16): Likewise.
22446         (vrshrn_n_u32): Likewise.
22447         (vrshrn_n_u64): Likewise.
22449 2021-02-01  Sergei Trofimovich  <siarheit@google.com>
22451         PR tree-optimization/98499
22452         * ipa-modref.c (analyze_ssa_name_flags): treat RVO
22453         conservatively and assume all possible side-effects.
22455 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22457         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
22458         vec_unpacku_hi_): Define builtins.
22459         * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
22460         builtin.
22461         (vmovl_high_s16): Likewise.
22462         (vmovl_high_s32): Likewise.
22463         (vmovl_high_u8): Likewise.
22464         (vmovl_high_u16): Likewise.
22465         (vmovl_high_u32): Likewise.
22467 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22469         * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
22470         Define builtins.
22471         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
22472         pattern.
22473         * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
22474         UNSPEC_UABDL.
22475         * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
22476         builtin.
22477         (vabdl_s16): Likewise.
22478         (vabdl_s32): Likewise.
22479         (vabdl_u8): Likewise.
22480         (vabdl_u16): Likewise.
22481         (vabdl_u32): Likewise.
22482         * config/aarch64/iterators.md (ABDL): New int iterator.
22483         (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
22485 2021-02-01  Martin Sebor  <msebor@redhat.com>
22487         * tree.h (BLOCK_VARS): Add comment.
22488         (BLOCK_SUBBLOCKS): Same.
22489         (BLOCK_SUPERCONTEXT): Same.
22490         (BLOCK_ABSTRACT_ORIGIN): Same.
22491         (inlined_function_outer_scope_p): Same.
22493 2021-02-01  Martin Sebor  <msebor@redhat.com>
22495         PR middle-end/97172
22496         * attribs.c (attr_access::free_lang_data): Define new function.
22497         * attribs.h (attr_access::free_lang_data): Declare new function.
22499 2021-02-01  Richard Biener  <rguenther@suse.de>
22501         * vec.h (auto_vec::auto_vec): Add memory stat parameters
22502         and pass them on.
22503         * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
22505 2021-02-01  Tamar Christina  <tamar.christina@arm.com>
22507         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
22508         aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
22510 2021-02-01  Richard Biener  <rguenther@suse.de>
22512         PR rtl-optimization/98863
22513         * config/i386/i386-features.c (convert_scalars_to_vector):
22514         Set DF_RD_PRUNE_DEAD_DEFS.
22516 2021-01-31  Eric Botcazou  <ebotcazou@adacore.com>
22518         * system.h (SIZE_MAX): Define if not already defined.
22520 2021-01-30  Aaron Sawdey  <acsawdey@linux.ibm.com>
22522         * config/rs6000/genfusion.pl (gen_2logical): New function to
22523         generate patterns for logical-logical fusion.
22524         * config/rs6000/fusion.md: Regenerated patterns.
22525         * config/rs6000/rs6000-cpus.def: Add
22526         OPTION_MASK_P10_FUSION_2LOGICAL.
22527         * config/rs6000/rs6000.c (rs6000_option_override_internal):
22528         Enable logical-logical fusion for p10.
22529         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
22531 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
22533         * config/rs6000/rs6000.opt: Add periods to new AIX options.
22535 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
22537         * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
22538         (mabi=vec-default): New.
22539         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22540         __EXTABI__ for AIX Vector extended ABI.
22541         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
22542         extabi info.
22543         (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
22544         are non-volatile.
22545         * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
22547 2021-01-30  Jakub Jelinek  <jakub@redhat.com>
22549         * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
22550         DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
22552 2021-01-29  Vladimir N. Makarov  <vmakarov@redhat.com>
22554         PR target/97701
22555         * lra-constraints.c (in_class_p): Don't narrow class only for REG
22556         or MEM.
22558 2021-01-29  Will Schmidt  <will_schmidt@vnet.ibm.com>
22560         * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
22561         clauses for CODE_FOR_vsx_xvcvuxddp_scale and
22562         CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
22564 2021-01-29  Andrew MacLeod  <amacleod@redhat.com>
22566         PR tree-optimization/98866
22567         * gimple-range-gori.h (gori_compute:set_range_invariant): New.
22568         * gimple-range-gori.cc (gori_map::set_range_invariant): New.
22569         (gori_map::m_maybe_invariant): Rename from all_outgoing.
22570         (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
22571         (gori_map::is_export_p): Ditto.
22572         (gori_map::calculate_gori): Ditto.
22573         (gori_compute::set_range_invariant): New.
22574         * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
22575         invariant for pointers evaluating to [1, +INF].
22577 2021-01-29  Richard Biener  <rguenther@suse.de>
22579         PR rtl-optimization/98863
22580         * config/i386/i386-features.c (remove_partial_avx_dependency):
22581         Do not perform DF analysis.
22582         (pass_data_remove_partial_avx_dependency): Remove
22583         TODO_df_finish.
22585 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
22587         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
22588         builtin generator macros.
22589         * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
22590         Define.
22591         * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
22592         instead of inline asm.
22593         (vmull_n_s32): Likewise.
22594         (vmull_n_u16): Likewise.
22595         (vmull_n_u32): Likewise.
22597 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22599         * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
22600         Define builtins.
22601         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
22602         Rename to...
22603         (aarch64_<sur>abdl2<mode>): ... This.
22604         (<sur>sadv16qi): Adjust use of above.
22605         * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
22606         builtin.
22607         (vabdl_high_s16): Likewise.
22608         (vabdl_high_s32): Likewise.
22609         (vabdl_high_u8): Likewise.
22610         (vabdl_high_u16): Likewise.
22611         (vabdl_high_u32): Likewise.
22613 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22615         * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
22616         builtin.
22617         (uabal2): Likewise.
22618         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
22619         pattern.
22620         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
22621         UNSPEC_UABAL2.
22622         * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
22623         builtin.
22624         (vabal_high_s16): Likewise.
22625         (vabal_high_s32): Likewise.
22626         (vabal_high_u8): Likewise.
22627         (vabal_high_u16): Likewise.
22628         (vabal_high_u32): Likewise.
22629         * config/aarch64/iterators.md (ABAL2): New mode iterator.
22630         (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
22632 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22634         * config/aarch64/aarch64-simd-builtins.def (sabal): Define
22635         builtin.
22636         (uabal): Likewise.
22637         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
22638         Rename to...
22639         (aarch64_<sur>abal<mode>): ... This
22640         (<sur>sadv16qi): Adust use of the above.
22641         * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
22642         builtin.
22643         (vabal_s16): Likewise.
22644         (vabal_s32): Likewise.
22645         (vabal_u8): Likewise.
22646         (vabal_u16): Likewise.
22647         (vabal_u32): Likewise.
22649 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22651         * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
22652         Define builtins.
22653         * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
22654         Define.
22655         * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
22656         builtin.
22657         (vaddlv_s16): Likewise.
22658         (vaddlv_u8): Likewise.
22659         (vaddlv_u16): Likewise.
22660         (vaddlvq_s8): Likewise.
22661         (vaddlvq_s16): Likewise.
22662         (vaddlvq_s32): Likewise.
22663         (vaddlvq_u8): Likewise.
22664         (vaddlvq_u16): Likewise.
22665         (vaddlvq_u32): Likewise.
22666         (vaddlv_s32): Likewise.
22667         (vaddlv_u32): Likewise.
22668         * config/aarch64/iterators.md (VDQV_L): New mode iterator.
22669         (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
22670         (Vwstype): New mode attribute.
22671         (Vwsuf): Likewise.
22672         (VWIDE_S): Likewise.
22673         (USADDLV): New int iterator.
22674         (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
22676 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
22678         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
22679         builtin generator macros.
22680         * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
22681         Define.
22682         * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
22683         instead of inline asm.
22684         (vmlsl_lane_s32): Likewise.
22685         (vmlsl_lane_u16): Likewise.
22686         (vmlsl_lane_u32): Likewise.
22687         (vmlsl_laneq_s16): Likewise.
22688         (vmlsl_laneq_s32): Likewise.
22689         (vmlsl_laneq_u16): Likewise.
22690         (vmlsl_laneq_u32): Likewise.
22692 2021-01-29  Richard Biener  <rguenther@suse.de>
22694         * doc/invoke.texi (--param max-gcse-memory): Document unit
22695         of size.
22696         * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
22697         * params.opt (--param max-gcse-memory): Adjust default and
22698         document unit of size.
22700 2021-01-29  Richard Biener  <rguenther@suse.de>
22702         PR rtl-optimization/98863
22703         * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
22704         HOST_WIDE_INT for the memory estimate.
22706 2021-01-29  Bin Cheng  <bin.cheng@linux.alibaba.com>
22707             Richard Biener  <rguenther@suse.de>
22709         PR tree-optimization/97627
22710         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
22711         Do not analyze fake edges.
22713 2021-01-29  Richard Biener  <rguenther@suse.de>
22715         PR rtl-optimization/98144
22716         * df.h (df_mir_bb_info): Add con_visited member.
22717         * df-problems.c (df_mir_alloc): Initialize con_visited,
22718         do not fully populate IN and OUT.
22719         (df_mir_reset): Likewise.
22720         (df_mir_confluence_0): Set con_visited.
22721         (df_mir_confluence_n): Properly handle implicitely
22722         fully populated IN and OUT as designated by con_visited
22723         and update con_visited accordingly.
22725 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
22727         PR target/98849
22728         * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
22729         vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
22730         && !TARGET_REALLY_IWMMXT to conditions.
22732 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
22734         PR debug/98331
22735         * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
22736         a BARRIER.
22738 2021-01-28  Marek Polacek  <polacek@redhat.com>
22740         PR c++/94775
22741         * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
22742         the main variant, maybe reset it in its variants too.
22743         * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
22744         (check_aligned_type): Check if TYPE_USER_ALIGN match.
22746 2021-01-28  Christophe Lyon  <christophe.lyon@linaro.org>
22748         PR target/98730
22749         * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
22750         of constant zero for comparisons.
22752 2021-01-28  Michael Meissner  <meissner@linux.ibm.com>
22754         * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
22755         support for mapping built-in function names for long double
22756         built-in functions if long double is IEEE 128-bit.
22758 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
22760         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
22761         builtin generator macros.
22762         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
22763         Define.
22764         * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
22765         instead of inline asm.
22766         (vmlsl_n_s32): Likewise.
22767         (vmlsl_n_u16): Likewise.
22768         (vmlsl_n_u32): Likewise.
22770 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
22772         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
22773         builtin generator macros.
22774         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
22775         Define.
22776         * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
22777         instead of inline asm.
22778         (vmlal_n_s32): Likewise.
22779         (vmlal_n_u16): Likewise.
22780         (vmlal_n_u32): Likewise.
22782 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22784         * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
22785         builtin.
22786         * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
22787         Define.
22788         (aarch64_shrn2<mode>_insn_be): Likewise.
22789         (aarch64_shrn2<mode>): Likewise.
22790         * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
22791         using builtins.
22792         (vshrn_high_n_s32): Likewise.
22793         (vshrn_high_n_s64): Likewise.
22794         (vshrn_high_n_u16): Likewise.
22795         (vshrn_high_n_u32): Likewise.
22796         (vshrn_high_n_u64): Likewise.
22798 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22800         * config/aarch64/aarch64-simd-builtins.def (shrn): Define
22801         builtin.
22802         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
22803         Define.
22804         (aarch64_shrn<mode>_insn_be): Likewise.
22805         (aarch64_shrn<mode>): Likewise.
22806         * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
22807         builtins.
22808         (vshrn_n_s32): Likewise.
22809         (vshrn_n_s64): Likewise.
22810         (vshrn_n_u16): Likewise.
22811         (vshrn_n_u32): Likewise.
22812         (vshrn_n_u64): Likewise.
22813         * config/aarch64/iterators.md (vn_mode): New mode attribute.
22815 2021-01-28  Richard Biener  <rguenther@suse.de>
22817         PR rtl-optimization/80960
22818         * dse.c (check_mem_read_rtx): Call get_addr on the
22819         offsetted address.
22821 2021-01-28  Xionghu Luo  <luoxhu@linux.ibm.com>
22822             David Edelsohn  <dje.gcc@gmail.com>
22824         PR target/98799
22825         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22826         Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
22827         when -m32.
22828         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
22829         Delete.
22830         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
22831         wrapper call rs6000_expand_vector_set_var for cleanup.  Call
22832         rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
22833         directly.
22834         (rs6000_expand_vector_set_var): Delete.
22835         (rs6000_expand_vector_set_var_p9): Make static.
22836         (rs6000_expand_vector_set_var_p8): Make static.
22838 2021-01-28  Xing GUO  <higuoxing@gmail.com>
22840         * common/config/riscv/riscv-common.c
22841         (riscv_subset_list::parsing_subset_version): Fix -march option parsing
22842         when `p` extension exists.
22844 2021-01-27  Vladimir N. Makarov  <vmakarov@redhat.com>
22846         PR rtl-optimization/97684
22847         * ira.c (ira): Call ira_set_pseudo_classes before
22848         update_equiv_regs when it is necessary.
22850 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
22852         PR target/98853
22853         * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
22854         %w0, %w1 and %2 instead of %0, %1 and %2.
22856 2021-01-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
22858         * config/rs6000/genfusion.pl: New script to generate
22859         define_insn_and_split patterns so combine can arrange fused
22860         instructions next to each other.
22861         * config/rs6000/fusion.md: New file, generated fused instruction
22862         patterns for combine.
22863         * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
22864         (non_update_memory_operand): New predicate.
22865         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
22866         OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
22867         POWERPC_MASKS.
22868         * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
22869         prototype.
22870         * config/rs6000/rs6000.c (rs6000_option_override_internal):
22871         Automatically set OPTION_MASK_P10_FUSION and
22872         OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
22873         (rs600_opt_masks): Allow -mpower10-fusion
22874         in function attributes.
22875         (address_is_non_pfx_d_or_x): New function.
22876         * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
22877         * config/rs6000/rs6000.md: Include fusion.md.
22878         * config/rs6000/rs6000.opt: Add -mpower10-fusion
22879         and -mpower10-fusion-ld-cmpi.
22880         * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
22882 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
22884         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
22885         builtin generator macros.
22886         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
22887         Rename to...
22888         (aarch64_<su>mlal<mode>): This.
22889         * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
22890         instead of inline asm.
22891         (vmlal_s16): Likewise.
22892         (vmlal_s32): Likewise.
22893         (vmlal_u8): Likewise.
22894         (vmlal_u16): Likewise.
22895         (vmlal_u32): Likewise.
22897 2021-01-27  Richard Biener  <rguenther@suse.de>
22899         PR tree-optimization/98854
22900         * tree-vect-slp.c (vect_build_slp_tree_2): Also build
22901         PHIs from scalars when the number of CTORs matches the
22902         number of children.
22904 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
22906         * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
22907         generator macro.
22908         * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
22909         Rename to...
22910         (aarch64_mls_n<mode>): This.
22911         * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
22912         instead of asm.
22913         (vmls_n_s32): Likewise.
22914         (vmls_n_u16): Likewise.
22915         (vmls_n_u32): Likewise.
22916         (vmlsq_n_s16): Likewise.
22917         (vmlsq_n_s32): Likewise.
22918         (vmlsq_n_u16): Likewise.
22919         (vmlsq_n_u32): Likewise.
22921 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
22923         * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
22924         generator macro.
22925         * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
22926         than asm.
22927         (vmls_s16): Likewise.
22928         (vmls_s32): Likewise.
22929         (vmls_u8): Likewise.
22930         (vmls_u16): Likewise.
22931         (vmls_u32): Likewise.
22932         (vmlsq_s8): Likewise.
22933         (vmlsq_s16): Likewise.
22934         (vmlsq_s32): Likewise.
22935         (vmlsq_u8): Likewise.
22936         (vmlsq_u16): Likewise.
22937         (vmlsq_u32): Likewise.
22939 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
22941         * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
22942         generator macro.
22943         * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
22944         Rename to...
22945         (aarch64_mla_n<mode>): This.
22946         * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
22947         instead of asm.
22948         (vmla_n_s32): Likewise.
22949         (vmla_n_u16): Likewise.
22950         (vmla_n_u32): Likewise.
22951         (vmlaq_n_s16): Likewise.
22952         (vmlaq_n_s32): Likewise.
22953         (vmlaq_n_u16): Likewise.
22954         (vmlaq_n_u32): Likewise.
22956 2021-01-27  liuhongt  <hongtao.liu@intel.com>
22958         PR target/98833
22959         * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
22960         (*sse2_eq<mode>3): Ditto.
22962 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
22964         * tree-pass.h (PROP_trees): Rename to ...
22965         (PROP_gimple): ... this.
22966         * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
22967         * passes.c (execute_function_dump, execute_function_todo,
22968         execute_one_ipa_transform_pass, execute_one_pass): Likewise.
22969         * varpool.c (ctor_for_folding): Likewise.
22971 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
22973         PR tree-optimization/97260
22974         * varpool.c: Include tree-pass.h.
22975         (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
22976         non-TREE_SIDE_EFFECTS automatic variables.
22978 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
22980         * doc/cpp.texi (__cplusplus): Document value for -std=c++23
22981         or -std=gnu++23.
22982         * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
22983         * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
22984         (gen_compile_unit_die): Recognise C++23.
22986 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
22988         PR bootstrap/98839
22989         * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
22990         in comparison.
22992 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
22994         PR target/98681
22995         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
22996         Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
22997         and INTVAL (mask).  Add && INTVAL (mask) > 0 condition.
22999 2021-01-26  Richard Biener  <rguenther@suse.de>
23001         * gimple-pretty-print.c (dump_binary_rhs): Handle
23002         VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
23004 2021-01-26  Richard Biener  <rguenther@suse.de>
23006         PR middle-end/98726
23007         * tree.h (vector_cst_int_elt): Remove.
23008         * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
23009         make static.
23011 2021-01-26  Andrew Stubbs  <ams@codesourcery.com>
23013         * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
23014         for V64DFmode min/max reductions.
23016 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
23018         * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
23019         as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
23020         two halves, one with x and the other with const0_rtx, ordered
23021         depending on endianity.
23023 2021-01-26  Alexandre Oliva  <oliva@adacore.com>
23025         * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
23026         temporaries not seen in binding block, and not about to be
23027         added as gimple variables.
23029 2021-01-25  Martin Sebor  <msebor@redhat.com>
23031         PR c++/98646
23032         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
23034 2021-01-25  Martin Liska  <mliska@suse.cz>
23036         * value-prof.c (get_nth_most_common_value): Use %s instead
23037         of %qs string.
23039 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
23041         PR debug/98811
23042         * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
23043         readelf -wi is able to read the emitted .debug_info back.
23044         * configure: Regenerated.
23046 2021-01-25  Martin Liska  <mliska@suse.cz>
23048         PR gcov-profile/98739
23049         * common.opt: Add missing sign symbol.
23050         * value-prof.c (get_nth_most_common_value): Restore handling
23051         of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
23052         PROFILE_REPRODUCIBILITY_MULTITHREADED.
23054 2021-01-25  Richard Biener  <rguenther@suse.de>
23056         PR middle-end/98807
23057         * tree.c (vector_element_bits): Always use precision of
23058         the element type for boolean vectors.
23060 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23062         * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
23063         (ENDFILE_SPEC): Evaluate qnolinkcmds.
23065 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23067         * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
23068         nostartfiles handling since this is already done by
23069         LINK_COMMAND_SPEC.  Evaluate qnolinkcmds.
23070         (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
23071         is already done by LINK_COMMAND_SPEC.
23072         (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
23073         this is already done by LINK_COMMAND_SPEC.  Remove qnolinkcmds
23074         evaluation.
23076 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
23078         PR testsuite/98771
23079         * fold-const-call.c (host_size_t_cst_p): Renamed to ...
23080         (size_t_cst_p): ... this.  Check and store unsigned HOST_WIDE_INT
23081         value rather than host size_t.
23082         (fold_const_call): Change type of s2 from size_t to
23083         unsigned HOST_WIDE_INT.  Use size_t_cst_p instead of
23084         host_size_t_cst_p.  For strncmp calls, pass MIN (s2, SIZE_MAX)
23085         instead of s2 as last argument.
23087 2021-01-25  Tamar Christina  <tamar.christina@arm.com>
23089         * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
23090         VCMLA_OP, VCMUL_OP): New.
23091         * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
23092         * config/arm/neon.md (cmul<conj_op><mode>3): New.
23093         * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
23094         UNSPEC_VCMUL_CONJ): New.
23095         * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
23096         cml<fcmac1><conj_op><mode>4): New.
23098 2021-01-23  Jakub Jelinek  <jakub@redhat.com>
23100         PR testsuite/97301
23101         * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
23103 2021-01-22  Jonathan Wright  <jonathan.wright@arm.com>
23105         * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
23106         generator macro.
23107         * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
23108         than asm.
23109         (vmla_s16): Likewise.
23110         (vmla_s32): Likewise.
23111         (vmla_u8): Likewise.
23112         (vmla_u16): Likewise.
23113         (vmla_u32): Likewise.
23114         (vmlaq_s8): Likewise.
23115         (vmlaq_s16): Likewise.
23116         (vmlaq_s32): Likewise.
23117         (vmlaq_u8): Likewise.
23118         (vmlaq_u16): Likewise.
23119         (vmlaq_u32): Likewise.
23121 2021-01-22  David Malcolm  <dmalcolm@redhat.com>
23123         * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
23124         directive.
23126 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
23128         PR debug/98796
23129         * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
23130         filenames to emit, still emit the required 0 index directory and
23131         filename entries that match DW_AT_comp_dir and DW_AT_name of the
23132         compilation unit.
23134 2021-01-22  Marek Polacek  <polacek@redhat.com>
23136         PR c++/98545
23137         * doc/invoke.texi: Update C++ ABI Version 15 description.
23139 2021-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23141         PR tree-optimization/98766
23142         * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
23143         comparing against type size with param_avoid_fma_max_bits.
23145 2021-01-22  Richard Biener  <rguenther@suse.de>
23147         PR middle-end/98793
23148         * tree.c (vector_element_bits): Key single-bit bool vector on
23149         integer mode rather than not vector mode.
23151 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
23153         PR target/98093
23154         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23155         Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
23156         platforms.
23157         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
23158         to call different path for P8 and P9.
23159         (rs6000_expand_vector_set_var_p9): New function.
23160         (rs6000_expand_vector_set_var_p8): New function.
23162 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
23164         PR target/79251
23165         PR target/98065
23166         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23167         Ajdust variable index vec_insert from address dereference to
23168         ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
23169         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
23170         New declaration.
23171         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
23173 2021-01-22  Martin Liska  <mliska@suse.cz>
23175         PR gcov-profile/98739
23176         * profile.c (compute_value_histograms): Drop time profile for
23177         -fprofile-reproducible=multithreaded.
23179 2021-01-22  Nathan Sidwell  <nathan@acm.org>
23181         * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
23182         existence here.
23184 2021-01-22  Richard Biener  <rguenther@suse.de>
23186         PR middle-end/98773
23187         * tree-data-ref.c (initalize_matrix_A): Revert previous
23188         change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
23190 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
23192         PR tree-optimization/90248
23193         * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
23194         X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
23195         simplifications.
23196         (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
23197         X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
23199 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
23201         PR tree-optimization/98255
23202         * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
23203         extend index - low_bound from sizetype's precision rather than index
23204         precision.
23205         (get_addr_base_and_unit_offset_1): Likewise.
23206         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
23207         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
23209 2021-01-22  Richard Biener  <rguenther@suse.de>
23211         PR tree-optimization/98786
23212         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
23213         adding new uses of abnormals.  Verify we deal with a conditional
23214         conversion.
23216 2021-01-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23218         PR target/98636
23219         * optc-save-gen.awk: Add arm_fp16_format to checked_options.
23221 2021-01-22  liuhongt  <hongtao.liu@intel.com>
23223         PR target/96891
23224         PR target/98348
23225         * config/i386/sse.md (VI_128_256): New mode iterator.
23226         (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
23227          *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
23228          *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
23229         define_insn_and_split to lower avx512 vector comparison to avx
23230         version when dest is vector.
23231         (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
23232         define_insn_and_split for negating the comparison result.
23233         * config/i386/predicates.md (float_vector_all_ones_operand):
23234         New predicate.
23235         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
23236         general NOT operator without UNSPEC_MASKOP.
23238 2021-01-21  Vladimir N. Makarov  <vmakarov@redhat.com>
23240         PR rtl-optimization/98777
23241         * lra-int.h (lra_pmode_pseudo): New extern.
23242         * lra.c (lra_pmode_pseudo): New global.
23243         (lra): Set it up.
23244         * lra-eliminations.c (eliminate_regs_in_insn): Use it.
23246 2021-01-21  Ilya Leoshkevich  <iii@linux.ibm.com>
23248         * fwprop.c (fwprop_propagation::classify_result): Allow
23249         (subreg (mem)) simplifications.
23251 2021-01-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23253         * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
23254         Split into...
23255         (aarch64_sqdmlal<mode>): ... This...
23256         (aarch64_sqdmlsl<mode>): ... And this.
23257         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
23258         (aarch64_sqdmlal_lane<mode>): ... This...
23259         (aarch64_sqdmlsl_lane<mode>): ... And this.
23260         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
23261         (aarch64_sqdmlsl_laneq<mode>): ... This...
23262         (aarch64_sqdmlal_laneq<mode>):  ... And this.
23263         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
23264         (aarch64_sqdmlsl_n<mode>): ... This...
23265         (aarch64_sqdmlal_n<mode>): ... And this.
23266         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
23267         (aarch64_sqdmlal2<mode>_internal): ... This...
23268         (aarch64_sqdmlsl2<mode>_internal): ... And this.
23270 2021-01-21  Christophe Lyon  <christophe.lyon@linaro.org>
23272         * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
23274 2021-01-21  Andrea Corallo  <andrea.corallo@arm.com>
23276         PR target/96372
23277         * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
23279 2021-01-21  liuhongt  <hongtao.liu@intel.com>
23281         PR rtl-optimization/98694
23282         * regcprop.c (copy_value): If SRC had been assigned a mode
23283         narrower than the copy, we can't link DEST into the chain even
23284         they have same hard_regno_nregs(i.e. HImode/SImode in i386
23285         backend).
23287 2021-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23289         * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
23290         Convert to define_insn_and_split.  Split into simple move when moving
23291         bottom element.
23293 2021-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
23295         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
23296         Adjust comment.  Simplify code.
23298 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
23300         PR debug/98765
23301         * dwarf2out.c (reset_indirect_string): Also reset indirect strings
23302         with DW_FORM_line_strp form.
23303         (prune_unused_types_update_strings): Don't add into debug_str_hash
23304         indirect strings with DW_FORM_line_strp form.
23305         (adjust_name_comp_dir): New function.
23306         (dwarf2out_finish): Call it on CU DIEs after resetting
23307         debug_line_str_hash.
23309 2021-01-20  Vladimir N. Makarov  <vmakarov@redhat.com>
23311         PR rtl-optimization/98722
23312         * lra-eliminations.c (eliminate_regs_in_insn): Check that target
23313         has no 3-op add insn to transform insns containing two pluses.
23315 2021-01-20  Richard Biener  <rguenther@suse.de>
23317         * hwint.h (add_hwi): New function.
23318         (mul_hwi): Likewise.
23319         * tree-data-ref.c (initialize_matrix_A): Properly translate
23320         tree constants and avoid HOST_WIDE_INT_MIN.
23321         (lambda_matrix_row_add): Avoid undefined integer overflow
23322         and return true on such overflow.
23323         (lambda_matrix_right_hermite): Handle overflow from
23324         lambda_matrix_row_add gracefully.  Simplify previous fix.
23325         (analyze_subscript_affine_affine): Likewise.
23327 2021-01-20  Eugene Rozenfeld  <erozen@microsoft.com>
23329         PR tree-optimization/96674
23330         * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
23331         x >= y && y != XXX_MIN --> x > y - 1
23333 2021-01-20  Richard Sandiford  <richard.sandiford@arm.com>
23335         PR tree-optimization/98535
23336         * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
23337         If the high and low permutes are the same, remove the high permutes
23338         from the working set and only continue with the low ones.
23340 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
23342         PR tree-optimization/98721
23343         * builtins.c (access_ref::inform_access): Don't assume
23344         SSA_NAME_IDENTIFIER must be non-NULL.  Print messages about
23345         object whenever allocfn is NULL, rather than only when DECL_P
23346         is true.  Use %qE instead of %qD for that.  Formatting fixes.
23348 2021-01-20  Richard Biener  <rguenther@suse.de>
23350         PR tree-optimization/98758
23351         * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
23352         (lambda_matrix_right_hermite): Avoid undefinedness with
23353         signed integer abs and multiplication.
23354         (analyze_subscript_affine_affine): Use lambda_int.
23356 2021-01-20  David Malcolm  <dmalcolm@redhat.com>
23358         PR debug/98751
23359         * dwarf2out.c (output_line_info): Rename static variable
23360         "generation", moving it out of the function to...
23361         (output_line_info_generation): New.
23362         (init_sections_and_labels): Likewise, renaming the variable to...
23363         (init_sections_and_labels_generation): New.
23364         (dwarf2out_c_finalize): Reset the new variables.
23366 2021-01-19  Martin Sebor  <msebor@redhat.com>
23368         PR middle-end/98664
23369         * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
23370         all functions, even if they're not declared artificial or inline.
23371         * tree.c (tree_inlined_location): Use macro expansion location
23372         only if scope traversal fails to expose one.
23374 2021-01-19  Richard Sandiford  <richard.sandiford@arm.com>
23376         PR rtl-optimization/92294
23377         * alias.c (compare_base_symbol_refs): Take an extra parameter
23378         and add the distance between two symbols to it.  Enshrine in
23379         comments that -1 means "either 0 or 1, but we can't tell
23380         which at compile time".
23381         (memrefs_conflict_p): Update call accordingly.
23382         (rtx_equal_for_memref_p): Likewise.  Take the distance between symbols
23383         into account.
23385 2021-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23387         * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
23388         sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
23389         uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
23390         sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
23391         sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
23392         sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
23393         sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
23394         sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
23395         sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
23396         uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
23397         sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
23398         sqmovun): Use NONE flags.
23400 2021-01-19  Richard Biener  <rguenther@suse.de>
23402         PR ipa/98330
23403         * ipa-modref.c (analyze_stmt): Only record a summary for a
23404         direct call.
23406 2021-01-19  Richard Biener  <rguenther@suse.de>
23408         PR middle-end/98638
23409         * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
23411 2021-01-19  Daniel Hellstrom  <daniel@gaisler.com>
23413         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
23414         built-in define __FIX_LEON3FT_TN0018.
23416 2021-01-19  Richard Biener  <rguenther@suse.de>
23418         PR ipa/97673
23419         * tree-inline.c (tree_function_versioning): Set input_location
23420         to UNKNOWN_LOCATION throughout the function.
23422 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
23424         PR fortran/98476
23425         * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
23427 2021-01-19  Martin Jambor  <mjambor@suse.cz>
23429         PR ipa/98690
23430         * ipa-sra.c (ssa_name_only_returned_p): New parameter fun.  Check
23431         whether non-call exceptions allow removal of a statement.
23432         (isra_analyze_call): Pass the appropriate function to
23433         ssa_name_only_returned_p.
23435 2021-01-19  Geng Qi  <gengqi@linux.alibaba.com>
23437         * config/riscv/arch-canonicalize (longext_sort): New function for
23438          sorting 'multi-letter'.
23439         * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
23440         'alts'. The 'arch' may not be the first of 'alts'.
23441         (_expand_combination): Add underline for the 'ext' without '*'.
23442         This is because, a single-letter extension can always be treated well
23443         with a '_' prefix, but it cannot be separated out if it is appended
23444         to a multi-letter.
23446 2021-01-18  Vladimir N. Makarov  <vmakarov@redhat.com>
23448         PR target/97847
23449         * ira.c (ira): Skip abnormal critical edge splitting.
23451 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
23453         PR tree-optimization/98727
23454         * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
23455         second .MUL_OVERFLOW operand for signed multiplication with overflow
23456         checking if the second operand of multiplication is not constant.
23458 2021-01-18  David Edelsohn  <dje.gcc@gmail.com>
23460         * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
23461         defaults to version 4.
23463 2021-01-18  David Malcolm  <dmalcolm@redhat.com>
23465         * attribs.h (fndecl_dealloc_argno): New decl.
23466         * builtins.c (call_dealloc_argno): Split out second half of
23467         function into...
23468         (fndecl_dealloc_argno): New.
23469         * doc/extend.texi (Common Function Attributes): Document the
23470         interaction between the analyzer and the malloc attribute.
23471         * doc/invoke.texi (Static Analyzer Options): Likewise.
23473 2021-01-17  David Edelsohn  <dje.gcc@gmail.com>
23475         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
23476         dwarf_version to 4.
23477         * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
23479 2021-01-17  Martin Jambor  <mjambor@suse.cz>
23481         PR ipa/98222
23482         * cgraph.c (clone_of_p): Check also former_clone_of as we climb
23483         the clone tree.
23485 2021-01-17  Mark Wielaard  <mark@klomp.org>
23487         * common.opt (gdwarf-): Init(5).
23488         * doc/invoke.texi (-gdwarf): Document default to 5.
23490 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
23492         * builtin-types.def
23493         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
23494         to...
23495         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
23496         ...this.  Add extra argument.
23497         * gimplify.c (omp_default_clause): Ensure that event handle is
23498         firstprivate in a task region.
23499         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
23500         (gimplify_adjust_omp_clauses): Likewise.
23501         * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
23502         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
23503         * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
23504         if detach clause specified.  Add detach argument when generating
23505         call to GOMP_task.
23506         * omp-low.c (scan_sharing_clauses): Setup data environment for detach
23507         clause.
23508         (finish_taskreg_scan): Move field for variable containing the event
23509         handle to the front of the struct.
23510         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH.  Fix
23511         ordering.
23512         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
23513         OMP_CLAUSE_DETACH clause.
23514         (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
23515         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
23516         * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
23517         Fix ordering.
23518         (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH.  Fix
23519         ordering.
23520         (walk_tree_1): Handle OMP_CLAUSE_DETACH.
23522 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23524         * config/nios2/t-rtems: Reset all MULTILIB_* variables.  Shorten
23525         multilib directory names.  Use MULTILIB_REQUIRED instead of
23526         MULTILIB_EXCEPTIONS.  Add -mhw-mul -mhw-mulx -mhw-div
23527         -mcustom-fpu-cfg=fph2 multilib.
23529 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23531         * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
23532         (nios2_init_fpu_configs): Provide register values for new
23533         -mcustom-fpu-cfg=fph2 option variant.
23534         * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
23535         variant.
23537 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23539         * config/nios2/nios2.c (nios2_custom_check_insns): Remove
23540         custom instruction warnings.
23542 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
23544         PR tree-optimization/96669
23545         * match.pd ((CST << x) & 1 -> x == 0): New simplification.
23547 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
23549         PR tree-optimization/96271
23550         * passes.def: Pass false argument to first two pass_cd_dce
23551         instances and true to last instance.  Add comment that
23552         last instance rewrites no longer addressed locals.
23553         * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
23554         initialize it.
23555         (pass_cd_dce::set_pass_param): New method.
23556         (pass_cd_dce::execute): Return TODO_update_address_taken from
23557         last cd_dce instance.
23559 2021-01-15  Carl Love  <cel@us.ibm.com>
23561         * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
23562         New defines.
23563         * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
23564         * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
23565         DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
23566         DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
23567         MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
23568         Add builtin define.
23569         (MULH, DIVE, MOD):  Add new BU_P10_OVERLOAD_2 definitions.
23570         * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
23571         VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
23572         New overloaded definitions.
23573         (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
23574         P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
23575         P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
23576         P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
23577         P10V_BUILTIN_MULHU_V4SI]: Add case
23578         statement for builtins.
23579         * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
23580         * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
23581         (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
23582         (vsx_mul_v2di): Add if TARGET_POWER10 statement.
23583         (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
23584         (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
23585         mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
23586         Add define_insn, mode is VIlong.
23587         * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
23588         Add builtin descriptions.
23590 2021-01-15  Eric Botcazou  <ebotcazou@adacore.com>
23592         * final.c (final_start_function_1): Reset force_source_line.
23594 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
23596         PR tree-optimization/96669
23597         * match.pd (((1 << A) & 1) != 0 -> A == 0,
23598         ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
23599         possibly different power of two constants and to right shift too.
23601 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
23603         PR tree-optimization/96681
23604         * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
23605         ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
23606         ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
23607         ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
23609 2021-01-15  Alexandre Oliva  <oliva@adacore.com>
23611         * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
23613 2021-01-15  Tamar Christina  <tamar.christina@arm.com>
23615         * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
23616         cmul<conj_op><mode>3): New.
23617         * config/aarch64/iterators.md (UNSPEC_FCMUL,
23618         UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
23619         UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
23620         FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
23621         sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
23622         (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
23623         (rot_op): Renamed to conj_op.
23624         * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
23625         cmul<conj_op><mode>3): New.
23626         * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
23627         cmul<conj_op><mode>3): New.
23629 2021-01-15  David Malcolm  <dmalcolm@redhat.com>
23631         PR bootstrap/98696
23632         * diagnostic.c
23633         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
23634         Escape the tempfile name when constructing the expected output.
23636 2021-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23638         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
23639         Rename to...
23640         (aarch64_<su>mlsl_hi<mode>): ... This.
23641         (aarch64_<su>mlsl_hi<mode>): Define.
23642         (*aarch64_<su>mlsl<mode): Rename to...
23643         (aarch64_<su>mlsl<mode): ... This.
23644         * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
23645         smlsl_hi, umlsl_hi): Define builtins.
23646         * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
23647         vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
23648         vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
23649         vmlsl_u16, vmlsl_u32): Reimplement with builtins.
23651 2021-01-15  Uroš Bizjak  <ubizjak@gmail.com>
23653         * config/i386/i386-c.c (ix86_target_macros):
23654         Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
23656 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
23658         PR target/88836
23659         * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
23660         * Makefile.in (RTL_SSA_H): New variable.
23661         * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
23662         * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
23663         * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
23664         pass_combine.
23665         * config/aarch64/aarch64-cc-fusion.cc: New file.
23667 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
23669         * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
23670         calling cancel_changes for changes that no longer exist.
23672 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
23674         * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
23675         (function_info::reg_defs): ...this.
23676         * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
23677         (function_info::reg_defs): ...this.
23679 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
23681         PR target/71233
23682         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
23684 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
23686         Revert:
23687         2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
23689         PR target/71233
23690         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
23692 2021-01-15  Richard Biener  <rguenther@suse.de>
23694         PR tree-optimization/96376
23695         * tree-vect-stmts.c (get_load_store_type): Disregard alignment
23696         for VMAT_INVARIANT.
23698 2021-01-15  Martin Liska  <mliska@suse.cz>
23700         * doc/install.texi: Document that some tests need pytest module.
23701         * doc/sourcebuild.texi: Likewise.
23703 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
23705         PR target/71233
23706         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
23708 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
23710         * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
23711         (mve_vshrq_n_u<mode>_imm): Likewise.
23712         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
23713         * config/arm/vec-common.md: ... here.
23715 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
23717         * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
23718         vec-commond.md.
23719         * config/arm/neon.md (vashl<mode>3): Delete.
23720         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
23721         (vasl<mode>3): New expander.
23723 2021-01-15  Richard Biener  <rguenther@suse.de>
23725         PR tree-optimization/98685
23726         * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
23727         of vector extern defs.
23729 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
23731         PR jit/98586
23732         * diagnostic.c (diagnostic_kind_text): Break out this array
23733         from...
23734         (diagnostic_build_prefix): ...here.
23735         (fancy_abort): Detect when diagnostic_initialize has not yet been
23736         called and fall back to a minimal implementation of printing the
23737         ICE, rather than segfaulting in internal_error.
23739 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
23741         * diagnostic.c (diagnostic_initialize): Eliminate
23742         parseable_fixits_p in favor of initializing extra_output_kind from
23743         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
23744         (convert_column_unit): New function, split out from...
23745         (diagnostic_converted_column): ...this.
23746         (print_parseable_fixits): Add "column_unit" and "tabstop" params.
23747         Use them to call convert_column_unit on the column values.
23748         (diagnostic_report_diagnostic): Eliminate conditional on
23749         parseable_fixits_p in favor of a switch statement on
23750         extra_output_kind, passing the appropriate values to the new
23751         params of print_parseable_fixits.
23752         (selftest::test_print_parseable_fixits_none): Update for new
23753         params of print_parseable_fixits.
23754         (selftest::test_print_parseable_fixits_insert): Likewise.
23755         (selftest::test_print_parseable_fixits_remove): Likewise.
23756         (selftest::test_print_parseable_fixits_replace): Likewise.
23757         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
23758         New.
23759         (selftest::diagnostic_c_tests): Call it.
23760         * diagnostic.h (enum diagnostics_extra_output_kind): New.
23761         (diagnostic_context::parseable_fixits_p): Delete field in favor
23762         of...
23763         (diagnostic_context::extra_output_kind): ...this new field.
23764         * doc/invoke.texi (Environment Variables): Add
23765         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
23766         * opts.c (common_handle_option): Update handling of
23767         OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
23768         fields.
23770 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
23772         * tree-vect-slp-patterns.c (class complex_operations_pattern,
23773         complex_operations_pattern::matches,
23774         complex_operations_pattern::recognize,
23775         complex_operations_pattern::build): New.
23776         (slp_patterns): Use it.
23778 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
23780         * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
23781         * optabs.def (cmls_optab, cmls_conj_optab): New.
23782         * doc/md.texi: Document them.
23783         * tree-vect-slp-patterns.c (class complex_fms_pattern,
23784         complex_fms_pattern::matches, complex_fms_pattern::recognize,
23785         complex_fms_pattern::build): New.
23787 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
23789         * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
23790         * optabs.def (cmla_optab, cmla_conj_optab): New.
23791         * doc/md.texi: Document them.
23792         * tree-vect-slp-patterns.c (vect_match_call_p,
23793         class complex_fma_pattern, vect_slp_reset_pattern,
23794         complex_fma_pattern::matches, complex_fma_pattern::recognize,
23795         complex_fma_pattern::build): New.
23797 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
23799         * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
23800         * optabs.def (cmul_optab, cmul_conj_optab): New.
23801         * doc/md.texi: Document them.
23802         * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
23803         vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
23804         vect_build_combine_node, class complex_mul_pattern,
23805         complex_mul_pattern::matches, complex_mul_pattern::recognize,
23806         complex_mul_pattern::build): New.
23808 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
23810         * tree-vect-slp.c (optimize_load_redistribution_1): New.
23811         (optimize_load_redistribution, vect_is_slp_load_node): New.
23812         (vect_match_slp_patterns): Use it.
23814 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
23816         * tree-vect-slp-patterns.c (complex_add_pattern::build):
23817         Elide nodes.
23819 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
23821         * config/gcn/mkoffload.c (main): Create an offload image only in
23822         64-bit configurations.
23824 2021-01-14  H.J. Lu  <hjl.tools@gmail.com>
23826         PR target/98667
23827         * config/i386/i386-options.c (ix86_option_override_internal):
23828         Issue an error for -fcf-protection with CF_BRANCH when compiling
23829         for 32-bit non-TARGET_CMOV targets.
23831 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
23833         PR target/98671
23834         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
23835         Remove declaration and initialization of shadow variable "ret".
23836         (ix86_option_override_internal): Remove delcaration of
23837         shadow variable "i".  Redeclare shadowed variable to unsigned.
23838         * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
23839         * config/i386/i386-builtins.c (get_builtin_code_for_version):
23840         Update for redeclaration.
23841         * config/i386/i386.h (pta_size): Ditto.
23843 2021-01-14  Richard Biener  <rguenther@suse.de>
23845         PR tree-optimization/98674
23846         * tree-data-ref.c (base_supports_access_fn_components_p): New.
23847         (initialize_data_dependence_relation): For two bases without
23848         possible access fns resort to type size equality when determining
23849         shape compatibility.
23851 2021-01-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23853         PR target/66791
23854         * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
23855         <=, >= operators in vcle and vcge intrinsics respectively.
23856         * config/arm/arm_neon_builtins.def: Remove entry for
23857         vcge and vcgeu.
23859 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
23861         PR target/98671
23862         * config/i386/i386-options.c (ix86_function_specific_save):
23863         Remove redundant assignment to opts->x_ix86_branch_cost.
23864         * config/i386/i386.c (ix86_prefetch_sse):
23865         Rename from x86_prefetch_sse.  Update all uses.
23866         * config/i386/i386.h: Update for rename.
23867         * config/i386/i386-options.h: Ditto.
23869 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
23871         PR target/98670
23872         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
23873         *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
23874         Use Bm instead of m for non-avx.  Add isa attribute.
23876 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
23878         PR tree-optimization/96688
23879         * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
23880         ~X can be simplified.
23882 2021-01-14  Richard Sandiford  <richard.sandiford@arm.com>
23884         * tree-vect-stmts.c (vect_model_load_cost): Account for unused
23885         IFN_LOAD_LANES results.
23887 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23889         * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
23890         Define.
23891         (aarch64_xtn<mode>): Likewise.
23892         * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
23893         Define
23894         builtins.
23895         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
23896         builtin.
23897         (vmovl_s16): Likewise.
23898         (vmovl_s32): Likewise.
23899         (vmovl_u8): Likewise.
23900         (vmovl_u16): Likewise.
23901         (vmovl_u32): Likewise.
23902         (vmovn_s16): Likewise.
23903         (vmovn_s32): Likewise.
23904         (vmovn_s64): Likewise.
23905         (vmovn_u16): Likewise.
23906         (vmovn_u32): Likewise.
23907         (vmovn_u64): Likewise.
23909 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23911         * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
23912         Define.
23913         (aarch64_<su>qxtn2<mode>_be): Likewise.
23914         (aarch64_<su>qxtn2<mode>): Likewise.
23915         * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
23916         Define builtins.
23917         * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
23918         (su): Handle ss_truncate and us_truncate.
23919         * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
23920         builtin.
23921         (vqmovn_high_s32): Likewise.
23922         (vqmovn_high_s64): Likewise.
23923         (vqmovn_high_u16): Likewise.
23924         (vqmovn_high_u32): Likewise.
23925         (vqmovn_high_u64): Likewise.
23927 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23929         * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
23930         Define.
23931         (aarch64_xtn2<mode>_be): Likewise.
23932         (aarch64_xtn2<mode>): Likewise.
23933         * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
23934         builtins.
23935         * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
23936         builtins.
23937         (vmovn_high_s32): Likewise.
23938         (vmovn_high_s64): Likewise.
23939         (vmovn_high_u16): Likewise.
23940         (vmovn_high_u32): Likewise.
23941         (vmovn_high_u64): Likewise.
23943 2021-01-13  Stafford Horne  <shorne@gmail.com>
23945         * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
23947 2021-01-13  Stafford Horne  <shorne@gmail.com>
23949         * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
23951 2021-01-13  Stafford Horne  <shorne@gmail.com>
23953         * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
23954           define for __or1k_hard_float__.
23956 2021-01-13  Stafford Horne  <shorne@gmail.com>
23958         * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
23959         (PROFILE_HOOK): Define to call _mcount.
23960         (FUNCTION_PROFILER): Change from abort to no-op.
23962 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
23964         PR tree-optimization/96691
23965         * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
23966         (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
23967         (~D ^ C) or (D ^ C) can be simplified.
23969 2021-01-13  Richard Biener  <rguenther@suse.de>
23971         PR tree-optimization/92645
23972         * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
23973         until after vector lowering.
23975 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
23977         * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
23978         to SVE_I.
23979         (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
23980         (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
23982 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
23984         * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
23985         to SVE_I.
23986         (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
23987         (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
23989 2021-01-13  Richard Biener  <rguenther@suse.de>
23991         PR tree-optimization/92645
23992         * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
23993         BIT_FIELD_REF argument.
23994         (vect_build_slp_tree_2): Record the desired vector type
23995         on the external vector def.
23996         (vectorizable_slp_permutation): Handle required punning
23997         of existing vector defs.
23999 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
24001         * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
24003 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
24005         * config/sh/sh.md (movsf_ie): Remove operands[2] test.
24007 2021-01-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24009         * config.gcc [$target == *-*-gnu*]: Enable
24010         'default_gnu_indirect_function'.
24012 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
24014         PR target/95905
24015         * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
24016         registers before calling targetm.vectorize.vec_perm_const, only after
24017         that.
24018         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
24019         two argument permutation when one operand is zero vector and only
24020         after that force operands into registers.
24021         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
24022         define_insn_and_split pattern.
24023         (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
24024         (*avx512f_zero_extendv16hiv16si2_1): Likewise.
24025         (*avx2_zero_extendv8hiv8si2_1): Likewise.
24026         (*avx512f_zero_extendv8siv8di2_1): Likewise.
24027         (*avx2_zero_extendv4siv4di2_1): Likewise.
24028         * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
24029         into registers.
24030         * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
24031         * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
24032         * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
24033         * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
24034         * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
24035         * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise.  Use std::swap.
24037 2021-01-13  Martin Liska  <mliska@suse.cz>
24039         PR tree-optimization/98455
24040         * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
24041         Record also virtual PHIs.
24042         (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
24043         conditionally.
24045 2021-01-13  Jonathan Wakely  <jwakely@redhat.com>
24047         * doc/invoke.texi (C++ Modules): Fix typos.
24049 2021-01-13  Richard Biener  <rguenther@suse.de>
24051         PR tree-optimization/98640
24052         * tree-ssa-sccvn.c (visit_nary_op): Do not try to
24053         handle plus or minus from a truncated operand to be
24054         sign-extended.
24056 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
24058         PR target/96938
24059         * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
24060         define_insn_and_split patterns.
24061         (splitter after *btr<mode>_2): New splitter.
24063 2021-01-13  Martin Liska  <mliska@suse.cz>
24065         PR ipa/98652
24066         * cgraphunit.c (analyze_functions): Remove dead code.
24068 2021-01-13  Qian Jianhua  <qianjh@cn.fujitsu.com>
24070         * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
24071         * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
24072         (a64fx_regmove_cost, a64fx_vector_cost): New.
24073         (a64fx_tunings): Use the new added cost tables.
24075 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
24077         PR target/95905
24078         * config/i386/predicates.md (pmovzx_parallel): New predicate.
24079         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
24080         define_insn_and_split pattern.
24081         (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
24082         (*sse4_1_zero_extendv2siv2di2_3): Likewise.
24084 2021-01-13  Julian Brown  <julian@codesourcery.com>
24086         * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
24087         to fix v0 register.
24089 2021-01-13  Julian Brown  <julian@codesourcery.com>
24091         * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
24092         on entry to a BB.
24094 2021-01-13  Julian Brown  <julian@codesourcery.com>
24096         * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
24097         for reciprocal-approximation instructions.
24098         (div<mode>3): Use fused multiply-accumulate operations for reciprocal
24099         refinement and division result.
24100         * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
24102 2021-01-13  Julian Brown  <julian@codesourcery.com>
24104         * config/gcn/gcn-valu.md (subdf): Rename to...
24105         (subdf3): This.
24107 2021-01-12  Martin Liska  <mliska@suse.cz>
24109         * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
24111 2021-01-12  Andrea Corallo  <andrea.corallo@arm.com>
24113         * function-abi.h: Fix typo.
24115 2021-01-12  Christophe Lyon  <christophe.lyon@linaro.org>
24117         PR target/97875
24118         PR target/97875
24119         * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
24120         (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
24121         (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
24122         (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
24123         (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
24124         (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
24125         (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
24126         (ARM_HAVE_NEON_V2DI_LDST): Likewise.
24127         (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
24128         (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
24129         (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
24130         (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
24131         (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
24132         (ARM_HAVE_V2DI_LDST): Likewise.
24133         * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
24134         (*movmisalign<mode>_mve_load): New pattern.
24135         * config/arm/neon.md (movmisalign<mode>): Move to ...
24136         * config/arm/vec-common.md: ... here.
24138 2021-01-12  Vladimir N. Makarov  <vmakarov@redhat.com>
24140         PR target/97969
24141         * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
24142         of pattern 'plus (plus (hard reg, const), pseudo)'.
24144 2021-01-12  Richard Biener  <rguenther@suse.de>
24146         PR tree-optimization/98550
24147         * tree-vect-slp.c (vect_record_max_nunits): Check whether
24148         the group size is a multiple of the vector element count.
24149         (vect_build_slp_tree_1): When we need to fail because
24150         the vector type choosen causes unrolling do so lazily
24151         without affecting matches only at the end to guide group splitting.
24153 2021-01-12  Martin Liska  <mliska@suse.cz>
24155         PR c++/97284
24156         * optc-save-gen.awk: Compare also n_target_save vars with
24157         strcmp.
24159 2021-01-12  Martin Liska  <mliska@suse.cz>
24161         * gcov.c (source_info::debug): New.
24162         (print_usage): Add --debug (-D) option.
24163         (process_args): Likewise.
24164         (generate_results): Call src->debug after
24165         accumulate_line_counts.
24166         (read_graph_file): Properly assign id for EXIT_BLOCK.
24167         * profile.c (branch_prob): Dump function body before it is
24168         instrumented.
24170 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
24172         PR tree-optimization/98629
24173         * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
24174         unless returning non-zero.
24176 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
24178         PR tree-optimization/95731
24179         * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
24180         x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
24181         (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
24182         only after optimize_range_tests_var_bound.
24184 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
24186         * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
24187         * configure: Regenerated.
24189 2021-01-12  liuhongt  <hongtao.liu@intel.com>
24191         PR target/98612
24192         * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
24193         Deleted.
24194         * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
24195         dead code.
24197 2021-01-12  Alexandre Oliva  <oliva@adacore.com>
24199         * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
24200         declare.
24201         (auto_end_imm_use_stmt_traverse): New struct.
24202         (FOR_EACH_IMM_USE_STMT): Use it.
24203         (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
24204         along with uses...
24205         * gimple-ssa-strength-reduction.c: ... here, ...
24206         * graphite-scop-detection.c: ... here, ...
24207         * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
24208         * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
24209         * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
24210         * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
24211         * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
24212         * tree-vect-slp.c: ... and here, ...
24213         * doc/tree-ssa.texi: ... and the example here.
24215 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
24217         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
24218         SVE_FULL_I to SVE_I.  Generate an UNSPEC_PRED_X.
24219         (*sdiv_pow2<mode>3): New pattern.
24220         (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
24221         Wrap the ASRD in an UNSPEC_PRED_X.
24222         (*cond_<sve_int_op><mode>_2): Likewise.  Replace the UNSPEC_PRED_X
24223         predicate with a constant PTRUE, if it isn't already.
24224         (*cond_<sve_int_op><mode>_z): Replace with...
24225         (*cond_<sve_int_op><mode>_any): ...this new pattern.
24227 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
24229         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
24230         SVE_FULL_I to SVE_I.
24231         (*cond_bic<mode>_any): Likewise.
24233 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
24235         * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
24236         (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
24237         to SVE_I.
24239 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
24241         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
24242         SVE_FULL_I to SVE_I.
24243         (*aarch64_cond_<su>abd<mode>_2): Likewise.
24244         (*aarch64_cond_<su>abd<mode>_any): Likewise.
24245         (@aarch64_pred_<su>abd<mode>): Likewise.  Use UNSPEC_PRED_X
24246         for the max and min but not for the minus.
24247         (*aarch64_cond_<su>abd<mode>_3): New pattern.
24249 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
24251         * config/aarch64/iterators.md (SVE_24I): New iterator.
24252         * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
24253         SVE_FULL_SDI to SVE_24I.  Use containers rather than elements.
24255 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
24257         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
24258         (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
24259         to SVE_I.
24260         (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
24261         (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
24262         (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
24263         (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
24265 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
24267         * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
24268         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
24269         (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
24270         to SVE_I.
24272 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
24274         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
24275         (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
24276         (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
24278 2021-01-11  Martin Liska  <mliska@suse.cz>
24280         PR jit/98615
24281         * symtab-clones.h (clone_info::release): Release
24282         symtab::m_clones with ggc_delete as it's a GGC memory.
24284 2021-01-11  Matthias Klose  <doko@ubuntu.com>
24286         * Makefile.in (LINK_PROGRESS): Show the link target.
24288 2021-01-11  Richard Biener  <rguenther@suse.de>
24290         PR tree-optimization/91403
24291         * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
24292         single-element interleaving group size at 4096 elements.
24294 2021-01-11  Richard Biener  <rguenther@suse.de>
24296         PR tree-optimization/98526
24297         * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
24298         of the actual reduction op for the regular case.
24299         (vectorizable_reduction): Cost the stmts
24300         vect_transform_reduction produces here.
24302 2021-01-11  Andreas Krebbel  <krebbel@linux.ibm.com>
24304         * tree-ssa-forwprop.c (simplify_vector_constructor): For
24305         big-endian, use UNPACK[_FLOAT]_HI.
24307 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
24309         * tree-vect-slp-patterns.c (class complex_pattern,
24310         class complex_add_pattern): Add parameters to matches.
24311         (complex_add_pattern::build): Free memory.
24312         (complex_add_pattern::matches): Move validation end of match.
24313         (complex_add_pattern::recognize): Likewise.
24315 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
24317         * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
24319 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
24321         * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
24323 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
24325         PR tree-optimization/95867
24326         * tree-ssa-math-opts.h: New header.
24327         * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
24328         (powi_as_mults): No longer static.  Use build_one_cst instead of
24329         build_real.  Formatting fix.
24330         * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
24331         (attempt_builtin_powi): Handle multiplication reassociation without
24332         powi_fndecl using powi_as_mults.
24333         (reassociate_bb): For integral types don't require
24334         -funsafe-math-optimizations to call attempt_builtin_powi.
24336 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
24338         PR tree-optimization/95852
24339         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
24340         mul_stmts parameter type to vec<gimple *> &.  Before cond_stmt
24341         allow in the bb any of the stmts in that vector, div_stmt and
24342         up to 3 cast stmts.
24343         (arith_cast_equal_p): New function.
24344         (arith_overflow_check_p): Add cast_stmt argument, handle signed
24345         multiply overflow checks.
24346         (match_arith_overflow): Adjust caller.  Handle signed multiply
24347         overflow checks.
24349 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
24351         PR tree-optimization/95852
24352         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
24353         (uaddsub_overflow_check_p): Renamed to ...
24354         (arith_overflow_check_p): ... this.  Handle also multiplication
24355         with overflow check.
24356         (match_uaddsub_overflow): Renamed to ...
24357         (match_arith_overflow): ... this.  Add cfg_changed argument.  Handle
24358         also multiplication with overflow check.  Adjust function comment.
24359         (math_opts_dom_walker::after_dom_children): Adjust callers.  Call
24360         match_arith_overflow also for MULT_EXPR.
24362 2021-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24364         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
24365         __builtin_convertvector.
24366         (vmovl_s16): Likewise.
24367         (vmovl_s32): Likewise.
24368         (vmovl_u8): Likewise.
24369         (vmovl_u16): Likewise.
24370         (vmovl_u32): Likewise.
24371         (vmovn_s16): Likewise.
24372         (vmovn_s32): Likewise.
24373         (vmovn_s64): Likewise.
24374         (vmovn_u16): Likewise.
24375         (vmovn_u32): Likewise.
24376         (vmovn_u64): Likewise.
24378 2021-01-11  Martin Liska  <mliska@suse.cz>
24380         * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
24381         (if_chain::is_beneficial): Delete clusters
24382         (find_conditions): Make second argument of conditions_in_bbs a
24383         pointer so that we control over it's lifetime.
24384         (pass_if_to_switch::execute): Delete them.
24386 2021-01-11  Kewen Lin  <linkw@linux.ibm.com>
24388         * ira.c (move_unallocated_pseudos): Check other_reg and skip if
24389         it isn't set.
24391 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
24393         * config/vax/vax.md (cc): Remove mode attribute.
24394         (subst_<cc>, subst_f<cc>): Rename to...
24395         (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
24396         (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
24397         (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
24398         (*branch_<mode>, *branch_<mode>_reversed): Likewise.
24400 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
24402         * config/vax/vax.md (subst_f<cc>): Add mode to operands and
24403         `const_double_zero'.
24405 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
24407         * config/pdp11/pdp11.md (PDPfp): New mode iterator.
24408         (fcc_cc, fcc_ccnz): Use it.  Add mode to `const_double_zero' and
24409         operands.
24411 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
24413         * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
24414         rtx.
24415         * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
24416         with `const_double_zero'.
24417         * doc/rtl.texi (Constant Expression Types): Document it.
24419 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
24421         PR c++/98556
24422         * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
24423         POINTER_DIFF_EXPR to be any integral type.
24425 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
24427         PR rtl-optimization/98603
24428         * function.c (instantiate_virtual_regs_in_insn): For asm goto
24429         with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
24430         if any, set ASM_OPERANDS mode to VOIDmode and change
24431         ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
24433 2021-01-09  Alexandre Oliva  <oliva@gnu.org>
24435         PR debug/97714
24436         * final.c (notice_source_line): Narrow down the condition to
24437         skip a line-0 marker.
24439 2021-01-08  Sergei Trofimovich  <siarheit@google.com>
24441         * ipa-modref.c (merge_call_side_effects): Fix
24442         linebreak split by reordering two print calls.
24444 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
24446         * config/s390/vector.md (*tf_to_fprx2_0): Rename from
24447         "*mov_tf_to_fprx2_0" for consistency, fix constraint.
24448         (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
24449         consistency, fix constraint.
24451 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
24453         * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
24454         callables instead of mask values.
24455         (struct target_flag_set_p): New predicate.
24456         (s390_cpu_cpp_builtins_internal): Define or undefine
24457         __LONG_DOUBLE_VX__ macro.
24459 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
24461         PR target/98482
24462         * config/i386/i386.c (x86_function_profiler): Use R10 and R11
24463         to call mcount in large model with PIC for NO_PROFILE_COUNTERS
24464         targets.
24466 2021-01-08  Richard Biener  <rguenther@suse.de>
24468         * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
24470 2021-01-08  Richard Biener  <rguenther@suse.de>
24472         * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
24473         (vect_build_slp_tree): On cache hit release the matched
24474         scalar stmts vector.
24475         * tree-vect-stmts.c (vectorizable_store): Properly free
24476         vec_oprnds before possibly gathering them again.
24478 2021-01-08  Richard Biener  <rguenther@suse.de>
24480         PR tree-optimization/98544
24481         * tree-vect-slp.c (vect_optimize_slp): Always materialize
24482         permutes at a permute node.
24484 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
24486         PR target/98482
24487         * config/i386/i386.c (x86_function_profiler): Use R10 to call
24488         mcount in large model.  Sorry for large model with PIC.
24490 2021-01-08  Jakub Jelinek  <jakub@redhat.com>
24492         PR target/98585
24493         * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
24494         ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
24495         ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
24496         TargetSave and initialize for variables with enum types.
24497         (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
24498         mstack-protector-guard-symbol=): Add Save.
24499         * config/i386/i386-options.c (ix86_function_specific_save,
24500         ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
24501         x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
24502         x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
24503         x_ix86_veclibabi_type.
24505 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
24507         * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
24508         SVE_FULL_I to SVE_I.
24509         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
24511 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
24513         * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
24514         SVE_FULL_I to SVE_I.
24515         (*cond_uxt<mode>_any): Likewise.
24517 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24519         * config/aarch64/iterators.md (Vwhalf): New iterator.
24520         * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
24521         Rename to...
24522         (aarch64_<sur>adalp<mode>): ... This.  Make more
24523         builtin-friendly.
24524         (<sur>sadv16qi): Adjust callsite of the above.
24525         * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
24526         builtins.
24527         * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
24528         builtins.
24529         (vpadal_s16): Likewise.
24530         (vpadal_u8): Likewise.
24531         (vpadal_u16): Likewise.
24532         (vpadalq_s8): Likewise.
24533         (vpadalq_s16): Likewise.
24534         (vpadalq_s32): Likewise.
24535         (vpadalq_u8): Likewise.
24536         (vpadalq_u16): Likewise.
24537         (vpadalq_u32): Likewise.
24539 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24541         * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
24542         Rename to...
24543         (aarch64_<su>abd<mode>): ... This.
24544         (<sur>sadv16qi): Adjust callsite of the above.
24545         * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
24546         builtins.
24547         * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
24548         builtin.
24549         (vabd_s16): Likewise.
24550         (vabd_s32): Likewise.
24551         (vabd_u8): Likewise.
24552         (vabd_u16): Likewise.
24553         (vabd_u32): Likewise.
24554         (vabdq_s8): Likewise.
24555         (vabdq_s16): Likewise.
24556         (vabdq_s32): Likewise.
24557         (vabdq_u8): Likewise.
24558         (vabdq_u16): Likewise.
24559         (vabdq_u32): Likewise.
24561 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24563         * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
24564         builtins.
24565         * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
24566         (vaba_s16): Likewise.
24567         (vaba_s32): Likewise.
24568         (vaba_u8): Likewise.
24569         (vaba_u16): Likewise.
24570         (vaba_u32): Likewise.
24571         (vabaq_s8): Likewise.
24572         (vabaq_s16): Likewise.
24573         (vabaq_s32): Likewise.
24574         (vabaq_u8): Likewise.
24575         (vabaq_u16): Likewise.
24576         (vabaq_u32): Likewise.
24578 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24580         * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
24581         (aarch64_<su>aba<mode>): ... This.  Handle uaba as well.
24582         Change RTL pattern to match.
24584 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
24586         * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
24587         * config/riscv/riscv-c.c (riscv-subset.h): New.
24588         (INCLUDE_STRING): Define.
24589         (riscv_cpu_cpp_builtins): Add new style architecture extension
24590         test macros.
24591         * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
24592         (riscv_subset_list::end): New.
24593         (riscv_current_subset_list): New.
24595 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
24597         * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
24598         Move to riscv-subset.h.
24599         (struct riscv_subset_t): Ditto.
24600         (class riscv_subset_list): Ditto.
24601         * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
24602         from riscv-common.c.
24603         (struct riscv_subset_t): Ditto.
24604         (class riscv_subset_list): Ditto.
24605         * config/riscv/t-riscv ($(common_out_file)): Add file
24606         dependency.
24608 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
24610         PR target/98567
24611         * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
24612         New define_insn patterns.
24614 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
24616         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
24617         (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
24618         (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
24620 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
24622         PR tree-optimization/98560
24623         * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
24624         * internal-fn.c (vec_cond_mask_direct): Get the data mode from
24625         argument 1.
24626         (vec_cond_direct): Likewise argument 2.
24627         (vec_condu_direct, vec_condeq_direct): Delete.
24628         (expand_vect_cond_optab_fn): Rename to...
24629         (expand_vec_cond_optab_fn): ...this, replacing old macro.
24630         (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
24631         (expand_vect_cond_mask_optab_fn): Rename to...
24632         (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
24633         (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
24634         convert optab.
24635         (direct_vec_cond_optab_supported_p): Likewise.
24636         (direct_vec_condu_optab_supported_p): Delete.
24637         (direct_vec_condeq_optab_supported_p): Delete.
24638         * gimple-isel.cc: Include internal-fn.h.
24639         (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
24640         before using it.
24642 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
24644         PR tree-optimization/98560
24645         * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
24646         IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
24648 2021-01-07  Uroš Bizjak  <ubizjak@gmail.com>
24650         * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
24651         rotate_insn and optab code attributes.
24652         Update all uses to merged code attribute.
24653         * config/i386/sse.md: Update all uses to merged code attribute.
24654         * config/i386/mmx.md: Update all uses to merged code attribute.
24656 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
24658         PR tree-optimization/98568
24659         * gimple-ssa-store-merging.c (bswap_view_convert): New function.
24660         (bswap_replace): Use it.
24662 2021-01-06  Vladimir N. Makarov  <vmakarov@redhat.com>
24664         PR rtl-optimization/97978
24665         * lra-int.h (lra_hard_reg_split_p): New external.
24666         * lra.c (lra_hard_reg_split_p): New global.
24667         (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
24668         * lra-assigns.c (lra_assign): Don't check allocation correctness
24669         after hard reg splitting.
24671 2021-01-06  Martin Sebor  <msebor@redhat.com>
24673         PR c++/98305
24674         * builtins.c (new_delete_mismatch_p): New overload.
24675         (new_delete_mismatch_p (tree, tree)): Call it.
24677 2021-01-06  Alexandre Oliva  <oliva@adacore.com>
24679         * Makefile.in (T_GLIMITS_H): New.
24680         (stmp-int-hdrs): Depend on it, use it.
24681         * config/t-vxworks (T_GLIMITS_H): Override it.
24682         (vxw-glimits.h): New.
24684 2021-01-06  Richard Biener  <rguenther@suse.de>
24686         PR tree-optimization/98513
24687         * value-range.cc (intersect_ranges): Compare the upper bounds
24688         for the expected relation.
24690 2021-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
24692         Revert:
24693         2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
24695         * doc/standards.texi (HSAIL): Remove section.
24697 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24699         * configure: Re-generate.
24701 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
24703         * doc/invoke.texi (-std=c++20): Adjust for the publication of
24704         ISO 14882:2020 standard.
24705         * doc/standards.texi: Likewise.
24707 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
24709         PR tree-optimization/94802
24710         * expr.h (maybe_optimize_sub_cmp_0): Declare.
24711         * expr.c: Include tree-pretty-print.h and flags.h.
24712         (maybe_optimize_sub_cmp_0): New function.
24713         (do_store_flag): Use it.
24714         * cfgexpand.c (expand_gimple_cond): Likewise.
24716 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
24718         * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
24719         * rtlanal.c (simple_regno_set): Tweak description to clarify the
24720         RMW condition.
24722 2021-01-05  Richard Biener  <rguenther@suse.de>
24724         PR tree-optimization/98516
24725         * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
24726         lanes when materializing on a VEC_PERM node.
24727         (vectorizable_slp_permutation): Dump the permute properly.
24729 2021-01-05  Richard Biener  <rguenther@suse.de>
24731         * tree-vect-slp.c (vect_slp_region): Move debug counter
24732         to cover individual subgraphs.
24734 2021-01-05  Richard Biener  <rguenther@suse.de>
24736         PR tree-optimization/98428
24737         * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
24738         vector lane extracts for loop vectorization.
24740 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
24742         PR tree-optimization/98514
24743         * tree-ssa-reassoc.c (bb_rank): Change type from long * to
24744         int64_t *.
24745         (operand_rank): Change type from hash_map<tree, long> to
24746         hash_map<tree, int64_t>.
24747         (phi_rank): Change return type from long to int64_t.
24748         (loop_carried_phi): Change block_rank variable type from long to
24749         int64_t.
24750         (propagate_rank): Change return type, rank parameter type and
24751         op_rank variable type from long to int64_t.
24752         (find_operand_rank): Change return type from long to int64_t
24753         and change slot variable type from long * to int64_t *.
24754         (insert_operand_rank): Change rank parameter type from long to
24755         int64_t.
24756         (get_rank): Change return type and rank variable type from long to
24757         int64_t.  Use PRId64 instead of ld to print the rank.
24758         (init_reassoc): Change rank variable type from long to int64_t
24759         and adjust correspondingly bb_rank and operand_rank initialization.
24761 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
24763         PR tree-optimization/96928
24764         * tree-ssa-phiopt.c (xor_replacement): New function.
24765         (tree_ssa_phiopt_worker): Call it.
24767 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
24769         PR tree-optimization/96930
24770         * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
24771         from narrower value which has the same type as 1 << B, perform
24772         the right shift on the narrower value followed by extension.
24774 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
24776         PR tree-optimization/96239
24777         * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
24778         function.
24779         (get_status_for_store_merging): Don't return BB_INVALID for blocks
24780         with potential bswap optimizable CONSTRUCTORs.
24781         (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
24782         if possible.
24784 2021-01-05  Richard Biener  <rguenther@suse.de>
24786         PR tree-optimization/98381
24787         * tree.c (vector_element_bits): Properly compute bool vector
24788         element size.
24789         * tree-vect-loop.c (vectorizable_live_operation): Properly
24790         compute the last lane bit offset.
24792 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
24794         PR target/98522
24795         * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
24796         Clear the top 64 bytes of the input XMM register.
24797         (sse_cvttps2pi): Ditto.
24799 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
24801         PR target/98521
24802         * config/i386/xopintrin.h (_mm256_cmov_si256): New.
24804 2021-01-05  H.J. Lu  <hjl.tools@gmail.com>
24806         PR target/98495
24807         * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
24808         short first.
24810 2021-01-05  Claudiu Zissulescu  <claziss@synopsys.com>
24812         * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
24813         (umaddsidi4_split): Likewise.
24815 2021-01-05  liuhongt  <hongtao.liu@intel.com>
24817         PR target/98461
24818         * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
24819         define_insn_and_split for zero_extend of subreg HI of pmovskb
24820         result.
24821         (*sse2_pmovskb_zexthisi): Add new combine splitters for
24822         zero_extend of not of subreg HI of pmovskb result.
24824 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
24826         PR target/97269
24827         * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
24828         nested in CONSTs.
24829         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
24830         convert_memory_address to convert symbolic immediates to ptr_mode
24831         before forcing them to memory.
24833 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
24835         PR rtl-optimization/97144
24836         * recog.c (constrain_operands): Initialize matching_operand
24837         for each alternative, rather than only doing it once.
24839 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
24841         PR rtl-optimization/98403
24842         * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
24843         why we don't remove call clobbers.
24844         (function_info::apply_changes_to_insn): Don't attempt to add
24845         call clobbers here.
24847 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
24849         PR tree-optimization/98371
24850         * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
24851         (vect_analyze_loop): If an epilogue loop appears to be cheaper
24852         than the main loop, re-analyze it as a main loop before adopting
24853         it as a main loop.
24855 2021-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24857         PR c++/98316
24858         * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
24859         * aclocal.m4, configure: Regenerate.
24860         * Makefile.in (NETLIBS): Define.
24861         (BACKEND): Remove $(CODYLIB).
24863 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
24865         PR rtl-optimization/98334
24866         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
24867         Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
24869 2021-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24871         * tree-inline.c (expand_call_inline): Restore input_location.
24872         Return result from recursive call.
24874 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
24876         PR tree-optimization/95401
24877         * config/aarch64/aarch64-sve-builtins.cc
24878         (gimple_folder::load_store_cookie): Use bits rather than bytes
24879         for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
24880         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
24881         * tree-vect-stmts.c (vectorizable_store): Likewise.
24882         (vectorizable_load): Likewise.
24884 2021-01-04  Richard Biener  <rguenther@suse.de>
24886         PR tree-optimization/98308
24887         * tree-vect-stmts.c (vectorizable_load): Set invariant mask
24888         SLP vectype.
24890 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
24892         PR tree-optimization/95771
24893         * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
24894         with precision smaller than int's precision and types with precision
24895         twice as large as long long.  Formatting fixes.
24897 2021-01-04  Richard Biener  <rguenther@suse.de>
24899         PR tree-optimization/98464
24900         * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
24901         (vn_valueize_wrapper): ... this.  Temporarily adjust vn_context_bb.
24902         (process_bb): Adjust.
24904 2021-01-04  Matthew Malcomson  <matthew.malcomson@arm.com>
24906         PR other/98437
24907         * doc/invoke.texi (-fsanitize=address): Fix wording describing
24908         clash with -fsanitize=hwaddress.
24910 2021-01-04  Richard Biener  <rguenther@suse.de>
24912         PR tree-optimization/98282
24913         * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
24914         invariants as VN_NARY.
24916 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
24918         PR target/89057
24919         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
24920         aarch64_simd_reg_or_zero for operand 2.  Use the combinez patterns
24921         to handle zero operands.
24923 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
24925         * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
24926         (offset_6bit_unsigned_scaled_p): Fix typo in comment.
24927         (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
24928         [-32, 31].
24930 2021-01-04  Richard Biener  <rguenther@suse.de>
24932         PR tree-optimization/98393
24933         * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
24934         when hitting the limit.
24936 2021-01-04  Richard Biener  <rguenther@suse.de>
24938         PR tree-optimization/98291
24939         * tree-vect-loop.c (vectorizable_reduction): Bypass
24940         associativity check for SLP reductions with VF 1.
24942 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
24944         PR tree-optimization/96782
24945         * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
24947 2021-01-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24949         * collect-utils.c (collect_execute): Check dumppfx.
24950         * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
24951         to collect_execute.
24952         (do_link): Add new parameter atsuffix.
24953         (main): Handle -dumpdir option.  Skip one argument for
24954         -o, -isystem and -B options.
24955         * gcc.c (make_at_file): New helper function.
24956         (close_at_file): Use it.
24958 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
24960         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
24961         Amend handling for LD64_VERSION fallback defaults.
24963 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
24965         * config.gcc: Compute default version information
24966         from the configured target.  Likewise defaults for
24967         ld64.
24968         * config/darwin10.h: Removed.
24969         * config/darwin12.h: Removed.
24970         * config/darwin9.h: Removed.
24971         * config/rs6000/darwin8.h: Removed.
24973 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
24975         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
24977 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
24979         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
24980         * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
24982 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
24984         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
24985         here...
24986         * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
24988 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
24990         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
24991         for the Darwin10 unwinder stub from here ...
24992         * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
24994 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
24996         * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
24997         (ASM_DEBUG_SPEC):Only define if the assembler supports
24998         stabs.
24999         (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
25000         (DARWIN_PREFER_DWARF): Define.
25001         * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
25002         (DARWIN_PREFER_DWARF): Likewise
25003         (DSYMUTIL_SPEC): Likewise.
25004         (COLLECT_RUN_DSYMUTIL): Likewise.
25005         (ASM_DEBUG_SPEC): Likewise.
25006         (ASM_DEBUG_OPTION_SPEC): Likewise.
25008 2021-01-02  Jan Hubicka  <jh@suse.cz>
25010         * cfg.c (free_block): ggc_free bb.
25012 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
25014         * gcc.c (process_command): Update copyright notice dates.
25015         * gcov-dump.c (print_version): Ditto.
25016         * gcov.c (print_version): Ditto.
25017         * gcov-tool.c (print_version): Ditto.
25018         * gengtype.c (create_file): Ditto.
25019         * doc/cpp.texi: Bump @copying's copyright year.
25020         * doc/cppinternals.texi: Ditto.
25021         * doc/gcc.texi: Ditto.
25022         * doc/gccint.texi: Ditto.
25023         * doc/gcov.texi: Ditto.
25024         * doc/install.texi: Ditto.
25025         * doc/invoke.texi: Ditto.
25027 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
25029         * ChangeLog-2020: Rotate ChangeLog.  New file.
25032 Copyright (C) 2021 Free Software Foundation, Inc.
25034 Copying and distribution of this file, with or without modification,
25035 are permitted in any medium without royalty provided the copyright
25036 notice and this notice are preserved.