ebeb27414ff583874a01a1ac57802e47ee1e0a07
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2021-07-13  Jonathan Wright  <jonathan.wright@arm.com>
2
3         * combine.c (combine_simplify_rtx): Add vec_select -> subreg
4         simplification.
5         * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
6         Add Neon to general purpose register case for zero-extend
7         pattern.
8         * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
9         case to prevent some cases opting to go through memory.
10         * cse.c (fold_rtx): Add vec_select -> subreg simplification.
11         * rtl.c (rtvec_series_p): Define predicate to determine
12         whether a vector contains a linear series of integers.
13         * rtl.h (rtvec_series_p): Define.
14         * rtlanal.c (vec_series_lowpart_p): Define predicate to
15         determine if a vector selection is equivalent to the low part
16         of the vector.
17         * rtlanal.h (vec_series_lowpart_p): Define.
18         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
19         Add vec_select -> subreg simplification.
20
21 2021-07-13  Paul A. Clarke  <pc@us.ibm.com>
22
23         * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
24         _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
25         _mm_test_mix_ones_zeros): New.
26
27 2021-07-13  Roger Sayle  <roger@nextmovesoftware.com>
28             Richard Biener  <rguenther@suse.de>
29
30         * gimple.c (gimple_could_trap_p_1):  Make S argument a
31         "const gimple*".  Preserve constness in call to
32         gimple_asm_volatile_p.
33         (gimple_could_trap_p): Make S argument a "const gimple*".
34         * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
35         Update function prototypes.
36
37 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
38
39         * tree-vectorizer.h (vect_reusable_accumulator): New structure.
40         (_loop_vec_info::main_loop_edge): New field.
41         (_loop_vec_info::skip_main_loop_edge): Likewise.
42         (_loop_vec_info::skip_this_loop_edge): Likewise.
43         (_loop_vec_info::reusable_accumulators): Likewise.
44         (_stmt_vec_info::reduc_scalar_results): Likewise.
45         (_stmt_vec_info::reused_accumulator): Likewise.
46         (vect_get_main_loop_result): Declare.
47         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
48         reduc_scalar_inputs.
49         (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
50         * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
51         (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
52         skip_main_loop_edge and skip_this_loop_edge fields.
53         * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
54         (vect_emit_reduction_init_stmts): New function.
55         (get_initial_def_for_reduction): Use it.
56         (get_initial_defs_for_reduction): Likewise.  Change the vinfo
57         parameter to a loop_vec_info.
58         (vect_create_epilog_for_reduction): Store the scalar results
59         in the reduc_info.  If an epilogue loop is reusing an accumulator
60         from the main loop, and if the epilogue loop can also be skipped,
61         try to place the reduction code in the join block.  Record
62         accumulators that could potentially be reused by epilogue loops.
63         (vect_transform_cycle_phi): When vectorizing epilogue loops,
64         try to reuse accumulators from the main loop.  Record the initial
65         value in reduc_info for non-SLP reductions too.
66
67 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
68
69         * tree-vect-loop.c (get_initial_def_for_reduction): Remove
70         adjustment handling.  Take the neutral value as an argument,
71         in place of the code argument.
72         (vect_transform_cycle_phi): Update accordingly.  Handle the
73         initial values of cond reductions separately from code reductions.
74         Choose the adjustment here rather than in
75         get_initial_def_for_reduction.  Sink the splat of vec_initial_def.
76
77 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
78
79         * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
80         (neutral_op_for_reduction): ...this, providing a more general
81         interface.
82         (vect_create_epilog_for_reduction): Update accordingly.
83         (vectorizable_reduction): Likewise.
84         (vect_transform_cycle_phi): Likewise.
85
86 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
87
88         * tree-vect-loop.c (get_initial_def_for_reduction): Take the
89         reduc_info instead of the original stmt_vec_info.
90         (vect_transform_cycle_phi): Update accordingly.
91
92 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
93
94         * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
95         reduc_info as an additional parameter.
96         (vect_transform_cycle_phi): Update accordingly.
97
98 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
99
100         * tree-vectorizer.h: Include tree-ssa-operands.h.
101         (vect_phi_initial_value): New function.
102         * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
103         (get_initial_defs_for_reduction, info_for_reduction): Likewise.
104         (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
105         (vect_transform_cycle_phi, vectorizable_induction): Likewise.
106
107 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
108
109         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
110         the phi results to vectype after creating them.  Remove later
111         conversion code that thus becomes redundant.
112
113 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
114
115         * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
116         the new_phis vector with a reduc_inputs vector.  Combine handling
117         of reduction chains and ncopies > 1.
118
119 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
120
121         * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
122         scalar_results to group_size elements after reducing down from
123         N*group_size elements.  Construct an array_slice of the live-out
124         stmts and assert that there is one stmt per scalar result.
125
126 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
127
128         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
129         nested_in_vect_loop and use double_reduc everywhere.  Remove dead
130         assignment to "loop".
131
132 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
133
134         * internal-fn.c (vectorized_internal_fn_supported_p): Handle
135         vector types first.  For scalar types, consider both the preferred
136         vector mode and the alternative vector modes.
137         * optabs-query.c (can_vec_mask_load_store_p): Use the same
138         structure as above, in particular using related_vector_mode
139         for modes provided by autovectorize_vector_modes.
140
141 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
142             Richard Biener  <rguenther@suse.de>
143
144         PR tree-optimization/101419
145         * tree-pass.h (PROP_objsz): Define.
146         (make_pass_early_object_sizes): Declare.
147         * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
148         there to pass_early_object_sizes, drop parameter.
149         (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
150         drop parameter, move pass_post_ipa_warn right after that.
151         * tree-object-size.c (pass_object_sizes::execute): Rename to...
152         (object_sizes_execute): ... this.  Add insert_min_max_p argument.
153         (pass_data_object_sizes): Move after object_sizes_execute.
154         (pass_object_sizes): Likewise.  In execute method call
155         object_sizes_execute, drop set_pass_param method and insert_min_max_p
156         non-static data member and its initializer in the ctor.
157         (pass_data_early_object_sizes, pass_early_object_sizes,
158         make_pass_early_object_sizes): New.
159         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
160         (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
161
162 2021-07-13  Kito Cheng  <kito.cheng@sifive.com>
163
164         PR target/101275
165         * config/riscv/constraints.md ("S"): Update description and remove
166         @internal.
167         * doc/md.texi (Machine Constraints): Document the 'S' constraints
168         for RISC-V.
169
170 2021-07-13  Richard Biener  <rguenther@suse.de>
171
172         Revert:
173         2021-07-12  Richard Biener  <rguenther@suse.de>
174
175         * tree-vect-slp.c (vect_slp_region): Show the number of
176         SLP graph entries in the optimization message.
177
178 2021-07-13  Michael Meissner  <meissner@linux.ibm.com>
179
180         * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
181         value to to long.
182         * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
183         return type to long.
184         * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
185         type to long.
186
187 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
188
189         * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
190         Query relation between the 2 operands and use it.
191
192 2021-07-12  Sergei Trofimovich  <siarheit@google.com>
193
194         * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
195
196 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
197
198         PR target/101424
199         * config/i386/predicates.md (vec_setm_sse41_operand):
200         Rename from vec_setm_operand.
201         (vec_setm_avx2_operand): New predicate.
202         * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
203         Use vec_setm_sse41_operand as operand 2 predicate.
204         (vec_set<V_256_512:mode): New expander.
205         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
206         as operand 2 predicate.
207
208 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
209
210         PR tree-optimization/101335
211         * range-op.cc (operator_cast::lhs_op1_relation): Delete.
212
213 2021-07-12  Andrew Pinski  <apinski@marvell.com>
214
215         * tree-ssa-phiopt.c (match_simplify_replacement): Move
216         insert of the sequence before the movement of the
217         statement. Check if to see if the statement is used
218         outside of the original phi to see if we should move it.
219
220 2021-07-12  Richard Biener  <rguenther@suse.de>
221
222         * dump-context.h (debug_dump_context::debug_dump_context):
223         Add FILE * parameter defaulted to stderr.
224         * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
225         * tree-vect-slp.c (dot_slp_tree): New functions.
226
227 2021-07-12  Richard Biener  <rguenther@suse.de>
228
229         PR tree-optimization/101373
230         * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
231         references when the BB may not return.
232         (compute_avail): Pass in the function we're working on and
233         replace cfun references with it.  Externally throwing
234         const calls also possibly terminate the function.
235         (pass_pre::execute): Pass down the function we're working on.
236         * gcse.c (compute_hash_table_work): Externally throwing
237         const/pure calls also need record_last_mem_set_info.
238         * postreload-gcse.c (record_opr_changes): Looping or externally
239         throwing const/pure calls also need record_last_mem_set_info.
240
241 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
242
243         * recog.c (memory_address_addr_space_p): Change the type to bool.
244         Return true/false instead of 1/0.
245         (offsettable_memref_p): Ditto.
246         (offsettable_nonstrict_memref_p): Ditto.
247         (offsettable_address_addr_space_p): Ditto.
248         Change the type of addressp indirect function to bool.
249         * recog.h (memory_address_addr_space_p): Change the type to bool.
250         (strict_memory_address_addr_space_p): Ditto.
251         (offsettable_memref_p): Ditto.
252         (offsettable_nonstrict_memref_p): Ditto.
253         (offsettable_address_addr_space_p): Ditto.
254         * reload.c (maybe_memory_address_addr_space_p): Ditto.
255         (strict_memory_address_addr_space_p): Change the type to bool.
256         Return true/false instead of 1/0.
257         (maybe_memory_address_addr_space_p): Change the type to bool.
258
259 2021-07-12  Richard Biener  <rguenther@suse.de>
260
261         * tree-vect-slp.c (vect_slp_region): Show the number of
262         SLP graph entries in the optimization message.
263
264 2021-07-12  Richard Biener  <rguenther@suse.de>
265
266         PR tree-optimization/101394
267         * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
268         copies from abnormals for a full redundancy.
269
270 2021-07-12  Richard Biener  <rguenther@suse.de>
271
272         PR middle-end/101423
273         * gimple.c (gimple_could_trap_p_1): Internal function calls
274         do not trap.
275         * tree-eh.c (tree_could_trap_p): Likewise.
276
277 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
278
279         PR target/66791
280         * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
281         __a * __b.
282         (vmulq_n_u32): Likewise.
283         (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
284         (vmulq_n_f32): Likewise.
285         (vmul_n_f16): Likewise.
286         (vmulq_n_f16): Likewise.
287
288 2021-07-12  Martin Liska  <mliska@suse.cz>
289
290         PR sanitizer/101425
291         * gcc.c (check_offload_target_name): Call
292           candidates_list_and_hint only if we have a candidate.
293
294 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
295
296         PR target/98435
297         * config/arm/neon.md (vec_init): Move to ...
298         * config/arm/vec-common.md (vec_init): ... here.
299         Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
300
301 2021-07-12  Roger Sayle  <roger@nextmovesoftware.com>
302
303         PR tree-optimization/101403
304         * match.pd ((T)bswap(X)>>C): Correctly handle cases where
305         signedness of the shift is not the same as the signedness of
306         the type extension.
307
308 2021-07-09  Roger Sayle  <roger@nextmovesoftware.com>
309             Uroš Bizjak  <ubizjak@gmail.com>
310
311         * config/i386/i386.md (*divmodsi4_const): Optimize SImode
312         divmod of a constant numerator with new define_insn_and_split.
313
314 2021-07-09  Iain Sandoe  <iain@sandoe.co.uk>
315
316         PR target/100152
317         * config/i386/i386-expand.c (ix86_expand_call): If a call is
318         to a non-local-binding, or local but to a public symbol, then
319         assume that it might be indirected via the lazy symbol binder.
320         Mark R10 and R10 as clobbered in that case.
321
322 2021-07-09  Eric Botcazou  <ebotcazou@adacore.com>
323
324         PR target/101377
325         * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
326         the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
327         and HAVE_LD_BROKEN_PE_DWARF5 is defined.
328
329 2021-07-09  Uroš Bizjak  <ubizjak@gmail.com>
330
331         * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
332         log2 range of operands[3] to [1,31].
333         (*udivmodsi4_pow2_zext_2): Ditto.  Correct insn RTX pattern.
334
335 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
336
337         * doc/md.texi: Don't split @smallexample in multiple @groups.
338
339 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
340
341         * doc/md.texi: Add missing 'see' word.
342
343 2021-07-09  Andrew Pinski  <apinski@marvell.com>
344
345         * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
346         to take sequence and gimple_match_op.  Accept the case where
347         op is a SSA_NAME and one statement in the sequence.
348         Also allow constants.
349         (gimple_simplify_phiopt): Always pass a sequence to resimplify.
350         Update call to phiopt_early_allow.  Discard the sequence if not
351         used.
352
353 2021-07-09  Xi Ruoyao  <xry111@mengyan1223.wang>
354
355         PR target/100760
356         PR target/100761
357         PR target/100762
358         * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
359         instead of ISA_HAS_MSA.
360         (mips_expand_vec_unpack): Likewise.
361         (mips_expand_vector_init): Likewise.
362
363 2021-07-09  Kewen Lin  <linkw@linux.ibm.com>
364
365         * config/rs6000/vsx.md (mods_<mode>): Rename to...
366         (mod<mode>3): ... this.
367         (modu_<mode>): Rename to...
368         (umod<mode>3): ... this.
369         * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
370         MODU_V4SI): Adjust.
371
372 2021-07-08  Jeff Law  <jeffreyalaw@gmail.com>
373
374         * config/h8300/shiftrotate.md (variable shifts): Expose condition
375         code handling for the test before the loop.
376
377 2021-07-08  Martin Jambor  <mjambor@suse.cz>
378
379         PR ipa/101066
380         * ipa-sra.c (class isra_call_summary): New member
381         m_before_any_store, initialize it in the constructor.
382         (isra_call_summary::dump): Dump the new field.
383         (ipa_sra_call_summaries::duplicate): Copy it.
384         (process_scan_results): Set it.
385         (isra_write_edge_summary): Stream it.
386         (isra_read_edge_summary): Likewise.
387         (param_splitting_across_edge): Only override
388         safe_to_import_accesses if m_before_any_store is set.
389
390 2021-07-08  Martin Sebor  <msebor@redhat.com>
391
392         PR bootstrap/101374
393         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
394         Use Object Size Type 0 instead of 1.
395
396 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
397
398         * tree-vect-loop.c (vectorizable_reduction): Remove always-true
399         if condition.
400
401 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
402
403         * match.pd: Simplify an extend-operate-truncate sequence involving
404         a POLY_INT_CST.
405
406 2021-07-08  Roger Sayle  <roger@nextmovesoftware.com>
407             Richard Biener  <rguenther@suse.de>
408
409         PR tree-optimization/40210
410         * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
411         (x>>C3)&C2 when possible.  Simplify bswap(x)>>C1 as ((T)x)>>C2
412         when possible.  Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
413
414 2021-07-08  Uroš Bizjak  <ubizjak@gmail.com>
415
416         PR target/100637
417         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
418         Handle V4QI mode.
419         * config/i386/mmx.md (V_32): New mode iterator.
420         (mov<V_32:mode>): Use V_32 mode iterator.
421         (*mov<V_32:mode>_internal): Ditto.
422         (*push<V_32:mode>2_rex64): Ditto.
423         (*push<V_32:mode>2): Ditto.
424         (movmisalign<V_32:mode>): Ditto.
425         (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
426         (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
427         (vec_unpacks_lo_v4qi): New expander.
428         (vec_unpacks_hi_v4qi): Ditto.
429         (vec_unpacku_lo_v4qi): Ditto.
430         (vec_unpacku_hi_v4qi): Ditto.
431         * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
432         (VALID_INT_MODE_P): Ditto.
433
434 2021-07-08  Michael Meissner  <meissner@linux.ibm.com>
435
436         PR target/100809
437         * config/rs6000/rs6000.md (udivti3): New insn.
438         (divti3): New insn.
439         (umodti3): New insn.
440         (modti3): New insn.
441
442 2021-07-07  Martin Sebor  <msebor@redhat.com>
443
444         PR tree-optimization/100137
445         PR tree-optimization/99121
446         PR tree-optimization/97027
447         * builtins.c (access_ref::access_ref): Also set offmax.
448         (access_ref::offset_in_range): Define new function.
449         (access_ref::add_offset): Set offmax.
450         (access_ref::inform_access): Handle access_none.
451         (handle_mem_ref): Clear ostype.
452         (compute_objsize_r): Handle ASSERT_EXPR.
453         * builtins.h (struct access_ref): Add offmax member.
454         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
455         compute_objsize() and simplify.
456
457 2021-07-07  Peter Bergner  <bergner@linux.ibm.com>
458
459         * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
460         and VSX_BUILTIN_STXVP.
461
462 2021-07-07  Martin Sebor  <msebor@redhat.com>
463
464         PR target/101363
465         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
466         a stray %K from error_at() missed in r12-2088.
467
468 2021-07-07  Richard Biener  <rguenther@suse.de>
469
470         PR tree-optimization/99728
471         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
472         aggregate copies.
473         (mem_refs_may_alias_p): Add assert we handled aggregate
474         copies elsewhere.
475         (sm_seq_valid_bb): Give up when running into aggregate copies.
476         (ref_indep_loop_p): Handle aggregate copies as never
477         being invariant themselves but allow other refs to be
478         disambiguated against them.
479         (can_sm_ref_p): Do not try to apply store-motion to aggregate
480         copies.
481
482 2021-07-06  Indu Bhagat  <indu.bhagat@oracle.com>
483
484         PR debug/101283
485         * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
486         number of bits.
487
488 2021-07-06  Martin Sebor  <msebor@redhat.com>
489
490         * gimple-pretty-print.c (percent_G_format): Remove.
491         * tree-diagnostic.c (default_tree_printer): Remove calls.
492         * tree-pretty-print.c (percent_K_format): Remove.
493         * tree-pretty-print.h (percent_K_format): Remove.
494
495 2021-07-06  Martin Sebor  <msebor@redhat.com>
496
497         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
498         Remove %K and use error_at.
499         (aarch64_expand_fcmla_builtin): Same.
500         (aarch64_expand_builtin_tme): Same.
501         (aarch64_expand_builtin_memtag): Same.
502         * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
503         (arm_expand_builtin): Same.
504         * config/arm/arm.c (bounds_check): Same.
505
506 2021-07-06  Martin Sebor  <msebor@redhat.com>
507
508         * builtins.c (warn_string_no_nul): Remove %G.
509         (maybe_warn_for_bound): Same.
510         (warn_for_access): Same.
511         (check_access): Same.
512         (check_strncat_sizes): Same.
513         (expand_builtin_strncat): Same.
514         (expand_builtin_strncmp): Same.
515         (expand_builtin): Same.
516         (expand_builtin_object_size): Same.
517         (warn_dealloc_offset): Same.
518         (maybe_emit_free_warning): Same.
519         * calls.c (maybe_warn_alloc_args_overflow): Same.
520         (maybe_warn_nonstring_arg): Same.
521         (maybe_warn_rdwr_sizes): Same.
522         * expr.c (expand_expr_real_1): Remove %K.
523         * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
524         (gimple_fold_builtin_strncat): Same.
525         * gimple-ssa-sprintf.c (format_directive): Same.
526         (handle_printf_call): Same.
527         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
528         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
529         (maybe_diag_access_bounds): Same.  Call gimple_location.
530         (check_bounds_or_overlap): Same.
531         * trans-mem.c (ipa_tm_scan_irr_block): Remove %K.  Simplify.
532         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
533         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
534         (maybe_diag_stxncpy_trunc): Same.
535         (handle_builtin_stxncpy_strncat): Same.
536         (maybe_warn_pointless_strcmp): Same.
537         * tree-ssa-uninit.c (maybe_warn_operand): Same.
538
539 2021-07-06  Uroš Bizjak  <ubizjak@gmail.com>
540
541         PR target/97194
542         * config/i386/predicates.md (vec_setm_operand): Enable
543         register_operand for TARGET_SSE4_1.
544         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
545         as operand 2 predicate.  Call ix86_expand_vector_set_var
546         for non-constant index operand.
547         (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
548         Call ix86_expand_vector_set_var for non-constant index operand.
549
550 2021-07-06  Jeff Law  <jeffreyalaw@gmail.com>
551
552         * config/h8300/jumpcall.md (*branch): When possible, generate
553         the comparison in CCZN mode.
554         * config/h8300/predicates.md (simple_memory_operand): Reject all
555         auto-increment addressing modes.
556
557 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
558
559         PR bootstrap/100246
560         * config/i386/i386.h (struct stringop_algs): Define a CTOR for
561         this type.
562
563 2021-07-06  Richard Biener  <rguenther@suse.de>
564
565         * doc/md.texi (vec_fmaddsub<mode>4): Document.
566         (vec_fmsubadd<mode>4): Likewise.
567         * optabs.def (vec_fmaddsub$a4): Add.
568         (vec_fmsubadd$a4): Likewise.
569         * internal-fn.def (IFN_VEC_FMADDSUB): Add.
570         (IFN_VEC_FMSUBADD): Likewise.
571         * tree-vect-slp-patterns.c (addsub_pattern::recognize):
572         Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
573         (addsub_pattern::build): Likewise.
574         * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
575         and CFN_VEC_FMSUBADD are not transparent for permutes.
576         * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
577         (vec_fmsubadd<mode>4): Likewise.
578
579 2021-07-06  Richard Biener  <rguenther@suse.de>
580
581         * doc/invoke.texi (fmove-loop-stores): Document.
582         * common.opt (fmove-loop-stores): New option.
583         * opts.c (default_options_table): Enable -fmove-loop-stores
584         at -O1 but not -Og.
585         * tree-ssa-loop-im.c (pass_lim::execute): Pass
586         flag_move_loop_stores instead of true to
587         loop_invariant_motion_in_fun.
588
589 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
590
591         * doc/install.texi: Document --with-dsymutil.
592
593 2021-07-06  Andrew Pinski  <apinski@marvell.com>
594
595         PR tree-optimization/101256
596         * dbgcnt.def (phiopt_edge_range): New counter.
597         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
598         Check to make sure the new name is defined in the same
599         bb as the conditional before duplicating range info.
600         Also add debug counter.
601
602 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
603
604         PR rtl-optimization/100328
605         * config/i386/i386-options.c (ix86_option_override_internal):
606         Set param_ira_consider_dup_in_all_alts to 0.
607
608 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
609
610         PR rtl-optimization/100328
611         * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
612         parameter.
613         * ira.c (ira_get_dup_out_num): Adjust as parameter
614         param_ira_consider_dup_in_all_alts.
615         * params.opt (ira-consider-dup-in-all-alts): New.
616         * ira-conflicts.c (process_regs_for_copy): Add one parameter
617         single_input_op_has_cstr_p.
618         (get_freq_for_shuffle_copy): New function.
619         (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
620         * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
621
622 2021-07-05  Jeff Law  <jeffreyalaw@gmail.com>
623
624         * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
625         generate condition code aware RTL directly.
626
627 2021-07-05  Andrew Pinski  <apinski@marvell.com>
628
629         PR tree-optimization/101039
630         * match.pd (A CMP 0 ? A : -A): New patterns.
631         * tree-ssa-phiopt.c (abs_replacement): Delete function.
632         (tree_ssa_phiopt_worker): Don't call abs_replacement.
633         Update comment about abs_replacement.
634
635 2021-07-05  Andrew Pinski  <apinski@marvell.com>
636
637         * tree-ssa-phiopt.c (gimple_simplify_phiopt):
638         If "A ? B : C" fails to simplify, try "(!A) ? C : B".
639
640 2021-07-05  Andrew Pinski  <apinski@marvell.com>
641
642         * tree-ssa-phiopt.c (match_simplify_replacement):
643         Add early_p argument. Call gimple_simplify_phiopt
644         instead of gimple_simplify.
645         (tree_ssa_phiopt_worker): Update call to
646         match_simplify_replacement and allow unconditionally.
647         (phiopt_early_allow): New function.
648         (gimple_simplify_phiopt): New function.
649
650 2021-07-05  Andrew Pinski  <apinski@marvell.com>
651
652         PR middle-end/101237
653         * fold-const.c (negate_expr_p): Remove call to element_mode
654         and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
655         HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
656         (fold_negate_expr_1): Likewise.
657         (const_unop): Likewise.
658         (fold_cond_expr_with_comparison): Likewise.
659         (fold_binary_loc): Likewise.
660         (fold_ternary_loc): Likewise.
661         (tree_call_nonnegative_warnv_p): Likewise.
662         * match.pd (-(A + B) -> (-B) - A): Likewise.
663
664 2021-07-05  Iain Sandoe  <iain@sandoe.co.uk>
665
666         * configure.ac: Handle --with-dsymutil in the same way as we
667         do for the assembler and linker.  (DEFAULT_DSYMUTIL): New.
668         Extract the type and version for the dsymutil configured or
669         found by the default searches.
670         * config.in: Regenerated.
671         * configure: Regenerated.
672         * collect2.c (do_dsymutil): Handle locating dsymutil in the
673         same way as for the assembler and  linker.
674         * config/darwin.h (DSYMUTIL): Delete.
675         * gcc.c: Report a configured dsymutil correctly.
676         * exec-tool.in: Allow for dsymutil.
677
678 2021-07-05  Uroš Bizjak  <ubizjak@gmail.com>
679
680         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
681         Handle V4QI and V2HI modes.
682         (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
683         Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
684         (expand_vec_perm_pshufb): Rewrite to use switch statemets.
685         Handle 4-byte dual operands with TARGET_XOP and single operands
686         with TARGET_SSSE3.  Emit mmx_ppermv32 for TARGET_XOP and
687         mmx_pshufbv4qi3 for TARGET_SSSE3.
688         (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
689         (expand_vec_perm_interleave2): Allow 4-byte vector modes.
690         (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
691         (expand_vec_perm_even_odd_1): Handle V4QI mode.
692         (expand_vec_perm_broadcast_1): Handle V4QI mode.
693         (ix86_vectorize_vec_perm_const): Handle V4QI mode.
694         * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
695         (mmx_pshufbv4qi3): Ditto.
696         (*mmx_pblendw32): Ditto.
697         (*mmx_pblendw64): Rename from *mmx_pblendw.
698         (mmx_punpckhbw_low): New insn_and_split pattern.
699         (mmx_punpcklbw_low): Ditto.
700
701 2021-07-05  Richard Biener  <rguenther@suse.de>
702
703         * tree-vect-loop-manip.c (vect_loop_versioning): Do not
704         set LOOP_C_INFINITE on the vectorized loop.
705
706 2021-07-05  Richard Biener  <rguenther@suse.de>
707
708         PR middle-end/101291
709         * cfgloopmanip.c (loop_version): Set the loop copy of the
710         versioned loop to the new loop.
711
712 2021-07-04  Iain Sandoe  <iain@sandoe.co.uk>
713
714         PR target/100269
715         * config.gcc: Ensure that Darwin biarch definitions are
716         added before i386.h.
717         * config/i386/darwin.h (TARGET_64BIT): Remove.
718         (PR80556_WORKAROUND): New.
719         (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
720         (DARWIN_SUBARCH_SPEC): New.
721         * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
722         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
723         (REAL_LIBGCC_SPEC): Remove.
724         * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
725         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
726         (REAL_LIBGCC_SPEC): Remove.
727
728 2021-07-03  H.J. Lu  <hjl.tools@gmail.com>
729
730         PR middle-end/101294
731         * expr.c (store_constructor): Don't use vec_duplicate on vector.
732
733 2021-07-02  Martin Sebor  <msebor@redhat.com>
734
735         PR middle-end/98871
736         PR middle-end/98512
737         * diagnostic.c (get_any_inlining_info): New.
738         (update_effective_level_from_pragmas): Handle inlining context.
739         (diagnostic_enabled): Same.
740         (diagnostic_report_diagnostic): Same.
741         * diagnostic.h (struct diagnostic_info): Add ctor.
742         (struct diagnostic_context): Add new member.
743         * tree-diagnostic.c (set_inlining_locations): New.
744         (tree_diagnostics_defaults): Set new callback pointer.
745
746 2021-07-02  Peter Bergner  <bergner@linux.ibm.com>
747
748         * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
749         New macros.
750         (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
751         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
752         lxvp and stxvp built-ins.
753         (mma_init_builtins): Handle lxvp and stxvp built-ins.
754         (builtin_function_type): Likewise.
755         * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
756
757 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
758
759         * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
760         additional argument for the code.
761         * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
762         argument for the code.  Just return if the ZN bits are useful or
763         not rather than the old style CC_* enums.
764         * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
765         more generic shiftqi patterns.
766         (shifthi_noscratch, shiftsi_noscratch): Similarly.
767         (shiftqi_noscratch_set_flags): New pattern.
768         (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
769
770 2021-07-02  Andrew MacLeod  <amacleod@redhat.com>
771
772         PR tree-optimization/101223
773         * range-op.cc (build_lt): Add -1 for signed values.
774         (built_gt): Subtract -1 for signed values.
775
776 2021-07-02  David Faust  <david.faust@oracle.com>
777
778         * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
779         (btf_asm_type): Likewise.
780
781 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
782
783         * config/h8300/h8300-protos.h (output_a_shift): Make first argument
784         an array of rtx rather than a pointer to rtx.  Add code argument.
785         (compute_a_shift_length): Similarly.
786         * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
787         shift itself isn't an operand.  Create dummy operand[0] to carry
788         a mode and pass a suitable rtx code to compute_a_shift_length.
789         (get_shift_alg): Adjust operand number of clobber in output templates.
790         (output_a_shift): Make first argument an array of rtx rather than
791         a pointer to rtx.  Add code argument for the type of shift.
792         Adjust now that the shift itself is no longer an operand.
793         (compute_a_shift_length): Similarly.
794         * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
795         iterator rather than nshift_operator.
796         (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
797         (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
798         and compute_a_shift_length.
799         (shiftqi_noscratch_clobber_flags): Likewise.
800         (shifthi_noscratch_clobber_flags): Likewise.
801         (shiftsi_noscratch_clobber_flags): Likewise.
802
803 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
804
805         PR debug/101283
806         * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
807         dsymutil for BTF/CTF.
808
809 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
810
811         PR debug/101283
812         * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
813         segment to include BTF.
814         (BTF_INFO_SECTION_NAME): New.
815
816 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
817
818         * config/m32r/m32r-protos.h (call_operand): Adjust return type.
819         (small_data_operand, memreg_operand, small_insn_p): Likewise.
820         * config/m32r/m32r.c (call_operand): Adjust return type.
821         (small_data_operand, memreg_operand): Likewise.
822
823 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
824
825         * config/frv/frv-protos.h  (integer_register_operand): Adjust return
826         type.
827         (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
828         (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
829         (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
830         (move_source_operand, move_destination_operand): Likewise.
831         (condexec_source_operand, condexec_dest_operand): Likewise.
832         (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
833         (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
834         (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
835         (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
836         (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
837         (even_fpr_operand, odd_fpr_operand): Likewise.
838         (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
839         (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
840         (uint4_operand, uint1_operand, int_2word_operand): Likewise
841         (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
842         (relational_operator, float_relational_operator): Likewise.
843         (ccr_eqne_operator, minmax_operator): Likewise.
844         (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
845         (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
846         (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
847         (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
848         (quad_acc_operand, accg_operand): Likewise.
849
850 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
851
852         * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
853         return type to a bool.
854         (nonimmediate_nonstack_operand): Likewise.
855         (xstormy16_splittable_below100_operand): Likewise.
856         * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
857         return type.
858         (xstormy16_splittable_below100_operand): Likewise.
859
860 2021-07-02  Richard Biener  <rguenther@suse.de>
861
862         PR tree-optimization/101293
863         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
864         with combined offsets.
865         (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
866         combined with the rest of the offset.
867
868 2021-07-02  Eric Botcazou  <ebotcazou@adacore.com>
869
870         * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
871         PIC encodings for PE-COFF targets.
872
873 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
874
875         PR target/101286
876         * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
877         Return nullptr for TImode inner mode.
878
879 2021-07-02  Richard Biener  <rguenther@suse.de>
880
881         PR tree-optimization/101280
882         PR tree-optimization/101173
883         * gimple-loop-interchange.cc
884         (tree_loop_interchange::valid_data_dependences): Properly
885         guard all dependence checks with DDR_REVERSED_P or its
886         inverse.
887
888 2021-07-02  Hongyu Wang  <hongyu.wang@intel.com>
889
890         * config/i386/i386-expand.c (ix86_expand_builtin):
891         Add branch to clear odata when ZF is set for asedecenc_expand
892         and wideaesdecenc_expand.
893
894 2021-07-02  Eugene Rozenfeld  <erozen@microsoft.com>
895
896         * config/i386/gcc-auto-profile: regenerate
897
898 2021-07-02  liuhongt  <hongtao.liu@intel.com>
899
900         * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
901         (trunc<mode><pmov_dst_4_lower>2): this.
902
903 2021-07-01  David Malcolm  <dmalcolm@redhat.com>
904
905         * diagnostic.h (diagnostic_context::m_file_cache): New field.
906         * input.c (class fcache): Rename to...
907         (class file_cache_slot): ...this, making most members private and
908         prefixing fields with "m_".
909         (file_cache_slot::get_file_path): New accessor.
910         (file_cache_slot::get_use_count): New accessor.
911         (file_cache_slot::missing_trailing_newline_p): New accessor.
912         (file_cache_slot::inc_use_count): New.
913         (fcache_buffer_size): Move to...
914         (file_cache_slot::buffer_size): ...here.
915         (fcache_line_record_size): Move to...
916         (file_cache_slot::line_record_size): ...here.
917         (fcache_tab): Delete, in favor of global_dc->m_file_cache.
918         (fcache_tab_size): Move to file_cache::num_file_slots.
919         (diagnostic_file_cache_init): Update for move of fcache_tab
920         to global_dc->m_file_cache.
921         (diagnostic_file_cache_fini): Likewise.
922         (lookup_file_in_cache_tab): Convert to...
923         (file_cache::lookup_file): ...this.
924         (diagnostics_file_cache_forcibly_evict_file): Update for move of
925         fcache_tab to global_dc->m_file_cache, moving most of
926         implementation to...
927         (file_cache::forcibly_evict_file): ...this new function and...
928         (file_cache_slot::evict): ...this new function.
929         (evicted_cache_tab_entry): Convert to...
930         (file_cache::evicted_cache_tab_entry): ...this.
931         (add_file_to_cache_tab): Convert to...
932         (file_cache::add_file): ...this, moving bulk of implementation
933         to...
934         (file_cache_slot::create): ..this new function.
935         (file_cache::file_cache): New.
936         (file_cache::~file_cache): New.
937         (lookup_or_add_file_to_cache_tab): Convert to...
938         (file_cache::lookup_or_add_file): ..this new function.
939         (fcache::fcache): Rename to...
940         (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
941         to fields.
942         (fcache::~fcache): Rename to...
943         (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
944         to fields.
945         (needs_read): Convert to...
946         (file_cache_slot::needs_read_p): ...this.
947         (needs_grow): Convert to...
948         (file_cache_slot::needs_grow_p): ...this.
949         (maybe_grow): Convert to...
950         (file_cache_slot::maybe_grow): ...this.
951         (read_data): Convert to...
952         (file_cache_slot::read_data): ...this.
953         (maybe_read_data): Convert to...
954         (file_cache_slot::maybe_read_data): ...this.
955         (get_next_line): Convert to...
956         (file_cache_slot::get_next_line): ...this.
957         (goto_next_line): Convert to...
958         (file_cache_slot::goto_next_line): ...this.
959         (read_line_num): Convert to...
960         (file_cache_slot::read_line_num): ...this.
961         (location_get_source_line): Update for moving of globals to
962         global_dc->m_file_cache.
963         (location_missing_trailing_newline): Likewise.
964         * input.h (class file_cache_slot): New forward decl.
965         (class file_cache): New.
966
967 2021-07-01  Michael Meissner  <meissner@linux.ibm.com>
968
969         * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
970         128-bit floating point conditional move support.
971         (have_compare_and_set_mask): Add IEEE 128-bit floating point
972         types.
973         * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
974         (mov<mode>cc_p10, IEEE128 iterator): New insn.
975         (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
976         (fpmask<mode>, IEEE128 iterator): New insn.
977         (xxsel<mode>, IEEE128 iterator): New insn.
978
979 2021-07-01  Iain Sandoe  <iain@sandoe.co.uk>
980
981         PR debug/101283
982         * config/darwin.h (CTF_INFO_SECTION_NAME): New.
983
984 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
985
986         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
987         Make it global.
988         * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
989         New prototype.
990         * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
991         (vec_duplicate<mode>): New expander.
992
993 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
994
995         PR target/100865
996         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
997         New prototype.
998         (ix86_byte_broadcast): New function.
999         (ix86_convert_const_wide_int_to_broadcast): Likewise.
1000         (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
1001         size is 16 bytes or bigger.
1002         (ix86_broadcast_from_integer_constant): New function.
1003         (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
1004         to broadcast if mode size is 16 bytes or bigger.
1005         * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
1006         prototype.
1007         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
1008
1009 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
1010
1011         * config/i386/predicates.md (ix86_endbr_immediate_operand):
1012         Return true/false instead of 1/0.
1013         (movq_parallel): Ditto.
1014
1015 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
1016
1017         * recog.c (general_operand): Return true/false instead of 1/0.
1018         (register_operand): Ditto.
1019         (immediate_operand): Ditto.
1020         (const_int_operand): Ditto.
1021         (const_scalar_int_operand): Ditto.
1022         (const_double_operand): Ditto.
1023         (push_operand): Ditto.
1024         (pop_operand): Ditto.
1025         (memory_operand): Ditto.
1026         (indirect_operand): Ditto.
1027
1028 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
1029
1030         * genpreds.c (write_predicate_subfunction):
1031         Change the type of written subfunction to bool.
1032         (write_one_predicate_function):
1033         Change the type of written function to bool.
1034         (write_tm_preds_h): Ditto.
1035         * recog.h (*insn_operand_predicate_fn): Change the type to bool.
1036         * recog.c (general_operand): Change the type to bool.
1037         (address_operand): Ditto.
1038         (register_operand): Ditto.
1039         (pmode_register_operand): Ditto.
1040         (scratch_operand): Ditto.
1041         (immediate_operand): Ditto.
1042         (const_int_operand): Ditto.
1043         (const_scalar_int_operand): Ditto.
1044         (const_double_operand): Ditto.
1045         (nonimmediate_operand): Ditto.
1046         (nonmemory_operand): Ditto.
1047         (push_operand): Ditto.
1048         (pop_operand): Ditto.
1049         (memory_operand): Ditto.
1050         (indirect_operand): Ditto.
1051         (ordered_comparison_operator): Ditto.
1052         (comparison_operator): Ditto.
1053         * config/i386/i386-expand.c (ix86_expand_sse_cmp):
1054         Change the type of indirect predicate function to bool.
1055         * config/rs6000/rs6000.c (easy_vector_constant):
1056         Change the type to bool.
1057         * config/mips/mips-protos.h (m16_based_address_p):
1058         Change the type of operand 3 to bool.
1059
1060 2021-07-01  Richard Biener  <rguenther@suse.de>
1061
1062         PR tree-optimization/101280
1063         PR tree-optimization/101173
1064         * gimple-loop-interchange.cc
1065         (tree_loop_interchange::valid_data_dependences): Revert
1066         previous change and instead correctly handle DDR_REVERSED_P
1067         dependence.
1068
1069 2021-07-01  Richard Biener  <rguenther@suse.de>
1070
1071         PR tree-optimization/101278
1072         * tree-ssa-dse.c (dse_classify_store): First check for
1073         uses, then ignore stmt for chaining purposes.
1074
1075 2021-07-01  Richard Biener  <rguenther@suse.de>
1076
1077         PR tree-optimization/100778
1078         * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
1079         vectorized ops ahead of their scalar BB.
1080
1081 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
1082
1083         PR target/101044
1084         * config/i386/i386.md (*nabs<dwi>2_doubleword):
1085         New insn_and_split pattern.
1086         (*nabs<dwi>2_1): Ditto.
1087         * config/i386/i386-features.c
1088         (general_scalar_chain::compute_convert_gain):
1089         Handle (NEG (ABS (...))) RTX.  Rewrite src code
1090         scanner as switch statement.
1091         (general_scalar_chain::convert_insn):
1092         Handle (NEG (ABS (...))) RTX.
1093         (general_scalar_to_vector_candidate_p):
1094         Detect  (NEG (ABS (...))) RTX.  Reorder case statements
1095         for (AND (NOT (...) ...)) fallthrough.
1096
1097 2021-07-01  Richard Biener  <rguenther@suse.de>
1098
1099         PR tree-optimization/101178
1100         * tree-vect-slp.c (slpg_vertex::materialize): Remove.
1101         (slpg::perm_in): Add.
1102         (slpg::get_perm_in): Remove.
1103         (slpg::get_perm_materialized): Add.
1104         (vect_optimize_slp): Handle VEC_PERM nodes more optimally
1105         during permute propagation and materialization.
1106
1107 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
1108
1109         PR debug/101266
1110         * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
1111
1112 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
1113
1114         PR middle-end/94366
1115         * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
1116         is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
1117         use boolean_type_node instead of integer_type_node as NE_EXPR type.
1118         (lower_reduction_clauses): Likewise.
1119
1120 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1121
1122         * config/gcn/gcn.c: Include dwarf2.h.
1123         (gcn_addr_space_debug): New function.
1124         (TARGET_ADDR_SPACE_DEBUG): New hook.
1125
1126 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1127
1128         * common/config/gcn/gcn-common.c
1129         (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
1130         * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
1131         when emitting CFI.
1132         (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
1133         (gcn_frame_pointer_rqd): New function.
1134         (TARGET_FRAME_POINTER_REQUIRED): New hook.
1135
1136 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1137
1138         * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
1139         prologue register saves.
1140         (gcn_debug_unwind_info): Use UI_DWARF2.
1141         (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
1142         (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
1143         * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
1144         (DWARF_LINK_REGISTER): New define.
1145         (FIRST_PSEUDO_REGISTER): Increment.
1146         (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
1147         (CALL_USED_REGISTERS): Likewise.
1148         (REGISTER_NAMES): Likewise.
1149
1150 2021-06-30  Richard Biener  <rguenther@suse.de>
1151
1152         PR tree-optimization/101267
1153         * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
1154         API and use SLP compatible interface of vect_is_simple_use.
1155         Reject not vectorized SLP defs for callers that do not support
1156         that.
1157         (vect_check_store_rhs): Handle masked stores and pass down
1158         the appropriate operator index.
1159         (vectorizable_call): Adjust.
1160         (vectorizable_store): Likewise.
1161         (vectorizable_load): Likewise.  Handle SLP pecularity of
1162         masked loads.
1163         (vect_is_simple_use): Remove special-casing of masked stores.
1164
1165 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
1166
1167         * common.opt (foffload): Remove help as Driver only.
1168         * gcc.c (display_help): Add -foffload.
1169
1170 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
1171
1172         * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
1173         (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
1174         a candidate list; better inform no offload target is configured
1175         and fix hint extraction when passed target is not '\0' at [len].
1176         * common.opt (foffload): Add tailing '.'.
1177         (foffload-options): Likewise; fix flag name in the help string.
1178
1179 2021-06-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
1180
1181         PR target/66791
1182         * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
1183         (vcage_f32): Gate comparison on __FAST_MATH__.
1184         (vcageq_f32): Likewise.
1185         (vcale_f32): Likewise.
1186         (vcaleq_f32): Likewise.
1187         (vcagt_f32): Likewise.
1188         (vcagtq_f32): Likewise.
1189         (vcalt_f32): Likewise.
1190         (vcaltq_f32): Likewise.
1191         (vcage_f16): Likewise.
1192         (vcageq_f16): Likewise.
1193         (vcale_f16): Likewise.
1194         (vcaleq_f16): Likewise.
1195         (vcagt_f16): Likewise.
1196         (vcagtq_f16): Likewise.
1197         (vcalt_f16): Likewise.
1198         (vcaltq_f16): Likewise.
1199
1200 2021-06-30  Richard Biener  <rguenther@suse.de>
1201
1202         PR tree-optimization/101264
1203         * tree-vect-slp.c (vect_optimize_slp): Propagate the
1204         computed perm_in to all "any" permute successors
1205         we cannot de-duplicate immediately.
1206
1207 2021-06-30  liuhongt  <hongtao.liu@intel.com>
1208
1209         PR target/101248
1210         * config/i386/sse.md
1211         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
1212         Refined to ..
1213         (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
1214         this.
1215         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
1216         * config/i386/subst.md (maskz_scalar): New define_subst.
1217         (maskz_scalar_name): New subst_attr.
1218         (maskz_scalar_op5): Ditto.
1219         (round_saeonly_maskz_scalar_op5): Ditto.
1220         (round_saeonly_maskz_scalar_operand5): Ditto.
1221
1222 2021-06-30  David Edelsohn  <dje.gcc@gmail.com>
1223
1224         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
1225         Increase code CSECT alignment to at least 32 bytes.
1226         * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
1227         alignment designation.
1228
1229 2021-06-29  Sergei Trofimovich  <siarheit@google.com>
1230
1231         * doc/generic.texi: Fix s/net yet/not yet/ typo.
1232
1233 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
1234
1235         PR tree-optimization/101254
1236         * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
1237         wrapping/non-wrapping when setting the result range.
1238
1239 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
1240
1241         * value-query.cc (gimple_range_global): Allow phis.
1242
1243 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
1244
1245         * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
1246         (simplify_using_ranges::op_with_boolean_value_range_p): Add a
1247         statement for location context.
1248         (check_for_binary_op_overflow): Ditto.
1249         (simplify_using_ranges::get_vr_for_comparison): Ditto.
1250         (simplify_using_ranges::compare_name_with_value): Ditto.
1251         (simplify_using_ranges::compare_names): Ditto.
1252         (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
1253         (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
1254         (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
1255         (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
1256         (simplify_using_ranges::two_valued_val_range_p): Ditto.
1257         (simplify_using_ranges::simplify): Ditto.
1258         * vr-values.h: Adjust prototypes.
1259
1260 2021-06-29  Uroš Bizjak  <ubizjak@gmail.com>
1261
1262         PR target/95046
1263         * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
1264
1265 2021-06-29  Julian Brown  <julian@codesourcery.com>
1266
1267         * config/gcn/gcn.c (gcn_init_libfuncs): New function.
1268         (TARGET_INIT_LIBFUNCS): Define target hook using above function.
1269         * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
1270         otherwise.
1271         (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
1272         (MAX_FIXED_MODE_SIZE): Change to 128.
1273
1274 2021-06-29  Julian Brown  <julian@codesourcery.com>
1275
1276         * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
1277         (s_mnemonic): Add clrsb.
1278         (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
1279         (clrsb<mode>2): Add expander for SImode/DImode.
1280
1281 2021-06-29  Julian Brown  <julian@codesourcery.com>
1282
1283         * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
1284         muldi3): Add patterns.
1285
1286 2021-06-29  Julian Brown  <julian@codesourcery.com>
1287
1288         * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
1289         (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
1290
1291 2021-06-29  Julian Brown  <julian@codesourcery.com>
1292
1293         * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
1294
1295 2021-06-29  Joseph Myers  <joseph@codesourcery.com>
1296
1297         * btfout.c, ctfout.c: Include "memmodel.h".
1298
1299 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
1300
1301         * gcc.c (check_offload_target_name): Cast len argument to
1302         %q.*s to 'int'; avoid -Wstringop-truncation warning.
1303
1304 2021-06-29  Richard Biener  <rguenther@suse.de>
1305
1306         * tree-vect-slp.c (vect_optimize_slp): Forward propagate
1307         to "any" permute nodes and relax "any" permute proapgation
1308         during iterative backward propagation.
1309
1310 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
1311
1312         PR other/67300
1313         * common.opt (-foffload=): Update description.
1314         (-foffload-options=): New.
1315         * doc/invoke.texi (C Language Options): Document
1316         -foffload and -foffload-options.
1317         * gcc.c (check_offload_target_name): New, split off from
1318         handle_foffload_option.
1319         (check_foffload_target_names): New.
1320         (handle_foffload_option): Handle -foffload=default.
1321         (driver_handle_option): Update for -foffload-options.
1322         * lto-opts.c (lto_write_options): Use -foffload-options
1323         instead of -foffload.
1324         * lto-wrapper.c (merge_and_complain, append_offload_options):
1325         Likewise.
1326         * opts.c (common_handle_option): Likewise.
1327
1328 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
1329
1330         * doc/invoke.texi (C Language Options): Sort options
1331         alphabetically in optlist and also the description itself.
1332         Remove leftover -fallow-single-precision from and add missing
1333         -fgnu-tm to the optlist.
1334
1335 2021-06-29  Richard Biener  <rguenther@suse.de>
1336
1337         * tree-vect-slp.c (slpg_vertex::visited): Remove.
1338         (vect_slp_perms_eq): Handle -1 permutes.
1339         (vect_optimize_slp): Rewrite permute propagation.
1340
1341 2021-06-29  Jakub Jelinek  <jakub@redhat.com>
1342
1343         PR c++/101210
1344         * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
1345         perform the optimization in GENERIC when sanitizing and x has a
1346         reference type.
1347
1348 2021-06-29  Richard Biener  <rguenther@suse.de>
1349
1350         PR tree-optimization/101242
1351         * tree-vect-slp.c (vect_slp_build_vertices): Force-add
1352         PHIs with not represented initial values as leafs.
1353
1354 2021-06-29  Jan-Benedict Glaw  <jbglaw@getslash.de>
1355
1356         * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
1357         * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
1358         "register" keyword.
1359         (pdp11_initial_elimination_offset) Remove unused variable.
1360         (pdp11_cmp_length) Ditto.
1361         (pdp11_insn_cost): Ditto, and fix signedness warning.
1362
1363 2021-06-29  David Edelsohn  <dje.gcc@gmail.com>
1364
1365         * btfout.c: Include tm_p.h.
1366         * ctfout.c: Same.
1367
1368 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
1369
1370         * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
1371         frame related.
1372         (bpf_expand_epilogue): Likewise.
1373         * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
1374         Do not define DBX_DEBUGGING_INFO.
1375
1376 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
1377
1378         * doc/invoke.texi: Document the CTF and BTF debug info options.
1379
1380 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
1381             David Faust  <david.faust@oracle.com>
1382             Jose E. Marchesi  <jose.marchesi@oracle.com>
1383             Weimin Pan  <weimin.pan@oracle.com>
1384
1385         * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
1386         GTFILES.  Add new object files.
1387         * common.opt: Add CTF and BTF debug info options.
1388         * btfout.c: New file.
1389         * ctfc.c: Likewise.
1390         * ctfc.h: Likewise.
1391         * ctfout.c: Likewise.
1392         * dwarf2ctf.c: Likewise.
1393         * dwarf2ctf.h: Likewise.
1394         * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
1395         BTF_DEBUG.
1396         * dwarf2out.c (dwarf2out_source_line): Likewise.
1397         (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
1398         be generated.
1399         (debug_format_do_cu): New function.
1400         (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
1401         them if requested.
1402         Include dwarf2ctf.c.
1403         * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
1404         formats.
1405         * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
1406         (CTF_DEBUG): New bitmask.
1407         (BTF_DEBUG): Likewise.
1408         (enum ctf_debug_info_levels): New enum.
1409         * gengtype.c (open_base_files): Handle ctfc.h.
1410         (main): Handle uint32_t type.
1411         * flags.h (btf_debuginfo_p): New definition.
1412         (dwarf_based_debuginfo_p): Likewise.
1413         * opts.c (debug_type_names): Add entries for CTF and BTF.
1414         (btf_debuginfo_p): New function.
1415         (dwarf_based_debuginfo_p): Likewise.
1416         (common_handle_option): Handle -gctfN and -gbtf options.
1417         (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
1418         * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
1419         frontend is not C.
1420
1421 2021-06-28  Jose E. Marchesi  <jose.marchesi@oracle.com>
1422
1423         * dwarf2out.c (AT_class): Function is no longer static.
1424         (AT_int): Likewise.
1425         (AT_unsigned): Likewise.
1426         (AT_loc): Likewise.
1427         (get_AT): Likewise.
1428         (get_AT_string): Likewise.
1429         (get_AT_flag): Likewise.
1430         (get_AT_unsigned): Likewise.
1431         (get_AT_ref): Likewise.
1432         (new_die_raw): Likewise.
1433         (lookup_decl_die): Likewise.
1434         (base_type_die): Likewise.
1435         (add_name_attribute): Likewise.
1436         (add_AT_int): Likewise.
1437         (add_AT_unsigned): Likewise.
1438         (add_AT_loc): Likewise.
1439         (dw_get_die_tag): New function.
1440         (dw_get_die_child): Likewise.
1441         (dw_get_die_sib): Likewise.
1442         (struct dwarf_file_data): Move from here to dwarf2out.h
1443         (struct dw_attr_struct): Likewise.
1444         * dwarf2out.h: Analogous changes.
1445
1446 2021-06-28  Martin Jambor  <mjambor@suse.cz>
1447
1448         PR ipa/93385
1449         * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
1450         members m_dead_stmts and m_dead_ssas.
1451         * ipa-param-manipulation.c
1452         (ipa_param_body_adjustments::mark_dead_statements): New function.
1453         (ipa_param_body_adjustments::common_initialization): Call it on
1454         all removed but not split parameters.
1455         (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
1456         new mwmbers.
1457         (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
1458         are dead.
1459         * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
1460         dead debug statements.
1461         (copy_phis_for_bb): Do not copy dead PHI nodes.
1462
1463 2021-06-28  Martin Jambor  <mjambor@suse.cz>
1464
1465         PR ipa/93385
1466         * symtab-clones.h (clone_info): Removed member param_adjustments.
1467         * ipa-param-manipulation.h: Adjust initial comment to reflect how we
1468         deal with pass-through splits now.
1469         (ipa_param_performed_split): Removed.
1470         (ipa_param_adjustments::modify_call): Adjusted parameters.
1471         (class ipa_param_body_adjustments): Adjusted parameters of
1472         register_replacement, modify_gimple_stmt and modify_call_stmt.
1473         (ipa_verify_edge_has_no_modifications): Declare.
1474         (ipa_edge_modifications_finalize): Declare.
1475         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
1476         performed_splits processing, pas only edge to padjs->modify_call,
1477         check that call arguments were not modified if they should not have
1478         been.
1479         * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
1480         splits.
1481         * ipa-param-manipulation.c (struct pass_through_split_map): New type.
1482         (ipa_edge_modification_info): Likewise.
1483         (ipa_edge_modification_sum): Likewise.
1484         (ipa_edge_modifications): New edge summary.
1485         (ipa_verify_edge_has_no_modifications): New function.
1486         (transitive_split_p): Removed.
1487         (transitive_split_map): Likewise.
1488         (init_transitive_splits): Likewise.
1489         (ipa_param_adjustments::modify_call): Adjusted to use the new edge
1490         summary instead of performed_splits.
1491         (ipa_param_body_adjustments::register_replacement): Drop dummy
1492         parameter, set base_index of the created ipa_param_body_replacement.
1493         (phi_arg_will_live_p): New function.
1494         (ipa_param_body_adjustments::common_initialization): Do not create
1495         IPA_SRA dummy decls.
1496         (simple_tree_swap_info): Removed.
1497         (remap_split_decl_to_dummy): Likewise.
1498         (record_argument_state_1): New function.
1499         (record_argument_state): Likewise.
1500         (ipa_param_body_adjustments::modify_call_stmt): New parameter
1501         orig_stmt.  Do not work with dummy decls, save necessary info about
1502         changes to ipa_edge_modifications.
1503         (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
1504         orig_stmt, pass it to modify_call_stmt.
1505         (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
1506         modify_gimple_stmt.
1507         (ipa_edge_modifications_finalize): New function.
1508         * tree-inline.c (remap_gimple_stmt): Pass original statement to
1509         modify_gimple_stmt.
1510         (copy_phis_for_bb): Do not copy dead PHI nodes.
1511         (expand_call_inline): Do not remap performed_splits.
1512         (update_clone_info): Likewise.
1513         * toplev.c: Include ipa-param-manipulation.h.
1514         (toplev::finalize): Call ipa_edge_modifications_finalize.
1515
1516 2021-06-28  Andrew Pinski  <apinski@marvell.com>
1517
1518         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
1519         info if we're the only things setting the target PHI.
1520         (value_replacement): Don't duplicate range here.
1521         (minmax_replacement): Likewise.
1522
1523 2021-06-28  Richard Biener  <rguenther@suse.de>
1524
1525         PR tree-optimization/101229
1526         * gimple-walk.c (gimple_walk_op): Handle PHIs.
1527
1528 2021-06-28  Martin Liska  <mliska@suse.cz>
1529
1530         * config/v850/v850.c (construct_dispose_instruction): Allocate
1531         a bigger buffer.
1532         (construct_prepare_instruction): Likewise.
1533
1534 2021-06-28  Martin Liska  <mliska@suse.cz>
1535
1536         * config/v850/v850.c (v850_option_override): Build default
1537         target node.
1538         (v850_can_inline_p): New.  Allow MASK_PROLOG_FUNCTION to be
1539         ignored for inlining.
1540         (TARGET_CAN_INLINE_P): New.
1541
1542 2021-06-28  Richard Biener  <rguenther@suse.de>
1543
1544         PR tree-optimization/101207
1545         * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
1546         permute eliding for load permutations properly.
1547
1548 2021-06-28  Richard Biener  <rguenther@suse.de>
1549
1550         PR tree-optimization/101173
1551         * gimple-loop-interchange.cc
1552         (tree_loop_interchange::valid_data_dependences): Disallow outer
1553         loop dependence distance of zero.
1554
1555 2021-06-28  liuhongt  <hongtao.liu@intel.com>
1556
1557         PR target/100648
1558         * config/i386/sse.md (*avx_cmp<mode>3_lt): New
1559         define_insn_and_split.
1560         (*avx_cmp<mode>3_ltint): Ditto.
1561         (*avx2_pcmp<mode>3_3): Ditto.
1562         (*avx2_pcmp<mode>3_4): Ditto.
1563         (*avx2_pcmp<mode>3_5): Ditto.
1564
1565 2021-06-28  liuhongt  <hongtao.liu@intel.com>
1566
1567         * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
1568         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
1569         IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
1570         IX86_BUILTIN_PBLENDVB128): Replace icode with
1571         CODE_FOR_nothing.
1572         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
1573         builtins.
1574         * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
1575         New pre_reload splitter.
1576
1577 2021-06-27  Andrew Pinski  <apinski@marvell.com>
1578
1579         PR middle-end/101230
1580         * fold-const.c (fold_ternary_loc): Check
1581         the return value of invert_tree_comparison.
1582
1583 2021-06-27  David Edelsohn  <dje.gcc@gmail.com>
1584
1585         * config.gcc: Add SPDX License Identifier.
1586         (powerpc-ibm-aix789): Default to aix73.h.
1587         (powerpc-ibm-aix7.2.*.*): New stanza.
1588         * config/rs6000/aix72.h: Add SPDX License Identifier.
1589         * config/rs6000/aix73.h: New file.
1590
1591 2021-06-26  Jason Merrill  <jason@redhat.com>
1592
1593         * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
1594
1595 2021-06-26  Andrew Pinski  <apinski@marvell.com>
1596
1597         * genmatch.c (lower_cond): Copy for_subst_vec
1598         for the simplify also.
1599         (lower): Swap the order for lower_for and lower_cond.
1600
1601 2021-06-26  Andrew Pinski  <apinski@marvell.com>
1602
1603         * tree-ssa-phiopt.c (match_simplify_replacement): Reset
1604         flow senatitive info on the moved ssa set.
1605
1606 2021-06-26  Andrew Pinski  <apinski@marvell.com>
1607
1608         * fold-const.c (fold_cond_expr_with_comparison):
1609         Exand arg0 into comp_code, arg00, and arg01.
1610         (fold_ternary_loc): Use invert_tree_comparison
1611         instead of fold_invert_truthvalue for the case
1612         where we have A CMP B ? C : A.
1613
1614 2021-06-25  Martin Sebor  <msebor@redhat.com>
1615
1616         PR middle-end/101216
1617         * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
1618
1619 2021-06-25  Jeff Law  <jeffreyalaw@gmail.com>
1620
1621         * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
1622
1623 2021-06-25  Richard Biener  <rguenther@suse.de>
1624
1625         PR tree-optimization/101202
1626         * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
1627         failed nodes.
1628
1629 2021-06-25  Richard Biener  <rguenther@suse.de>
1630
1631         * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
1632         STMT_VINFO_REDUC_DEF from the original representative.
1633
1634 2021-06-25  Martin Sebor  <msebor@redhat.com>
1635
1636         * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
1637         gimple_no_warning_p and gimple_set_no_warning with
1638         warning_suppressed_p, and suppress_warning.
1639         (c_strlen): Same.
1640         (maybe_warn_for_bound): Same.
1641         (warn_for_access): Same.
1642         (check_access): Same.
1643         (expand_builtin_strncmp): Same.
1644         (fold_builtin_varargs): Same.
1645         * calls.c (maybe_warn_nonstring_arg): Same.
1646         (maybe_warn_rdwr_sizes): Same.
1647         * cfgexpand.c (expand_call_stmt): Same.
1648         * cgraphunit.c (check_global_declaration): Same.
1649         * fold-const.c (fold_undefer_overflow_warnings): Same.
1650         (fold_truth_not_expr): Same.
1651         (fold_unary_loc): Same.
1652         (fold_checksum_tree): Same.
1653         * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
1654         (array_bounds_checker::check_mem_ref): Same.
1655         (array_bounds_checker::check_addr_expr): Same.
1656         (array_bounds_checker::check_array_bounds): Same.
1657         * gimple-expr.c (copy_var_decl): Same.
1658         * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
1659         (gimple_fold_builtin_strncat): Same.
1660         (gimple_fold_builtin_stxcpy_chk): Same.
1661         (gimple_fold_builtin_stpcpy): Same.
1662         (gimple_fold_builtin_sprintf): Same.
1663         (fold_stmt_1): Same.
1664         * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
1665         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
1666         * gimple-ssa-sprintf.c (handle_printf_call): Same.
1667         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
1668         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
1669         * gimple-ssa-warn-restrict.h: Adjust declarations.
1670         (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
1671         gimple_no_warning_p and gimple_set_no_warning with
1672         warning_suppressed_p, and suppress_warning.
1673         (check_call): Same.
1674         (check_bounds_or_overlap): Same.
1675         * gimple.c (gimple_build_call_from_tree): Same.
1676         * gimplify.c (gimplify_return_expr): Same.
1677         (gimplify_cond_expr): Same.
1678         (gimplify_modify_expr_complex_part): Same.
1679         (gimplify_modify_expr): Same.
1680         (gimple_push_cleanup): Same.
1681         (gimplify_expr): Same.
1682         * omp-expand.c (expand_omp_for_generic): Same.
1683         (expand_omp_taskloop_for_outer): Same.
1684         * omp-low.c (lower_rec_input_clauses): Same.
1685         (lower_lastprivate_clauses): Same.
1686         (lower_send_clauses): Same.
1687         (lower_omp_target): Same.
1688         * tree-cfg.c (pass_warn_function_return::execute): Same.
1689         * tree-complex.c (create_one_component_var): Same.
1690         * tree-inline.c (remap_gimple_op_r): Same.
1691         (copy_tree_body_r): Same.
1692         (declare_return_variable): Same.
1693         (expand_call_inline): Same.
1694         * tree-nested.c (lookup_field_for_decl): Same.
1695         * tree-sra.c (create_access_replacement): Same.
1696         (generate_subtree_copies): Same.
1697         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
1698         * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
1699         * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
1700         * tree-ssa-loop-im.c (execute_sm): Same.
1701         * tree-ssa-phiopt.c (cond_store_replacement): Same.
1702         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
1703         (handle_builtin_strcpy): Same.
1704         (maybe_diag_stxncpy_trunc): Same.
1705         (handle_builtin_stxncpy_strncat): Same.
1706         (handle_builtin_strcat): Same.
1707         * tree-ssa-uninit.c (get_no_uninit_warning): Same.
1708         (set_no_uninit_warning): Same.
1709         (uninit_undefined_value_p): Same.
1710         (warn_uninit): Same.
1711         (maybe_warn_operand): Same.
1712         * tree-vrp.c (compare_values_warnv): Same.
1713         * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
1714         (test_for_singularity): Same.
1715         * gimple.h (warning_suppressed_p): New function.
1716         (suppress_warning): Same.
1717         (copy_no_warning): Same.
1718         (gimple_set_block): Call gimple_set_location.
1719         (gimple_set_location): Call copy_warning.
1720
1721 2021-06-25  Martin Sebor  <msebor@redhat.com>
1722
1723         * tree.h (warning_suppressed_at, copy_warning,
1724         warning_suppressed_p, suppress_warning): New functions.
1725
1726 2021-06-25  Martin Sebor  <msebor@redhat.com>
1727
1728         * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
1729         * gengtype.c (open_base_files): Add diagnostic-spec.h.
1730         * diagnostic-spec.c: New file.
1731         * diagnostic-spec.h: New file.
1732         * tree.h (no_warning, all_warnings, suppress_warning_at): New
1733         declarations.
1734         * warning-control.cc: New file.
1735
1736 2021-06-25  liuhongt  <hongtao.liu@intel.com>
1737
1738         PR target/101185
1739         * config/i386/i386.c (x86_order_regs_for_local_alloc):
1740         Revert r12-1669.
1741
1742 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
1743
1744         PR tree-optimization/101189
1745         * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
1746         LHS range of condition to postfold routine.
1747         (fold_using_range::postfold_gcond_edges): Only process the TRUE or
1748         FALSE edge if the LHS range supports it being taken.
1749         * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
1750
1751 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
1752
1753         * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
1754         (relation_oracle::find_relation_block): Check correct bitmap.
1755         (relation_oracle::dump): Do not dump NULL blocks.
1756
1757 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
1758
1759         * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
1760         range_on_edge instead of manually calculating.
1761
1762 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
1763
1764         * range-op.cc: Fix comment.
1765
1766 2021-06-24  Uroš Bizjak  <ubizjak@gmail.com>
1767
1768         PR target/89021
1769         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
1770         Handle V8QI and V4HI modes.
1771         * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
1772         New insn pattern.
1773         (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
1774         (mmxpackmode): New mode attribute.
1775         (vec_pack_trunc_<mmxpackmode:mode>): New expander.
1776         (mmxunpackmode): New mode attribute.
1777         (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
1778         (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
1779         (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
1780         (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
1781         * config/i386/i386.md (extsuffix): Move from ...
1782         * config/i386/sse.md: ... here.
1783
1784 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
1785
1786         * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
1787         (dwarf2out_finish): ...instead of here.
1788
1789 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
1790
1791         * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
1792         (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
1793         (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
1794         * configure: Regenerate.
1795
1796 2021-06-24  Richard Biener  <rguenther@suse.de>
1797
1798         * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
1799         vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
1800         (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
1801
1802 2021-06-24  Richard Biener  <rguenther@suse.de>
1803
1804         * config/i386/sse.md (avx_addsubv4df3): Rename to
1805         vec_addsubv4df3.
1806         (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
1807         (sse3_addsubv2df3): Rename to vec_addsubv2df3.
1808         (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
1809         * config/i386/i386-builtin.def: Adjust.
1810         * internal-fn.def (VEC_ADDSUB): New internal optab fn.
1811         * optabs.def (vec_addsub_optab): New optab.
1812         * tree-vect-slp-patterns.c (class addsub_pattern): New.
1813         (slp_patterns): Add addsub_pattern.
1814         * tree-vect-slp.c (vect_optimize_slp): Disable propagation
1815         across CFN_VEC_ADDSUB.
1816         * tree-vectorizer.h (vect_pattern::vect_pattern): Make
1817         m_ops optional.
1818         * doc/md.texi (vec_addsub<mode>3): Document.
1819
1820 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
1821
1822         PR middle-end/101170
1823         * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
1824         where regno + subreg_regno_offset wraps around use 0 as starting
1825         regno.
1826
1827 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
1828
1829         PR middle-end/101172
1830         * stor-layout.c (finish_bitfield_representative): If nextf has
1831         error_mark_node type, set repr type to error_mark_node too.
1832
1833 2021-06-24  Ilya Leoshkevich  <iii@linux.ibm.com>
1834
1835         * config/s390/s390.c (s390_function_profiler): Ignore labelno
1836         parameter.
1837         * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
1838
1839 2021-06-24  Richard Biener  <rguenther@suse.de>
1840
1841         * tree-vect-slp.c (vect_optimize_slp): Do not propagate
1842         across operations that have different semantics on different
1843         lanes.
1844
1845 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
1846
1847         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
1848         * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
1849         with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
1850         of non-decl OMP_CLAUSE_DECL.  For OMP_CLAUSE_IN_REDUCTION on
1851         OMP_TARGET user outer_ctx instead of ctx for placeholders and
1852         initializer/combiner gimplification.
1853         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
1854         on target constructs.
1855         (lower_rec_input_clauses): Likewise.
1856         (lower_omp_target): Likewise.
1857         * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
1858         on target if in_reduction is present.
1859
1860 2021-06-24  Kewen Lin  <linkw@linux.ibm.com>
1861
1862         * tree-predcom.c (class pcom_worker): New class.
1863         (release_chain): Renamed to...
1864         (pcom_worker::release_chain): ...this.
1865         (release_chains): Renamed to...
1866         (pcom_worker::release_chains): ...this.
1867         (aff_combination_dr_offset): Renamed to...
1868         (pcom_worker::aff_combination_dr_offset): ...this.
1869         (determine_offset): Renamed to...
1870         (pcom_worker::determine_offset): ...this.
1871         (class comp_ptrs): New class.
1872         (split_data_refs_to_components): Renamed to...
1873         (pcom_worker::split_data_refs_to_components): ...this,
1874         and update with class comp_ptrs.
1875         (suitable_component_p): Renamed to...
1876         (pcom_worker::suitable_component_p): ...this.
1877         (filter_suitable_components): Renamed to...
1878         (pcom_worker::filter_suitable_components): ...this.
1879         (valid_initializer_p): Renamed to...
1880         (pcom_worker::valid_initializer_p): ...this.
1881         (find_looparound_phi): Renamed to...
1882         (pcom_worker::find_looparound_phi): ...this.
1883         (add_looparound_copies): Renamed to...
1884         (pcom_worker::add_looparound_copies): ...this.
1885         (determine_roots_comp): Renamed to...
1886         (pcom_worker::determine_roots_comp): ...this.
1887         (determine_roots): Renamed to...
1888         (pcom_worker::determine_roots): ...this.
1889         (single_nonlooparound_use): Renamed to...
1890         (pcom_worker::single_nonlooparound_use): ...this.
1891         (remove_stmt): Renamed to...
1892         (pcom_worker::remove_stmt): ...this.
1893         (execute_pred_commoning_chain): Renamed to...
1894         (pcom_worker::execute_pred_commoning_chain): ...this.
1895         (execute_pred_commoning): Renamed to...
1896         (pcom_worker::execute_pred_commoning): ...this.
1897         (struct epcc_data): New member worker.
1898         (execute_pred_commoning_cbck): Call execute_pred_commoning
1899         with pcom_worker pointer.
1900         (find_use_stmt): Renamed to...
1901         (pcom_worker::find_use_stmt): ...this.
1902         (find_associative_operation_root): Renamed to...
1903         (pcom_worker::find_associative_operation_root): ...this.
1904         (find_common_use_stmt): Renamed to...
1905         (pcom_worker::find_common_use_stmt): ...this.
1906         (combinable_refs_p): Renamed to...
1907         (pcom_worker::combinable_refs_p): ...this.
1908         (reassociate_to_the_same_stmt): Renamed to...
1909         (pcom_worker::reassociate_to_the_same_stmt): ...this.
1910         (stmt_combining_refs): Renamed to...
1911         (pcom_worker::stmt_combining_refs): ...this.
1912         (combine_chains): Renamed to...
1913         (pcom_worker::combine_chains): ...this.
1914         (try_combine_chains): Renamed to...
1915         (pcom_worker::try_combine_chains): ...this.
1916         (prepare_initializers_chain): Renamed to...
1917         (pcom_worker::prepare_initializers_chain): ...this.
1918         (prepare_initializers): Renamed to...
1919         (pcom_worker::prepare_initializers): ...this.
1920         (prepare_finalizers_chain): Renamed to...
1921         (pcom_worker::prepare_finalizers_chain): ...this.
1922         (prepare_finalizers): Renamed to...
1923         (pcom_worker::prepare_finalizers): ...this.
1924         (tree_predictive_commoning_loop): Renamed to...
1925         (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
1926         some calls and remove some cleanup code.
1927         (tree_predictive_commoning): Adjusted to use pcom_worker instance.
1928         (static variable looparound_phis): Remove.
1929         (static variable name_expansions): Remove.
1930
1931 2021-06-24  Richard Biener  <rguenther@suse.de>
1932
1933         * tree-vect-slp.c (slpg_vertex): New struct.
1934         (vect_slp_build_vertices): Adjust.
1935         (vect_optimize_slp): Likewise.  Maintain an outgoing permute
1936         and a materialized one.
1937
1938 2021-06-24  Richard Biener  <rguenther@suse.de>
1939
1940         PR tree-optimization/101105
1941         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1942         Only ignore steps when they are equal or scalar order is preserved.
1943
1944 2021-06-24  liuhongt  <hongtao.liu@intel.com>
1945
1946         PR target/98434
1947         * config/i386/i386-expand.c (ix86_expand_vec_interleave):
1948         Adjust comments for ix86_expand_vecop_qihi2.
1949         (ix86_expand_vecmul_qihi): Renamed to ..
1950         (ix86_expand_vecop_qihi2): Adjust function prototype to
1951         support shift operation, add static to definition.
1952         (ix86_expand_vec_shift_qihi_constant): Add static to definition.
1953         (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
1954         ix86_expand_vec_shift_qihi_constant.
1955         * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
1956         (ix86_expand_vec_shift_qihi_constant): Deleted.
1957         * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
1958         iterator.
1959         (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
1960         condition TARGET_64BIT.
1961         (mul<mode>3): Ditto.
1962         (<insn><mode>3): Ditto.
1963         (vlshr<mode>3): Extend to support avx512 vlshr.
1964         (v<insn><mode>3): New expander for
1965         vashr/vlshr/vashl.
1966         (v<insn>v8qi3): Ditto.
1967         (vashrv8hi3<mask_name>): Renamed to ..
1968         (vashr<mode>3): And extend to support V16QImode for avx512.
1969         (vashrv16qi3): Deleted.
1970         (vashrv2di3<mask_name>): Extend expander to support avx512
1971         instruction.
1972
1973 2021-06-23  Dimitar Dimitrov  <dimitar@dinux.eu>
1974
1975         * doc/lto.texi (Design Overview): Update that slim objects are
1976         the default.
1977
1978 2021-06-23  Aaron Sawdey  <acsawdey@linux.ibm.com>
1979
1980         * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
1981         of OTHER_POWER10_MASKS so it will not be enabled by default.
1982
1983 2021-06-23  Richard Biener  <rguenther@suse.de>
1984             Martin Jambor  <mjambor@suse.cz>
1985
1986         * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
1987         param replacement unconditionally.  Adjust comment.
1988
1989 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
1990
1991         * Makefile.in (OBJS): Add gimple-range-fold.o
1992         * gimple-range-fold.cc: New.
1993         * gimple-range-fold.h: New.
1994         * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
1995         (gimple_range_calc_op2): Ditto.
1996         * gimple-range-gori.h: Move prototypes to here.
1997         * gimple-range.cc: Adjust include files.
1998         (fur_source:fur_source): Relocate to gimple-range-fold.cc.
1999         (fur_source::get_operand): Ditto.
2000         (fur_source::get_phi_operand): Ditto.
2001         (fur_source::query_relation): Ditto.
2002         (fur_source::register_relation): Ditto.
2003         (class fur_edge): Ditto.
2004         (fur_edge::fur_edge): Ditto.
2005         (fur_edge::get_operand): Ditto.
2006         (fur_edge::get_phi_operand): Ditto.
2007         (fur_stmt::fur_stmt): Ditto.
2008         (fur_stmt::get_operand): Ditto.
2009         (fur_stmt::get_phi_operand): Ditto.
2010         (fur_stmt::query_relation): Ditto.
2011         (class fur_depend): Relocate to gimple-range-fold.h.
2012         (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
2013         (fur_depend::register_relation): Ditto.
2014         (fur_depend::register_relation): Ditto.
2015         (class fur_list): Ditto.
2016         (fur_list::fur_list): Ditto.
2017         (fur_list::get_operand): Ditto.
2018         (fur_list::get_phi_operand): Ditto.
2019         (fold_range): Ditto.
2020         (adjust_pointer_diff_expr): Ditto.
2021         (gimple_range_adjustment): Ditto.
2022         (gimple_range_base_of_assignment): Ditto.
2023         (gimple_range_operand1): Ditto.
2024         (gimple_range_operand2): Ditto.
2025         (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
2026         (gimple_range_calc_op2): Ditto.
2027         (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
2028         (fold_using_range::range_of_range_op): Ditto.
2029         (fold_using_range::range_of_address): Ditto.
2030         (fold_using_range::range_of_phi): Ditto.
2031         (fold_using_range::range_of_call): Ditto.
2032         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
2033         (fold_using_range::range_of_builtin_call): Ditto.
2034         (fold_using_range::range_of_cond_expr): Ditto.
2035         (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
2036         (fold_using_range::relation_fold_and_or): Ditto.
2037         (fold_using_range::postfold_gcond_edges): Ditto.
2038         * gimple-range.h: Add gimple-range-fold.h to include files. Change
2039         GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
2040         (gimple_range_handler): Relocate to gimple-range-fold.h.
2041         (gimple_range_ssa_p): Ditto.
2042         (range_compatible_p): Ditto.
2043         (class fur_source): Ditto.
2044         (class fur_stmt): Ditto.
2045         (class fold_using_range): Ditto.
2046         (gimple_range_calc_op1): Relocate to gimple-range-gori.h
2047         (gimple_range_calc_op2): Ditto.
2048
2049 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
2050
2051         PR tree-optimization/101148
2052         PR tree-optimization/101014
2053         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
2054         (ranger_cache::~ranger_cache): Adjust.
2055         (ranger_cache::block_range): Check if propagation disallowed.
2056         (ranger_cache::propagate_cache): Disallow propagation if new value
2057         can't be stored properly.
2058         * gimple-range-cache.h (ranger_cache::m_propfail): New member.
2059
2060 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
2061
2062         * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
2063         (sbr_vector::set_bb_range): Return true.
2064         (class sbr_sparse_bitmap): Adjust.
2065         (sbr_sparse_bitmap::set_bb_range): Return value.
2066         (block_range_cache::set_bb_range): Return value.
2067         (ranger_cache::propagate_cache): Use return value to print msg.
2068         * gimple-range-cache.h (class block_range_cache): Adjust.
2069
2070 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
2071
2072         * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
2073
2074 2021-06-23  Jeff Law  <jeffreyalaw@gmail.com>
2075
2076         * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
2077         so this pattern can be used for test/compare removal.  Pass
2078         current insn to compute_logical_op_length and output_logical_op.
2079         * config/h8300/h8300.c (compute_logical_op_cc): Remove.
2080         (h8300_and_costs): Add argument to compute_logical_op_length.
2081         (output_logical_op): Add new argument.  Use it to determine if the
2082         condition codes are used and adjust the output accordingly.
2083         (compute_logical_op_length): Add new argument and update length
2084         computations when condition codes are used.
2085         * config/h8300/h8300-protos.h (compute_logical_op_length): Update
2086         prototype.
2087         (output_logical_op): Likewise.
2088
2089 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
2090
2091         PR target/89021
2092         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
2093         Handle 64bit modes for TARGET_XOP.  Use indirect gen_* functions.
2094         * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
2095         * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
2096         * config/i386/sse.md (unspec): ... here.
2097
2098 2021-06-23  Martin Liska  <mliska@suse.cz>
2099
2100         PR target/98636
2101         * optc-save-gen.awk: Put back arm_fp16_format to
2102         checked_options.
2103
2104 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
2105
2106         PR target/101175
2107         * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
2108         (bsr): Ditto.
2109         (*bsrhi): Remove.
2110         (clz<mode>2): Update RTX pattern for additions.
2111
2112 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
2113
2114         PR middle-end/101167
2115         * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
2116         and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
2117
2118 2021-06-22  Sergei Trofimovich  <siarheit@google.com>
2119
2120         * doc/rtl.texi: drop unbalanced parenthesis.
2121
2122 2021-06-22  Richard Biener  <rguenther@suse.de>
2123
2124         PR middle-end/101156
2125         * gimplify.c (gimplify_expr): Remove premature incorrect
2126         optimization.
2127
2128 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
2129
2130         PR tree-optimization/101159
2131         * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
2132         comment typos.
2133
2134 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
2135
2136         PR middle-end/101160
2137         * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
2138         clear crtl->return_rtx instead of keeping it referencing a pseudo.
2139
2140 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
2141             Andrew Pinski  <apinski@marvell.com>
2142
2143         PR tree-optimization/101162
2144         * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
2145         types.
2146
2147 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
2148
2149         * range-op.cc (range_relational_tests): New.
2150         (range_op_tests): Call range_relational_tests.
2151
2152 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
2153
2154         * range-op.cc (operator_cast::lhs_op1_relation): New.
2155         (operator_identity::lhs_op1_relation): Mew.
2156
2157 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
2158
2159         * range-op.cc (operator_minus::op1_op2_relation_effect): New.
2160
2161 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
2162
2163         * range-op.cc (operator_plus::lhs_op1_relation): New.
2164         (operator_plus::lhs_op2_relation): New.
2165
2166 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
2167
2168         * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
2169         relation_oracle if dominators exist.
2170         (ranger_cache::~ranger_cache): Dispose of oracle.
2171         (ranger_cache::dump_bb): Dump oracle.
2172         * gimple-range.cc (fur_source::fur_source): New.
2173         (fur_source::get_operand): Use mmeber query.
2174         (fur_source::get_phi_operand): Use member_query.
2175         (fur_source::query_relation): New.
2176         (fur_source::register_dependency): Delete.
2177         (fur_source::register_relation): New.
2178         (fur_edge::fur_edge): Adjust.
2179         (fur_edge::get_phi_operand): Fix comment.
2180         (fur_edge::query): Delete.
2181         (fur_stmt::fur_stmt): Adjust.
2182         (fur_stmt::query): Delete.
2183         (fur_depend::fur_depend): Adjust.
2184         (fur_depend::register_relation): New.
2185         (fur_depend::register_relation): New.
2186         (fur_list::fur_list): Adjust.
2187         (fur_list::get_operand): Use member query.
2188         (fold_using_range::range_of_range_op): Process and query relations.
2189         (fold_using_range::range_of_address): Adjust dependency call.
2190         (fold_using_range::range_of_phi): Ditto.
2191         (gimple_ranger::gimple_ranger): New.  Use ranger_ache oracle.
2192         (fold_using_range::relation_fold_and_or): New.
2193         (fold_using_range::postfold_gcond_edges): New.
2194         * gimple-range.h (class gimple_ranger): Adjust.
2195         (class fur_source): Adjust members.
2196         (class fur_stmt): Ditto.
2197         (class fold_using_range): Ditto.
2198
2199 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
2200
2201         * range-op.cc (range_operator::wi_fold): Apply relation effect.
2202         (range_operator::fold_range): Adjust and apply relation effect.
2203         (*::fold_range): Add relation parameters.
2204         (*::op1_range): Ditto.
2205         (*::op2_range): Ditto.
2206         (range_operator::lhs_op1_relation): New.
2207         (range_operator::lhs_op2_relation): New.
2208         (range_operator::op1_op2_relation): New.
2209         (range_operator::op1_op2_relation_effect): New.
2210         (relop_early_resolve): New.
2211         (operator_equal::op1_op2_relation): New.
2212         (operator_equal::fold_range): Call relop_early_resolve.
2213         (operator_not_equal::op1_op2_relation): New.
2214         (operator_not_equal::fold_range): Call relop_early_resolve.
2215         (operator_lt::op1_op2_relation): New.
2216         (operator_lt::fold_range): Call relop_early_resolve.
2217         (operator_le::op1_op2_relation): New.
2218         (operator_le::fold_range): Call relop_early_resolve.
2219         (operator_gt::op1_op2_relation): New.
2220         (operator_gt::fold_range): Call relop_early_resolve.
2221         (operator_ge::op1_op2_relation): New.
2222         (operator_ge::fold_range): Call relop_early_resolve.
2223         * range-op.h (class range_operator): Adjust parameters and methods.
2224
2225 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
2226
2227         * Makefile.in (OBJS): Add value-relation.o.
2228         * gimple-range.h: Adjust include files.
2229         * tree-data-ref.c: Adjust include file order.
2230         * value-query.cc (range_query::get_value_range): Default to no oracle.
2231         (range_query::query_relation): New.
2232         (range_query::query_relation): New.
2233         * value-query.h (class range_query): Adjust.
2234         * value-relation.cc: New.
2235         * value-relation.h: New.
2236
2237 2021-06-22  Richard Biener  <rguenther@suse.de>
2238
2239         PR tree-optimization/101151
2240         * tree-ssa-sink.c (statement_sink_location): Expand irreducible
2241         region check.
2242
2243 2021-06-22  Jojo R  <rjiejie@linux.alibaba.com>
2244
2245         * config/riscv/riscv.c (thead_c906_tune_info): New.
2246         (riscv_tune_info_table): Use new tune.
2247
2248 2021-06-22  Richard Biener  <rguenther@suse.de>
2249
2250         PR tree-optimization/101158
2251         * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
2252         checking after checking for matching operation.
2253
2254 2021-06-22  Richard Biener  <rguenther@suse.de>
2255
2256         PR tree-optimization/101159
2257         * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
2258         missing NULL vectype check.
2259
2260 2021-06-22  Richard Biener  <rguenther@suse.de>
2261
2262         PR tree-optimization/101154
2263         * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
2264
2265 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
2266
2267         PR target/11877
2268         * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
2269         * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
2270         * config/i386/i386.c (ix86_expand_prologue): Clear it.
2271         * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
2272         Remove "" from match_operand.  Emit new insns using emit_move_insn and
2273         set ix86_last_zero_store_uid to INSN_UID of the last store.
2274         Add peephole2s for 1/2/4 stores of const0_rtx following previous
2275         successful peep2s.
2276
2277 2021-06-22  Martin Liska  <mliska@suse.cz>
2278
2279         * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
2280         was changed.
2281
2282 2021-06-22  Martin Liska  <mliska@suse.cz>
2283
2284         * gcov-io.h: Remove padding entries.
2285
2286 2021-06-22  liuhongt  <hongtao.liu@intel.com>
2287
2288         PR tree-optimization/97770
2289         * tree-vect-patterns.c (vect_recog_popcount_pattern):
2290         New.
2291         (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
2292
2293 2021-06-22  liuhongt  <hongtao.liu@intel.com>
2294
2295         PR target/100267
2296         * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
2297         * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
2298         (expand<mode>_mask): this ..
2299         (*expand<mode>_mask): New pre_reload splitter to transform
2300         v{,p}expand* to vmov* when mask is zero, all ones, or has all
2301         ones in it's lower part, otherwise still generate
2302         v{,p}expand*.
2303
2304 2021-06-22  liuhongt  <hongtao.liu@intel.com>
2305
2306         PR target/100310
2307         * config/i386/i386-expand.c
2308         (ix86_expand_special_args_builtin): Keep constm1_operand only
2309         if it satisfies insn's operand predicate.
2310
2311 2021-06-21  Jason Merrill  <jason@redhat.com>
2312
2313         PR target/88529
2314         * df-scan.c (df_ref_record): Check that regno < endregno.
2315         * function.c (assign_parms, expand_function_end): Do nothing with a
2316         TYPE_EMPTY_P result.
2317
2318 2021-06-21  Richard Biener  <rguenther@suse.de>
2319
2320         PR tree-optimization/101120
2321         * tree-vect-data-refs.c (bump_vector_ptr): Fold the
2322         built increment.
2323         * tree-vect-slp.c (vect_transform_slp_perm_load): Add
2324         DR chain DCE capability.
2325         * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
2326         * tree-vect-stmts.c (vectorizable_load): Remove unused
2327         loads in the DR chain for SLP.
2328
2329 2021-06-21  Jakub Jelinek  <jakub@redhat.com>
2330
2331         PR inline-asm/100785
2332         * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
2333         output or input operands were already error_mark_node.
2334         * cfgexpand.c (expand_asm_stmt): If errors are emitted,
2335         remove all inputs, outputs and clobbers from the asm and
2336         set template to "".
2337
2338 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
2339
2340         * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
2341         (vceq_s16): Likewise.
2342         (vceq_s32): Likewise.
2343         (vceq_u8): Likewise.
2344         (vceq_u16): Likewise.
2345         (vceq_u32): Likewise.
2346         (vceq_p8): Likewise.
2347         (vceqq_s8): Likewise.
2348         (vceqq_s16): Likewise.
2349         (vceqq_s32): Likewise.
2350         (vceqq_u8): Likewise.
2351         (vceqq_u16): Likewise.
2352         (vceqq_u32): Likewise.
2353         (vceqq_p8): Likewise.
2354         (vceq_f32): Gate __a == __b on __FAST_MATH__.
2355         (vceqq_f32): Likewise.
2356         (vceq_f16): Likewise.
2357         (vceqq_f16): Likewise.
2358
2359 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
2360
2361         PR target/97906
2362         * config/arm/iterators.md (NEON_VACMP): Remove.
2363         * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
2364         iterator.
2365         (neon_vca<cmp_op><mode>_insn): Likewise.
2366         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
2367         NEON_VACMP.
2368
2369 2021-06-21  Richard Biener  <rguenther@suse.de>
2370
2371         PR tree-optimization/101121
2372         * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
2373         when we just lack a stmt with the desired op when doing permutation.
2374         (vect_build_slp_tree): When caching a failed SLP build attempt
2375         assert that at least one lane is marked as not matching.
2376
2377 2021-06-21  liuhongt  <hongtao.liu@intel.com>
2378
2379         PR target/101142
2380         * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
2381         register alternative.
2382         (*and<mode>_1): Ditto.
2383         (*andqi_1): Ditto.
2384         (*andn<mode>_1): Ditto.
2385         (*<code><mode>_1): Ditto.
2386         (*<code>qi_1): Ditto.
2387         (*one_cmpl<mode>2_1): Ditto.
2388         (*one_cmplsi2_1_zext): Ditto.
2389         (*one_cmplqi2_1): Ditto.
2390         * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
2391         the order of mask registers to be before general registers.
2392
2393 2021-06-21  Roger Sayle  <roger@nextmovesoftware.com>
2394
2395         PR target/11877
2396         * config/i386/i386.md: New define_peephole2s to shrink writing
2397         1, 2 or 4 consecutive zeros to memory when optimizing for size.
2398
2399 2021-06-18  Jeff Law  <jeffreyalaw@gmail.com>
2400
2401         * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
2402         * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
2403         more efficient code when the source can be trivially simplified.
2404
2405 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
2406
2407         * gimple-range-cache.cc (ranger_cache::range_of_def):  Calculate
2408         a range if global is not available.
2409         (ranger_cache::entry_range): Fallback to range_of_def.
2410         * gimple-range-cache.h (range_of_def): Adjust prototype.
2411
2412 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
2413
2414         PR tree-optimization/101014
2415         * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
2416         value list.
2417         (ranger_cache::~ranger_cache): Ditto.
2418         (ranger_cache::enable_new_values): Delete.
2419         (ranger_cache::push_poor_value): Delete.
2420         (ranger_cache::range_of_def): Remove poor value processing.
2421         (ranger_cache::entry_range): Ditto.
2422         (ranger_cache::fill_block_cache): Ditto.
2423         * gimple-range-cache.h (class ranger_cache): Remove poor value members.
2424         * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
2425         * gimple-range.h (class gimple_ranger): Adjust.
2426
2427 2021-06-18  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
2428
2429         PR target/100856
2430         * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
2431         derived from arm_canon_arch.
2432         (arm_canon_arch_option): Call it.
2433         (arm_canon_arch_multilib_option): New function.
2434         * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
2435         * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
2436         (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
2437         (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
2438         (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
2439         * config/arm/arm.opt (mlibarch): New option.
2440         * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
2441         of march on RHS with mlibarch.
2442
2443 2021-06-18  Marcel Vollweiler  <marcel@codesourcery.com>
2444
2445         * config.in: Regenerate.
2446         * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
2447         functions.
2448         * configure: Regenerate.
2449         * configure.ac: Fix for global_load assembler functions.
2450
2451 2021-06-18  Richard Biener  <rguenther@suse.de>
2452
2453         PR tree-optimization/101112
2454         * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
2455         to lookup a pattern stmt def.
2456
2457 2021-06-18  Jakub Jelinek  <jakub@redhat.com>
2458
2459         PR middle-end/101062
2460         * stor-layout.c (finish_bitfield_layout): Don't add bitfield
2461         representatives in QUAL_UNION_TYPE.
2462
2463 2021-06-18  Andrew Pinski  <apinski@marvell.com>
2464
2465         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
2466         Add counting of how many times it is done.
2467         (factor_out_conditional_conversion): Likewise.
2468         (match_simplify_replacement): Likewise.
2469         (value_replacement): Likewise.
2470         (spaceship_replacement): Likewise.
2471         (cond_store_replacement): Likewise.
2472         (cond_if_else_store_replacement_1): Likewise.
2473         (hoist_adjacent_loads): Likewise.
2474
2475 2021-06-18  Andrew Pinski  <apinski@marvell.com>
2476
2477         * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
2478         types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
2479         (verify_gimple_assign_binary): Reject point and offset types on
2480         MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
2481         FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
2482         FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
2483
2484 2021-06-18  Michael Meissner  <meissner@linux.ibm.com>
2485
2486         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
2487         3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
2488         * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
2489         New insns.
2490
2491 2021-06-17  Aaron Sawdey  <acsawdey@linux.ibm.com>
2492
2493         * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
2494         earlyclobber to alts 0/1.
2495         (gen_addadd): Add earlyclobber to alts 0/1.
2496         * config/rs6000/fusion.md: Regenerate file.
2497
2498 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
2499
2500         * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
2501
2502 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
2503
2504         * gimple-range-cache.cc: Comment cleanups.
2505         * gimple-range-gori.cc: Comment cleanups.
2506         * gimple-range.cc: Comment/spacing cleanups
2507         * value-range.h: Comment cleanups.
2508
2509 2021-06-17  H.J. Lu  <hjl.tools@gmail.com>
2510
2511         PR target/100704
2512         * calls.c (expand_call): Replace PUSH_ARGS with
2513         targetm.calls.push_argument (0).
2514         (emit_library_call_value_1): Likewise.
2515         * defaults.h (PUSH_ARGS): Removed.
2516         (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
2517         targetm.calls.push_argument (0).
2518         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2519         (emit_push_insn): Pass the number bytes to push to
2520         targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
2521         * hooks.c (hook_bool_uint_true): New.
2522         * hooks.h (hook_bool_uint_true): Likewise.
2523         * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
2524         targetm.calls.push_argument (0).
2525         * target.def (push_argument): Add a targetm.calls hook.
2526         * targhooks.c (default_push_argument): New.
2527         * targhooks.h (default_push_argument): Likewise.
2528         * config/bpf/bpf.h (PUSH_ARGS): Removed.
2529         * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
2530         * config/cr16/cr16.h (PUSH_ARGS): Removed.
2531         * config/i386/i386.c (ix86_push_argument): New.
2532         (TARGET_PUSH_ARGUMENT): Likewise.
2533         * config/i386/i386.h (PUSH_ARGS): Removed.
2534         * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
2535         * config/m32c/m32c.h (PUSH_ARGS): Removed.
2536         * config/nios2/nios2.h (PUSH_ARGS): Likewise.
2537         * config/pru/pru.h (PUSH_ARGS): Likewise.
2538         * doc/tm.texi.in: Remove PUSH_ARGS documentation.  Add
2539         TARGET_PUSH_ARGUMENT hook.
2540         * doc/tm.texi: Regenerated.
2541
2542 2021-06-17  Uroš Bizjak  <ubizjak@gmail.com>
2543
2544         PR target/97194
2545         * config/i386/i386-expand.c (expand_vector_set_var):
2546         Handle V2FS mode remapping.  Pass TARGET_MMX_WITH_SSE to
2547         ix86_expand_vector_init_duplicate.
2548         (ix86_expand_vector_init_duplicate): Emit insv_1 for
2549         QImode for !TARGET_PARTIAL_REG_STALL.
2550         * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
2551         * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
2552         as operand 2 predicate.  Call ix86_expand_vector_set_var
2553         for non-constant index operand.
2554         (vec_setv2si): Ditto.
2555         (vec_setv4hi): Ditto.
2556         (vec_setv8qi): ditto.
2557
2558 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
2559
2560         PR tree-optimization/100790
2561         * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
2562         code.
2563
2564 2021-06-17  Martin Liska  <mliska@suse.cz>
2565
2566         * doc/invoke.texi: Use consistently -O1 instead of -O.
2567
2568 2021-06-17  Martin Liska  <mliska@suse.cz>
2569
2570         * gcov-io.h: Update documentation entry about string format.
2571
2572 2021-06-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
2573
2574         PR target/100871
2575         * config/s390/vecintrin.h (vec_doublee): Fix to use
2576           __builtin_s390_vflls.
2577         (vec_floate): Fix to use __builtin_s390_vflrd.
2578
2579 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
2580
2581         * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
2582         * dominance.h (get_dominated_to_depth): Likewise.
2583         (get_all_dominated_blocks): Likewise.
2584         * cfgcleanup.c (delete_unreachable_blocks): Adjust.
2585         * gcse.c (hoist_code): Likewise.
2586         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
2587         * tree-parloops.c (oacc_entry_exit_ok): Likewise.
2588         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
2589         * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
2590
2591 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
2592
2593         * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
2594         * dominance.h (get_dominated_by_region): Likewise.
2595         * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
2596         (gimple_duplicate_sese_tail): Likewise.
2597         (move_sese_region_to_fn): Likewise.
2598
2599 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
2600
2601         * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
2602         * dominance.h (get_dominated_by): Likewise.
2603         * auto-profile.c (afdo_find_equiv_class): Adjust.
2604         * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
2605         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
2606         * tree-cfg.c (test_linear_chain): Likewise.
2607         (test_diamond): Likewise.
2608
2609 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
2610
2611         * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
2612         * cfgloopanal.c (get_loop_hot_path): Likewise.
2613         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
2614
2615 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
2616
2617         * cgraph.c (cgraph_node::collect_callers): Return
2618         auto_vec<cgraph_edge *>.
2619         * cgraph.h (cgraph_node::collect_callers): Likewise.
2620         * ipa-cp.c (create_specialized_node): Adjust.
2621         (decide_about_value): Likewise.
2622         (decide_whether_version_node): Likewise.
2623         * ipa-sra.c (process_isra_node_results): Likewise.
2624
2625 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
2626
2627         * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
2628         (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
2629         constructor.
2630         (auto_vec<T, 0>::operator=): Define move assignment and delete copy
2631         assignment.
2632
2633 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
2634
2635         * gimple-range.cc (debug_seed_ranger): New.
2636         (dump_ranger): New.
2637         (debug_ranger): New.
2638
2639 2021-06-17  Richard Biener   <rguenther@suse.de>
2640
2641         PR tree-optimization/54400
2642         * tree-vectorizer.h (enum slp_instance_kind): Add
2643         slp_inst_kind_bb_reduc.
2644         (reduction_fn_for_scalar_code): Declare.
2645         * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
2646         Check SLP_INSTANCE_KIND instead of looking at the
2647         representative.
2648         (vect_slp_analyze_instance_alignment): Likewise.
2649         * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
2650         * tree-vect-slp.c (vect_slp_linearize_chain): Split out
2651         chain linearization from vect_build_slp_tree_2 and generalize
2652         for the use of BB reduction vectorization.
2653         (vect_build_slp_tree_2): Adjust accordingly.
2654         (vect_optimize_slp): Elide permutes at the root of BB reduction
2655         instances.
2656         (vectorizable_bb_reduc_epilogue): New function.
2657         (vect_slp_prune_covered_roots): Likewise.
2658         (vect_slp_analyze_operations): Use them.
2659         (vect_slp_check_for_constructors): Recognize associatable
2660         chains for BB reduction vectorization.
2661         (vectorize_slp_instance_root_stmt): Generate code for the
2662         BB reduction epilogue.
2663
2664 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
2665
2666         * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
2667         may_recompute_p.
2668         (gori_compute::may_recompute_p): New.
2669         (gori_compute::outgoing_edge_range_p): Perform recomputations.
2670         * gimple-range-gori.h (class gori_compute): Add prototype.
2671
2672 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
2673
2674         * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
2675         true when a range can be calculated.
2676         * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
2677
2678 2021-06-16  Martin Sebor  <msebor@redhat.com>
2679
2680         * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
2681         Correct documented defaults.
2682
2683 2021-06-16  Andrew MacLeod  <amacleod@redhat.com>
2684
2685         * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
2686         m_new_value_p directly.
2687
2688 2021-06-16  Uroš Bizjak  <ubizjak@gmail.com>
2689
2690         PR target/89021
2691         * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
2692         Handle 64bit modes for TARGET_SSE4_1.
2693         (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
2694         (expand_vec_perm_even_odd_pack): Handle V4HI mode.
2695         (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
2696         expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
2697         expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
2698         * config/i386/mmx.md (mmx_packusdw): New insn pattern.
2699
2700 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
2701
2702         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
2703         Change to an expander that emits the correct instruction
2704         depending on endianness.
2705         (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
2706         (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
2707
2708 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
2709
2710         * config/aarch64/aarch64-simd-builtins.def: Split generator
2711         for aarch64_<su>qmovn builtins into scalar and vector
2712         variants.
2713         * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
2714         Define.
2715         (aarch64_<su>qmovn<mode>_insn_be): Define.
2716         (aarch64_<su>qmovn<mode>): Split into scalar and vector
2717         variants. Change vector variant to an expander that emits the
2718         correct instruction depending on endianness.
2719
2720 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
2721
2722         * config/aarch64/aarch64-simd-builtins.def: Split generator
2723         for aarch64_sqmovun builtins into scalar and vector variants.
2724         * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
2725         Split into scalar and vector variants. Change vector variant
2726         to an expander that emits the correct instruction depending
2727         on endianness.
2728         (aarch64_sqmovun<mode>_insn_le): Define.
2729         (aarch64_sqmovun<mode>_insn_be): Define.
2730
2731 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
2732
2733         * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
2734         Define - modeling zero-high-half semantics.
2735         (aarch64_xtn<mode>): Change to an expander that emits the
2736         appropriate instruction depending on endianness.
2737         (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
2738         semantics.
2739         (aarch64_xtn2<mode>_le): Rename to...
2740         (aarch64_xtn2<mode>_insn_le): This.
2741         (aarch64_xtn2<mode>_be): Rename to...
2742         (aarch64_xtn2<mode>_insn_be): This.
2743         (vec_pack_trunc_<mode>): Emit truncation instruction instead
2744         of aarch64_xtn.
2745         * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
2746         attribute iterator.
2747
2748 2021-06-16  Martin Jambor  <mjambor@suse.cz>
2749
2750         PR tree-optimization/100453
2751         * tree-sra.c (create_access): Disqualify any const candidates
2752         which are written to.
2753         (sra_modify_expr): Do not store sub-replacements back to a const base.
2754         (handle_unscalarized_data_in_subtree): Likewise.
2755         (sra_modify_assign): Likewise.  Earlier, use TREE_READONLy test
2756         instead of constant_decl_p.
2757
2758 2021-06-16  Jakub Jelinek  <jakub@redhat.com>
2759
2760         PR middle-end/101062
2761         * stor-layout.c (finish_bitfield_representative): For fields in unions
2762         assume nextf is always NULL.
2763         (finish_bitfield_layout): Compute bit field representatives also in
2764         unions, but handle it as if each bitfield was the only field in the
2765         aggregate.
2766
2767 2021-06-16  Richard Biener  <rguenther@suse.de>
2768
2769         PR tree-optimization/101088
2770         * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
2771         supported refs on edges.  Do not assert same ref but
2772         different kind stores are unsuported but mark them so.
2773         (hoist_memory_references): Only look for supported refs
2774         on exits.
2775
2776 2021-06-16  Roger Sayle  <roger@nextmovesoftware.com>
2777
2778         PR rtl-optimization/46235
2779         * config/i386/i386.md: New define_split for bt followed by cmov.
2780         (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
2781         (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
2782         (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
2783         by setnc with zero extension.
2784
2785 2021-06-16  Richard Biener  <rguenther@suse.de>
2786
2787         PR tree-optimization/101083
2788         * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
2789         vectype as argument.
2790         (vect_build_slp_tree_2): Adjust.
2791
2792 2021-06-15  Martin Sebor  <msebor@redhat.com>
2793
2794         PR middle-end/100876
2795         * builtins.c: (gimple_call_return_array): Account for size_t
2796         mangling as either unsigned int or unsigned long
2797
2798 2021-06-15  Jeff Law  <jeffreyalaw@gmail.com>
2799
2800         * compare-elim.c (try_eliminate_compare): Run DCE to clean things
2801         up before eliminating comparisons.
2802
2803 2021-06-15  Aldy Hernandez  <aldyh@redhat.com>
2804
2805         * range-op.cc (operator_bitwise_or::wi_fold): Make sure
2806         nonzero|X is nonzero.
2807         (range_op_bitwise_and_tests): Add tests for above.
2808
2809 2021-06-15  Carl Love  <cel@us.ibm.com>
2810
2811         PR target/101022
2812         * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
2813         enum definition.
2814         (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
2815         definitions.
2816
2817 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
2818
2819         PR fortran/92568
2820         * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
2821         (struct gimplify_omp_ctx): Extend defaultmap array by one.
2822         (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
2823         (omp_notice_variable): Update type classification for Fortran.
2824         (gimplify_scan_omp_clauses): Update calls for new argument; handle
2825         GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
2826         * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
2827         * langhooks.c (lhd_omp_scalar_p): Likewise.
2828         (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
2829         (LANG_HOOKS_DECLS): Add them.
2830         * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
2831         omp_scalar_p pointer type to include the new bool argument.
2832
2833 2021-06-15  David Malcolm  <dmalcolm@redhat.com>
2834
2835         * doc/analyzer.texi
2836         (Special Functions for Debugging the Analyzer): Add
2837         __analyzer_dump_capacity.
2838
2839 2021-06-15  Jakub Jelinek  <jakub@redhat.com>
2840
2841         PR target/101046
2842         * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
2843         case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
2844
2845 2021-06-15  Richard Biener  <rguenther@suse.de>
2846
2847         * cfgloopanal.c (mark_irreducible_loops): Use a dominance
2848         check to identify loop latches.
2849         * cfgloop.c (verify_loop_structure): Likewise.
2850         * loop-init.c (apply_loop_flags): Allow marked irreducible
2851         regions even with multiple latches.
2852         * predict.c (rebuild_frequencies): Simplify.
2853
2854 2021-06-15  Richard Biener  <rguenther@suse.de>
2855
2856         * tree-ssa-threadupdate.c
2857         (jump_thread_path_registry::mark_threaded_blocks): Assert we
2858         have marked irreducible regions.
2859
2860 2021-06-14  Martin Sebor  <msebor@redhat.com>
2861
2862         PR c++/100876
2863         * builtins.c (gimple_call_return_array): Check for attribute fn spec.
2864         Handle calls to placement new.
2865         (ndecl_dealloc_argno): Avoid placement delete.
2866
2867 2021-06-14  Peter Bergner  <bergner@linux.ibm.com>
2868
2869         PR target/100777
2870         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
2871         create_tmp_reg_or_ssa_name().
2872
2873 2021-06-14  Andrew MacLeod  <amacleod@redhat.com>
2874
2875         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
2876         (ranger_cache::enable_new_values): Set to specified value and
2877         return the old value.
2878         (ranger_cache::disable_new_values): Delete.
2879         (ranger_cache::fill_block_cache): Disable non 1st order derived
2880         poor values.
2881         * gimple-range-cache.h (ranger_cache): Adjust prototypes.
2882         * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
2883
2884 2021-06-14  Uroš Bizjak  <ubizjak@gmail.com>
2885
2886         PR target/101058
2887         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
2888         Return true early when testing with V2HImode.
2889         * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
2890
2891 2021-06-14  Christophe Lyon  <christophe.lyon@linaro.org>
2892
2893         * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
2894         (mve_vec_unpack<US>_hi_<mode>): New pattern.
2895         (@mve_vec_pack_trunc_lo_<mode>): New pattern.
2896         (mve_vmovntq_<supf><mode>): Prefix with '@'.
2897         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
2898         vec-common.md.
2899         (vec_unpack<US>_lo_<mode>): Likewise.
2900         (vec_pack_trunc_<mode>): Rename to
2901         neon_quad_vec_pack_trunc_<mode>.
2902         * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
2903         pattern.
2904         (vec_unpack<US>_lo_<mode>): New.
2905         (vec_pack_trunc_<mode>): New.
2906
2907 2021-06-14  Richard Biener  <rguenther@suse.de>
2908
2909         PR tree-optimization/100934
2910         * tree-ssa-dom.c (pass_dominator::execute): Properly
2911         mark irreducible regions.
2912
2913 2021-06-14  Martin Liska  <mliska@suse.cz>
2914
2915         * doc/invoke.texi: Put r{...} on the same line as @item.
2916
2917 2021-06-14  Martin Liska  <mliska@suse.cz>
2918
2919         * doc/invoke.texi: Add missing newline.
2920
2921 2021-06-14  Martin Liska  <mliska@suse.cz>
2922
2923         * doc/invoke.texi: Remove '+' charasters.
2924
2925 2021-06-14  Claudiu Zissulescu  <claziss@synopsys.com>
2926
2927         * config.gcc (arc): Add support for with_cpu option.
2928         * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
2929
2930 2021-06-14  Richard Biener  <rguenther@suse.de>
2931
2932         PR tree-optimization/101031
2933         * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
2934         instead of size when accounting for a possibly string
2935         terminating nul.
2936
2937 2021-06-14  Martin Liska  <mliska@suse.cz>
2938
2939         * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
2940
2941 2021-06-14  Aldy Hernandez  <aldyh@redhat.com>
2942
2943         * value-query.cc (gimple_range_global): Call get_range_global
2944         if called after inlining.
2945
2946 2021-06-13  Uroš Bizjak  <ubizjak@gmail.com>
2947
2948         PR target/101021
2949         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
2950         Emit constant permutation insn directly from here.
2951
2952 2021-06-13  Trevor Saunders  <tbsaunde@tbsaunde.org>
2953
2954         * attribs.c (find_attribute_namespace): Iterate over vec<> with
2955         range based for.
2956         * auto-profile.c (afdo_find_equiv_class): Likewise.
2957         * gcc.c (do_specs_vec): Likewise.
2958         (do_spec_1): Likewise.
2959         (driver::set_up_specs): Likewise.
2960         * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
2961         * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
2962         (imm_store_chain_info::try_coalesce_bswap): Likewise.
2963         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
2964         (get_location_for_stmts): Likewise.
2965         * graphite-poly.c (print_iteration_domains): Likewise.
2966         (free_poly_bb): Likewise.
2967         (remove_gbbs_in_scop): Likewise.
2968         (free_scop): Likewise.
2969         (dump_gbb_cases): Likewise.
2970         (dump_gbb_conditions): Likewise.
2971         (print_pdrs): Likewise.
2972         (print_scop): Likewise.
2973         * ifcvt.c (cond_move_process_if_block): Likewise.
2974         * lower-subreg.c (decompose_multiword_subregs): Likewise.
2975         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
2976         * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
2977         * sel-sched-dump.c (dump_insn_vector): Likewise.
2978         * store-motion.c (store_ops_ok): Likewise.
2979         (store_killed_in_insn): Likewise.
2980         * timevar.c (timer::named_items::print): Likewise.
2981         * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
2982         (cleanup_tree_cfg_noloop): Likewise.
2983         * tree-data-ref.c (dump_data_references): Likewise.
2984         (print_dir_vectors): Likewise.
2985         (print_dist_vectors): Likewise.
2986         (dump_data_dependence_relations): Likewise.
2987         (dump_dist_dir_vectors): Likewise.
2988         (dump_ddrs): Likewise.
2989         (create_runtime_alias_checks): Likewise.
2990         (free_subscripts): Likewise.
2991         (save_dist_v): Likewise.
2992         (save_dir_v): Likewise.
2993         (invariant_access_functions): Likewise.
2994         (same_access_functions): Likewise.
2995         (access_functions_are_affine_or_constant_p): Likewise.
2996         (find_data_references_in_stmt): Likewise.
2997         (graphite_find_data_references_in_stmt): Likewise.
2998         (free_dependence_relations): Likewise.
2999         (free_data_refs): Likewise.
3000         * tree-inline.c (copy_debug_stmts): Likewise.
3001         * tree-into-ssa.c (dump_currdefs): Likewise.
3002         (rewrite_update_phi_arguments): Likewise.
3003         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
3004         * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
3005         Likewise.
3006         (vect_slp_analyze_node_dependences): Likewise.
3007         (vect_slp_analyze_instance_dependence): Likewise.
3008         (vect_record_base_alignments): Likewise.
3009         (vect_get_peeling_costs_all_drs): Likewise.
3010         (vect_peeling_supportable): Likewise.
3011         * tree-vectorizer.c (vec_info::~vec_info): Likewise.
3012         (vec_info::free_stmt_vec_infos): Likewise.
3013
3014 2021-06-13  Jeff Law  <jeffreyalaw@gmail.com>
3015
3016         * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
3017         (andqi3_1<cczn>): Removed.
3018         (<ors>qi3_1): Do not split for IOR/XOR a single bit.
3019         (H8/SX bit logicals): Split out from other patterns.
3020         * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
3021         mulqihi3_const_clobber_flags.
3022         (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
3023
3024 2021-06-13  H.J. Lu  <hjl.tools@gmail.com>
3025
3026         PR target/101023
3027         * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
3028         to true if red zone is used.
3029         (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
3030         ix86_red_zone_used.
3031         * config/i386/i386.h (machine_function): Add red_zone_used.
3032         (ix86_red_zone_size): Removed.
3033         (ix86_red_zone_used): New.
3034         * config/i386/i386.md (peephole2 patterns): Replace
3035         ix86_red_zone_size with ix86_red_zone_used.
3036
3037 2021-06-12  Jason Merrill  <jason@redhat.com>
3038
3039         * doc/extend.texi (unused variable attribute): Applies to
3040         structure fields as well.
3041
3042 2021-06-12  Eugene Rozenfeld  <erozen@microsoft.com>
3043
3044         * auto-profile.c (read_profile): fix a typo in an error string
3045
3046 2021-06-11  Thomas Schwinge  <thomas@codesourcery.com>
3047
3048         * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
3049         default argument.
3050         * tree-pretty-print.c (dump_omp_clauses): Update.
3051         (dump_generic_node) <OMP_CLAUSE>: Use it.
3052
3053 2021-06-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
3054
3055         PR target/101016
3056         * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
3057         int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
3058         the polymorphic variants matching code.
3059         (__arm_vld1q_z): Likewise.
3060         (__arm_vld2q): Likewise.
3061         (__arm_vld4q): Likewise.
3062         (__arm_vldrbq_gather_offset): Likewise.
3063         (__arm_vldrbq_gather_offset_z): Likewise.
3064
3065 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
3066
3067         PR tree-optimization/96392
3068         * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
3069
3070 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
3071
3072         PR tree-optimization/96392
3073         * fold-const.c (fold_real_zero_addition_p): Take both arguments
3074         of the addition or subtraction, not just the zero.  Use this
3075         other argument in tests for signaling NaNs and signed zeros.
3076         (tree_expr_maybe_real_minus_zero_p): New predicate.
3077         * fold-const.h (fold_real_zero_addition_p): Update prototype.
3078         (tree_expr_maybe_real_minus_zero_p): New function prototype.
3079         * match.pd: Update calls to fold_real_zero_addition_p.
3080         Replace HONOR_NANS with tree_expr_maybe_nan_p.
3081         Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
3082         Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
3083         * tree-ssa-reassoc.c (eliminate_using_constants): Update
3084         call to fold_real_zero_addition_p.
3085
3086 2021-06-11  Richard Biener  <rguenther@suse.de>
3087
3088         PR tree-optimization/101025
3089         * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
3090         all refs that require dependence checking.
3091
3092 2021-06-11  Richard Biener  <rguenther@suse.de>
3093
3094         PR tree-optimization/101028
3095         * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
3096         reassoc discovery fails fatally, mark appropriate lanes
3097         in matches[] so.
3098
3099 2021-06-11  Richard Biener  <rguenther@suse.de>
3100
3101         PR tree-optimization/101026
3102         * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
3103         have a representative for the associated chain nodes.
3104
3105 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
3106
3107         PR rtl-optimization/101008
3108         * simplify-rtx.c (relational_result): New function.
3109         (simplify_logical_relational_operation,
3110         simplify_relational_operation): Use it.
3111
3112 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
3113
3114         PR target/101007
3115         * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
3116
3117 2021-06-11  Uroš Bizjak  <ubizjak@gmail.com>
3118
3119         PR target/101021
3120         * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
3121         false if the permutation can be implemented with constant
3122         permutation instruction in wider mode.
3123         (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
3124         Handle V8QImode and V4HImode.
3125
3126 2021-06-11  Martin Liska  <mliska@suse.cz>
3127
3128         PR gcov-profile/100788
3129         * common.opt: Add new option.
3130         * coverage.c (coverage_begin_function): Emit warning instead on
3131         the internal compiler error.
3132         * doc/invoke.texi: Document the option.
3133         * toplev.c (process_options): Enable it by default.
3134
3135 2021-06-11  Richard Biener  <rguenther@suse.de>
3136
3137         PR middle-end/101009
3138         * tree-data-ref.c (build_classic_dist_vector_1): Make sure
3139         to set *init_b to true when we encounter a constant equal
3140         index pair.
3141         (compute_affine_dependence): Also dump the actual DR_REF.
3142
3143 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
3144
3145         PR tree-optimization/100984
3146         * gimple-ssa-evrp.c  (ssa_equiv_stack): Use auto_vec for
3147         replacements table.
3148         (ssa_equiv_stack::~ssa_equiv_stack): Remove.
3149
3150 2021-06-11  Kewen Lin  <linkw@linux.ibm.com>
3151
3152         * config/rs6000/rs6000.md
3153         (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
3154         define_insn_and_split.
3155
3156 2021-06-11  Richard Biener  <rguenther@suse.de>
3157
3158         * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
3159         to sort operands of the associative chain.
3160
3161 2021-06-11  Richard Biener  <rguenther@suse.de>
3162
3163         * system.h (gcc_stablesort_r): Declare.
3164         * sort.cc (gcc_sort_r): Support stable sort.
3165         (gcc_stablesort_r): Define.
3166         * vec.h (vec<>::stablesort): Add.
3167
3168 2021-06-10  Uroš Bizjak  <ubizjak@gmail.com>
3169
3170         PR target/89021
3171         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
3172         Handle V2SF mode.  Emit SHUFPS to fixup unpack-high for V2SF mode.
3173         (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
3174         (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
3175         (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
3176         (expand_vec_perm_interleave2): Handle 64bit modes.
3177         (expand_vec_perm_even_odd_pack): Handle V8QI mode.
3178         (expand_vec_perm_even_odd_1): Ditto.
3179         (ix86_vectorize_vec_perm_const): Ditto.
3180         * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
3181         * config/i386/sse.md: ... here.
3182         * config/i386/mmx.md (*vec_interleave_lowv2sf):
3183         New insn_and_split pattern.
3184         (*vec_interleave_highv2sf): Ditto.
3185         (mmx_pshufbv8qi3): New insn pattern.
3186         (*mmx_pblendw): Ditto.
3187
3188 2021-06-10  Peter Bergner  <bergner@linux.ibm.com>
3189
3190         * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
3191         (build_acc): Likewise.
3192         * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
3193         source operands in little-endian mode.
3194         (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
3195         (mma_init_builtins): Likewise.
3196         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
3197         ordering for the MMA assemble and build source operands.
3198         * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
3199         Document.
3200         (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
3201         documentation.
3202
3203 2021-06-10  Jeff Law  <jeffreyalaw@gmail.com>
3204
3205         * config/h8300/h8300.c (select_cc_mode): Handle MEM.  Use
3206         REG_P.
3207         * config/h8300/extensions.md: Replace _clobber_flags patterns
3208         with <cczn>.
3209
3210 2021-06-10  Robin Dapp  <rdapp@linux.ibm.com>
3211
3212         * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
3213         (vcond_mask_<mode><tointvec>): this.
3214
3215 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
3216             Thomas Schwinge  <thomas@codesourcery.com>
3217
3218         * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
3219         (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
3220         * gimple.h (enum gf_mask): Split
3221         'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
3222         'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
3223         'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
3224         (is_gimple_omp_oacc): Update.
3225         * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
3226         * gimplify.c (gimplify_omp_target_update): Likewise.
3227         * omp-expand.c (expand_omp_target, build_omp_regions_1)
3228         (omp_make_gimple_edges): Likewise.
3229         * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
3230         Likewise.
3231
3232 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
3233
3234         * value-query.cc (value_query::value_on_edge): Rename name to
3235         expr.
3236         (range_query::range_on_edge): Same.
3237         (range_query::value_of_expr): Same.
3238         (range_query::value_on_edge): Same.
3239         * value-query.h (class value_query): Same.
3240         (class range_query): Same.
3241
3242 2021-06-10  Richard Biener  <rguenther@suse.de>
3243
3244         PR tree-optimization/101003
3245         * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
3246         use the pattern stmt defs when linearizing a chain.
3247
3248 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
3249
3250         PR debug/100852
3251         * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
3252         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
3253
3254 2021-06-10  Clement Chigot  <clement.chigot@atos.net>
3255
3256         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
3257         * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
3258
3259 2021-06-09  Andrew Pinski  <apinski@marvell.com>
3260
3261         PR tree-optimization/100925
3262         * match.pd (a ? CST1 : CST2): Limit transformations
3263         that would produce a negative to integeral types only.
3264         Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
3265
3266 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
3267
3268         Revert:
3269         2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
3270
3271         * doc/tm.texi: Correctly update.
3272
3273 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
3274
3275         * doc/tm.texi: Correctly update.
3276
3277 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
3278
3279         PR other/100735
3280         * doc/tm.texi.in (Trampolines): Add a missing blank line.
3281
3282 2021-06-09  Paul Eggert  <eggert@cs.ucla.edu>
3283
3284         PR other/100735
3285         * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
3286         and -ftrampolines work only with Ada.
3287         * doc/tm.texi.in (Trampolines): Likewise.
3288         * doc/tm.texi: Regenerated.
3289
3290 2021-06-09  Carl Love  <cel@us.ibm.com>
3291
3292         * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
3293         Add define for new builtins.
3294         * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
3295         * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL):  Add
3296         overloaded builtin definitions.
3297         (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
3298         VSIGNEXTSD2Q):  Add builtin expansions.
3299         (SIGNEXT): Add P10 overload definition.
3300         * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
3301         P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
3302         * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
3303         (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
3304         vsignextend_si_v2di)[VIlong]: Add define_expand.
3305         Make define_insn vsx_sign_extend_si_v2di visible.
3306         * doc/extend.texi:  Add documentation for the vec_signexti,
3307         vec_signextll builtins and vec_signextq.
3308
3309 2021-06-09  Carl Love  <cel@us.ibm.com>
3310
3311         * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
3312         __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
3313         __floattikf_sw, __floatuntikf_sw respectively.
3314         * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
3315         fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
3316         define_insn for mode IEEE 128.
3317
3318 2021-06-09  Carl Love  <cel@us.ibm.com>
3319
3320         * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
3321         Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
3322         * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
3323         (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
3324         (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
3325         * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
3326         uses of VSX_TI to VEC_TI.
3327
3328 2021-06-09  Carl Love  <cel@us.ibm.com>
3329
3330         * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
3331
3332 2021-06-09  Carl Love  <cel@us.ibm.com>
3333
3334         * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
3335         builtins.
3336         * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
3337         UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
3338         (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
3339         altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
3340         altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
3341         altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
3342         altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
3343         define_insn.
3344         (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
3345         vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
3346         altivec_vrlqnm): New define_expands.
3347         * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
3348         VCMPGTUT_P): Add macro expansions.
3349         (BU_P10V_AV_P): Add builtin predicate definition.
3350         (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
3351         CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
3352         VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
3353         VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
3354         MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
3355         (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
3356         * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
3357         P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
3358         P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
3359         P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
3360         P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
3361         P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
3362         P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
3363         P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
3364         P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
3365         P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
3366         P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
3367         P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
3368         P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
3369         P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
3370         P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
3371         P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
3372         P10V_BUILTIN_MODU_V1TI):
3373         New overloaded definitions.
3374         (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
3375         P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
3376         P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
3377         P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
3378         P10V_BUILTIN_CMPLE_U1TI]: New case statements.
3379         (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
3380         New assignments.
3381         (altivec_init_builtins): New E_V1TImode case statement.
3382         (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
3383         P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
3384         P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
3385         P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
3386         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
3387         E_V1TImode]: New case statements.
3388         * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
3389         value RS6000_BTI_bool_V1TI.
3390         * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
3391         vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
3392         vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
3393         vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
3394         vlshrv1ti3, vashrv1ti3): New define_expands.
3395         * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
3396         UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
3397         UNSPEC_VSX_MODUQ): New unspecs.
3398         (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
3399         vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
3400         define_insns.
3401         (vcmpnet): New define_expand.
3402         * doc/extend.texi: Add documentation for the new builtins vec_rl,
3403         vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
3404         vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
3405         vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
3406         vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
3407         vec_any_ge, vec_any_le.
3408
3409 2021-06-09  Carl Love  <cel@us.ibm.com>
3410
3411         * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
3412         bug in argument generation.
3413
3414 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
3415
3416         * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
3417         (VCLZQ): Remove.
3418         * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
3419         remove <supf> iterator.
3420         (mve_vclzq_u<mode>): New.
3421         * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
3422         (neon_vclz<mode): Move to ...
3423         * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
3424         * config/arm/vec-common.md: ... here. Add support for MVE.
3425
3426 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
3427
3428         * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
3429         (@mve_vrhaddq_<supf><mode): Likewise.
3430         * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
3431         * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
3432         (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
3433
3434 2021-06-09  imba-tjd  <109224573@qq.com>
3435
3436         * doc/invoke.texi: Fix typo.
3437
3438 2021-06-09  Roger Sayle  <roger@nextmovesoftware.com>
3439
3440         PR middle-end/53267
3441         * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
3442         Support evaluation of fmod/fmodf/fmodl at compile-time.
3443
3444 2021-06-09  Richard Biener  <rguenther@suse.de>
3445
3446         PR tree-optimization/100981
3447         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
3448         gimple_get_lhs to also handle calls.
3449         * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
3450         reduction info.
3451
3452 2021-06-09  Richard Biener  <rguenther@suse.de>
3453
3454         PR tree-optimization/97832
3455         * tree-vectorizer.h (_slp_tree::failed): New.
3456         * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
3457         failed member.
3458         (_slp_tree::~_slp_tree): Free failed.
3459         (vect_build_slp_tree): Retain failed nodes and record
3460         matches in them, copying that back out when running
3461         into a cached fail.  Dump start and end of discovery.
3462         (dt_sort_cmp): New.
3463         (vect_build_slp_tree_2): Handle associatable chains
3464         together doing more aggressive operand swapping.
3465
3466 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
3467
3468         PR target/100896
3469         * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
3470         GNU targets.
3471         * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
3472         Linux and GNU targets.
3473
3474 2021-06-09  Richard Biener  <rguenther@suse.de>
3475
3476         * tree-vect-stmts.c (vect_is_simple_use): Always get dt
3477         from the stmt.
3478
3479 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
3480
3481         * config/arc/arc.md (loop_end): Change it to
3482         define_insn_and_split.
3483
3484 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
3485
3486         * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
3487         (machi): New pattern.
3488         (umaddhisi4): Use VMAC2HU instruction.
3489         (umachi): New pattern.
3490
3491 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
3492
3493         * config/arc/arc-protos.h (arc_split_move_p): New prototype.
3494         * config/arc/arc.c (arc_split_move_p): New function.
3495         (arc_split_move): Clean up.
3496         * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
3497         (movdf_insn): Likewise.
3498         * config/arc/simdext.md (mov<VWH>_insn): Likewise.
3499
3500 2021-06-09  Uroš Bizjak  <ubizjak@gmail.com>
3501
3502         PR target/100936
3503         * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
3504         argument to "raw".  Do not emit segment overrides when "raw" is true.
3505
3506 2021-06-09  Martin Liska  <mliska@suse.cz>
3507
3508         * doc/gcov.texi: Create a proper JSON files.
3509         * doc/invoke.texi: Remove dots in order to make it a valid
3510         JSON object.
3511
3512 2021-06-09  Xionghu Luo  <luoxhu@linux.ibm.com>
3513
3514         * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
3515         (insn_is_load_p): Use pattern_is_rotate64.
3516         (insn_is_swap_p): Likewise.
3517         (quad_aligned_load_p): Likewise.
3518         (const_load_sequence_p): Likewise.
3519         (replace_swapped_aligned_load): Likewise.
3520         (recombine_lvx_pattern): Likewise.
3521         (recombine_stvx_pattern): Likewise.
3522
3523 2021-06-09  Andrew MacLeod  <amacleod@redhat.com>
3524
3525         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
3526         fur_stmt source record.
3527         * gimple-range.cc (fur_source::get_operand): Generic range query.
3528         (fur_source::get_phi_operand): New.
3529         (fur_source::register_dependency): New.
3530         (fur_source::query): New.
3531         (class fur_edge): New.  Edge source for operands.
3532         (fur_edge::fur_edge): New.
3533         (fur_edge::get_operand): New.
3534         (fur_edge::get_phi_operand): New.
3535         (fur_edge::query): New.
3536         (fur_stmt::fur_stmt): New.
3537         (fur_stmt::get_operand): New.
3538         (fur_stmt::get_phi_operand): New.
3539         (fur_stmt::query): New.
3540         (class fur_depend): New.  Statement source and process dependencies.
3541         (fur_depend::fur_depend): New.
3542         (fur_depend::register_dependency): New.
3543         (class fur_list): New.  List source for operands.
3544         (fur_list::fur_list): New.
3545         (fur_list::get_operand): New.
3546         (fur_list::get_phi_operand): New.
3547         (fold_range): New.  Instantiate appropriate fur_source class and fold.
3548         (fold_using_range::range_of_range_op): Use new API.
3549         (fold_using_range::range_of_address): Ditto.
3550         (fold_using_range::range_of_phi): Ditto.
3551         (imple_ranger::fold_range_internal): Use fur_depend class.
3552         (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
3553         * gimple-range.h (class fur_source): Now a base class.
3554         (class fur_stmt): New.
3555         (fold_range): New prototypes.
3556         (fur_source::fur_source): Delete.
3557
3558 2021-06-08  Andrew Pinski  <apinski@marvell.com>
3559
3560         PR tree-optimization/25290
3561         * tree-ssa-phiopt.c (xor_replacement): Delete.
3562         (tree_ssa_phiopt_worker): Delete use of xor_replacement.
3563         (match_simplify_replacement): Allow one cheap preparation
3564         statement that can be moved to before the if.
3565
3566 2021-06-08  Pat Haugen  <pthaugen@linux.ibm.com>
3567
3568         * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
3569         power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
3570
3571 2021-06-08  Jeff Law  <jeffreyalaw@gmail.com>
3572
3573         * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
3574         Create length attribute on define_insn_and_split.  Only split for cases which we
3575         know will use AND.
3576         (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags.  Only handle AND here and
3577         fix length computation.
3578         (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
3579
3580 2021-06-08  Richard Biener  <rguenther@suse.de>
3581
3582         PR tree-optimization/100923
3583         * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
3584         the operand vector to be valueized.
3585         (valueize_refs): Likewise.
3586         (valueize_shared_reference_ops_from_ref): Adjust.
3587         (valueize_shared_reference_ops_from_call): Likewise.
3588         (vn_reference_lookup_3): Likewise.
3589         (vn_reference_lookup_pieces): Likewise.  Re-valueize
3590         with honoring availability when we are about to create
3591         the ao_ref and valueized before.
3592         (vn_reference_lookup): Likewise.
3593         (vn_reference_insert_pieces): Adjust.
3594
3595 2021-06-08  Richard Biener  <rguenther@suse.de>
3596
3597         * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
3598         (_slp_instance::root_stmts): ... a vector.
3599         (SLP_INSTANCE_ROOT_STMT): Rename to ...
3600         (SLP_INSTANCE_ROOT_STMTS): ... this.
3601         (slp_root::root): Change to...
3602         (slp_root::roots): ... a vector.
3603         (slp_root::slp_root): Adjust.
3604         * tree-vect-slp.c (_slp_instance::location): Adjust.
3605         (vect_free_slp_instance): Release the root stmt vector.
3606         (vect_build_slp_instance): Adjust.
3607         (vect_analyze_slp): Likewise.
3608         (_bb_vec_info::~_bb_vec_info): Likewise.
3609         (vect_slp_analyze_operations): Likewise.
3610         (vect_bb_vectorization_profitable_p): Likewise.  Adjust
3611         costs for the root stmt.
3612         (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
3613         as root stmts.
3614         (vect_slp_analyze_bb_1): Simplify by marking all root stmts
3615         as pure_slp.
3616         (vectorize_slp_instance_root_stmt): Adjust.
3617         (vect_schedule_slp): Likewise.
3618
3619 2021-06-08  Aldy Hernandez  <aldyh@redhat.com>
3620
3621         * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
3622         (ssa_equiv_stack::ssa_equiv_stack): New.
3623         (ssa_equiv_stack::~ssa_equiv_stack): New.
3624         (ssa_equiv_stack::enter): New.
3625         (ssa_equiv_stack::leave): New.
3626         (ssa_equiv_stack::push_replacement): New.
3627         (ssa_equiv_stack::get_replacement): New.
3628         (is_pointer_ssa): New.
3629         (class pointer_equiv_analyzer): New.
3630         (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
3631         (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
3632         (pointer_equiv_analyzer::set_global_equiv): New.
3633         (pointer_equiv_analyzer::set_cond_equiv): New.
3634         (pointer_equiv_analyzer::get_equiv): New.
3635         (pointer_equiv_analyzer::enter): New.
3636         (pointer_equiv_analyzer::leave): New.
3637         (pointer_equiv_analyzer::get_equiv_expr): New.
3638         (pta_valueize): New.
3639         (pointer_equiv_analyzer::visit_stmt): New.
3640         (pointer_equiv_analyzer::visit_edge): New.
3641         (hybrid_folder::value_of_expr): Call PTA.
3642         (hybrid_folder::value_on_edge): Same.
3643         (hybrid_folder::pre_fold_bb): New.
3644         (hybrid_folder::post_fold_bb): New.
3645         (hybrid_folder::pre_fold_stmt): New.
3646         (rvrp_folder::pre_fold_bb): New.
3647         (rvrp_folder::post_fold_bb): New.
3648         (rvrp_folder::pre_fold_stmt): New.
3649         (rvrp_folder::value_of_expr): Call PTA.
3650         (rvrp_folder::value_on_edge): Same.
3651
3652 2021-06-08  Jakub Jelinek  <jakub@redhat.com>
3653
3654         PR c++/100957
3655         * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
3656         check TREE_CODE if OMP_CLAUSE_DECL is NULL.
3657
3658 2021-06-08  Richard Biener  <rguenther@suse.de>
3659
3660         PR middle-end/100951
3661         * tree-vect-generic.c (expand_vector_piecewise): Build a
3662         VECTOR_CST if all elements are constant.
3663         (expand_vector_condition): Likewise.
3664         (lower_vec_perm): Likewise.
3665         (expand_vector_conversion): Likewise.
3666
3667 2021-06-08  Martin Liska  <mliska@suse.cz>
3668
3669         * doc/invoke.texi: Document new param evrp-sparse-threshold.
3670
3671 2021-06-08  Martin Liska  <mliska@suse.cz>
3672
3673         * genautomata.c (create_automata): Fix typo.
3674
3675 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
3676
3677         PR tree-optimization/100794
3678         * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
3679         allow_unroll_p and only allow unrolling when it's true.
3680         (tree_predictive_commoning): Add parameter allow_unroll_p and
3681         adjust for it.
3682         (run_tree_predictive_commoning): Likewise.
3683         (pass_predcom::gate): Check flag_tree_loop_vectorize and
3684         global_options_set.x_flag_predictive_commoning.
3685         (pass_predcom::execute): Adjust for allow_unroll_p.
3686
3687 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
3688
3689         * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
3690         (tree_predictive_commoning_loop): Factor some cleanup stuffs into
3691         lambda function cleanup, remove scev_reset call, and adjust return
3692         value.
3693         (tree_predictive_commoning): Adjust for different changed values,
3694         only set flag TODO_update_ssa_only_virtuals if changed.
3695         (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
3696         from todo_flags_finish.
3697
3698 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
3699
3700         * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
3701         (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
3702         (sbr_sparse_bitmap::bitmap_set_quad): New.
3703         (sbr_sparse_bitmap::bitmap_get_quad): New.
3704         (sbr_sparse_bitmap::set_bb_range): New.
3705         (sbr_sparse_bitmap::get_bb_range): New.
3706         (sbr_sparse_bitmap::bb_range_p): New.
3707         (block_range_cache::block_range_cache): initialize bitmap obstack.
3708         (block_range_cache::~block_range_cache): Destruct obstack.
3709         (block_range_cache::set_bb_range): Decide when to utilze the
3710         sparse on entry cache.
3711         * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
3712         * params.opt (-param=evrp-sparse-threshold): New.
3713
3714 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
3715
3716         * bitmap.c (bitmap_set_aligned_chunk): New.
3717         (bitmap_get_aligned_chunk): New.
3718         (test_aligned_chunk): New.
3719         (bitmap_c_tests): Call test_aligned_chunk.
3720         * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
3721
3722 2021-06-07  Uroš Bizjak  <ubizjak@gmail.com>
3723
3724         PR target/100637
3725         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
3726         Handle V4QI mode.
3727         (ix86_expand_vector_init_one_nonzero): Ditto.
3728         (ix86_expand_vector_init_one_var): Ditto.
3729         (ix86_expand_vector_init_general): Ditto.
3730         * config/i386/mmx.md (vec_initv4qiqi): New expander.
3731
3732 2021-06-07  Jeff Law  <jeffreyalaw@gmail.com>
3733
3734         * config/h8300/movepush.md: Change most _clobber_flags
3735         patterns to instead use <cczn> subst.
3736         (movsi_cczn): New pattern with usable CC cases split out.
3737         (movsi_h8sx_cczn): Likewise.
3738
3739 2021-06-07  Martin Liska  <mliska@suse.cz>
3740
3741         * common/common-target.def: Split long lines and replace them
3742         with '\n\'.
3743         * target.def: Likewise.
3744         * doc/tm.texi: Re-generated.
3745
3746 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
3747
3748         PR target/100887
3749         * fold-const.c (fold_read_from_vector): Return NULL if trying to
3750         read from a CONSTRUCTOR with vector type elements.
3751
3752 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
3753
3754         PR middle-end/100898
3755         * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
3756         should copy any arguments.  Don't call gimple_call_num_args
3757         on id->call_stmt or call_stmt more than once.
3758
3759 2021-06-07  liuhongt  <hongtao.liu@intel.com>
3760
3761         PR target/100885
3762         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
3763         constraints.
3764         (<insn>v4siv4di2): Delete constraints for define_expand.
3765
3766 2021-06-07  liuhongt  <hongtao.liu@intel.com>
3767
3768         PR target/82735
3769         * config/i386/i386-expand.c (ix86_expand_builtin): Remove
3770         assignment of cfun->machine->has_explicit_vzeroupper.
3771         * config/i386/i386-features.c
3772         (ix86_add_reg_usage_to_vzerouppers): Delete.
3773         (ix86_add_reg_usage_to_vzeroupper): Ditto.
3774         (rest_of_handle_insert_vzeroupper): Remove
3775         ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
3776         of the function.
3777         (gate): Remove cfun->machine->has_explicit_vzeroupper.
3778         * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
3779         Declared.
3780         * config/i386/i386.c (ix86_insn_callee_abi): New function.
3781         (ix86_initialize_callee_abi): Ditto.
3782         (ix86_expand_avx_vzeroupper): Ditto.
3783         (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
3784         ABI.
3785         (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
3786         (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
3787         directly.
3788         * config/i386/i386.h (struct GTY(()) machine_function): Delete
3789         has_explicit_vzeroupper.
3790         * config/i386/i386.md (enum unspec): New member
3791         UNSPEC_CALLEE_ABI.
3792         (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
3793         define_constants for insn callee abi index.
3794         * config/i386/predicates.md (vzeroupper_pattern): Adjust.
3795         * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
3796         (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
3797         (*avx_vzeroupper): Rename to ..
3798         (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
3799         call_insn which has a special vzeroupper ABI.
3800         (*avx_vzeroupper_1): Deleted.
3801
3802 2021-06-07  liuhongt  <hongtao.liu@intel.com>
3803
3804         PR target/82735
3805         * df-scan.c (df_get_call_refs): When call_insn is a fake call,
3806         it won't use stack pointer reg.
3807         * final.c (leaf_function_p): When call_insn is a fake call, it
3808         won't affect caller as a leaf function.
3809         * reg-stack.c (callee_clobbers_any_stack_reg): New.
3810         (subst_stack_regs): When call_insn doesn't clobber any stack
3811         reg, don't clear the arguments.
3812         * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
3813         a insn.
3814         * shrink-wrap.c (requires_stack_frame_p): No need for stack
3815         frame for a fake call.
3816         * rtl.h (FAKE_CALL_P): New macro.
3817
3818 2021-06-06  Eric Botcazou  <ebotcazou@adacore.com>
3819
3820         * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
3821         to...
3822         (sparc_order_regs_for_local_alloc): ...this.
3823         (sparc_leaf_reg_remap): Declare.
3824         * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
3825         (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
3826         * config/sparc/sparc.c (leaf_reg_remap): Delete.
3827         (order_regs_for_local_alloc): Rename to...
3828         (sparc_order_regs_for_local_alloc): ...this.
3829         (sparc_leaf_reg_remap): New function.
3830         (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
3831
3832 2021-06-06  David Edelsohn  <dje.gcc@gmail.com>
3833
3834         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
3835         Use assemble_name to output BSS section name.
3836
3837 2021-06-06  Uroš Bizjak  <ubizjak@gmail.com>
3838
3839         * config/i386/constraints.md (Bs):
3840         Remove boolean operators from match_test RTX.
3841         (Bw): Ditto.
3842         (L): Ditto.
3843         (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
3844         (Wz): Ditto.
3845
3846 2021-06-06  Martin Liska  <mliska@suse.cz>
3847
3848         * doc/extend.texi: Add missing @headitem.
3849         * doc/invoke.texi: Likewise.
3850         * doc/objc.texi: Likewise.
3851
3852 2021-06-06  Martin Liska  <mliska@suse.cz>
3853
3854         * genhooks.c (emit_findices): Remove unused function.
3855         (emit_documentation): Do not call emit_findices
3856         and do not search for @Fcode directives.
3857
3858 2021-06-06  Martin Liska  <mliska@suse.cz>
3859
3860         * doc/invoke.texi: Remove extra character.
3861
3862 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
3863
3864         * config/sh/sh.md (doloop_end_split): Fix empty split condition.
3865
3866 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
3867
3868         * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
3869         *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
3870         *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
3871         *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
3872
3873 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
3874
3875         * config/or1k/or1k.md (*movdi): Fix empty split condition.
3876
3877 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
3878
3879         * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
3880         split condition.
3881
3882 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
3883
3884         * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
3885         *zero_extendsidi2): Fix empty split condition.
3886
3887 2021-06-05  Jeff Law  <jeffreyalaw@gmail.com>
3888
3889         * config/h8300/addsub.md: Fix split condition in define_insn_and_split
3890         patterns.
3891         * config/h8300/bitfield.md: Likewise.
3892         * config/h8300/combiner.md: Likewise.
3893         * config/h8300/divmod.md: Likewise.
3894         * config/h8300/extensions.md: Likewise.
3895         * config/h8300/jumpcall.md: Likewise.
3896         * config/h8300/movepush.md: Likewise.
3897         * config/h8300/multiply.md: Likewise.
3898         * config/h8300/other.md: Likewise.
3899         * config/h8300/shiftrotate.md: Likewise.
3900         * config/h8300/logical.md: Likewise.  Fix split pattern to use
3901         code iterator that somehow slipped through.
3902
3903 2021-06-04  Tobias Burnus  <tobias@codesourcery.com>
3904
3905         PR middle-end/100905
3906         * tree-nested.c (convert_nonlocal_omp_clauses,
3907         convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
3908
3909 2021-06-04  Martin Sebor  <msebor@redhat.com>
3910
3911         PR middle-end/100732
3912         * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
3913         with either source or destination argument of invalid type.
3914         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
3915         calls with arguments of invalid type.
3916
3917 2021-06-04  Martin Sebor  <msebor@redhat.com>
3918
3919         * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
3920         order.
3921         (attr_access::vla_bounds): Also handle VLA bounds.
3922
3923 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
3924
3925         * config/i386/predicates.md (GOT_memory_operand):
3926         Implement using match_code RTXes.
3927         (GOT32_symbol_operand): Ditto.
3928
3929 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
3930
3931         PR target/100637
3932         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
3933         Handle V2HI mode.
3934         (ix86_expand_vector_init_general): Ditto.
3935         Use SImode instead of word_mode for logic operations
3936         when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
3937         (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
3938         implemented by expand_vec_perm_1.
3939         (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
3940         should be implemented using standard shuffle patterns.
3941         (ix86_vectorize_vec_perm_const): Handle V2HImode.  Add V4HI and
3942         V2HI modes to modes, implementable with shuffle for one operand.
3943         * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
3944         (*pshufw_1): New insn pattern.
3945         (*vec_dupv2hi): Ditto.
3946         (vec_initv2hihi): New expander.
3947
3948 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
3949
3950         * config/arm/vfp.md (no_literal_pool_df_immediate,
3951         no_literal_pool_sf_immediate): Fix empty split condition.
3952
3953 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
3954
3955         * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
3956         *tls_dynamic_gnu2_combine_32): Fix empty split condition.
3957         * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
3958         *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
3959         *<sse4_1_avx2>_pblendvb_lt): Likewise.
3960
3961 2021-06-04  Jakub Jelinek  <jakub@redhat.com>
3962
3963         PR target/100887
3964         * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
3965         concatenation from half-sized modes with TImode elements.
3966
3967 2021-06-04  Claudiu Zissulescu  <claziss@synopsys.com>
3968
3969         * config/arc/arc.c (arc_override_options): Disable millicode
3970         thunks when RF16 is on.
3971
3972 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
3973
3974         * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
3975
3976 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
3977
3978         * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
3979         Replace PROMOTE_MODE marco with its content.
3980
3981 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
3982
3983         * config/cris/cris.md (*addi_reload): Fix empty split condition.
3984
3985 2021-06-03  Jim Wilson  <jimw@sifive.com>
3986
3987         * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
3988         turn it on for all riscv targets.
3989
3990 2021-06-03  Uroš Bizjak  <ubizjak@gmail.com>
3991
3992         PR target/100637
3993         * config/i386/i386-expand.c (ix86_expand_vector_set):
3994         Handle V2HI and V4QI modes.
3995         (ix86_expand_vector_extract): Ditto.
3996         * config/i386/mmx.md (*pinsrw): New insn pattern.
3997         (*pinsrb): Ditto.
3998         (*pextrw): Ditto.
3999         (*pextrw_zext): Ditto.
4000         (*pextrb): Ditto.
4001         (*pextrb_zext): Ditto.
4002         (vec_setv2hi): New expander.
4003         (vec_extractv2hihi): Ditto.
4004         (vec_setv4qi): Ditto.
4005         (vec_extractv4qiqi): Ditto.
4006         (vec_setv8qi): Enable only for TARGET_SSE4_1.
4007         (vec_extractv8qiqi): Ditto.
4008
4009 2021-06-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
4010
4011         * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
4012         order to subf instruction.
4013         * config/rs6000/fusion.md: Regenerate.
4014
4015 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
4016
4017         * calls.c (get_size_range): Use range_of_expr instead of
4018         determine_value_range.
4019         * tree-affine.c (expr_to_aff_combination): Same.
4020         * tree-data-ref.c (split_constant_offset): Same.
4021         * tree-vrp.c (determine_value_range_1): Remove.
4022         (determine_value_range): Remove.
4023         * tree-vrp.h (determine_value_range): Remove.
4024
4025 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
4026
4027         * function-tests.c (test_ranges): Call gimple_range_tests.
4028         * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
4029         to get_tree_range.
4030         * gimple-range.cc (fur_source::get_operand): Do not call
4031         get_tree_range or gimple_range_global.
4032         get_tree_range.
4033         (get_tree_range): Move to value-query.cc.
4034         Call get_arith_expr_range.
4035         (gimple_ranger::range_of_expr): Add argument to get_tree_range.
4036         Include gimple-range-tests.cc.
4037         * gimple-range.h (fold_range): Add argument.
4038         (get_tree_range): Remove.
4039         * selftest.h (gimple_range_tests): New.
4040         * value-query.cc (global_range_query::range_of_expr): Add
4041         stmt argument.
4042         (range_query::get_tree_range): Move from gimple-range.cc.
4043         * value-query.h (class range_query): Add get_tree_range and
4044         get_arith_expr_range.  Make fur_source a friend.
4045         * vr-values.c (vr_values::range_of_expr): Pass stmt to
4046         get_tree_range.
4047         * gimple-range-tests.cc: New file.
4048
4049 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
4050
4051         * gimple-range.cc (gimple_ranger::export_global_ranges): Call
4052           update_global_range.
4053         * value-query.cc (update_global_range): New.
4054         * value-query.h (update_global_range): New.
4055
4056 2021-06-03  David Malcolm  <dmalcolm@redhat.com>
4057
4058         * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
4059         printing the same location twice if there are fix-it hints,
4060         multiple locations, or a label.
4061
4062 2021-06-03  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4063
4064         * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
4065         thresholds to narrow the upper bound on epilogue iterations.
4066
4067 2021-06-03  Christophe Lyon  <christophe.lyon@linaro.org>
4068
4069         * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
4070         (mve_vabsq_s<mode>): Likewise.
4071         * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
4072         * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
4073         * config/arm/vec-common.md (neg<mode>2): Rename to
4074         <absneg_str><mode>2.
4075
4076 2021-06-03  Claudiu Zissulescu  <claziss@synopsys.com>
4077
4078         * common/config/arc/arc-common.c (arc_option_optimization_table):
4079         Remove malign-call.
4080         * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
4081         * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
4082         (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
4083         * config/arc/arc.md (abssi2_mixed): Remove pattern.
4084         * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
4085         (malign-call): Likewise.
4086         (mmixed-code): Likewise.
4087         * doc/invoke.texi (ARC): Update doc.
4088
4089 2021-06-03  Martin Liska  <mliska@suse.cz>
4090
4091         * common.opt: Use proper Enum values.
4092         * opts.c (COVERAGE_SANITIZER_OPT): Remove.
4093         (parse_sanitizer_options): Handle only sanitizer_opts.
4094         (common_handle_option): Just assign value.
4095
4096 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4097
4098         PR ipa/99122
4099         * tree-inline.c (inline_forbidden_p): Remove test on return type.
4100
4101 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4102
4103         * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
4104         DW_OP_GNU_variable_value referencing an existing DIE at file scope.
4105         (type_byte_size): Inline into...
4106         (add_byte_size_attribute): ...this and call add_scalar_info.
4107
4108 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4109
4110         * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
4111         (typed_binop_from_tree): New function.
4112         (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
4113         turn a divide by a power of 2 into a shift.
4114         <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
4115         size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
4116         typed divide by calling typed_binop_from_tree.
4117
4118 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4119
4120         * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
4121         (is_handled_procedure_type): Likewise.
4122         (struct loc_descr_context): Add strict_signedness field.
4123         (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
4124         DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
4125         (resolve_args_picking): Minor tweak.
4126         (function_to_dwarf_procedure): Initialize strict_signedness field.
4127         (type_byte_size): Likewise.
4128         (field_byte_offset): Likewise.
4129         (gen_descr_array_type_die): Likewise.
4130         (gen_variant_part): Likewise.
4131         (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
4132         to true when a context is present before evaluating the arguments.
4133         <COND_EXPR>: Do not generate a useless comparison with zero.
4134         When dereferencing an address, if strict_signedness is true and the
4135         type is small and signed, use DW_OP_deref_type to do the dereference
4136         and then DW_OP_convert to convert back to the generic type.
4137
4138 2021-06-03  Jakub Jelinek  <jakub@redhat.com>
4139
4140         PR c++/100859
4141         * tree-inline.c (copy_tree_body_r): Handle iterators on
4142         OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
4143
4144 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
4145
4146         * config/arc/arc.md (*bbit_di): Remove.
4147
4148 2021-06-02  Christoph Muellner  <cmuellner@gcc.gnu.org>
4149
4150         PR rtl-optimization/100264
4151         * ree.c (get_sub_rtx): Ignore SET expressions without register
4152         destinations and remove assertion, as it is not valid anymore
4153         with this new behaviour.
4154         (merge_def_and_ext): Eliminate destination check for register
4155         as such SET expressions can't occur anymore.
4156         (combine_reaching_defs): Likewise.
4157
4158 2021-06-02  Jakub Jelinek  <jakub@redhat.com>
4159
4160         PR target/100841
4161         * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
4162         -Wtype-limits warnings.
4163         (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
4164         in operands to avoid -Wsign-compare warnings.
4165
4166 2021-06-02  Pat Haugen  <pthaugen@linux.ibm.com>
4167
4168         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
4169         gen_frame_store.
4170
4171 2021-06-02  Vineet Gupta  <vgupta@synopsys.com>
4172
4173         * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
4174
4175 2021-06-02  Ilya Leoshkevich  <iii@linux.ibm.com>
4176
4177         * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
4178         constraint.
4179         * config/s390/subst.md(cconly_subst): Use a single constraint
4180         in (match_scratch).
4181
4182 2021-06-02  Martin Liska  <mliska@suse.cz>
4183
4184         * ipa-icf.h: Use auto_vec for memory_access_types.
4185
4186 2021-06-02  Jeff Law  <jeffreyalaw@gmail.com>
4187
4188         * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
4189         argument from prototype.
4190         (output_logical_op): Add rtx_code argument.
4191         (compute_logical_op_length): Likewise.
4192         * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
4193         to compute_a_shift_length.
4194         (output_logical_op); New argument with the rtx code rather than
4195         extracting it from an operand.  Handle QImode too.
4196         (compute_logical_op_length): Similary.
4197         (compute_a_shift_length): Drop unused argument.
4198         * config/h8300/h8300.md (logicals): New code iterator.
4199         * config/h8300/logical.md (<code><mode>3 expander): Combine
4200         the "and" expander with the "ior"/"xor" expander.
4201         (bclr<mode>msx): Combine the QI/HI mode patterns.
4202         (<logical><mode>3 insns): Use code iterator rather than match_operator.
4203         Handle QImode as well.   Update call to output_logical_op and
4204         compute_logical_op_length to pass in rtx_code
4205         Fix split condition on all define_insn_and_split patterns.
4206         (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
4207         the flags and setting ZN via existing define_subst.
4208         * config/h8300/shiftrotate.md: Drop unused argument from
4209         calls to compute_a_shift_length.
4210         Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
4211
4212 2021-06-01  Andrew Pinski  <apinski@marvell.com>
4213
4214         PR tree-optimization/25290
4215         * tree-ssa-phiopt.c (match_simplify_replacement):
4216         New function.
4217         (tree_ssa_phiopt_worker): Use match_simplify_replacement.
4218         (two_value_replacement): Change the comment about
4219         conditional_replacement.
4220         (conditional_replacement): Delete.
4221
4222 2021-06-01  Andrew Pinski  <apinski@marvell.com>
4223
4224         PR tree-optimization/95481
4225         * tree-tailcall.c (find_tail_calls): Handle empty typed
4226         return decls.
4227
4228 2021-06-01  Andrew Pinski  <apinski@marvell.com>
4229
4230         * gimplify.c (zero_sized_field_decl): Delete
4231         (zero_sized_type): Delete
4232         (gimplify_init_ctor_eval): Use is_empty_type instead
4233         of zero_sized_field_decl.
4234         (gimplify_modify_expr): Use is_empty_type instead of
4235         zero_sized_type.
4236
4237 2021-06-01  Jason Merrill  <jason@redhat.com>
4238
4239         PR c++/91859
4240         * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
4241
4242 2021-06-01  Jason Merrill  <jason@redhat.com>
4243
4244         PR c++/94492
4245         * diagnostic.h (warning_enabled_at): Declare.
4246         * diagnostic.c (diagnostic_enabled): Factor out from...
4247         (diagnostic_report_diagnostic): ...here.
4248         (warning_enabled_at): New.
4249
4250 2021-06-01  Aldy Hernandez  <aldyh@redhat.com>
4251
4252         * gimple-ssa-evrp.c: Enable exporting of global ranges.
4253
4254 2021-06-01  Martin Liska  <mliska@suse.cz>
4255
4256         PR other/100826
4257         * doc/invoke.texi: Mention that -fgcse-after-reload
4258         is enabled with -O3.
4259
4260 2021-06-01  liuhongt  <hongtao.liu@intel.com>
4261
4262         PR tree-optimization/98365
4263         * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
4264         (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
4265         (convert_scalar_cond_reduction): Ditto.
4266         (predicate_scalar_phi): Ditto.
4267
4268 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
4269
4270         PR tree-optimization/100781
4271         * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
4272         value calculation by default.
4273         (ranger_cache::enable_new_values): New.
4274         (ranger_cache::disable_new_values): New.
4275         (ranger_cache::push_poor_value): Check if new values are allowed.
4276         * gimple-range-cache.h (class ranger_cache): New member/methods.
4277         * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
4278         statement, and disable/renable new value calculation.
4279
4280 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
4281
4282         * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
4283         (ranger_cache::range_of_def): New.
4284         (ranger_cache::entry_range): New.
4285         (ranger_cache::exit_range): New.
4286         (ranger_cache::range_of_expr): Adjust.
4287         (ranger_cache::range_on_edge): Adjust.
4288         (ranger_cache::propagate_cache): Call exit_range directly.
4289         * gimple-range-cache.h (class ranger_cache): Adjust.
4290
4291 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
4292
4293         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
4294         gori_compute being a member rather than base class.
4295         dervied call to member call.
4296         (ranger_cache::dump): No longer dump gori_map.
4297         (ranger_cache::dump_bb): New.
4298         (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
4299         being a member rather than base class.
4300         (ranger_cache::set_global_range): Ditto.
4301         (ranger_cache::ssa_range_in_bb): Ditto.
4302         (ranger_cache::range_of_expr): New.
4303         (ranger_cache::range_on_edge): New.
4304         (ranger_cache::block_range): Adjust for gori_computes.  Debug changes.
4305         (ranger_cache::propagate_cache):  Adjust debugging output.
4306         (ranger_cache::fill_block_cache): Adjust for gori_computes.  Debug
4307         output changes.
4308         * gimple-range-cache.h (class ranger_cache): Make gori_compute a
4309         member, and inherit from range_query instead.
4310         (ranger_cache::dump_bb): New. split from dump.
4311         * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
4312         (gori_compute::expr_range_at_stmt): Delete.
4313         (gori_compute::compute_name_range_op): Delete.
4314         (gori_compute::compute_operand_range_switch): Add fur_source.
4315         (gori_compute::compute_operand_range): Add fur_source param, inline
4316         old compute_name_range_op and optimize_logical_operands.
4317         (struct tf_range): Delete.
4318         (gori_compute::logical_combine): Adjust
4319         (gori_compute::optimize_logical_operands): Delete.
4320         (gori_compute::compute_logical_operands_in_chain): Delete.
4321         (gori_compute::compute_logical_operands): Adjust.
4322         (gori_compute::compute_operand1_range): Adjust to fur_source.
4323         (gori_compute::compute_operand2_range): Ditto.
4324         (gori_compute::compute_operand1_and_operand2_range): Ditto.
4325         (gori_compute::outgoing_edge_range_p): Add range_query parameter,
4326         and adjust to fur_source.
4327         * gimple-range-gori.h (class gori_compute): Simplify and adjust to
4328         range_query and fur_source.
4329         * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
4330         from the ranger_cache..
4331         (gimple_ranger::fold_range_internal): Adjust to base class change of
4332         ranger_cache.
4333         (gimple_ranger::dump_bb): Adjust dump.
4334         * gimple-range.h (gimple_ranger):export gori computes object.
4335
4336 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
4337
4338         PR tree-optimization/100774
4339         * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
4340         Constant values are also not stale.
4341         (ranger_cache::set_global_range): Range invariant values should also
4342         have the correct timestamp.
4343
4344 2021-05-31  Martin Liska  <mliska@suse.cz>
4345
4346         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
4347         Unpack FUNCTION_DECL_DECL_TYPE.
4348         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
4349         Stream FUNCTION_DECL_DECL_TYPE instead of
4350         DECL_IS_OPERATOR_NEW_P.
4351         * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
4352         macro.
4353         (DECL_IS_OPERATOR_NEW_P): Likewise.
4354         (DECL_IS_OPERATOR_DELETE_P): Likewise.
4355         (DECL_LAMBDA_FUNCTION_P): Likewise.
4356
4357 2021-05-31  Richard Biener  <rguenther@suse.de>
4358
4359         PR c++/88601
4360         * internal-fn.c (expand_SHUFFLEVECTOR): Define.
4361         * internal-fn.def (SHUFFLEVECTOR): New.
4362         * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
4363         * doc/extend.texi: Document __builtin_shufflevector.
4364
4365 2021-05-31  Peter Bergner  <bergner@linux.ibm.com>
4366
4367         PR target/99842
4368         * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
4369         indexed form addresses.
4370
4371 2021-05-29  Jeff Law  <jlaw@tachyum.com>
4372
4373         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
4374         parameter.  Call callers fixed.
4375         (push): Likewise.
4376         (output_plussi): Add FALLTHRU markers.
4377         (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
4378
4379 2021-05-29  Jakub Jelinek  <jakub@redhat.com>
4380
4381         PR middle-end/99928
4382         * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
4383         combined with parallel, make sure to add shared clause to
4384         parallel for explicit linear clause.
4385
4386 2021-05-29  Aldy Hernandez  <aldyh@redhat.com>
4387
4388         PR tree-optimization/100787
4389         * gimple-ssa-evrp.c: Disable exporting of global ranges.
4390
4391 2021-05-28  Jason Merrill  <jason@redhat.com>
4392
4393         * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
4394         operator--, operator*, operator==, and operator!=.
4395         (class tsi_range): New.
4396
4397 2021-05-28  Richard Biener  <rguenther@suse.de>
4398
4399         PR tree-optimization/100778
4400         * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
4401         trapping ops in different BBs.
4402
4403 2021-05-28  Richard Biener  <rguenther@suse.de>
4404
4405         PR ipa/100791
4406         * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
4407         copy fntype from original call.
4408
4409 2021-05-28  Martin Liska  <mliska@suse.cz>
4410
4411         PR gcov-profile/100751
4412         * doc/gcov.texi: Revert partially a hunk that was wrong.
4413
4414 2021-05-28  Cooper Qu  <cooper.qu@linux.alibaba.com>
4415
4416         * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
4417         Defined.
4418         (HAVE_sync_compare_and_swaphi): Likewise.
4419         (HAVE_sync_compare_and_swapsi): Likewise.
4420
4421 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
4422
4423         PR middle-end/99928
4424         * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
4425
4426 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
4427
4428         * gimplify.c (gimplify_omp_affinity): New.
4429         (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
4430         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
4431         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
4432         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
4433         (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
4434
4435 2021-05-28  Joern Rennecke  <joern.rennecke@riscy-ip.com>
4436             Richard Biener   <rguenther@suse.de>
4437
4438         * match.pd <popcount & / + pattern matching>:
4439         When generating popcount directly fails, try doing it in two halves.
4440
4441 2021-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4442
4443         * Makefile.in (generated_files): Add gimple-match.c and
4444         generic-match.c
4445
4446 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
4447
4448         * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
4449
4450 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
4451
4452         * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
4453
4454 2021-05-28  Kewen Lin  <linkw@linux.ibm.com>
4455
4456         PR tree-optimization/99398
4457         * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
4458         where the fed operands are CTOR/CST and propagated through
4459         VIEW_CONVERT_EXPR.  Call vec_perm_indices::new_shrunk_vector.
4460         * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
4461         function.
4462         * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
4463         declare.
4464
4465 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
4466
4467         * config/i386/mmx.md (addv2sf3): Do not call
4468         ix86_fixup_binary_operands_no_copy.
4469         (subv2sf3): Ditto.
4470         (mulv2sf3): Ditto.
4471         (<smaxmin:code>v2sf3): Ditto.
4472         (<plusminus:insn><MMXMODEI:mode>3): Ditto.
4473         (<plusminus:insn><VI_32:mode>3): Remove expander.
4474         (<plusminus:insn><VI_32:mode>3): Rename from
4475         "*<plusminus:insn><VI_32:mode>3".
4476         (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
4477         (mulv2hi3): Remove expander.
4478         (mulv2hi3): Rename from *mulv2hi3.
4479         (<s>mulv2hi3_highpart): Remove expander.
4480         (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
4481         (<smaxmin:code><MMXMODE14:mode>3): Rename from
4482         "*mmx_<smaxmin:code><MMXMODE14:mode>3".
4483         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
4484         (SMAXMIN_MMXMODEI): Remove mode iterator.
4485         (<smaxmin:code>v4hi3): New expander.
4486         (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
4487         (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
4488         (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
4489         (SMAXMIN_VI_32): Remove mode iterator.
4490         (<umaxmin:code><MMXMODE24:mode>3): Rename from
4491         "*mmx_<umaxmin:code><MMXMODE24:mode>3".
4492         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
4493         (UMAXMIN_MMXMODEI): Remove mode iterator.
4494         (<umaxmin:code>v8qi3): New expander.
4495         (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
4496         (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
4497         (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
4498         (UMAXMIN_VI_32): Remove mode iterator.
4499         (<any_shift:insn>v2hi3): Remove expander.
4500         (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
4501         (<any_logic:code><MMXMODEI:mode>3): Do not call
4502         ix86_fixup_binary_operands_no_copy.
4503         (<any_logic:code><VI_32:mode>3): Remove expander.
4504         (<any_logic:code><VI_32:mode>3): Rename from
4505         "*<any_logic:code><VI_32:mode>3".
4506         (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
4507         * config/i386/sse.md (div<VF2:mode>3): Do not call
4508         ix86_fixup_binary_operands_no_copy.
4509         (div<VF1:mode>3): Ditto.
4510         (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
4511         (smulhrsv4hi3): Ditto.
4512         (smulhrsv2hi3): Ditto.
4513
4514 2021-05-27  Martin Sebor  <msebor@redhat.com>
4515
4516         * ggc.h (gt_ggc_mx): Add overloads for all integers.
4517         (gt_pch_nx):  Same.
4518         * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
4519         integers.
4520         (hash_map::operator==): New function.
4521
4522 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
4523
4524         PR target/100637
4525         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
4526         For TARGET_XOP bypass SSE comparisons for all supported vector modes.
4527         * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
4528         (*xop_maskcmp<VI_32:mode>3): Ditto.
4529         (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
4530         (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
4531
4532 2021-05-27  Richard Earnshaw  <rearnsha@arm.com>
4533
4534         PR target/100767
4535         * config/arm/arm.c (arm_configure_build_target): Remove parameter
4536         opts_set, directly check opts parameters for being non-null.
4537         (arm_option_restore): Update call to arm_configure_build_target.
4538         (arm_option_override): Likewise.
4539         (arm_can_inline_p): Likewise.
4540         (arm_valid_target_attribute_tree): Likewise.
4541         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
4542         * config/arm/arm-protos.h (arm_configure_build_target): Adjust
4543         prototype.
4544
4545 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
4546
4547         * vr-values.c (simplify_conversion_using_ranges): Use
4548         get_range_query instead of get_global_range_query.
4549
4550 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
4551
4552         * gimple-range.cc (get_range_global): Move to value-query.cc.
4553         (gimple_range_global): Same.
4554         (get_global_range_query): Same.
4555         (global_range_query::range_of_expr): Same.
4556         * gimple-range.h (class global_range_query): Move to
4557         value-query.h.
4558         (gimple_range_global): Same.
4559         * tree-ssanames.c (get_range_info): Move to value-query.cc.
4560         (get_ptr_nonnull): Same.
4561         * tree-ssanames.h (get_range_info): Remove.
4562         (get_ptr_nonnull): Remove.
4563         * value-query.cc (get_ssa_name_range_info): Move from
4564         tree-ssanames.c.
4565         (get_ssa_name_ptr_info_nonnull): Same.
4566         (get_range_global): Move from gimple-range.cc.
4567         (gimple_range_global): Same.
4568         (get_global_range_query): Same.
4569         (global_range_query::range_of_expr): Same.
4570         * value-query.h (class global_range_query): Move from
4571         gimple-range.h.
4572         (gimple_range_global): Same.
4573
4574 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
4575
4576         PR target/100637
4577         * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
4578         (uavgv2hi3_ceil): Ditto.
4579
4580 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
4581
4582         PR c/100653
4583         * doc/extend.texi (scalar_storage_order): Rephrase slightly.
4584
4585 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
4586
4587         * tree-ssanames.c (get_range_info): Merge both copies of
4588         get_range_info into one that works with irange.
4589         * tree-ssanames.h (get_range_info): Remove version that works on
4590         wide_ints.
4591
4592 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
4593
4594         * builtins.c (check_nul_terminated_array): Convert to get_range_query.
4595         (expand_builtin_strnlen): Same.
4596         (determine_block_size): Same.
4597         * fold-const.c (expr_not_equal_to): Same.
4598         * gimple-fold.c (size_must_be_zero_p): Same.
4599         * gimple-match-head.c: Include gimple-range.h.
4600         * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
4601         * gimple-ssa-warn-restrict.c
4602         (builtin_memref::extend_offset_range): Same.
4603         * graphite-sese-to-poly.c (add_param_constraints): Same.
4604         * internal-fn.c (get_min_precision): Same.
4605         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
4606         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
4607         * match.pd: Same.
4608         * tree-data-ref.c (split_constant_offset): Same.
4609         (dr_step_indicator): Same.
4610         * tree-dfa.c (get_ref_base_and_extent): Same.
4611         * tree-scalar-evolution.c (iv_can_overflow_p): Same.
4612         * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
4613         (determine_value_range): Same.
4614         (record_nonwrapping_iv): Same.
4615         (infer_loop_bounds_from_signedness): Same.
4616         (scev_var_range_cant_overflow): Same.
4617         * tree-ssa-phiopt.c (two_value_replacement): Same.
4618         * tree-ssa-pre.c (insert_into_preds_of_block): Same.
4619         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
4620         * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
4621         (get_range): Same.
4622         (dump_strlen_info): Same.
4623         (set_strlen_range): Same.
4624         (maybe_diag_stxncpy_trunc): Same.
4625         (get_len_or_size): Same.
4626         (handle_integral_assign): Same.
4627         * tree-ssa-structalias.c (find_what_p_points_to): Same.
4628         * tree-ssa-uninit.c (find_var_cmp_const): Same.
4629         * tree-switch-conversion.c (bit_test_cluster::emit): Same.
4630         * tree-vect-patterns.c (vect_get_range_info): Same.
4631         (vect_recog_divmod_pattern): Same.
4632         * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
4633         (register_edge_assert_for_2): Same.
4634         (determine_value_range_1): Same.
4635         * tree.c (get_range_pos_neg): Same.
4636         * vr-values.c (vr_values::get_lattice_entry): Same.
4637         (vr_values::update_value_range): Same.
4638         (simplify_conversion_using_ranges): Same.
4639
4640 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
4641
4642         * gimple-ssa-warn-alloca.c (alloca_call_type): Use
4643           get_range_query instead of query argument.
4644         (pass_walloca::execute): Enable and disable global ranger.
4645
4646 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
4647
4648         * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
4649         enable_ranger.
4650         (rvrp_folder::~rvrp_folder): Call disable_ranger.
4651         (hybrid_folder::hybrid_folder): Call enable_ranger.
4652         (hybrid_folder::~hybrid_folder): Call disable_ranger.
4653
4654 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
4655
4656         * function.c (allocate_struct_function): Set cfun->x_range_query.
4657         * function.h (struct function): Declare x_range_query.
4658         (get_range_query): New.
4659         (get_global_range_query): New.
4660         * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
4661         Remove call to safe_grow_cleared.
4662         * gimple-range.cc (get_range_global): New.
4663         (gimple_range_global): Move from gimple-range.h.
4664         (get_global_range_query): New.
4665         (global_range_query::range_of_expr): New.
4666         (enable_ranger): New.
4667         (disable_ranger): New.
4668         * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
4669         (class global_range_query): New.
4670         (enable_ranger): New.
4671         (disable_ranger): New.
4672         * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
4673         dump_all_value_ranges to dump.
4674         * tree-vrp.c (vrp_prop::finalize): Same.
4675         * value-query.cc (range_query::dump): New.
4676         * value-query.h (range_query::dump): New.
4677         * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
4678         (vr_values::dump): ...this.
4679         * vr-values.h (class vr_values): Rename dump_all_value_ranges to
4680         dump and make virtual.
4681
4682 2021-05-26  Uroš Bizjak  <ubizjak@gmail.com>
4683
4684         * config/i386/i386.c (ix86_autovectorize_vector_modes):
4685         Add V4QImode and V16QImode for TARGET_SSE2.
4686         * doc/sourcebuild.texi (Vector-specific attributes):
4687         Add vect64 and vect32 description.
4688
4689 2021-05-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4690
4691         * gimple-range-gori.cc (range_def_chain::register_dependency):
4692         Resize m_def_chain when needed.
4693
4694 2021-05-26  Christophe Lyon  <christophe.lyon@linaro.org>
4695
4696         * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
4697         * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
4698         * config/arm/vec-common.md: .. here. Add support for MVE.
4699
4700 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
4701
4702         * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
4703         register keywords.
4704         * config/microblaze/microblaze.c (microblaze_legitimize_address,
4705         call_internal1,
4706         microblaze_option_override, print_operand): Likewise.
4707         * config/microblaze/microblaze.md (call_internal_plt,
4708         call_value_intern_plt, call_value_intern): Likewise.
4709         * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
4710         * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
4711         call_value_multiple_internal1): Likewise.
4712         * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
4713
4714 2021-05-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4715
4716         * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
4717         arc_ccfsm_advance, symbolic_reference_mentioned_p,
4718         arc_raw_symbolic_reference_mentioned_p): Remove register
4719         keyword.
4720
4721 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
4722
4723         PR libgomp/100573
4724         * omp-low.c: Include omp-offload.h.
4725         (create_omp_child_function): If current_function_decl has
4726         "omp declare target" attribute and is_gimple_omp_offloaded,
4727         remove that attribute from the copy of attribute list and
4728         add "omp target entrypoint" attribute instead.
4729         (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
4730         variables for offloading if in omp_maybe_offloaded_ctx.
4731         * omp-offload.c (pass_omp_target_link::execute): Nullify second
4732         argument to GOMP_target_data_ext in offloaded code.
4733
4734 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
4735
4736         * config/csky/csky.c (csky_can_change_mode_class): Delete.
4737         For csky, HF/SF mode use the low bits of VREGS.
4738
4739 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
4740
4741         * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
4742         DECL which is a reference for OMP.
4743
4744 2021-05-26  Martin Liska  <mliska@suse.cz>
4745
4746         PR gcov-profile/100751
4747         * doc/gcov.texi: Document that __gcov_dump can be called just
4748         once and that __gcov_reset resets run-time counters.
4749
4750 2021-05-26  Martin Liska  <mliska@suse.cz>
4751
4752         * doc/install.texi: Port relevant part from install-old.texi
4753         and re-generate list of CPUs and systems.
4754
4755 2021-05-26  Martin Liska  <mliska@suse.cz>
4756
4757         * Makefile.in: Remove it.
4758         * doc/include/fdl.texi: Update next/previous chapters.
4759         * doc/install.texi: Likewise.
4760         * doc/install-old.texi: Removed.
4761
4762 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
4763
4764         * config/csky/csky.c (ck810_legitimate_index_p): Support
4765         "base + index" with DF mode.
4766         * config/csky/constraints.md ("Y"): New constraint for memory operands
4767         without index register.
4768         * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
4769         when mov between memory and general registers, and lower their priority.
4770         * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
4771
4772 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
4773
4774         * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
4775
4776 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
4777
4778         * config/csky/csky.md (untyped_call): Emit clobber for return
4779         registers to mark them used.
4780
4781 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
4782
4783         * config/csky/csky.md (cskyv2_sextend_ldbs): New.
4784
4785 2021-05-26  Andrew Pinski  <apinski@marvell.com>
4786
4787         * match.pd (x < 0 ? ~y : y): New patterns.
4788
4789 2021-05-26  Andrew Pinski  <apinski@marvell.com>
4790
4791         * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
4792         A?POW2:0 and A?0:POW2.
4793
4794 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
4795
4796         * gimple-range-gori.cc (class logical_stmt_cache): Delete
4797         (logical_stmt_cache::logical_stmt_cache ): Delete.
4798         (logical_stmt_cache::~logical_stmt_cache): Delete.
4799         (logical_stmt_cache::cache_entry::dump): Delete.
4800         (logical_stmt_cache::get_range): Delete.
4801         (logical_stmt_cache::cached_name ): Delete.
4802         (logical_stmt_cache::same_cached_name): Delete.
4803         (logical_stmt_cache::cacheable_p): Delete.
4804         (logical_stmt_cache::slot_diagnostics ): Delete.
4805         (logical_stmt_cache::dump): Delete.
4806         (gori_compute_cache::gori_compute_cache): Delete.
4807         (gori_compute_cache::~gori_compute_cache): Delete.
4808         (gori_compute_cache::compute_operand_range): Delete.
4809         (gori_compute_cache::cache_stmt): Delete.
4810         * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
4811         virtual.
4812         (class gori_compute_cache): Delete.
4813
4814 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
4815
4816         * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
4817         intead of m_cache.
4818         (fold_using_range::range_of_address): Adjust.
4819         (fold_using_range::range_of_phi): Adjust.
4820         * gimple-range.h (class fur_source): Adjust.
4821         (fur_source::fur_source): Adjust.
4822
4823 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
4824
4825         * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
4826         from expr_range_in_bb and adjust.
4827         (gori_compute::compute_name_range_op): Adjust.
4828         (gori_compute::optimize_logical_operands): Adjust.
4829         (gori_compute::compute_logical_operands_in_chain): Adjust.
4830         (gori_compute::compute_operand1_range): Adjust.
4831         (gori_compute::compute_operand2_range): Adjust.
4832         (ori_compute_cache::cache_stmt): Adjust.
4833         * gimple-range-gori.h (gori_compute): Rename prototype.
4834
4835 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
4836
4837         * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
4838         checked only after range_of_stmt, not range_on_entry.
4839         (gimple_ranger::range_on_entry): Check for non-null in any
4840         predecessor block, if it is not already non-null.
4841         (gimple_ranger::range_on_exit): DOnt check for non-null after
4842         range on entry call.
4843         (gimple_ranger::dump_bb): New.  Split from dump.
4844         (gimple_ranger::dump): Adjust.
4845         * gimple-range.h (class gimple_ranger): Adjust.
4846
4847 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
4848
4849         * gimple-range-cache.cc (struct range_timestamp): Delete.
4850         (class temporal_cache): Adjust.
4851         (temporal_cache::get_timestamp): Delete.
4852         (temporal_cache::set_dependency): Delete.
4853         (temporal_cache::temporal_value): Adjust.
4854         (temporal_cache::current_p): Take dependencies as params.
4855         (temporal_cache::set_timestamp): Adjust.
4856         (temporal_cache::set_always_current): Adjust.
4857         (ranger_cache::get_non_stale_global_range): Adjust.
4858         (ranger_cache::register_dependency): Delete.
4859         * gimple-range-cache.h (class range_cache): Adjust.
4860
4861 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
4862
4863         * gimple-range-gori.cc (range_def_chain::range_def_chain): init
4864         bitmap obstack.
4865         (range_def_chain::~range_def_chain): Dispose of obstack rather than
4866         each individual bitmap.
4867         (range_def_chain::set_import): New.
4868         (range_def_chain::get_imports): New.
4869         (range_def_chain::chain_import_p): New.
4870         (range_def_chain::register_dependency): Rename from build_def_chain
4871         and set imports.
4872         (range_def_chain::def_chain_in_bitmap_p): New.
4873         (range_def_chain::add_def_chain_to_bitmap): New.
4874         (range_def_chain::has_def_chain): Just check first depenedence.
4875         (range_def_chain::get_def_chain): Process imports, use generic
4876         register_dependency routine.
4877         (range_def_chain::dump): New.
4878         (gori_map::gori_map): Allocate import list.
4879         (gori_map::~gori_map): Release imports.
4880         (gori_map::exports): Check for past allocated block size.
4881         (gori_map::imports): New.
4882         (gori_map::def_chain_in_export_p): Delete.
4883         (gori_map::is_import_p): New.
4884         (gori_map::maybe_add_gori): Handle imports.
4885         (gori_map::dump): Adjust output, add imports.
4886         (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
4887         (gori_export_iterator::gori_export_iterator): New.
4888         (gori_export_iterator::next): New.
4889         (gori_export_iterator::get_name): New.
4890         * gimple-range-gori.h (range_def_chain): Add imports and direct
4891         dependecies via struct rdc.
4892         (range_def_chain::depend1): New.
4893         (range_def_chain::depend2): New.
4894         (class gori_map): Adjust.
4895         (FOR_EACH_GORI_IMPORT_NAME): New.
4896         (FOR_EACH_GORI_EXPORT_NAME): New.
4897         (class gori_export_iterator): New.
4898
4899 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
4900
4901         * gimple-range-cache.cc (ranger_cache::ranger_cache):  Move initial
4902         export cache filling to here.
4903         * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
4904
4905 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
4906
4907         * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
4908         (gori_map): Move to gimple-range-gori.h.
4909         (gori_compute::gori_compute): Adjust.
4910         (gori_compute::~gori_compute): Delete.
4911         (gori_compute::compute_operand_range_switch): Adjust.
4912         (gori_compute::compute_operand_range): Adjust.
4913         (gori_compute::compute_logical_operands): Adjust.
4914         (gori_compute::has_edge_range_p ): Adjust.
4915         (gori_compute::set_range_invariant): Delete.
4916         (gori_compute::dump): Adjust.
4917         (gori_compute::outgoing_edge_range_p): Adjust.
4918         * gimple-range-gori.h (class range_def_chain): Relocate here.
4919         (class gori_map): Relocate here.
4920         (class gori_compute): Inherit from gori_map, and adjust.
4921
4922 2021-05-25  Aldy Hernandez  <aldyh@redhat.com>
4923
4924         * value-range.cc (range_tests_legacy): Use
4925         build_nonstandard_integer_type instead of int and short.
4926
4927 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4928
4929         * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
4930         when really creating an initialization statement for it.
4931
4932 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4933
4934         * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
4935
4936 2021-05-25  Kito Cheng  <kito.cheng@sifive.com>
4937
4938         * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
4939
4940 2021-05-25  Martin Liska  <mliska@suse.cz>
4941
4942         PR tree-optimization/92860
4943         PR target/99592
4944         * optc-save-gen.awk: Remove exceptions.
4945
4946 2021-05-25  Martin Liska  <mliska@suse.cz>
4947
4948         * asan.h (sanitize_coverage_p): New function.
4949         * doc/extend.texi: Document it.
4950         * fold-const.c (fold_range_test): Use sanitize_flags_p
4951         instead of flag_sanitize_coverage.
4952         (fold_truth_andor): Likewise.
4953         * sancov.c: Likewise.
4954         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4955         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
4956         -fsanitize-coverage when inlining.
4957
4958 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
4959
4960         * config/csky/csky-modes.def : Fix copyright.
4961
4962 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
4963
4964         * config/csky/csky-modes.def : Amend copyright.
4965         * config/csky/csky_insn_fpuv2.md : Likewise.
4966         * config/csky/csky_insn_fpuv3.md : Likewise.
4967
4968 2021-05-25  Richard Biener  <rguenther@suse.de>
4969
4970         PR middle-end/100727
4971         * calls.c (initialize_argument_information): Explicitely test
4972         for WITH_SIZE_EXPR.
4973         * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
4974
4975 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
4976
4977         * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
4978         HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
4979         the signle definition. The signle definition may not work well
4980         at simplify_subreg_regno().
4981         (HARD_FRAME_POINTER_REGNUM): New.
4982         (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
4983         * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
4984         csky_initial_elimination_offset, csky_expand_prologue,
4985         csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
4986
4987 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
4988
4989         * config/csky/csky.c (csky_option_override):
4990         Init csky_arch_isa_features[] in advance, so TARGET_DSP
4991         and TARGET_DIV can be set well.
4992
4993 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
4994
4995         * config/csky/constraints.md ("l", "h"): Delete.
4996         * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
4997         REG_CLASS_CONTENTS):  Delete LO_REGS and HI_REGS.
4998         * config/csky/csky.c (regno_reg_classm,
4999         csky_secondary_reload, csky_register_move_cost):
5000         Use HILO_REGS instead of LO_REGS and HI_REGS.
5001
5002 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
5003
5004         * config/csky/constraints.md ("W"): New constriant for mem operand
5005         with base reg, index register.
5006         ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
5007         "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
5008         constraint.
5009         ("Dv"): New constraint for const double value that can be used at
5010         fmovi instruction.
5011         * config/csky/csky-modes.def (HFmode): New mode.
5012         * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
5013         to "csky_valid_mem_constraint_operand" and support new constraint
5014         "W".
5015         (csky_get_movedouble_length): New.
5016         (fpuv3_output_move): New.
5017         (fpuv3_const_double): New.
5018         * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
5019         (decompose_csky_address): Refine.
5020         (csky_print_operand): New "CONST_DOUBLE" operand.
5021         (csky_output_move): Support fpv3 instructions.
5022         (csky_get_movedouble_length): New.
5023         (fpuv3_output_move): New.
5024         (fpuv3_const_double): New.
5025         (csky_emit_compare): Cover float comparsion.
5026         (csky_emit_compare_float): Refine.
5027         (csky_vaild_fpuv2_mem_operand): Rename to
5028         "csky_valid_mem_constraint_operand" and support new constraint "W".
5029         (ck860_rtx_costs): New.
5030         (csky_rtx_costs): Add the cost calculation of CK860.
5031         (regno_reg_class): New vregs for fpuv3.
5032         (csky_dbx_regno): Likewise.
5033         (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
5034         (csky_conditional_register_usage): Suporrot fpuv3.
5035         (csky_dwarf_register_span): Suporrot fpuv3.
5036         (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
5037         (ck810_legitimate_index_p): Support fp16.
5038         * config/csky/csky.h (TARGET_TLS): ADD CK860.
5039         (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
5040         (TARGET_SINGLE_FPU): Support fpuv3.
5041         (TARGET_SUPPORT_FPV3): New.
5042         (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
5043         (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
5044          REG_CLASS_CONTENTS): Support fpuv3.
5045         * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
5046         (csky_movsf_fpv2): Likewise.
5047         (ck801_movsf): Likewise.
5048         (csky_movsf): Likewise.
5049         (movdf): Likewise.
5050         (csky_movdf_fpv2): Likewise.
5051         (ck801_movdf): Likewise.
5052         (csky_movdf): Likewise.
5053         (movsicc): Refine. Use "comparison_operatior" instead of
5054         "ordered_comparison_operatior".
5055         (addsicc): Likewise.
5056         (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
5057         (call_value_internal_vh): New.
5058         * config/csky/csky_cores.def (CK860): New arch and cpu.
5059         (fpv3_hf): New.
5060         (fpv3_hsf): New.
5061         (fpv3_sdf): New.
5062         (fpv3): New.
5063         * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
5064         into emit-patterns and match-patterns, remain the emit-patterns here,
5065         and move the match-patterns to csky_insn_fpuv2.md or
5066         csky_insn_fpuv3.md.
5067         * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
5068         * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
5069         isntructions.
5070         * config/csky/csky_isa.def (fcr): New.
5071         (fpv3_hi): New.
5072         (fpv3_hf): New.
5073         (fpv3_sf): New.
5074         (fpv3_df): New.
5075         (CK860): New definition for ck860.
5076         * config/csky/csky_tables.opt (ck860): New processors ck860,
5077         ck860f. And new arch ck860.
5078         (fpv3_hf): New.
5079         (fpv3_hsf): New.
5080         (fpv3_hdf): New.
5081         (fpv3): New.
5082         * config/csky/predicates.md (csky_float_comparsion_operator): Delete
5083         "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
5084         * config/csky/t-csky-elf: Support 860.
5085         * config/csky/t-csky-linux: Likewise.
5086         * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
5087
5088 2021-05-24  Aaron Sawdey  <acsawdey@linux.ibm.com>
5089
5090         * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
5091         add generation of logical-add and add-logical fusion pairs.
5092         * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
5093         and powerpc mask.
5094         * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
5095         logical-add and add-logical fusion by default.
5096         * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
5097         -mpower10-fusion-add-logical options.
5098         * config/rs6000/fusion.md: Regenerate file.
5099
5100 2021-05-24  Aldy Hernandez  <aldyh@redhat.com>
5101
5102         * value-range.cc (irange::legacy_equal_p): Check type when
5103         comparing VR_VARYING types.
5104         (range_tests_legacy): Test comparing VARYING ranges of different
5105         sizes.
5106
5107 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
5108
5109         * config/aarch64/aarch64.c (neoversen1_tunings):
5110         Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
5111
5112 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
5113
5114         * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
5115         extern weak symbols.  Limit symbol offsets for non-GOT symbols with
5116         PIC/PIE.
5117
5118 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
5119
5120         * config/arm/neon.md (vec_load_lanesxi<mode>)
5121         (vec_store_lanexoi<mode>): Move ...
5122         * config/arm/vec-common.md: here.
5123
5124 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
5125
5126         * config/arm/neon.md (vec_load_lanesoi<mode>)
5127         (vec_store_lanesoi<mode>): Move ...
5128         * config/arm/vec-common.md: here.
5129
5130 2021-05-24  liuhongt  <hongtao.liu@intel.com>
5131
5132         PR target/100660
5133         * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
5134         stmt with GIMPLE_NOP when lhs doesn't exist.
5135
5136 2021-05-23  Uroš Bizjak  <ubizjak@gmail.com>
5137
5138         PR target/100722
5139         * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
5140         New instruction pattern.
5141         (*push<VI_32:mode>2): Ditto.
5142         (push splitter for SSE registers): New splitter.
5143
5144 2021-05-23  Andrew Pinski  <apinski@marvell.com>
5145
5146         * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
5147
5148 2021-05-22  Aaron Sawdey  <acsawdey@linux.ibm.com>
5149
5150         * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
5151         * config/rs6000/fusion.md: Regenerate file.
5152
5153 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
5154
5155         * config/rs6000/genfusion.pl (gen_addadd): New function.
5156         * config/rs6000/fusion.md: Regenerate file.
5157         * config/rs6000/rs6000-cpus.def: Add
5158         OPTION_MASK_P10_FUSION_2ADD to masks.
5159         * config/rs6000/rs6000.c (rs6000_option_override_internal):
5160         Handle default value of OPTION_MASK_P10_FUSION_2ADD.
5161         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
5162
5163 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
5164
5165         PR middle-end/99928
5166         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
5167         * gimplify.c (enum gimplify_omp_var_data): Fix up
5168         GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
5169         (omp_lastprivate_for_combined_outer_constructs): If combined target
5170         has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
5171         GOVD_MAP | GOVD_SEEN.
5172         (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
5173         firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
5174         (gimplify_adjust_omp_clauses): For firstprivate clauses with
5175         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
5176         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
5177         let it be replaced by implicit map clause.
5178
5179 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
5180
5181         PR middle-end/99928
5182         * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
5183         function.
5184         (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
5185         (gimplify_omp_for): Likewise.
5186
5187 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5188
5189         PR middle-end/90115
5190         * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
5191         'external' in blocks.
5192
5193 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5194
5195         PR middle-end/90115
5196         * flag-types.h (enum openacc_privatization): New.
5197         * params.opt (-param=openacc-privatization): New.
5198         * doc/invoke.texi (openacc-privatization): Document it.
5199         * omp-general.h (get_openacc_privatization_dump_flags): New
5200         function.
5201         * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
5202         * omp-offload.c (execute_oacc_device_lower)
5203         <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
5204         * target.def (goacc.adjust_private_decl): Add 'location_t'
5205         parameter.
5206         * doc/tm.texi: Regenerate.
5207         * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
5208         * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
5209         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
5210         Likewise.  Preserve it for...
5211         (nvptx_goacc_expand_var_decl): ... use here.
5212
5213 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5214
5215         * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
5216         DejaGnu selector.
5217
5218 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5219
5220         PR middle-end/90115
5221         * omp-low.c (oacc_privatization_candidate_p): New function.
5222         (oacc_privatization_scan_clause_chain)
5223         (oacc_privatization_scan_decl_chain): Use it.  Also
5224         'gcc_checking_assert' that we're not seeing duplicates.
5225
5226 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5227
5228         PR middle-end/90115
5229         * omp-offload.c (execute_oacc_device_lower): Skip processing if no
5230         work to be done.
5231
5232 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5233
5234         PR middle-end/90115
5235         * omp-offload.c (execute_oacc_device_lower): Explain.
5236
5237 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5238
5239         PR middle-end/90115
5240         * omp-offload.c (execute_oacc_device_lower)
5241         <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
5242         case, too.
5243         * internal-fn.c (expand_UNIQUE): Don't expect
5244         'IFN_UNIQUE_OACC_PRIVATE'.
5245
5246 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5247
5248         PR middle-end/90115
5249         * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
5250
5251 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5252
5253         PR middle-end/90115
5254         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
5255         (nvptx_goacc_expand_var_decl): Tighten.
5256
5257 2021-05-21  Julian Brown  <julian@codesourcery.com>
5258             Chung-Lin Tang  <cltang@codesourcery.com>
5259             Thomas Schwinge  <thomas@codesourcery.com>
5260
5261         PR middle-end/90115
5262         * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
5263         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
5264         * doc/tm.texi: Regenerate.
5265         * expr.c (expand_expr_real_1): Expand decls using the
5266         expand_var_decl OpenACC hook if defined.
5267         * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
5268         * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
5269         * omp-low.c (omp_context): Add oacc_privatization_candidates
5270         field.
5271         (lower_oacc_reductions): Add PRIVATE_MARKER parameter.  Insert
5272         before fork.
5273         (lower_oacc_head_tail): Add PRIVATE_MARKER parameter.  Modify
5274         private marker's gimple call arguments, and pass it to
5275         lower_oacc_reductions.
5276         (oacc_privatization_scan_clause_chain)
5277         (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
5278         New functions.
5279         (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
5280         * omp-offload.c (convert.h): Include.
5281         (oacc_loop_xform_head_tail): Treat private-variable markers like
5282         fork/join when transforming head/tail sequences.
5283         (struct var_decl_rewrite_info): Add struct.
5284         (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
5285         (execute_oacc_device_lower): Support rewriting gang-private
5286         variables using target hook, and fix up addr_expr and var_decl
5287         nodes afterwards.
5288         * target.def (adjust_private_decl, expand_var_decl): New hooks.
5289         * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
5290         Rename to...
5291         (gcn_goacc_adjust_private_decl): ...this.
5292         * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
5293         Rename to...
5294         (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
5295         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
5296         definition using gcn_goacc_adjust_gangprivate_decl...
5297         (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
5298         gcn_goacc_adjust_private_decl.
5299         * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
5300         (gang_private_shared_size): New global variable.
5301         (gang_private_shared_align): Likewise.
5302         (gang_private_shared_sym): Likewise.
5303         (gang_private_shared_hmap): Likewise.
5304         (nvptx_option_override): Initialize these.
5305         (nvptx_file_end): Output gang_private_shared_sym.
5306         (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
5307         New functions.
5308         (nvptx_set_current_function): Clear gang_private_shared_hmap.
5309         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
5310         (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
5311
5312 2021-05-21  H.J. Lu  <hjl.tools@gmail.com>
5313
5314         * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
5315
5316 2021-05-21  Richard Biener  <rguenther@suse.de>
5317             H.J. Lu  <hjl.tools@gmail.com>
5318
5319         PR middle-end/90773
5320         * expr.c (expand_constructor): Elide expand_constructor if
5321         move by pieces is preferred.
5322
5323 2021-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5324
5325         * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
5326         Take a flag and mode value as arguments.
5327         (aarch64_modifies_global_state_p): Likewise.
5328         (aarch64_reads_global_state_p): Likewise.
5329         (aarch64_could_trap_p): Likewise.
5330         (aarch64_get_attributes): Likewise.
5331         (aarch64_init_simd_builtins): Adjust callsite of above.
5332         (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
5333         function attributes to apply to builtins.
5334         (aarch64_init_crc32_builtins): Likewise.
5335         (aarch64_init_builtin_rsqrt): Likewise.
5336
5337 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
5338
5339         * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
5340         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
5341         (gen_2logical): Use new fusion types.
5342         * config/rs6000/fusion.md: Regenerate.
5343
5344 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
5345
5346         PR target/100637
5347         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
5348         Handle V4QI and V2HI modes.
5349         (ix86_expand_sse_movcc): Ditto.
5350         * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
5351         New instruction pattern.
5352         (*eq<VI_32:mode>3): Ditto.
5353         (*gt<VI_32:mode>3): Ditto.
5354         (*xop_pcmov_<VI_32:mode>): Ditto.
5355         (mmx_pblendvb32): Ditto.
5356         (mmx_pblendvb64): Rename from mmx_pblendvb.
5357         (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
5358         (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
5359         (vcond<VI_32:mode><VI_32:mode>): Ditto.
5360         (vcondu<VI_32:mode><VI_32:mode>): Ditto.
5361         (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
5362
5363 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
5364
5365         PR tree-optimization/94589
5366         * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
5367         rhs2, treat x <= 4 equivalently to x < 5 etc.  In cmp1 and cmp2 (if
5368         not the same as cmp3) treat <= the same as < and >= the same as >.
5369         Don't require that cond2_phi_edge is true edge, instead take
5370         false/true edges into account based on cmp1/cmp2 comparison kinds.
5371
5372 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
5373
5374         PR target/100637
5375         * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
5376         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
5377         from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
5378         using SMAXMIN_MMXMODEI mode iterator.
5379         (*<smaxmin:code>v4qi3): New insn pattern.
5380         (*<smaxmin:code>v2hi3): Ditto.
5381         (SMAXMIN_VI_32): New mode iterator.
5382         (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
5383         (UMAXMIN_MMXMODEI): New mode iterator.
5384         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
5385         from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
5386         using UMAXMIN_MMXMODEI mode iterator.
5387         (*<umaxmin:code>v4qi3): New insn pattern.
5388         (*<umaxmin:code>v2hi3): Ditto.
5389         (UMAXMIN_VI_32): New mode iterator.
5390         (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
5391         (abs<VI_32:mode>2): New insn pattern.
5392         (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
5393         * config/i386/sse.md: ... here.
5394
5395 2021-05-20  Clement Chigot  <clement.chigot@atos.net>
5396             David Edelsohn  <dje.gcc@gmail.com>
5397
5398         * collect2.c (scan_prog_file): Issue non-fatal warning for
5399         non-COFF files.
5400
5401 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
5402
5403         * doc/invoke.texi (-Wno-c++11-extensions)
5404         (-Wno-c++14-extensions, -Wno-c++17-extensions)
5405         (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
5406         new options.
5407
5408 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
5409
5410         * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
5411         * config/darwin.c (darwin_override_options): Likewise.
5412         * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
5413         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
5414         (DWARF2_FRAME_REG_OUT): Likewise.
5415         * config/mips/mips.c (mips_output_filename): Likewise.
5416         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
5417         Likewise.
5418         (rs6000_dbx_register_number): Likewise.
5419         * dbxout.c: Include flags.h.
5420         * dwarf2cfi.c (cfi_label_required_p): Likewise.
5421         (dwarf2out_do_frame): Likewise.
5422         * except.c: Include flags.h.
5423         * final.c (dwarf2_debug_info_emitted_p): Likewise.
5424         (final_scan_insn_1): Likewise.
5425         * flags.h (dwarf_debuginfo_p): New function declaration.
5426         * opts.c (dwarf_debuginfo_p): New function definition.
5427         * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
5428         * toplev.c (process_options): Likewise.
5429
5430 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
5431
5432         * common.opt: Change type to support bitmasks.
5433         * flag-types.h (enum debug_info_type): Rename enumerator constants.
5434         (NO_DEBUG): New bitmask.
5435         (DBX_DEBUG): Likewise.
5436         (DWARF2_DEBUG): Likewise.
5437         (XCOFF_DEBUG): Likewise.
5438         (VMS_DEBUG): Likewise.
5439         (VMS_AND_DWARF2_DEBUG): Likewise.
5440         * flags.h (debug_set_to_format): New function declaration.
5441         (debug_set_count): Likewise.
5442         (debug_set_names): Likewise.
5443         * opts.c (debug_type_masks): Array of bitmasks for debug formats.
5444         (debug_set_to_format): New function definition.
5445         (debug_set_count): Likewise.
5446         (debug_set_names): Likewise.
5447         (set_debug_level): Update access to debug_type_names.
5448         * toplev.c: Likewise.
5449
5450 2021-05-20  Martin Sebor  <msebor@redhat.com>
5451
5452         PR middle-end/100684
5453         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
5454
5455 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
5456
5457         PR target/100701
5458         * config/i386/i386.md (isa): Remove x64_bmi.
5459         (enabled): Remove x64_bmi.
5460         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
5461         Remove general register alternative.
5462         (*andnot<VI_32:mode>3): Ditto.
5463         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
5464         (*<any_logic:code><VI_32:mode>3): Ditto.
5465
5466 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
5467
5468         * config/arm/arm.c: Include head files tree-vectorizer.h and
5469         cfgloop.h.
5470
5471 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
5472
5473         PR target/100637
5474         * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
5475         (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
5476         (<s>mulv4hi3_highpart): New expander.
5477         (*<s>mulv2hi3_highpart): New insn pattern.
5478         (<s>mulv2hi3_higpart): New expander.
5479         (*<any_shift:insn>v2hi3): New insn pattern.
5480         (<any_shift:insn>v2hi3): New expander.
5481         * config/i386/sse.md (smulhrsv2hi3): New expander.
5482         (*smulhrsv2hi3): New insn pattern.
5483
5484 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
5485
5486         * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
5487         parameter.
5488         * params.opt (vect-inner-loop-cost-factor): New.
5489         * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
5490         50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
5491         tree-vectorizer.h and its required ones.
5492         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
5493         hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
5494         * config/arm/arm.c (arm_add_stmt_cost): Likewise.
5495         * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
5496         * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
5497         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
5498         Likewise.
5499         (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
5500         * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
5501         (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
5502
5503 2021-05-20  Christophe Lyon  <christophe.lyon@linaro.org>
5504             Torbjörn Svensson  <torbjorn.svensson@st.com>
5505
5506         PR c/42579
5507         * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
5508
5509 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
5510
5511         PR middle-end/99928
5512         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
5513         explicit linear clause when combined with target, make it map(tofrom:)
5514         instead of no clause or firstprivate.
5515
5516 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
5517
5518         PR tree-optimization/94589
5519         * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
5520         of integral conversions.
5521
5522 2021-05-19  Andrew MacLeod  <amacleod@redhat.com>
5523
5524         * gimple-range.cc (fur_source::get_operand): New.
5525         (gimple_range_fold): Delete.
5526         (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
5527         (fold_using_range::range_of_range_op): Move from gimple_ranger.
5528         (fold_using_range::range_of_address): Ditto.
5529         (fold_using_range::range_of_phi): Ditto.
5530         (fold_using_range::range_of_call): Ditto.
5531         (fold_using_range::range_of_builtin_ubsan_call): Move from
5532         range_of_builtin_ubsan_call.
5533         (fold_using_range::range_of_builtin_call): Move from
5534         range_of_builtin_call.
5535         (gimple_ranger::range_of_builtin_call): Delete.
5536         (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
5537         (gimple_ranger::fold_range_internal): New.
5538         (gimple_ranger::range_of_stmt): Use new fold_using_range API.
5539         (fold_using_range::range_of_ssa_name_with_loop_info): Move from
5540         gimple_ranger.  Improve ranges of SSA_NAMES when possible.
5541         * gimple-range.h (gimple_ranger): Remove various range_of routines.
5542         (class fur_source): New.
5543         (class fold_using_range): New.
5544         (fur_source::fur_source): New.
5545         (fold_range): New.
5546         * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
5547         instead of range_of_builtin_call.
5548
5549 2021-05-19  Jonathan Wakely  <jwakely@redhat.com>
5550
5551         * doc/cpp.texi (Common Predefined Macros): Update documentation
5552         for the __GXX_EXPERIMENTAL_CXX0X__ macro.
5553
5554 2021-05-19  Alex Coplan  <alex.coplan@arm.com>
5555
5556         PR target/100333
5557         * config/arm/arm.md (nonsecure_call_internal): Always ensure
5558         callee's address is in a register.
5559
5560 2021-05-19  Geng Qi  <gengqi@linux.alibaba.com>
5561
5562         * common/config/riscv/riscv-common.c
5563         (riscv_subset_list::parsing_subset_version): Properly parse the letter
5564         'p' in '-march'.
5565         (riscv_subset_list::parse_std_ext,
5566          riscv_subset_list::parse_multiletter_ext): To handle errors generated
5567         in riscv_subset_list::parsing_subset_version.
5568
5569 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
5570
5571         * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
5572         type attribute in patterns generating XTN(2).
5573
5574 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
5575
5576         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
5577         Remove as duplicate of...
5578         (aarch64_xtn<mode>): This.
5579         (aarch64_xtn2<mode>_le): Move position in file.
5580         (aarch64_xtn2<mode>_be): Move position in file.
5581         (aarch64_xtn2<mode>): Move position in file.
5582         (vec_pack_trunc_<mode>): Define as an expander.
5583
5584 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
5585
5586         * config/aarch64/aarch64-simd-builtins.def: Split builtin
5587         generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
5588         separate scalar and vector generators.
5589         * config/aarch64/aarch64-simd.md
5590         (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
5591         split into...
5592         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
5593         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
5594         * config/aarch64/iterators.md: Define SD_HSDI iterator.
5595
5596 2021-05-19  Jonathn Wright  <jonathan.wright@arm.com>
5597
5598         * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
5599         of UNSPEC_SQXTUN2.
5600         * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
5601
5602 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
5603
5604         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
5605         Implement as an expand emitting a big/little endian
5606         instruction pattern.
5607         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
5608         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
5609
5610 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
5611
5612         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
5613         Implement as an expand emitting a big/little endian
5614         instruction pattern.
5615         (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
5616         (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
5617         * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
5618         UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
5619
5620 2021-05-19  Richard Biener  <rguenther@suse.de>
5621
5622         PR middle-end/100672
5623         * fold-const.c (fold_negate_expr_1): Use element_precision.
5624         (negate_expr_p): Likewise.
5625
5626 2021-05-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5627
5628         * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
5629         (pred_load): New int attribute.
5630         * config/aarch64/aarch64-sve.md
5631         (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
5632         SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
5633         * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
5634         code_for_aarch64_load.
5635
5636 2021-05-19  Richard Biener  <rguenther@suse.de>
5637
5638         * cfgexpand.c (discover_nonconstant_array_refs_r): Make
5639         sure TARGET_MEM_REF bases are expanded as memory.
5640         * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
5641         Do not mark TARGET_MEM_REF bases addressable.
5642         * tree-ssa.c (non_rewritable_mem_ref_base): Handle
5643         TARGET_MEM_REF bases as never rewritable.
5644         * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
5645         walk TARGET_MEM_REF bases as address-takens.
5646         * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
5647
5648 2021-05-19  Richard Biener  <rguenther@suse.de>
5649
5650         * builtins.c (get_object_alignment_1): Strip outer
5651         WITH_SIZE_EXPR.
5652         * tree-dfa.c (get_ref_base_and_extent): Handle outer
5653         WITH_SIZE_EXPR for size processing and process the
5654         containing ref.
5655         * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
5656         outer WITH_SIZE_EXPR.
5657         (ao_ref_base_alias_ptr_type): Likewise.
5658         (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
5659         and handle that accordingly, stripping it for the
5660         core alias workers.
5661         * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
5662         looking through it instead of returning NULL.
5663
5664 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
5665
5666         PR middle-end/100576
5667         * builtins.c (check_read_access): Convert bound to size_type_node if
5668         non-NULL.
5669
5670 2021-05-19  Richard Biener  <rguenther@suse.de>
5671
5672         * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
5673         (verify_types_in_gimple_reference): ... here.  Sanitize.
5674         (verify_gimple_call): Verify references in LHS and arguments.
5675         (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
5676
5677 2021-05-19  Uroš Bizjak  <ubizjak@gmail.com>
5678
5679         * config/i386/i386.h (VALID_INT_MODE_P):
5680         Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
5681         * config/i386/i386.md (isa): Add x64_bmi.
5682         (enabled): Handle x64_bmi.
5683         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
5684         Add alternative using 64bit general registers.
5685         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
5686
5687 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
5688
5689         PR middle-end/99928
5690         * tree.h (OMP_MASTER_COMBINED): Define.
5691         * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
5692         handling for outer combined/composite constructs to a loop.
5693         Handle lastprivate on combined target.
5694         (gimplify_expr): Formatting fix.
5695
5696 2021-05-19  Xionghu Luo  <luoxhu@linux.ibm.com>
5697
5698         * passes.def: Add sink_code pass before store_merging.
5699         * tree-ssa-sink.c (pass_sink_code:clone): New.
5700
5701 2021-05-18  Bill Schmidt  <wschmidt@linux.ibm.com>
5702
5703         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
5704         rs6000_special_adjust_field_align_p.
5705         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
5706         * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
5707         Remove ABI warning.
5708         (rs6000_function_arg): Likewise.
5709         * config/rs6000/rs6000-protos.h
5710         (rs6000_special_adjust_field_align_p): Remove prototype.
5711         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
5712         Remove.
5713         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
5714         rs6000_special_adjust_field_align_p.
5715
5716 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
5717
5718         PR target/100637
5719         * config/i386/i386.h (VALID_SSE2_REG_MODE):
5720         Add V4QI and V2HI modes.
5721         (VALID_INT_MODE_P): Ditto.
5722         * config/i386/mmx.md (VI_32): New mode iterator.
5723         (mmxvecsize): Handle V4QI and V2HI.
5724         (Yv_Yw): Ditto.
5725         (mov<VI_32:mode>): New expander.
5726         (*mov<mode>_internal): New insn pattern.
5727         (movmisalign<VI_32:mode>): New expander.
5728         (neg<VI_32:mode>): New expander.
5729         (<plusminus:insn><VI_32:mode>3): New expander.
5730         (*<plusminus:insn><VI_32:mode>3): New insn pattern.
5731         (mulv2hi3): New expander.
5732         (*mulv2hi3): New insn pattern.
5733         (one_cmpl<VI_32:mode>2): New expander.
5734         (*andnot<VI_32:mode>3): New insn pattern.
5735         (<any_logic:code><VI_32:mode>3): New expander.
5736         (*<any_logic:code><VI_32:mode>3): New insn pattern.
5737
5738 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
5739
5740         * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
5741         Fix a mode mismatch with operand 1.
5742
5743 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
5744
5745         PR target/100626
5746         * config/i386/i386-expand.c (split_double_mode): Return
5747         temporary register when simplify_gen_subreg fails with
5748         the high half od the paradoxical subreg.
5749
5750 2021-05-18  Richard Biener  <rguenther@suse.de>
5751
5752         * cfgexpand.c (expand_one_var): Pass in forced_stack_var
5753         and honor it when expanding.
5754         (expand_used_vars_for_block): Pass through forced_stack_var.
5755         (expand_used_vars): Likewise.
5756         (discover_nonconstant_array_refs_r): Set bits in
5757         forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
5758         (avoid_type_punning_on_regs): Likewise.
5759         (discover_nonconstant_array_refs): Likewise.
5760         (pass_expand::execute): Create and pass down forced_stack_var
5761         bitmap.  For parameters and returns temporarily set
5762         TREE_ADDRESSABLE when expand_function_start.
5763
5764 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5765
5766         * doc/sourcebuild.texi: Document 'dg-note'.
5767
5768 2021-05-18  Tobias Burnus  <tobias@codesourcery.com>
5769
5770         PR other/100598
5771         * configure: Regenerate.
5772         * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
5773
5774 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5775
5776         * gimple.h (is_gimple_omp_oacc): Tighten.
5777         * omp-low.c (check_omp_nesting_restrictions): Adjust.
5778
5779 2021-05-18  Richard Biener  <rguenther@suse.de>
5780
5781         * tree-ssa-operands.c (mark_address_taken): Simplify.
5782
5783 2021-05-18  Martin Liska  <mliska@suse.cz>
5784
5785         * config/gcn/mkoffload.c (STR): Redefine.
5786         * config/i386/intelmic-mkoffload.c (STR): Likewise.
5787         * config/nvptx/mkoffload.c (STR): Likewise.
5788
5789 2021-05-18  Martin Liska  <mliska@suse.cz>
5790
5791         * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
5792         Use startswith function instead of strncmp.
5793         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
5794         * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
5795         * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
5796         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
5797         * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
5798         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
5799         * config/arm/arm.c (arm_file_start): Likewise.
5800         (arm_valid_target_attribute_rec): Likewise.
5801         (thumb1_md_asm_adjust): Likewise.
5802         * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
5803         * config/avr/avr.c (STR_PREFIX_P): Likewise.
5804         (avr_set_current_function): Likewise.
5805         (avr_handle_addr_attribute): Likewise.
5806         (avr_asm_output_aligned_decl_common): Likewise.
5807         (avr_asm_named_section): Likewise.
5808         (avr_section_type_flags): Likewise.
5809         (avr_asm_select_section): Likewise.
5810         * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
5811         (c6x_section_type_flags): Likewise.
5812         * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
5813         (darwin_objc_declare_unresolved_class_reference): Likewise.
5814         (darwin_objc_declare_class_definition): Likewise.
5815         * config/darwin.c (indirect_data): Likewise.
5816         (darwin_encode_section_info): Likewise.
5817         (darwin_objc2_section): Likewise.
5818         (darwin_objc1_section): Likewise.
5819         (machopic_select_section): Likewise.
5820         (darwin_globalize_label): Likewise.
5821         (darwin_label_is_anonymous_local_objc_name): Likewise.
5822         (darwin_asm_named_section): Likewise.
5823         (darwin_asm_output_dwarf_offset): Likewise.
5824         * config/frv/frv.c (frv_string_begins_with): Likewise.
5825         (frv_in_small_data_p): Likewise.
5826         * config/gcn/mkoffload.c (STR): Likewise.
5827         (main): Likewise.
5828         * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
5829         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
5830         * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
5831         (ix86_md_asm_adjust): Likewise.
5832         * config/i386/intelmic-mkoffload.c (STR): Likewise.
5833         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
5834         (i386_pe_file_end): Likewise.
5835         * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
5836         (ia64_section_type_flags): Likewise.
5837         * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
5838         * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
5839         (mips16_stub_function_p): Likewise.
5840         (mips_function_rodata_section): Likewise.
5841         * config/msp430/msp430.c (msp430_mcu_name): Likewise.
5842         (msp430_function_section): Likewise.
5843         (msp430_section_type_flags): Likewise.
5844         (msp430_expand_helper): Likewise.
5845         * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
5846         (nios2_valid_target_attribute_rec): Likewise.
5847         * config/nvptx/mkoffload.c (process): Likewise.
5848         (STR): Likewise.
5849         * config/pa/som.h: Likewise.
5850         * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
5851         * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
5852         * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
5853         (rs6000_inner_target_options): Likewise.
5854         * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
5855         * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
5856         * config/vax/vax.c (vax_output_int_move): Likewise.
5857         * config/vms/vms-ld.c (startswith): Likewise.
5858         (process_args): Likewise.
5859         (main): Likewise.
5860         * config/vms/vms.c: Likewise.
5861
5862 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
5863
5864         PR rtl-optimization/100590
5865         * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
5866         they are NONJUMP_INSN_P.
5867
5868 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
5869
5870         PR c++/100580
5871         * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
5872         DECL_ASSEMBLER_NAME on the fn_decl.
5873
5874 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
5875
5876         PR tree-optimization/94589
5877         * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
5878         phi result used in (res & ~1) == 0 comparison as res >= 0 as
5879         res == 2 would be UB with -ffinite-math-only.
5880
5881 2021-05-18  Martin Liska  <mliska@suse.cz>
5882
5883         * Makefile.in: genversion.o should depend on DATESTAMP.
5884
5885 2021-05-18  Claudiu Zissulescu  <claziss@synopsys.com>
5886
5887         * config/arc/simdext.md (negv2si2): Remove round bracket.
5888
5889 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
5890
5891         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
5892         _Bool as macro expanding to _Bool.
5893
5894 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
5895
5896         PR c++/100281
5897         * tree.c (build_reference_type_for_mode)
5898         (build_pointer_type_for_mode): Pick pointer mode if MODE argument
5899         is VOIDmode.
5900         (build_reference_type, build_pointer_type): Invoke
5901         build_*_type_for_mode with VOIDmode.
5902
5903 2021-05-17  Andrew MacLeod  <amacleod@redhat.com>
5904
5905         PR tree-optimization/100512
5906         * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
5907         and non-zero pointer ranges as invariant.
5908         * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
5909         processing from here.
5910
5911 2021-05-17  Tom de Vries  <tdevries@suse.de>
5912
5913         PR target/100497
5914         * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
5915         * config/nvptx/nvptx.c (nvptx_output_barrier)
5916         (nvptx_output_atomic_insn): New function.
5917         (nvptx_print_operand): Add support for 'B'.
5918         * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
5919         insns.
5920
5921 2021-05-17  Aldy Hernandez  <aldyh@redhat.com>
5922
5923         PR tree-optimization/100349
5924         * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
5925           NULL.
5926
5927 2021-05-17  Tamar Christina  <tamar.christina@arm.com>
5928
5929         * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
5930         (host_detect_local_cpu): Use it.
5931
5932 2021-05-17  Martin Liska  <mliska@suse.cz>
5933
5934         * doc/invoke.texi: Add 2 missing dots.
5935
5936 2021-05-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
5937
5938         PR bootstrap/100552
5939         * configure.ac: Replace pattern substitution with call to sed.
5940         * configure: Regenerate.
5941
5942 2021-05-17  Richard Biener  <rguenther@suse.de>
5943
5944         PR middle-end/100582
5945         * tree.c (array_at_struct_end_p): Get to the base of the
5946         reference before looking for the underlying decl.
5947
5948 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
5949
5950         * genoutput.c (validate_insn_alternatives) Make "wrong number of
5951         alternatives" message more specific, and remove assumption on where
5952         the problem is.
5953
5954 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
5955
5956         * config/arm/iterators.md (V16): New iterator.
5957         (VH_cvtto): New iterator.
5958         (v_cmp_result): Added V4HF and V8HF support.
5959         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
5960         (vcond<mode><mode>): Likewise.
5961         (vcond_mask_<mode><v_cmp_result>): Likewise.
5962         (vcond<VH_cvtto><mode>): New expander.
5963
5964 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
5965
5966         * config/arm/arm-protos.h (arm_expand_vector_compare): Update
5967         prototype.
5968         * config/arm/arm.c (arm_expand_vector_compare): Add support for
5969         MVE.
5970         (arm_expand_vcond): Likewise.
5971         * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
5972         VCMPEQQ_N_S, VCMPNEQ_N_S.
5973         (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
5974         * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
5975         (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
5976         (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
5977         (@mve_vpselq_<supf><mode>): Likewise.
5978         (@mve_vpselq_f<mode>"): Likewise.
5979         * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
5980         and move to vec-common.md.
5981         (vec_cmpu<mode><mode>): Likewise.
5982         (vcond<mode><mode>): Likewise.
5983         (vcond<V_cvtto><mode>): Likewise.
5984         (vcondu<mode><v_cmp_result>): Likewise.
5985         (vcond_mask_<mode><v_cmp_result>): Likewise.
5986         * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
5987         (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
5988         (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
5989         (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
5990         (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
5991         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
5992         from neon.md.
5993         (vec_cmpu<mode><mode>): Likewise.
5994         (vcond<mode><mode>): Likewise.
5995         (vcond<V_cvtto><mode>): Likewise.
5996         (vcondu<mode><v_cmp_result>): Likewise.
5997         (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
5998         condition.
5999
6000 2021-05-17  liuhongt  <hongtao.liu@intel.com>
6001
6002         PR target/100549
6003         * config/i386/i386.c (ix86_gimple_fold_builtin): Use
6004         gsi_insert_seq_before instead.
6005
6006 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
6007
6008         * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
6009         (arm_sat_ok): ...this.
6010
6011 2021-05-17  Martin Liska  <mliska@suse.cz>
6012
6013         * lto-wrapper.c (merge_flto_options): Factor out a new function.
6014         (merge_and_complain): Use it.
6015         (run_gcc): Merge also linker command line -flto=foo argument
6016         with IL files.
6017
6018 2021-05-16  Christophe Lyon  <christophe.lyon@linaro.org>
6019
6020         * config/arm/arm.h (CPP_SPEC): Remove error message about
6021         -mlittle-endian/-mbig-endian conflict.
6022
6023 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
6024
6025         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6026         __ROP_PROTECT__ if -mrop-protect is selected.
6027
6028 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
6029
6030         * config/rs6000/rs6000-internal.h (rs6000_stack): Add
6031         rop_hash_save_offset and rop_hash_size.
6032         * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
6033         rop_hash_size and rop_hash_save_offset.
6034         (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
6035         (rs6000_emit_prologue): Emit hashst[p] in prologue.
6036         (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
6037         * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
6038         UNSPEC_HASHCHK.
6039         (hashst): New define_insn.
6040         (hashchk): Likewise.
6041
6042 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
6043
6044         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6045         Disable shrink wrap when inserting ROP-protect instructions.
6046         * config/rs6000/rs6000.opt (mrop-protect): New option.
6047         (mprivileged): Likewise.
6048         * doc/invoke.texi: Document mrop-protect and mprivileged.
6049
6050 2021-05-15  Hans-Peter Nilsson  <hp@axis.com>
6051
6052         * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
6053         "Remove CC0".
6054
6055 2021-05-15  Martin Jambor  <mjambor@suse.cz>
6056
6057         Revert:
6058         2021-05-13  Martin Jambor  <mjambor@suse.cz>
6059
6060         PR tree-optimization/100453
6061         * tree-sra.c (sra_modify_assign): All const base accesses do not
6062         need refreshing, not just those from decl_pool.
6063         (sra_modify_assign): Do not refresh into a const base decl.
6064
6065 2021-05-15  Jakub Jelinek  <jakub@redhat.com>
6066
6067         PR rtl-optimization/100342
6068         * regcprop.c (copy_value): When copying a source reg in a wider
6069         mode than it has recorded for the value, adjust recorded destination
6070         mode too or punt if !REG_CAN_CHANGE_MODE_P.
6071
6072 2021-05-14  Jason Merrill  <jason@redhat.com>
6073
6074         * intl.h: Add comments.
6075
6076 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6077
6078         * config/aarch64/aarch64-simd.md
6079         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
6080         (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
6081         (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
6082         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
6083         (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
6084         (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
6085         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
6086         (aarch64_sqdmlsl2_n<mode>_internal): ... This...
6087         (aarch64_sqdmlal2_n<mode>_internal): ... And this.
6088
6089 2021-05-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6090
6091         PR target/66791
6092         * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
6093         boolean logic equivalent.
6094         (vtst_s16): Likewise.
6095         (vtst_s32): Likewise.
6096         (vtst_u8): Likewise.
6097         (vtst_u16): Likewise.
6098         (vtst_u32): Likewise.
6099         (vtst_p8): Likewise.
6100         (vtst_p16): Likewise.
6101         (vtstq_s8): Likewise.
6102         (vtstq_s16): Likewise.
6103         (vtstq_s32): Likewise.
6104         (vtstq_u8): Likewise.
6105         (vtstq_u16): Likewise.
6106         (vtstq_u32): Likewise.
6107         (vtstq_p8): Likewise.
6108         (vtstq_p16): Likewise.
6109         * config/arm/arm_neon_builtins.def: Remove entry for vtst.
6110         * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
6111
6112 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6113
6114         * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
6115         (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
6116         (aarch64_sqdmlsl2<mode>): Delete.
6117         (aarch64_sqdmlal2_lane<mode>): Merge this...
6118         (aarch64_sqdmlsl2_lane<mode>): ... And this...
6119         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
6120         (aarch64_sqdmlal2_laneq<mode>): Merge this...
6121         (aarch64_sqdmlsl2_laneq<mode>): ... And this...
6122         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
6123         (aarch64_sqdmlal2_n<mode>): Merge this...
6124         (aarch64_sqdmlsl2_n<mode>): ... And this...
6125         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
6126
6127 2021-05-13  Martin Sebor  <msebor@redhat.com>
6128
6129         PR middle-end/100574
6130         * builtins.c (access_ref::get_ref): Improve detection of PHIs with
6131         all null arguments.
6132
6133 2021-05-13  Martin Sebor  <msebor@redhat.com>
6134
6135         PR tree-optimization/93100
6136         PR middle-end/98583
6137         * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
6138         don't modify referenced objects.
6139
6140 2021-05-13  Martin Jambor  <mjambor@suse.cz>
6141
6142         PR tree-optimization/100453
6143         * tree-sra.c (sra_modify_assign): All const base accesses do not
6144         need refreshing, not just those from decl_pool.
6145         (sra_modify_assign): Do not refresh into a const base decl.
6146
6147 2021-05-13  Martin Liska  <mliska@suse.cz>
6148
6149         * tree-ssa-dom.c: Remove m_simplifier.
6150
6151 2021-05-13  Richard Earnshaw  <rearnsha@arm.com>
6152
6153         PR target/100563
6154         * config/arm/arm.c (arm_canonicalize_comparison): Correctly
6155         canonicalize DImode inequality comparisons against the
6156         maximum integral value.
6157
6158 2021-05-13  Jakub Jelinek  <jakub@redhat.com>
6159
6160         PR tree-optimization/98856
6161         * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
6162         Expect V2DI and V4DI arithmetic right shifts to be emulated.
6163         (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
6164         caller.
6165         * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
6166         expand_vec_perm_2perm_pblendv): New functions.
6167         (ix86_expand_vec_perm_const_1): Use them.
6168         * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
6169         (<mask_codefor>ashr<mode>3<mask_name>): ... this.
6170         (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
6171         (ashrv4di3): New define_expand.
6172         (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
6173         and !TARGET_AVX512VL expansion.
6174
6175 2021-05-13  Uroš Bizjak  <ubizjak@gmail.com>
6176
6177         PR target/100581
6178         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
6179         sizes < 16 to a register when constructing vpcmov pattern.
6180         * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
6181
6182 2021-05-13  Martin Liska  <mliska@suse.cz>
6183
6184         * gcov-io.c (gcov_write_block): Remove.
6185         (gcov_write_words): Likewise.
6186         (gcov_read_words): Re-implement using gcov_read_bytes.
6187         (gcov_allocate): Remove.
6188         (GCOV_BLOCK_SIZE): Likewise.
6189         (struct gcov_var): Remove most of the fields.
6190         (gcov_position): Implement with ftell.
6191         (gcov_rewrite): Remove setting of start and offset fields.
6192         (from_file): Re-format.
6193         (gcov_open): Remove setbuf call. It should not be needed.
6194         (gcov_close): Remove internal buffer handling.
6195         (gcov_magic): Use __builtin_bswap32.
6196         (gcov_write_counter): Use directly gcov_write_unsigned.
6197         (gcov_write_string): Use direct fwrite and do not round
6198         to 4 bytes.
6199         (gcov_seek): Use directly fseek.
6200         (gcov_write_tag): Use gcov_write_unsigned directly.
6201         (gcov_write_length): Likewise.
6202         (gcov_write_tag_length): Likewise.
6203         (gcov_read_bytes): Use directly fread.
6204         (gcov_read_unsigned): Use gcov_read_words.
6205         (gcov_read_counter): Likewise.
6206         (gcov_read_string): Use gcov_read_bytes.
6207         * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
6208         that size is not in bytes, but words (4B).
6209         (GCOV_TAG_FUNCTION_LENGTH): Likewise.
6210         (GCOV_TAG_ARCS_LENGTH): Likewise.
6211         (GCOV_TAG_ARCS_NUM): Likewise.
6212         (GCOV_TAG_COUNTER_LENGTH): Likewise.
6213         (GCOV_TAG_COUNTER_NUM): Likewise.
6214         (GCOV_TAG_SUMMARY_LENGTH): Likewise.
6215
6216 2021-05-13  liuhongt  <hongtao.liu@intel.com>
6217
6218         PR target/94680
6219         * config/i386/sse.md (ssedoublevecmode): Add attribute for
6220         V64QI/V32HI/V16SI/V4DI.
6221         (ssehalfvecmode): Add attribute for V2DI/V2DF.
6222         (*vec_concatv4si_0): Extend to VI124_128.
6223         (*vec_concat<mode>_0): New pre-reload splitter.
6224         * config/i386/predicates.md (movq_parallel): New predicate.
6225
6226 2021-05-13  Alexandre Oliva  <oliva@adacore.com>
6227
6228         * targhooks.c (default_zero_call_used_regs): Retry using
6229         successfully-zeroed registers as sources.
6230
6231 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
6232
6233         * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
6234
6235 2021-05-12  Aldy Hernandez  <aldyh@redhat.com>
6236
6237         PR c/100521
6238         * gimple-range.cc (range_of_builtin_call): Skip out on
6239           processing __builtin_clz when varying.
6240
6241 2021-05-12  Tom de Vries  <tdevries@suse.de>
6242
6243         PR target/96005
6244         * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
6245         * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
6246         to ptx_version_option.
6247         * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
6248         * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
6249         (define_insn "nvptx_vote_ballot"): Use sync variant for
6250         TARGET_PTX_6_3.
6251         * config/nvptx/nvptx.opt (ptx_version): Add enum.
6252         (mptx): Add option.
6253         * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
6254
6255 2021-05-12  Richard Biener  <rguenther@suse.de>
6256
6257         PR tree-optimization/100566
6258         * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
6259         allow_back for all edge queries.
6260
6261 2021-05-12  liuhongt  <hongtao.liu@intel.com>
6262
6263         PR target/99908
6264         * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
6265         splitters for pblendvb of NOT mask register.
6266
6267 2021-05-12  Richard Biener  <rguenther@suse.de>
6268
6269         PR tree-optimization/100519
6270         * tree-ssa-reassoc.c (can_associate_p): Split into...
6271         (can_associate_op_p): ... this
6272         (can_associate_type_p): ... and this.
6273         (is_reassociable_op): Call can_associate_op_p.
6274         (break_up_subtract_bb): Call the appropriate predicates.
6275         (reassociate_bb): Likewise.
6276
6277 2021-05-12  Martin Liska  <mliska@suse.cz>
6278
6279         * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
6280         (run_gcc): Use -flto argument detection for merged
6281         fdecoded_options.
6282
6283 2021-05-12  Martin Liska  <mliska@suse.cz>
6284
6285         * lto-wrapper.c (print_lto_docs_link): New function.
6286         (run_gcc): Print warning about missing job server detection
6287         after we know NR of partitions. Do the same for -flto{,=1}.
6288         * opts.c (get_option_html_page): Support -flto option.
6289
6290 2021-05-12  Martin Liska  <mliska@suse.cz>
6291
6292         * lto-wrapper.c (get_options_from_collect_gcc_options): Change
6293         return type.
6294         (append_option): Remove.
6295         (find_option): Rework to use the vector type.
6296         (remove_option): Remove.
6297         (merge_and_complain): Use vectors for cl_decoded_option data
6298         type arguments.
6299         (append_compiler_options): Likewise.
6300         (append_diag_options): Likewise.
6301         (append_linker_options): Likewise.
6302         (append_offload_options): Likewise.
6303         (compile_offload_image): Likewise.
6304         (compile_images_for_offload_targets): Likewise.
6305         (find_and_merge_options): Likewise.
6306         (run_gcc): Likewise.
6307
6308 2021-05-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6309
6310         PR debug/100515
6311         * dwarf2out.c (dwarf2out_finish): Set
6312         have_multiple_function_sections with multi-range text_section.
6313
6314 2021-05-12  Martin Liska  <mliska@suse.cz>
6315
6316         PR bootstrap/100560
6317         * Makefile.in: Remove version.h from linker command line.
6318
6319 2021-05-12  Richard Biener  <rguenther@suse.de>
6320
6321         PR middle-end/100547
6322         * rtl.h (rtvec_alloc): Make argument size_t.
6323         * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
6324
6325 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
6326
6327         PR middle-end/100508
6328         * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
6329         type, don't reuse DECL_RTL if it has different mode, instead force
6330         creation of a new DEBUG_EXPR.
6331
6332 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
6333             Marc Glisse  <marc.glisse@inria.fr>
6334
6335         PR tree-optimization/94589
6336         * match.pd ((X & Y) == X -> (X & ~Y) == 0,
6337         (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
6338
6339 2021-05-12  Uroš Bizjak  <ubizjak@gmail.com>
6340
6341         PR target/98218
6342         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
6343         * config/i386/mmx.md (MMXMODE124): New mode iterator.
6344         (V2FI): Ditto.
6345         (mmxintvecmode): New mode attribute.
6346         (mmxintvecmodelower): Ditto.
6347         (*mmx_maskcmpv2sf3_comm): New insn pattern.
6348         (*mmx_maskcmpv2sf3): Ditto.
6349         (vec_cmpv2sfv2si): New expander.
6350         (vcond<V2FI:mode>v2si): Ditto.
6351         (mmx_vlendvps): New insn pattern.
6352         (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
6353         (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
6354         (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
6355
6356 2021-05-11  Martin Sebor  <msebor@redhat.com>
6357
6358         PR middle-end/21433
6359         * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
6360
6361 2021-05-11  Richard Biener  <rguenther@suse.de>
6362
6363         * gimple-fold.c (gimple_fold_call): Do not call
6364         maybe_fold_reference on call arguments or the static chain.
6365         (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
6366         inputs.
6367
6368 2021-05-11  Martin Liska  <mliska@suse.cz>
6369
6370         * builtins.def (DEF_HSAIL_BUILTIN): Remove.
6371         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
6372         (DEF_HSAIL_SAT_BUILTIN): Likewise.
6373         (DEF_HSAIL_INTR_BUILTIN): Likewise.
6374         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
6375         * doc/frontends.texi: Remove BRIG.
6376         * doc/install.texi: Likewise.
6377         * doc/invoke.texi: Likewise.
6378         * doc/standards.texi: Likewise.
6379         * brig-builtins.def: Removed.
6380         * brig/ChangeLog: Removed.
6381         * brig/Make-lang.in: Removed.
6382         * brig/brig-builtins.h: Removed.
6383         * brig/brig-c.h: Removed.
6384         * brig/brig-lang.c: Removed.
6385         * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
6386         * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
6387         * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
6388         * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
6389         * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
6390         * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
6391         * brig/brigfrontend/brig-code-entry-handler.h: Removed.
6392         * brig/brigfrontend/brig-comment-handler.cc: Removed.
6393         * brig/brigfrontend/brig-control-handler.cc: Removed.
6394         * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
6395         * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
6396         * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
6397         * brig/brigfrontend/brig-function-handler.cc: Removed.
6398         * brig/brigfrontend/brig-function.cc: Removed.
6399         * brig/brigfrontend/brig-function.h: Removed.
6400         * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
6401         * brig/brigfrontend/brig-label-handler.cc: Removed.
6402         * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
6403         * brig/brigfrontend/brig-machine.c: Removed.
6404         * brig/brigfrontend/brig-machine.h: Removed.
6405         * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
6406         * brig/brigfrontend/brig-module-handler.cc: Removed.
6407         * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
6408         * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
6409         * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
6410         * brig/brigfrontend/brig-to-generic.cc: Removed.
6411         * brig/brigfrontend/brig-to-generic.h: Removed.
6412         * brig/brigfrontend/brig-util.cc: Removed.
6413         * brig/brigfrontend/brig-util.h: Removed.
6414         * brig/brigfrontend/brig-variable-handler.cc: Removed.
6415         * brig/brigfrontend/hsa-brig-format.h: Removed.
6416         * brig/brigfrontend/phsa.h: Removed.
6417         * brig/brigspec.c: Removed.
6418         * brig/config-lang.in: Removed.
6419         * brig/gccbrig.texi: Removed.
6420         * brig/lang-specs.h: Removed.
6421         * brig/lang.opt: Removed.
6422
6423 2021-05-11  Richard Biener  <rguenther@suse.de>
6424
6425         PR ipa/100513
6426         * ipa-param-manipulation.c
6427         (ipa_param_body_adjustments::modify_call_stmt): Avoid
6428         altering SSA_NAME_DEF_STMT by adjusting the calls LHS
6429         via gimple_call_lhs_ptr.
6430
6431 2021-05-11  Alex Coplan  <alex.coplan@arm.com>
6432
6433         PR target/99725
6434         * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
6435         Avoid emitting CFA adjusts on the sp if we have the fp.
6436
6437 2021-05-11  Richard Sandiford  <richard.sandiford@arm.com>
6438
6439         * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
6440         (VMULD): New iterator.
6441         (VCOND): Handle V4HF and V8HF.
6442         (VCONQ): Fix entry for V2SF.
6443         * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
6444         instead of VMUL.  Use a 64-bit vector mode for the indexed operand.
6445         (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
6446         (mul_laneq<mode>3): ...this define_insn.  Use VMUL instead of VDQSF.
6447         Use a 128-bit vector mode for the indexed operand.  Use stype for
6448         the scheduling type.
6449
6450 2021-05-11  Richard Biener  <rguenther@suse.de>
6451
6452         * gimple-fold.c (maybe_fold_reference): Only return
6453         is_gimple_min_invariant values.
6454
6455 2021-05-11  Richard Biener  <rguenther@suse.de>
6456
6457         PR middle-end/100509
6458         * gimple-fold.c (fold_gimple_assign): Only call
6459         get_symbol_constant_value on register type symbols.
6460
6461 2021-05-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
6462             Joe Ramsay   <joe.ramsay@arm.com>
6463
6464         PR target/100419
6465         * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
6466         (__arm_vcmpneq): Remove duplicate definition.
6467         (__arm_vstrwq_scatter_offset_p): Likewise.
6468         (__arm_vmaxq_x): Likewise.
6469         (__arm_vmlsdavaq): Likewise.
6470         (__arm_vmlsdavaxq): Likewise.
6471         (__arm_vmlsdavq_p): Likewise.
6472         (__arm_vmlsdavxq_p): Likewise.
6473         (__arm_vrmlaldavhaq): Likewise.
6474         (__arm_vstrbq_p): Likewise.
6475         (__arm_vstrbq_scatter_offset): Likewise.
6476         (__arm_vstrbq_scatter_offset_p): Likewise.
6477         (__arm_vstrdq_scatter_offset): Likewise.
6478         (__arm_vstrdq_scatter_offset_p): Likewise.
6479         (__arm_vstrdq_scatter_shifted_offset): Likewise.
6480         (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
6481
6482 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
6483
6484         PR middle-end/100471
6485         * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
6486         is 0, bypass the reduction loop including
6487         GOMP_taskgroup_reduction_unregister call.
6488
6489 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
6490
6491         * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
6492         costing_for_scalar.
6493         (rs6000_density_test): Early return if costing_for_scalar is true.
6494         (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
6495
6496 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
6497
6498         * doc/tm.texi: Regenerated.
6499         * target.def (init_cost): Add new parameter costing_for_scalar.
6500         * targhooks.c (default_init_cost): Adjust for new parameter.
6501         * targhooks.h (default_init_cost): Likewise.
6502         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
6503         (vect_compute_single_scalar_iteration_cost): Likewise.
6504         (vect_analyze_loop_2): Likewise.
6505         * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
6506         (vect_bb_vectorization_profitable_p): Likewise.
6507         * tree-vectorizer.h (init_cost): Likewise.
6508         * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
6509         * config/i386/i386.c (ix86_init_cost): Likewise.
6510         * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
6511
6512 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
6513
6514         * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
6515         vect_nonmem and moved into...
6516         (struct rs6000_cost_data): ...here.
6517         (rs6000_init_cost): Use vect_nonmem of cost_data instead.
6518         (rs6000_add_stmt_cost): Likewise.
6519         (rs6000_finish_cost): Likewise.
6520
6521 2021-05-10  Eric Botcazou  <ebotcazou@adacore.com>
6522
6523         * range-op.cc (get_bool_state): Adjust head comment.
6524         (operator_not_equal::op1_range): Fix comment.
6525         (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
6526
6527 2021-05-10  Martin Sebor  <msebor@redhat.com>
6528
6529         PR middle-end/100425
6530         PR middle-end/100510
6531         * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
6532         (pass_walloca::xlimit_certain_p): ...to this.
6533         (pass_walloca::gate): Execute for any kind of handled warning.
6534         (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
6535         warnings when xlimit_certain_p is set.
6536
6537 2021-05-10  Pat Haugen  <pthaugen@linux.ibm.com>
6538
6539         * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
6540         Return ALTIVEC_REGS if that is best_class.
6541         (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
6542
6543 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
6544
6545         * config/arm/arm.h (CPP_SPEC): Remove error message about
6546         -mfloat-abi.
6547
6548 2021-05-10  Martin Jambor  <mjambor@suse.cz>
6549
6550         * ipa-prop.h (IPA_NODE_REF): Removed.
6551         (IPA_NODE_REF_GET_CREATE): Likewise.
6552         (IPA_EDGE_REF): Likewise.
6553         (IPA_EDGE_REF_GET_CREATE): Likewise.
6554         (IS_VALID_JUMP_FUNC_INDEX): Likewise.
6555         * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
6556         use of ipa_node_params_sum.
6557         (ipcp_versionable_function_p): Likewise.
6558         (push_node_to_stack): Likewise.
6559         (pop_node_from_stack): Likewise.
6560         (set_single_call_flag): Replaced two IPA_NODE_REF with one single
6561         direct use of ipa_node_params_sum.
6562         (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
6563         ipa_node_params_sum.
6564         (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
6565         ipa_edge_args_sum.
6566         (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
6567         use of ipa_node_params_sum.
6568         (self_recursively_generated_p): Likewise.
6569         (propagate_scalar_across_jump_function): Likewise.
6570         (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
6571         direct use of ipa_edge_args_sum, moved the lookup after the early
6572         exit.  Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
6573         (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
6574         direct uses of ipa_node_params_sum.
6575         (propagate_vr_across_jump_function): Likewise.
6576         (propagate_aggregate_lattice): Likewise.
6577         (propagate_aggs_across_jump_function): Likewise.
6578         (propagate_constants_across_call): Likewise, also replaced
6579         IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
6580         (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
6581         of ipa_node_params_sum.
6582         (estimate_local_effects): Likewise.
6583         (add_all_node_vals_to_toposort): Likewise.
6584         (propagate_constants_topo): Likewise.
6585         (ipcp_propagate_stage): Likewise.
6586         (ipcp_discover_new_direct_edges): Likewise.
6587         (calls_same_node_or_its_all_contexts_clone_p): Likewise.
6588         (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
6589         (get_info_about_necessary_edges): Likewise.
6590         (want_remove_some_param_p): Likewise.
6591         (create_specialized_node): Likewise.
6592         (self_recursive_pass_through_p): Likewise.
6593         (self_recursive_agg_pass_through_p): Likewise.
6594         (find_more_scalar_values_for_callers_subset): Likewise and also
6595         replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
6596         case replacing two of those with a single query.
6597         (find_more_contexts_for_caller_subset): Likewise for the
6598         ipa_polymorphic_call_context overload.
6599         (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
6600         use of ipa_edge_args_sum.  Replaced IPA_NODE_REF with direct uses of
6601         ipa_node_params_sum.
6602         (find_aggregate_values_for_callers_subset): Likewise, also reusing
6603         results of ipa_edge_args_sum->get.
6604         (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
6605         direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
6606         direct use of ipa_edge_args_sum.
6607         (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
6608         summary query after the early exit and reused the result later.
6609         (decide_about_value): Replaced IPA_NODE_REF with a direct use of
6610         ipa_node_params_sum.
6611         (decide_whether_version_node): Likewise.  Removed re-querying for
6612         summaries after cloning.
6613         (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
6614         ipa_node_params_sum.
6615         (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
6616         some queries.
6617         (identify_dead_nodes): Likewise.
6618         (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
6619         ipa_node_params_sum.
6620         (ipcp_store_vr_results): Likewise.
6621         * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
6622         (ipa_fn_summary_t::duplicate): Likewise.
6623         (analyze_function_body): Likewise.
6624         (estimate_calls_size_and_time): Likewise.
6625         (ipa_cached_call_context::duplicate_from): Likewise.
6626         (ipa_call_context::equal_to): Likewise.
6627         (remap_edge_params): Likewise.
6628         (ipa_merge_fn_summary_after_inlining): Likewise.
6629         (inline_read_section): Likewise.
6630         * ipa-icf.c (sem_function::param_used_p): Likewise.
6631         * ipa-modref.c (compute_parm_map): Likewise.
6632         (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
6633         ipa_edge_args_sum.
6634         (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
6635         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
6636         ipa_edge_args_sum.
6637         * ipa-profile.c (check_argument_count): Likewise.
6638         * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
6639         with a direct use of ipa_node_params_sum.
6640         (ipa_initialize_node_params): Likewise.
6641         (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
6642         direct use of ipa_edge_args_sum and reused the query result.
6643         (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
6644         direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
6645         direct use of ipa_edge_args_sum.
6646         (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
6647         ipa_node_params_sum and reused the result of the query.
6648         (ipa_analyze_node): Likewise.
6649         (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
6650         of ipa_node_params_sum.
6651         (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
6652         direct uses of ipa_edge_args_sum.
6653         (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
6654         direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
6655         direct use of ipa_edge_args_sum.  Removed superficial re-querying the
6656         top edge summary.
6657         (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
6658         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
6659         ipa_edge_args_sum.
6660         (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
6661         direct use of ipa_edge_args_sum.
6662         (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
6663         use of ipa_node_params_sum.
6664         (ipa_print_node_params): Likewise.
6665         (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
6666         direct uses of ipa_edge_args_sum.
6667         (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
6668         ipa_edge_args_sum.
6669         (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
6670         ipa_node_params_sum.
6671         (ipa_prop_write_jump_functions): Likewise.  Move variable node to the
6672         scopes where it is used.
6673
6674 2021-05-10  Uroš Bizjak  <ubizjak@gmail.com>
6675
6676         * config/i386/i386-expand.c (ix86_expand_sse_movcc)
6677         <case E_V2SImode>: Force op_true to register.
6678
6679 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
6680
6681         * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
6682         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
6683         (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
6684         patterns.
6685         (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
6686         (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
6687         (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
6688         (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
6689         (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
6690         (mve_vcmpneq_n_f<mode>): Remove.
6691         * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
6692         (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
6693         (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
6694
6695 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
6696
6697         * config/arm/iterators.md (MVE_COMPARISONS): New.
6698         (mve_cmp_op): New.
6699         (mve_cmp_type): New.
6700         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
6701         mve_vcmp patterns.
6702         (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
6703         (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
6704         (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
6705         (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
6706         (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
6707         (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
6708         (mve_vcmpneq_n_<mode>): Remove.
6709
6710 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
6711
6712         * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
6713         * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
6714         * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
6715         names.
6716
6717 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
6718
6719         * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
6720         (vcmpneq_n_u): Likewise.
6721         (vcmpeqq_u,): Likewise.
6722         (vcmpeqq_n_u): Likewise.
6723         * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
6724         VCMPEQQ_N_U and VCMPNEQ_N_U.
6725         * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
6726         (mve_vcmpeqq_n): Likewise.
6727         (mve_vcmpeqq): Likewise.
6728         (mve_vcmpneq_n): Likewise.
6729
6730 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
6731
6732         * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
6733         the 's' version of the builtin.
6734
6735 2021-05-10  Richard Biener  <rguenther@suse.de>
6736
6737         PR tree-optimization/100492
6738         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
6739         Find nothing when the loop contains an irreducible region.
6740
6741 2021-05-10  Richard Biener  <rguenther@suse.de>
6742
6743         PR middle-end/100464
6744         PR c++/100468
6745         * gimple-fold.c (canonicalize_constructor_val): Do not set
6746         TREE_ADDRESSABLE.
6747
6748 2021-05-10  Richard Biener  <rguenther@suse.de>
6749
6750         PR tree-optimization/100434
6751         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
6752         call LHS.
6753         (dse_optimize_stmt): Handle call LHS by dropping the
6754         LHS or the whole call if it doesn't have other
6755         side-effects.
6756         (pass_dse::execute): Adjust.
6757
6758 2021-05-10  Martin Liska  <mliska@suse.cz>
6759
6760         * Makefile.in: Add missing genversion rule.
6761
6762 2021-05-10  Alex Coplan  <alex.coplan@arm.com>
6763
6764         PR target/99960
6765         * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
6766         vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
6767
6768 2021-05-10  Martin Liska  <mliska@suse.cz>
6769
6770         * builtins.c (is_builtin_name): Use startswith
6771         function instead of strncmp.
6772         * collect2.c (main): Likewise.
6773         (has_lto_section): Likewise.
6774         (scan_libraries): Likewise.
6775         * coverage.c (coverage_checksum_string): Likewise.
6776         (coverage_init): Likewise.
6777         * dwarf2out.c (is_cxx): Likewise.
6778         (gen_compile_unit_die): Likewise.
6779         * gcc-ar.c (main): Likewise.
6780         * gcc.c (init_spec): Likewise.
6781         (read_specs): Likewise.
6782         (execute): Likewise.
6783         (check_live_switch): Likewise.
6784         * genattrtab.c (write_attr_case): Likewise.
6785         (IS_ATTR_GROUP): Likewise.
6786         * gencfn-macros.c (main): Likewise.
6787         * gengtype.c (type_for_name): Likewise.
6788         (gen_rtx_next): Likewise.
6789         (get_file_langdir): Likewise.
6790         (write_local): Likewise.
6791         * genmatch.c (get_operator): Likewise.
6792         (get_operand_type): Likewise.
6793         (expr::gen_transform): Likewise.
6794         * genoutput.c (validate_optab_operands): Likewise.
6795         * incpath.c (add_sysroot_to_chain): Likewise.
6796         * langhooks.c (lang_GNU_C): Likewise.
6797         (lang_GNU_CXX): Likewise.
6798         (lang_GNU_Fortran): Likewise.
6799         (lang_GNU_OBJC): Likewise.
6800         * lto-wrapper.c (run_gcc): Likewise.
6801         * omp-general.c (omp_max_simt_vf): Likewise.
6802         * omp-low.c (omp_runtime_api_call): Likewise.
6803         * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
6804         * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
6805         * real.c (real_from_string): Likewise.
6806         * selftest.c (assert_str_startswith): Likewise.
6807         * timevar.c (timer::validate_phases): Likewise.
6808         * tree.c (get_file_function_name): Likewise.
6809         * ubsan.c (ubsan_use_new_style_p): Likewise.
6810         * varasm.c (default_function_rodata_section): Likewise.
6811         (incorporeal_function_p): Likewise.
6812         (default_section_type_flags): Likewise.
6813         * system.h (startswith): Define startswith.
6814
6815 2021-05-10  Martin Liska  <mliska@suse.cz>
6816
6817         * bitmap.h (class auto_bitmap): Remove
6818         __cplusplus >= 201103.
6819         * config/aarch64/aarch64.c: Likewise.
6820         * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
6821         Likewise.
6822         * sbitmap.h: Likewise.
6823
6824 2021-05-10  Martin Liska  <mliska@suse.cz>
6825
6826         * Makefile.in: Rename gcov-iov to genversion and depend
6827         on version.h (instead of gcov-iov.h).
6828         * gcov-io.h: Include version.h instread of gcov-iov.h.
6829         * gengtype-state.c (read_state_version): Likewise.
6830         * gcov-iov.c: Moved to...
6831         * genversion.c: ...here.
6832         * lto-streamer.h (LTO_major_version): Define it with
6833         GCC_major_version.
6834         * version.c: Removed.
6835         * version.h: Removed.
6836
6837 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
6838
6839         * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
6840         * config/arc/simdext.md (VCT): Add predicates for iterator
6841         elements.
6842         (EMUVEC): Define.
6843         (voptab): Likewise.
6844         (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
6845         (<voptab>v2si3): New patterns.
6846         (neg): Likewise.
6847         (reduc_plus_scal_v4hi): Likewise.
6848         (reduc_plus_scal_v2si): Likewise.
6849         (vec_duplicatev2si): Likewise.
6850         (vec_duplicatev4hi): Likewise.
6851
6852 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
6853
6854         * config/arc/simdext.md: Format and cleanup file.
6855
6856 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
6857
6858         * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
6859         only when munaligned-access option is on.
6860         (movmisalign<mode>): Likewise.
6861
6862 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
6863
6864         * common/config/arc/arc-common.c (arc_handle_option): Remove dot
6865         from string.
6866         * config/arc/arc.c (arc_reorg): Remove underscore from string.
6867
6868 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
6869
6870         * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
6871         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
6872         * config/arc/arc.md (clrsbsi2): Cleanup pattern.
6873         (norm_f): Likewise.
6874         (ffs): Likewise.
6875         (ffs_f): Likewise.
6876         (clzsi2): Use fls instruction when available.
6877         (arc_clzsi2): Likewise.
6878
6879 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
6880
6881         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
6882
6883 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
6884
6885         * doc/extend.texi (__builtin_arc_sr): Swap arguments.
6886
6887 2021-05-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6888
6889         PR middle-end/100467
6890         * toplev.c (compile_file): Call insn_locations_init before
6891         targetm.asm_out.code_end.
6892
6893 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
6894
6895         Revert:
6896         2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
6897
6898         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
6899
6900 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
6901             Andrew Stubbs  <amd@codesourcery.com>
6902
6903         PR target/100418
6904         * builtins.c (try_store_by_multiple_pieces): Use force_operand for
6905         emit_move_insn operands.
6906
6907 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6908
6909         * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
6910         location for the outgoing edges of an empty block.
6911         * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
6912         type by means of the get_array_descr_info langhook, if it is set and
6913         returns true.  Remove obsolete code dealing with unnamed subtypes.
6914
6915 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
6916
6917         * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
6918         (sbr_vector): Renamed from ssa_block_cache.
6919         (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
6920         (ssa_block_ranges::~ssa_block_ranges): Remove.
6921         (sbr_vector::set_bb_range): Use varying and undefined cached values.
6922         (ssa_block_ranges::set_bb_varying): Remove.
6923         (sbr_vector::get_bb_range): Adjust assert.
6924         (sbr_vector::bb_range_p): Adjust assert.
6925         (~block_range_cache): No freeing loop required.
6926         (block_range_cache::get_block_ranges): Remove.
6927         (block_range_cache::set_bb_range): Inline get_block_ranges.
6928         (block_range_cache::set_bb_varying): Remove.
6929         * gimple-range-cache.h (set_bb_varying): Remove prototype.
6930         * value-range.h (irange_allocator::get_memory): New.
6931
6932 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
6933
6934         * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
6935         dominator tree is available and requested.
6936         (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
6937         (ranger_cache::fill_block_cache): Don't search dom tree here either.
6938         * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
6939
6940 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
6941
6942         * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
6943         only PHI nodes better.
6944
6945 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
6946
6947         * gimple-range-edge.h (gimple_outgoing_range): Rename from
6948         outgoing_range.
6949         (gcond_edge_range): Export prototype.
6950         * gimple-range-edge.cc (gcond_edge_range): New.
6951         (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
6952         * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
6953
6954 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
6955
6956         * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
6957         default range into a temp and allocate only what is needed.
6958
6959 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
6960
6961         * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
6962
6963 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
6964
6965         * gimple-range.h (gimple_range_global): Pick up parameter initial
6966         values, and use-before defined locals are UNDEFINED.
6967
6968 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6969
6970         * doc/extend.texi (scalar_storage_order): Mention effect on pointer
6971         and vector fields.
6972         * tree.h (reverse_storage_order_for_component_p): Return false if
6973         the type is a pointer.
6974
6975 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
6976
6977         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
6978
6979 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
6980
6981         PR target/98218
6982         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
6983         Handle V8QI, V4HI and V2SI modes.
6984         * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
6985         * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
6986         * config/i386/i386.md (unspec): ... here.
6987
6988 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
6989             Tom de Vries  <tdevries@suse.de>
6990
6991         * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
6992         a truth_value_p reduction variable is nonintegral.
6993
6994 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
6995
6996         PR target/100445
6997         * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
6998         Return false for mode sizes < 16.
6999
7000 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
7001
7002         PR target/100445
7003         * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
7004
7005 2021-05-06  Martin Jambor  <mjambor@suse.cz>
7006
7007         * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
7008         when there is no function summary.
7009         (ipa_sra_summarize_function): produce edge summaries even when
7010         bailing out early.
7011
7012 2021-05-06  Tom Tromey  <tom@tromey.com>
7013
7014         * godump.c (string_hash_eq): Remove.
7015         (go_finish): Use htab_eq_string.
7016
7017 2021-05-06  Tom Tromey  <tom@tromey.com>
7018
7019         * gengtype-state.c (read_state): Use htab_eq_string.
7020         (string_eq): Remove.
7021
7022 2021-05-06  Tom Tromey  <tom@tromey.com>
7023
7024         * gensupport.c (htab_eq_string): Remove.
7025
7026 2021-05-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7027
7028         PR ipa/97937
7029         * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
7030         * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
7031         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
7032         set_ignored_loc callbacks.
7033         * debug.c (do_nothing_debug_hooks): Likewise.
7034         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7035         * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
7036         (in_text_section_p, last_text_label, last_cold_label,
7037         switch_text_ranges, switch_cold_ranges): New data items.
7038         (dwarf2out_note_section_used): Remove.
7039         (dwarf2out_begin_prologue): Set fde->ignored_debug and
7040         in_text_section_p.
7041         (mark_ignored_debug_section): New helper function.
7042         (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
7043         mark_ignored_debug_section.
7044         (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
7045         (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
7046         (size_of_aranges): Adjust formula for multi-part text ranges size.
7047         (output_aranges): Output multi-part text ranges.
7048         (dwarf2out_set_ignored_loc): New callback function.
7049         (dwarf2out_finish): Output multi-part text ranges.
7050         (dwarf2out_c_finalize): Clear new data items.
7051         * final.c (final_start_function_1): Call set_ignored_loc callback.
7052         (final_scan_insn_1): Likewise.
7053         * ggc-page.c (gt_ggc_mx): New helper function.
7054         * stringpool.c (gt_pch_nx): Likewise.
7055
7056 2021-05-06  Richard Biener  <rguenther@suse.de>
7057
7058         * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
7059         (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
7060         (TV_TREE_INTO_SSA): New.
7061         * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
7062         (rewrite_blocks): Likewise.
7063         (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
7064
7065 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
7066
7067         * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
7068         abs_replacement, xor_replacement,
7069         cond_removal_in_popcount_clz_ctz_pattern,
7070         replace_phi_edge_with_variable): Change type of phi argument from
7071         gimple * to gphi *.
7072
7073 2021-05-06  Richard Biener  <rguenther@suse.de>
7074
7075         * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
7076         Output an opt-info message.
7077         (do_split_loop_on_cond): Likewise.
7078         (tree_ssa_split_loops): Update SSA form here.
7079
7080 2021-05-06  Richard Biener  <rguenther@suse.de>
7081
7082         * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
7083         return variable removal.
7084
7085 2021-05-06  Marius Hillenbrand  <mhillen@linux.ibm.com>
7086
7087         * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
7088         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
7089         (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
7090         operand.
7091         * config/s390/s390.c (s390_const_operand_ok): Remove unused
7092         values.
7093
7094 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
7095
7096         PR tree-optimization/94589
7097         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
7098         spaceship_replacement.
7099         (cond_only_block_p, spaceship_replacement): New functions.
7100
7101 2021-05-06  Richard Biener  <rguenther@suse.de>
7102
7103         PR ipa/100373
7104         * tree-emutls.c (gen_emutls_addr): Pass in whether we're
7105         dealing with a debug use and only query existing addresses
7106         if so.
7107         (lower_emutls_1): Avoid splitting out addresses for debug
7108         stmts, reset the debug stmt when we fail to find existing
7109         lowered addresses.
7110         (lower_emutls_phi_arg): Set wi.stmt.
7111
7112 2021-05-06  Christoph Muellner  <cmuellner@gcc.gnu.org>
7113
7114         PR target/100266
7115         * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
7116         * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
7117         (stack_protect_test): Use cbranch helper.
7118
7119 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
7120
7121         PR target/100402
7122         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
7123         always return the establisher frame for __builtin_frame_address (0).
7124
7125 2021-05-05  Ivan Sorokin  <vanyacpp@gmail.com>
7126
7127         PR target/91400
7128         * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
7129         (ix86_cpu_model_var): Likewise.
7130         (ix86_cpu_features2_type_node): Likewise.
7131         (ix86_cpu_features2_var): Likewise.
7132         (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
7133         their types.
7134
7135 2021-05-05  Martin Sebor  <msebor@redhat.com>
7136
7137         * passes.def (pass_warn_printf): Run after SSA.
7138
7139 2021-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7140
7141         * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
7142         * config/arm/predicates.md (minus_one_operand): New predicate.
7143
7144 2021-05-05  Jeff Law  <jlaw@tachyum.com>
7145
7146         * config/avr/avr.md: Remove references to CC_STATUS_INIT.
7147
7148 2021-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
7149
7150         PR rtl-optimization/100263
7151         * postreload.c (move2add_valid_value_p): Ensure register can
7152         change mode.
7153
7154 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
7155
7156         PR rtl-optimization/100411
7157         * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
7158         and beginning of function markers.
7159
7160 2021-05-05  Jeff Law  <jlaw@tachyum.com>
7161
7162         * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
7163         * config/cr16/cr16.c (notice_update_cc): Remove.
7164         * config/cr16/cr16-protos.h (notice_update_cc): Remove.
7165
7166 2021-05-05  Uroš Bizjak  <ubizjak@gmail.com>
7167
7168         PR target/98218
7169         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
7170         Handle V8QI, V4HI and V2SI modes.
7171         * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
7172         (ix86_build_signbit_mask): Ditto.
7173         * config/i386/mmx.md (MMXMODE14): New mode iterator.
7174         (<smaxmin:code><MMXMODE14:mode>3): New expander.
7175         (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
7176         (<umaxmin:code><MMXMODE24:mode>3): New expander.
7177         (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
7178         (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
7179         (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
7180         (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
7181         (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
7182         (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
7183
7184 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
7185
7186         * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
7187         not expand the VALUE_EXPR of variables put in the non-local frame.
7188         * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
7189         to be ignored for debug info, ensure its variable offsets are not.
7190
7191 2021-05-05  Richard Biener  <rguenther@suse.de>
7192
7193         PR tree-optimization/79333
7194         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7195         Fold stmt following SSA edges.
7196
7197 2021-05-05  Richard Biener  <rguenther@suse.de>
7198
7199         PR middle-end/100394
7200         * calls.c (expand_call): Preserve possibly throwing calls.
7201         * cfgexpand.c (expand_call_stmt): When a call can throw signal
7202         RTL expansion there are side-effects.
7203         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
7204         mark all possibly throwing stmts necessary unless we can elide
7205         dead EH.
7206         * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
7207         -fdelete-dead-exceptions.
7208         * tree.h (DECL_PURE_P): Add note about exceptions.
7209
7210 2021-05-05  Alexandre Oliva  <oliva@adacore.com>
7211
7212         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
7213         unconditional.
7214
7215 2021-05-04  David Edelsohn  <dje.gcc@gmail.com>
7216
7217         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
7218         get_fnname_from_decl for name of thunk.
7219         * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
7220         and ASM_OUTPUT_LABEL.
7221         (rs6000_xcoff_declare_function_name): Use assemble_name and
7222         ASM_OUTPUT_LABEL.
7223         (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
7224         (rs6000_xcoff_encode_section_info): Don't add mapping class
7225         for aliases.  Always add [DS] mapping class to primary
7226         FUNCTION_DECL.
7227         (rs6000_asm_weaken_decl): Don't explicitly add [DS].
7228
7229 2021-05-04  Martin Sebor  <msebor@redhat.com>
7230
7231         PR middle-end/100307
7232         * builtins.c (compute_objsize_r): Clear base0 for pointers.
7233
7234 2021-05-04  Jeff Law  <jlaw@tachyum.com>
7235
7236         * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
7237
7238 2021-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7239
7240         * caller-save.c: Remove CC0.
7241         * cfgcleanup.c: Remove CC0.
7242         * cfgrtl.c: Remove CC0.
7243         * combine.c: Remove CC0.
7244         * compare-elim.c: Remove CC0.
7245         * conditions.h: Remove CC0.
7246         * config/h8300/h8300.h: Remove CC0.
7247         * config/h8300/h8300-protos.h: Remove CC0.
7248         * config/h8300/peepholes.md: Remove CC0.
7249         * config/i386/x86-tune-sched.c: Remove CC0.
7250         * config/m68k/m68k.c: Remove CC0.
7251         * config/rl78/rl78.c: Remove CC0.
7252         * config/sparc/sparc.c: Remove CC0.
7253         * config/xtensa/xtensa.c: Remove CC0.
7254         (gen_conditional_move):  Use pc_rtx instead of cc0_rtx in a piece of
7255         RTL where that is used as a placeholder only.
7256         * cprop.c: Remove CC0.
7257         * cse.c: Remove CC0.
7258         * cselib.c: Remove CC0.
7259         * df-problems.c: Remove CC0.
7260         * df-scan.c: Remove CC0.
7261         * doc/md.texi: Remove CC0.  Adjust an example.
7262         * doc/rtl.texi: Remove CC0.  Adjust an example.
7263         * doc/tm.texi: Regenerate.
7264         * doc/tm.texi.in: Remove CC0.
7265         * emit-rtl.c: Remove CC0.
7266         * final.c: Remove CC0.
7267         * fwprop.c: Remove CC0.
7268         * gcse-common.c: Remove CC0.
7269         * gcse.c: Remove CC0.
7270         * genattrtab.c: Remove CC0.
7271         * genconfig.c: Remove CC0.
7272         * genemit.c: Remove CC0.
7273         * genextract.c: Remove CC0.
7274         * gengenrtl.c: Remove CC0.
7275         * genrecog.c: Remove CC0.
7276         * haifa-sched.c: Remove CC0.
7277         * ifcvt.c: Remove CC0.
7278         * ira-costs.c: Remove CC0.
7279         * ira.c: Remove CC0.
7280         * jump.c: Remove CC0.
7281         * loop-invariant.c: Remove CC0.
7282         * lra-constraints.c: Remove CC0.
7283         * lra-eliminations.c: Remove CC0.
7284         * optabs.c: Remove CC0.
7285         * postreload-gcse.c: Remove CC0.
7286         * postreload.c: Remove CC0.
7287         * print-rtl.c: Remove CC0.
7288         * read-rtl-function.c: Remove CC0.
7289         * reg-notes.def: Remove CC0.
7290         * reg-stack.c: Remove CC0.
7291         * reginfo.c: Remove CC0.
7292         * regrename.c: Remove CC0.
7293         * reload.c: Remove CC0.
7294         * reload1.c: Remove CC0.
7295         * reorg.c: Remove CC0.
7296         * resource.c: Remove CC0.
7297         * rtl.c: Remove CC0.
7298         * rtl.def: Remove CC0.
7299         * rtl.h: Remove CC0.
7300         * rtlanal.c: Remove CC0.
7301         * sched-deps.c: Remove CC0.
7302         * sched-rgn.c: Remove CC0.
7303         * shrink-wrap.c: Remove CC0.
7304         * simplify-rtx.c: Remove CC0.
7305         * system.h: Remove CC0.  Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
7306         CC_STATUS_MDEP, and CC_STATUS.
7307         * target.def: Remove CC0.
7308         * valtrack.c: Remove CC0.
7309         * var-tracking.c: Remove CC0.
7310
7311 2021-05-04  Richard Biener  <rguenther@suse.de>
7312
7313         PR tree-optimization/100414
7314         * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
7315         info here.
7316         (tree_ssa_phiopt_worker): But unconditionally here.
7317
7318 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
7319
7320         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
7321         && and || with floating-point and complex arguments.
7322
7323 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
7324
7325         * tree-inline.c (insert_debug_decl_map): Delete.
7326         (copy_debug_stmt): Minor tweak.
7327         (setup_one_parameter): Do not use a variable if the value is either
7328         a read-only DECL or a non-addressable local variable in the caller.
7329         In this case, insert the debug-only variable in the map manually.
7330         (expand_call_inline): Do not generate a CLOBBER for these values.
7331         * tree-inline.h (debug_map): Minor tweak.
7332
7333 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
7334
7335         * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
7336         * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
7337
7338 2021-05-04  Richard Biener  <rguenther@suse.de>
7339
7340         PR tree-optimization/100329
7341         * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
7342         asm goto defs.
7343         (insert_stmt_after): Assert we're not running into asm goto.
7344
7345 2021-05-04  Richard Biener  <rguenther@suse.de>
7346
7347         PR tree-optimization/100398
7348         * tree-ssa-dse.c (pass_dse::execute): Preserve control
7349         altering stmts.
7350
7351 2021-05-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7352
7353         * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
7354
7355 2021-05-04  Alexandre Oliva  <oliva@adacore.com>
7356
7357         * builtins.c (try_store_by_multiple_pieces): New.
7358         (expand_builtin_memset_args): Use it.  If target_char_cast
7359         fails, proceed as for non-constant val.  Pass len's ctz to...
7360         * expr.c (clear_storage_hints): ... this.  Try store by
7361         multiple pieces after setmem.
7362         (clear_storage): Adjust.
7363         * expr.h (clear_storage_hints): Likewise.
7364         (try_store_by_multiple_pieces): Declare.
7365         * passes.def: Replace the last copy_prop with ccp.
7366
7367 2021-05-03  Tom de Vries  <tdevries@suse.de>
7368
7369         PR target/100321
7370         * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
7371         reduction.
7372
7373 2021-05-03  Richard Biener  <rguenther@suse.de>
7374
7375         * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
7376
7377 2021-05-03  Richard Biener  <rguenther@suse.de>
7378
7379         * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
7380         (dse_dom_walker): Remove.
7381         (dse_dom_walker::dse_optimize_stmt): Rename...
7382         (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
7383         (dse_dom_walker::before_dom_children): Inline ...
7384         (pass_dse::execute): ... here.  Perform a reverse program
7385         order walk.
7386
7387 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
7388
7389         PR bootstrap/99703
7390         * configure: Regenerated.
7391
7392 2021-05-03  Ilya Leoshkevich  <iii@linux.ibm.com>
7393
7394         PR target/100217
7395         * config/s390/s390.c (s390_hard_fp_reg_p): New function.
7396         (s390_md_asm_adjust): Handle hard registers.
7397
7398 2021-05-03  Jakub Jelinek  <jakub@redhat.com>
7399
7400         PR tree-optimization/100382
7401         * tree-ssa-dse.c: Include tree-eh.h.
7402         (dse_dom_walker::before_dom_children): Don't remove stmts if
7403         stmt_unremovable_because_of_non_call_eh_p is true.
7404
7405 2021-05-02  David Edelsohn  <dje.gcc@gmail.com>
7406
7407         * varasm.c (compute_reloc_for_var): Split out from...
7408         (get_variable_section): Use it.
7409         * output.h (compute_reloc_for_var): Declare.
7410         * config/rs6000/rs6000-protos.h
7411         (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
7412         unsigned int.
7413         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
7414         Don't append storage mapping class to symbol.
7415         (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
7416         Don't convert TLS BSS to common.
7417         (rs6000_xcoff_unique_section): Don't fall back to select_secton.
7418         (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
7419         bss_initializer.
7420         (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
7421         mapping class.
7422         (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
7423         If align is 0 from TLS class, use the same rules as varasm.c
7424         If not common, switch to BSS section manually.
7425         If common, emit appropriate comm or lcomm directive.
7426         (rs6000_xcoff_encode_section_info): Add logic to append all
7427         storage mapping classes.
7428         (rs6000_asm_weaken_decl): Adjust for qualname symbols.
7429         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
7430         rs6000_xcoff_asm_output_aligned_decl_common.
7431         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
7432         rs6000_xcoff_asm_output_aligned_decl_common.
7433         (ASM_OUTPUT_TLS_COMMON): Use
7434         rs6000_xcoff_asm_output_aligned_decl_common.
7435
7436 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
7437
7438         PR target/100375
7439         * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
7440         as first argument of pseudo_node_t constructors.
7441
7442 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
7443
7444         PR target/100336
7445         * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
7446
7447 2021-05-01  Aldy Hernandez  <aldyh@redhat.com>
7448
7449         * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
7450         (gt_pch_nx (int_range<1> *&)): New.
7451         (gt_ggc_mx (int_range<1> *&)): New.
7452         * value-range.h (class irange): Add GTY support for
7453         the base class.
7454
7455 2021-05-01  Geng Qi  <gengqi@linux.alibaba.com>
7456
7457         * doc/options.texi (Negative): Change either or to both and.
7458
7459 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
7460
7461         * config/aarch64/aarch64-simd-builtins.def: Add
7462         float_ml[as][q]_laneq builtin generator macros.
7463         * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
7464         (aarch64_float_mla_laneq<mode>): Define.
7465         (aarch64_float_mls_laneq<mode>): Define.
7466         * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
7467         instead of GCC vector extensions.
7468         (vmlaq_laneq_f32): Likewise.
7469         (vmls_laneq_f32): Likewise.
7470         (vmlsq_laneq_f32): Likewise.
7471
7472 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
7473
7474         * config/aarch64/aarch64-simd-builtins.def: Add
7475         float_ml[as]_lane builtin generator macros.
7476         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
7477         Rename to...
7478         (mul_lane<mode>3): This, and re-order arguments.
7479         (aarch64_float_mla_lane<mode>): Define.
7480         (aarch64_float_mls_lane<mode>): Define.
7481         * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
7482         instead of GCC vector extensions.
7483         (vmlaq_lane_f32): Likewise.
7484         (vmls_lane_f32): Likewise.
7485         (vmlsq_lane_f32): Likewise.
7486
7487 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
7488
7489         * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
7490         builtin generator macros.
7491         * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
7492         Define.
7493         (aarch64_float_mls<mode>): Define.
7494         * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
7495         instead of relying on GCC vector extensions.
7496         (vmla_f64): Likewise.
7497         (vmlaq_f32): Likewise.
7498         (vmlaq_f64): Likewise.
7499         (vmls_f32): Likewise.
7500         (vmls_f64): Likewise.
7501         (vmlsq_f32): Likewise.
7502         (vmlsq_f64): Likewise.
7503         * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
7504
7505 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
7506
7507         * config/aarch64/aarch64-simd-builtins.def: Add
7508         float_ml[as]_n_builtin generator macros.
7509         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
7510         Rename to...
7511         (mul_n<mode>3): This, and re-order arguments.
7512         (aarch64_float_mla_n<mode>): Define.
7513         (aarch64_float_mls_n<mode>): Define.
7514         * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
7515         instead of inline asm.
7516         (vmlaq_n_f32): Likewise.
7517         (vmls_n_f32): Likewise.
7518         (vmlsq_n_f32): Likewise.
7519
7520 2021-04-30  Jonathan Wright  <joanthan.wright@arm.com>
7521
7522         * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
7523         builtin generator macros.
7524         * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
7525         (aarch64_pmull_hiv16qi_insn): Define.
7526         (aarch64_pmull_hiv16qi): Define.
7527         * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
7528         instead of inline asm.
7529         (vmull_p8): Likewise.
7530
7531 2021-04-30  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
7532
7533         * config/avr/avr.md: Adjust peepholes to match and
7534         generate parallels with clobber of REG_CC.
7535         (mov<mode>_insn): Rename to mov<mode>_insn_split.
7536         (*mov<mode>_insn): Rename to mov<mode>_insn.
7537
7538 2021-04-30  David Edelsohn  <dje.gcc@gmail.com>
7539
7540         * varasm.c (use_blocks_for_decl_p): Don't use section anchors
7541         for VAR_DECLs if -fdata-sections enabled.
7542
7543 2021-04-30  Michael Meissner  <meissner@linux.ibm.com>
7544
7545         PR bootstrap/100327
7546         * config/rs6000/rs6000.c
7547         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
7548         (rs6000_libgcc_floating_mode_supported_p): New target hook.
7549
7550 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
7551
7552         * tree-ssa-threadbackward.c (class thread_jumps): Split out code
7553         from here...
7554         (class back_threader_registry): ...to here...
7555         (class back_threader_profitability): ...and here...
7556         (thread_jumps::thread_through_all_blocks): Remove argument.
7557         (back_threader_registry::back_threader_registry): New.
7558         (back_threader_registry::~back_threader_registry): New.
7559         (back_threader_registry::thread_through_all_blocks): New.
7560         (thread_jumps::profitable_jump_thread_path): Move from here...
7561         (back_threader_profitability::profitable_path_p): ...to here.
7562         (thread_jumps::find_taken_edge): New.
7563         (thread_jumps::convert_and_register_current_path): Move...
7564         (back_threader_registry::register_path): ...to here.
7565         (thread_jumps::register_jump_thread_path_if_profitable): Move...
7566         (thread_jumps::maybe_register_path): ...to here.
7567         (thread_jumps::handle_phi): Call find_taken_edge and
7568         maybe_register_path.
7569         (thread_jumps::handle_assignment): Same.
7570         (thread_jumps::fsm_find_control_statement_thread_paths): Remove
7571         tree argument to handle_phi and handle_assignment.
7572         (thread_jumps::find_jump_threads_backwards): Set m_name.  Remove
7573         set of m_speed_p and m_max_threaded_paths.
7574         (pass_thread_jumps::execute): Remove second argument from
7575         find_jump_threads_backwards.
7576         (pass_early_thread_jumps::execute): Same.
7577
7578 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
7579
7580         * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
7581         (class dom_opt_dom_walker): Initialize some class variables.
7582         (pass_dominator::execute): Pass evrp_range_analyzer and
7583         dom_jump_threader_simplifier to dom_opt_dom_walker.
7584         Adjust for some functions moving into classes.
7585         (simplify_stmt_for_jump_threading): Adjust and move to...
7586         (jump_threader_simplifier::simplify): ...here.
7587         (dom_opt_dom_walker::before_dom_children): Adjust for
7588         m_evrp_range_analyzer.
7589         (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
7590         (test_for_singularity): Place in dom_opt_dom_walker class.
7591         (dom_opt_dom_walker::optimize_stmt): The argument
7592         evrp_range_analyzer is now a class field.
7593         * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
7594         (thread_jumps::thread_through_all_blocks): New.
7595         (thread_jumps::convert_and_register_current_path): Use m_registry.
7596         (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
7597         being in the threader class.
7598         (pass_early_thread_jumps::execute): Same.
7599         * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
7600         (jump_threader::jump_threader): ...here.
7601         (threadedge_finalize_values): Move...
7602         (jump_threader::~jump_threader): ...here.
7603         (jump_threader::remove_jump_threads_including): New.
7604         (jump_threader::thread_through_all_blocks): New.
7605         (record_temporary_equivalences_from_phis): Move...
7606         (jump_threader::record_temporary_equivalences_from_phis): ...here.
7607         (record_temporary_equivalences_from_stmts_at_dest): Move...
7608         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
7609         Here...
7610         (simplify_control_stmt_condition_1): Move to jump_threader class.
7611         (simplify_control_stmt_condition): Move...
7612         (jump_threader::simplify_control_stmt_condition): ...here.
7613         (thread_around_empty_blocks): Move...
7614         (jump_threader::thread_around_empty_blocks): ...here.
7615         (thread_through_normal_block): Move...
7616         (jump_threader::thread_through_normal_block): ...here.
7617         (thread_across_edge): Move...
7618         (jump_threader::thread_across_edge): ...here.
7619         (thread_outgoing_edges): Move...
7620         (jump_threader::thread_outgoing_edges): ...here.
7621         * tree-ssa-threadedge.h: Move externally facing functings...
7622         (class jump_threader): ...here...
7623         (class jump_threader_simplifier): ...and here.
7624         * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
7625         (jump_thread_path_allocator::jump_thread_path_allocator): New.
7626         (jump_thread_path_allocator::~jump_thread_path_allocator): New.
7627         (jump_thread_path_allocator::allocate_thread_edge): New.
7628         (jump_thread_path_allocator::allocate_thread_path): New.
7629         (jump_thread_path_registry::jump_thread_path_registry): New.
7630         (jump_thread_path_registry::~jump_thread_path_registry): New.
7631         (jump_thread_path_registry::allocate_thread_edge): New.
7632         (jump_thread_path_registry::allocate_thread_path): New.
7633         (dump_jump_thread_path): Make extern.
7634         (debug (const vec<jump_thread_edge *> &path)): New.
7635         (struct removed_edges): Move to tree-ssa-threadupdate.h.
7636         (struct thread_stats_d): Remove.
7637         (remove_ctrl_stmt_and_useless_edges): Make static.
7638         (lookup_redirection_data): Move...
7639         (jump_thread_path_registry::lookup_redirection_data): ...here.
7640         (ssa_redirect_edges): Make static.
7641         (thread_block_1): Move...
7642         (jump_thread_path_registry::thread_block_1): ...here.
7643         (thread_block): Move...
7644         (jump_thread_path_registry::thread_block): ...here.
7645         (thread_through_loop_header):  Move...
7646         (jump_thread_path_registry::thread_through_loop_header): ...here.
7647         (mark_threaded_blocks): Move...
7648         (jump_thread_path_registry::mark_threaded_blocks): ...here.
7649         (debug_path): Move...
7650         (jump_thread_path_registry::debug_path): ...here.
7651         (debug_all_paths): Move...
7652         (jump_thread_path_registry::dump): ..here.
7653         (rewire_first_differing_edge): Move...
7654         (jump_thread_path_registry::rewire_first_differing_edge): ...here.
7655         (adjust_paths_after_duplication): Move...
7656         (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
7657         (duplicate_thread_path): Move...
7658         (jump_thread_path_registry::duplicate_thread_path): ..here.
7659         (remove_jump_threads_including): Move...
7660         (jump_thread_path_registry::remove_jump_threads_including): ...here.
7661         (thread_through_all_blocks): Move to...
7662         (jump_thread_path_registry::thread_through_all_blocks): ...here.
7663         (delete_jump_thread_path): Remove.
7664         (register_jump_thread): Move...
7665         (jump_thread_path_registry::register_jump_thread): ...here.
7666         * tree-ssa-threadupdate.h: Move externally facing functions...
7667         (class jump_thread_path_allocator): ...here...
7668         (class jump_thread_path_registry): ...and here.
7669         (thread_through_all_blocks): Remove.
7670         (struct removed_edges): New.
7671         (register_jump_thread): Remove.
7672         (remove_jump_threads_including): Remove.
7673         (delete_jump_thread_path): Remove.
7674         (remove_ctrl_stmt_and_useless_edges): Remove.
7675         (free_dom_edge_info): New prototype.
7676         * tree-vrp.c: Remove x_vr_values hack.
7677         (class vrp_jump_threader_simplifier): New.
7678         (vrp_jump_threader_simplifier::simplify): New.
7679         (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
7680         Remove m_dummy_cond.
7681         Instantiate m_simplifier and m_threader.
7682         (vrp_jump_threader::thread_through_all_blocks): New.
7683         (vrp_jump_threader::simplify_stmt): Remove.
7684         (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
7685         Remove x_vr_values hack.
7686         (execute_vrp): Adjust for thread_through_all_blocks being in a
7687         class.
7688
7689 2021-04-30  Christophe Lyon  <christophe.lyon@linaro.org>
7690
7691         * genflags.c (gen_insn): Print failed expansion string.
7692
7693 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
7694
7695         * expr.c (alignment_for_piecewise_move): Call mode_for_size
7696         without limit to MAX_FIXED_MODE_SIZE.
7697
7698 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
7699
7700         PR middle-end/90773
7701         * builtins.c (builtin_memset_gen_str): Don't use return from
7702         simplify_gen_subreg.
7703
7704 2021-04-30  Uroš Bizjak  <ubizjak@gmail.com>
7705
7706         PR target/98060
7707         * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
7708         (*addsi3_carry_zext_0r): Ditto.
7709         (*sub<mode>3_carry_0): Ditto.
7710         (*subsi3_carry_zext_0r): Ditto.
7711         * config/i386/predicates.md (ix86_carry_flag_unset_operator):
7712         New predicate.
7713         * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
7714         Also consider ix86_carry_flag_unset_operator to calculate
7715         the cost of adc/sbb insn.
7716
7717 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
7718
7719         PR rtl-optimization/100225
7720         PR rtl-optimization/84878
7721         * modulo-sched.c (sms_schedule): Use note_stores to skip loops
7722         where we have an instruction which touches (writes) any hard
7723         register from df->regular_block_artificial_uses set.
7724         Allow not-single-set instruction only right before basic block
7725         tail.
7726
7727 2021-04-30  Geng Qi  <gengqi@linux.alibaba.com>
7728
7729         * config/riscv/riscv.opt (march=,mabi=): Negative itself.
7730
7731 2021-04-30  LevyHsu  <admin@levyhsu.com>
7732
7733         * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
7734         * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
7735         * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
7736         (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
7737
7738 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
7739
7740         * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
7741
7742 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
7743
7744         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
7745         (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this.  Enclose in do/while(0).
7746         * config/i386/i386.c: Adjust.
7747         * config/i386/i386.md: Adjust.
7748         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
7749         * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7750         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7751         * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7752         * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7753         * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7754         * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7755         * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7756         * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7757         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7758         (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
7759
7760 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
7761
7762         * config/i386/i386-expand.c (ix86_expand_int_compare):
7763         Swap operands of GTU and LEU comparison to emit carry flag comparison.
7764         * config/i386/i386.md (*add<mode>3_carry_0): Change insn
7765         predicate to allow more combine opportunities with memory operands.
7766         (*sub<mode>3_carry_0): Ditto.
7767
7768 2021-04-29  Richard Sandiford  <richard.sandiford@arm.com>
7769
7770         PR rtl-optimization/100303
7771         * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
7772         boolean that indicates whether the use will only be used in
7773         debug instructions.  Treat it in the same way that existing
7774         cross-EBB debug references would be handled if so.
7775         (function_info::make_uses_available): Likewise.
7776         * rtl-ssa/functions.h (function_info::make_uses_available): Update
7777         prototype accordingly.
7778         (function_info::make_uses_available): Likewise.
7779         * fwprop.c (try_fwprop_subst): Update call accordingly.
7780
7781 2021-04-29  Jeff Law  <jlaw@tachyum.com>
7782
7783         * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
7784         of RTX_CODE guard.
7785
7786 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
7787             Richard Biener  <rguenther@suse.de>
7788
7789         PR target/100312
7790         * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
7791         (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
7792         (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
7793         (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
7794         (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
7795         to PURE_ARGS category.
7796         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
7797         Handle PURE_ARGS category.
7798         * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
7799
7800 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
7801
7802         * configure.ac: Check for the presence of sys/locking.h header and
7803         for whether _LK_LOCK is supported by _locking.
7804         * configure: Regenerate.
7805         * config.in: Likewise.
7806         * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
7807         * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
7808         * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
7809
7810 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
7811
7812         * config/i386/predicates.md (fcmov_comparison_operator):
7813         Do not check for trivial FP comparison operator.
7814         <case GEU, case LTU>: Allow CCGZmode.
7815         <case GTU, case LEU>: Do not allow CCCmode.
7816         (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
7817         (ix86_carry_flag_operator): Match only LTU and UNLT code.
7818         Do not check for trivial FP comparison operator.  Allow CCGZmode.
7819
7820 2021-04-29  Tom de Vries  <tdevries@suse.de>
7821
7822         * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
7823         fd->loop.step by either step or orig_step.
7824
7825 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
7826
7827         * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
7828         (load_got_register): Do the PIC dance here.
7829         (sparc_legitimize_tls_address): Simplify.
7830         (sparc_emit_probe_stack_range): Likewise.
7831         (sparc32_initialize_trampoline): Likewise.
7832         (sparc64_initialize_trampoline): Likewise.
7833         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
7834         (probe_stack_range<P:mode>): Likewise.
7835         (flush<P:mode>): Likewise.
7836         (tgd_hi22<P:mode>): Likewise.
7837         (tgd_lo10<P:mode>): Likewise.
7838         (tgd_add<P:mode>): Likewise.
7839         (tgd_call<P:mode>): Likewise.
7840         (tldm_hi22<P:mode>): Likewise.
7841         (tldm_lo10<P:mode>): Likewise.
7842         (tldm_add<P:mode>): Likewise.
7843         (tldm_call<P:mode>): Likewise.
7844         (tldo_hix22<P:mode>): Likewise.
7845         (tldo_lox10<P:mode>): Likewise.
7846         (tldo_add<P:mode>): Likewise.
7847         (tie_hi22<P:mode>): Likewise.
7848         (tie_lo10<P:mode>): Likewise.
7849         (tie_add<P:mode>): Likewise.
7850         (tle_hix22<P:mode>): Likewise.
7851         (tle_lox10<P:mode>): Likewise.
7852         (stack_protect_setsi): Rename to...
7853         (stack_protect_set32): ...this.
7854         (stack_protect_setdi): Rename to...
7855         (stack_protect_set64): ...this.
7856         (stack_protect_set): Adjust calls to above.
7857         (stack_protect_testsi): Rename to...
7858         (stack_protect_test32): ...this.
7859         (stack_protect_testdi): Rename to...
7860         (stack_protect_test64): ...this.
7861         (stack_protect_test): Adjust calls to above.
7862
7863 2021-04-29  H.J. Lu  <hjl.tools@gmail.com>
7864
7865         PR middle-end/90773
7866         * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
7867         (builtin_strncpy_read_str): Likewise.
7868         (builtin_memset_read_str): Add an argument for the previous RTL
7869         information and generate the new RTL from the previous RTL info.
7870         (builtin_memset_gen_str): Likewise.
7871         * builtins.h (builtin_strncpy_read_str): Update the prototype.
7872         (builtin_memset_read_str): Likewise.
7873         * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
7874         returns true, round up size and alignment to the widest integer
7875         mode for maximum size.
7876         (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
7877         and pass it to m_constfn.
7878         (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
7879         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
7880         initialize m_push.  Initialize m_overlap_op_by_pieces with
7881         targetm.overlap_op_by_pieces_p ().
7882         (op_by_pieces_d::run): Pass the previous RTL information to
7883         pieces_addr::adjust and generate overlapping operations if
7884         m_overlap_op_by_pieces is true.
7885         (PUSHG_P): New.
7886         (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
7887         change.
7888         (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
7889         change.
7890         (can_store_by_pieces): Use by_pieces_constfn on constfun.
7891         (store_by_pieces): Use by_pieces_constfn on constfun.  Updated
7892         for op_by_pieces_d change.
7893         (clear_by_pieces_1): Add a dummy argument.
7894         (clear_by_pieces): Updated for op_by_pieces_d change.
7895         (compare_by_pieces_d::compare_by_pieces_d): Likewise.
7896         (string_cst_read_str): Add a dummy argument.
7897         * expr.h (by_pieces_constfn): Add a dummy argument.
7898         (by_pieces_prev): New.
7899         * target.def (overlap_op_by_pieces_p): New target hook.
7900         * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
7901         * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
7902         * doc/tm.texi: Regenerated.
7903
7904 2021-04-29  Richard Biener  <rguenther@suse.de>
7905
7906         PR tree-optimization/100253
7907         * tree-vect-stmts.c (vectorizable_load): Do not assume
7908         element alignment when DR_MISALIGNMENT is -1.
7909         (vectorizable_store): Likewise.
7910
7911 2021-04-29  Jakub Jelinek  <jakub@redhat.com>
7912
7913         PR target/100302
7914         * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
7915         absu_hwi instead of abs_hwi.
7916
7917 2021-04-29  Richard Biener  <rguenther@suse.de>
7918
7919         PR middle-end/38474
7920         * tree-ssa-structalias.c (add_graph_edge): Avoid direct
7921         forwarding when indirect forwarding through ESCAPED
7922         alread happens.
7923
7924 2021-04-29  Tom de Vries  <tdevries@suse.de>
7925
7926         PR target/100232
7927         * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
7928         (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
7929         (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
7930         (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
7931
7932 2021-04-29  Richard Biener  <rguenther@suse.de>
7933
7934         PR tree-optimization/99912
7935         * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
7936         (dse_dom_walker::todo): Likewise.
7937         (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
7938         caller.
7939         (dse_dom_walker::before_dom_children): Remove trivially
7940         dead SSA defs and schedule CFG cleanup if we removed all
7941         PHIs in a block.
7942         (pass_dse::execute): Get TODO as computed by the DOM walker
7943         and return it.  Wipe dominator info earlier.
7944
7945 2021-04-29  Richard Biener  <rguenther@suse.de>
7946
7947         PR ipa/100308
7948         * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
7949         Track blocks to cleanup EH in new m_need_eh_cleanup.
7950         (ipcp_modif_dom_walker::cleanup_eh): New.
7951         (ipcp_transform_function): Release dominator info before
7952         doing EH cleanup.
7953
7954 2021-04-29  Martin Sebor  <msebor@redhat.com>
7955
7956         PR middle-end/100250
7957         * attribs.c (attr_access::array_as_string): Avoid dereferencing
7958         a pointer when it's null.
7959
7960 2021-04-29  Martin Sebor  <msebor@redhat.com>
7961
7962         * Makefile.in (OBJS): Add ipa-free-lang-data.o.
7963         * ipa-free-lang-data.cc: New file.
7964         * tree.c: Move pass free_lang_data to file above.
7965          (build_array_type_1): Declare extern.
7966         * tree.h (build_array_type_1): Declare.
7967
7968 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
7969
7970         * config/aarch64/aarch64-simd-builtins.def: Modify comment to
7971         make consistent with updated RTL pattern.
7972         * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
7973         Implement using ss_truncate and us_truncate rather than
7974         unspecs.
7975         * config/aarch64/iterators.md: Remove redundant unspecs and
7976         iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
7977
7978 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
7979
7980         * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
7981         attributes consistent with those defined in arm_neon.h.
7982
7983 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
7984
7985         * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
7986         attributes consistent with those defined in arm_neon.h.
7987
7988 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
7989
7990         * config/aarch64/aarch64-simd-builtins.def: Add
7991         float_trunc_rodd builtin generator macros.
7992         * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
7993         Define.
7994         (aarch64_float_trunc_rodd_lo_v2sf): Define.
7995         (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
7996         (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
7997         (aarch64_float_trunc_rodd_hi_v4sf): Define.
7998         * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
7999         instead of inline asm.
8000         (vcvtx_high_f32_f64): Likewise.
8001         (vcvtxd_f32_f64): Likewise.
8002         * config/aarch64/iterators.md: Add FCVTXN unspec.
8003
8004 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8005
8006         * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
8007         generator macros.
8008         * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
8009         Define.
8010         * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
8011         instead of inline asm.
8012         (vqtbx1_u8): Likewise.
8013         (vqtbx1_p8): Likewise.
8014         (vqtbx1q_s8): Likewise.
8015         (vqtbx1q_u8): Likewise.
8016         (vqtbx1q_p8): Likewise.
8017         (vtbx2_s8): Likewise.
8018         (vtbx2_u8): Likewise.
8019         (vtbx2_p8): Likewise.
8020
8021 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8022
8023         * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
8024         generator macros.
8025         * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
8026         instead of inline asm.
8027         (vqtbl1_s8): Likewise.
8028         (vqtbl1_u8): Likewise.
8029         (vqtbl1q_p8): Likewise.
8030         (vqtbl1q_s8): Likewise.
8031         (vqtbl1q_u8): Likewise.
8032         (vtbl1_s8): Likewise.
8033         (vtbl1_u8): Likewise.
8034         (vtbl1_p8): Likewise.
8035         (vtbl2_s8): Likewise.
8036         (vtbl2_u8): Likewise.
8037         (vtbl2_p8): Likewise.
8038
8039 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8040
8041         * config/aarch64/aarch64-simd-builtins.def: Add polynomial
8042         ssri_n buitin generator macro.
8043         * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
8044         instead of inline asm.
8045         (vsri_n_p16): Likewise.
8046         (vsri_n_p64): Likewise.
8047         (vsriq_n_p8): Likewise.
8048         (vsriq_n_p16): Likewise.
8049         (vsriq_n_p64): Likewise.
8050
8051 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8052
8053         * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
8054         iterator for polynomial ssli_n builtin generator macro.
8055         * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
8056         instead of inline asm.
8057         (vsli_n_p16): Likewise.
8058         (vsliq_n_p8): Likewise.
8059         (vsliq_n_p16): Likewise.
8060         * config/aarch64/iterators.md: Define VALLP mode iterator.
8061
8062 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8063
8064         * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
8065         iterator to generate [su]adalp RTL builtins.
8066         * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
8067         [su]adalp RTL pattern.
8068         * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
8069         instead of inline asm.
8070         (vpadal_u32): Likewise.
8071
8072 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8073
8074         * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
8075         builtin generator macros.
8076         * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
8077         Define.
8078         * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
8079         instead of inline asm.
8080         (vpaddl_s16): Likewise.
8081         (vpaddl_s32): Likewise.
8082         (vpaddl_u8): Likewise.
8083         (vpaddl_u16): Likewise.
8084         (vpaddl_u32): Likewise.
8085         (vpaddlq_s8): Likewise.
8086         (vpaddlq_s16): Likewise.
8087         (vpaddlq_s32): Likewise.
8088         (vpaddlq_u8): Likewise.
8089         (vpaddlq_u16): Likewise.
8090         (vpaddlq_u32): Liwewise.
8091         * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
8092         appropriate attributes.
8093
8094 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8095
8096         * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
8097         for aarch64_addp<mode> builtin macro generator.
8098         * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
8099         aarch64_addp<mode> RTL pattern.
8100         * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
8101         instead of inline asm.
8102         (vpaddq_s16): Likewise.
8103         (vpaddq_s32): Likewise.
8104         (vpaddq_s64): Likewise.
8105         (vpaddq_u8): Likewise.
8106         (vpaddq_u16): Likewise.
8107         (vpaddq_u32): Likewise.
8108         (vpaddq_u64): Likewise.
8109
8110 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
8111
8112         * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
8113         builtin generator macros.
8114         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
8115         Define.
8116         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
8117         instead of inline asm.
8118         (vqdmulh_n_s32): Likewise.
8119         (vqdmulhq_n_s16): Likewise.
8120         (vqdmulhq_n_s32): Likewise.
8121         (vqrdmulh_n_s16): Likewise.
8122         (vqrdmulh_n_s32): Likewise.
8123         (vqrdmulhq_n_s16): Likewise.
8124         (vqrdmulhq_n_s32): Likewise.
8125
8126 2021-04-28  Tobias Burnus  <tobias@codesourcery.com>
8127
8128         * doc/install.texi (--enable-offload-defaulted): Document.
8129
8130 2021-04-28  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
8131
8132         * config/avr/avr-dimode.md: Turn existing patterns into
8133         define_insn_and_split style patterns where the splitter
8134         adds a clobber of the condition code register.  Drop "cc"
8135         attribute.  Add new patterns to match output of
8136         the splitters.
8137         * config/avr/avr-fixed.md: Likewise.
8138         * config/avr/avr.c (cc_reg_rtx): New.
8139         (avr_parallel_insn_from_insns): Adjust insn count
8140         for removal of set of cc0.
8141         (avr_is_casesi_sequence): Likewise.
8142         (avr_casei_sequence_check_operands): Likewise.
8143         (avr_optimize_casesi): Likewise. Also insert
8144         new insns after jump_insn.
8145         (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
8146         for removal of set of cc0.
8147         (avr_init_expanders): Initialize cc_reg_rtx.
8148         (avr_regno_reg_class): Handle REG_CC.
8149         (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
8150         (avr_notice_update_cc): Remove function.
8151         (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
8152         (compare_condition): Adjust for PARALLEL with
8153         REG_CC clobber.
8154         (out_shift_with_cnt): Likewise.
8155         (ashlhi3_out): Likewise.
8156         (ashrhi3_out): Likewise.
8157         (lshrhi3_out): Likewise.
8158         (avr_class_max_nregs): Return single reg for REG_CC.
8159         (avr_compare_pattern): Check for REG_CC instead
8160         of cc0_rtx.
8161         (avr_reorg_remove_redundant_compare): Likewise.
8162         (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
8163         (avr_hard_regno_nregs): Return single reg for REG_CC.
8164         (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
8165         (avr_md_asm_adjust): Clobber REG_CC.
8166         (TARGET_HARD_REGNO_NREGS): Define.
8167         (TARGET_CLASS_MAX_NREGS): Define.
8168         (TARGET_MD_ASM_ADJUST): Define.
8169         * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
8170         for REG_CC.
8171         (enum reg_class): Add CC_REG class.
8172         (NOTICE_UPDATE_CC): Remove.
8173         (CC_OVERFLOW_UNUSABLE): Remove.
8174         (CC_NO_CARRY): Remove.
8175         * config/avr/avr.md: Turn existing patterns into
8176         define_insn_and_split style patterns where the splitter
8177         adds a clobber of the condition code register.  Drop "cc"
8178         attribute.  Add new patterns to match output of
8179         the splitters.
8180         (sez): Remove unused pattern.
8181
8182 2021-04-28  Richard Earnshaw  <rearnsha@arm.com>
8183
8184         PR target/100311
8185         * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
8186         used in HImode.
8187
8188 2021-04-28  Richard Sandiford  <richard.sandiford@arm.com>
8189
8190         PR target/100305
8191         * config/aarch64/constraints.md (Utq): Require the address to
8192         be valid for both the element mode and for V2DImode.
8193
8194 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
8195             Tobias Burnus  <tobias@codesourcery.com>
8196
8197         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
8198         * gcc.c (process_command): New variable.
8199         (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
8200         set it if -foffload is defaulted.
8201         * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
8202         (compile_offload_image): If OFFLOAD_DEFAULTED and
8203         OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
8204         if corresponding mkoffload can't be found.
8205         (compile_images_for_offload_targets): Likewise.  Free and clear
8206         offload_names if no valid offload is found.
8207         * config.in: Regenerate.
8208         * configure: Regenerate.
8209
8210 2021-04-28  Richard Biener  <rguenther@suse.de>
8211
8212         PR tree-optimization/100292
8213         * tree-vect-generic.c (expand_vector_condition): Do not fold
8214         the comparisons.
8215
8216 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
8217
8218         * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
8219         * config/rs6000/aix64.opt (m64): New.
8220         (m32): New.
8221
8222 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
8223
8224         * config/vax/vax.c (print_operand_address, vax_address_cost_1)
8225         (index_term_p): Handle ASHIFT too.
8226
8227 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
8228
8229         * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
8230         (sync_lock_test_and_set<mode>): Adjust accordingly.
8231         (sync_lock_release<mode>): Likewise.
8232
8233 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
8234
8235         * config/vax/vax-protos.h (adjacent_operands_p): Remove
8236         prototype.
8237         * config/vax/vax.c (adjacent_operands_p): Remove.
8238
8239 2021-04-27  Maciej W. Rozycki  <macro@linux-mips.org>
8240
8241         * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
8242         through to the non-conditional execution case if getting the
8243         condition for conditional execution has failed.
8244
8245 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
8246
8247         PR middle-end/100284
8248         * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
8249         * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
8250         than asserting on it.
8251
8252 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
8253
8254         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
8255         with TARGET_AIX_OS.
8256
8257 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
8258
8259         PR target/94177
8260         * calls.c (precompute_register_parameters): Additionally test
8261         targetm.precompute_tls_p to pre-compute argument.
8262         * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
8263         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
8264         * target.def (precompute_tls_p): New.
8265         * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
8266         * doc/tm.texi: Regenerated.
8267
8268 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
8269
8270         PR target/100200
8271         * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
8272         back to HOST_WIDE_INT.
8273
8274 2021-04-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8275
8276         PR target/100106
8277         * simplify-rtx.c (simplify_context::simplify_subreg): Check the
8278         memory alignment for the outer mode.
8279
8280 2021-04-27  H.J. Lu  <hjl.tools@gmail.com>
8281
8282         PR middle-end/90773
8283         * expr.c (op_by_pieces_d::get_usable_mode): New member function.
8284         (op_by_pieces_d::run): Cange a while loop to a do-while loop.
8285
8286 2021-04-27  Alex Coplan  <alex.coplan@arm.com>
8287
8288         PR target/99977
8289         * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
8290         with negative immediates: ensure we expand cbranchsi4_scratch
8291         correctly and ensure we satisfy its constraints.
8292         * config/arm/sync.md
8293         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
8294         attempt to tie two output operands together with constraints;
8295         collapse two alternatives.
8296         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
8297         * config/arm/thumb1.md (cbranchsi4_neg_late): New.
8298
8299 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
8300
8301         PR target/100200
8302         * config/aarch64/predicates.md (aarch64_sub_immediate,
8303         aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
8304         * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
8305         * config/aarch64/aarch64.c (aarch64_print_operand,
8306         aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
8307
8308 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
8309
8310         PR tree-optimization/100239
8311         * tree-vect-generic.c (lower_vec_perm): Don't accept constant
8312         permutations with all indices from the first zero element as vec_shl.
8313
8314 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
8315
8316         PR rtl-optimization/100254
8317         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
8318         last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
8319
8320 2021-04-27  Richard Biener  <rguenther@suse.de>
8321
8322         PR tree-optimization/99912
8323         * passes.def: Add comment about new TODO_remove_unused_locals.
8324         * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
8325         at start.
8326
8327 2021-04-27  Richard Biener  <rguenther@suse.de>
8328
8329         PR tree-optimization/99912
8330         * passes.def (pass_all_optimizations): Add pass_dse before
8331         the first pass_dce, move the first pass_dse before the
8332         pass_dce following pass_pre.
8333
8334 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
8335
8336         PR tree-optimization/95527
8337         * generic-match-head.c: Include tm.h.
8338         * gimple-match-head.c: Include tm.h.
8339         * match.pd (CLZ == INTEGER_CST): Don't use
8340         #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
8341         if clz == CFN_CLZ.  Add missing val declaration.
8342         (CTZ cmp CST): New simplifications.
8343
8344 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
8345
8346         PR tree-optimization/96696
8347         * expr.c (expand_expr_divmod): New function.
8348         (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
8349         divisions.  Formatting fixes.
8350         <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
8351         cheaper.
8352
8353 2021-04-27  Martin Jambor  <mjambor@suse.cz>
8354
8355         PR ipa/99951
8356         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
8357         If removing a call statement LHS SSA name, release it.
8358
8359 2021-04-27  Richard Earnshaw  <rearnsha@arm.com>
8360
8361         PR target/100236
8362         * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
8363         is valid before including it in the mask.
8364
8365 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
8366
8367         PR target/100270
8368         * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
8369         SVE attributes.
8370
8371 2021-04-27  Richard Biener  <rguenther@suse.de>
8372
8373         PR tree-optimization/100051
8374         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
8375         disambiguator based on access size vs. decl size.
8376
8377 2021-04-27  Richard Biener  <rguenther@suse.de>
8378
8379         PR tree-optimization/100278
8380         * tree-ssa-pre.c (compute_avail): Give up when we cannot
8381         adjust TBAA beacuse of mismatching bases.
8382
8383 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
8384
8385         PR target/99405
8386         * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
8387         For any_rotate define_insn_split and following splitters, use
8388         SWI iterator instead of SWI48.
8389
8390 2021-04-27  Richard Biener  <rguenther@suse.de>
8391
8392         PR tree-optimization/99776
8393         * match.pd (bit_field_ref (ctor)): Relax element extract
8394         type compatibility checks.
8395
8396 2021-04-27  Cui,Lili  <lili.cui@intel.com>
8397
8398         * common/config/i386/i386-common.c (processor_names):
8399         Sync processor_names with processor_type.
8400         * config/i386/i386-options.c (processor_cost_table):
8401         Sync processor_cost_table with processor_type.
8402
8403 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
8404
8405         * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
8406         (irange::set): Call irange_set_1bit_anti_range for handling all
8407         1-bit ranges.  Fall through on ~[MIN,MAX].
8408
8409 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
8410
8411         * value-range.cc (irange::legacy_num_pairs): Remove.
8412         (irange::invert): Change gcc_assert to gcc_checking_assert.
8413         * value-range.h (irange::num_pairs): Adjust for a cached
8414         num_pairs().  Also, rename all gcc_assert's to
8415         gcc_checking_assert's.
8416
8417 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
8418
8419         * value-range.cc (irange::operator=): Set m_kind.
8420         (irange::copy_to_legacy): Handle varying and undefined sources
8421         as a legacy copy since they can be easily copied.
8422         (irange::irange_set): Set m_kind.
8423         (irange::irange_set_anti_range): Same.
8424         (irange::set): Rename normalize_min_max to normalize_kind.
8425         (irange::verify_range): Adjust for multi-ranges having the
8426         m_kind field set.
8427         (irange::irange_union): Set m_kind.
8428         (irange::irange_intersect): Same.
8429         (irange::invert): Same.
8430         * value-range.h (irange::kind): Always return m_kind.
8431         (irange::varying_p): Rename to...
8432         (irange::varying_comptaible_p): ...this.
8433         (irange::undefined_p): Only look at m_kind.
8434         (irange::irange): Always set VR_UNDEFINED if applicable.
8435         (irange::set_undefined): Always set VR_UNDEFINED.
8436         (irange::set_varying): Always set m_kind to VR_VARYING.
8437         (irange::normalize_min_max): Rename to...
8438         (irange::normalize_kind): ...this.
8439
8440 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
8441
8442         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
8443         Adjust for constant_p including varying_p.
8444         * tree-vrp.c (vrp_prop::finalize): Same.
8445         (determine_value_range): Same.
8446         * vr-values.c (vr_values::range_of_expr): Same.
8447         * value-range.cc (irange::symbolic_p): Do not check varying_p.
8448         (irange::constant_p): Same.
8449
8450 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
8451
8452         * value-range.cc (irange::legacy_lower_bound): Replace
8453           !undefined_p check with num_ranges > 0.
8454         (irange::legacy_upper_bound): Same.
8455         * value-range.h (irange::type): Same.
8456         (irange::lower_bound): Same.
8457         (irange::upper_bound): Same.
8458
8459 2021-04-26  Richard Biener  <rguenther@suse.de>
8460
8461         PR tree-optimization/99956
8462         * gimple-loop-interchange.cc (compute_access_stride):
8463         Try instantiating the access in a shallower loop nest
8464         if instantiating failed.
8465         (compute_access_strides): Pass adjustable loop_nest
8466         to compute_access_stride.
8467
8468 2021-04-26  Christophe Lyon  <christophe.lyon@linaro.org>
8469
8470         * doc/sourcebuild.texi (arm_cmse_hw): Document.
8471
8472 2021-04-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8473
8474         * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
8475
8476 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
8477             Nathan Sidwell  <nathan@codesourcery.com>
8478             Tom de Vries  <vries@codesourcery.com>
8479             Julian Brown  <julian@codesourcery.com>
8480             Kwok Cheung Yeung  <kcy@codesourcery.com>
8481
8482         * omp-offload.c (oacc_validate_dims): Implement
8483         '-Wopenacc-parallelism'.
8484         * doc/invoke.texi (-Wopenacc-parallelism): Document.
8485
8486 2021-04-26  Richard Biener  <rguenther@suse.de>
8487
8488         * tree-cfg.h (gimplify_build1): Remove.
8489         (gimplify_build2): Likewise.
8490         (gimplify_build3): Likewise.
8491         * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
8492         (gimplify_build2): Likewise.
8493         (gimplify_build3): Likewise.
8494         * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
8495         Modernize.
8496         (gimplify_build2): Likewise.
8497         (gimplify_build3): Likewise.
8498         (tree_vec_extract): Use resimplify with following SSA edges.
8499         (expand_vector_parallel): Avoid passing NULL size/bitpos
8500         to tree_vec_extract.
8501         * expr.c (store_constructor): Deal with zero-element CTORs.
8502         * match.pd (bit_field_ref <vector CTOR>): Make sure to
8503         produce vector constants when possible.
8504
8505 2021-04-26  Richard Biener  <rguenther@suse.de>
8506
8507         * tree-complex.c: Include gimple-fold.h.
8508         (expand_complex_addition): Use gimple_build.
8509         (expand_complex_multiplication_components): Likewise.
8510         (expand_complex_multiplication): Likewise.
8511         (expand_complex_div_straight): Likewise.
8512         (expand_complex_div_wide): Likewise.
8513         (expand_complex_division): Likewise.
8514         (expand_complex_conjugate): Likewise.
8515         (expand_complex_comparison): Likewise.
8516
8517 2021-04-26  Richard Biener  <rguenther@suse.de>
8518
8519         * tree-ssa-phiopt.c (two_value_replacement): Remove use
8520         of legacy gimplify_buildN API.
8521
8522 2021-04-26  Richard Biener  <rguenther@suse.de>
8523
8524         PR tree-optimization/99473
8525         * tree-ssa-phiopt.c (cond_store_replacement): Handle all
8526         stores.
8527
8528 2021-04-26  Richard Biener  <rguenther@suse.de>
8529
8530         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
8531         Use replace_call_with_value.
8532
8533 2021-04-26  Richard Biener  <rguenther@suse.de>
8534
8535         * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
8536         (update_gimple_call): Likewise.
8537         (update_call_from_tree): Likewise.
8538         * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
8539         (valid_gimple_call_p): Likewise.
8540         (move_ssa_defining_stmt_for_defs): Likewise.
8541         (finish_update_gimple_call): Likewise.
8542         (update_gimple_call): Likewise.
8543         (update_call_from_tree): Likewise.
8544         (propagate_tree_value_into_stmt): Use replace_call_with_value.
8545         * gimple-fold.h (update_gimple_call): Declare.
8546         * gimple-fold.c (valid_gimple_rhs_p): Move here from
8547         tree-ssa-propagate.c.
8548         (update_gimple_call): Likewise.
8549         (valid_gimple_call_p): Likewise.
8550         (finish_update_gimple_call): Likewise, and simplify.
8551         (gimplify_and_update_call_from_tree): Implement
8552         update_call_from_tree functionality, avoid excessive
8553         push/pop_gimplify_context.
8554         (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
8555         (gimple_fold_call): Likewise.
8556         * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
8557         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
8558         (pass_fold_builtins::execute): Likewise.
8559         (optimize_stack_restore): Use replace_call_with_value.
8560         * tree-cfg.c (fold_loop_internal_call): Likewise.
8561         * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
8562         only gimplify_and_update_call_from_tree.
8563         * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
8564         (handle_builtin_strchr): Likewise.
8565         * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
8566
8567 2021-04-26  Jakub Jelinek  <jakub@redhat.com>
8568
8569         PR debug/100255
8570         * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
8571         vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
8572         register keywords.
8573
8574 2021-04-25  liuhongt  <hongtao.liu@intel.com>
8575
8576         PR target/98911
8577         * config/i386/i386-builtin.def (BDESC): Change the icode of
8578         the following builtins to CODE_FOR_nothing.
8579         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
8580         IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
8581         IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
8582         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
8583         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
8584         IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
8585         IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
8586         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
8587         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
8588         * config/i386/sse.md (avx2_eq<mode>3): Deleted.
8589         (sse2_eq<mode>3): Ditto.
8590         (sse4_1_eqv2di3): Ditto.
8591         (sse2_gt<mode>3): Rename to ..
8592         (*sse2_gt<mode>3): .. this.
8593
8594 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
8595
8596         Revert:
8597         2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
8598
8599         PR target/100152
8600         * config/darwin.c (darwin_binds_local_p): Assume that any
8601         public symbol might be interposed for PIC code. Update function
8602         header comment to reflect current Darwin capability.
8603
8604 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
8605
8606         PR target/100152
8607         * config/darwin.c (darwin_binds_local_p): Assume that any
8608         public symbol might be interposed for PIC code. Update function
8609         header comment to reflect current Darwin capability.
8610
8611 2021-04-24  Richard Sandiford  <richard.sandiford@arm.com>
8612
8613         * doc/sourcebuild.texi: Document no-opts and any-opts target
8614         selectors.
8615
8616 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
8617
8618         * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
8619
8620 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
8621
8622         * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
8623
8624 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
8625
8626         PR target/100041
8627         * config/i386/i386-options.c (ix86_option_override_internal):
8628         Error out when -m96bit-long-double is used with 64bit targets.
8629         * config/i386/i386.md (*pushxf_rounded): Remove pattern.
8630
8631 2021-04-23  Martin Liska  <mliska@suse.cz>
8632
8633         * lto-wrapper.c: Remove FIXME about usage of
8634         hardware_concurrency. The function is not on par with
8635         what we have now.
8636
8637 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
8638
8639         PR target/100182
8640         * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
8641         Copy operand 3 to operand 4.  Use sse_reg_operand
8642         as operand 3 predicate.
8643         (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
8644         (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
8645         (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
8646         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
8647         Copy operand 1 to operand 0.
8648         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
8649         (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
8650         (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
8651
8652 2021-04-23  Alex Coplan  <alex.coplan@arm.com>
8653
8654         PR rtl-optimization/100230
8655         * early-remat.c (early_remat::sort_candidates): Use delete[]
8656         instead of delete for array allocated with new[].
8657
8658 2021-04-23  Richard Biener  <rguenther@suse.de>
8659
8660         * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
8661         (capture_info::capture_info): Likewise.
8662         (capture_info::walk_match): Likewise.
8663         (expr::gen_transform): Likewise.
8664         (dt_simplify::gen_1): Likewise.
8665         * gimple-match-head.c (maybe_resimplify_conditional_op):
8666         Remove VEC_COND_EXPR special-casing.
8667         (gimple_simplify): Likewise.
8668         * gimple.c (gimple_could_trap_p_1): Adjust.
8669         * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
8670         to participate in PRE.
8671
8672 2021-04-23  Richard Biener  <rguenther@suse.de>
8673
8674         * cfganal.c (connect_infinite_loops_to_exit): First call
8675         add_noreturn_fake_exit_edges.
8676         * ipa-sra.c (process_scan_results): Do not call the now redundant
8677         add_noreturn_fake_exit_edges.
8678         * predict.c (tree_estimate_probability): Likewise.
8679         (rebuild_frequencies): Likewise.
8680         * store-motion.c (one_store_motion_pass): Likewise.
8681
8682 2021-04-23  Richard Biener  <rguenther@suse.de>
8683
8684         PR tree-optimization/100222
8685         * predict.c (pass_profile::execute): Remove redundant call to
8686         mark_irreducible_loops.
8687         (report_predictor_hitrates): Likewise.
8688
8689 2021-04-23  Richard Biener  <rguenther@suse.de>
8690
8691         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
8692         valid_gimple_rhs_p by instead gimplifying to one.
8693
8694 2021-04-23  Richard Biener  <rguenther@suse.de>
8695
8696         PR tree-optimization/99971
8697         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
8698         Always use TBAA for loads.
8699
8700 2021-04-23  liuhongt  <hongtao.liu@intel.com>
8701
8702         PR target/100093
8703         * config/i386/i386-options.c (ix86_option_override_internal):
8704         Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
8705         when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
8706         by target attribute.
8707
8708 2021-04-23  David Edelsohn  <dje.gcc@gmail.com>
8709
8710         * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
8711         DWARF2_DEBUG.
8712         * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
8713
8714 2021-04-22  David Edelsohn  <dje.gcc@gmail.com>
8715
8716         * config.gcc (powerpc-ibm-aix6.*): Remove.
8717         * config/rs6000/aix61.h: Delete.
8718
8719 2021-04-22  Martin Liska  <mliska@suse.cz>
8720
8721         PR testsuite/100159
8722         PR testsuite/100192
8723         * builtins.c (expand_builtin): Fix typos and missing comments.
8724         * dwarf2out.c (gen_subprogram_die): Likewise.
8725         (gen_struct_or_union_type_die): Likewise.
8726
8727 2021-04-22  Uroš Bizjak  <ubizjak@gmail.com>
8728
8729         PR target/100119
8730         * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
8731         Remove the sign with FE_DOWNWARD, where x - x = -0.0.
8732
8733 2021-04-21  Iain Sandoe  <iain@sandoe.co.uk>
8734
8735         * config/i386/darwin.h (TARGET_64BIT): Remove definition
8736         based on TARGET_ISA_64BIT.
8737         (TARGET_64BIT_P): Remove definition based on
8738         TARGET_ISA_64BIT_P().
8739
8740 2021-04-21  Martin Liska  <mliska@suse.cz>
8741
8742         Revert:
8743         2021-04-21  Martin Liska  <mliska@suse.cz>
8744
8745         * lto-wrapper.c (cpuset_popcount): Remove.
8746         (init_num_threads): Remove and use hardware_concurrency.
8747
8748 2021-04-21  Martin Liska  <mliska@suse.cz>
8749
8750         PR jit/98615
8751         * main.c (main): Call toplev::finalize in CHECKING_P mode.
8752         * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
8753         when incremental LTO linking happens.
8754
8755 2021-04-21  Martin Liska  <mliska@suse.cz>
8756
8757         * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
8758         makeserver cannot be detected, then use -flto=N fallback.
8759
8760 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
8761
8762         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
8763         default to yes for aarch64-linux-gnu.
8764         * configure: Regenerate.
8765
8766 2021-04-21  Martin Liska  <mliska@suse.cz>
8767
8768         * lto-wrapper.c (cpuset_popcount): Remove.
8769         (init_num_threads): Remove and use hardware_concurrency.
8770
8771 2021-04-21  Martin Liska  <mliska@suse.cz>
8772
8773         * config/i386/i386.c: Remove superfluous || TARGET_MACHO
8774         which remains to be '(... || 0)' and clang complains about it.
8775         * dwarf2out.c (AT_vms_delta): Declare conditionally.
8776         (add_AT_vms_delta): Likewise.
8777         * tree.c (fld_simplified_type): Use rather more common pattern
8778         for disabling of something (#if 0).
8779         (get_tree_code_name): Likewise.
8780         (verify_type_variant): Likewise.
8781
8782 2021-04-21  Martin Liska  <mliska@suse.cz>
8783
8784         * config/i386/i386-expand.c (decide_alignment): Use newly named
8785         macro TARGET_CPU_P.
8786         * config/i386/i386.c (ix86_decompose_address): Likewise.
8787         (ix86_address_cost): Likewise.
8788         (ix86_lea_outperforms): Likewise.
8789         (ix86_avoid_lea_for_addr): Likewise.
8790         (ix86_add_stmt_cost): Likewise.
8791         * config/i386/i386.h (TARGET_*): Remove.
8792         (TARGET_CPU_P): New macro.
8793         * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
8794         * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
8795         (swap_top_of_ready_list): Likewise.
8796         (ix86_atom_sched_reorder): Likewise.
8797         * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
8798         * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
8799
8800 2021-04-21  Martin Liska  <mliska@suse.cz>
8801
8802         * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
8803         Define.
8804         (SET_TARGET_NO_SAHF): Likewise.
8805         (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
8806         (SET_TARGET_PREFETCH_SSE): Likewise.
8807         (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
8808         (SET_TARGET_NO_TUNE): Likewise.
8809         (TARGET_EXPLICIT_NO_80387_P): Likewise.
8810         (SET_TARGET_NO_80387): Likewise.
8811         (DEF_PTA): New.
8812         * config/i386/i386.h (TARGET_*): Remove.
8813         * opth-gen.awk: Generate new used macros.
8814
8815 2021-04-21  Martin Liska  <mliska@suse.cz>
8816
8817         * config/i386/i386.h (PTA_*): Remove.
8818         (enum pta_flag): New.
8819         (DEF_PTA): Generate PTA_* values from i386-isa.def.
8820         * config/i386/i386-isa.def: New file.
8821
8822 2021-04-21  Alex Coplan  <alex.coplan@arm.com>
8823
8824         PR target/99988
8825         * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
8826         (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
8827         jump table targets.
8828
8829 2021-04-21  H.J. Lu  <hjl.tools@gmail.com>
8830
8831         * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
8832         x86_64-*-* targets.
8833         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
8834         New.
8835         (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
8836         (ix86_handle_option): Handle -mmwait.
8837         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
8838         Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
8839         __builtin_ia32_monitor and __builtin_ia32_mwait.
8840         * config/i386/i386-options.c (isa2_opts): Add -mmwait.
8841         (ix86_valid_target_attribute_inner_p): Likewise.
8842         (ix86_option_override_internal): Enable mwait/monitor
8843         instructions for -msse3.
8844         * config/i386/i386.h (TARGET_MWAIT): New.
8845         (TARGET_MWAIT_P): Likewise.
8846         * config/i386/i386.opt: Add -mmwait.
8847         * config/i386/mwaitintrin.h: New file.
8848         * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
8849         * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
8850         TARGET_MWAIT.
8851         (@sse3_monitor_<mode>): Likewise.
8852         * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
8853         * doc/extend.texi: Document mwait target attribute.
8854         * doc/invoke.texi: Document -mmwait.
8855
8856 2021-04-21  Martin Liska  <mliska@suse.cz>
8857
8858         * config/i386/i386-options.c (DEF_ENUM): Remove it.
8859         * config/i386/i386-opts.h (DEF_ENUM): Likewise.
8860         * config/i386/stringop.def (DEF_ENUM): Likewise.
8861
8862 2021-04-21  Martin Liska  <mliska@suse.cz>
8863
8864         * tree-cfg.c (gimple_verify_flow_info): Use qD instead
8865         of print_generic_expr.
8866
8867 2021-04-21  Jakub Jelinek  <jakub@redhat.com>
8868
8869         PR rtl-optimization/100148
8870         * cprop.c (constprop_register): Use next_nondebug_insn instead of
8871         NEXT_INSN.
8872
8873 2021-04-21  Martin Liska  <mliska@suse.cz>
8874
8875         PR ipa/98815
8876         * cgraphunit.c (cgraph_node::analyze): Remove duplicate
8877         free_dominance_info calls.
8878
8879 2021-04-21  Richard Biener  <rguenther@suse.de>
8880
8881         * gimple-fold.c (maybe_fold_reference): Remove is_lhs
8882         parameter (and assume it to be false).
8883         (fold_gimple_assign): Adjust, remove all callers of
8884         maybe_fold_reference calling it with is_lhs true.
8885         (gimple_fold_call): Likewise.
8886         (fold_stmt_1): Likewise.
8887
8888 2021-04-21  Richard Biener  <rguenther@suse.de>
8889
8890         * fold-const.c (pedantic_non_lvalue_loc): Remove.
8891         (fold_binary_loc): Adjust.
8892         (fold_ternary_loc): Likewise.
8893
8894 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
8895
8896         PR middle-end/100130
8897         * varasm.c (get_block_for_decl): Make sure that any use of the
8898         retain attribute matches the section's retain flag.
8899         (switch_to_section): Check for retain mismatches even when
8900         changing sections, but do not warn if the given decl is the
8901         section's named.decl.
8902         (output_object_block): Pass the first decl in the block (if any)
8903         to switch_to_section.
8904
8905 2021-04-20  H.J. Lu  <hjl.tools@gmail.com>
8906
8907         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8908         __CRC32__ for -mcrc32.
8909         * config/i386/i386-options.c (ix86_option_override_internal):
8910         Enable crc32 instruction for -msse4.2.
8911         * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
8912         check.
8913         (sse4_2_crc32di): Likewise.
8914         * config/i386/ia32intrin.h: Use crc32 target option for CRC32
8915         intrinsics.
8916
8917 2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>
8918
8919         PR target/100108
8920         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
8921         OPTION_MASK_ISEL.
8922
8923 2021-04-20  Martin Liska  <mliska@suse.cz>
8924
8925         * doc/invoke.texi: Fix typo.
8926         * params.opt: Likewise.
8927
8928 2021-04-20  Martin Liska  <mliska@suse.cz>
8929
8930         * doc/invoke.texi: Document new param.
8931
8932 2021-04-19  Andrew MacLeod  <amacleod@redhat.com>
8933
8934         PR tree-optimization/100081
8935         * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
8936         rather than gori_compute_cache.
8937         * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
8938         (range_def_chain::m_logical_depth): New member.
8939         (range_def_chain::range_def_chain): Initialize m_logical_depth.
8940         (range_def_chain::get_def_chain): Don't build defchains through more
8941         than LOGICAL_LIMIT logical expressions.
8942         * params.opt (param_ranger_logical_depth): New.
8943
8944 2021-04-19  Richard Earnshaw  <rearnsha@arm.com>
8945
8946         PR target/100067
8947         * config/arm/arm.c (arm_configure_build_target): Do not strip
8948         extended FPU/SIMD feature bits from the target ISA when -mfpu
8949         is specified (partial revert of r11-8168).
8950
8951 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
8952
8953         * params.opt (-param=openacc-kernels=): Add.
8954         * omp-oacc-kernels-decompose.cc
8955         (pass_omp_oacc_kernels_decompose::gate): Use it.
8956         * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
8957         (--param): ... here, 'openacc-kernels'.
8958
8959 2021-04-19  Martin Liska  <mliska@suse.cz>
8960
8961         PR c/100143
8962         * gengtype.c (finish_root_table): Align function arguments
8963         in between declaration and definition.
8964
8965 2021-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8966
8967         * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
8968         frames larger than the SEH maximum frame size.
8969
8970 2021-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
8971
8972         PR rtl-optimization/99927
8973         * combine.c (distribute_notes) [REG_UNUSED]: If the register already
8974         is dead, just drop it.
8975
8976 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
8977
8978         PR d/99914
8979         * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
8980         * doc/tm.texi: Regenerate.
8981         * doc/tm.texi.in (D language and ABI): Add @hook for
8982         TARGET_D_TEMPLATES_ALWAYS_COMDAT.
8983
8984 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
8985
8986         * config/darwin-d.c (darwin_d_handle_target_object_format): New
8987         function.
8988         (darwin_d_register_target_info): New function.
8989         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
8990         * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
8991         function.
8992         (dragonfly_d_register_target_info): New function.
8993         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
8994         * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
8995         function.
8996         (freebsd_d_register_target_info): New function.
8997         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
8998         * config/glibc-d.c (glibc_d_handle_target_object_format): New
8999         function.
9000         (glibc_d_register_target_info): New function.
9001         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9002         * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
9003         function.
9004         (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
9005         as handler for objectFormat key.
9006         * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
9007         function.
9008         (winnt_d_register_target_info): New function.
9009         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9010         * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
9011         function.
9012         (netbsd_d_register_target_info): New function.
9013         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9014         * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
9015         function.
9016         (openbsd_d_register_target_info): New function.
9017         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9018         * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
9019         (pa_d_register_target_info): Add pa_d_handle_target_object_format as
9020         handler for objectFormat key.
9021         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
9022         function.
9023         (rs6000_d_register_target_info): Add
9024         rs6000_d_handle_target_object_format as handler for objectFormat key.
9025         * config/sol2-d.c (solaris_d_handle_target_object_format): New
9026         function.
9027         (solaris_d_register_target_info): New function.
9028         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
9029
9030 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
9031
9032         PR target/91710
9033         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
9034         abi_break argument from bool * to unsigned *, store there the pre-GCC 9
9035         alignment.
9036         (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
9037         (aarch64_function_arg_regno_p): Likewise.  Only emit -Wpsabi note if
9038         the old and new alignment after applying MIN/MAX to it is different.
9039
9040 2021-04-16  Tamar Christina  <tamar.christina@arm.com>
9041
9042         PR target/100048
9043         * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
9044         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
9045         TRN optab.
9046         * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
9047
9048 2021-04-16  Bill Schmidt  <wschmidt@linux.ibm.com>
9049
9050         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
9051         this section and its subsections.
9052
9053 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
9054
9055         PR target/100075
9056         * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
9057         define_insn patterns.
9058
9059 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
9060
9061         PR rtl-optimization/98689
9062         * reg-notes.def (UNTYPED_CALL): New note.
9063         * combine.c (distribute_notes): Handle it.
9064         * emit-rtl.c (try_split): Likewise.
9065         * rtlanal.c (rtx_properties::try_to_add_insn): Likewise.  Assume
9066         that calls with the note implicitly set all return value registers.
9067         * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
9068         to untyped_calls.
9069
9070 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
9071
9072         PR rtl-optimization/99596
9073         * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
9074         register accesses for const calls.  Assume that pure functions
9075         can only read from global registers.  Ignore cases in which
9076         the stack pointer has been marked global.
9077
9078 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
9079
9080         PR target/99767
9081         * tree-vect-loop.c (vect_transform_loop): Don't remove just
9082         dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
9083         them by their last argument.
9084
9085 2021-04-15  Martin Liska  <mliska@suse.cz>
9086
9087         * doc/invoke.texi: Other params don't use it, remove it.
9088
9089 2021-04-15  Richard Biener  <rguenther@suse.de>
9090
9091         * gimple-builder.h: Add deprecation note.
9092
9093 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
9094
9095         PR c++/98852
9096         * attribs.h (restrict_type_identity_attributes_to): Declare.
9097         * attribs.c (restrict_type_identity_attributes_to): New function.
9098
9099 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
9100
9101         PR c/98852
9102         * attribs.h (affects_type_identity_attributes): Declare.
9103         * attribs.c (remove_attributes_matching): New function.
9104         (affects_type_identity_attributes): Likewise.
9105
9106 2021-04-15  Jakub Jelinek  <jakub@redhat.com>
9107
9108         PR target/100056
9109         * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
9110         Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
9111         ZERO_EXTEND, SIGN_EXTEND or AND.
9112
9113 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
9114
9115         PR rtl-optimization/99929
9116         * rtl.h (same_vector_encodings_p): New function.
9117         * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
9118         * cselib.c (rtx_equal_for_cselib_1): Likewise.
9119         * jump.c (rtx_renumbered_equal_p): Likewise.
9120         * lra-constraints.c (operands_match_p): Likewise.
9121         * reload.c (operands_match_p): Likewise.
9122         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
9123
9124 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
9125
9126         * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
9127         more information about variable-length CONST_VECTORs.
9128
9129 2021-04-14  Vladimir N. Makarov  <vmakarov@redhat.com>
9130
9131         PR rtl-optimization/100066
9132         * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
9133         ordered modes when choosing splitting mode for hard reg.
9134
9135 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
9136
9137         PR target/99246
9138         * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
9139         New function.
9140         (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
9141
9142 2021-04-14  Andreas Krebbel  <krebbel@linux.ibm.com>
9143
9144         * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
9145         for mask operand types.
9146         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
9147         (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
9148         operand.
9149         (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
9150         immediate operand.
9151         * config/s390/s390.c (s390_const_operand_ok): Check the new
9152         operand types and generate a list of valid values.
9153
9154 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
9155
9156         * doc/tm.texi: Regenerate.
9157         * doc/tm.texi.in (D language and ABI): Add @hook for
9158         TARGET_D_REGISTER_OS_TARGET_INFO.
9159
9160 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
9161
9162         * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
9163         function.
9164         (aarch64_d_register_target_info): New function.
9165         * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
9166         Declare.
9167         * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
9168         Define.
9169         * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
9170         (arm_d_register_target_info): New function.
9171         * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
9172         * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
9173         * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
9174         (ix86_d_register_target_info): New function.
9175         * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
9176         * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
9177         * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
9178         (mips_d_register_target_info): New function.
9179         * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
9180         * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
9181         * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
9182         (pa_d_register_target_info): New function.
9183         * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
9184         * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
9185         * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
9186         function.
9187         (riscv_d_register_target_info): New function.
9188         * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
9189         * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
9190         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
9191         function.
9192         (rs6000_d_register_target_info): New function.
9193         * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
9194         Declare.
9195         * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
9196         * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
9197         (s390_d_register_target_info): New function.
9198         * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
9199         * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
9200         * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
9201         function.
9202         (sparc_d_register_target_info): New function.
9203         * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
9204         * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
9205         * doc/tm.texi: Regenerate.
9206         * doc/tm.texi.in (D language and ABI): Add @hook for
9207         TARGET_D_REGISTER_CPU_TARGET_INFO.
9208
9209 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
9210
9211         * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
9212         * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
9213         * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
9214         * doc/tm.texi: Regenerate.
9215         * doc/tm.texi.in (D language and ABI): Add @hook for
9216         TARGET_D_HAS_STDCALL_CONVENTION.
9217
9218 2021-04-14  Richard Biener  <rguenther@suse.de>
9219
9220         * tree-cfg.c (verify_gimple_assign_ternary): Verify that
9221         VEC_COND_EXPRs have a gimple_val condition.
9222         * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
9223         can no longer have a GENERIC condition.
9224
9225 2021-04-14  Richard Earnshaw  <rearnsha@arm.com>
9226
9227         PR target/100067
9228         * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
9229         from the isa_delta when -mfpu has been used.
9230         (arm_options_perform_arch_sanity_checks): It's the architecture that
9231         lacks an FPU not the processor.
9232
9233 2021-04-13  Richard Biener  <rguenther@suse.de>
9234
9235         PR tree-optimization/100053
9236         * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
9237         not use optimistic dominance queries for backedges to validate
9238         predicated values.
9239         (dominated_by_p_w_unex): Add parameter to ignore executable
9240         state on backedges.
9241         (rpo_elim::eliminate_avail): Adjust.
9242
9243 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
9244
9245         PR target/100028
9246         * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
9247         *aarch64_bfxilsi_extrdi): New define_insn patterns.
9248
9249 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
9250
9251         PR target/99648
9252         * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
9253         outermode, return NULL if the result doesn't encode back to the
9254         original byte sequence.
9255         (simplify_gen_subreg): Don't create SUBREGs from constants to
9256         MODE_COMPOSITE_P outermode.
9257
9258 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
9259
9260         PR rtl-optimization/99905
9261         * combine.c (expand_compound_operation): If pos + len > modewidth,
9262         perform the right shift by pos in inner_mode and then convert to mode,
9263         instead of trying to simplify a shift of rtx with inner_mode by pos
9264         as if it was a shift in mode.
9265
9266 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
9267
9268         PR debug/99830
9269         * combine.c (simplify_and_const_int_1): Don't optimize varop
9270         away if it has side-effects.
9271
9272 2021-04-12  Martin Liska  <mliska@suse.cz>
9273
9274         * doc/extend.texi: Escape @smallexample content.
9275
9276 2021-04-12  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
9277
9278         * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
9279           alternative in order to load a DFP zero.
9280
9281 2021-04-12  Martin Liska  <mliska@suse.cz>
9282
9283         * doc/extend.texi: Be more precise in documentation
9284         of symver attribute.
9285
9286 2021-04-12  Martin Liska  <mliska@suse.cz>
9287
9288         PR sanitizer/99877
9289         * gimplify.c (gimplify_expr): Right now, we unpoison all
9290         variables before a goto <dest>. We should not do it if we are
9291         in a omp context.
9292
9293 2021-04-12  Cui,Lili  <lili.cui@intel.com>
9294
9295         * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
9296         rocketlake.
9297         * common/config/i386/i386-common.c (processor_names): Add
9298         rocketlake.
9299         (processor_alias_table): Add rocketlake.
9300         * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
9301         INTEL_COREI7_ROCKETLAKE.
9302         * config.gcc: Add -march=rocketlake.
9303         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9304         rocketlake.
9305         * config/i386/i386-options.c (m_ROCKETLAKE)  : Define.
9306         (processor_cost_table): Add rocketlake cost.
9307         * config/i386/i386.h (ix86_size_cost) : Define
9308         TARGET_ROCKETLAKE.
9309         (processor_type) : Add PROCESSOR_ROCKETLAKE.
9310         (PTA_ROCKETLAKE): Ditto.
9311         * doc/extend.texi: Add rocketlake.
9312         * doc/invoke.texi: Add rocketlake.
9313
9314 2021-04-12  Cui,Lili  <lili.cui@intel.com>
9315
9316         * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
9317         * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
9318         * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
9319         * doc/invoke.texi: Change alderlake ISA list.
9320
9321 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
9322
9323         PR middle-end/98088
9324         * omp-expand.c (expand_oacc_collapse_init): Update condition in
9325         a gcc_assert.
9326
9327 2021-04-10  H.J. Lu  <hjl.tools@gmail.com>
9328
9329         PR target/99744
9330         * config/i386/serializeintrin.h (_serialize): Defined as macro.
9331
9332 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
9333
9334         PR lto/99849
9335         * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
9336         just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
9337
9338 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
9339
9340         PR middle-end/99989
9341         * gimple-ssa-warn-alloca.c
9342         (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
9343         0 with integer precision unconditionally.
9344
9345 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
9346
9347         PR rtl-optimization/98601
9348         * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
9349         not just for BLKmode, but also for VOIDmode.  For STRICT_ALIGNMENT
9350         unaligned_mems handle VOIDmode like BLKmode.
9351
9352 2021-04-10  Jan Hubicka  <hubicka@ucw.cz>
9353
9354         PR lto/99857
9355         * tree.c (free_lang_data_in_decl): Do not release body of
9356         declare_variant_alt.
9357
9358 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
9359
9360         * config/aarch64/aarch64.c (aarch64_option_restore): If the
9361         architecture was specified explicitly and the tuning wasn't,
9362         tune for the architecture rather than the configured default CPU.
9363
9364 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
9365
9366         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
9367         as the temporary register.
9368
9369 2021-04-09  Martin Liska  <mliska@suse.cz>
9370
9371         * doc/extend.texi: Move non-target attributes on the top level.
9372
9373 2021-04-09  Martin Liska  <mliska@suse.cz>
9374
9375         * doc/invoke.texi: Document minimum and maximum value of the
9376         argument for both supported compression algorithms.
9377
9378 2021-04-08  David Edelsohn  <dje.gcc@gmail.com>
9379
9380         * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
9381         TLS BSS before TLS data.
9382         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
9383
9384 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
9385
9386         * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
9387
9388 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
9389
9390         * match.pd: Extend vec_cond folds to handle shifts.
9391
9392 2021-04-08  Maciej W. Rozycki  <macro@orcam.me.uk>
9393
9394         * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
9395         peephole.
9396
9397 2021-04-08  Alex Coplan  <alex.coplan@arm.com>
9398
9399         PR target/99647
9400         * config/arm/iterators.md (MVE_vecs): New.
9401         (V_elem): Also handle V2DF.
9402         * config/arm/mve.md (*mve_mov<mode>): Rename to ...
9403         (*mve_vdup<mode>): ... this. Remove second alternative since
9404         vec_duplicate of const_int is not canonical RTL, and we don't
9405         want to match symbol_refs.
9406         (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
9407
9408 2021-04-08  Xionghu Luo  <luoxhu@linux.ibm.com>
9409
9410         * fold-const.c (fold_single_bit_test): Fix typo.
9411         * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
9412         instead.
9413
9414 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
9415
9416         PR tree-optimization/97513
9417         * tree-vect-slp.c (vect_add_slp_permutation): New function,
9418         split out from...
9419         (vectorizable_slp_permutation): ...here.  Detect cases in which
9420         all VEC_PERM_EXPRs are guaranteed to have the same stepped
9421         permute vector and only generate one permute vector for that case.
9422         Extend that case to handle variable-length vectors.
9423
9424 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
9425
9426         PR tree-optimization/99873
9427         * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
9428         (vect_build_slp_instance): Don't split store groups that could
9429         use IFN_STORE_LANES.
9430
9431 2021-04-07  Jakub Jelinek  <jakub@redhat.com>
9432
9433         PR target/99872
9434         * varasm.c (output_constant_pool_contents): Don't strip name encoding
9435         from XSTR (desc->sym, 0) or from label before passing those to
9436         ASM_OUTPUT_DEF.
9437
9438 2021-04-07  Richard Biener  <rguenther@suse.de>
9439
9440         PR tree-optimization/99954
9441         * tree-loop-distribution.c: Include tree-affine.h.
9442         (generate_memcpy_builtin): Try using tree-affine to prove
9443         non-overlap.
9444         (loop_distribution::classify_builtin_ldst): Always classify
9445         as PKIND_MEMMOVE.
9446
9447 2021-04-07  Richard Biener  <rguenther@suse.de>
9448
9449         PR tree-optimization/99947
9450         * tree-vect-loop.c (vectorizable_induction): Pre-allocate
9451         steps vector to avoid pushing elements from the reallocated
9452         vector.
9453
9454 2021-04-07  Richard Biener  <rguenther@suse.de>
9455
9456         * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
9457         * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
9458         printing...
9459         * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
9460         function.
9461         (debug_vn_reference_ops): New.
9462
9463 2021-04-07  Bin Cheng  <bin.cheng@linux.alibaba.com>
9464
9465         PR tree-optimization/98736
9466         * tree-loop-distribution.c
9467         * (loop_distribution::bb_top_order_init):
9468         Compute RPO with programing order preserved by calling function
9469         rev_post_order_and_mark_dfs_back_seme.
9470
9471 2021-04-06  Vladimir N. Makarov  <vmakarov@redhat.com>
9472
9473         PR target/99781
9474         * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
9475         * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
9476         functions.
9477         (process_bb_lives): Don't update biggest mode of hard reg for
9478         implicit in multi-register group.  Use the new functions for
9479         updating dead_set and unused_set by register notes.
9480
9481 2021-04-06  Xianmiao Qu  <xianmiao_qu@c-sky.com>
9482
9483         * config/csky/csky_pipeline_ck802.md : Use insn reservation name
9484         instead of *.
9485
9486 2021-04-06  H.J. Lu  <hjl.tools@gmail.com>
9487
9488         * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
9489         (skylake_memset): Likewise.
9490         (skylake_cost): Change CLEAR_RATIO to 17.
9491         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
9492         Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
9493         m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
9494
9495 2021-04-06  Richard Biener  <rguenther@suse.de>
9496
9497         PR tree-optimization/99880
9498         * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
9499         set vectorized defs of relevant PHIs.
9500
9501 2021-04-06  Richard Biener  <rguenther@suse.de>
9502
9503         PR tree-optimization/99924
9504         * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
9505         nodes w/o scalar stmts as visited.
9506
9507 2021-04-06  Alex Coplan  <alex.coplan@arm.com>
9508
9509         PR target/99748
9510         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
9511         PCS for [su]fix_optab.
9512
9513 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
9514
9515         * config/darwin.c (machopic_legitimize_pic_address): Check
9516         that the current pic register is one of the hard reg set
9517         before setting liveness.
9518
9519 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
9520
9521         * config/darwin.c (machopic_legitimize_pic_address): Fix
9522         whitespace, remove unused code.
9523
9524 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
9525
9526         PR tree-optimization/99882
9527         * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
9528         pointer type.
9529
9530 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
9531
9532         PR rtl-optimization/99863
9533         * dse.c (replace_read): Drop regs_live argument.  Instead of
9534         regs_live, use store_insn->fixed_regs_live if non-NULL,
9535         otherwise punt if insns sequence clobbers or sets any hard
9536         registers.
9537
9538 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
9539
9540         PR testsuite/98125
9541         * targhooks.h (default_print_patchable_function_entry_1): Declare.
9542         * targhooks.c (default_print_patchable_function_entry_1): New function,
9543         copied from default_print_patchable_function_entry with an added flags
9544         argument.
9545         (default_print_patchable_function_entry): Rewritten into a small
9546         wrapper around default_print_patchable_function_entry_1.
9547         * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
9548         Redefine.
9549         (rs6000_print_patchable_function_entry): New function.
9550
9551 2021-04-02  Eric Botcazou  <ebotcazou@adacore.com>
9552
9553         * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
9554
9555 2021-04-01  Jason Merrill  <jason@redhat.com>
9556
9557         PR c++/98481
9558         * common.opt: Document v15 and v16.
9559
9560 2021-04-01  Richard Biener  <rguenther@suse.de>
9561
9562         PR tree-optimization/99863
9563         * gimplify.c (gimplify_init_constructor): Recompute vector
9564         constructor flags.
9565
9566 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
9567
9568         * doc/extend.texi (symver attribute): Fix up syntax errors
9569         in the examples.
9570
9571 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
9572
9573         PR tree-optimization/96573
9574         * gimple-ssa-store-merging.c (init_symbolic_number): Handle
9575         also pointer types.
9576
9577 2021-04-01  Richard Biener  <rguenther@suse.de>
9578
9579         PR tree-optimization/99856
9580         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
9581         precision to vector element precision.
9582
9583 2021-04-01  Martin Jambor  <mjambor@suse.cz>
9584
9585         PR tree-optimization/97009
9586         * tree-sra.c (access_or_its_child_written): New function.
9587         (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
9588         test.
9589
9590 2021-03-31  Jan Hubicka  <hubicka@ucw.cz>
9591
9592         PR ipa/98265
9593         * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
9594
9595 2021-03-31  Pat Haugen  <pthaugen@linux.ibm.com>
9596
9597         PR target/99133
9598         * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
9599         xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
9600         xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
9601         * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
9602         mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
9603         mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
9604         Likewise.
9605         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
9606         * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
9607         (define_attr "prefixed"): Update initializer.
9608
9609 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
9610
9611         PR debug/99490
9612         * dwarf2out.c (debug_ranges_dwo_section): New variable.
9613         (DW_RANGES_IDX_SKELETON): Define.
9614         (struct dw_ranges): Add begin_entry and end_entry members.
9615         (DEBUG_DWO_RNGLISTS_SECTION): Define.
9616         (add_ranges_num): Adjust r initializer for addition of *_entry
9617         members.
9618         (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
9619         set idx to DW_RANGES_IDX_SKELETON.
9620         (use_distinct_base_address_for_range): New function.
9621         (index_rnglists): Don't set r->idx if it is equal to
9622         DW_RANGES_IDX_SKELETON.  Initialize r->begin_entry and
9623         r->end_entry for -gsplit-dwarf if those will be needed by
9624         output_rnglists.
9625         (output_rnglists): Add DWO argument.  If true, switch to
9626         debug_ranges_dwo_section rather than debug_ranges_section.
9627         Adjust l1/l2 label indexes.  Only output the offset table when
9628         dwo is true and don't include in there the skeleton range
9629         entry if present.  For -gsplit-dwarf, skip ranges that belong
9630         to the other rnglists section.  Change return type from void
9631         to bool and return true if there are any range entries for
9632         the other section.  For dwarf_split_debug_info use
9633         DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
9634         entries instead of DW_RLE_start_end, DW_RLE_start_length and
9635         DW_RLE_base_address.  Use use_distinct_base_address_for_range.
9636         (init_sections_and_labels): Initialize debug_ranges_dwo_section
9637         if -gsplit-dwarf and DWARF >= 5.  Adjust ranges_section_label
9638         and range_base_label indexes.
9639         (dwarf2out_finish): Call index_rnglists earlier before finalizing
9640         .debug_addr.  Never emit DW_AT_rnglists_base attribute.  For
9641         -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
9642         with different dwo arguments.
9643         (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
9644
9645 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
9646
9647         PR tree-optimization/98268
9648         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
9649         recompute_tree_invariant_for_addr_expr after successfully
9650         folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
9651
9652 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
9653
9654         PR tree-optimization/99726
9655         * tree-data-ref.c (create_intersect_range_checks_index): Bail
9656         out if there is more than one access function SCEV for the loop
9657         being versioned.
9658
9659 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
9660
9661         PR rtl-optimization/97141
9662         PR rtl-optimization/98726
9663         * emit-rtl.c (valid_for_const_vector_p): Return true for
9664         CONST_POLY_INT_P.
9665         * rtx-vector-builder.h (rtx_vector_builder::step): Return a
9666         poly_wide_int instead of a wide_int.
9667         (rtx_vector_builder::apply_set): Take a poly_wide_int instead
9668         of a wide_int.
9669         * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
9670         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
9671         false for CONST_VECTORs that cannot be forced to memory.
9672         * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
9673         is too complex to force to memory, build it up from individual
9674         elements instead.
9675
9676 2021-03-31  Jan Hubicka  <jh@suse.cz>
9677
9678         PR lto/99447
9679         * cgraph.c (cgraph_node::release_body): Fix overactive check.
9680
9681 2021-03-31  Christophe Lyon  <christophe.lyon@linaro.org>
9682
9683         PR target/99786
9684         * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
9685         for V4HI and V2SI.
9686
9687 2021-03-31  H.J. Lu  <hjl.tools@gmail.com>
9688
9689         * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
9690         For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
9691         to SImode.
9692         (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
9693         "rep movsb/stosb" only for known sizes.
9694         * config/i386/i386-options.c (processor_cost_table): Use Ice
9695         Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
9696         Rapids and Alder Lake.
9697         * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
9698         * config/i386/x86-tune-costs.h (icelake_memcpy): New.
9699         (icelake_memset): Likewise.
9700         (icelake_cost): Likewise.
9701         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
9702         New.
9703
9704 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
9705
9706         PR target/98119
9707         * config/aarch64/aarch64.c
9708         (aarch64_vectorize_preferred_vector_alignment): Query the size
9709         of the provided SVE vector; do not assume that all SVE vectors
9710         have the same size.
9711
9712 2021-03-31  Jan Hubicka  <jh@suse.cz>
9713
9714         PR lto/99447
9715         * cgraph.c (cgraph_node::release_body): Remove all callers and
9716         references.
9717         * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
9718         * cgraphunit.c (cgraph_node::expand): And here.
9719
9720 2021-03-31  Martin Liska  <mliska@suse.cz>
9721
9722         * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
9723         and one negated condition.
9724
9725 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
9726             Richard Sandiford  <richard.sandiford@arm.com>
9727
9728         PR target/99813
9729         * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
9730         constraints on operands[2] and similarly 0 and rk constraints
9731         on operands[1] corresponding to that.
9732
9733 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
9734
9735         PR bootstrap/98860
9736         * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
9737         linker doesn't support DWARF sections new in DWARF5.
9738         * config/i386/i386-options.c (ix86_option_override_internal): Default
9739         to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
9740         targets.
9741         * config.in: Regenerated.
9742         * configure: Regenerated.
9743
9744 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9745
9746         PR target/99820
9747         * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
9748         available issue_info before using it.
9749
9750 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9751
9752         PR target/99822
9753         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
9754         in operand 1.
9755
9756 2021-03-30  Xionghu Luo  <luoxhu@linux.ibm.com>
9757
9758         PR target/99718
9759         * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
9760         (altivec_lvsl_reg_<mode>): ... this.
9761         (altivec_lvsr_reg): Change to ...
9762         (altivec_lvsr_reg_<mode>): ... this.
9763         * config/rs6000/predicates.md (vec_set_index_operand): New.
9764         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9765         Enable 32bit variable vec_insert for all TARGET_VSX.
9766         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
9767         Enable 32bit variable vec_insert for p9 and above.
9768         (rs6000_expand_vector_set_var_p8): Rename to ...
9769         (rs6000_expand_vector_set_var_p7): ... this.
9770         (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
9771         position.
9772         * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
9773         * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
9774         gen_altivec_lvsr_reg_di.
9775
9776 2021-03-30  H.J. Lu  <hjl.tools@gmail.com>
9777
9778         PR target/99744
9779         * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
9780         (__rdtscp): Likewise.
9781
9782 2021-03-30  Tamar Christina  <tamar.christina@arm.com>
9783
9784         PR tree-optimization/99825
9785         * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
9786         Reject non-mult 2 lanes.
9787
9788 2021-03-30  Richard Earnshaw  <rearnsha@arm.com>
9789
9790         PR target/99773
9791         * config/arm/arm.c (arm_file_start): Fix emission of
9792         Tag_ABI_VFP_args attribute.
9793
9794 2021-03-30  Richard Biener  <rguenther@suse.de>
9795
9796         PR tree-optimization/99824
9797         * stor-layout.c (set_min_and_max_values_for_integral_type):
9798         Assert the precision is within the bounds of
9799         WIDE_INT_MAX_PRECISION.
9800         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
9801         the outermost component ref only to lower the access size
9802         and initialize that from the access type.
9803
9804 2021-03-30  Richard Sandiford  <richard.sandiford@arm.com>
9805
9806         PR target/98136
9807         * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
9808         CONST_INTs to aarch64_expand_mov_immediate when called after RA.
9809
9810 2021-03-30  Mihailo Stojanovic  <mihailo.stojanovic@typhoon-hil.com>
9811
9812         * config/aarch64/aarch64.md
9813         (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
9814         attribute to disambiguate between SIMD and FP variants of the
9815         instruction.
9816
9817 2021-03-29  Jan Hubicka  <hubicka@ucw.cz>
9818
9819         * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
9820         (analyze_ssa_name_flags): Fix typo in comment.
9821
9822 2021-03-29  Alex Coplan  <alex.coplan@arm.com>
9823
9824         PR target/99216
9825         * config/aarch64/aarch64-sve-builtins.cc
9826         (function_builder::add_function): Add placeholder_p argument, use
9827         placeholder decls if this is set.
9828         (function_builder::add_unique_function): Instead of conditionally adding
9829         direct overloads, unconditionally add either a direct overload or a
9830         placeholder.
9831         (function_builder::add_overloaded_function): Set placeholder_p if we're
9832         using C++ overloads. Use the obstack for string storage instead
9833         of relying on the tree nodes.
9834         (function_builder::add_overloaded_functions): Don't return early for
9835         m_direct_overloads: we need to add placeholders.
9836         * config/aarch64/aarch64-sve-builtins.h
9837         (function_builder::add_function): Add placeholder_p argument.
9838
9839 2021-03-29  Richard Biener  <rguenther@suse.de>
9840
9841         PR tree-optimization/99807
9842         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
9843         assert below VEC_PERM handling.
9844
9845 2021-03-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9846
9847         PR target/99037
9848         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
9849         aarch64_simd_or_scalar_imm_zero to match zeroes.  Remove pattern
9850         matching const_int 0.
9851         (move_lo_quad_internal_be_<mode>): Likewise.
9852         (move_lo_quad_<mode>): Update for the above.
9853         * config/aarch64/iterators.md (VQ_2E): Delete.
9854
9855 2021-03-29  Jakub Jelinek  <jakub@redhat.com>
9856
9857         PR tree-optimization/99777
9858         * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
9859         types other than scalar integral types.
9860
9861 2021-03-28  David Edelsohn  <dje.gcc@gmail.com>
9862
9863         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
9864         XCOFF TLS reloc decorations.
9865
9866 2021-03-28  Gerald Pfeifer  <gerald@pfeifer.com>
9867
9868         * doc/analyzer.texi (Analyzer Internals): Update link to
9869         "A Memory Model for Static Analysis of C Programs".
9870
9871 2021-03-26  David Edelsohn  <dje.gcc@gmail.com>
9872
9873         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
9874         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
9875         Declare.
9876         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
9877         (rs6000_special_round_type_align): Recursively check innermost first
9878         field.
9879
9880 2021-03-26  Jakub Jelinek  <jakub@redhat.com>
9881
9882         PR debug/99334
9883         * dwarf2out.h (struct dw_fde_node): Add rule18 member.
9884         * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
9885         assignment with drap_reg active, queue reg save for hfp with offset 0
9886         and flush queued reg saves.  When handling a push with rule18,
9887         defer queueing reg save for hfp and just assert the offset is 0.
9888         (scan_trace): Assert that fde->rule18 is false.
9889
9890 2021-03-26  Vladimir Makarov  <vmakarov@redhat.com>
9891
9892         PR target/99766
9893         * ira-costs.c (record_reg_classes): Put case with
9894         CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
9895         * ira.c (ira_setup_alts): Ditto.
9896         * lra-constraints.c (process_alt_operands): Ditto.
9897         * recog.c (asm_operand_ok): Ditto.
9898         * reload.c (find_reloads): Ditto.
9899
9900 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
9901
9902         * config/aarch64/aarch64-protos.h
9903         (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
9904         (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
9905         * config/aarch64/aarch64.c (generic_addrcost_table): Update
9906         accordingly, using the same costs as for post_modify.
9907         (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
9908         (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
9909         (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
9910         (a64fx_addrcost_table): Likewise.
9911         (neoversev1_addrcost_table): New.
9912         (neoversev1_tunings): Use neoversev1_addrcost_table.
9913         (aarch64_address_cost): Use the new post_modify costs for CImode
9914         and XImode.
9915
9916 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
9917
9918         * config/aarch64/aarch64.opt
9919         (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
9920         * doc/invoke.texi: Document it.
9921         * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
9922         (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
9923         (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
9924         (aarch64_vec_issue_info): New structures.
9925         (cpu_vector_cost): Write comments above the variables rather
9926         than to the side.
9927         (cpu_vector_cost::issue_info): New member variable.
9928         * config/aarch64/aarch64.c: Include gimple-pretty-print.h
9929         and tree-ssa-loop-niter.h.
9930         (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
9931         (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
9932         (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
9933         (thunderx3t110_vector_cost): Initialize issue_info to null.
9934         (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
9935         (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
9936         (neoversev1_vector_cost): Use them.
9937         (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
9938         (aarch64_vector_costs::saw_sve_only_op): New member variable.
9939         (aarch64_vector_costs::num_vector_iterations): Likewise.
9940         (aarch64_vector_costs::scalar_ops): Likewise.
9941         (aarch64_vector_costs::advsimd_ops): Likewise.
9942         (aarch64_vector_costs::sve_ops): Likewise.
9943         (aarch64_vector_costs::seen_loads): Likewise.
9944         (aarch64_simd_vec_costs_for_flags): New function.
9945         (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
9946         Count the number of predicate operations required by SVE WHILE
9947         instructions.
9948         (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
9949         (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
9950         (aarch64_count_ops): Likewise.
9951         (aarch64_add_stmt_cost): Record whether see an SVE operation
9952         that cannot currently be implementing using Advanced SIMD.
9953         Record issue information about the scalar, Advanced SIMD
9954         and (where relevant) SVE versions of a loop.
9955         (aarch64_vec_op_count::dump): New function.
9956         (aarch64_sve_op_count::dump): Likewise.
9957         (aarch64_estimate_min_cycles_per_iter): Likewise.
9958         (aarch64_adjust_body_cost): If issue information is available,
9959         try to compare the issue rates of the various loop implementations
9960         and increase or decrease the vector body cost accordingly.
9961
9962 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
9963
9964         * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
9965         Assume a zero cost for induction phis.
9966
9967 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
9968
9969         * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
9970         function.
9971         (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
9972         vector comparisons.
9973
9974 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
9975
9976         * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
9977         New function.
9978         (aarch64_add_stmt_cost): Call it.
9979
9980 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
9981
9982         * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
9983         New tuning parameter.
9984         * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
9985         (aarch64_estimated_sve_vq): New function.
9986         (aarch64_vector_costs::analyzed_vinfo): New member variable.
9987         (aarch64_vector_costs::is_loop): Likewise.
9988         (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
9989         (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
9990         (aarch64_record_potential_advsimd_unrolling): New function.
9991         (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
9992         (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
9993         aarch64_analyze_bb_vinfo on the first use of a costs structure.
9994         Detect whether we're vectorizing a loop for SVE that might be
9995         completely unrolled if it used Advanced SIMD instead.
9996         (aarch64_adjust_body_cost_for_latency): New function.
9997         (aarch64_finish_cost): Call it.
9998
9999 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10000
10001         * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
10002         (aarch64_init_cost): New function.
10003         (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
10004         the default unsigned[3].
10005         (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
10006         (TARGET_VECTORIZE_INIT_COST): Override.
10007         (TARGET_VECTORIZE_FINISH_COST): Likewise.
10008         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
10009
10010 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10011
10012         * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
10013         (neoversev1_sve_vector_cost): New cost structures.
10014         (neoversev1_vector_cost): Likewise.
10015         (neoversev1_tunings): Use them.  Enable use_new_vector_costs.
10016
10017 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10018
10019         * config/aarch64/aarch64-protos.h
10020         (sve_vec_cost::scatter_store_elt_cost): New member variable.
10021         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
10022         accordingly, taking the cost from the cost of a scalar_store.
10023         (a64fx_sve_vector_cost): Likewise.
10024         (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
10025
10026 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10027
10028         * config/aarch64/aarch64-protos.h
10029         (simd_vec_cost::store_elt_extra_cost): New member variable.
10030         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
10031         accordingly, using the vec_to_scalar cost for the new field.
10032         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
10033         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
10034         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
10035         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
10036         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
10037         (thunderx3t110_advsimd_vector_cost): Likewise.
10038         (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
10039
10040 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10041
10042         * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
10043         (simd_vec_cost::ld3_st3_permute_cost): New member variables.
10044         (simd_vec_cost::ld4_st4_permute_cost): Likewise.
10045         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
10046         accordingly, using zero for the new costs.
10047         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
10048         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
10049         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
10050         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
10051         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
10052         (thunderx3t110_advsimd_vector_cost): Likewise.
10053         (aarch64_ld234_st234_vectors): New function.
10054         (aarch64_adjust_stmt_cost): Likewise.
10055         (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
10056         the new vector costs.
10057
10058 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10059
10060         * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
10061         derived class of simd_vec_cost.  Add information about CLAST[AB]
10062         and FADDA instructions.
10063         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
10064         accordingly, using the vec_to_scalar costs for the new fields.
10065         (a64fx_sve_vector_cost): Likewise.
10066         (aarch64_reduc_type): New function.
10067         (aarch64_sve_in_loop_reduction_latency): Likewise.
10068         (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
10069         Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
10070         that occur in the loop body.
10071         (aarch64_add_stmt_cost): Update call accordingly.
10072
10073 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
10074
10075         * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
10076         New tuning flag.
10077         * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
10078         above the fields rather than to the right.
10079         (simd_vec_cost::reduc_i8_cost): New member variable.
10080         (simd_vec_cost::reduc_i16_cost): Likewise.
10081         (simd_vec_cost::reduc_i32_cost): Likewise.
10082         (simd_vec_cost::reduc_i64_cost): Likewise.
10083         (simd_vec_cost::reduc_f16_cost): Likewise.
10084         (simd_vec_cost::reduc_f32_cost): Likewise.
10085         (simd_vec_cost::reduc_f64_cost): Likewise.
10086         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
10087         accordingly, using the vec_to_scalar_cost for the new fields.
10088         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
10089         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
10090         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
10091         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
10092         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
10093         (thunderx3t110_advsimd_vector_cost): Likewise.
10094         (aarch64_use_new_vector_costs_p): New function.
10095         (aarch64_simd_vec_costs): New function, split out from...
10096         (aarch64_builtin_vectorization_cost): ...here.
10097         (aarch64_is_reduction): New function.
10098         (aarch64_detect_vector_stmt_subtype): Likewise.
10099         (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
10100         using the new vector costs.
10101
10102 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
10103
10104         PR ipa/99466
10105         * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
10106         TLS declarations as public.
10107
10108 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
10109
10110         * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
10111         * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
10112         * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
10113         * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
10114         * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
10115         * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
10116         * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
10117         * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
10118         * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
10119
10120 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
10121
10122         PR d/91595
10123         * config.gcc (*-*-cygwin*): Add winnt-d.o
10124         (*-*-mingw*): Likewise.
10125         * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
10126         * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
10127         * config/i386/t-cygming: Add winnt-d.o.
10128         * config/i386/winnt-d.c: New file.
10129
10130 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
10131
10132         * config/freebsd-d.c: Include memmodel.h.
10133
10134 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
10135
10136         PR d/99691
10137         * config.gcc (*-*-openbsd*): Add openbsd-d.o.
10138         * config/t-openbsd: Add openbsd-d.o.
10139         * config/openbsd-d.c: New file.
10140
10141 2021-03-25  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
10142
10143         PR tree-optimization/96974
10144         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
10145         with graceful exit.
10146
10147 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
10148
10149         Revert:
10150         2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
10151
10152         PR target/98209
10153         PR target/99744
10154         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
10155         always_inline in system headers.
10156
10157 2021-03-25  Kewen Lin  <linkw@linux.ibm.com>
10158
10159         * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
10160
10161 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
10162
10163         PR c++/99565
10164         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
10165         * fold-const.c (operand_compare::operand_equal_p): Don't compare
10166         field offsets if OEP_ADDRESS_OF_SAME_FIELD.
10167
10168 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
10169
10170         PR target/98209
10171         PR target/99744
10172         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
10173         always_inline in system headers.
10174
10175 2021-03-25  Richard Biener  <rguenther@suse.de>
10176
10177         PR tree-optimization/99746
10178         * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
10179         the scalar stmt as patterned.  Instead set up required things
10180         manually.
10181
10182 2021-03-25  Xionghu Luo  <luoxhu@linux.ibm.com>
10183
10184         * config/rs6000/rs6000.c (power8_costs): Change l2 cache
10185         from 256 to 512.
10186
10187 2021-03-24  Martin Liska  <mliska@suse.cz>
10188
10189         PR target/99753
10190         * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
10191         error.
10192         * config/i386/i386-options.c (ix86_option_override_internal):
10193         Add run-time assert.
10194
10195 2021-03-24  Martin Jambor  <mjambor@suse.cz>
10196
10197         PR ipa/99122
10198         * ipa-cp.c (initialize_node_lattices): Mark as bottom all
10199         parameters with unknown type.
10200         (ipacp_value_safe_for_type): New function.
10201         (propagate_vals_across_arith_jfunc): Verify that the constant type
10202         can be used for a type of the formal parameter.
10203         (propagate_vals_across_ancestor): Likewise.
10204         (propagate_scalar_across_jump_function): Likewise.  Pass the type
10205         also to propagate_vals_across_ancestor.
10206
10207 2021-03-24  Christophe Lyon  <christophe.lyon@linaro.org>
10208
10209         PR target/99727
10210         * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
10211         constraint.
10212         (movmisalign<mode>_mve_load): Likewise.
10213
10214 2021-03-24  Jakub Jelinek  <jakub@redhat.com>
10215
10216         PR target/99724
10217         * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
10218         movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
10219
10220 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
10221
10222         * doc/sourcebuild.texi (sysconf): New effective target.
10223
10224 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
10225
10226         * config/i386/predicates.md (reg_or_const_vec_operand): New.
10227         * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
10228         the now *-prefixed insn_and_split, turn the splitter const vec
10229         into an input for the insn, making it an ignored immediate for
10230         non-split cases, and loaded into the scratch register
10231         otherwise.
10232
10233 2021-03-23  Vladimir N. Makarov  <vmakarov@redhat.com>
10234
10235         PR target/99581
10236         * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
10237         Use define_relaxed_memory_constraint for them.
10238
10239 2021-03-23  Iain Sandoe  <iain@sandoe.co.uk>
10240
10241         PR target/99733
10242         * config/host-darwin.c (darwin_gt_pch_use_address): Add a
10243         colon to the diagnostic message.
10244
10245 2021-03-23  Ilya Leoshkevich  <iii@linux.ibm.com>
10246
10247         * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
10248         set_info's uses.
10249         (try_fwprop_subst_note): Use set_info instead of insn_info.
10250         (try_fwprop_subst_pattern): Likewise.
10251         (try_fwprop_subst_notes): Likewise.
10252         (try_fwprop_subst): Likewise.
10253         (forward_propagate_subreg): Likewise.
10254         (forward_propagate_and_simplify): Likewise.
10255         (forward_propagate_into): Likewise.
10256         * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
10257         method.
10258         (set_info::single_nondebug_insn_use): Likewise.
10259         (set_info::single_phi_use): Likewise.
10260         * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
10261         method.
10262         (set_info::single_nondebug_insn_use): Likewise.
10263         (set_info::single_phi_use): Likewise.
10264
10265 2021-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
10266
10267         * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
10268
10269 2021-03-23  Jakub Jelinek  <jakub@redhat.com>
10270
10271         PR target/99540
10272         * config/aarch64/aarch64.c (aarch64_add_offset): Tell
10273         expand_mult to perform an unsigned rather than a signed
10274         multiplication.
10275
10276 2021-03-23  H.J. Lu  <hjl.tools@gmail.com>
10277
10278         PR target/99704
10279         * config/i386/cpuid.h (__cpuid): Add __volatile__.
10280         (__cpuid_count): Likewise.
10281
10282 2021-03-23  Richard Biener  <rguenther@suse.de>
10283
10284         PR tree-optimization/99721
10285         * tree-vect-slp.c (vect_slp_analyze_node_operations):
10286         Make sure we can schedule the node.
10287
10288 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
10289
10290         * config/riscv/riscv.c (riscv_subword): Take endianness into
10291         account when calculating the byte offset.
10292
10293 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
10294
10295         * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
10296         * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
10297         (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
10298         (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
10299         (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
10300         new predicate "subreg_lowpart_operator"
10301
10302 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
10303
10304         * config/riscv/riscv.c (riscv_swap_instruction): New function
10305         to byteswap an SImode rtx containing an instruction.
10306         (riscv_trampoline_init): Byteswap the generated instructions
10307         when needed.
10308
10309 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
10310
10311         * common/config/riscv/riscv-common.c
10312         (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
10313         * config.gcc (riscv32be-*, riscv64be-*): Set
10314         TARGET_BIG_ENDIAN_DEFAULT to 1.
10315         * config/riscv/elf.h (LINK_SPEC): Change -melf* value
10316         depending on default endianness.
10317         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
10318         * config/riscv/linux.h (LINK_SPEC): Likewise.
10319         * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
10320         default endianness.
10321         * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
10322
10323 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
10324
10325         * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
10326         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
10327         * config/riscv/linux.h (LINK_SPEC): Likewise.
10328         * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
10329         -mlittle-endian.
10330         (BYTES_BIG_ENDIAN): Handle big endian.
10331         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
10332         * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
10333         options.
10334         * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
10335
10336 2021-03-23  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
10337
10338         * regcprop.c (find_oldest_value_reg): Ask target whether
10339           different mode is fine for replacement register.
10340
10341 2021-03-23  Aldy Hernandez  <aldyh@redhat.com>
10342
10343         PR tree-optimization/99296
10344         * value-range.cc (irange::irange_set_1bit_anti_range): New.
10345         (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
10346         * value-range.h (irange::irange_set_1bit_anti_range): New.
10347
10348 2021-03-22  Vladimir N. Makarov  <vmakarov@redhat.com>
10349
10350         PR target/99581
10351         * config/aarch64/constraints.md (UtQ): Use
10352         define_relaxed_memory_constraint for it.
10353         * doc/md.texi (define_relaxed_memory_constraint): Describe it.
10354         * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
10355         * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
10356         (have_relaxed_memory_constraints): New static var.
10357         (relaxed_memory_start, relaxed_memory_end): Ditto.
10358         (add_constraint): Add arg is_relaxed_memory.  Check name for
10359         relaxed memory.  Set up is_relaxed_memory in constraint_data and
10360         have_relaxed_memory_constraints.  Adjust calls.
10361         (choose_enum_order): Process relaxed memory.
10362         (write_tm_preds_h): Ditto.
10363         (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
10364         * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
10365         * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
10366         * ira-lives.c (single_reg_class): Use
10367         insn_extra_relaxed_memory_constraint.
10368         * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
10369         * lra-constraints.c (valid_address_p): Use
10370         insn_extra_relaxed_memory_constraint instead of other memory
10371         constraints.
10372         (process_alt_operands): Process CT_RELAXED_MEMORY.
10373         (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
10374         * recog.c (asm_operand_ok, preprocess_constraints): Process
10375         CT_RELAXED_MEMORY.
10376         * reload.c (find_reloads): Ditto.
10377         * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
10378         * stmt.c (parse_input_constraint): Use
10379         insn_extra_relaxed_memory_constraint.
10380
10381 2021-03-22  Segher Boessenkool  <segher@kernel.crashing.org>
10382
10383         PR target/97926
10384         * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
10385         there are no NaNs.
10386
10387 2021-03-22  Alex Coplan  <alex.coplan@arm.com>
10388
10389         PR target/97252
10390         * config/arm/arm-protos.h (neon_make_constant): Add generate
10391         argument to guard emitting insns, default to true.
10392         * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
10393         CONST_VECTORs which neon_make_constant can't handle.
10394         (neon_vdup_constant): Add generate argument, avoid emitting
10395         insns if it's not set.
10396         (neon_make_constant): Plumb new generate argument through.
10397         * config/arm/constraints.md (Ui): New. Use it...
10398         * config/arm/mve.md (*mve_mov<mode>): ... here.
10399         * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
10400         synthesize constants.
10401
10402 2021-03-22  Richard Biener  <rguenther@suse.de>
10403
10404         * debug.h: Add deprecation warning.
10405
10406 2021-03-22  Richard Biener  <rguenther@suse.de>
10407
10408         PR tree-optimization/99694
10409         * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
10410         PHI result.
10411
10412 2021-03-22  Kito Cheng  <kito.cheng@sifive.com>
10413
10414         PR target/99702
10415         * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
10416         after type checking.
10417
10418 2021-03-22  Jakub Jelinek  <jakub@redhat.com>
10419
10420         PR debug/99562
10421         PR debug/66728
10422         * dwarf2out.c (get_full_len): Use get_precision rather than
10423         min_precision.
10424         (add_const_value_attribute): Make sure add_AT_wide argument has
10425         precision prec rather than some very wide one.
10426
10427 2021-03-22  Kewen Lin  <linkw@linux.ibm.com>
10428
10429         * config/rs6000/rs6000.md (*rotldi3_insert_sf,
10430         *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
10431         floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
10432         floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
10433         *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
10434         fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
10435         *round32<mode>2_fprs, *roundu32<mode>2_fprs,
10436         *fix_trunc<mode>si2_internal): Fix empty split condition.
10437         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
10438         vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
10439         *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
10440         *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
10441
10442 2021-03-22  Xionghu Luo  <luoxhu@linux.ibm.com>
10443
10444         PR target/98914
10445         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
10446         Convert idx to DImode.
10447         (rs6000_expand_vector_set_var_p8): Likewise.
10448
10449 2021-03-21  Jakub Jelinek  <jakub@redhat.com>
10450
10451         PR debug/99388
10452         * dwarf2out.c (insert_float): Change return type from void to
10453         unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
10454         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
10455         Adjust callers.
10456
10457 2021-03-20  H.J. Lu  <hjl.tools@gmail.com>
10458
10459         PR target/99679
10460         * config/i386/i386.c (construct_container): Check cfun != NULL
10461         before accessing silent_p.
10462
10463 2021-03-20  Ahamed Husni  <ahamedhusni73@gmail.com>
10464
10465         * asan.c: Fix typos in comments.
10466
10467 2021-03-20  Vladimir N. Makarov  <vmakarov@redhat.com>
10468
10469         PR rtl-optimization/99680
10470         * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
10471         (process_address_1): Check empty constraint before using
10472         CONSTRAINT_LEN.
10473
10474 2021-03-19  Pat Haugen  <pthaugen@linux.ibm.com>
10475
10476         * config/rs6000/rs6000.c (power10_cost): New.
10477         (rs6000_option_override_internal): Set Power10 costs.
10478         (rs6000_issue_rate): Set Power10 issue rate.
10479         * config/rs6000/power10.md: Rewrite for Power10.
10480
10481 2021-03-19  Vladimir N. Makarov  <vmakarov@redhat.com>
10482
10483         PR target/99663
10484         * lra-constraints.c (process_address_1): Don't use unknown
10485         constraint for address constraint.
10486
10487 2021-03-19  Iain Sandoe  <iain@sandoe.co.uk>
10488
10489         PR target/99661
10490         * config.gcc (powerpc-*-darwin8): Delete the reference to
10491         the now removed darwin8.h.
10492
10493 2021-03-19  Olivier Hainque  <hainque@adacore.com>
10494
10495         PR target/99660
10496         * config/vxworksae.h (VX_CPU_PREFIX): Define.
10497
10498 2021-03-19  John David Anglin  <danglin@gcc.gnu.org>
10499
10500         * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
10501
10502 2021-03-19  Tamar Christina  <tamar.christina@arm.com>
10503
10504         PR tree-optimization/99656
10505         * tree-vect-slp-patterns.c (linear_loads_p,
10506         complex_add_pattern::matches, is_eq_or_top,
10507         vect_validate_multiplication, complex_mul_pattern::matches,
10508         complex_fms_pattern::matches): Remove complex_perm_kinds_t.
10509         * tree-vectorizer.h: (complex_load_perm_t): Removed.
10510         (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
10511         complex_load_perm_t.
10512
10513 2021-03-19  H.J. Lu  <hjl.tools@gmail.com>
10514
10515         PR target/99652
10516         * config/i386/i386-options.c (ix86_init_machine_status): Set
10517         silent_p to true.
10518         * config/i386/i386.c (init_cumulative_args): Set silent_p to
10519         false.
10520         (construct_container): Return early for return and argument
10521         errors if silent_p is true.
10522         * config/i386/i386.h (machine_function): Add silent_p.
10523
10524 2021-03-19  Jakub Jelinek  <jakub@redhat.com>
10525
10526         PR target/99593
10527         * config/arm/constraints.md (Ds): New constraint.
10528         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
10529         constraint instead of w,Dm.
10530
10531 2021-03-19  Andrew Stubbs  <ams@codesourcery.com>
10532
10533         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
10534         in error message.
10535
10536 2021-03-19  Eric Botcazou  <ebotcazou@adacore.com>
10537
10538         PR middle-end/99641
10539         * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
10540         array type, do the computation of the current position in sizetype.
10541
10542 2021-03-18  Vladimir N. Makarov  <vmakarov@redhat.com>
10543
10544         PR target/99422
10545         * lra-constraints.c (process_address_1): Use lookup_constraint
10546         only for a single constraint.
10547
10548 2021-03-18  Martin Sebor  <msebor@redhat.com>
10549
10550         PR middle-end/99502
10551         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
10552         (inbounds_memaccess_p): ...to this.  Check the ending offset of
10553         the accessed member.
10554
10555 2021-03-18  Andrew Stubbs  <ams@codesourcery.com>
10556
10557         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
10558           %> quote markers to error messages.
10559         (gcn_goacc_validate_dims): Likewise.
10560         (gcn_conditional_register_usage): Remove exclaimation mark from error
10561         message.
10562         (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
10563
10564 2021-03-18  Jan Hubicka  <hubicka@ucw.cz>
10565
10566         * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
10567         integer divides1.
10568
10569 2021-03-18  Sinan Lin  <sinan@isrc.iscas.ac.cn>
10570             Kito Cheng  <kito.cheng@sifive.com>
10571
10572         * config/riscv/riscv.c (riscv_block_move_straight): Change type
10573         to unsigned HOST_WIDE_INT for parameter and local variable with
10574         HOST_WIDE_INT type.
10575         (riscv_adjust_block_mem): Ditto.
10576         (riscv_block_move_loop): Ditto.
10577         (riscv_expand_block_move): Ditto.
10578
10579 2021-03-18  Nick Clifton  <nickc@redhat.com>
10580
10581         * config/v850/v850.c (construct_restore_jr): Increase static
10582          buffer size.
10583         (construct_save_jarl): Likewise.
10584         * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
10585
10586 2021-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10587
10588         * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
10589         (aarch64_override_options_internal): Use it.
10590         (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
10591         tune_flags.
10592
10593 2021-03-17  Sandra Loosemore  <sandra@codesourcery.com>
10594
10595         * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
10596         error message format issues.
10597         (nios2_option_override): Likewise.
10598         (nios2_expand_fpu_builtin): Likewise.
10599         (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
10600         truncation warning.
10601         (nios2_expand_custom_builtin): More error message format fixes.
10602         (nios2_expand_rdwrctl_builtin): Likewise.
10603         (nios2_expand_rdprs_builtin): Likewise.
10604         (nios2_expand_eni_builtin): Likewise.
10605         (nios2_expand_builtin): Likewise.
10606         (nios2_register_custom_code): Likewise.
10607         (nios2_valid_target_attribute_rec): Likewise.
10608         (nios2_add_insn_asm): Fix uninitialized variable warning.
10609
10610 2021-03-17  Jan Hubicka  <jh@suse.cz>
10611
10612         * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
10613         of gather to match reality.
10614         * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
10615
10616 2021-03-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10617
10618         * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
10619         to compare against CC_REG rather than NE.
10620
10621 2021-03-17  H.J. Lu  <hjl.tools@gmail.com>
10622
10623         PR target/99504
10624         * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
10625         inline assembly statements.
10626         (ix86_print_operand): Update 'P' handling for -fno-plt.
10627
10628 2021-03-17  Tamar Christina  <tamar.christina@arm.com>
10629
10630         PR target/99542
10631         * config/aarch64/aarch64.c
10632         (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
10633
10634 2021-03-16  Segher Boessenkool  <segher@kernel.crashing.org>
10635
10636         PR target/98092
10637         * config/rs6000/predicates.md (branch_comparison_operator): Allow
10638         ordered and unordered for CCFPmode, if flag_finite_math_only.
10639
10640 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
10641
10642         PR target/99600
10643         * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
10644         rather than ASHIFT.
10645         * config/i386/i386.md (mult by 1248 into ashift): New splitter.
10646
10647 2021-03-16  Martin Liska  <mliska@suse.cz>
10648
10649         PR target/99592
10650         * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
10651         cl_optimization_compare function.
10652
10653 2021-03-16  Ilya Leoshkevich  <iii@linux.ibm.com>
10654
10655         * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
10656         as "v".
10657
10658 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
10659
10660         PR target/99563
10661         * config/i386/i386.h (struct machine_function): Add
10662         has_explicit_vzeroupper bitfield.
10663         * config/i386/i386-expand.c (ix86_expand_builtin): Set
10664         cfun->machine->has_explicit_vzeroupper when expanding
10665         IX86_BUILTIN_VZEROUPPER.
10666         * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
10667         Do the mode switching only when TARGET_VZEROUPPER, expensive
10668         optimizations turned on and not optimizing for size.
10669         (pass_insert_vzeroupper::gate): Enable even when
10670         cfun->machine->has_explicit_vzeroupper is set.
10671
10672 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
10673
10674         PR target/99542
10675         * config/aarch64/aarch64.c
10676         (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
10677         definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
10678         instead of DECL_ARGUMENTS.  Ignore types for uniform arguments.
10679
10680 2021-03-15  Richard Biener  <rguenther@suse.de>
10681
10682         PR tree-optimization/98834
10683         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
10684         subsetting by truncating the access size.
10685
10686 2021-03-15  Jan Hubicka  <hubicka@ucw.cz>
10687
10688         * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
10689         * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
10690         of znver2_cost.
10691
10692 2021-03-15  Martin Liska  <mliska@suse.cz>
10693
10694         * spellcheck.c: Add missing comma in initialization.
10695
10696 2021-03-14  Uroš Bizjak  <ubizjak@gmail.com>
10697
10698         * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
10699         alternative 2 and alternative 1 with alternative 3 using
10700         YW register constraint.
10701         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
10702         using YW register constraint.
10703         (*vec_extractv16qi_zext): Ditto.
10704         (*vec_extractv4si): Merge alternatives 4 and 5
10705         using Yw register constraint.
10706         (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
10707
10708 2021-03-13  Martin Sebor  <msebor@redhat.com>
10709
10710         PR tree-optimization/99489
10711         * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
10712         is not a call statement.
10713
10714 2021-03-13  Jakub Jelinek  <jakub@redhat.com>
10715
10716         PR tree-optimization/99544
10717         * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
10718         if for vector types multiplication can't be done in type's mode.
10719
10720 2021-03-12  Eric Botcazou  <ebotcazou@adacore.com>
10721
10722         PR target/99422
10723         * config/sparc/constraints.md (w): Rename to...
10724         (W): ... this and ditch previous implementation.
10725         * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
10726         (*movdf_insn_sp64): Likewise.
10727         (*mov<VM64:mode>_insn_sp64): Likewise.
10728         * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
10729         w with W.
10730         (atomic_compare_and_swap_leon3_1): Likewise.
10731         (*atomic_compare_and_swapdi_v8plus): Likewise.
10732         * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
10733         architecture and add missing address validity check during LRA.
10734
10735 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
10736
10737         PR fortran/98858
10738         * gimplify.c (omp_add_variable): Handle NULL_TREE as size
10739         occuring for assumed-size arrays in use_device_{ptr,addr}.
10740
10741 2021-03-12  Jakub Jelinek  <jakub@redhat.com>
10742
10743         PR target/99321
10744         * config/i386/constraints.md (YW): New internal constraint.
10745         * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
10746         (*<sse2_avx2>_<insn><mode>3<mask_name>,
10747         *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
10748         *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
10749         constraints.
10750         (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
10751         (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
10752         avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
10753         into one, use Yw instead of former x,v.
10754         (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
10755         the last alternative.
10756         (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
10757         <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
10758         *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
10759         <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
10760         into one, use <v_Yw> instead of former x,v.
10761         (avx2_interleave_highv32qi<mask_name>,
10762         vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
10763         constraints.  Add && <mask_avx512bw_condition> to condition.
10764         (avx2_interleave_lowv32qi<mask_name>,
10765         vec_interleave_lowv16qi<mask_name>,
10766         avx2_interleave_highv16hi<mask_name>,
10767         vec_interleave_highv8hi<mask_name>,
10768         avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
10769         avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
10770         avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
10771         avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
10772         *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
10773         Yw instead of v in constraints.
10774         * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
10775         (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
10776         instead of Yv in constraints.
10777         (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
10778         *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
10779         *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
10780         mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
10781         *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
10782         constraints.
10783         (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
10784         *mmx_pextrb_zext): Use YW instead of Yv in constraints.
10785         (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
10786         (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
10787         two, one with just x, another isa avx512vl with v.
10788
10789 2021-03-12  Martin Liska  <mliska@suse.cz>
10790
10791         * doc/invoke.texi: Add missing param documentation.
10792
10793 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
10794
10795         PR analyzer/96374
10796         * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
10797         analyzer/trimmed-graph.o.
10798         * doc/analyzer.texi (Analyzer Paths): Rewrite description of
10799         feasibility checking to reflect new implementation.
10800         * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
10801         option.
10802         * shortest-paths.h (shortest_paths::get_shortest_distance): New.
10803
10804 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
10805
10806         * digraph.cc (selftest::test_shortest_paths): Update
10807         shortest_paths init for new param.  Add test of
10808         SPS_TO_GIVEN_TARGET.
10809         * shortest-paths.h (enum shortest_path_sense): New.
10810         (shortest_paths::shortest_paths): Add "sense" param.
10811         Update for renamings.  Generalize to use "sense" param.
10812         (shortest_paths::get_shortest_path): Rename param.
10813         (shortest_paths::m_sense): New field.
10814         (shortest_paths::m_prev): Rename...
10815         (shortest_paths::m_best_edge): ...to this.
10816         (shortest_paths::get_shortest_path): Update for renamings.
10817         Conditionalize flipping of path on sense of traversal.
10818
10819 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
10820
10821         * digraph.cc (selftest::test_shortest_paths): Add test coverage
10822         for paths from B and C.
10823         * shortest-paths.h (shortest_paths::shortest_paths): Handle
10824         unreachable nodes, rather than asserting.
10825
10826 2021-03-11  David Edelsohn  <dje.gcc@gmail.com>
10827
10828         PR target/99094
10829         * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
10830         xcoff_tbss_section_name.
10831         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
10832         * xcoffout.c (xcoff_tbss_section_name): Delete.
10833         * xcoffout.h (xcoff_tbss_section_name): Delete.
10834
10835 2021-03-11  Richard Biener  <rguenther@suse.de>
10836
10837         PR tree-optimization/99523
10838         * tree-cfg.c (dump_function_to_file): Dump SSA names
10839         w/o identifier to the decls section as well, not only those
10840         without a VAR_DECL.
10841
10842 2021-03-11  Jakub Jelinek  <jakub@redhat.com>
10843
10844         PR ipa/99517
10845         * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
10846         function calls with lhs fail if the lhs don't have compatible types.
10847
10848 2021-03-11  Hans-Peter Nilsson  <hp@axis.com>
10849
10850         * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
10851         Change FRAME_POINTER_REGNUM to correspond to a new faked
10852         register faked_fp, part of GENNONACR_REGS like faked_ap.
10853         (CRIS_FAKED_REGS_CONTENTS): New helper macro.
10854         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
10855         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
10856         (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
10857         * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
10858         register.
10859         (CRIS_REAL_FP_REGNUM): New constant.
10860         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
10861         for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
10862         (cris_initial_elimination_offset): Handle elimination changes
10863         to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
10864         and add one from FRAME_POINTER_REGNUM to
10865         HARD_FRAME_POINTER_REGNUM.
10866         (cris_expand_prologue, cris_expand_epilogue): Emit code for
10867         hard_frame_pointer_rtx instead of frame_pointer_rtx.
10868
10869 2021-03-10  David Edelsohn  <dje.gcc@gmail.com>
10870
10871         PR target/99492
10872         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
10873         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
10874
10875 2021-03-10  Vladimir N. Makarov  <vmakarov@redhat.com>
10876
10877         PR target/99422
10878         * lra-constraints.c (process_address_1): Don't check unknown
10879         constraint, use X for empty constraint.
10880
10881 2021-03-10  Alex Coplan  <alex.coplan@arm.com>
10882
10883         * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
10884         Fix typo in comment describing "is_ha" argument.
10885
10886 2021-03-10  John David Anglin  <danglin@gcc.gnu.org>
10887
10888         * doc/sourcebuild.texi: Document LRA target selector.
10889
10890 2021-03-10  David Malcolm  <dmalcolm@redhat.com>
10891
10892         * doc/ux.texi: Add subsection contrasting interactive versus
10893         batch usage of GCC.
10894
10895 2021-03-10  Joel Hutton  <joel.hutton@arm.com>
10896
10897         PR target/99102
10898         * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
10899         check condition.
10900         (vectorizable_load): Fix gather load mask check condition.
10901
10902 2021-03-10  Richard Biener  <rguenther@suse.de>
10903
10904         PR tree-optimization/99510
10905         * tree.c (check_aligned_type): Check that the candidate
10906         has TYPE_USER_ALIGN set instead of matching with the
10907         original type.
10908
10909 2021-03-10  Eric Botcazou  <ebotcazou@adacore.com>
10910
10911         * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
10912         float and vector integer modes only if the mode is not larger.
10913
10914 2021-03-10  Hans-Peter Nilsson  <hp@axis.com>
10915
10916         * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
10917
10918 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
10919
10920         * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
10921         constraints > 9.
10922         * ira-lives.c (single_reg_class): Ditto.
10923
10924 2021-03-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10925
10926         * config.gcc (aarch64-*-rtems*): Include general rtems.h after
10927         the architecture-specific rtems.h.
10928         (aarch64-*-rtems*): Likewise.
10929         (arm*-*-rtems*): Likewise.
10930         (epiphany-*-rtems*): Likewise.
10931         (riscv*-*-rtems*): Likewise.
10932
10933 2021-03-09  Jakub Jelinek  <jakub@redhat.com>
10934
10935         PR tree-optimization/99305
10936         * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
10937         before integer_all_onesp instead of vice versa.
10938
10939 2021-03-09  Richard Earnshaw  <rearnsha@arm.com>
10940
10941         * common/config/arm/arm-common.c (arm_config_default): Change type
10942         of 'i' to unsigned.
10943
10944 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
10945
10946         PR target/99454
10947         * lra-constraints.c (process_address_1): Process constraint 'g'
10948         separately and digital constraints containing more one digit.
10949
10950 2021-03-09  Nick Clifton  <nickc@redhat.com>
10951
10952         * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
10953         (DWARF"_DEBUGGING_INFO): Define.
10954
10955 2021-03-09  Eric Botcazou  <ebotcazou@adacore.com>
10956
10957         PR c++/90448
10958         * calls.c (initialize_argument_information): When the argument
10959         is passed by reference, do not make a copy in a thunk only if
10960         the argument is already in memory.  Remove redundant test for
10961         the case of callee copy.
10962
10963 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
10964
10965         PR target/99454
10966         * lra-constraints.c (process_address_1): Process 0..9 constraints
10967         in process_address_1.
10968
10969 2021-03-09  Andreas Krebbel  <krebbel@linux.ibm.com>
10970
10971         * config/s390/s390.c (struct s390_processor processor_table):
10972         Binutils name string must not be empty.
10973
10974 2021-03-09  Claudiu Zissulescu  <claziss@synopsys.com>
10975
10976         * config/arc/arc.c (arc_attr_type): Remove function.
10977
10978 2021-03-09  Martin Liska  <mliska@suse.cz>
10979
10980         PR target/99464
10981         * config/i386/i386-options.c (ix86_option_override_internal):
10982         Set isa_flags for OPTS argument and not for the global
10983         global_options.
10984
10985 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
10986
10987         * config/rs6000/predicates.md (ds_form_mem_operand): Check
10988         in correct code.
10989
10990 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
10991
10992         PR target/99070
10993         * config/rs6000/predicates.md (ds_form_mem_operand) New
10994         predicate.
10995         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
10996         ds_form_mem_operand in ld/lwa patterns.
10997         * config/rs6000/fusion.md: Regenerate file.
10998
10999 2021-03-08  Martin Sebor  <msebor@redhat.com>
11000
11001         PR middle-end/98266
11002         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
11003         (array_bounds_checker::check_array_bounds): Call it.
11004
11005 2021-03-08  Martin Sebor  <msebor@redhat.com>
11006
11007         PR middle-end/97631
11008         * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
11009         (handle_builtin_stxncpy_strncat): Rename locals.  Determine
11010         destination size from allocation calls.  Issue a more appropriate
11011         kind of warning.
11012         (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
11013         (handle_builtin_memset): Same.
11014
11015 2021-03-08  Peter Bergner  <bergner@linux.ibm.com>
11016
11017         PR target/98959
11018         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
11019         to ensure we do not have an Altivec style address.
11020         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
11021         an Altivec style address.
11022         (*vsx_le_perm_store_<mode>): Likewise.
11023         (splitters after *vsx_le_perm_store_<mode>): Likewise.
11024         (vsx_load_<mode>): Disable special expander if passed an Altivec
11025         style address.
11026         (vsx_store_<mode>): Likewise.
11027
11028 2021-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11029
11030         PR target/99437
11031         * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
11032         (aarch64_simd_shift_imm_vec_hi): Likewise.
11033         (aarch64_simd_shift_imm_vec_si): Likewise.
11034         (aarch64_simd_shift_imm_vec_di): Likewise.
11035         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
11036         predicate from above.
11037         (aarch64_shrn<mode>_insn_be): Likewise.
11038         (aarch64_rshrn<mode>_insn_le): Likewise.
11039         (aarch64_rshrn<mode>_insn_be): Likewise.
11040         (aarch64_shrn2<mode>_insn_le): Likewise.
11041         (aarch64_shrn2<mode>_insn_be): Likewise.
11042         (aarch64_rshrn2<mode>_insn_le): Likewise.
11043         (aarch64_rshrn2<mode>_insn_be): Likewise.
11044
11045 2021-03-08  Vladimir N. Makarov  <vmakarov@redhat.com>
11046
11047         PR target/99422
11048         * lra-constraints.c (skip_contraint_modifiers): New function.
11049         (process_address_1): Use it before lookup_constraint call.
11050
11051 2021-03-08  Martin Liska  <mliska@suse.cz>
11052
11053         PR target/99463
11054         * config/i386/i386-options.c (ix86_option_override_internal):
11055         Enable UINTR and HRESET for -march that supports it.
11056
11057 2021-03-08  Ilya Leoshkevich  <iii@linux.ibm.com>
11058
11059         * config/s390/s390.c (f_constraint_p): New function.
11060         (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
11061         (TARGET_MD_ASM_ADJUST): Likewise.
11062
11063 2021-03-08  Tobias Burnus  <tobias@codesourcery.com>
11064
11065         PR fortran/97927
11066         * tree-nested.c (convert_local_reference_stmt): Avoid calling
11067         lookup_field_for_decl for Fortran module (= namespace context).
11068
11069 2021-03-08  Andreas Krebbel  <krebbel@linux.ibm.com>
11070
11071         * config/s390/s390.c (s390_expand_vec_compare): Implement <0
11072         comparison with arithmetic right shift.
11073         (s390_expand_vcond): No need for a force_reg anymore.
11074         s390_vec_compare will do it.
11075         * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
11076         immediate operands.
11077
11078 2021-03-07  Jakub Jelinek  <jakub@redhat.com>
11079
11080         PR target/99321
11081         * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
11082         but TARGET_AVX512BW or TARGET_AVX512VL is not set.  Adjust description
11083         and comment.
11084         * config/i386/sse.md (v_Yw): New define_mode_attr.
11085         (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
11086         *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
11087         in constraints.
11088         * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
11089         xYw in constraints.
11090
11091 2021-03-06  Julian Brown  <julian@codesourcery.com>
11092
11093         * tree-pretty-print.c (dump_generic_node): Emit non-generic
11094         address space info for aggregates.
11095
11096 2021-03-06  Hans-Peter Nilsson  <hp@axis.com>
11097
11098         * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
11099
11100 2021-03-05  Jakub Jelinek  <jakub@redhat.com>
11101
11102         PR middle-end/99322
11103         * tree-cfg.c (bb_to_omp_idx): New variable.
11104         (execute_build_cfg): Release the bb_to_omp_idx vector after
11105         cleanup_tree_cfg returns.
11106         (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
11107         for bb_to_omp_idx being a vec<int> instead of pointer to array
11108         of ints.
11109         (make_edges): Remove bb_to_omp_idx local variable, don't pass
11110         it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
11111         vec<int> instead of pointer to array of ints and don't free/release
11112         it at the end.
11113         (remove_bb): When removing a bb and placing forced label somewhere
11114         else, ensure it is put into the same OpenMP region during cfg
11115         pass if possible or to entry successor as fallback.  Unregister
11116         bb from bb_to_omp_idx.
11117
11118 2021-03-05  Vladimir N. Makarov  <vmakarov@redhat.com>
11119
11120         PR target/99378
11121         * lra-constraints.c (process_address_1): Skip decomposing address
11122         for asm insn operand with unknown constraint.
11123
11124 2021-03-05  Martin Jambor  <mjambor@suse.cz>
11125
11126         PR ipa/98078
11127         * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
11128         corresponding speculative edges if we are about to resolve
11129         sepculation.  Make edge direct (and so resolve speculations) before
11130         removing it from call_site_hash.
11131         (cgraph_edge::make_direct): Relax the initial assert to allow calling
11132         the function on speculative direct edges.
11133
11134 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
11135
11136         PR rtl-optimization/99376
11137         * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
11138         of low-order zero bits is too large, set the result to 0 directly.
11139
11140 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
11141
11142         PR middle-end/93235
11143         * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
11144         SUBREG and a SUBREG to op_mode can't be created.
11145
11146 2021-03-04  Alex Coplan  <alex.coplan@arm.com>
11147
11148         PR target/99381
11149         * config/aarch64/aarch64-sve-builtins.cc
11150         (function_resolver::require_vector_type): Handle error_mark_node.
11151
11152 2021-03-04  Ilya Leoshkevich  <iii@linux.ibm.com>
11153
11154         * cfgexpand.c (expand_asm_loc): Pass new parameter.
11155         (expand_asm_stmt): Likewise.
11156         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
11157         parameter.
11158         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
11159         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
11160         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
11161         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
11162         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
11163         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
11164         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
11165         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
11166         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
11167         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
11168         * doc/tm.texi (md_asm_adjust): Likewise.
11169         * target.def (md_asm_adjust): Likewise.
11170
11171 2021-03-04  Richard Biener  <rguenther@suse.de>
11172
11173         PR middle-end/97855
11174         * tree-pretty-print.c: Poison pp_printf.
11175         (dump_decl_name): Avoid use of pp_printf.
11176         (dump_block_node): Likewise.
11177         (dump_generic_node): Likewise.
11178
11179 2021-03-04  Martin Sebor  <msebor@redhat.com>
11180
11181         PR middle-end/96963
11182         PR middle-end/94655
11183         * builtins.c (handle_array_ref): New helper.
11184         (handle_mem_ref): New helper.
11185         (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
11186         into new helper functions.  Correct a workaround for vectorized
11187         assignments.
11188
11189 2021-03-03  Pat Haugen  <pthaugen@linux.ibm.com>
11190
11191         * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
11192         floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
11193         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
11194         *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
11195         attribute for Power10.
11196         * config/rs6000/mma.md (*movoo): Likewise.
11197         * config/rs6000/rs6000.md (define_attr "size"): Add 256.
11198         (define_mode_attr bits): Add DD/TD modes.
11199         * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
11200         store_conditionalpti): Update size attribute for Power10.
11201
11202 2021-03-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11203
11204         PR bootstrap/92002
11205         * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
11206         -Wuninitialized, -Wmaybe-uninitialized.
11207         (wide-int.o-warn): Likewise.
11208
11209 2021-03-03  Richard Earnshaw  <rearnsha@arm.com>
11210
11211         * common/config/arm/arm-common.c: Include configargs.h.
11212         (arm_config_default): New function.
11213         (arm_target_mode): Renamed from arm_target_thumb_only.  Handle
11214         processors that do not support Thumb.  Take into account the
11215         --with-mode configuration setting for selecting the default.
11216         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
11217         (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
11218
11219 2021-03-03  Martin Liska  <mliska@suse.cz>
11220
11221         PR gcov-profile/97461
11222         * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
11223
11224 2021-03-03  Eric Botcazou  <ebotcazou@adacore.com>
11225
11226         PR target/99234
11227         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
11228         point back the hard frame pointer to its default location when the
11229         frame is larger than SEH_MAX_FRAME_SIZE.
11230
11231 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
11232
11233         PR target/99321
11234         * config/i386/predicates.md (logic_operator): New define_predicate.
11235         * config/i386/i386.md (mov + mem using comm arith peephole2):
11236         Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
11237         and the inner mode is [QH]Imode.
11238
11239 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
11240
11241         PR debug/99090
11242         * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
11243         (new_loc_list): Clear end_entry.
11244         (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
11245         if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx.  Fix comment
11246         typo.
11247         (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
11248         initialize also end_entry.
11249
11250 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
11251
11252         PR target/99085
11253         * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
11254         partitions, if in non-layout mode after reorder_blocks also move
11255         affected blocks to ensure a single partition transition.
11256
11257 2021-03-03  Jason Merrill  <jason@redhat.com>
11258
11259         PR c++/96078
11260         * cgraphunit.c (process_function_and_variable_attributes): Don't
11261         warn about flatten on an alias if the target also has it.
11262         * cgraph.h (symtab_node::get_alias_target_tree): New.
11263
11264 2021-03-02  David Edelsohn  <dje.gcc@gmail.com>
11265
11266         * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
11267         period to symbol name.
11268         (tls_get_addr_internal<mode>): Same.
11269
11270 2021-03-02  David Malcolm  <dmalcolm@redhat.com>
11271
11272         PR c/99323
11273         * diagnostic-show-locus.c
11274         (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
11275         column 0.
11276
11277 2021-03-02  Martin Sebor  <msebor@redhat.com>
11278
11279         PR middle-end/99276
11280         * builtins.c (warn_for_access): Remove stray warning text.
11281
11282 2021-03-02  Martin Sebor  <msebor@redhat.com>
11283
11284         PR middle-end/99295
11285         * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
11286         property.
11287
11288 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
11289
11290         PR debug/99319
11291         * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
11292         -gdwarf-5 -gstrict-dwarf.  For -gsplit-dwarf -gdwarf-5 use
11293         DW_MACRO_*_strx instead of DW_MACRO_*_strp.  Handle
11294         DW_MACRO_define_strx and DW_MACRO_undef_strx.
11295         (save_macinfo_strings): Use DW_MACRO_*_str* even with
11296         -gdwarf-5 -gstrict-dwarf.  Handle DW_MACRO_define_strx and
11297         DW_MACRO_undef_strx.
11298
11299 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11300
11301         * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
11302         builtin signature.
11303         (BT_FN_V8HI_V8HI_UINT): Likewise.
11304         (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
11305         * config/s390/s390-builtins.def (B_NNPA): New macro definition.
11306         (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
11307         New builtin definitions.
11308         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
11309         vector extension version.
11310         * config/s390/s390.c (s390_expand_builtin): Check if builtins are
11311         available with current -march level.
11312         * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
11313         (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
11314         (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
11315         * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
11316         (vec_extend_to_fp32_lo): Likewise.
11317         (vec_round_from_fp32): Likewise.
11318         (vec_convert_to_fp16): Likewise.
11319         (vec_convert_from_fp16): Likewise.
11320         * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
11321         (vclfnls_v8hi): Likewise.
11322         (vcrnfs_v8hi): Likewise.
11323         (vcfn_v8hi): Likewise.
11324         (vcnf_v8hi): Likewise.
11325
11326 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
11327
11328         * common/config/s390/s390-common.c (processor_flags_table): New entry.
11329         * config.gcc: Enable arch14 for --with-arch and --with-tune.
11330         * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
11331         arch14 for unknown CPU models.
11332         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
11333         * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
11334         (s390_get_sched_attrmask): Likewise.
11335         (s390_get_unit_mask): Likewise.
11336         * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
11337         (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
11338         (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
11339         (TARGET_NNPA_P): New macro definitions.
11340         * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
11341         * config/s390/s390.opt: Add PROCESSOR_ARCH14.
11342
11343 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
11344
11345         PR middle-end/95757
11346         * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
11347         condition.  Call register_edge_assert_for_1 for == 0, != 0, == 1 and
11348         != 1 comparisons if name is lhs of a comparison.
11349
11350 2021-03-01  Iain Sandoe  <iain@sandoe.co.uk>
11351
11352         PR target/44107
11353         PR target/48097
11354         * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
11355         * config/darwin.c (darwin_should_restore_cfa_state): New.
11356         * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
11357         * doc/tm.texi: Regenerated.
11358         * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
11359         * dwarf2cfi.c (connect_traces): If the target requests, restore
11360         the CFA expression after a DW_CFA_restore.
11361         * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
11362
11363 2021-03-01  Martin Liska  <mliska@suse.cz>
11364
11365         PR target/99313
11366         * optc-save-gen.awk: Add 4 more exceptions.
11367
11368 2021-03-01  Nathan Sidwell  <nathan@acm.org>
11369
11370         PR c++/99294
11371         * tree.h (TYPE_ALIGN_RAW): New accessor.
11372         (TYPE_ALIGN): Use it.
11373
11374 2021-03-01  Jan Hubicka  <jh@suse.cz>
11375
11376         PR ipa/98338
11377         * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
11378
11379 2021-03-01  Eric Botcazou  <ebotcazou@adacore.com>
11380
11381         PR target/99234
11382         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
11383         point the hard frame pointer to the SSE register save area instead
11384         of the general register save area.  Perform only minimal adjustment
11385         for small frames if it is initially not correctly aligned.
11386         (ix86_expand_prologue): Remove early saves for a SEH target.
11387         * config/i386/winnt.c (struct seh_frame_state): Document constraint.
11388
11389 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
11390
11391         PR c/99304
11392         * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
11393         typo - referneced -> referenced.
11394         * tree.c (component_ref_size): Fix comment typo -
11395         refernce -> reference.
11396         * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
11397         traling -> trailing.
11398         (aliasing_component_refs_p): Fix comment typos -
11399         refernce -> reference and refernece -> reference and
11400         traling -> trailing.
11401         (nonoverlapping_refs_since_match_p): Fix comment typo -
11402         referneces -> references.
11403         * doc/invoke.texi (--param modref-max-bases): Fix a typo -
11404         referneces -> references.
11405
11406 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
11407
11408         * config/host-darwin.c (darwin_gt_pch_use_address): Modify
11409         diagnostic message to avoid use of a contraction and format
11410         warning.
11411
11412 2021-02-27  Jakub Jelinek  <jakub@redhat.com>
11413
11414         PR other/99288
11415         * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
11416         HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
11417         * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
11418         HOST_WIDE_INT_PRINT_DEC in inform format string.  Fix comment
11419         typos.
11420
11421 2021-02-26  Richard Biener  <rguenther@suse.de>
11422
11423         PR middle-end/99281
11424         * expr.c (store_field): For calls with return-slot optimization
11425         and addressable return type expand the store directly.
11426
11427 2021-02-26  Richard Biener  <rguenther@suse.de>
11428
11429         PR c/99275
11430         * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
11431
11432 2021-02-26  Peter Bergner  <bergner@linux.ibm.com>
11433
11434         PR target/99279
11435         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
11436         with an "if" test.
11437
11438 2021-02-26  Aaron Sawdey  <acsawdey@linux.ibm.com>
11439
11440         * config.gcc: Add rs6000-pcrel-opt.o.
11441         * config/rs6000/rs6000-pcrel-opt.c: New file.
11442         * config/rs6000/pcrel-opt.md: New file.
11443         * config/rs6000/predicates.md: Add d_form_memory predicate.
11444         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
11445         * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
11446         * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
11447         pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
11448         and make_pass_pcrel_opt().
11449         * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
11450         (rs6000_option_override_internal): Add pcrel-opt.
11451         (rs6000_delegitimize_address): Support pcrel-opt.
11452         (rs6000_opt_masks): Add pcrel-opt.
11453         (pcrel_opt_valid_mem_p): New function.
11454         (reg_to_non_prefixed): Make global.
11455         (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
11456         (output_pcrel_opt_reloc): New function.
11457         * config/rs6000/rs6000.md (loads_extern_addr): New attr.
11458         (pcrel_extern_addr): Set loads_extern_addr.
11459         Add include for pcrel-opt.md.
11460         * config/rs6000/rs6000.opt: Add -mpcrel-opt.
11461         * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
11462         pcrel-opt.md.
11463
11464 2021-02-26  YunQiang Su  <yunqiang.su@cipunited.com>
11465
11466         PR target/98996
11467         * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
11468         If TARGET_64BIT and dest is SUBREG, we check the width, if it
11469         equal to SImode, we use SImode operation, just like what we are
11470         doing for REG one.
11471
11472 2021-02-26  Marek Polacek  <polacek@redhat.com>
11473
11474         * builtins.c (warn_for_access): Fix typos.
11475
11476 2021-02-25  Iain Sandoe  <iain@sandoe.co.uk>
11477
11478         * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
11479         mark in front of the immediate quantity.
11480         (<optab>_rolsi3_uxtw): Likewise.
11481
11482 2021-02-25  Richard Earnshaw  <rearnsha@arm.com>
11483
11484         PR target/99271
11485         * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
11486         (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
11487         (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
11488         address and disable when the FPCXT is not available.
11489         (nonsecure_call_value_reg_thumb2): Likewise.
11490
11491 2021-02-25  Nathan Sidwell  <nathan@acm.org>
11492
11493         PR c++/99166
11494         * doc/invoke.texi (flang-info-module-cmi): Renamed option.
11495
11496 2021-02-25  Tamar Christina  <tamar.christina@arm.com>
11497
11498         * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
11499
11500 2021-02-25  Richard Biener  <rguenther@suse.de>
11501
11502         PR tree-optimization/99253
11503         * tree-vect-loop.c (check_reduction_path): First compute
11504         code, then verify out-of-loop uses.
11505
11506 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
11507
11508         PR target/95798
11509         * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
11510
11511 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
11512
11513         PR tree-optimization/80635
11514         * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
11515         VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
11516         has mode precision.
11517
11518 2021-02-25  Richard Biener  <rguenther@suse.de>
11519
11520         * tree-vect-slp.c (optimize_load_redistribution_1): Delay
11521         load_map population.
11522         (vect_match_slp_patterns_2): Revert part of last change.
11523         (vect_analyze_slp): Do not interleave optimize_load_redistribution
11524         with pattern detection but do it afterwards.  Dump the
11525         whole SLP graph after pattern recognition and load
11526         redistribution optimization finished.
11527
11528 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
11529
11530         PR fortran/99226
11531         * omp-low.c (struct omp_context): Add teams_nested_p and
11532         nonteams_nested_p members.
11533         (scan_omp_target): Diagnose teams nested inside of target with other
11534         directives strictly nested inside of the same target.
11535         (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
11536         ctx->nonteams_nested_p as needed.
11537
11538 2021-02-24  Vladimir N. Makarov  <vmakarov@redhat.com>
11539
11540         PR inline-asm/99123
11541         * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
11542
11543 2021-02-24  Hans-Peter Nilsson  <hp@axis.com>
11544
11545         * config/cris/cris.c (cris_expand_prologue): Set
11546         current_function_static_stack_size, if flag_stack_usage_info.
11547
11548 2021-02-24  Pat Haugen  <pthaugen@linux.ibm.com>
11549
11550         * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
11551         (rs6000_final_prescan_insn): Adjust.
11552         (rs6000_asm_output_opcode): Likewise.
11553
11554 2021-02-24  Martin Sebor  <msebor@redhat.com>
11555
11556         PR middle-end/97172
11557         * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
11558         from function arguments.
11559
11560 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
11561
11562         PR tree-optimization/99220
11563         * tree-vect-slp.c (optimize_load_redistribution_1): Remove
11564         node from cache when it's about to be deleted.
11565
11566 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
11567
11568         PR tree-optimization/99225
11569         * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
11570         to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
11571         build_int_cst (..., 1).  Formatting fixes.
11572
11573 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
11574
11575         PR tree-optimization/99149
11576         * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
11577         buffer.
11578         (vect_slp_reset_pattern): Remove.
11579         (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
11580         (complex_mul_pattern::build, complex_fma_pattern::build,
11581         complex_fms_pattern::build): Fix ref counts.
11582         * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
11583         when node is being deleted.
11584         (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
11585         (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
11586         stores.
11587         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
11588
11589 2021-02-24  Matthias Klose  <doko@ubuntu.com>
11590
11591         Revert:
11592         2020-12-07  Matthias Klose  <doko@ubuntu.com>
11593
11594         * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
11595         and ENABLE_RTL_FLAG_CHECKING.
11596
11597 2021-02-24  Richard Biener  <rguenther@suse.de>
11598
11599         PR c/99224
11600         * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
11601
11602 2021-02-23  Peter Bergner  <bergner@linux.ibm.com>
11603
11604         * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
11605         (vsx_assemble_pair): ...to this.
11606         (*mma_assemble_pair): Rename from this...
11607         (*vsx_assemble_pair): ...to this.
11608         (mma_disassemble_pair): Rename from this...
11609         (vsx_disassemble_pair): ...to this.
11610         (*mma_disassemble_pair): Rename from this...
11611         (*vsx_disassemble_pair): ...to this.
11612         * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
11613         BU_COMPAT): New macros.
11614         (mma_assemble_pair): Rename from this...
11615         (vsx_assemble_pair): ...to this.
11616         (mma_disassemble_pair): Rename from this...
11617         (vsx_disassemble_pair): ...to this.
11618         (mma_assemble_pair): New compatibility built-in.
11619         (mma_disassemble_pair): Likewise.
11620         * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
11621         (RS6000_BUILTIN_COMPAT): Define.
11622         (bdesc_compat): New.
11623         (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
11624         (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
11625         and VSX_BUILTIN_ASSEMBLE_PAIR.
11626         (rs6000_init_builtins): Register compatibility built-ins.
11627         (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
11628         VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
11629         VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
11630         * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
11631         (__builtin_vsx_assemble_pair): ...to this.
11632         (__builtin_mma_disassemble_pair): Rename from this...
11633         (__builtin_vsx_disassemble_pair): ...to this.
11634
11635 2021-02-23  Martin Liska  <mliska@suse.cz>
11636
11637         PR sanitizer/99168
11638         * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
11639         with different alignment. That leads to an invalid red zone
11640         size allocated in runtime.
11641
11642 2021-02-23  Jakub Jelinek  <jakub@redhat.com>
11643
11644         PR tree-optimization/99204
11645         * fold-const.c (fold_read_from_constant_string): Check that
11646         tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
11647
11648 2021-02-23  Segher Boessenkool  <segher@kernel.crashing.org>
11649             Kewen Lin  <linkw@gcc.gnu.org>
11650
11651         * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
11652         (rotl<mode>3_insert_3): ...this.
11653         (plus_ior_xor): New code_iterator.
11654         (define_split for GPR rl*imi): New splitter.
11655         * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
11656         for integer merging.
11657
11658 2021-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11659
11660         * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
11661         Define.
11662         * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
11663         into a register when the above is enabled.
11664         * config/aarch64/aarch64.c (neoversev1_tunings):
11665         AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
11666         (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
11667
11668 2021-02-22  Hans-Peter Nilsson  <hp@axis.com>
11669
11670         * config/cris/cris.c (cris_print_operand) <'T'>: Change
11671         valid operand from is now an addi mult-value to shift-value.
11672         * config/cris/cris.md (*addi): Change expression of scaled
11673         operand from mult to ashift.
11674         * config/cris/cris.md (*addi_reload): New insn_and_split.
11675
11676 2021-02-22  John David Anglin  <danglin@gcc.gnu.org>
11677
11678         PR target/85074
11679         * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
11680         hook_bool_const_tree_hwi_hwi_const_tree_true.
11681         (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
11682
11683 2021-02-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11684
11685         PR rtl-optimization/98791
11686         * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
11687         for unordered modes.
11688
11689 2021-02-22  Martin Liska  <mliska@suse.cz>
11690
11691         * tree-inline.c (inline_forbidden_p): Set
11692         inline_forbidden_reason.
11693
11694 2021-02-22  Richard Biener  <rguenther@suse.de>
11695
11696         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
11697         costed subgraph.
11698
11699 2021-02-22  Richard Biener  <rguenther@suse.de>
11700
11701         PR tree-optimization/99165
11702         * gimple-ssa-store-merging.c (pass_store_merging::process_store):
11703         Accumulate changed to ret.
11704
11705 2021-02-21  Uros Bizjak  <ubizjak@gmail.com>
11706
11707         Revert:
11708         2020-12-09  Uroš Bizjak  <ubizjak@gmail.com>
11709
11710         * config/i386/i386.h (REG_ALLOC_ORDER): Remove
11711
11712 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
11713
11714         PR target/99134
11715         * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
11716         pattern.
11717         (trunctf<DFP_ALL:mode>2): Likewise.
11718         (trunctdtf2_vr): Likewise.
11719         (trunctdtf2): Likewise.
11720         (extend<DFP_ALL:mode>tf2_vr): Likewise.
11721         (extend<DFP_ALL:mode>tf2): Likewise.
11722         (extendtftd2_vr): Likewise.
11723         (extendtftd2): Likewise.
11724
11725 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
11726
11727         * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
11728         add memory alternative.
11729         (tf_to_fprx2): New pattern.
11730
11731 2021-02-19  Martin Sebor  <msebor@redhat.com>
11732
11733         PR c/97172
11734         * attribs.c (init_attr_rdwr_indices): Guard vblist use.
11735         (attr_access::free_lang_data): Remove a spurious test.
11736
11737 2021-02-19  Nathan Sidwell  <nathan@acm.org>
11738
11739         * doc/invoke.texi (flang-info-module-read): Document.
11740
11741 2021-02-19  Martin Liska  <mliska@suse.cz>
11742
11743         PR translation/99167
11744         * params.opt: Fix typo.
11745
11746 2021-02-19  Richard Biener  <rguenther@suse.de>
11747
11748         PR middle-end/99122
11749         * tree-inline.c (inline_forbidden_p): Do not inline functions
11750         with VLA arguments or return value.
11751
11752 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
11753
11754         PR target/98998
11755         * config/arm/arm.md (*stack_protect_combined_set_insn,
11756         *stack_protect_combined_test_insn): If force_const_mem result
11757         is not valid general operand, force its address into the destination
11758         register first.
11759
11760 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
11761
11762         PR ipa/99034
11763         * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
11764         pad or non-local label, put FORCED_LABELs from bb b after that label
11765         rather than before it.
11766
11767 2021-02-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11768
11769         PR target/98657
11770         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
11771         expand_vector_broadcast' to emit the vec_duplicate operand.
11772
11773 2021-02-18  Vladimir N. Makarov  <vmakarov@redhat.com>
11774
11775         PR rtl-optimization/96264
11776         * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
11777         hard regs.
11778
11779 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
11780
11781         PR target/99113
11782         * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
11783         looking up the retain attribute.
11784         (resolve_unique_section): Likewise.
11785         (get_variable_section): Likewise.
11786         (switch_to_section): Likewise.  Warn when a symbol without the
11787         retain attribute and a symbol with the retain attribute are
11788         placed in the section with the same name, instead of the used
11789         attribute.
11790         * doc/extend.texi: Document the "retain" attribute.
11791
11792 2021-02-18  Nathan Sidwell  <nathan@acm.org>
11793
11794         PR c++/99023
11795         * doc/invoke.texi (flang-info-include-translate): Document header
11796         lookup behaviour.
11797
11798 2021-02-18  Richard Biener  <rguenther@suse.de>
11799
11800         PR middle-end/99122
11801         * ipa-fnsummary.c (analyze_function_body): Set
11802         CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
11803         * tree-inline.c (insert_init_debug_bind): Pass NULL for
11804         error_mark_node values.
11805         (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
11806         values.
11807         (setup_one_parameter): Delay force_value_to_type until when
11808         it's needed.
11809
11810 2021-02-18  Hans-Peter Nilsson  <hp@axis.com>
11811
11812         PR tree-optimization/99142
11813         * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
11814
11815 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
11816
11817         * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
11818         wide_int_bitmask::wide_int_bitmask (uint64_t),
11819         wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
11820         wide_int_bitmask::operator ~ () const,
11821         wide_int_bitmask::operator | (wide_int_bitmask) const,
11822         wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
11823         instead of inline.
11824         * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
11825         PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
11826         PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
11827         PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
11828         PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
11829         PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
11830         PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
11831         PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
11832         PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
11833         PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
11834         PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
11835         PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
11836         PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
11837         PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
11838         PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
11839         PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
11840         PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
11841         PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
11842         PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
11843         PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
11844         PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
11845         PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
11846         PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
11847         PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
11848
11849 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
11850
11851         PR middle-end/99109
11852         * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
11853         (build_printable_array_type): ... this.  Add nelts argument.  For
11854         overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead.  If
11855         nelts, call build_array_type_nelts.
11856         (array_bounds_checker::check_mem_ref): Use build_printable_array_type
11857         instead of build_zero_elt_array_type and build_array_type_nelts.
11858
11859 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
11860
11861         PR target/99104
11862         * config/i386/i386.c (distance_non_agu_define): Don't call
11863         extract_insn_cached here.
11864         (ix86_lea_outperforms): Save and restore recog_data around call
11865         to distance_non_agu_define and distance_agu_use.
11866         (ix86_ok_to_clobber_flags): Remove.
11867         (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
11868         (ix86_avoid_lea_for_addr): Likewise.  Adjust function comment.
11869         * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
11870         into define_insn.  Move the splitting to define_peephole2 and
11871         check there using peep2_regno_dead_p if FLAGS_REG is dead.
11872
11873 2021-02-17  Julian Brown  <julian@codesourcery.com>
11874
11875         * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
11876         for non-decls.
11877
11878 2021-02-17  Xi Ruoyao  <xry111@mengyan1223.wang>
11879
11880         PR target/98491
11881         * config/mips/mips.c (mips_symbol_insns): Do not use
11882         MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
11883
11884 2021-02-16  Vladimir N. Makarov  <vmakarov@redhat.com>
11885
11886         PR inline-asm/98096
11887         * stmt.c (resolve_operand_name_1): Take inout operands into account
11888         for access to labels by names.
11889         * doc/extend.texi: Describe counting operands for accessing labels.
11890
11891 2021-02-16  Richard Biener  <rguenther@suse.de>
11892
11893         PR tree-optimization/38474
11894         * tree-ssa-structalias.c (variable_info::address_taken): New.
11895         (new_var_info): Initialize address_taken.
11896         (process_constraint): Set address_taken.
11897         (solve_constraints): Use the new address_taken flag rather
11898         than is_reg_var for sorting variables.
11899         (dump_constraint): Dump the variable number if the name
11900         is just NULL.
11901
11902 2021-02-16  Jakub Jelinek  <jakub@redhat.com>
11903
11904         PR target/99100
11905         * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
11906         multiply by 4096 and for inbranch by 8192.
11907         * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
11908         return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
11909
11910 2021-02-15  Maya Rashish  <coypu@sdf.org>
11911
11912         * config/aarch64/aarch64.c (aarch64_init_builtins):
11913         Call SUBTARGET_INIT_BUILTINS.
11914
11915 2021-02-15  Peter Bergner  <bergner@linux.ibm.com>
11916
11917         PR rtl-optimization/98872
11918         * init-regs.c (initialize_uninitialized_regs): Skip initialization
11919         if CONST0_RTX is NULL.
11920
11921 2021-02-15  Richard Sandiford  <richard.sandiford@arm.com>
11922
11923         PR rtl-optimization/98863
11924         * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
11925         (function_info::build_info): Turn into a declaration, moving the
11926         definition to internals.h.
11927         (function_info::bb_walker): Declare.
11928         (function_info::create_reg_use): Likewise.
11929         (function_info::calculate_potential_phi_regs): Take a build_info
11930         parameter.
11931         (function_info::place_phis, function_info::create_ebbs): Declare.
11932         (function_info::calculate_ebb_live_in_for_debug): Likewise.
11933         (function_info::populate_backedge_phis): Delete.
11934         (function_info::start_block, function_info::end_block): Declare.
11935         (function_info::populate_phi_inputs): Delete.
11936         (function_info::m_potential_phi_regs): Move information to build_info.
11937         * rtl-ssa/internals.h: New file.
11938         (function_info::bb_phi_info): New class.
11939         (function_info::build_info): Moved from functions.h.
11940         Add a constructor and destructor.
11941         (function_info::build_info::ebb_use): Delete.
11942         (function_info::build_info::ebb_def): Likewise.
11943         (function_info::build_info::bb_live_out): Likewise.
11944         (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
11945         (function_info::build_info::potential_phi_regs): Likewise.
11946         (function_info::build_info::potential_phi_regs_for_debug): Likewise.
11947         (function_info::build_info::ebb_def_regs): Likewise.
11948         (function_info::build_info::bb_phis): Likewise.
11949         (function_info::build_info::bb_mem_live_out): Likewise.
11950         (function_info::build_info::bb_to_rpo): Likewise.
11951         (function_info::build_info::def_stack): Likewise.
11952         (function_info::build_info::old_def_stack_limit): Likewise.
11953         * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
11954         Remove the regno argument.  Push the previous definition onto the
11955         definition stack where necessary.
11956         * rtl-ssa/accesses.cc: Include internals.h.
11957         * rtl-ssa/changes.cc: Likewise.
11958         * rtl-ssa/blocks.cc: Likewise.
11959         (function_info::build_info::build_info): Define.
11960         (function_info::build_info::~build_info): Likewise.
11961         (function_info::bb_walker): New class.
11962         (function_info::bb_walker::bb_walker): Define.
11963         (function_info::add_live_out_use): Convert a logarithmic-complexity
11964         test into a linear one.  Allow the same definition to be passed
11965         multiple times.
11966         (function_info::calculate_potential_phi_regs): Moved from
11967         functions.cc.  Take a build_info parameter and store the
11968         information there instead.
11969         (function_info::place_phis): New function.
11970         (function_info::add_entry_block_defs): Update call to record_reg_def.
11971         (function_info::calculate_ebb_live_in_for_debug): New function.
11972         (function_info::add_phi_nodes): Use bb_phis to decide which
11973         registers need phi nodes and initialize ebb_def_regs accordingly.
11974         Do not add degenerate phis here.
11975         (function_info::add_artificial_accesses): Use create_reg_use.
11976         Assert that all definitions are listed in the DF LR sets.
11977         Update call to record_reg_def.
11978         (function_info::record_block_live_out): Record live-out register
11979         values in the phis of successor blocks.  Use the live-out set
11980         when processing the last block in an EBB, instead of always
11981         using the live-in sets of successor blocks.  AND the live sets
11982         with the set of registers that have been defined in the EBB,
11983         rather than with all potential phi registers.  Cope correctly
11984         with branches back to the start of the current EBB.
11985         (function_info::start_block): New function.
11986         (function_info::end_block): Likewise.
11987         (function_info::populate_phi_inputs): Likewise.
11988         (function_info::create_ebbs): Likewise.
11989         (function_info::process_all_blocks): Rewrite into a multi-phase
11990         process.
11991         * rtl-ssa/functions.cc: Include internals.h.
11992         (function_info::calculate_potential_phi_regs): Move to blocks.cc.
11993         (function_info::init_function_data): Remove caller.
11994         * rtl-ssa/insns.cc: Include internals.h
11995         (function_info::create_reg_use): New function.  Lazily any
11996         degenerate phis needed by the linear RPO view.
11997         (function_info::record_use): Use create_reg_use.  When processing
11998         debug uses, use potential_phi_regs and test it before checking
11999         whether the register is live on entry to the current EBB.  Lazily
12000         calculate ebb_live_in_for_debug.
12001         (function_info::record_call_clobbers): Update call to record_reg_def.
12002         (function_info::record_def): Likewise.
12003
12004 2021-02-15  Martin Liska  <mliska@suse.cz>
12005
12006         * toplev.c (init_asm_output): Free output of
12007         gen_command_line_string function.
12008         (process_options): Likewise.
12009
12010 2021-02-15  Martin Liska  <mliska@suse.cz>
12011
12012         * params.opt: Add 2 missing Param keywords.
12013
12014 2021-02-15  Eric Botcazou  <ebotcazou@adacore.com>
12015
12016         * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
12017
12018 2021-02-15  Jakub Jelinek  <jakub@redhat.com>
12019
12020         PR tree-optimization/99079
12021         * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
12022         useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check.  Instead
12023         require both type and TREE_TYPE (@1) to be integral types and either
12024         type having smaller or equal precision, or TREE_TYPE (@1) being
12025         unsigned type, or type being signed type.  If TREE_TYPE (@1)
12026         doesn't have wrapping overflow, perform the subtraction of one in
12027         unsigned type.
12028
12029 2021-02-14  Jan Hubicka  <hubicka@ucw.cz>
12030             Richard Biener  <rguether@suse.de>
12031
12032         PR ipa/97346
12033         * ipa-reference.c (ipa_init): Only conditinally initialize
12034         reference_vars_to_consider.
12035         (propagate): Conditionally deninitialize reference_vars_to_consider.
12036         (ipa_reference_write_optimization_summary): Sanity check that
12037         reference_vars_to_consider is not allocated.
12038
12039 2021-02-13  Levy Hsu  <admin@levyhsu.com>
12040
12041         PR target/97417
12042         * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
12043         extend parameter to get_si_mem_base_reg declaration.
12044         (get_si_mem_base_reg): Add extend parameter.  Set it.
12045         (analyze): Pass extend arg to get_si_mem_base_reg.
12046         (transform): Likewise.  Use it when rewriting mems.
12047         * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
12048         loads and emit sign/zero extending load followed by subreg move.
12049
12050 2021-02-13  Jim Wilson  <jimw@sifive.com>
12051
12052         PR target/97417
12053         * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
12054         exit when !reload_completed.  Only perform check for compressed reg
12055         if reload_completed.
12056         (riscv_rtx_costs): In MEM case, when optimizing for size and
12057         shorten memrefs, if not compressible, then increase cost.
12058
12059 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
12060
12061         PR rtl-optimization/98439
12062         * recog.c (pass_split_before_regstack::gate): Enable even when
12063         pass_split_before_sched2 is enabled if -fselective-scheduling2 is
12064         on.
12065
12066 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
12067
12068         PR target/96166
12069         * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
12070         swap of V2SImode elements in memory into DImode memory rotate by 32.
12071
12072 2021-02-12  Martin Sebor  <msebor@redhat.com>
12073
12074         * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
12075
12076 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
12077
12078         * rtl-ssa/accesses.cc (function_info::make_use_available): Use
12079         m_temp_obstack rather than m_obstack to allocate the temporary use.
12080
12081 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
12082
12083         * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
12084         as read-modify operations.
12085
12086 2021-02-12  Richard Biener  <rguenther@suse.de>
12087
12088         PR middle-end/38474
12089         * ipa-fnsummary.c (unmodified_parm_1): Only walk when
12090         fbi->aa_walk_budget is bigger than zero.  Update
12091         fbi->aa_walk_budget.
12092         (param_change_prob): Likewise.
12093         * ipa-prop.c (detect_type_change_from_memory_writes):
12094         Properly account walk_aliased_vdefs.
12095         (parm_preserved_before_stmt_p): Canonicalize updates.
12096         (parm_ref_data_preserved_p): Likewise.
12097         (parm_ref_data_pass_through_p): Likewise.
12098         (determine_known_aggregate_parts): Account own alias queries.
12099
12100 2021-02-12  Martin Liska  <mliska@suse.cz>
12101
12102         * opts-common.c (decode_cmdline_option): Release werror_arg.
12103         * opts.c (gen_producer_string): Release output of
12104         gen_command_line_string.
12105
12106 2021-02-12  Richard Biener  <rguenther@suse.de>
12107
12108         PR tree-optimization/38474
12109         * params.opt (-param=max-store-chains-to-track=): New param.
12110         (-param=max-stores-to-track=): Likewise.
12111         * doc/invoke.texi (max-store-chains-to-track): Document.
12112         (max-stores-to-track): Likewise.
12113         * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
12114         New.
12115         (pass_store_merging::m_n_stores): Likewise.
12116         (pass_store_merging::terminate_and_process_chain): Update
12117         m_n_stores and m_n_chains.
12118         (pass_store_merging::process_store): Likewise.   Terminate
12119         oldest chains if the number of stores or chains get too large.
12120         (imm_store_chain_info::terminate_and_process_chain): Dump
12121         chain length.
12122
12123 2021-02-11  Eric Botcazou  <ebotcazou@adacore.com>
12124
12125         * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
12126         the cold section, emit a nop before the directive if the previous
12127         active instruction can throw.
12128
12129 2021-02-11  Peter Bergner  <bergner@linux.ibm.com>
12130
12131         PR target/99041
12132         * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
12133         memory addresses that are legal for quad word accesses.
12134
12135 2021-02-11  Andrea Corallo  <andrea.corallo@arm.com>
12136
12137         PR target/98931
12138         * config/arm/thumb2.md (*doloop_end_internal): Generate
12139         alternative sequence to handle long range branches.
12140
12141 2021-02-11  Joel Hutton  <joel.hutton@arm.com>
12142
12143         PR tree-optimization/98772
12144         * optabs-tree.c (supportable_half_widening_operation): New function
12145         to check for supportable V8QI->V8HI widening patterns.
12146         * optabs-tree.h (supportable_half_widening_operation): New function.
12147         * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
12148         to create promotion stmts for V8QI->V8HI widening patterns.
12149         (vectorizable_conversion): Add case for V8QI->V8HI.
12150
12151 2021-02-11  Richard Biener  <rguenther@suse.de>
12152
12153         * sparseset.h (SPARSESET_ELT_BITS): Remove.
12154         (SPARSESET_ELT_TYPE): Use unsigned int.
12155         * fwprop.c: Do not include sparseset.h.
12156
12157 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
12158
12159         PR c++/99035
12160         * varasm.c (declare_weak): For -fsyntax-only, allow even
12161         TREE_ASM_WRITTEN function decls.
12162
12163 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
12164
12165         PR target/99025
12166         * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
12167         <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
12168         <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
12169         <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
12170         calling simplify_gen_subreg on it.
12171
12172 2021-02-10  Martin Liska  <mliska@suse.cz>
12173
12174         * config/nvptx/nvptx.c (nvptx_option_override): Use
12175         flag_patchable_function_entry instead of the removed
12176         function_entry_patch_area_size.
12177
12178 2021-02-10  Martin Liska  <mliska@suse.cz>
12179
12180         PR tree-optimization/99002
12181         PR tree-optimization/99026
12182         * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
12183         leak when adjacent cases are merged.
12184         * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
12185         release_clusters.
12186         (make_pass_lower_switch): Remove trailing whitespace.
12187         * tree-switch-conversion.h (release_clusters): New.
12188
12189 2021-02-10  Richard Biener  <rguenther@suse.de>
12190
12191         PR rtl-optimization/99054
12192         * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
12193         (fixup_partitions): Adjust.
12194         (rtl_verify_edges): Likewise.
12195
12196 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
12197
12198         PR middle-end/99007
12199         * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
12200         temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
12201         calls.
12202
12203 2021-02-10  Richard Biener  <rguenther@suse.de>
12204
12205         PR ipa/99029
12206         * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
12207         for callees.
12208
12209 2021-02-10  Richard Biener  <rguenther@suse.de>
12210
12211         PR tree-optimization/99024
12212         * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
12213         clear loop->aux if it is associated with the destroyed loop_vinfo.
12214
12215 2021-02-10  Martin Liska  <mliska@suse.cz>
12216
12217         PR tree-optimization/99002
12218         * gimple-if-to-switch.cc (find_conditions): Fix memory leak
12219         in the function.
12220
12221 2021-02-10  Martin Liska  <mliska@suse.cz>
12222
12223         PR ipa/99003
12224         * ipa-icf.c (sem_item::add_reference): Fix memory leak when
12225         a reference exists.
12226
12227 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
12228
12229         PR debug/98755
12230         * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
12231         at class scope for DWARF5+.
12232
12233 2021-02-09  Eric Botcazou  <ebotcazou@adacore.com>
12234
12235         PR rtl-optimization/96015
12236         * reorg.c (skip_consecutive_labels): Minor comment tweaks.
12237         (relax_delay_slots): When deleting a jump to the next active
12238         instruction over a barrier, first delete the barrier if the
12239         jump is the only way to reach the target label.
12240
12241 2021-02-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12242
12243         * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
12244         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
12245         vector multiplies and vect.alu for SSRA.
12246         * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
12247         vect.mul cost field.
12248         * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
12249         * config/arm/arm.c: Likewise.
12250
12251 2021-02-09  Richard Biener  <rguenther@suse.de>
12252
12253         PR tree-optimization/98863
12254         * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
12255         * tree-ssa-sccvn.c (last_pushed_avail): New global.
12256         (rpo_elim::eliminate_push_avail): Chain pushed avails.
12257         (unwind_state::avail_top): Add.
12258         (do_unwind): Rewrite unwinding of avail entries.
12259         (do_rpo_vn): Initialize last_pushed_avail and
12260         avail_top of the undo state.
12261
12262 2021-02-09  Jakub Jelinek  <jakub@redhat.com>
12263
12264         PR middle-end/99004
12265         * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
12266         const char * to char * and free those pointers after use.
12267
12268 2021-02-09  Richard Biener  <rguenther@suse.de>
12269
12270         PR tree-optimization/99017
12271         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
12272         zero vector cost entries.
12273
12274 2021-02-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12275
12276         PR middle-end/98974
12277         * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
12278         parameter in vectorizable_condition.
12279
12280 2021-02-08  Richard Biener  <rguenther@suse.de>
12281
12282         PR lto/96591
12283         * tree.c (walk_tree_1): Walk VECTOR_CST elements.
12284
12285 2021-02-08  Martin Liska  <mliska@suse.cz>
12286
12287         PR lto/98971
12288         * cfgexpand.c (pass_expand::execute): Parse per-function option
12289         flag_patchable_function_entry and use it.
12290         * common.opt: Remove function_entry_patch_area_size and
12291         function_entry_patch_area_start global variables.
12292         * opts.c (parse_and_check_patch_area): New function.
12293         (common_handle_option): Use it.
12294         * opts.h (parse_and_check_patch_area): New function.
12295         * toplev.c (process_options): Parse and use
12296         function_entry_patch_area_size.
12297
12298 2021-02-08  Martin Sebor  <msebor@redhat.com>
12299
12300         * doc/extend.texi (attribute malloc): Correct typos.
12301
12302 2021-02-05  Nathan Sidwell  <nathan@acm.org>
12303
12304         PR driver/98943
12305         * gcc.c (driver::maybe_run_linker): Check for input file
12306         accessibility if not linking.
12307
12308 2021-02-05  Richard Biener  <rguenther@suse.de>
12309
12310         PR tree-optimization/98855
12311         * tree-vectorizer.h (add_stmt_cost): New overload.
12312         * tree-vect-slp.c (li_cost_vec_cmp): New.
12313         (vect_bb_slp_scalar_cost): Cost individual loop regions
12314         separately.  Account for the scalar instance root stmt.
12315
12316 2021-02-05  Tom de Vries  <tdevries@suse.de>
12317
12318         PR debug/98656
12319         * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
12320         argument.
12321         (bit_test_cluster::emit): Reuse location_t for newly created
12322         gswitch statement.
12323         (switch_decision_tree::try_switch_expansion): Preserve
12324         location_t.
12325         * tree-switch-conversion.h: Change function signatures.
12326
12327 2021-02-05  Jakub Jelinek  <jakub@redhat.com>
12328
12329         PR target/98957
12330         * config/i386/i386-options.c (m_NONE, m_ALL): Define.
12331         * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
12332         X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
12333         (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
12334
12335 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12336
12337         * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
12338         * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
12339         * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
12340         (vget_high_f16): Reimplement using new builtin.
12341         (vget_high_f32): Likewise.
12342         (vget_high_f64): Likewise.
12343         (vget_high_p8): Likewise.
12344         (vget_high_p16): Likewise.
12345         (vget_high_p64): Likewise.
12346         (vget_high_s8): Likewise.
12347         (vget_high_s16): Likewise.
12348         (vget_high_s32): Likewise.
12349         (vget_high_s64): Likewise.
12350         (vget_high_u8): Likewise.
12351         (vget_high_u16): Likewise.
12352         (vget_high_u32): Likewise.
12353         (vget_high_u64): Likewise.
12354
12355 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12356
12357         * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
12358         * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
12359         * config/aarch64/arm_neon.h (__GET_LOW): Delete.
12360         (vget_low_f16): Reimplement using new builtin.
12361         (vget_low_f32): Likewise.
12362         (vget_low_f64): Likewise.
12363         (vget_low_p8): Likewise.
12364         (vget_low_p16): Likewise.
12365         (vget_low_p64): Likewise.
12366         (vget_low_s8): Likewise.
12367         (vget_low_s16): Likewise.
12368         (vget_low_s32): Likewise.
12369         (vget_low_s64): Likewise.
12370         (vget_low_u8): Likewise.
12371         (vget_low_u16): Likewise.
12372         (vget_low_u32): Likewise.
12373         (vget_low_u64): Likewise.
12374
12375 2021-02-05  Kito Cheng  <kito.cheng@sifive.com>
12376
12377         * gcc.c (print_multilib_info): Check all required argument is provided
12378         by default arg.
12379
12380 2021-02-05  liuhongt  <hongtao.liu@intel.com>
12381
12382         PR target/98537
12383         * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
12384         generate integer mask comparison for 128/256-bits vector when
12385         op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
12386         delete redundant !maskcmp condition.
12387         (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
12388         here.
12389         (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
12390         condition directly to if (maskcmp), add extra check for
12391         cmpmode, it should be MODE_INT.
12392         (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
12393         parameters op_true/op_false.
12394         (ix86_use_mask_cmp_p): New.
12395
12396 2021-02-05  liuhongt  <hongtao.liu@intel.com>
12397
12398         PR target/98172
12399         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
12400         Remove m_GENERIC from ~list.
12401         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
12402
12403 2021-02-04  David Malcolm  <dmalcolm@redhat.com>
12404
12405         PR c/97932
12406         * diagnostic-show-locus.c (compatible_locations_p): Require
12407         locations in the same macro map to be either both from the
12408         macro definition, or both from the macro arguments.
12409
12410 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
12411
12412         * config/aarch64/aarch64-simd-builtins.def: Add
12413         [su]mull_hi_lane[q] builtin generator macros.
12414         * config/aarch64/aarch64-simd.md
12415         (aarch64_<su>mull_hi_lane<mode>_insn): Define.
12416         (aarch64_<su>mull_hi_lane<mode>): Define.
12417         (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
12418         (aarch64_<su>mull_hi_laneq<mode>): Define.
12419         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
12420         builtin instead of inline asm.
12421         (vmull_high_lane_s32): Likewise.
12422         (vmull_high_lane_u16): Likewise.
12423         (vmull_high_lane_u32): Likewise.
12424         (vmull_high_laneq_s16): Likewise.
12425         (vmull_high_laneq_s32): Likewise.
12426         (vmull_high_laneq_u16): Likewise.
12427         (vmull_high_laneq_u32): Liekwise.
12428
12429 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
12430
12431         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
12432         builtin generator macros.
12433         * config/aarch64/aarch64-simd.md
12434         (aarch64_<su>mull_hi_n<mode>_insn): Define.
12435         (aarch64_<su>mull_hi_n<mode>): Define.
12436         * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
12437         instead of inline asm.
12438         (vmull_high_n_s32): Likewise.
12439         (vmull_high_n_u16): Likewise.
12440         (vmull_high_n_u32): Likewise.
12441
12442 2021-02-04  Richard Biener  <rguenther@suse.de>
12443
12444         PR tree-optimization/98855
12445         * tree-vect-loop.c (vectorizable_phi): Do not cost
12446         single-argument PHIs.
12447         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
12448         * tree-vect-stmts.c (vectorizable_bswap): Also perform
12449         costing for SLP operation.
12450
12451 2021-02-04  Martin Liska  <mliska@suse.cz>
12452
12453         * doc/extend.texi: Mention -mprefer-vector-width in target
12454         attributes.
12455
12456 2021-02-03  Martin Sebor  <msebor@redhat.com>
12457
12458         PR tree-optimization/98937
12459         * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
12460         Flush pointer_query cache.
12461
12462 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
12463
12464         * config/rs6000/genfusion.pl (gen_2logical): Add missing
12465         fixes based on patch review.
12466         * config/rs6000/fusion.md: Regenerate file.
12467
12468 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
12469
12470         * config/rs6000/t-rs6000: Comment out auto generation of
12471         fusion.md for now.
12472
12473 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
12474
12475         * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
12476         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
12477         (output_file_start): Add gfx908.
12478         * config/gcn/gcn.opt (gpu_type): Add gfx908.
12479         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
12480         (MULTILIB_DIRNAMES): Add gfx908.
12481         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
12482         (main): Recognize gfx908.
12483         * config/gcn/t-omp-device: Add gfx908.
12484
12485 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
12486
12487         * config/aarch64/aarch64-simd-builtins.def: Add
12488         [su]mlsl_hi_lane[q] builtin macro generators.
12489         * config/aarch64/aarch64-simd.md
12490         (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
12491         (aarch64_<su>mlsl_hi_lane<mode>): Define.
12492         (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
12493         (aarch64_<su>mlsl_hi_laneq<mode>): Define.
12494         * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
12495         builtin instead of inline asm.
12496         (vmlsl_high_lane_s32): Likewise.
12497         (vmlsl_high_lane_u16): Likewise.
12498         (vmlsl_high_lane_u32): Likewise.
12499         (vmlsl_high_laneq_s16): Likewise.
12500         (vmlsl_high_laneq_s32): Likewise.
12501         (vmlsl_high_laneq_u16): Likewise.
12502         (vmlsl_high_laneq_u32): Likewise.
12503         (vmlal_high_laneq_u32): Likewise.
12504
12505 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
12506
12507         * config/aarch64/aarch64-simd-builtins.def: Add
12508         [su]mlal_hi_lane[q] builtin generator macros.
12509         * config/aarch64/aarch64-simd.md
12510         (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
12511         (aarch64_<su>mlal_hi_lane<mode>): Define.
12512         (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
12513         (aarch64_<su>mlal_hi_laneq<mode>): Define.
12514         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
12515         builtin instead of inline asm.
12516         (vmlal_high_lane_s32): Likewise.
12517         (vmlal_high_lane_u16): Likewise.
12518         (vmlal_high_lane_u32): Likewise.
12519         (vmlal_high_laneq_s16): Likewise.
12520         (vmlal_high_laneq_s32): Likewise.
12521         (vmlal_high_laneq_u16): Likewise.
12522         (vmlal_high_laneq_u32): Likewise.
12523
12524 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
12525
12526         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
12527         builtin generator macros.
12528         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
12529         Define.
12530         (aarch64_<su>mlsl_hi_n<mode>): Define.
12531         * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
12532         instead of inline asm.
12533         (vmlsl_high_n_s32): Likewise.
12534         (vmlsl_high_n_u16): Likewise.
12535         (vmlsl_high_n_u32): Likewise.
12536
12537 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
12538
12539         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
12540         builtin generator macros.
12541         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
12542         Define.
12543         (aarch64_<su>mlal_hi_n<mode>): Define.
12544         * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
12545         instead of inline asm.
12546         (vmlal_high_n_s32): Likewise.
12547         (vmlal_high_n_u16): Likewise.
12548         (vmlal_high_n_u32): Likewise.
12549
12550 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
12551
12552         * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
12553         generator macros.
12554         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
12555         Rename to...
12556         (aarch64_<su>mlal_hi<mode>_insn): This.
12557         (aarch64_<su>mlal_hi<mode>): Define.
12558         * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
12559         instead of inline asm.
12560         (vmlal_high_s16): Likewise.
12561         (vmlal_high_s32): Likewise.
12562         (vmlal_high_u8): Likewise.
12563         (vmlal_high_u16): Likewise.
12564         (vmlal_high_u32): Likewise.
12565
12566 2021-02-03  Ilya Leoshkevich  <iii@linux.ibm.com>
12567
12568         * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
12569         after calling alter_subreg() on a (mem).
12570
12571 2021-02-03  Martin Liska  <mliska@suse.cz>
12572
12573         PR lto/98912
12574         * lto-streamer-out.c (produce_lto_section): Fill up missing
12575         padding.
12576         * lto-streamer.h (struct lto_section): Add _padding field.
12577
12578 2021-02-03  Richard Biener  <rguenther@suse.de>
12579
12580         * lto-streamer.c (lto_get_section_name): Free temporary
12581         buffer.
12582         * tree-loop-distribution.c
12583         (loop_distribution::merge_dep_scc_partitions): Free edge data.
12584
12585 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
12586
12587         PR middle-end/97487
12588         * ifcvt.c (noce_can_force_operand): New function.
12589         (noce_emit_move_insn): Use it.
12590         (noce_try_sign_mask): Likewise.  Formatting fix.
12591
12592 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
12593
12594         PR middle-end/97971
12595         * lra-constraints.c (process_alt_operands): For inline asm, don't call
12596         fatal_insn, but instead return false.
12597
12598 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
12599
12600         PR tree-optimization/98287
12601         * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
12602         for V1DImode.
12603
12604 2021-02-03  Tamar Christina  <tamar.christina@arm.com>
12605
12606         PR tree-optimization/98928
12607         * tree-vect-loop.c (vect_analyze_loop_2): Change
12608         STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
12609         * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
12610         * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
12611         (class _stmt_vec_info): Add slp_vect_pattern_only_p.
12612
12613 2021-02-02  Richard Biener  <rguenther@suse.de>
12614
12615         * gimple-loop-interchange.cc (prepare_data_references):
12616         Release vectors.
12617         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
12618         * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
12619         * tree-vect-stmts.c (vectorizable_condition): Do not
12620         allocate vectors.
12621         (vectorizable_comparison): Likewise.
12622
12623 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12624
12625         * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
12626         * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
12627         * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
12628         (vrsqrteq_u32): Likewise.
12629
12630 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12631
12632         * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
12633         * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
12634         (aarch64_sqxtun2<mode>_be): Likewise.
12635         (aarch64_sqxtun2<mode>): Likewise.
12636         * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
12637         (vqmovun_high_s32): Likewise.
12638         (vqmovun_high_s64): Likewise.
12639         * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
12640
12641 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12642
12643         * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
12644         AUTO_FP flags.
12645         (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
12646
12647 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12648
12649         * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
12650         fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
12651         fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
12652         ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
12653         fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
12654         fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
12655         fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
12656         fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
12657
12658 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12659
12660         * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
12661         * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
12662         ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
12663
12664 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12665
12666         * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
12667         uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
12668
12669 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12670
12671         * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
12672         vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
12673         vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
12674         ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
12675         udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
12676         ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
12677         ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
12678         ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
12679         NONE builtin flags.
12680
12681 2021-02-02  Jakub Jelinek  <jakub@redhat.com>
12682
12683         PR tree-optimization/98848
12684         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
12685         STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
12686
12687 2021-02-02  Kito Cheng  <kito.cheng@sifive.com>
12688
12689         PR target/98743
12690         * expr.c: Check mode before calling store_expr.
12691
12692 2021-02-02  Christophe Lyon  <christophe.lyon@linaro.org>
12693
12694         * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
12695         (VORNQ): Remove.
12696         * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
12697         instruction using expression ior.
12698         (mve_vornq_u<mode>): New expander.
12699         (mve_vornq_f<mode>): Use ior code instead of unspec.
12700         * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
12701
12702 2021-02-02  Alexandre Oliva  <oliva@adacore.com>
12703
12704         * tree-nested.c (convert_nonlocal_reference_op): Move
12705         current_function_decl restore after re-gimplification.
12706         (convert_local_reference_op): Likewise.
12707
12708 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12709
12710         * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
12711         Define builtins.
12712         * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
12713         Define.
12714         (aarch64_rshrn<mode>_insn_be): Likewise.
12715         (aarch64_rshrn<mode>): Likewise.
12716         (aarch64_rshrn2<mode>_insn_le): Likewise.
12717         (aarch64_rshrn2<mode>_insn_be): Likewise.
12718         (aarch64_rshrn2<mode>): Likewise.
12719         * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
12720         * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
12721         using builtin.
12722         (vrshrn_high_n_s32): Likewise.
12723         (vrshrn_high_n_s64): Likewise.
12724         (vrshrn_high_n_u16): Likewise.
12725         (vrshrn_high_n_u32): Likewise.
12726         (vrshrn_high_n_u64): Likewise.
12727         (vrshrn_n_s16): Likewise.
12728         (vrshrn_n_s32): Likewise.
12729         (vrshrn_n_s64): Likewise.
12730         (vrshrn_n_u16): Likewise.
12731         (vrshrn_n_u32): Likewise.
12732         (vrshrn_n_u64): Likewise.
12733
12734 2021-02-01  Sergei Trofimovich  <siarheit@google.com>
12735
12736         PR tree-optimization/98499
12737         * ipa-modref.c (analyze_ssa_name_flags): treat RVO
12738         conservatively and assume all possible side-effects.
12739
12740 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12741
12742         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
12743         vec_unpacku_hi_): Define builtins.
12744         * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
12745         builtin.
12746         (vmovl_high_s16): Likewise.
12747         (vmovl_high_s32): Likewise.
12748         (vmovl_high_u8): Likewise.
12749         (vmovl_high_u16): Likewise.
12750         (vmovl_high_u32): Likewise.
12751
12752 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12753
12754         * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
12755         Define builtins.
12756         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
12757         pattern.
12758         * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
12759         UNSPEC_UABDL.
12760         * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
12761         builtin.
12762         (vabdl_s16): Likewise.
12763         (vabdl_s32): Likewise.
12764         (vabdl_u8): Likewise.
12765         (vabdl_u16): Likewise.
12766         (vabdl_u32): Likewise.
12767         * config/aarch64/iterators.md (ABDL): New int iterator.
12768         (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
12769
12770 2021-02-01  Martin Sebor  <msebor@redhat.com>
12771
12772         * tree.h (BLOCK_VARS): Add comment.
12773         (BLOCK_SUBBLOCKS): Same.
12774         (BLOCK_SUPERCONTEXT): Same.
12775         (BLOCK_ABSTRACT_ORIGIN): Same.
12776         (inlined_function_outer_scope_p): Same.
12777
12778 2021-02-01  Martin Sebor  <msebor@redhat.com>
12779
12780         PR middle-end/97172
12781         * attribs.c (attr_access::free_lang_data): Define new function.
12782         * attribs.h (attr_access::free_lang_data): Declare new function.
12783
12784 2021-02-01  Richard Biener  <rguenther@suse.de>
12785
12786         * vec.h (auto_vec::auto_vec): Add memory stat parameters
12787         and pass them on.
12788         * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
12789
12790 2021-02-01  Tamar Christina  <tamar.christina@arm.com>
12791
12792         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
12793         aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
12794
12795 2021-02-01  Richard Biener  <rguenther@suse.de>
12796
12797         PR rtl-optimization/98863
12798         * config/i386/i386-features.c (convert_scalars_to_vector):
12799         Set DF_RD_PRUNE_DEAD_DEFS.
12800
12801 2021-01-31  Eric Botcazou  <ebotcazou@adacore.com>
12802
12803         * system.h (SIZE_MAX): Define if not already defined.
12804
12805 2021-01-30  Aaron Sawdey  <acsawdey@linux.ibm.com>
12806
12807         * config/rs6000/genfusion.pl (gen_2logical): New function to
12808         generate patterns for logical-logical fusion.
12809         * config/rs6000/fusion.md: Regenerated patterns.
12810         * config/rs6000/rs6000-cpus.def: Add
12811         OPTION_MASK_P10_FUSION_2LOGICAL.
12812         * config/rs6000/rs6000.c (rs6000_option_override_internal):
12813         Enable logical-logical fusion for p10.
12814         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
12815
12816 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
12817
12818         * config/rs6000/rs6000.opt: Add periods to new AIX options.
12819
12820 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
12821
12822         * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
12823         (mabi=vec-default): New.
12824         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
12825         __EXTABI__ for AIX Vector extended ABI.
12826         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
12827         extabi info.
12828         (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
12829         are non-volatile.
12830         * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
12831
12832 2021-01-30  Jakub Jelinek  <jakub@redhat.com>
12833
12834         * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
12835         DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
12836
12837 2021-01-29  Vladimir N. Makarov  <vmakarov@redhat.com>
12838
12839         PR target/97701
12840         * lra-constraints.c (in_class_p): Don't narrow class only for REG
12841         or MEM.
12842
12843 2021-01-29  Will Schmidt  <will_schmidt@vnet.ibm.com>
12844
12845         * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
12846         clauses for CODE_FOR_vsx_xvcvuxddp_scale and
12847         CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
12848
12849 2021-01-29  Andrew MacLeod  <amacleod@redhat.com>
12850
12851         PR tree-optimization/98866
12852         * gimple-range-gori.h (gori_compute:set_range_invariant): New.
12853         * gimple-range-gori.cc (gori_map::set_range_invariant): New.
12854         (gori_map::m_maybe_invariant): Rename from all_outgoing.
12855         (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
12856         (gori_map::is_export_p): Ditto.
12857         (gori_map::calculate_gori): Ditto.
12858         (gori_compute::set_range_invariant): New.
12859         * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
12860         invariant for pointers evaluating to [1, +INF].
12861
12862 2021-01-29  Richard Biener  <rguenther@suse.de>
12863
12864         PR rtl-optimization/98863
12865         * config/i386/i386-features.c (remove_partial_avx_dependency):
12866         Do not perform DF analysis.
12867         (pass_data_remove_partial_avx_dependency): Remove
12868         TODO_df_finish.
12869
12870 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
12871
12872         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
12873         builtin generator macros.
12874         * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
12875         Define.
12876         * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
12877         instead of inline asm.
12878         (vmull_n_s32): Likewise.
12879         (vmull_n_u16): Likewise.
12880         (vmull_n_u32): Likewise.
12881
12882 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12883
12884         * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
12885         Define builtins.
12886         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
12887         Rename to...
12888         (aarch64_<sur>abdl2<mode>): ... This.
12889         (<sur>sadv16qi): Adjust use of above.
12890         * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
12891         builtin.
12892         (vabdl_high_s16): Likewise.
12893         (vabdl_high_s32): Likewise.
12894         (vabdl_high_u8): Likewise.
12895         (vabdl_high_u16): Likewise.
12896         (vabdl_high_u32): Likewise.
12897
12898 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12899
12900         * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
12901         builtin.
12902         (uabal2): Likewise.
12903         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
12904         pattern.
12905         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
12906         UNSPEC_UABAL2.
12907         * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
12908         builtin.
12909         (vabal_high_s16): Likewise.
12910         (vabal_high_s32): Likewise.
12911         (vabal_high_u8): Likewise.
12912         (vabal_high_u16): Likewise.
12913         (vabal_high_u32): Likewise.
12914         * config/aarch64/iterators.md (ABAL2): New mode iterator.
12915         (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
12916
12917 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12918
12919         * config/aarch64/aarch64-simd-builtins.def (sabal): Define
12920         builtin.
12921         (uabal): Likewise.
12922         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
12923         Rename to...
12924         (aarch64_<sur>abal<mode>): ... This
12925         (<sur>sadv16qi): Adust use of the above.
12926         * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
12927         builtin.
12928         (vabal_s16): Likewise.
12929         (vabal_s32): Likewise.
12930         (vabal_u8): Likewise.
12931         (vabal_u16): Likewise.
12932         (vabal_u32): Likewise.
12933
12934 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12935
12936         * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
12937         Define builtins.
12938         * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
12939         Define.
12940         * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
12941         builtin.
12942         (vaddlv_s16): Likewise.
12943         (vaddlv_u8): Likewise.
12944         (vaddlv_u16): Likewise.
12945         (vaddlvq_s8): Likewise.
12946         (vaddlvq_s16): Likewise.
12947         (vaddlvq_s32): Likewise.
12948         (vaddlvq_u8): Likewise.
12949         (vaddlvq_u16): Likewise.
12950         (vaddlvq_u32): Likewise.
12951         (vaddlv_s32): Likewise.
12952         (vaddlv_u32): Likewise.
12953         * config/aarch64/iterators.md (VDQV_L): New mode iterator.
12954         (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
12955         (Vwstype): New mode attribute.
12956         (Vwsuf): Likewise.
12957         (VWIDE_S): Likewise.
12958         (USADDLV): New int iterator.
12959         (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
12960
12961 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
12962
12963         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
12964         builtin generator macros.
12965         * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
12966         Define.
12967         * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
12968         instead of inline asm.
12969         (vmlsl_lane_s32): Likewise.
12970         (vmlsl_lane_u16): Likewise.
12971         (vmlsl_lane_u32): Likewise.
12972         (vmlsl_laneq_s16): Likewise.
12973         (vmlsl_laneq_s32): Likewise.
12974         (vmlsl_laneq_u16): Likewise.
12975         (vmlsl_laneq_u32): Likewise.
12976
12977 2021-01-29  Richard Biener  <rguenther@suse.de>
12978
12979         * doc/invoke.texi (--param max-gcse-memory): Document unit
12980         of size.
12981         * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
12982         * params.opt (--param max-gcse-memory): Adjust default and
12983         document unit of size.
12984
12985 2021-01-29  Richard Biener  <rguenther@suse.de>
12986
12987         PR rtl-optimization/98863
12988         * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
12989         HOST_WIDE_INT for the memory estimate.
12990
12991 2021-01-29  Bin Cheng  <bin.cheng@linux.alibaba.com>
12992             Richard Biener  <rguenther@suse.de>
12993
12994         PR tree-optimization/97627
12995         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
12996         Do not analyze fake edges.
12997
12998 2021-01-29  Richard Biener  <rguenther@suse.de>
12999
13000         PR rtl-optimization/98144
13001         * df.h (df_mir_bb_info): Add con_visited member.
13002         * df-problems.c (df_mir_alloc): Initialize con_visited,
13003         do not fully populate IN and OUT.
13004         (df_mir_reset): Likewise.
13005         (df_mir_confluence_0): Set con_visited.
13006         (df_mir_confluence_n): Properly handle implicitely
13007         fully populated IN and OUT as designated by con_visited
13008         and update con_visited accordingly.
13009
13010 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
13011
13012         PR target/98849
13013         * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
13014         vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
13015         && !TARGET_REALLY_IWMMXT to conditions.
13016
13017 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
13018
13019         PR debug/98331
13020         * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
13021         a BARRIER.
13022
13023 2021-01-28  Marek Polacek  <polacek@redhat.com>
13024
13025         PR c++/94775
13026         * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
13027         the main variant, maybe reset it in its variants too.
13028         * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
13029         (check_aligned_type): Check if TYPE_USER_ALIGN match.
13030
13031 2021-01-28  Christophe Lyon  <christophe.lyon@linaro.org>
13032
13033         PR target/98730
13034         * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
13035         of constant zero for comparisons.
13036
13037 2021-01-28  Michael Meissner  <meissner@linux.ibm.com>
13038
13039         * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
13040         support for mapping built-in function names for long double
13041         built-in functions if long double is IEEE 128-bit.
13042
13043 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
13044
13045         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
13046         builtin generator macros.
13047         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
13048         Define.
13049         * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
13050         instead of inline asm.
13051         (vmlsl_n_s32): Likewise.
13052         (vmlsl_n_u16): Likewise.
13053         (vmlsl_n_u32): Likewise.
13054
13055 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
13056
13057         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
13058         builtin generator macros.
13059         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
13060         Define.
13061         * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
13062         instead of inline asm.
13063         (vmlal_n_s32): Likewise.
13064         (vmlal_n_u16): Likewise.
13065         (vmlal_n_u32): Likewise.
13066
13067 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13068
13069         * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
13070         builtin.
13071         * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
13072         Define.
13073         (aarch64_shrn2<mode>_insn_be): Likewise.
13074         (aarch64_shrn2<mode>): Likewise.
13075         * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
13076         using builtins.
13077         (vshrn_high_n_s32): Likewise.
13078         (vshrn_high_n_s64): Likewise.
13079         (vshrn_high_n_u16): Likewise.
13080         (vshrn_high_n_u32): Likewise.
13081         (vshrn_high_n_u64): Likewise.
13082
13083 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13084
13085         * config/aarch64/aarch64-simd-builtins.def (shrn): Define
13086         builtin.
13087         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
13088         Define.
13089         (aarch64_shrn<mode>_insn_be): Likewise.
13090         (aarch64_shrn<mode>): Likewise.
13091         * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
13092         builtins.
13093         (vshrn_n_s32): Likewise.
13094         (vshrn_n_s64): Likewise.
13095         (vshrn_n_u16): Likewise.
13096         (vshrn_n_u32): Likewise.
13097         (vshrn_n_u64): Likewise.
13098         * config/aarch64/iterators.md (vn_mode): New mode attribute.
13099
13100 2021-01-28  Richard Biener  <rguenther@suse.de>
13101
13102         PR rtl-optimization/80960
13103         * dse.c (check_mem_read_rtx): Call get_addr on the
13104         offsetted address.
13105
13106 2021-01-28  Xionghu Luo  <luoxhu@linux.ibm.com>
13107             David Edelsohn  <dje.gcc@gmail.com>
13108
13109         PR target/98799
13110         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13111         Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
13112         when -m32.
13113         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
13114         Delete.
13115         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
13116         wrapper call rs6000_expand_vector_set_var for cleanup.  Call
13117         rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
13118         directly.
13119         (rs6000_expand_vector_set_var): Delete.
13120         (rs6000_expand_vector_set_var_p9): Make static.
13121         (rs6000_expand_vector_set_var_p8): Make static.
13122
13123 2021-01-28  Xing GUO  <higuoxing@gmail.com>
13124
13125         * common/config/riscv/riscv-common.c
13126         (riscv_subset_list::parsing_subset_version): Fix -march option parsing
13127         when `p` extension exists.
13128
13129 2021-01-27  Vladimir N. Makarov  <vmakarov@redhat.com>
13130
13131         PR rtl-optimization/97684
13132         * ira.c (ira): Call ira_set_pseudo_classes before
13133         update_equiv_regs when it is necessary.
13134
13135 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
13136
13137         PR target/98853
13138         * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
13139         %w0, %w1 and %2 instead of %0, %1 and %2.
13140
13141 2021-01-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
13142
13143         * config/rs6000/genfusion.pl: New script to generate
13144         define_insn_and_split patterns so combine can arrange fused
13145         instructions next to each other.
13146         * config/rs6000/fusion.md: New file, generated fused instruction
13147         patterns for combine.
13148         * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
13149         (non_update_memory_operand): New predicate.
13150         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
13151         OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
13152         POWERPC_MASKS.
13153         * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
13154         prototype.
13155         * config/rs6000/rs6000.c (rs6000_option_override_internal):
13156         Automatically set OPTION_MASK_P10_FUSION and
13157         OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
13158         (rs600_opt_masks): Allow -mpower10-fusion
13159         in function attributes.
13160         (address_is_non_pfx_d_or_x): New function.
13161         * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
13162         * config/rs6000/rs6000.md: Include fusion.md.
13163         * config/rs6000/rs6000.opt: Add -mpower10-fusion
13164         and -mpower10-fusion-ld-cmpi.
13165         * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
13166
13167 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
13168
13169         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
13170         builtin generator macros.
13171         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
13172         Rename to...
13173         (aarch64_<su>mlal<mode>): This.
13174         * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
13175         instead of inline asm.
13176         (vmlal_s16): Likewise.
13177         (vmlal_s32): Likewise.
13178         (vmlal_u8): Likewise.
13179         (vmlal_u16): Likewise.
13180         (vmlal_u32): Likewise.
13181
13182 2021-01-27  Richard Biener  <rguenther@suse.de>
13183
13184         PR tree-optimization/98854
13185         * tree-vect-slp.c (vect_build_slp_tree_2): Also build
13186         PHIs from scalars when the number of CTORs matches the
13187         number of children.
13188
13189 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
13190
13191         * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
13192         generator macro.
13193         * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
13194         Rename to...
13195         (aarch64_mls_n<mode>): This.
13196         * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
13197         instead of asm.
13198         (vmls_n_s32): Likewise.
13199         (vmls_n_u16): Likewise.
13200         (vmls_n_u32): Likewise.
13201         (vmlsq_n_s16): Likewise.
13202         (vmlsq_n_s32): Likewise.
13203         (vmlsq_n_u16): Likewise.
13204         (vmlsq_n_u32): Likewise.
13205
13206 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
13207
13208         * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
13209         generator macro.
13210         * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
13211         than asm.
13212         (vmls_s16): Likewise.
13213         (vmls_s32): Likewise.
13214         (vmls_u8): Likewise.
13215         (vmls_u16): Likewise.
13216         (vmls_u32): Likewise.
13217         (vmlsq_s8): Likewise.
13218         (vmlsq_s16): Likewise.
13219         (vmlsq_s32): Likewise.
13220         (vmlsq_u8): Likewise.
13221         (vmlsq_u16): Likewise.
13222         (vmlsq_u32): Likewise.
13223
13224 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
13225
13226         * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
13227         generator macro.
13228         * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
13229         Rename to...
13230         (aarch64_mla_n<mode>): This.
13231         * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
13232         instead of asm.
13233         (vmla_n_s32): Likewise.
13234         (vmla_n_u16): Likewise.
13235         (vmla_n_u32): Likewise.
13236         (vmlaq_n_s16): Likewise.
13237         (vmlaq_n_s32): Likewise.
13238         (vmlaq_n_u16): Likewise.
13239         (vmlaq_n_u32): Likewise.
13240
13241 2021-01-27  liuhongt  <hongtao.liu@intel.com>
13242
13243         PR target/98833
13244         * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
13245         (*sse2_eq<mode>3): Ditto.
13246
13247 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
13248
13249         * tree-pass.h (PROP_trees): Rename to ...
13250         (PROP_gimple): ... this.
13251         * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
13252         * passes.c (execute_function_dump, execute_function_todo,
13253         execute_one_ipa_transform_pass, execute_one_pass): Likewise.
13254         * varpool.c (ctor_for_folding): Likewise.
13255
13256 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
13257
13258         PR tree-optimization/97260
13259         * varpool.c: Include tree-pass.h.
13260         (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
13261         non-TREE_SIDE_EFFECTS automatic variables.
13262
13263 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
13264
13265         * doc/cpp.texi (__cplusplus): Document value for -std=c++23
13266         or -std=gnu++23.
13267         * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
13268         * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
13269         (gen_compile_unit_die): Recognise C++23.
13270
13271 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
13272
13273         PR bootstrap/98839
13274         * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
13275         in comparison.
13276
13277 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
13278
13279         PR target/98681
13280         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
13281         Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
13282         and INTVAL (mask).  Add && INTVAL (mask) > 0 condition.
13283
13284 2021-01-26  Richard Biener  <rguenther@suse.de>
13285
13286         * gimple-pretty-print.c (dump_binary_rhs): Handle
13287         VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
13288
13289 2021-01-26  Richard Biener  <rguenther@suse.de>
13290
13291         PR middle-end/98726
13292         * tree.h (vector_cst_int_elt): Remove.
13293         * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
13294         make static.
13295
13296 2021-01-26  Andrew Stubbs  <ams@codesourcery.com>
13297
13298         * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
13299         for V64DFmode min/max reductions.
13300
13301 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
13302
13303         * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
13304         as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
13305         two halves, one with x and the other with const0_rtx, ordered
13306         depending on endianity.
13307
13308 2021-01-26  Alexandre Oliva  <oliva@adacore.com>
13309
13310         * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
13311         temporaries not seen in binding block, and not about to be
13312         added as gimple variables.
13313
13314 2021-01-25  Martin Sebor  <msebor@redhat.com>
13315
13316         PR c++/98646
13317         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
13318
13319 2021-01-25  Martin Liska  <mliska@suse.cz>
13320
13321         * value-prof.c (get_nth_most_common_value): Use %s instead
13322         of %qs string.
13323
13324 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
13325
13326         PR debug/98811
13327         * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
13328         readelf -wi is able to read the emitted .debug_info back.
13329         * configure: Regenerated.
13330
13331 2021-01-25  Martin Liska  <mliska@suse.cz>
13332
13333         PR gcov-profile/98739
13334         * common.opt: Add missing sign symbol.
13335         * value-prof.c (get_nth_most_common_value): Restore handling
13336         of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
13337         PROFILE_REPRODUCIBILITY_MULTITHREADED.
13338
13339 2021-01-25  Richard Biener  <rguenther@suse.de>
13340
13341         PR middle-end/98807
13342         * tree.c (vector_element_bits): Always use precision of
13343         the element type for boolean vectors.
13344
13345 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13346
13347         * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
13348         (ENDFILE_SPEC): Evaluate qnolinkcmds.
13349
13350 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13351
13352         * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
13353         nostartfiles handling since this is already done by
13354         LINK_COMMAND_SPEC.  Evaluate qnolinkcmds.
13355         (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
13356         is already done by LINK_COMMAND_SPEC.
13357         (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
13358         this is already done by LINK_COMMAND_SPEC.  Remove qnolinkcmds
13359         evaluation.
13360
13361 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
13362
13363         PR testsuite/98771
13364         * fold-const-call.c (host_size_t_cst_p): Renamed to ...
13365         (size_t_cst_p): ... this.  Check and store unsigned HOST_WIDE_INT
13366         value rather than host size_t.
13367         (fold_const_call): Change type of s2 from size_t to
13368         unsigned HOST_WIDE_INT.  Use size_t_cst_p instead of
13369         host_size_t_cst_p.  For strncmp calls, pass MIN (s2, SIZE_MAX)
13370         instead of s2 as last argument.
13371
13372 2021-01-25  Tamar Christina  <tamar.christina@arm.com>
13373
13374         * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
13375         VCMLA_OP, VCMUL_OP): New.
13376         * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
13377         * config/arm/neon.md (cmul<conj_op><mode>3): New.
13378         * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
13379         UNSPEC_VCMUL_CONJ): New.
13380         * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
13381         cml<fcmac1><conj_op><mode>4): New.
13382
13383 2021-01-23  Jakub Jelinek  <jakub@redhat.com>
13384
13385         PR testsuite/97301
13386         * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
13387
13388 2021-01-22  Jonathan Wright  <jonathan.wright@arm.com>
13389
13390         * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
13391         generator macro.
13392         * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
13393         than asm.
13394         (vmla_s16): Likewise.
13395         (vmla_s32): Likewise.
13396         (vmla_u8): Likewise.
13397         (vmla_u16): Likewise.
13398         (vmla_u32): Likewise.
13399         (vmlaq_s8): Likewise.
13400         (vmlaq_s16): Likewise.
13401         (vmlaq_s32): Likewise.
13402         (vmlaq_u8): Likewise.
13403         (vmlaq_u16): Likewise.
13404         (vmlaq_u32): Likewise.
13405
13406 2021-01-22  David Malcolm  <dmalcolm@redhat.com>
13407
13408         * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
13409         directive.
13410
13411 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
13412
13413         PR debug/98796
13414         * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
13415         filenames to emit, still emit the required 0 index directory and
13416         filename entries that match DW_AT_comp_dir and DW_AT_name of the
13417         compilation unit.
13418
13419 2021-01-22  Marek Polacek  <polacek@redhat.com>
13420
13421         PR c++/98545
13422         * doc/invoke.texi: Update C++ ABI Version 15 description.
13423
13424 2021-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13425
13426         PR tree-optimization/98766
13427         * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
13428         comparing against type size with param_avoid_fma_max_bits.
13429
13430 2021-01-22  Richard Biener  <rguenther@suse.de>
13431
13432         PR middle-end/98793
13433         * tree.c (vector_element_bits): Key single-bit bool vector on
13434         integer mode rather than not vector mode.
13435
13436 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
13437
13438         PR target/98093
13439         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13440         Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
13441         platforms.
13442         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
13443         to call different path for P8 and P9.
13444         (rs6000_expand_vector_set_var_p9): New function.
13445         (rs6000_expand_vector_set_var_p8): New function.
13446
13447 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
13448
13449         PR target/79251
13450         PR target/98065
13451         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13452         Ajdust variable index vec_insert from address dereference to
13453         ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
13454         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
13455         New declaration.
13456         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
13457
13458 2021-01-22  Martin Liska  <mliska@suse.cz>
13459
13460         PR gcov-profile/98739
13461         * profile.c (compute_value_histograms): Drop time profile for
13462         -fprofile-reproducible=multithreaded.
13463
13464 2021-01-22  Nathan Sidwell  <nathan@acm.org>
13465
13466         * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
13467         existence here.
13468
13469 2021-01-22  Richard Biener  <rguenther@suse.de>
13470
13471         PR middle-end/98773
13472         * tree-data-ref.c (initalize_matrix_A): Revert previous
13473         change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
13474
13475 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
13476
13477         PR tree-optimization/90248
13478         * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
13479         X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
13480         simplifications.
13481         (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
13482         X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
13483
13484 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
13485
13486         PR tree-optimization/98255
13487         * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
13488         extend index - low_bound from sizetype's precision rather than index
13489         precision.
13490         (get_addr_base_and_unit_offset_1): Likewise.
13491         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
13492         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
13493
13494 2021-01-22  Richard Biener  <rguenther@suse.de>
13495
13496         PR tree-optimization/98786
13497         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
13498         adding new uses of abnormals.  Verify we deal with a conditional
13499         conversion.
13500
13501 2021-01-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13502
13503         PR target/98636
13504         * optc-save-gen.awk: Add arm_fp16_format to checked_options.
13505
13506 2021-01-22  liuhongt  <hongtao.liu@intel.com>
13507
13508         PR target/96891
13509         PR target/98348
13510         * config/i386/sse.md (VI_128_256): New mode iterator.
13511         (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
13512          *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
13513          *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
13514         define_insn_and_split to lower avx512 vector comparison to avx
13515         version when dest is vector.
13516         (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
13517         define_insn_and_split for negating the comparison result.
13518         * config/i386/predicates.md (float_vector_all_ones_operand):
13519         New predicate.
13520         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
13521         general NOT operator without UNSPEC_MASKOP.
13522
13523 2021-01-21  Vladimir N. Makarov  <vmakarov@redhat.com>
13524
13525         PR rtl-optimization/98777
13526         * lra-int.h (lra_pmode_pseudo): New extern.
13527         * lra.c (lra_pmode_pseudo): New global.
13528         (lra): Set it up.
13529         * lra-eliminations.c (eliminate_regs_in_insn): Use it.
13530
13531 2021-01-21  Ilya Leoshkevich  <iii@linux.ibm.com>
13532
13533         * fwprop.c (fwprop_propagation::classify_result): Allow
13534         (subreg (mem)) simplifications.
13535
13536 2021-01-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13537
13538         * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
13539         Split into...
13540         (aarch64_sqdmlal<mode>): ... This...
13541         (aarch64_sqdmlsl<mode>): ... And this.
13542         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
13543         (aarch64_sqdmlal_lane<mode>): ... This...
13544         (aarch64_sqdmlsl_lane<mode>): ... And this.
13545         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
13546         (aarch64_sqdmlsl_laneq<mode>): ... This...
13547         (aarch64_sqdmlal_laneq<mode>):  ... And this.
13548         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
13549         (aarch64_sqdmlsl_n<mode>): ... This...
13550         (aarch64_sqdmlal_n<mode>): ... And this.
13551         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
13552         (aarch64_sqdmlal2<mode>_internal): ... This...
13553         (aarch64_sqdmlsl2<mode>_internal): ... And this.
13554
13555 2021-01-21  Christophe Lyon  <christophe.lyon@linaro.org>
13556
13557         * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
13558
13559 2021-01-21  Andrea Corallo  <andrea.corallo@arm.com>
13560
13561         PR target/96372
13562         * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
13563
13564 2021-01-21  liuhongt  <hongtao.liu@intel.com>
13565
13566         PR rtl-optimization/98694
13567         * regcprop.c (copy_value): If SRC had been assigned a mode
13568         narrower than the copy, we can't link DEST into the chain even
13569         they have same hard_regno_nregs(i.e. HImode/SImode in i386
13570         backend).
13571
13572 2021-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13573
13574         * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
13575         Convert to define_insn_and_split.  Split into simple move when moving
13576         bottom element.
13577
13578 2021-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
13579
13580         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
13581         Adjust comment.  Simplify code.
13582
13583 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
13584
13585         PR debug/98765
13586         * dwarf2out.c (reset_indirect_string): Also reset indirect strings
13587         with DW_FORM_line_strp form.
13588         (prune_unused_types_update_strings): Don't add into debug_str_hash
13589         indirect strings with DW_FORM_line_strp form.
13590         (adjust_name_comp_dir): New function.
13591         (dwarf2out_finish): Call it on CU DIEs after resetting
13592         debug_line_str_hash.
13593
13594 2021-01-20  Vladimir N. Makarov  <vmakarov@redhat.com>
13595
13596         PR rtl-optimization/98722
13597         * lra-eliminations.c (eliminate_regs_in_insn): Check that target
13598         has no 3-op add insn to transform insns containing two pluses.
13599
13600 2021-01-20  Richard Biener  <rguenther@suse.de>
13601
13602         * hwint.h (add_hwi): New function.
13603         (mul_hwi): Likewise.
13604         * tree-data-ref.c (initialize_matrix_A): Properly translate
13605         tree constants and avoid HOST_WIDE_INT_MIN.
13606         (lambda_matrix_row_add): Avoid undefined integer overflow
13607         and return true on such overflow.
13608         (lambda_matrix_right_hermite): Handle overflow from
13609         lambda_matrix_row_add gracefully.  Simplify previous fix.
13610         (analyze_subscript_affine_affine): Likewise.
13611
13612 2021-01-20  Eugene Rozenfeld  <erozen@microsoft.com>
13613
13614         PR tree-optimization/96674
13615         * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
13616         x >= y && y != XXX_MIN --> x > y - 1
13617
13618 2021-01-20  Richard Sandiford  <richard.sandiford@arm.com>
13619
13620         PR tree-optimization/98535
13621         * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
13622         If the high and low permutes are the same, remove the high permutes
13623         from the working set and only continue with the low ones.
13624
13625 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
13626
13627         PR tree-optimization/98721
13628         * builtins.c (access_ref::inform_access): Don't assume
13629         SSA_NAME_IDENTIFIER must be non-NULL.  Print messages about
13630         object whenever allocfn is NULL, rather than only when DECL_P
13631         is true.  Use %qE instead of %qD for that.  Formatting fixes.
13632
13633 2021-01-20  Richard Biener  <rguenther@suse.de>
13634
13635         PR tree-optimization/98758
13636         * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
13637         (lambda_matrix_right_hermite): Avoid undefinedness with
13638         signed integer abs and multiplication.
13639         (analyze_subscript_affine_affine): Use lambda_int.
13640
13641 2021-01-20  David Malcolm  <dmalcolm@redhat.com>
13642
13643         PR debug/98751
13644         * dwarf2out.c (output_line_info): Rename static variable
13645         "generation", moving it out of the function to...
13646         (output_line_info_generation): New.
13647         (init_sections_and_labels): Likewise, renaming the variable to...
13648         (init_sections_and_labels_generation): New.
13649         (dwarf2out_c_finalize): Reset the new variables.
13650
13651 2021-01-19  Martin Sebor  <msebor@redhat.com>
13652
13653         PR middle-end/98664
13654         * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
13655         all functions, even if they're not declared artificial or inline.
13656         * tree.c (tree_inlined_location): Use macro expansion location
13657         only if scope traversal fails to expose one.
13658
13659 2021-01-19  Richard Sandiford  <richard.sandiford@arm.com>
13660
13661         PR rtl-optimization/92294
13662         * alias.c (compare_base_symbol_refs): Take an extra parameter
13663         and add the distance between two symbols to it.  Enshrine in
13664         comments that -1 means "either 0 or 1, but we can't tell
13665         which at compile time".
13666         (memrefs_conflict_p): Update call accordingly.
13667         (rtx_equal_for_memref_p): Likewise.  Take the distance between symbols
13668         into account.
13669
13670 2021-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13671
13672         * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
13673         sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
13674         uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
13675         sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
13676         sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
13677         sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
13678         sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
13679         sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
13680         sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
13681         uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
13682         sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
13683         sqmovun): Use NONE flags.
13684
13685 2021-01-19  Richard Biener  <rguenther@suse.de>
13686
13687         PR ipa/98330
13688         * ipa-modref.c (analyze_stmt): Only record a summary for a
13689         direct call.
13690
13691 2021-01-19  Richard Biener  <rguenther@suse.de>
13692
13693         PR middle-end/98638
13694         * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
13695
13696 2021-01-19  Daniel Hellstrom  <daniel@gaisler.com>
13697
13698         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
13699         built-in define __FIX_LEON3FT_TN0018.
13700
13701 2021-01-19  Richard Biener  <rguenther@suse.de>
13702
13703         PR ipa/97673
13704         * tree-inline.c (tree_function_versioning): Set input_location
13705         to UNKNOWN_LOCATION throughout the function.
13706
13707 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
13708
13709         PR fortran/98476
13710         * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
13711
13712 2021-01-19  Martin Jambor  <mjambor@suse.cz>
13713
13714         PR ipa/98690
13715         * ipa-sra.c (ssa_name_only_returned_p): New parameter fun.  Check
13716         whether non-call exceptions allow removal of a statement.
13717         (isra_analyze_call): Pass the appropriate function to
13718         ssa_name_only_returned_p.
13719
13720 2021-01-19  Geng Qi  <gengqi@linux.alibaba.com>
13721
13722         * config/riscv/arch-canonicalize (longext_sort): New function for
13723          sorting 'multi-letter'.
13724         * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
13725         'alts'. The 'arch' may not be the first of 'alts'.
13726         (_expand_combination): Add underline for the 'ext' without '*'.
13727         This is because, a single-letter extension can always be treated well
13728         with a '_' prefix, but it cannot be separated out if it is appended
13729         to a multi-letter.
13730
13731 2021-01-18  Vladimir N. Makarov  <vmakarov@redhat.com>
13732
13733         PR target/97847
13734         * ira.c (ira): Skip abnormal critical edge splitting.
13735
13736 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
13737
13738         PR tree-optimization/98727
13739         * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
13740         second .MUL_OVERFLOW operand for signed multiplication with overflow
13741         checking if the second operand of multiplication is not constant.
13742
13743 2021-01-18  David Edelsohn  <dje.gcc@gmail.com>
13744
13745         * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
13746         defaults to version 4.
13747
13748 2021-01-18  David Malcolm  <dmalcolm@redhat.com>
13749
13750         * attribs.h (fndecl_dealloc_argno): New decl.
13751         * builtins.c (call_dealloc_argno): Split out second half of
13752         function into...
13753         (fndecl_dealloc_argno): New.
13754         * doc/extend.texi (Common Function Attributes): Document the
13755         interaction between the analyzer and the malloc attribute.
13756         * doc/invoke.texi (Static Analyzer Options): Likewise.
13757
13758 2021-01-17  David Edelsohn  <dje.gcc@gmail.com>
13759
13760         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
13761         dwarf_version to 4.
13762         * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
13763
13764 2021-01-17  Martin Jambor  <mjambor@suse.cz>
13765
13766         PR ipa/98222
13767         * cgraph.c (clone_of_p): Check also former_clone_of as we climb
13768         the clone tree.
13769
13770 2021-01-17  Mark Wielaard  <mark@klomp.org>
13771
13772         * common.opt (gdwarf-): Init(5).
13773         * doc/invoke.texi (-gdwarf): Document default to 5.
13774
13775 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
13776
13777         * builtin-types.def
13778         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
13779         to...
13780         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
13781         ...this.  Add extra argument.
13782         * gimplify.c (omp_default_clause): Ensure that event handle is
13783         firstprivate in a task region.
13784         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
13785         (gimplify_adjust_omp_clauses): Likewise.
13786         * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
13787         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
13788         * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
13789         if detach clause specified.  Add detach argument when generating
13790         call to GOMP_task.
13791         * omp-low.c (scan_sharing_clauses): Setup data environment for detach
13792         clause.
13793         (finish_taskreg_scan): Move field for variable containing the event
13794         handle to the front of the struct.
13795         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH.  Fix
13796         ordering.
13797         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
13798         OMP_CLAUSE_DETACH clause.
13799         (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
13800         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
13801         * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
13802         Fix ordering.
13803         (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH.  Fix
13804         ordering.
13805         (walk_tree_1): Handle OMP_CLAUSE_DETACH.
13806
13807 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13808
13809         * config/nios2/t-rtems: Reset all MULTILIB_* variables.  Shorten
13810         multilib directory names.  Use MULTILIB_REQUIRED instead of
13811         MULTILIB_EXCEPTIONS.  Add -mhw-mul -mhw-mulx -mhw-div
13812         -mcustom-fpu-cfg=fph2 multilib.
13813
13814 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13815
13816         * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
13817         (nios2_init_fpu_configs): Provide register values for new
13818         -mcustom-fpu-cfg=fph2 option variant.
13819         * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
13820         variant.
13821
13822 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13823
13824         * config/nios2/nios2.c (nios2_custom_check_insns): Remove
13825         custom instruction warnings.
13826
13827 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
13828
13829         PR tree-optimization/96669
13830         * match.pd ((CST << x) & 1 -> x == 0): New simplification.
13831
13832 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
13833
13834         PR tree-optimization/96271
13835         * passes.def: Pass false argument to first two pass_cd_dce
13836         instances and true to last instance.  Add comment that
13837         last instance rewrites no longer addressed locals.
13838         * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
13839         initialize it.
13840         (pass_cd_dce::set_pass_param): New method.
13841         (pass_cd_dce::execute): Return TODO_update_address_taken from
13842         last cd_dce instance.
13843
13844 2021-01-15  Carl Love  <cel@us.ibm.com>
13845
13846         * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
13847         New defines.
13848         * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
13849         * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
13850         DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
13851         DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
13852         MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
13853         Add builtin define.
13854         (MULH, DIVE, MOD):  Add new BU_P10_OVERLOAD_2 definitions.
13855         * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
13856         VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
13857         New overloaded definitions.
13858         (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
13859         P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
13860         P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
13861         P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
13862         P10V_BUILTIN_MULHU_V4SI]: Add case
13863         statement for builtins.
13864         * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
13865         * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
13866         (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
13867         (vsx_mul_v2di): Add if TARGET_POWER10 statement.
13868         (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
13869         (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
13870         mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
13871         Add define_insn, mode is VIlong.
13872         * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
13873         Add builtin descriptions.
13874
13875 2021-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13876
13877         * final.c (final_start_function_1): Reset force_source_line.
13878
13879 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
13880
13881         PR tree-optimization/96669
13882         * match.pd (((1 << A) & 1) != 0 -> A == 0,
13883         ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
13884         possibly different power of two constants and to right shift too.
13885
13886 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
13887
13888         PR tree-optimization/96681
13889         * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
13890         ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
13891         ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
13892         ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
13893
13894 2021-01-15  Alexandre Oliva  <oliva@adacore.com>
13895
13896         * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
13897
13898 2021-01-15  Tamar Christina  <tamar.christina@arm.com>
13899
13900         * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
13901         cmul<conj_op><mode>3): New.
13902         * config/aarch64/iterators.md (UNSPEC_FCMUL,
13903         UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
13904         UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
13905         FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
13906         sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
13907         (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
13908         (rot_op): Renamed to conj_op.
13909         * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
13910         cmul<conj_op><mode>3): New.
13911         * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
13912         cmul<conj_op><mode>3): New.
13913
13914 2021-01-15  David Malcolm  <dmalcolm@redhat.com>
13915
13916         PR bootstrap/98696
13917         * diagnostic.c
13918         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
13919         Escape the tempfile name when constructing the expected output.
13920
13921 2021-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13922
13923         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
13924         Rename to...
13925         (aarch64_<su>mlsl_hi<mode>): ... This.
13926         (aarch64_<su>mlsl_hi<mode>): Define.
13927         (*aarch64_<su>mlsl<mode): Rename to...
13928         (aarch64_<su>mlsl<mode): ... This.
13929         * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
13930         smlsl_hi, umlsl_hi): Define builtins.
13931         * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
13932         vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
13933         vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
13934         vmlsl_u16, vmlsl_u32): Reimplement with builtins.
13935
13936 2021-01-15  Uroš Bizjak  <ubizjak@gmail.com>
13937
13938         * config/i386/i386-c.c (ix86_target_macros):
13939         Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
13940
13941 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
13942
13943         PR target/88836
13944         * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
13945         * Makefile.in (RTL_SSA_H): New variable.
13946         * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
13947         * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
13948         * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
13949         pass_combine.
13950         * config/aarch64/aarch64-cc-fusion.cc: New file.
13951
13952 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
13953
13954         * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
13955         calling cancel_changes for changes that no longer exist.
13956
13957 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
13958
13959         * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
13960         (function_info::reg_defs): ...this.
13961         * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
13962         (function_info::reg_defs): ...this.
13963
13964 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
13965
13966         PR target/71233
13967         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
13968
13969 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
13970
13971         Revert:
13972         2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
13973
13974         PR target/71233
13975         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
13976
13977 2021-01-15  Richard Biener  <rguenther@suse.de>
13978
13979         PR tree-optimization/96376
13980         * tree-vect-stmts.c (get_load_store_type): Disregard alignment
13981         for VMAT_INVARIANT.
13982
13983 2021-01-15  Martin Liska  <mliska@suse.cz>
13984
13985         * doc/install.texi: Document that some tests need pytest module.
13986         * doc/sourcebuild.texi: Likewise.
13987
13988 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
13989
13990         PR target/71233
13991         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
13992
13993 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
13994
13995         * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
13996         (mve_vshrq_n_u<mode>_imm): Likewise.
13997         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
13998         * config/arm/vec-common.md: ... here.
13999
14000 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
14001
14002         * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
14003         vec-commond.md.
14004         * config/arm/neon.md (vashl<mode>3): Delete.
14005         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
14006         (vasl<mode>3): New expander.
14007
14008 2021-01-15  Richard Biener  <rguenther@suse.de>
14009
14010         PR tree-optimization/98685
14011         * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
14012         of vector extern defs.
14013
14014 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
14015
14016         PR jit/98586
14017         * diagnostic.c (diagnostic_kind_text): Break out this array
14018         from...
14019         (diagnostic_build_prefix): ...here.
14020         (fancy_abort): Detect when diagnostic_initialize has not yet been
14021         called and fall back to a minimal implementation of printing the
14022         ICE, rather than segfaulting in internal_error.
14023
14024 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
14025
14026         * diagnostic.c (diagnostic_initialize): Eliminate
14027         parseable_fixits_p in favor of initializing extra_output_kind from
14028         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
14029         (convert_column_unit): New function, split out from...
14030         (diagnostic_converted_column): ...this.
14031         (print_parseable_fixits): Add "column_unit" and "tabstop" params.
14032         Use them to call convert_column_unit on the column values.
14033         (diagnostic_report_diagnostic): Eliminate conditional on
14034         parseable_fixits_p in favor of a switch statement on
14035         extra_output_kind, passing the appropriate values to the new
14036         params of print_parseable_fixits.
14037         (selftest::test_print_parseable_fixits_none): Update for new
14038         params of print_parseable_fixits.
14039         (selftest::test_print_parseable_fixits_insert): Likewise.
14040         (selftest::test_print_parseable_fixits_remove): Likewise.
14041         (selftest::test_print_parseable_fixits_replace): Likewise.
14042         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
14043         New.
14044         (selftest::diagnostic_c_tests): Call it.
14045         * diagnostic.h (enum diagnostics_extra_output_kind): New.
14046         (diagnostic_context::parseable_fixits_p): Delete field in favor
14047         of...
14048         (diagnostic_context::extra_output_kind): ...this new field.
14049         * doc/invoke.texi (Environment Variables): Add
14050         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
14051         * opts.c (common_handle_option): Update handling of
14052         OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
14053         fields.
14054
14055 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
14056
14057         * tree-vect-slp-patterns.c (class complex_operations_pattern,
14058         complex_operations_pattern::matches,
14059         complex_operations_pattern::recognize,
14060         complex_operations_pattern::build): New.
14061         (slp_patterns): Use it.
14062
14063 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
14064
14065         * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
14066         * optabs.def (cmls_optab, cmls_conj_optab): New.
14067         * doc/md.texi: Document them.
14068         * tree-vect-slp-patterns.c (class complex_fms_pattern,
14069         complex_fms_pattern::matches, complex_fms_pattern::recognize,
14070         complex_fms_pattern::build): New.
14071
14072 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
14073
14074         * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
14075         * optabs.def (cmla_optab, cmla_conj_optab): New.
14076         * doc/md.texi: Document them.
14077         * tree-vect-slp-patterns.c (vect_match_call_p,
14078         class complex_fma_pattern, vect_slp_reset_pattern,
14079         complex_fma_pattern::matches, complex_fma_pattern::recognize,
14080         complex_fma_pattern::build): New.
14081
14082 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
14083
14084         * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
14085         * optabs.def (cmul_optab, cmul_conj_optab): New.
14086         * doc/md.texi: Document them.
14087         * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
14088         vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
14089         vect_build_combine_node, class complex_mul_pattern,
14090         complex_mul_pattern::matches, complex_mul_pattern::recognize,
14091         complex_mul_pattern::build): New.
14092
14093 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
14094
14095         * tree-vect-slp.c (optimize_load_redistribution_1): New.
14096         (optimize_load_redistribution, vect_is_slp_load_node): New.
14097         (vect_match_slp_patterns): Use it.
14098
14099 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
14100
14101         * tree-vect-slp-patterns.c (complex_add_pattern::build):
14102         Elide nodes.
14103
14104 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
14105
14106         * config/gcn/mkoffload.c (main): Create an offload image only in
14107         64-bit configurations.
14108
14109 2021-01-14  H.J. Lu  <hjl.tools@gmail.com>
14110
14111         PR target/98667
14112         * config/i386/i386-options.c (ix86_option_override_internal):
14113         Issue an error for -fcf-protection with CF_BRANCH when compiling
14114         for 32-bit non-TARGET_CMOV targets.
14115
14116 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
14117
14118         PR target/98671
14119         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
14120         Remove declaration and initialization of shadow variable "ret".
14121         (ix86_option_override_internal): Remove delcaration of
14122         shadow variable "i".  Redeclare shadowed variable to unsigned.
14123         * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
14124         * config/i386/i386-builtins.c (get_builtin_code_for_version):
14125         Update for redeclaration.
14126         * config/i386/i386.h (pta_size): Ditto.
14127
14128 2021-01-14  Richard Biener  <rguenther@suse.de>
14129
14130         PR tree-optimization/98674
14131         * tree-data-ref.c (base_supports_access_fn_components_p): New.
14132         (initialize_data_dependence_relation): For two bases without
14133         possible access fns resort to type size equality when determining
14134         shape compatibility.
14135
14136 2021-01-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14137
14138         PR target/66791
14139         * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
14140         <=, >= operators in vcle and vcge intrinsics respectively.
14141         * config/arm/arm_neon_builtins.def: Remove entry for
14142         vcge and vcgeu.
14143
14144 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
14145
14146         PR target/98671
14147         * config/i386/i386-options.c (ix86_function_specific_save):
14148         Remove redundant assignment to opts->x_ix86_branch_cost.
14149         * config/i386/i386.c (ix86_prefetch_sse):
14150         Rename from x86_prefetch_sse.  Update all uses.
14151         * config/i386/i386.h: Update for rename.
14152         * config/i386/i386-options.h: Ditto.
14153
14154 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
14155
14156         PR target/98670
14157         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
14158         *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
14159         Use Bm instead of m for non-avx.  Add isa attribute.
14160
14161 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
14162
14163         PR tree-optimization/96688
14164         * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
14165         ~X can be simplified.
14166
14167 2021-01-14  Richard Sandiford  <richard.sandiford@arm.com>
14168
14169         * tree-vect-stmts.c (vect_model_load_cost): Account for unused
14170         IFN_LOAD_LANES results.
14171
14172 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14173
14174         * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
14175         Define.
14176         (aarch64_xtn<mode>): Likewise.
14177         * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
14178         Define
14179         builtins.
14180         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
14181         builtin.
14182         (vmovl_s16): Likewise.
14183         (vmovl_s32): Likewise.
14184         (vmovl_u8): Likewise.
14185         (vmovl_u16): Likewise.
14186         (vmovl_u32): Likewise.
14187         (vmovn_s16): Likewise.
14188         (vmovn_s32): Likewise.
14189         (vmovn_s64): Likewise.
14190         (vmovn_u16): Likewise.
14191         (vmovn_u32): Likewise.
14192         (vmovn_u64): Likewise.
14193
14194 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14195
14196         * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
14197         Define.
14198         (aarch64_<su>qxtn2<mode>_be): Likewise.
14199         (aarch64_<su>qxtn2<mode>): Likewise.
14200         * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
14201         Define builtins.
14202         * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
14203         (su): Handle ss_truncate and us_truncate.
14204         * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
14205         builtin.
14206         (vqmovn_high_s32): Likewise.
14207         (vqmovn_high_s64): Likewise.
14208         (vqmovn_high_u16): Likewise.
14209         (vqmovn_high_u32): Likewise.
14210         (vqmovn_high_u64): Likewise.
14211
14212 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14213
14214         * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
14215         Define.
14216         (aarch64_xtn2<mode>_be): Likewise.
14217         (aarch64_xtn2<mode>): Likewise.
14218         * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
14219         builtins.
14220         * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
14221         builtins.
14222         (vmovn_high_s32): Likewise.
14223         (vmovn_high_s64): Likewise.
14224         (vmovn_high_u16): Likewise.
14225         (vmovn_high_u32): Likewise.
14226         (vmovn_high_u64): Likewise.
14227
14228 2021-01-13  Stafford Horne  <shorne@gmail.com>
14229
14230         * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
14231
14232 2021-01-13  Stafford Horne  <shorne@gmail.com>
14233
14234         * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
14235
14236 2021-01-13  Stafford Horne  <shorne@gmail.com>
14237
14238         * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
14239           define for __or1k_hard_float__.
14240
14241 2021-01-13  Stafford Horne  <shorne@gmail.com>
14242
14243         * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
14244         (PROFILE_HOOK): Define to call _mcount.
14245         (FUNCTION_PROFILER): Change from abort to no-op.
14246
14247 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
14248
14249         PR tree-optimization/96691
14250         * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
14251         (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
14252         (~D ^ C) or (D ^ C) can be simplified.
14253
14254 2021-01-13  Richard Biener  <rguenther@suse.de>
14255
14256         PR tree-optimization/92645
14257         * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
14258         until after vector lowering.
14259
14260 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
14261
14262         * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
14263         to SVE_I.
14264         (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
14265         (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
14266
14267 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
14268
14269         * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
14270         to SVE_I.
14271         (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
14272         (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
14273
14274 2021-01-13  Richard Biener  <rguenther@suse.de>
14275
14276         PR tree-optimization/92645
14277         * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
14278         BIT_FIELD_REF argument.
14279         (vect_build_slp_tree_2): Record the desired vector type
14280         on the external vector def.
14281         (vectorizable_slp_permutation): Handle required punning
14282         of existing vector defs.
14283
14284 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
14285
14286         * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
14287
14288 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
14289
14290         * config/sh/sh.md (movsf_ie): Remove operands[2] test.
14291
14292 2021-01-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14293
14294         * config.gcc [$target == *-*-gnu*]: Enable
14295         'default_gnu_indirect_function'.
14296
14297 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
14298
14299         PR target/95905
14300         * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
14301         registers before calling targetm.vectorize.vec_perm_const, only after
14302         that.
14303         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
14304         two argument permutation when one operand is zero vector and only
14305         after that force operands into registers.
14306         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
14307         define_insn_and_split pattern.
14308         (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
14309         (*avx512f_zero_extendv16hiv16si2_1): Likewise.
14310         (*avx2_zero_extendv8hiv8si2_1): Likewise.
14311         (*avx512f_zero_extendv8siv8di2_1): Likewise.
14312         (*avx2_zero_extendv4siv4di2_1): Likewise.
14313         * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
14314         into registers.
14315         * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
14316         * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
14317         * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
14318         * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
14319         * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
14320         * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise.  Use std::swap.
14321
14322 2021-01-13  Martin Liska  <mliska@suse.cz>
14323
14324         PR tree-optimization/98455
14325         * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
14326         Record also virtual PHIs.
14327         (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
14328         conditionally.
14329
14330 2021-01-13  Jonathan Wakely  <jwakely@redhat.com>
14331
14332         * doc/invoke.texi (C++ Modules): Fix typos.
14333
14334 2021-01-13  Richard Biener  <rguenther@suse.de>
14335
14336         PR tree-optimization/98640
14337         * tree-ssa-sccvn.c (visit_nary_op): Do not try to
14338         handle plus or minus from a truncated operand to be
14339         sign-extended.
14340
14341 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
14342
14343         PR target/96938
14344         * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
14345         define_insn_and_split patterns.
14346         (splitter after *btr<mode>_2): New splitter.
14347
14348 2021-01-13  Martin Liska  <mliska@suse.cz>
14349
14350         PR ipa/98652
14351         * cgraphunit.c (analyze_functions): Remove dead code.
14352
14353 2021-01-13  Qian Jianhua  <qianjh@cn.fujitsu.com>
14354
14355         * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
14356         * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
14357         (a64fx_regmove_cost, a64fx_vector_cost): New.
14358         (a64fx_tunings): Use the new added cost tables.
14359
14360 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
14361
14362         PR target/95905
14363         * config/i386/predicates.md (pmovzx_parallel): New predicate.
14364         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
14365         define_insn_and_split pattern.
14366         (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
14367         (*sse4_1_zero_extendv2siv2di2_3): Likewise.
14368
14369 2021-01-13  Julian Brown  <julian@codesourcery.com>
14370
14371         * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
14372         to fix v0 register.
14373
14374 2021-01-13  Julian Brown  <julian@codesourcery.com>
14375
14376         * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
14377         on entry to a BB.
14378
14379 2021-01-13  Julian Brown  <julian@codesourcery.com>
14380
14381         * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
14382         for reciprocal-approximation instructions.
14383         (div<mode>3): Use fused multiply-accumulate operations for reciprocal
14384         refinement and division result.
14385         * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
14386
14387 2021-01-13  Julian Brown  <julian@codesourcery.com>
14388
14389         * config/gcn/gcn-valu.md (subdf): Rename to...
14390         (subdf3): This.
14391
14392 2021-01-12  Martin Liska  <mliska@suse.cz>
14393
14394         * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
14395
14396 2021-01-12  Andrea Corallo  <andrea.corallo@arm.com>
14397
14398         * function-abi.h: Fix typo.
14399
14400 2021-01-12  Christophe Lyon  <christophe.lyon@linaro.org>
14401
14402         PR target/97875
14403         PR target/97875
14404         * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
14405         (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
14406         (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
14407         (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
14408         (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
14409         (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
14410         (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
14411         (ARM_HAVE_NEON_V2DI_LDST): Likewise.
14412         (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
14413         (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
14414         (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
14415         (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
14416         (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
14417         (ARM_HAVE_V2DI_LDST): Likewise.
14418         * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
14419         (*movmisalign<mode>_mve_load): New pattern.
14420         * config/arm/neon.md (movmisalign<mode>): Move to ...
14421         * config/arm/vec-common.md: ... here.
14422
14423 2021-01-12  Vladimir N. Makarov  <vmakarov@redhat.com>
14424
14425         PR target/97969
14426         * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
14427         of pattern 'plus (plus (hard reg, const), pseudo)'.
14428
14429 2021-01-12  Richard Biener  <rguenther@suse.de>
14430
14431         PR tree-optimization/98550
14432         * tree-vect-slp.c (vect_record_max_nunits): Check whether
14433         the group size is a multiple of the vector element count.
14434         (vect_build_slp_tree_1): When we need to fail because
14435         the vector type choosen causes unrolling do so lazily
14436         without affecting matches only at the end to guide group splitting.
14437
14438 2021-01-12  Martin Liska  <mliska@suse.cz>
14439
14440         PR c++/97284
14441         * optc-save-gen.awk: Compare also n_target_save vars with
14442         strcmp.
14443
14444 2021-01-12  Martin Liska  <mliska@suse.cz>
14445
14446         * gcov.c (source_info::debug): New.
14447         (print_usage): Add --debug (-D) option.
14448         (process_args): Likewise.
14449         (generate_results): Call src->debug after
14450         accumulate_line_counts.
14451         (read_graph_file): Properly assign id for EXIT_BLOCK.
14452         * profile.c (branch_prob): Dump function body before it is
14453         instrumented.
14454
14455 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
14456
14457         PR tree-optimization/98629
14458         * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
14459         unless returning non-zero.
14460
14461 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
14462
14463         PR tree-optimization/95731
14464         * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
14465         x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
14466         (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
14467         only after optimize_range_tests_var_bound.
14468
14469 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
14470
14471         * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
14472         * configure: Regenerated.
14473
14474 2021-01-12  liuhongt  <hongtao.liu@intel.com>
14475
14476         PR target/98612
14477         * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
14478         Deleted.
14479         * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
14480         dead code.
14481
14482 2021-01-12  Alexandre Oliva  <oliva@adacore.com>
14483
14484         * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
14485         declare.
14486         (auto_end_imm_use_stmt_traverse): New struct.
14487         (FOR_EACH_IMM_USE_STMT): Use it.
14488         (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
14489         along with uses...
14490         * gimple-ssa-strength-reduction.c: ... here, ...
14491         * graphite-scop-detection.c: ... here, ...
14492         * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
14493         * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
14494         * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
14495         * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
14496         * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
14497         * tree-vect-slp.c: ... and here, ...
14498         * doc/tree-ssa.texi: ... and the example here.
14499
14500 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
14501
14502         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
14503         SVE_FULL_I to SVE_I.  Generate an UNSPEC_PRED_X.
14504         (*sdiv_pow2<mode>3): New pattern.
14505         (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
14506         Wrap the ASRD in an UNSPEC_PRED_X.
14507         (*cond_<sve_int_op><mode>_2): Likewise.  Replace the UNSPEC_PRED_X
14508         predicate with a constant PTRUE, if it isn't already.
14509         (*cond_<sve_int_op><mode>_z): Replace with...
14510         (*cond_<sve_int_op><mode>_any): ...this new pattern.
14511
14512 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
14513
14514         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
14515         SVE_FULL_I to SVE_I.
14516         (*cond_bic<mode>_any): Likewise.
14517
14518 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
14519
14520         * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
14521         (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
14522         to SVE_I.
14523
14524 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
14525
14526         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
14527         SVE_FULL_I to SVE_I.
14528         (*aarch64_cond_<su>abd<mode>_2): Likewise.
14529         (*aarch64_cond_<su>abd<mode>_any): Likewise.
14530         (@aarch64_pred_<su>abd<mode>): Likewise.  Use UNSPEC_PRED_X
14531         for the max and min but not for the minus.
14532         (*aarch64_cond_<su>abd<mode>_3): New pattern.
14533
14534 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
14535
14536         * config/aarch64/iterators.md (SVE_24I): New iterator.
14537         * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
14538         SVE_FULL_SDI to SVE_24I.  Use containers rather than elements.
14539
14540 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
14541
14542         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
14543         (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
14544         to SVE_I.
14545         (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
14546         (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
14547         (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
14548         (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
14549
14550 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
14551
14552         * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
14553         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
14554         (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
14555         to SVE_I.
14556
14557 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
14558
14559         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
14560         (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
14561         (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
14562
14563 2021-01-11  Martin Liska  <mliska@suse.cz>
14564
14565         PR jit/98615
14566         * symtab-clones.h (clone_info::release): Release
14567         symtab::m_clones with ggc_delete as it's a GGC memory.
14568
14569 2021-01-11  Matthias Klose  <doko@ubuntu.com>
14570
14571         * Makefile.in (LINK_PROGRESS): Show the link target.
14572
14573 2021-01-11  Richard Biener  <rguenther@suse.de>
14574
14575         PR tree-optimization/91403
14576         * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
14577         single-element interleaving group size at 4096 elements.
14578
14579 2021-01-11  Richard Biener  <rguenther@suse.de>
14580
14581         PR tree-optimization/98526
14582         * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
14583         of the actual reduction op for the regular case.
14584         (vectorizable_reduction): Cost the stmts
14585         vect_transform_reduction produces here.
14586
14587 2021-01-11  Andreas Krebbel  <krebbel@linux.ibm.com>
14588
14589         * tree-ssa-forwprop.c (simplify_vector_constructor): For
14590         big-endian, use UNPACK[_FLOAT]_HI.
14591
14592 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
14593
14594         * tree-vect-slp-patterns.c (class complex_pattern,
14595         class complex_add_pattern): Add parameters to matches.
14596         (complex_add_pattern::build): Free memory.
14597         (complex_add_pattern::matches): Move validation end of match.
14598         (complex_add_pattern::recognize): Likewise.
14599
14600 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
14601
14602         * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
14603
14604 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
14605
14606         * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
14607
14608 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
14609
14610         PR tree-optimization/95867
14611         * tree-ssa-math-opts.h: New header.
14612         * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
14613         (powi_as_mults): No longer static.  Use build_one_cst instead of
14614         build_real.  Formatting fix.
14615         * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
14616         (attempt_builtin_powi): Handle multiplication reassociation without
14617         powi_fndecl using powi_as_mults.
14618         (reassociate_bb): For integral types don't require
14619         -funsafe-math-optimizations to call attempt_builtin_powi.
14620
14621 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
14622
14623         PR tree-optimization/95852
14624         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
14625         mul_stmts parameter type to vec<gimple *> &.  Before cond_stmt
14626         allow in the bb any of the stmts in that vector, div_stmt and
14627         up to 3 cast stmts.
14628         (arith_cast_equal_p): New function.
14629         (arith_overflow_check_p): Add cast_stmt argument, handle signed
14630         multiply overflow checks.
14631         (match_arith_overflow): Adjust caller.  Handle signed multiply
14632         overflow checks.
14633
14634 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
14635
14636         PR tree-optimization/95852
14637         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
14638         (uaddsub_overflow_check_p): Renamed to ...
14639         (arith_overflow_check_p): ... this.  Handle also multiplication
14640         with overflow check.
14641         (match_uaddsub_overflow): Renamed to ...
14642         (match_arith_overflow): ... this.  Add cfg_changed argument.  Handle
14643         also multiplication with overflow check.  Adjust function comment.
14644         (math_opts_dom_walker::after_dom_children): Adjust callers.  Call
14645         match_arith_overflow also for MULT_EXPR.
14646
14647 2021-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14648
14649         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
14650         __builtin_convertvector.
14651         (vmovl_s16): Likewise.
14652         (vmovl_s32): Likewise.
14653         (vmovl_u8): Likewise.
14654         (vmovl_u16): Likewise.
14655         (vmovl_u32): Likewise.
14656         (vmovn_s16): Likewise.
14657         (vmovn_s32): Likewise.
14658         (vmovn_s64): Likewise.
14659         (vmovn_u16): Likewise.
14660         (vmovn_u32): Likewise.
14661         (vmovn_u64): Likewise.
14662
14663 2021-01-11  Martin Liska  <mliska@suse.cz>
14664
14665         * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
14666         (if_chain::is_beneficial): Delete clusters
14667         (find_conditions): Make second argument of conditions_in_bbs a
14668         pointer so that we control over it's lifetime.
14669         (pass_if_to_switch::execute): Delete them.
14670
14671 2021-01-11  Kewen Lin  <linkw@linux.ibm.com>
14672
14673         * ira.c (move_unallocated_pseudos): Check other_reg and skip if
14674         it isn't set.
14675
14676 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
14677
14678         * config/vax/vax.md (cc): Remove mode attribute.
14679         (subst_<cc>, subst_f<cc>): Rename to...
14680         (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
14681         (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
14682         (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
14683         (*branch_<mode>, *branch_<mode>_reversed): Likewise.
14684
14685 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
14686
14687         * config/vax/vax.md (subst_f<cc>): Add mode to operands and
14688         `const_double_zero'.
14689
14690 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
14691
14692         * config/pdp11/pdp11.md (PDPfp): New mode iterator.
14693         (fcc_cc, fcc_ccnz): Use it.  Add mode to `const_double_zero' and
14694         operands.
14695
14696 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
14697
14698         * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
14699         rtx.
14700         * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
14701         with `const_double_zero'.
14702         * doc/rtl.texi (Constant Expression Types): Document it.
14703
14704 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
14705
14706         PR c++/98556
14707         * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
14708         POINTER_DIFF_EXPR to be any integral type.
14709
14710 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
14711
14712         PR rtl-optimization/98603
14713         * function.c (instantiate_virtual_regs_in_insn): For asm goto
14714         with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
14715         if any, set ASM_OPERANDS mode to VOIDmode and change
14716         ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
14717
14718 2021-01-09  Alexandre Oliva  <oliva@gnu.org>
14719
14720         PR debug/97714
14721         * final.c (notice_source_line): Narrow down the condition to
14722         skip a line-0 marker.
14723
14724 2021-01-08  Sergei Trofimovich  <siarheit@google.com>
14725
14726         * ipa-modref.c (merge_call_side_effects): Fix
14727         linebreak split by reordering two print calls.
14728
14729 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
14730
14731         * config/s390/vector.md (*tf_to_fprx2_0): Rename from
14732         "*mov_tf_to_fprx2_0" for consistency, fix constraint.
14733         (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
14734         consistency, fix constraint.
14735
14736 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
14737
14738         * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
14739         callables instead of mask values.
14740         (struct target_flag_set_p): New predicate.
14741         (s390_cpu_cpp_builtins_internal): Define or undefine
14742         __LONG_DOUBLE_VX__ macro.
14743
14744 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
14745
14746         PR target/98482
14747         * config/i386/i386.c (x86_function_profiler): Use R10 and R11
14748         to call mcount in large model with PIC for NO_PROFILE_COUNTERS
14749         targets.
14750
14751 2021-01-08  Richard Biener  <rguenther@suse.de>
14752
14753         * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
14754
14755 2021-01-08  Richard Biener  <rguenther@suse.de>
14756
14757         * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
14758         (vect_build_slp_tree): On cache hit release the matched
14759         scalar stmts vector.
14760         * tree-vect-stmts.c (vectorizable_store): Properly free
14761         vec_oprnds before possibly gathering them again.
14762
14763 2021-01-08  Richard Biener  <rguenther@suse.de>
14764
14765         PR tree-optimization/98544
14766         * tree-vect-slp.c (vect_optimize_slp): Always materialize
14767         permutes at a permute node.
14768
14769 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
14770
14771         PR target/98482
14772         * config/i386/i386.c (x86_function_profiler): Use R10 to call
14773         mcount in large model.  Sorry for large model with PIC.
14774
14775 2021-01-08  Jakub Jelinek  <jakub@redhat.com>
14776
14777         PR target/98585
14778         * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
14779         ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
14780         ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
14781         TargetSave and initialize for variables with enum types.
14782         (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
14783         mstack-protector-guard-symbol=): Add Save.
14784         * config/i386/i386-options.c (ix86_function_specific_save,
14785         ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
14786         x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
14787         x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
14788         x_ix86_veclibabi_type.
14789
14790 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
14791
14792         * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
14793         SVE_FULL_I to SVE_I.
14794         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
14795
14796 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
14797
14798         * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
14799         SVE_FULL_I to SVE_I.
14800         (*cond_uxt<mode>_any): Likewise.
14801
14802 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14803
14804         * config/aarch64/iterators.md (Vwhalf): New iterator.
14805         * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
14806         Rename to...
14807         (aarch64_<sur>adalp<mode>): ... This.  Make more
14808         builtin-friendly.
14809         (<sur>sadv16qi): Adjust callsite of the above.
14810         * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
14811         builtins.
14812         * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
14813         builtins.
14814         (vpadal_s16): Likewise.
14815         (vpadal_u8): Likewise.
14816         (vpadal_u16): Likewise.
14817         (vpadalq_s8): Likewise.
14818         (vpadalq_s16): Likewise.
14819         (vpadalq_s32): Likewise.
14820         (vpadalq_u8): Likewise.
14821         (vpadalq_u16): Likewise.
14822         (vpadalq_u32): Likewise.
14823
14824 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14825
14826         * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
14827         Rename to...
14828         (aarch64_<su>abd<mode>): ... This.
14829         (<sur>sadv16qi): Adjust callsite of the above.
14830         * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
14831         builtins.
14832         * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
14833         builtin.
14834         (vabd_s16): Likewise.
14835         (vabd_s32): Likewise.
14836         (vabd_u8): Likewise.
14837         (vabd_u16): Likewise.
14838         (vabd_u32): Likewise.
14839         (vabdq_s8): Likewise.
14840         (vabdq_s16): Likewise.
14841         (vabdq_s32): Likewise.
14842         (vabdq_u8): Likewise.
14843         (vabdq_u16): Likewise.
14844         (vabdq_u32): Likewise.
14845
14846 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14847
14848         * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
14849         builtins.
14850         * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
14851         (vaba_s16): Likewise.
14852         (vaba_s32): Likewise.
14853         (vaba_u8): Likewise.
14854         (vaba_u16): Likewise.
14855         (vaba_u32): Likewise.
14856         (vabaq_s8): Likewise.
14857         (vabaq_s16): Likewise.
14858         (vabaq_s32): Likewise.
14859         (vabaq_u8): Likewise.
14860         (vabaq_u16): Likewise.
14861         (vabaq_u32): Likewise.
14862
14863 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14864
14865         * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
14866         (aarch64_<su>aba<mode>): ... This.  Handle uaba as well.
14867         Change RTL pattern to match.
14868
14869 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
14870
14871         * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
14872         * config/riscv/riscv-c.c (riscv-subset.h): New.
14873         (INCLUDE_STRING): Define.
14874         (riscv_cpu_cpp_builtins): Add new style architecture extension
14875         test macros.
14876         * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
14877         (riscv_subset_list::end): New.
14878         (riscv_current_subset_list): New.
14879
14880 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
14881
14882         * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
14883         Move to riscv-subset.h.
14884         (struct riscv_subset_t): Ditto.
14885         (class riscv_subset_list): Ditto.
14886         * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
14887         from riscv-common.c.
14888         (struct riscv_subset_t): Ditto.
14889         (class riscv_subset_list): Ditto.
14890         * config/riscv/t-riscv ($(common_out_file)): Add file
14891         dependency.
14892
14893 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
14894
14895         PR target/98567
14896         * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
14897         New define_insn patterns.
14898
14899 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
14900
14901         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
14902         (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
14903         (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
14904
14905 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
14906
14907         PR tree-optimization/98560
14908         * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
14909         * internal-fn.c (vec_cond_mask_direct): Get the data mode from
14910         argument 1.
14911         (vec_cond_direct): Likewise argument 2.
14912         (vec_condu_direct, vec_condeq_direct): Delete.
14913         (expand_vect_cond_optab_fn): Rename to...
14914         (expand_vec_cond_optab_fn): ...this, replacing old macro.
14915         (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
14916         (expand_vect_cond_mask_optab_fn): Rename to...
14917         (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
14918         (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
14919         convert optab.
14920         (direct_vec_cond_optab_supported_p): Likewise.
14921         (direct_vec_condu_optab_supported_p): Delete.
14922         (direct_vec_condeq_optab_supported_p): Delete.
14923         * gimple-isel.cc: Include internal-fn.h.
14924         (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
14925         before using it.
14926
14927 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
14928
14929         PR tree-optimization/98560
14930         * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
14931         IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
14932
14933 2021-01-07  Uroš Bizjak  <ubizjak@gmail.com>
14934
14935         * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
14936         rotate_insn and optab code attributes.
14937         Update all uses to merged code attribute.
14938         * config/i386/sse.md: Update all uses to merged code attribute.
14939         * config/i386/mmx.md: Update all uses to merged code attribute.
14940
14941 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
14942
14943         PR tree-optimization/98568
14944         * gimple-ssa-store-merging.c (bswap_view_convert): New function.
14945         (bswap_replace): Use it.
14946
14947 2021-01-06  Vladimir N. Makarov  <vmakarov@redhat.com>
14948
14949         PR rtl-optimization/97978
14950         * lra-int.h (lra_hard_reg_split_p): New external.
14951         * lra.c (lra_hard_reg_split_p): New global.
14952         (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
14953         * lra-assigns.c (lra_assign): Don't check allocation correctness
14954         after hard reg splitting.
14955
14956 2021-01-06  Martin Sebor  <msebor@redhat.com>
14957
14958         PR c++/98305
14959         * builtins.c (new_delete_mismatch_p): New overload.
14960         (new_delete_mismatch_p (tree, tree)): Call it.
14961
14962 2021-01-06  Alexandre Oliva  <oliva@adacore.com>
14963
14964         * Makefile.in (T_GLIMITS_H): New.
14965         (stmp-int-hdrs): Depend on it, use it.
14966         * config/t-vxworks (T_GLIMITS_H): Override it.
14967         (vxw-glimits.h): New.
14968
14969 2021-01-06  Richard Biener  <rguenther@suse.de>
14970
14971         PR tree-optimization/98513
14972         * value-range.cc (intersect_ranges): Compare the upper bounds
14973         for the expected relation.
14974
14975 2021-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14976
14977         Revert:
14978         2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
14979
14980         * doc/standards.texi (HSAIL): Remove section.
14981
14982 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14983
14984         * configure: Re-generate.
14985
14986 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
14987
14988         * doc/invoke.texi (-std=c++20): Adjust for the publication of
14989         ISO 14882:2020 standard.
14990         * doc/standards.texi: Likewise.
14991
14992 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
14993
14994         PR tree-optimization/94802
14995         * expr.h (maybe_optimize_sub_cmp_0): Declare.
14996         * expr.c: Include tree-pretty-print.h and flags.h.
14997         (maybe_optimize_sub_cmp_0): New function.
14998         (do_store_flag): Use it.
14999         * cfgexpand.c (expand_gimple_cond): Likewise.
15000
15001 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
15002
15003         * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
15004         * rtlanal.c (simple_regno_set): Tweak description to clarify the
15005         RMW condition.
15006
15007 2021-01-05  Richard Biener  <rguenther@suse.de>
15008
15009         PR tree-optimization/98516
15010         * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
15011         lanes when materializing on a VEC_PERM node.
15012         (vectorizable_slp_permutation): Dump the permute properly.
15013
15014 2021-01-05  Richard Biener  <rguenther@suse.de>
15015
15016         * tree-vect-slp.c (vect_slp_region): Move debug counter
15017         to cover individual subgraphs.
15018
15019 2021-01-05  Richard Biener  <rguenther@suse.de>
15020
15021         PR tree-optimization/98428
15022         * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
15023         vector lane extracts for loop vectorization.
15024
15025 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
15026
15027         PR tree-optimization/98514
15028         * tree-ssa-reassoc.c (bb_rank): Change type from long * to
15029         int64_t *.
15030         (operand_rank): Change type from hash_map<tree, long> to
15031         hash_map<tree, int64_t>.
15032         (phi_rank): Change return type from long to int64_t.
15033         (loop_carried_phi): Change block_rank variable type from long to
15034         int64_t.
15035         (propagate_rank): Change return type, rank parameter type and
15036         op_rank variable type from long to int64_t.
15037         (find_operand_rank): Change return type from long to int64_t
15038         and change slot variable type from long * to int64_t *.
15039         (insert_operand_rank): Change rank parameter type from long to
15040         int64_t.
15041         (get_rank): Change return type and rank variable type from long to
15042         int64_t.  Use PRId64 instead of ld to print the rank.
15043         (init_reassoc): Change rank variable type from long to int64_t
15044         and adjust correspondingly bb_rank and operand_rank initialization.
15045
15046 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
15047
15048         PR tree-optimization/96928
15049         * tree-ssa-phiopt.c (xor_replacement): New function.
15050         (tree_ssa_phiopt_worker): Call it.
15051
15052 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
15053
15054         PR tree-optimization/96930
15055         * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
15056         from narrower value which has the same type as 1 << B, perform
15057         the right shift on the narrower value followed by extension.
15058
15059 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
15060
15061         PR tree-optimization/96239
15062         * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
15063         function.
15064         (get_status_for_store_merging): Don't return BB_INVALID for blocks
15065         with potential bswap optimizable CONSTRUCTORs.
15066         (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
15067         if possible.
15068
15069 2021-01-05  Richard Biener  <rguenther@suse.de>
15070
15071         PR tree-optimization/98381
15072         * tree.c (vector_element_bits): Properly compute bool vector
15073         element size.
15074         * tree-vect-loop.c (vectorizable_live_operation): Properly
15075         compute the last lane bit offset.
15076
15077 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
15078
15079         PR target/98522
15080         * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
15081         Clear the top 64 bytes of the input XMM register.
15082         (sse_cvttps2pi): Ditto.
15083
15084 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
15085
15086         PR target/98521
15087         * config/i386/xopintrin.h (_mm256_cmov_si256): New.
15088
15089 2021-01-05  H.J. Lu  <hjl.tools@gmail.com>
15090
15091         PR target/98495
15092         * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
15093         short first.
15094
15095 2021-01-05  Claudiu Zissulescu  <claziss@synopsys.com>
15096
15097         * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
15098         (umaddsidi4_split): Likewise.
15099
15100 2021-01-05  liuhongt  <hongtao.liu@intel.com>
15101
15102         PR target/98461
15103         * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
15104         define_insn_and_split for zero_extend of subreg HI of pmovskb
15105         result.
15106         (*sse2_pmovskb_zexthisi): Add new combine splitters for
15107         zero_extend of not of subreg HI of pmovskb result.
15108
15109 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
15110
15111         PR target/97269
15112         * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
15113         nested in CONSTs.
15114         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
15115         convert_memory_address to convert symbolic immediates to ptr_mode
15116         before forcing them to memory.
15117
15118 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
15119
15120         PR rtl-optimization/97144
15121         * recog.c (constrain_operands): Initialize matching_operand
15122         for each alternative, rather than only doing it once.
15123
15124 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
15125
15126         PR rtl-optimization/98403
15127         * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
15128         why we don't remove call clobbers.
15129         (function_info::apply_changes_to_insn): Don't attempt to add
15130         call clobbers here.
15131
15132 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
15133
15134         PR tree-optimization/98371
15135         * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
15136         (vect_analyze_loop): If an epilogue loop appears to be cheaper
15137         than the main loop, re-analyze it as a main loop before adopting
15138         it as a main loop.
15139
15140 2021-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15141
15142         PR c++/98316
15143         * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
15144         * aclocal.m4, configure: Regenerate.
15145         * Makefile.in (NETLIBS): Define.
15146         (BACKEND): Remove $(CODYLIB).
15147
15148 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
15149
15150         PR rtl-optimization/98334
15151         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
15152         Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
15153
15154 2021-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15155
15156         * tree-inline.c (expand_call_inline): Restore input_location.
15157         Return result from recursive call.
15158
15159 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
15160
15161         PR tree-optimization/95401
15162         * config/aarch64/aarch64-sve-builtins.cc
15163         (gimple_folder::load_store_cookie): Use bits rather than bytes
15164         for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
15165         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
15166         * tree-vect-stmts.c (vectorizable_store): Likewise.
15167         (vectorizable_load): Likewise.
15168
15169 2021-01-04  Richard Biener  <rguenther@suse.de>
15170
15171         PR tree-optimization/98308
15172         * tree-vect-stmts.c (vectorizable_load): Set invariant mask
15173         SLP vectype.
15174
15175 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
15176
15177         PR tree-optimization/95771
15178         * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
15179         with precision smaller than int's precision and types with precision
15180         twice as large as long long.  Formatting fixes.
15181
15182 2021-01-04  Richard Biener  <rguenther@suse.de>
15183
15184         PR tree-optimization/98464
15185         * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
15186         (vn_valueize_wrapper): ... this.  Temporarily adjust vn_context_bb.
15187         (process_bb): Adjust.
15188
15189 2021-01-04  Matthew Malcomson  <matthew.malcomson@arm.com>
15190
15191         PR other/98437
15192         * doc/invoke.texi (-fsanitize=address): Fix wording describing
15193         clash with -fsanitize=hwaddress.
15194
15195 2021-01-04  Richard Biener  <rguenther@suse.de>
15196
15197         PR tree-optimization/98282
15198         * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
15199         invariants as VN_NARY.
15200
15201 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
15202
15203         PR target/89057
15204         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
15205         aarch64_simd_reg_or_zero for operand 2.  Use the combinez patterns
15206         to handle zero operands.
15207
15208 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
15209
15210         * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
15211         (offset_6bit_unsigned_scaled_p): Fix typo in comment.
15212         (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
15213         [-32, 31].
15214
15215 2021-01-04  Richard Biener  <rguenther@suse.de>
15216
15217         PR tree-optimization/98393
15218         * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
15219         when hitting the limit.
15220
15221 2021-01-04  Richard Biener  <rguenther@suse.de>
15222
15223         PR tree-optimization/98291
15224         * tree-vect-loop.c (vectorizable_reduction): Bypass
15225         associativity check for SLP reductions with VF 1.
15226
15227 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
15228
15229         PR tree-optimization/96782
15230         * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
15231
15232 2021-01-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15233
15234         * collect-utils.c (collect_execute): Check dumppfx.
15235         * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
15236         to collect_execute.
15237         (do_link): Add new parameter atsuffix.
15238         (main): Handle -dumpdir option.  Skip one argument for
15239         -o, -isystem and -B options.
15240         * gcc.c (make_at_file): New helper function.
15241         (close_at_file): Use it.
15242
15243 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
15244
15245         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
15246         Amend handling for LD64_VERSION fallback defaults.
15247
15248 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
15249
15250         * config.gcc: Compute default version information
15251         from the configured target.  Likewise defaults for
15252         ld64.
15253         * config/darwin10.h: Removed.
15254         * config/darwin12.h: Removed.
15255         * config/darwin9.h: Removed.
15256         * config/rs6000/darwin8.h: Removed.
15257
15258 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
15259
15260         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
15261
15262 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
15263
15264         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
15265         * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
15266
15267 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
15268
15269         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
15270         here...
15271         * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
15272
15273 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
15274
15275         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
15276         for the Darwin10 unwinder stub from here ...
15277         * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
15278
15279 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
15280
15281         * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
15282         (ASM_DEBUG_SPEC):Only define if the assembler supports
15283         stabs.
15284         (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
15285         (DARWIN_PREFER_DWARF): Define.
15286         * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
15287         (DARWIN_PREFER_DWARF): Likewise
15288         (DSYMUTIL_SPEC): Likewise.
15289         (COLLECT_RUN_DSYMUTIL): Likewise.
15290         (ASM_DEBUG_SPEC): Likewise.
15291         (ASM_DEBUG_OPTION_SPEC): Likewise.
15292
15293 2021-01-02  Jan Hubicka  <jh@suse.cz>
15294
15295         * cfg.c (free_block): ggc_free bb.
15296
15297 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
15298
15299         * gcc.c (process_command): Update copyright notice dates.
15300         * gcov-dump.c (print_version): Ditto.
15301         * gcov.c (print_version): Ditto.
15302         * gcov-tool.c (print_version): Ditto.
15303         * gengtype.c (create_file): Ditto.
15304         * doc/cpp.texi: Bump @copying's copyright year.
15305         * doc/cppinternals.texi: Ditto.
15306         * doc/gcc.texi: Ditto.
15307         * doc/gccint.texi: Ditto.
15308         * doc/gcov.texi: Ditto.
15309         * doc/install.texi: Ditto.
15310         * doc/invoke.texi: Ditto.
15311
15312 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
15313
15314         * ChangeLog-2020: Rotate ChangeLog.  New file.
15315
15316 \f
15317 Copyright (C) 2021 Free Software Foundation, Inc.
15318
15319 Copying and distribution of this file, with or without modification,
15320 are permitted in any medium without royalty provided the copyright
15321 notice and this notice are preserved.