Daily bump.
[official-gcc.git] / gcc / ChangeLog
blob7356889757bc63634aaae911d0fd514990f37ce4
1 2021-11-11  Aldy Hernandez  <aldyh@redhat.com>
3         * gimple-range-path.cc (path_range_query::path_range_query): New
4         ctor without a ranger.
5         (path_range_query::~path_range_query): Free ranger if necessary.
6         (path_range_query::range_on_path_entry): Adjust m_ranger for pointer.
7         (path_range_query::ssa_range_in_phi): Same.
8         (path_range_query::compute_ranges_in_block): Same.
9         (path_range_query::compute_imports): Same.
10         (path_range_query::compute_ranges): Same.
11         (path_range_query::range_of_stmt): Same.
12         (path_range_query::compute_outgoing_relations): Same.
13         * gimple-range-path.h (class path_range_query): New ctor.
14         * tree-ssa-loop-ch.c (ch_base::copy_headers): Remove gimple_ranger
15         as path_range_query allocates one.
16         * tree-ssa-threadbackward.c (class back_threader): Remove m_ranger.
17         (back_threader::~back_threader): Same.
19 2021-11-11  Aldy Hernandez  <aldyh@redhat.com>
21         * tree-ssa-threadbackward.c
22         (back_threader_profitability::profitable_path_p): Remove loop
23         crossing restriction.
25 2021-11-11  Jan Hubicka  <hubicka@ucw.cz>
27         * ipa-modref.c (analyze_function): Do pure/const discovery, return
28         true on success.
29         (pass_modref::execute): If pure/const is discovered fixup cfg.
30         (ignore_edge): Do not ignore pure/const edges.
31         (modref_propagate_in_scc): Do pure/const discovery, return true if
32         cdtor was promoted pure/const.
33         (pass_ipa_modref::execute): If needed remove unreachable functions.
34         * ipa-pure-const.c (warn_function_noreturn): Fix whitespace.
35         (warn_function_cold): Likewise.
36         (skip_function_for_local_pure_const): Move earlier.
37         (ipa_make_function_const): Break out from ...
38         (ipa_make_function_pure): Break out from ...
39         (propagate_pure_const): ... here.
40         (pass_local_pure_const::execute): Use it.
41         * ipa-utils.h (ipa_make_function_const): Declare.
42         (ipa_make_function_pure): Declare.
43         * passes.def: Move early modref after pure-const.
45 2021-11-11  David Malcolm  <dmalcolm@redhat.com>
47         PR other/103129
48         * diagnostic-show-locus.c (def_policy): Use def_tabstop.
50 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
52         * config/aarch64/aarch64-builtins.c (TYPES_COMBINE): Delete.
53         (TYPES_COMBINEP): Delete.
54         * config/aarch64/aarch64-simd-builtins.def: Declare type-
55         qualified builtins for vcombine_* intrinsics.
56         * config/aarch64/arm_neon.h (vcombine_s8): Remove unnecessary
57         cast.
58         (vcombine_s16): Likewise.
59         (vcombine_s32): Likewise.
60         (vcombine_f32): Likewise.
61         (vcombine_u8): Use type-qualified builtin and remove casts.
62         (vcombine_u16): Likewise.
63         (vcombine_u32): Likewise.
64         (vcombine_u64): Likewise.
65         (vcombine_p8): Likewise.
66         (vcombine_p16): Likewise.
67         (vcombine_p64): Likewise.
68         (vcombine_bf16): Remove unnecessary cast.
69         * config/aarch64/iterators.md (VD_I): New mode iterator.
70         (VDC_P): New mode iterator.
72 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
74         * config/aarch64/aarch64-builtins.c (TYPES_LOAD1_U): Define.
75         (TYPES_LOAD1_P): Define.
76         (TYPES_STORE1_U): Define.
77         (TYPES_STORE1P): Rename to...
78         (TYPES_STORE1_P): This.
79         (get_mem_type_for_load_store): Add unsigned and poly types.
80         (aarch64_general_gimple_fold_builtin): Add unsigned and poly
81         type-qualified builtin declarations.
82         * config/aarch64/aarch64-simd-builtins.def: Declare type-
83         qualified builtins for LD1/ST1.
84         * config/aarch64/arm_neon.h (vld1_p8): Use type-qualified
85         builtin and remove cast.
86         (vld1_p16): Likewise.
87         (vld1_u8): Likewise.
88         (vld1_u16): Likewise.
89         (vld1_u32): Likewise.
90         (vld1q_p8): Likewise.
91         (vld1q_p16): Likewise.
92         (vld1q_p64): Likewise.
93         (vld1q_u8): Likewise.
94         (vld1q_u16): Likewise.
95         (vld1q_u32): Likewise.
96         (vld1q_u64): Likewise.
97         (vst1_p8): Likewise.
98         (vst1_p16): Likewise.
99         (vst1_u8): Likewise.
100         (vst1_u16): Likewise.
101         (vst1_u32): Likewise.
102         (vst1q_p8): Likewise.
103         (vst1q_p16): Likewise.
104         (vst1q_p64): Likewise.
105         (vst1q_u8): Likewise.
106         (vst1q_u16): Likewise.
107         (vst1q_u32): Likewise.
108         (vst1q_u64): Likewise.
109         * config/aarch64/iterators.md (VALLP_NO_DI): New iterator.
111 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
113         * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
114         builtins for vector reduction.
115         * config/aarch64/arm_neon.h (vaddv_u8): Use type-qualified
116         builtin and remove casts.
117         (vaddv_u16): Likewise.
118         (vaddv_u32): Likewise.
119         (vaddvq_u8): Likewise.
120         (vaddvq_u16): Likewise.
121         (vaddvq_u32): Likewise.
122         (vaddvq_u64): Likewise.
124 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
126         * config/aarch64/aarch64-simd-builtins.def:
127         * config/aarch64/arm_neon.h (vpaddq_u8): Use type-qualified
128         builtin and remove casts.
129         (vpaddq_u16): Likewise.
130         (vpaddq_u32): Likewise.
131         (vpaddq_u64): Likewise.
132         (vpadd_u8): Likewise.
133         (vpadd_u16): Likewise.
134         (vpadd_u32): Likewise.
135         (vpaddd_u64): Likewise.
137 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
139         * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
140         builtins for [r]subhn[2].
141         * config/aarch64/arm_neon.h (vsubhn_s16): Remove unnecessary
142         cast.
143         (vsubhn_s32): Likewise.
144         (vsubhn_s64): Likewise.
145         (vsubhn_u16): Use type-qualified builtin and remove casts.
146         (vsubhn_u32): Likewise.
147         (vsubhn_u64): Likewise.
148         (vrsubhn_s16): Remove unnecessary cast.
149         (vrsubhn_s32): Likewise.
150         (vrsubhn_s64): Likewise.
151         (vrsubhn_u16): Use type-qualified builtin and remove casts.
152         (vrsubhn_u32): Likewise.
153         (vrsubhn_u64): Likewise.
154         (vrsubhn_high_s16): Remove unnecessary cast.
155         (vrsubhn_high_s32): Likewise.
156         (vrsubhn_high_s64): Likewise.
157         (vrsubhn_high_u16): Use type-qualified builtin and remove
158         casts.
159         (vrsubhn_high_u32): Likewise.
160         (vrsubhn_high_u64): Likewise.
161         (vsubhn_high_s16): Remove unnecessary cast.
162         (vsubhn_high_s32): Likewise.
163         (vsubhn_high_s64): Likewise.
164         (vsubhn_high_u16): Use type-qualified builtin and remove
165         casts.
166         (vsubhn_high_u32): Likewise.
167         (vsubhn_high_u64): Likewise.
169 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
171         * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
172         builtins for [r]addhn[2].
173         * config/aarch64/arm_neon.h (vaddhn_s16): Remove unnecessary
174         cast.
175         (vaddhn_s32): Likewise.
176         (vaddhn_s64): Likewise.
177         (vaddhn_u16): Use type-qualified builtin and remove casts.
178         (vaddhn_u32): Likewise.
179         (vaddhn_u64): Likewise.
180         (vraddhn_s16): Remove unnecessary cast.
181         (vraddhn_s32): Likewise.
182         (vraddhn_s64): Likewise.
183         (vraddhn_u16): Use type-qualified builtin and remove casts.
184         (vraddhn_u32): Likewise.
185         (vraddhn_u64): Likewise.
186         (vaddhn_high_s16): Remove unnecessary cast.
187         (vaddhn_high_s32): Likewise.
188         (vaddhn_high_s64): Likewise.
189         (vaddhn_high_u16): Use type-qualified builtin and remove
190         casts.
191         (vaddhn_high_u32): Likewise.
192         (vaddhn_high_u64): Likewise.
193         (vraddhn_high_s16): Remove unnecessary cast.
194         (vraddhn_high_s32): Likewise.
195         (vraddhn_high_s64): Likewise.
196         (vraddhn_high_u16): Use type-qualified builtin and remove
197         casts.
198         (vraddhn_high_u32): Likewise.
199         (vraddhn_high_u64): Likewise.
201 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
203         * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
204         qualifiers in generator macros for uhsub builtins.
205         * config/aarch64/arm_neon.h (vhsub_s8): Remove unnecessary
206         cast.
207         (vhsub_s16): Likewise.
208         (vhsub_s32): Likewise.
209         (vhsub_u8): Use type-qualified builtin and remove casts.
210         (vhsub_u16): Likewise.
211         (vhsub_u32): Likewise.
212         (vhsubq_s8): Remove unnecessary cast.
213         (vhsubq_s16): Likewise.
214         (vhsubq_s32): Likewise.
215         (vhsubq_u8): Use type-qualified builtin and remove casts.
216         (vhsubq_u16): Likewise.
217         (vhsubq_u32): Likewise.
219 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
221         * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
222         qualifiers in generator macros for u[r]hadd builtins.
223         * config/aarch64/arm_neon.h (vhadd_s8): Remove unnecessary
224         cast.
225         (vhadd_s16): Likewise.
226         (vhadd_s32): Likewise.
227         (vhadd_u8): Use type-qualified builtin and remove casts.
228         (vhadd_u16): Likewise.
229         (vhadd_u32): Likewise.
230         (vhaddq_s8): Remove unnecessary cast.
231         (vhaddq_s16): Likewise.
232         (vhaddq_s32): Likewise.
233         (vhaddq_u8): Use type-qualified builtin and remove casts.
234         (vhaddq_u16): Likewise.
235         (vhaddq_u32): Likewise.
236         (vrhadd_s8): Remove unnecessary cast.
237         (vrhadd_s16): Likewise.
238         (vrhadd_s32): Likewise.
239         (vrhadd_u8): Use type-qualified builtin and remove casts.
240         (vrhadd_u16): Likewise.
241         (vrhadd_u32): Likewise.
242         (vrhaddq_s8): Remove unnecessary cast.
243         (vrhaddq_s16): Likewise.
244         (vrhaddq_s32): Likewise.
245         (vrhaddq_u8): Use type-wualified builtin and remove casts.
246         (vrhaddq_u16): Likewise.
247         (vrhaddq_u32): Likewise.
249 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
251         * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
252         qualifiers in generator macros for usub[lw][2] builtins.
253         * config/aarch64/arm_neon.h (vsubl_s8): Remove unnecessary
254         cast.
255         (vsubl_s16): Likewise.
256         (vsubl_s32): Likewise.
257         (vsubl_u8): Use type-qualified builtin and remove casts.
258         (vsubl_u16): Likewise.
259         (vsubl_u32): Likewise.
260         (vsubl_high_s8): Remove unnecessary cast.
261         (vsubl_high_s16): Likewise.
262         (vsubl_high_s32): Likewise.
263         (vsubl_high_u8): Use type-qualified builtin and remove casts.
264         (vsubl_high_u16): Likewise.
265         (vsubl_high_u32): Likewise.
266         (vsubw_s8): Remove unnecessary casts.
267         (vsubw_s16): Likewise.
268         (vsubw_s32): Likewise.
269         (vsubw_u8): Use type-qualified builtin and remove casts.
270         (vsubw_u16): Likewise.
271         (vsubw_u32): Likewise.
272         (vsubw_high_s8): Remove unnecessary cast.
273         (vsubw_high_s16): Likewise.
274         (vsubw_high_s32): Likewise.
275         (vsubw_high_u8): Use type-qualified builtin and remove casts.
276         (vsubw_high_u16): Likewise.
277         (vsubw_high_u32): Likewise.
279 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
281         * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
282         qualifiers in generator macros for uadd[lw][2] builtins.
283         * config/aarch64/arm_neon.h (vaddl_s8): Remove unnecessary
284         cast.
285         (vaddl_s16): Likewise.
286         (vaddl_s32): Likewise.
287         (vaddl_u8): Use type-qualified builtin and remove casts.
288         (vaddl_u16): Likewise.
289         (vaddl_u32): Likewise.
290         (vaddl_high_s8): Remove unnecessary cast.
291         (vaddl_high_s16): Likewise.
292         (vaddl_high_s32): Likewise.
293         (vaddl_high_u8): Use type-qualified builtin and remove casts.
294         (vaddl_high_u16): Likewise.
295         (vaddl_high_u32): Likewise.
296         (vaddw_s8): Remove unnecessary cast.
297         (vaddw_s16): Likewise.
298         (vaddw_s32): Likewise.
299         (vaddw_u8): Use type-qualified builtin and remove casts.
300         (vaddw_u16): Likewise.
301         (vaddw_u32): Likewise.
302         (vaddw_high_s8): Remove unnecessary cast.
303         (vaddw_high_s16): Likewise.
304         (vaddw_high_s32): Likewise.
305         (vaddw_high_u8): Use type-qualified builtin and remove casts.
306         (vaddw_high_u16): Likewise.
307         (vaddw_high_u32): Likewise.
309 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
311         * config/aarch64/aarch64-simd-builtins.def: Declare type-
312         qualified builtins for [R]SHRN[2].
313         * config/aarch64/arm_neon.h (vshrn_n_u16): Use type-qualified
314         builtin and remove casts.
315         (vshrn_n_u32): Likewise.
316         (vshrn_n_u64): Likewise.
317         (vrshrn_high_n_u16): Likewise.
318         (vrshrn_high_n_u32): Likewise.
319         (vrshrn_high_n_u64): Likewise.
320         (vrshrn_n_u16): Likewise.
321         (vrshrn_n_u32): Likewise.
322         (vrshrn_n_u64): Likewise.
323         (vshrn_high_n_u16): Likewise.
324         (vshrn_high_n_u32): Likewise.
325         (vshrn_high_n_u64): Likewise.
327 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
329         * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
330         type-qualified builtins for XTN[2].
331         * config/aarch64/arm_neon.h (vmovn_high_u16): Use type-
332         qualified builtin and remove casts.
333         (vmovn_high_u32): Likewise.
334         (vmovn_high_u64): Likewise.
335         (vmovn_u16): Likewise.
336         (vmovn_u32): Likewise.
337         (vmovn_u64): Likewise.
339 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
341         * config/aarch64/aarch64-simd-builtins.def: Use poly type
342         qualifier in builtin generator macros.
343         * config/aarch64/arm_neon.h (vmul_p8): Use type-qualified
344         builtin and remove casts.
345         (vmulq_p8): Likewise.
346         (vmull_high_p8): Likewise.
347         (vmull_p8): Likewise.
349 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
351         * config/aarch64/aarch64-simd-builtins.def: Declare type-
352         qualified builtin generators for unsigned MLA/MLS intrinsics.
353         * config/aarch64/arm_neon.h (vmla_n_u16): Use type-qualified
354         builtin.
355         (vmla_n_u32): Likewise.
356         (vmla_u8): Likewise.
357         (vmla_u16): Likewise.
358         (vmla_u32): Likewise.
359         (vmlaq_n_u16): Likewise.
360         (vmlaq_n_u32): Likewise.
361         (vmlaq_u8): Likewise.
362         (vmlaq_u16): Likewise.
363         (vmlaq_u32): Likewise.
364         (vmls_n_u16): Likewise.
365         (vmls_n_u32): Likewise.
366         (vmls_u8): Likewise.
367         (vmls_u16): Likewise.
368         (vmls_u32): Likewise.
369         (vmlsq_n_u16): Likewise.
370         (vmlsq_n_u32): Likewise.
371         (vmlsq_u8): Likewise.
372         (vmlsq_u16): Likewise.
373         (vmlsq_u32): Likewise.
375 2021-11-11  Jan Hubicka  <hubicka@ucw.cz>
377         * ipa-modref.c (modref_summary::useful_p): Check also for side-effects
378         with looping const/pure.
379         (modref_summary_lto::useful_p): Likewise.
380         (merge_call_side_effects): Merge side effects before early exit
381         for pure/const.
382         (process_fnspec): Also handle pure functions.
383         (analyze_call): Do not early exit on looping pure const.
384         (propagate_unknown_call): Also handle nontrivial SCC as side-effect.
385         (modref_propagate_in_scc): Update.
387 2021-11-11  Richard Biener  <rguenther@suse.de>
389         PR tree-optimization/103190
390         * tree-ssa-reassoc.c (insert_stmt_after): Only assert on asm goto.
392 2021-11-11  Aldy Hernandez  <aldyh@redhat.com>
394         * gimple-range-path.cc (path_range_query::add_copies_to_imports):
395         Rename to...
396         (path_range_query::compute_imports): ...this.  Adapt it so it can
397         be passed the imports bitmap instead of working on m_imports.
398         (path_range_query::compute_ranges): Call compute_imports in all
399         cases unless an imports bitmap is passed.
400         * gimple-range-path.h (path_range_query::compute_imports): New.
401         (path_range_query::add_copies_to_imports): Remove.
402         * tree-ssa-threadbackward.c (back_threader::resolve_def): Remove.
403         (back_threader::find_paths_to_names): Inline resolve_def.
404         (back_threader::find_paths): Call compute_imports.
405         (back_threader::resolve_phi): Adjust comment.
407 2021-11-11  Richard Biener  <rguenther@suse.de>
409         PR tree-optimization/103188
410         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
411         Remove query parameter, split out check for size
412         optimization.
413         (ch_base::m_ranger, cb_base::m_query): Remove.
414         (ch_base::copy_headers): Split processing loop into
415         analysis around which we allocate and use ranger and
416         transform where we do not.
417         (pass_ch::execute): Do not allocate/free ranger here.
418         (pass_ch_vect::execute): Likewise.
420 2021-11-11  Jan Hubicka  <hubicka@ucw.cz>
422         * ipa-pure-const.c (propagate_pure_const): Self recursion is
423         a side effects.
425 2021-11-11  Jan Hubicka  <hubicka@ucw.cz>
427         * cgraph.c (set_noreturn_flag_1): New function.
428         (cgraph_node::set_noreturn_flag): New member function
429         * cgraph.h (cgraph_node::set_noreturn_flags): Declare.
430         * ipa-pure-const.c (pass_local_pure_const::execute): Use it.
432 2021-11-11  Aldy Hernandez  <aldyh@redhat.com>
433             Richard Biener  <rguenther@suse.de>
435         * tree-ssa-loop-ch.c (entry_loop_condition_is_static): Resolve
436         statically to the edge remaining in the loop.
438 2021-11-11  Richard Biener  <rguenther@suse.de>
440         PR middle-end/103181
441         * tree-eh.c (operation_could_trap_helper_p): Properly
442         check vector constants for a zero element for integer
443         division.  Separate floating point and integer division code.
445 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
447         PR debug/101378
448         * dwarf2out.c (field_byte_offset): Do the PCC_BITFIELD_TYPE_MATTERS
449         handling only for DECL_BIT_FIELD_TYPE decls.
451 2021-11-11  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
453         PR target/102376
454         * config/aarch64/aarch64.c (aarch64_process_target_attr): Check if
455         token is arch extension without leading '+' and emit appropriate
456         diagnostic for the same.
458 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
460         * tree.h (OMP_CLAUSE_NUM_TEAMS_EXPR): Rename to ...
461         (OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR): ... this.
462         (OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR): Define.
463         * tree.c (omp_clause_num_ops): Increase num ops for
464         OMP_CLAUSE_NUM_TEAMS to 2.
465         * tree-pretty-print.c (dump_omp_clause): Print optional lower bound
466         for OMP_CLAUSE_NUM_TEAMS.
467         * gimplify.c (gimplify_scan_omp_clauses): Gimplify
468         OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR if non-NULL.
469         (optimize_target_teams): Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR instead
470         of OMP_CLAUSE_NUM_TEAMS_EXPR.  Handle OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR.
471         * omp-low.c (lower_omp_teams): Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR
472         instead of OMP_CLAUSE_NUM_TEAMS_EXPR.
473         * omp-expand.c (expand_teams_call, get_target_arguments): Likewise.
475 2021-11-11  Richard Biener  <rguenther@suse.de>
477         * cfganal.c (find_pdom): Remove.
478         (control_dependences::find_control_dependence): Remove
479         special-casing of entry block, call get_immediate_dominator
480         directly.
481         * gimple-predicate-analysis.cc (find_pdom): Remove.
482         (find_dom): Likewise.
483         (find_control_equiv_block): Call get_immediate_dominator
484         directly.
485         (compute_control_dep_chain): Likewise.
486         (predicate::init_from_phi_def): Likewise.
488 2021-11-11  Richard Biener  <rguenther@suse.de>
490         * cfganal.h (control_dependences::control_dependence_map):
491         Embed bitmap_head.
492         (control_dependences::m_bitmaps): New.
493         * cfganal.c (control_dependences::set_control_dependence_map_bit):
494         Adjust.
495         (control_dependences::clear_control_dependence_bitmap):
496         Likewise.
497         (control_dependences::find_control_dependence): Do not
498         find_edge for the abnormal edge test.
499         (control_dependences::control_dependences): Instead do not
500         add abnormal edges to the edge list.  Adjust.
501         (control_dependences::~control_dependences): Likewise.
502         (control_dependences::get_edges_dependent_on): Likewise.
503         * function-tests.c: Include bitmap.h.
505 2021-11-11  Kewen Lin  <linkw@linux.ibm.com>
507         * doc/invoke.texi: Change references to "future cpu" to "power10",
508         "-mcpu=future" to "-mcpu=power10".  Adjust words for float128.
510 2021-11-11  Cui,Lili  <lili.cui@intel.com>
512         * config/i386/i386-options.c (m_CORE_AVX2): Remove Alderlake
513         from m_CORE_AVX2.
514         (processor_cost_table): Use alderlake_cost for Alderlake.
515         * config/i386/i386.c (ix86_sched_init_global): Handle Alderlake.
516         * config/i386/x86-tune-costs.h (struct processor_costs): Add alderlake
517         cost.
518         * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Alderlake
519         issue rate to 4.
520         (ix86_adjust_cost): Handle Alderlake.
521         * config/i386/x86-tune.def (X86_TUNE_SCHEDULE): Enable for Alderlake.
522         (X86_TUNE_PARTIAL_REG_DEPENDENCY): Likewise.
523         (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY): Likewise.
524         (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): Likewise.
525         (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
526         (X86_TUNE_MEMORY_MISMATCH_STALL): Likewise.
527         (X86_TUNE_USE_LEAVE): Likewise.
528         (X86_TUNE_PUSH_MEMORY): Likewise.
529         (X86_TUNE_USE_INCDEC): Likewise.
530         (X86_TUNE_INTEGER_DFMODE_MOVES): Likewise.
531         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
532         (X86_TUNE_USE_SAHF): Likewise.
533         (X86_TUNE_USE_BT): Likewise.
534         (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
535         (X86_TUNE_ONE_IF_CONV_INSN): Likewise.
536         (X86_TUNE_AVOID_MFENCE): Likewise.
537         (X86_TUNE_USE_SIMODE_FIOP): Likewise.
538         (X86_TUNE_EXT_80387_CONSTANTS): Likewise.
539         (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Likewise.
540         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
541         (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
542         (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
543         (X86_TUNE_AVOID_4BYTE_PREFIXES): Likewise.
544         (X86_TUNE_USE_GATHER): Disable for Alderlake.
545         (X86_TUNE_AVX256_MOVE_BY_PIECES): Likewise.
546         (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
548 2021-11-11  liuhongt  <hongtao.liu@intel.com>
550         PR target/103151
551         * config/i386/sse.md (V_128_256): Extend to V8HF/V16HF.
552         (avxsizesuffix): Ditto.
554 2021-11-11  Kito Cheng  <kito.cheng@sifive.com>
556         * common/config/riscv/riscv-common.c (riscv_subset_list::to_string): Fix
557         wrong marco checking.
559 2021-11-10  Aldy Hernandez  <aldyh@redhat.com>
561         PR tree-optimization/102906
562         * tree-ssa-loop-ch.c (entry_loop_condition_is_static): New.
563         (should_duplicate_loop_header_p): Call entry_loop_condition_is_static.
564         (class ch_base): Add m_ranger and m_query.
565         (ch_base::copy_headers): Pass m_query to
566         entry_loop_condition_is_static.
567         (pass_ch::execute): Allocate and deallocate m_ranger and
568         m_query.
569         (pass_ch_vect::execute): Same.
571 2021-11-10  Andrew Pinski  <apinski@marvell.com>
573         PR target/103170
574         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>):
575         Use vwcore iterator for the r constraint output string.
577 2021-11-10  qing zhao  <qing.zhao@oracle.com>
579         * internal-fn.c (expand_DEFERRED_INIT): Apply pattern initialization
580         only when have_insn_for return true for the mode. Fix a memory leak.
582 2021-11-10  Christophe Lyon  <christophe.lyon@foss.st.com>
584         * config/arm/arm.c (cortexa9_extra_costs, cortexa8_extra_costs,
585         cortexa5_extra_costs, cortexa7_extra_costs,
586         cortexa12_extra_costs, cortexa15_extra_costs, v7m_extra_costs):
587         Initialize movi, dup and extract costing fields.
589 2021-11-10  Aldy Hernandez  <aldyh@redhat.com>
591         * gimple-range-path.cc (path_range_query::path_range_query): Do
592         not init m_path.
593         (path_range_query::dump): Change m_path uses to non-pointer.
594         (path_range_query::defined_outside_path):  Same.
595         (path_range_query::set_path): Same.
596         (path_range_query::add_copies_to_imports): Same.
597         (path_range_query::range_of_stmt): Same.
598         (path_range_query::compute_outgoing_relations): Same.
599         (path_range_query::compute_ranges): Imports are now optional.
600         Implement overload that takes an edge.
601         * gimple-range-path.h (class path_range_query): Make imports
602         optional for compute_ranges.  Add compute_ranges(edge) overload.
603         Make m_path an auto_vec instead of a pointer and adjust
604         accordingly.
606 2021-11-10  Tamar Christina  <tamar.christina@arm.com>
608         * tree-vectorizer.h (struct scalar_cond_masked_key): Add inverted_p.
609         (default_hash_traits<scalar_conf_masked_key>): Likewise.
610         * tree-vect-stmts.c (vectorizable_condition): Check if inverse of mask
611         is live.
612         * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
613         Register mask inverses.
615 2021-11-10  Tamar Christina  <tamar.christina@arm.com>
617         * tree-vectorizer.c (vectorize_loops): Do local CSE through RPVN upon
618         successful vectorization.
620 2021-11-10  Andrew MacLeod  <amacleod@redhat.com>
622         * gimple-range-cache.cc (sbr_vector::grow): New.
623         (sbr_vector::set_bb_range): Call grow.
624         (sbr_vector::get_bb_range): Same.
625         (sbr_vector::bb_range_p): Remove assert.
627 2021-11-10  Tamar Christina  <tamar.christina@arm.com>
629         * config/aarch64/aarch64-simd.md (*aarch64_topbits_shuffle<mode>_le
630         ,*aarch64_topbits_shuffle<mode>_be): Remove.
632 2021-11-10  Jan Hubicka  <jh@suse.cz>
634         * ipa-modref.c: Include tree-eh.h
635         (modref_summary::modref_summary): Initialize side_effects.
636         (struct modref_summary_lto): New bool field side_effects.
637         (modref_summary_lto::modref_summary_lto): Initialize side_effects.
638         (modref_summary::dump): Dump side_effects.
639         (modref_summary_lto::dump): Dump side_effects.
640         (merge_call_side_effects): Merge side effects.
641         (process_fnspec): Calls to non-const/pure or looping
642         function is a side effect.
643         (analyze_call): Self-recursion is a side-effect; handle
644         special builtins.
645         (analyze_load): Watch for volatile and throwing memory.
646         (analyze_store): Likewise.
647         (analyze_stmt): Watch for volatitle asm.
648         (analyze_function): Handle side_effects.
649         (modref_summaries::duplicate): Duplicate side_effects.
650         (modref_summaries_lto::duplicate): Likewise.
651         (modref_write): Stream side_effects.
652         (read_section): Likewise.
653         (update_signature): Update.
654         (propagate_unknown_call): Handle side_effects.
655         (modref_propagate_in_scc): Likewise.
656         * ipa-modref.h (struct modref_summary): Add side_effects.
657         * ipa-pure-const.c (special_builtin_state): Rename to ...
658         (builtin_safe_for_const_function_p): ... this one.
659         (check_call): Update.
660         (finite_function_p): Break out from ...
661         (propagate_pure_const): ... here
662         * ipa-utils.h (finite_function): Declare.
664 2021-11-10  Lucas A. M. Magalhães  <lamm@linux.ibm.com>
666         * config.gcc (powerpc*-*-*): Remove -rpath from
667         --with-advance-toolchain.
669 2021-11-10  Marek Polacek  <polacek@redhat.com>
671         PR c++/101940
672         * attribs.c (struct scoped_attributes): Add a bool member.
673         (lookup_scoped_attribute_spec): Forward declare.
674         (register_scoped_attributes): New bool parameter, defaulted to
675         false.  Use it.
676         (handle_ignored_attributes_option): New function.
677         (free_attr_data): New function.
678         (init_attributes): Call handle_ignored_attributes_option.
679         (attr_namespace_ignored_p): New function.
680         (decl_attributes): Check attr_namespace_ignored_p before
681         warning.
682         * attribs.h (free_attr_data): Declare.
683         (register_scoped_attributes): Adjust declaration.
684         (handle_ignored_attributes_option): Declare.
685         (canonicalize_attr_name): New function template.
686         (canonicalize_attr_name): Use it.
687         * common.opt (Wattributes=): New option with a variable.
688         * doc/extend.texi: Document #pragma GCC diagnostic ignored_attributes.
689         * doc/invoke.texi: Document -Wno-attributes=.
690         * opts.c (common_handle_option) <case OPT_Wattributes_>: Handle.
691         * plugin.h (register_scoped_attributes): Adjust declaration.
692         * toplev.c (compile_file): Call free_attr_data.
694 2021-11-10  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
696         * config/arm/arm-cpus.in (cortex-a710): New CPU.
697         * config/arm/arm-tables.opt: Regenerate.
698         * config/arm/arm-tune.md: Regenerate.
699         * doc/invoke.texi: Update docs.
701 2021-11-10  Andre Vieira  <andre.simoesdiasvieira@arm.com>
703         * config/aarch64/aarch64-builtins.c
704         (aarch64_general_gimple_fold_builtin): Mark argument as unused.
706 2021-11-10  Martin Liska  <mliska@suse.cz>
708         * lto-wrapper.c (merge_and_complain): Make the first argument
709         a reference type.
711 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
713         * config/aarch64/iterators.md (optab): Use fmax_nan instead of
714         smax_nan and fmin_nan instead of smin_nan.
715         (maxmin_uns): Rename to...
716         (fmaxmin): ...this and make the same changes.  Remove entries
717         unrelated to fmax* and fmin*.
718         * config/aarch64/aarch64.md (<maxmin_uns><mode>3): Rename to...
719         (<fmaxmin><mode>3): ...this.
720         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>):
721         Rename to...
722         (aarch64_<optab>p<mode>): ...this.
723         (<maxmin_uns><mode>3): Rename to...
724         (<fmaxmin><mode>3): ...this.
725         (reduc_<maxmin_uns>_scal_<mode>): Rename to...
726         (reduc_<optab>_scal_<mode>): ...this and update gen* call.
727         (aarch64_reduc_<maxmin_uns>_internal<mode>): Rename to...
728         (aarch64_reduc_<optab>_internal<mode>): ...this.
729         (aarch64_reduc_<maxmin_uns>_internalv2si): Rename to...
730         (aarch64_reduc_<optab>_internalv2si): ...this.
731         * config/aarch64/aarch64-sve.md (<maxmin_uns><mode>3): Rename to...
732         (<fmaxmin><mode>3): ...this.
733         * config/aarch64/aarch64-simd-builtins.def (smax_nan, smin_nan)
734         Rename to...
735         (fmax_nan, fmin_nan): ...this.
736         * config/aarch64/arm_neon.h (vmax_f32, vmax_f64, vmaxq_f32, vmaxq_f64)
737         (vmin_f32, vmin_f64, vminq_f32, vminq_f64, vmax_f16, vmaxq_f16)
738         (vmin_f16, vminq_f16): Update accordingly.
740 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
742         * tree-vectorizer.h (vector_costs::finish_cost): Take the
743         corresponding scalar costs as a parameter.
744         (finish_cost): Likewise.
745         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost)
746         (vect_estimate_min_profitable_iters): Update accordingly.
747         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Likewise.
748         * tree-vectorizer.c (vector_costs::finish_cost): Likewise.
749         * config/aarch64/aarch64.c (aarch64_vector_costs::finish_cost):
750         Likewise.
751         * config/rs6000/rs6000.c (rs6000_cost_data::finish_cost): Likewise.
753 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
755         * tree-vectorizer.h (_loop_vec_info::scalar_costs): New member
756         variable.
757         (_loop_vec_info::single_scalar_iteration_cost): Delete.
758         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Delete.
759         (vector_costs::total_cost): New function.
760         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
761         after above changes.
762         (_loop_vec_info::~_loop_vec_info): Delete scalar_costs.
763         (vect_compute_single_scalar_iteration_cost): Store the costs
764         in loop_vinfo->scalar_costs.
765         (vect_estimate_min_profitable_iters): Get the scalar cost from
766         loop_vinfo->scalar_costs.
768 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
770         * tree-vectorizer.h (vector_costs::better_main_loop_than_p)
771         (vector_costs::better_epilogue_loop_than_p)
772         (vector_costs::compare_inside_loop_cost)
773         (vector_costs::compare_outside_loop_cost): Likewise.
774         * tree-vectorizer.c (vector_costs::better_main_loop_than_p)
775         (vector_costs::better_epilogue_loop_than_p)
776         (vector_costs::compare_inside_loop_cost)
777         (vector_costs::compare_outside_loop_cost): New functions,
778         containing code moved from...
779         * tree-vect-loop.c (vect_better_loop_vinfo_p): ...here.
781 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
783         * tree-vectorizer.h (_loop_vec_info): Remove vec_outside_cost
784         and vec_inside_cost.
785         (vector_costs::outside_cost): New function.
786         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
787         after above.
788         (vect_estimate_min_profitable_iters): Likewise.
789         (vect_better_loop_vinfo_p): Get the inside and outside costs
790         from the loop_vec_infos' vector_costs.
792 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
794         * tree-vectorizer.h (vec_info::target_cost_data): Replace with...
795         (_loop_vec_info::vector_costs): ...this.
796         (LOOP_VINFO_TARGET_COST_DATA): Delete.
797         * tree-vectorizer.c (vec_info::vec_info): Remove target_cost_data
798         initialization.
799         (vec_info::~vec_info): Remove corresponding delete.
800         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
801         vector_costs to null.
802         (_loop_vec_info::~_loop_vec_info): Delete vector_costs.
803         (vect_analyze_loop_operations): Update after above changes.
804         (vect_analyze_loop_2): Likewise.
805         (vect_estimate_min_profitable_iters): Likewise.
806         * tree-vect-slp.c (vect_slp_analyze_operations): Likewise.
808 2021-11-10  Jan Hubicka  <hubicka@ucw.cz>
810         * tree-core.h (EAF_DIRECT): Remove.
811         (EAF_NOCLOBBER): Remove.
812         (EAF_UNUSED): Remove.
813         (EAF_NOESCAPE): Remove.
814         (EAF_NO_DIRECT_CLOBBER): New.
815         (EAF_NO_INDIRECT_CLOBBER): New.
816         (EAF_NODIRECTESCAPE): Remove.
817         (EAF_NO_DIRECT_ESCAPE): New.
818         (EAF_NO_INDIRECT_ESCAPE): New.
819         (EAF_NOT_RETURNED): Remove.
820         (EAF_NOT_RETURNED_INDIRECTLY): New.
821         (EAF_NOREAD): Remove.
822         (EAF_NO_DIRECT_READ): New.
823         (EAF_NO_INDIRECT_READ): New.
824         * gimple.c (gimple_call_arg_flags): Update for new flags.
825         (gimple_call_retslot_flags): Update for new flags.
826         * ipa-modref.c (dump_eaf_flags): Likewise.
827         (remove_useless_eaf_flags): Likewise.
828         (deref_flags): Likewise.
829         (modref_lattice::init): Likewise.
830         (modref_lattice::merge): Likewise.
831         (modref_lattice::merge_direct_load): Likewise.
832         (modref_lattice::merge_direct_store): Likewise.
833         (modref_eaf_analysis::merge_call_lhs_flags): Likewise.
834         (callee_to_caller_flags): Likewise.
835         (modref_eaf_analysis::analyze_ssa_name): Likewise.
836         (modref_eaf_analysis::propagate): Likewise.
837         (modref_merge_call_site_flags): Likewise.
838         * ipa-modref.h (interposable_eaf_flags): Likewise.
839         * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1) Likewise.
840         * tree-ssa-structalias.c (handle_call_arg): Likewise.
841         (handle_rhs_call): Likewise.
842         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Likewise.
844 2021-11-10  Tamar Christina  <tamar.christina@arm.com>
846         * tree-vect-slp-patterns.c (complex_mul_pattern::matches): Remove l1node.
848 2021-11-10  Andre Vieira  <andre.simoesdiasvieira@arm.com>
850         * config/aarch64/aarch64-builtins.c
851         (aarch64_general_gimple_fold_builtin): Change pointer alignment and
852         alias.
854 2021-11-10  Jan Hubicka  <jh@suse.cz>
856         * ipa-modref-tree.h (modref_tree::remap_params): Fix off-by-one error.
858 2021-11-10  H.J. Lu  <hongjiu.lu@intel.com>
859             Hongtao Liu  <hongtao.liu@intel.com>
861         PR middle-end/102566
862         * match.pd (nop_atomic_bit_test_and_p): New match.
863         * tree-ssa-ccp.c (convert_atomic_bit_not): New function.
864         (gimple_nop_atomic_bit_test_and_p): New prototype.
865         (optimize_atomic_bit_test_and): Transform equivalent, but slighly
866         different cases to their canonical forms.
868 2021-11-10  liuhongt  <hongtao.liu@intel.com>
870         PR tree-optimization/103126
871         * tree-vect-loop.c (neutral_op_for_reduction): Remove static.
872         * tree-vectorizer.h (neutral_op_for_reduction): Declare.
873         * tree-if-conv.c : Include tree-vectorizer.h.
874         (is_cond_scalar_reduction): Handle
875         BIT_XOR_EXPR/BIT_IOR_EXPR/BIT_AND_EXPR.
876         (convert_scalar_cond_reduction): Ditto.
878 2021-11-10  konglin1  <lingling.kong@intel.com>
880         * config/i386/sse.md (cmul<conj_op><mode>3): add new define_expand.
881         (cmla<conj_op><mode>4): Likewise
883 2021-11-10  Aldy Hernandez  <aldyh@redhat.com>
885         * tree-ssa-threadedge.c: Do not include
886         gimple-ssa-evrp-analyze.h.
887         * value-pointer-equiv.cc: Same.
889 2021-11-10  Aldy Hernandez  <aldyh@redhat.com>
891         * tree-ssa-threadbackward.c
892         (back_threader::maybe_register_path_dump): Abstract path dumping...
893         (dump_path): ...here.
894         (back_threader::resolve_phi): Call dump_path.
895         (debug): Same.
897 2021-11-10  konglin1  <lingling.kong@intel.com>
899         * config/i386/sse.md (fma_<complexpairopname>_<mode>_pair):
900         Add new define_insn.
901         (fma_<mode>_fmaddc_bcst): Add new define_insn_and_split.
902         (fma_<mode>_fcmaddc_bcst): Likewise
904 2021-11-10  liuhongt  <hongtao.liu@intel.com>
906         PR target/102464
907         * match.pd: Simplify (trunc)fmax/fmin((extend)a, (extend)b) to
908         MAX/MIN(a,b)
910 2021-11-10  Andrew Pinski  <apinski@marvell.com>
912         PR target/101529
913         * config/aarch64/aarch64.c (aarch64_evpc_ins): Don't use target
914         as an input, use original one.
916 2021-11-10  Sandra Loosemore  <sandra@codesourcery.com>
918         * config/nios2/nios2.c (nios2_can_inline_p): New.
919         (TARGET_CAN_INLINE_P): Define.
921 2021-11-09  Bill Schmidt  <wschmidt@linux.ibm.com>
923         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin):
924         Disable gimple fold for RS6000_BIF_{XVMINDP,XVMINSP,VMINFP} and
925         RS6000_BIF_{XVMAXDP,XVMAXSP,VMAXFP} when fast-math is not set.
926         (lxvrse_expand_builtin): Modify the expansion for sign extension.
927         All extensions are done within VSX registers.
929 2021-11-09  Andrew Pinski  <apinski@marvell.com>
931         PR tree-optimization/10352
932         * match.pd: Remove check of TYPE_PRECISION for
933         the a?0:pow2 case.
935 2021-11-09  Andrew MacLeod  <amacleod@redhat.com>
937         * function.c (allocate_struct_function): Don't set x_range_query.
938         * function.h (get_range_query): Move to value-query.h.
939         * gimple-range.cc (enable_ranger): Check that query is currently NULL.
940         (disable_ranger): Clear function current query field.
941         * value-query.cc (get_global_range_query): Relocate to:
942         * value-query.h (get_global_range_query): Here and inline.
943         (get_range_query): Relocate here from function.h.
945 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
947         * tree-ssa-threadbackward.c
948         (back_threader::maybe_register_path_dump): New.
949         (back_threader::maybe_register_path): Call maybe_register_path_dump.
951 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
953         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
954         Return NULL when unprofitable.
956 2021-11-09  Martin Jambor  <mjambor@suse.cz>
958         * tree.h (build_debug_expr_decl): Declare.
959         * tree.c (build_debug_expr_decl): New function.
960         * cfgexpand.c (avoid_deep_ter_for_debug): Use build_debug_expr_decl
961         instead of building a DEBUG_EXPR_DECL.
962         * ipa-param-manipulation.c
963         (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
964         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
965         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
966         * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
967         * tree-ssa-reassoc.c (make_new_ssa_for_def): Likewise.
969 2021-11-09  Bill Schmidt  <wschmidt@linux.ibm.com>
971         * config/rs6000/rs6000-call.c (rs6000_type_string): New function.
972         (def_builtin): Change debug formatting for easier parsing and
973         include more information.
974         (rs6000_init_builtins): Add dump of autogenerated builtins.
975         (altivec_init_builtins): Dump __builtin_altivec_mask_for_load for
976         completeness.
978 2021-11-09  Marek Polacek  <polacek@redhat.com>
980         * ipa-modref.c (analyze_parms): Fix a typo.
982 2021-11-09  Kito Cheng  <kito.cheng@sifive.com>
984         PR target/102957
985         * common/config/riscv/riscv-common.c (multi_letter_subset_rank): Remove
986         assertion for Z*-ext.
988 2021-11-09  Jan Hubicka  <hubicka@ucw.cz>
990         * ipa-modref.c (analyze_parms): Add past_flags, past_retslot_flags
991         and past_static_chain; merge past summary with current one.
992         (analyze_function): Update.
994 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
996         * doc/invoke.texi (Invoking GCC): Document --param=threader-debug.
998 2021-11-09  Martin Liska  <mliska@suse.cz>
1000         * print-rtl.c (rtx_writer::rtx_writer): Make the compilation
1001         conditional based on
1002         * print-rtl.h (class rtx_writer): Likewise.
1004 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
1006         * input.h (location_hash): Use 'BUILTINS_LOCATION' as spare value
1007         for 'Deleted'.  Turn into a '#define'.
1009 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
1011         * gimple-range-path.cc (path_range_query::dump): Clean up.
1012         (path_range_query::compute_ranges): Same.
1013         * value-relation.cc (path_oracle::dump): Same.
1015 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
1017         * dumpfile.c (dump_options): Remove TDF_THREADING entry.
1018         * dumpfile.h (enum dump_flag): Remove TDF_THREADING and adjust
1019         remaining entries.
1020         * flag-types.h (enum threader_debug): New.
1021         * gimple-range-path.cc (DEBUG_SOLVER): Use param_threader_debug.
1022         * params.opt: Add entry for --param=threader-debug=.
1024 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
1026         PR middle-end/101204
1027         PR other/103157
1028         * diagnostic-spec.h (typedef xint_hash_t): Turn into...
1029         (struct xint_hash_t): ... this.
1030         * doc/gty.texi: Update.
1032 2021-11-09  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
1034         * config/arm/arm-cpus.in (armv9): New define.
1035         (ARMv9a): New group.
1036         (armv9-a): New arch definition.
1037         * config/arm/arm-tables.opt: Regenerate.
1038         * config/arm/arm.h (BASE_ARCH_9A): New arch enum value.
1039         * config/arm/t-aprofile: Added armv9-a and armv9+simd.
1040         * config/arm/t-arm-elf: Added arm9-a, v9_fps and all_v9_archs
1041         to MULTILIB_MATCHES.
1042         * config/arm/t-multilib: Added v9_a_nosimd_variants and
1043         v9_a_simd_variants to MULTILIB_MATCHES.
1044         * doc/invoke.texi: Update docs.
1046 2021-11-09  Martin Jambor  <mjambor@suse.cz>
1048         PR ipa/103132
1049         * ipa-param-manipulation.c (replace_with_mapped_expr): Early
1050         return with error_mark_mode when part of expression is mapped to
1051         NULL.
1052         (ipa_param_body_adjustments::remap_with_debug_expressions): Set
1053         mapped value to NULL if walk_tree returns error_mark_mode.
1055 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
1057         * tree-ssa-strlen.c (compare_nonzero_chars): Pass statement
1058         context to ranger.
1059         (get_addr_stridx): Same.
1060         (get_stridx): Same.
1061         (get_range_strlen_dynamic): Same.
1062         (handle_builtin_strlen): Same.
1063         (handle_builtin_strchr): Same.
1064         (handle_builtin_strcpy): Same.
1065         (maybe_diag_stxncpy_trunc): Same.
1066         (handle_builtin_stxncpy_strncat): Same.
1067         (handle_builtin_memcpy): Same.
1068         (handle_builtin_strcat): Same.
1069         (handle_alloc_call): Same.
1070         (handle_builtin_memset): Same.
1071         (handle_builtin_string_cmp): Same.
1072         (handle_pointer_plus): Same.
1073         (count_nonzero_bytes_addr): Same.
1074         (count_nonzero_bytes): Same.
1075         (handle_store): Same.
1076         (fold_strstr_to_strncmp): Same.
1077         (handle_integral_assign): Same.
1078         (check_and_optimize_stmt): Same.
1079         (class strlen_dom_walker): Replace evrp with ranger.
1080         (strlen_dom_walker::before_dom_children): Remove evrp.
1081         (strlen_dom_walker::after_dom_children): Remove evrp.
1082         * gimple-ssa-warn-access.cc (maybe_check_access_sizes):
1083         Restrict sprintf output.
1085 2021-11-09  Martin Liska  <mliska@suse.cz>
1087         * genconditions.c (write_one_condition): Add const qualifier
1088         to pointer casting.
1090 2021-11-09  Jeff Law  <jeffreyalaw@gmail.com>
1092         * match.pd: New pattern to simplify (1 << n) & M ==/!= 0 for M
1093         being a power of 2.
1095 2021-11-08  Bill Schmidt  <wschmidt@linux.ibm.com>
1097         * config/rs6000/rs6000-builtin-new.def (VEC_INIT_V16QI): Use
1098         escape-newline support.
1099         (VEC_INIT_V4SI): Likewise.
1100         (VEC_INIT_V8HI): Likewise.
1101         (PACK_V1TI): Likewise.
1102         (DIVDEU): Likewise.
1103         (VFIRSTMISMATCHOREOSINDEX_V16QI): Likewise.
1104         (VFIRSTMISMATCHOREOSINDEX_V8HI): Likewise.
1105         (VFIRSTMISMATCHOREOSINDEX_V4SI): Likewise.
1106         (CMPRB2): Likewise.
1107         (VSTDCP): Likewise.
1108         (VSIEDP): Likewise.
1109         (FMAF128_ODD): Likewise.
1110         (VSCEQPUO): Likewise.
1111         (VSIEQP): Likewise.
1112         (VSIEQPF): Likewise.
1113         (VSTDCQP): Likewise.
1114         (PACK_TD): Likewise.
1115         (TABORTDC): Likewise.
1116         (TABORTDCI): Likewise.
1117         (SE_LXVRBX): Likewise.
1118         (SE_LXVRHX): Likewise.
1119         (SE_LXVRWX): Likewise.
1120         (SE_LXVRDX): Likewise.
1121         (VREPLACE_UN_UV2DI): Likewise.
1122         (VREPLACE_UN_UV4SI): Likewise.
1123         (VREPLACE_UN_V2DI): Likewise.
1124         (VREPLACE_ELT_UV2DI): Likewise.
1125         (VREPLACE_ELT_V2DI): Likewise.
1126         (ZE_LXVRBX): Likewise.
1127         (ZE_LXVRHX): Likewise.
1128         (ZE_LXVRWX): Likewise.
1129         (ZE_LXVRDX): Likewise.
1130         (CFUGED): Likewise.
1131         (CNTLZDM): Likewise.
1132         (CNTTZDM): Likewise.
1133         (PDEPD): Likewise.
1134         (PEXTD): Likewise.
1135         (PMXVBF16GER2): Likewise.
1136         (PMXVBF16GER2_INTERNAL): Likewise.
1137         (PMXVBF16GER2NN): Likewise.
1138         (PMXVBF16GER2NN_INTERNAL): Likewise.
1139         (PMXVBF16GER2NP): Likewise.
1140         (PMXVBF16GER2NP_INTERNAL): Likewise.
1141         (PMXVBF16GER2PN): Likewise.
1142         (PMXVBF16GER2PN_INTERNAL): Likewise.
1143         (PMXVBF16GER2PP): Likewise.
1144         (PMXVBF16GER2PP_INTERNAL): Likewise.
1145         (PMXVF16GER2): Likewise.
1146         (PMXVF16GER2_INTERNAL): Likewise.
1147         (PMXVF16GER2NN): Likewise.
1148         (PMXVF16GER2NN_INTERNAL): Likewise.
1149         (PMXVF16GER2NP): Likewise.
1150         (PMXVF16GER2NP_INTERNAL): Likewise.
1151         (PMXVF16GER2PN): Likewise.
1152         (PMXVF16GER2PN_INTERNAL): Likewise.
1153         (PMXVF16GER2PP): Likewise.
1154         (PMXVF16GER2PP_INTERNAL): Likewise.
1155         (PMXVF32GER_INTERNAL): Likewise.
1156         (PMXVF32GERNN): Likewise.
1157         (PMXVF32GERNN_INTERNAL): Likewise.
1158         (PMXVF32GERNP): Likewise.
1159         (PMXVF32GERNP_INTERNAL): Likewise.
1160         (PMXVF32GERPN): Likewise.
1161         (PMXVF32GERPN_INTERNAL): Likewise.
1162         (PMXVF32GERPP): Likewise.
1163         (PMXVF32GERPP_INTERNAL): Likewise.
1164         (PMXVF64GER): Likewise.
1165         (PMXVF64GER_INTERNAL): Likewise.
1166         (PMXVF64GERNN): Likewise.
1167         (PMXVF64GERNN_INTERNAL): Likewise.
1168         (PMXVF64GERNP): Likewise.
1169         (PMXVF64GERNP_INTERNAL): Likewise.
1170         (PMXVF64GERPN): Likewise.
1171         (PMXVF64GERPN_INTERNAL): Likewise.
1172         (PMXVF64GERPP): Likewise.
1173         (PMXVF64GERPP_INTERNAL): Likewise.
1174         (PMXVI16GER2): Likewise.
1175         (PMXVI16GER2_INTERNAL): Likewise.
1176         (PMXVI16GER2PP): Likewise.
1177         (PMXVI16GER2PP_INTERNAL): Likewise.
1178         (PMXVI16GER2S): Likewise.
1179         (PMXVI16GER2S_INTERNAL): Likewise.
1180         (PMXVI16GER2SPP): Likewise.
1181         (PMXVI16GER2SPP_INTERNAL): Likewise.
1182         (PMXVI4GER8): Likewise.
1183         (PMXVI4GER8_INTERNAL): Likewise.
1184         (PMXVI4GER8PP): Likewise.
1185         (PMXVI4GER8PP_INTERNAL): Likewise.
1186         (PMXVI8GER4): Likewise.
1187         (PMXVI8GER4_INTERNAL): Likewise.
1188         (PMXVI8GER4PP): Likewise.
1189         (PMXVI8GER4PP_INTERNAL): Likewise.
1190         (PMXVI8GER4SPP): Likewise.
1191         (PMXVI8GER4SPP_INTERNAL): Likewise.
1192         * config/rs6000/rs6000-gen-builtins.c (MAXLINES): New macro.
1193         (linebuf): Increase size.
1194         (lines): New variable.
1195         (lastline): Likewise.
1196         (real_line_pos): New function.
1197         (diag): Change signature.
1198         (bif_diag): Change signature; support escape-newline handling.
1199         (ovld_diag): Likewise.
1200         (fatal): Move earlier.
1201         (consume_whitespace): Adjust diag call.
1202         (advance_line): Add escape-newline handling; call fatal.
1203         (safe_inc_pos): Adjust diag call.
1204         (match_identifier): Likewise.
1205         (match_integer): Likewise.
1206         (match_to_right_bracket): Call fatal instead of diag; adjust diag
1207         call.
1208         (match_basetype): Adjust diag calls.
1209         (match_bracketed_pair): Likewise.
1210         (match_const_restriction): Likewise.
1211         (match_type): Likewise.
1212         (parse_args): Likewise.
1213         (parse_bif_attrs): Likewise.
1214         (complete_vector_type): Likewise.
1215         (complete_base_type): Likewise.
1216         (parse_prototype): Likewise.
1217         (parse_bif_entry): Likewise.
1218         (parse_bif_stanza): Likewise.
1219         (parse_ovld_entry): Likewise.
1220         (parse_ovld_stanza): Likewise.
1221         (main): Allocate buffers for lines[].
1223 2021-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1225         * config/i386/i386.c (legitimize_pic_address): Adjust comment and
1226         use the REG argument on the CM_LARGE_PIC code path as well.
1227         * config/i386/predicates.md (gotoff_operand): Do not treat VxWorks
1228         specially with the large code models.
1230 2021-11-08  Jan Hubicka  <hubicka@ucw.cz>
1232         * gimple.c (gimple_call_static_chain_flags): Revert the workaround
1233         allowing interposition since issues with binds_to_local_def were
1234         hopefully solved.
1236 2021-11-08  Andrew MacLeod  <amacleod@redhat.com>
1238         PR tree-optimization/103122
1239         * gimple-range.cc (gimple_ranger::range_of_expr): Request the cache
1240         entry with "calulate new values" set to false.
1242 2021-11-08  Jan Hubicka  <hubicka@ucw.cz>
1244         * builtins.c (is_simple_builtin): Add builitin_dwarf_cfa
1245         and builtin_return_address.
1246         (builtin_fnspec): Annotate builtin_return,
1247         bulitin_eh_pointer, builtin_eh_filter, builtin_unwind_resume,
1248         builtin_cxa_end_cleanup, builtin_eh_copy_values,
1249         builtin_frame_address, builtin_apply_args,
1250         builtin_asan_before_dynamic_init, builtin_asan_after_dynamic_init,
1251         builtin_prefetch, builtin_dwarf_cfa, builtin_return_addrss
1252         as ".c"
1253         * ipa-pure-const.c (special_builtin_state): Add builtin_dwarf_cfa
1254         and builtin_return_address.
1256 2021-11-08  Jan Hubicka  <hubicka@ucw.cz>
1258         PR tree-optimization/103177
1259         * passes.def: Move uncprop after pure/const and modref.
1261 2021-11-08  Martin Jambor  <mjambor@suse.cz>
1263         PR ipa/103099
1264         PR ipa/103107
1265         * tree-inline.c (remap_gimple_stmt): Unshare the expression without
1266         location before invoking remap_with_debug_expressions on it.
1267         * ipa-param-manipulation.c
1268         (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
1270 2021-11-08  David Edelsohn  <dje.gcc@gmail.com>
1272         * config/rs6000/vsx.md (vsx_splat_v4si_di): Revert "wa"
1273         constraint to "we".
1275 2021-11-08  Richard Biener  <rguenther@suse.de>
1277         * cfgloop.c (verify_loop_structure): Use a temporary BB flag
1278         instead of an sbitmap to cache irreducible state.
1280 2021-11-08  Aldy Hernandez  <aldyh@redhat.com>
1282         PR tree-optimization/103120
1283         * gimple-range-path.cc (path_range_query::range_defined_in_block):
1284         Bail if there's a cache entry.
1286 2021-11-08  Bill Schmidt  <wschmidt@linux.ibm.com>
1288         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Use
1289         rs6000_builtin_decls_x when appropriate.
1290         (add_condition_to_bb): Likewise.
1291         (rs6000_atomic_assign_expand_fenv): Likewise.
1293 2021-11-08  Bill Schmidt  <wschmidt@linux.ibm.com>
1295         * config/rs6000/rs6000-call.c (rs6000_new_builtin_decl): New function.
1296         (rs6000_builtin_decl): Call it.
1298 2021-11-08  Martin Liska  <mliska@suse.cz>
1300         * cgraph.c (cgraph_node::dump): Dump it from decl.
1302 2021-11-08  Martin Liska  <mliska@suse.cz>
1304         PR gcov-profile/100520
1305         * coverage.c (coverage_compute_profile_id): Strip .gk when
1306         compare debug is used.
1307         * system.h (endswith): New function.
1309 2021-11-08  Martin Liska  <mliska@suse.cz>
1311         * cgraph.c (cgraph_node::dump): Dump static_chain_decl.
1313 2021-11-08  Thomas Schwinge  <thomas@codesourcery.com>
1315         * config/rs6000/rbtree.c: Fix 'Copyright (C) 2020-21' into '2020-2021'
1316         * config/rs6000/rbtree.h: Likewise.
1317         * config/rs6000/rs6000-builtin-new.def: Likewise.
1318         * config/rs6000/rs6000-gen-builtins.c: Likewise.
1319         * config/rs6000/rs6000-overload.def: Likewise.
1321 2021-11-08  Richard Sandiford  <richard.sandiford@arm.com>
1323         * config/aarch64/aarch64.c (aarch64_ldn_stn_vectors): New function.
1324         (aarch64_address_cost): Use it instead of testing for CImode and
1325         XImode directly.
1327 2021-11-08  Richard Sandiford  <richard.sandiford@arm.com>
1329         * genmodes.c (emit_insn_modes_h): Define NUM_MODE_* macros.
1330         * expmed.h (NUM_MODE_INT): Delete in favor of genmodes definitions.
1331         (NUM_MODE_PARTIAL_INT, NUM_MODE_VECTOR_INT): Likewise.
1332         * real.h (real_format_for_mode): Use NUM_MODE_FLOAT and
1333         NUM_MODE_DECIMAL_FLOAT.
1334         (REAL_MODE_FORMAT): Likewise.
1336 2021-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1338         * tree-vect-loop.c (vect_better_loop_vinfo_p): Change how epilogue loop
1339         costs are compared.
1341 2021-11-08  Richard Biener  <rguenther@suse.de>
1343         * tree-vectorizer.h (vect_create_loop_vinfo): Add main_loop_info
1344         parameter.
1345         * tree-vect-loop.c (vect_create_loop_vinfo): Likewise.  Set
1346         LOOP_VINFO_ORIG_LOOP_INFO and conditionalize set of
1347         LOOP_VINFO_NITERS_ASSUMPTIONS.
1348         (vect_analyze_loop_1): Adjust.
1349         (vect_analyze_loop): Move loop constraint setting and
1350         SCEV/niter reset here from vect_create_loop_vinfo to perform
1351         it only once.
1352         (vect_analyze_loop_form): Move dumping of symbolic niters
1353         here from vect_create_loop_vinfo.
1355 2021-11-08  Jan Hubicka  <hubicka@ucw.cz>
1357         * ipa-modref-tree.h (enum modref_special_parms): New enum.
1358         (struct modref_access_node): update for special parms.
1359         (struct modref_ref_node): Likewise.
1360         (struct modref_parm_map): Likewise.
1361         (struct modref_tree): Likewise.
1362         * ipa-modref.c (dump_access): Likewise.
1363         (get_access): Detect static chain.
1364         (parm_map_for_arg): Take tree as arg instead of
1365         stmt and index.
1366         (merge_call_side_effects): Compute map for static chain.
1367         (process_fnspec): Update.
1368         (struct escape_point): Remove retslot_arg and static_chain_arg.
1369         (analyze_parms): Update.
1370         (compute_parm_map): Update.
1371         (propagate_unknown_call): Update.
1372         (modref_propagate_in_scc): Update.
1373         (modref_merge_call_site_flags): Update.
1374         (ipa_merge_modref_summary_after_inlining): Update.
1375         * tree-ssa-alias.c (modref_may_conflict): Handle static chain.
1376         * ipa-modref-tree.c (test_merge): Update.
1378 2021-11-08  Haochen Gui  <guihaoc@gcc.gnu.org>
1380         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Disable
1381         gimple fold for VSX_BUILTIN_XVMINDP, ALTIVEC_BUILTIN_VMINFP,
1382         VSX_BUILTIN_XVMAXDP, ALTIVEC_BUILTIN_VMAXFP when fast-math is not
1383         set.
1385 2021-11-08  liuhongt  <hongtao.liu@intel.com>
1387         PR tree-optimization/103077
1388         * doc/invoke.texi (Options That Control Optimization):
1389         Update documentation for -ftree-loop-vectorize and
1390         -ftree-slp-vectorize which are enabled by default at -02.
1392 2021-11-08  liuhongt  <hongtao.liu@intel.com>
1394         PR target/102464
1395         * match.pd (Simplifcation (trunc)copysign((extend)a, (extend)b)
1396         to .COPYSIGN (a, b)): Add !HONOR_SNANS.
1398 2021-11-08  liuhongt  <hongtao.liu@intel.com>
1400         PR target/102464
1401         * match.pd: Simplify
1402         (trunc)fma ((extend)a, (extend)b, (extend)c) to IFN_FMA (a, b,
1403         c) under flag_unsafe_math_optimizations.
1405 2021-11-07  Jan Hubicka  <hubicka@ucw.cz>
1407         PR ipa/103055
1408         * params.opt (modref-max-depth): Add range.
1409         (modref-max-adjustments): Fix range.
1411 2021-11-07  Aldy Hernandez  <aldyh@redhat.com>
1413         * tree-pass.h (make_pass_vrp_threader): Remove.
1414         * tree-ssa-threadbackward.c
1415         (back_threader_profitability::profitable_path_p): Remove
1416         ASSERT_EXPR references.
1417         * tree-ssa-threadedge.c (jt_state::register_equivs_stmt): Same.
1418         * tree-vrp.c (vrp_folder::simplify_casted_conds): Same.
1419         (execute_vrp): Same.
1420         (class hybrid_threader): Remove.
1421         (hybrid_threader::hybrid_threader): Remove.
1422         (hybrid_threader::~hybrid_threader): Remove.
1423         (hybrid_threader::before_dom_children): Remove.
1424         (hybrid_threader::after_dom_children): Remove.
1425         (execute_vrp_threader): Remove.
1426         (class pass_vrp_threader): Remove.
1427         (make_pass_vrp_threader): Remove.
1429 2021-11-07  Jan Hubicka  <hubicka@ucw.cz>
1431         * gimple.c (gimple_call_arg_flags): Use interposable_eaf_flags.
1432         (gimple_call_retslot_flags): Likewise.
1433         (gimple_call_static_chain_flags): Likewise.
1434         * ipa-modref.c (remove_useless_eaf_flags): Do not remove everything for
1435         NOVOPS.
1436         (modref_summary::useful_p): Likewise.
1437         (modref_summary_lto::useful_p): Likewise.
1438         (analyze_parms): Do not give up on NOVOPS.
1439         (analyze_function): When dumping report chnages in EAF flags
1440         between IPA and local pass.
1441         (modref_merge_call_site_flags): Compute implicit eaf flags
1442         based on callee ecf_flags and fnspec; if the function does not
1443         bind to current defs use interposable_eaf_flags.
1444         (modref_propagate_flags_in_scc): Update.
1445         * ipa-modref.h (interposable_eaf_flags): New function.
1447 2021-11-07  Bill Schmidt  <wschmidt@linux.ibm.com>
1449         * config/rs6000/rs6000-call.c (rs6000_expand_new_builtin): New
1450         forward decl.
1451         (rs6000_invalid_new_builtin): New function.
1452         (rs6000_expand_builtin): Call rs6000_expand_new_builtin.
1453         (rs6000_expand_ldst_mask): New function.
1454         (new_cpu_expand_builtin): Likewise.
1455         (elemrev_icode): Likewise.
1456         (ldv_expand_builtin): Likewise.
1457         (lxvrse_expand_builtin): Likewise.
1458         (lxvrze_expand_builtin): Likewise.
1459         (stv_expand_builtin): Likewise.
1460         (new_mma_expand_builtin): Likewise.
1461         (new_htm_spr_num): Likewise.
1462         (new_htm_expand_builtin): Likewise.
1463         (rs6000_expand_new_builtin): Likewise.
1464         (rs6000_init_builtins): Initialize altivec_builtin_mask_for_load.
1466 2021-11-07  Jan Hubicka  <hubicka@ucw.cz>
1468         * ipa-modref.c (modref_lattice): Add do_dataflow,
1469         changed and propagate_to fields.
1470         (modref_lattice::release): Free propagate_to
1471         (modref_lattice::merge): Do not give up early on unknown
1472         lattice values.
1473         (modref_lattice::merge_deref): Likewise.
1474         (modref_eaf_analysis): Update toplevel comment.
1475         (modref_eaf_analysis::analyze_ssa_name): Record postponned ssa names;
1476         do optimistic dataflow initialization.
1477         (modref_eaf_analysis::merge_with_ssa_name): Build dataflow graph.
1478         (modref_eaf_analysis::propagate): New member function.
1479         (analyze_parms): Update to new API of modref_eaf_analysis.
1481 2021-11-06  Jan Hubicka  <hubicka@ucw.cz>
1483         * cgraph.h (cgraph_node::can_be_discarded_p): Do not
1484         return true on functions from other partition.
1486 2021-11-06  David Edelsohn  <dje.gcc@gmail.com>
1488         * config/rs6000/vsx.md (vsx_splat_v4si): Change constraints to "wa".
1489         (vsx_splat_v4si_di): Change constraint to "wa".
1491 2021-11-06  Aldy Hernandez  <aldyh@redhat.com>
1493         PR tree-optimization/103061
1494         * value-relation.cc (path_oracle::path_oracle): Initialize
1495         m_killed_defs.
1496         (path_oracle::killing_def): Set m_killed_defs.
1497         (path_oracle::query_relation): Do not look at the root oracle for
1498         killed defs.
1499         * value-relation.h (class path_oracle): Add m_killed_defs.
1501 2021-11-06  Aldy Hernandez  <aldyh@redhat.com>
1503         * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
1504         Remove gotos and other cleanups.
1506 2021-11-05  Jan Hubicka  <hubicka@ucw.cz>
1508         PR ipa/103073
1509         * ipa-modref-tree.h (modref_tree::insert): Do nothing for
1510         paradoxical and zero sized accesses.
1512 2021-11-05  Jan Hubicka  <hubicka@ucw.cz>
1514         PR ipa/103082
1515         * ipa-modref-tree.h (struct modref_access_node): Avoid left shift
1516         of negative value
1518 2021-11-05  Iain Sandoe  <iain@sandoe.co.uk>
1520         * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Add LTRAMP
1521         to the list of symbol prefixes that must be made linker-
1522         visible.
1524 2021-11-05  Iain Sandoe  <iain@sandoe.co.uk>
1526         * config.host: Add support for aarch64-*-darwin.
1527         * config/aarch64/host-aarch64-darwin.c: New file.
1528         * config/aarch64/x-darwin: New file.
1530 2021-11-05  Andrew MacLeod  <amacleod@redhat.com>
1532         PR tree-optimization/103093
1533         * gimple-range-gori.cc (range_def_chain::get_imports): Remove assert.
1535 2021-11-05  Andrew MacLeod  <amacleod@redhat.com>
1537         PR tree-optimization/102943
1538         * gimple-range-cache.cc (class update_list): New.
1539         (update_list::add): Replace add_to_update.
1540         (update_list::pop): New.
1541         (ranger_cache::ranger_cache): Adjust.
1542         (ranger_cache::~ranger_cache): Adjust.
1543         (ranger_cache::add_to_update): Delete.
1544         (ranger_cache::propagate_cache): Adjust to new class.
1545         (ranger_cache::propagate_updated_value): Ditto.
1546         (ranger_cache::fill_block_cache): Ditto.
1547         * gimple-range-cache.h (class ranger_cache): Adjust to update class.
1549 2021-11-05  Richard Biener  <rguenther@suse.de>
1551         * tree-vect-loop.c (vect_analyze_loop): Remove obsolete
1552         comment and expand on another one.  Combine nested if.
1554 2021-11-05  John David Anglin  <danglin@gcc.gnu.org>
1556         PR libgomp/96661
1557         * config/pa/pa-modes.def: Add OImode integer type.
1558         * config/pa/pa.c (pa_scalar_mode_supported_p): Allow TImode
1559         for TARGET_64BIT.
1560         * config/pa/pa.h (MIN_UNITS_PER_WORD) Define to MIN_UNITS_PER_WORD
1561         to UNITS_PER_WORD if IN_LIBGCC2.
1562         * config/pa/pa.md (addti3, addvti3, subti3, subvti3, negti2,
1563         negvti2, ashlti3, shrpd_internal): New patterns.
1564         Change some multi instruction types to multi.
1566 2021-11-05  Jakub Jelinek  <jakub@redhat.com>
1568         PR bootstrap/100246
1569         * config/i386/i386.h
1570         (stringop_algs::stringop_strategy::stringop_strategy): Make the ctor
1571         constexpr.
1573 2021-11-05  Wilco Dijkstra  <wdijkstr@arm.com>
1575         PR target/103085
1576         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Strip the salt
1577         first.
1578         * config/aarch64/constraints.md: Support const in Usw.
1580 2021-11-05  John David Anglin  <danglin@gcc.gnu.org>
1582         * config/pa/pa.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2_DEBUG.
1583         * config/pa/pa64-hpux.h (PREFERRED_DEBUGGING_TYPE): Remove define.
1585 2021-11-05  Richard Biener  <rguenther@suse.de>
1587         * tree-vectorizer.h (vec_info_shared::n_stmts): Add.
1588         (LOOP_VINFO_N_STMTS): Likewise.
1589         (vec_info_for_bb): Remove unused function.
1590         * tree-vectorizer.c (vec_info_shared::vec_info_shared):
1591         Initialize n_stmts member.
1592         * tree-vect-loop.c: Remove INCLUDE_FUNCTIONAL.
1593         (vect_create_loop_vinfo): Do not set loop->aux.
1594         (vect_analyze_loop_2): Do not get n_stmts as argument,
1595         instead use LOOP_VINFO_N_STMTS.  Set LOOP_VINFO_VECTORIZABLE_P
1596         here.
1597         (vect_analyze_loop_1): Remove callback, get the mode iterator
1598         and autodetected_vector_mode as argument, advancing the
1599         iterator and initializing autodetected_vector_mode here.
1600         (vect_analyze_loop): Split analysis loop into two, first
1601         processing main loops only and then epilogues.
1603 2021-11-05  Martin Jambor  <mjambor@suse.cz>
1605         * ipa-prop.c (compute_complex_assign_jump_func): Remove
1606         unnecessary check for RECORD_TYPE.
1608 2021-11-05  Gerald Pfeifer  <gerald@pfeifer.com>
1610         * doc/install.texi2html: Do not generate old.html any longer.
1612 2021-11-05  Martin Liska  <mliska@suse.cz>
1614         PR debug/102955
1615         * opts.c (finish_options): Reset flag_gtoggle when it is used.
1617 2021-11-05  Jakub Jelinek  <jakub@redhat.com>
1619         PR debug/103046
1620         * dwarf2out.c (add_const_value_attribute): Add MODE argument, use it
1621         in CONST_WIDE_INT handling.  Adjust recursive calls.
1622         (add_location_or_const_value_attribute): Pass DECL_MODE (decl) to
1623         new add_const_value_attribute argument.
1624         (tree_add_const_value_attribute): Pass TYPE_MODE (type) to new
1625         add_const_value_attribute argument.
1627 2021-11-05  Rasmus Villemoes  <rasmus.villemoes@prevas.dk>
1629         * config/vx-common.h: Test value of TARGET_VXWORKS7 rather
1630         than definedness.
1632 2021-11-05  Richard Biener  <rguenther@suse.de>
1634         * tree-vectorizer.h (struct vect_loop_form_info): New.
1635         (vect_analyze_loop_form): Adjust.
1636         (vect_create_loop_vinfo): New.
1637         * tree-parloops.c (gather_scalar_reductions): Adjust for
1638         vect_analyze_loop_form API change.
1639         * tree-vect-loop.c: Include <functional>.
1640         (vect_analyze_loop_form_1): Rename to vect_analyze_loop_form,
1641         take struct vect_loop_form_info as output parameter and adjust.
1642         (vect_analyze_loop_form): Rename to vect_create_loop_vinfo and
1643         split out call to the original vect_analyze_loop_form_1.
1644         (vect_reanalyze_as_main_loop): Rename to...
1645         (vect_analyze_loop_1): ... this, factor out the call to
1646         vect_analyze_loop_form and generalize to be able to use it twice ...
1647         (vect_analyze_loop): ... here.  Perform vect_analyze_loop_form
1648         once only and here.
1650 2021-11-05  Xionghu Luo  <luoxhu@linux.ibm.com>
1652         PR target/102991
1653         * config/rs6000/fusion.md: Regenerate.
1654         * config/rs6000/genfusion.pl: Fix incorrect clobber constraint.
1656 2021-11-04  Andreas Krebbel  <krebbel@linux.ibm.com>
1658         * config/s390/s390.h (STACK_CHECK_MOVING_SP): New macro
1659         definition.
1661 2021-11-04  Tamar Christina  <tamar.christina@arm.com>
1663         * config/aarch64/aarch64-builtins.c
1664         (aarch64_general_gimple_fold_builtin): Add ashl, sshl, ushl, ashr,
1665         ashr_simd, lshr, lshr_simd.
1666         * config/aarch64/aarch64-simd-builtins.def (lshr): Use USHIFTIMM.
1667         * config/aarch64/arm_neon.h (vshr_n_u8, vshr_n_u16, vshr_n_u32,
1668         vshrq_n_u8, vshrq_n_u16, vshrq_n_u32, vshrq_n_u64): Fix type hack.
1670 2021-11-04  Tamar Christina  <tamar.christina@arm.com>
1672         * match.pd: New negate+shift pattern.
1674 2021-11-04  Andrew MacLeod  <amacleod@redhat.com>
1676         PR tree-optimization/103079
1677         * gimple-range-gori.cc (gimple_range_calc_op1): Treat undefined as
1678         varying.
1679         (gimple_range_calc_op2): Ditto.
1681 2021-11-04  Martin Jambor  <mjambor@suse.cz>
1683         PR ipa/93385
1684         * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
1685         members remap_with_debug_expressions, m_dead_ssa_debug_equiv,
1686         m_dead_stmt_debug_equiv and prepare_debug_expressions.  Added
1687         parameter to mark_dead_statements.
1688         * ipa-param-manipulation.c: Include tree-phinodes.h and cfgexpand.h.
1689         (ipa_param_body_adjustments::mark_dead_statements): New parameter
1690         debugstack, push into it all SSA names used in debug statements,
1691         produce m_dead_ssa_debug_equiv mapping for the removed param.
1692         (replace_with_mapped_expr): New function.
1693         (ipa_param_body_adjustments::remap_with_debug_expressions): Likewise.
1694         (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
1695         (ipa_param_body_adjustments::common_initialization): Gather and
1696         procecc SSA which will be removed but are in debug statements. Simplify.
1697         (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
1698         new members.
1699         * tree-inline.c (remap_gimple_stmt): Create a debug bind when possible
1700         when avoiding a copy of an unnecessary statement.  Remap removed SSA
1701         names in existing debug statements.
1702         (tree_function_versioning): Do not create DEBUG_EXPR_DECL for removed
1703         parameters if we have already done so.
1705 2021-11-04  Jan Hubicka  <hubicka@ucw.cz>
1707         PR ipa/103058
1708         * gimple.c (gimple_call_static_chain_flags): Handle case when
1709         nested function does not bind locally.
1711 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
1713         * config/aarch64/aarch64.c (aarch64_function_value): Generate
1714         a register rtx for Neon vector-tuple modes.
1715         (aarch64_layout_arg): Likewise.
1717 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
1719         * lower-subreg.c (simple_move): Prevent decomposition if
1720         modes are not tieable.
1722 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
1723             Richard Sandiford  <richard.sandiford@arm.com>
1725         * config/aarch64/aarch64-builtins.c (v2x8qi_UP): Define.
1726         (v2x4hi_UP): Likewise.
1727         (v2x4hf_UP): Likewise.
1728         (v2x4bf_UP): Likewise.
1729         (v2x2si_UP): Likewise.
1730         (v2x2sf_UP): Likewise.
1731         (v2x1di_UP): Likewise.
1732         (v2x1df_UP): Likewise.
1733         (v2x16qi_UP): Likewise.
1734         (v2x8hi_UP): Likewise.
1735         (v2x8hf_UP): Likewise.
1736         (v2x8bf_UP): Likewise.
1737         (v2x4si_UP): Likewise.
1738         (v2x4sf_UP): Likewise.
1739         (v2x2di_UP): Likewise.
1740         (v2x2df_UP): Likewise.
1741         (v3x8qi_UP): Likewise.
1742         (v3x4hi_UP): Likewise.
1743         (v3x4hf_UP): Likewise.
1744         (v3x4bf_UP): Likewise.
1745         (v3x2si_UP): Likewise.
1746         (v3x2sf_UP): Likewise.
1747         (v3x1di_UP): Likewise.
1748         (v3x1df_UP): Likewise.
1749         (v3x16qi_UP): Likewise.
1750         (v3x8hi_UP): Likewise.
1751         (v3x8hf_UP): Likewise.
1752         (v3x8bf_UP): Likewise.
1753         (v3x4si_UP): Likewise.
1754         (v3x4sf_UP): Likewise.
1755         (v3x2di_UP): Likewise.
1756         (v3x2df_UP): Likewise.
1757         (v4x8qi_UP): Likewise.
1758         (v4x4hi_UP): Likewise.
1759         (v4x4hf_UP): Likewise.
1760         (v4x4bf_UP): Likewise.
1761         (v4x2si_UP): Likewise.
1762         (v4x2sf_UP): Likewise.
1763         (v4x1di_UP): Likewise.
1764         (v4x1df_UP): Likewise.
1765         (v4x16qi_UP): Likewise.
1766         (v4x8hi_UP): Likewise.
1767         (v4x8hf_UP): Likewise.
1768         (v4x8bf_UP): Likewise.
1769         (v4x4si_UP): Likewise.
1770         (v4x4sf_UP): Likewise.
1771         (v4x2di_UP): Likewise.
1772         (v4x2df_UP): Likewise.
1773         (TYPES_GETREGP): Delete.
1774         (TYPES_SETREGP): Likewise.
1775         (TYPES_LOADSTRUCT_U): Define.
1776         (TYPES_LOADSTRUCT_P): Likewise.
1777         (TYPES_LOADSTRUCT_LANE_U): Likewise.
1778         (TYPES_LOADSTRUCT_LANE_P): Likewise.
1779         (TYPES_STORE1P): Move for consistency.
1780         (TYPES_STORESTRUCT_U): Define.
1781         (TYPES_STORESTRUCT_P): Likewise.
1782         (TYPES_STORESTRUCT_LANE_U): Likewise.
1783         (TYPES_STORESTRUCT_LANE_P): Likewise.
1784         (aarch64_simd_tuple_types): Define.
1785         (aarch64_lookup_simd_builtin_type): Handle tuple type lookup.
1786         (aarch64_init_simd_builtin_functions): Update frontend lookup
1787         for builtin functions after handling arm_neon.h pragma.
1788         (register_tuple_type): Manually set modes of single-integer
1789         tuple types. Record tuple types.
1790         * config/aarch64/aarch64-modes.def
1791         (ADV_SIMD_D_REG_STRUCT_MODES): Define D-register tuple modes.
1792         (ADV_SIMD_Q_REG_STRUCT_MODES): Define Q-register tuple modes.
1793         (SVE_MODES): Give single-vector modes priority over vector-
1794         tuple modes.
1795         (VECTOR_MODES_WITH_PREFIX): Set partial-vector mode order to
1796         be after all single-vector modes.
1797         * config/aarch64/aarch64-simd-builtins.def: Update builtin
1798         generator macros to reflect modifications to the backend
1799         patterns.
1800         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2<mode>):
1801         Use vector-tuple mode iterator and rename to...
1802         (aarch64_simd_ld2<vstruct_elt>): This.
1803         (aarch64_simd_ld2r<mode>): Use vector-tuple mode iterator and
1804         rename to...
1805         (aarch64_simd_ld2r<vstruct_elt>): This.
1806         (aarch64_vec_load_lanesoi_lane<mode>): Use vector-tuple mode
1807         iterator and rename to...
1808         (aarch64_vec_load_lanes<mode>_lane<vstruct_elt>): This.
1809         (vec_load_lanesoi<mode>): Use vector-tuple mode iterator and
1810         rename to...
1811         (vec_load_lanes<mode><vstruct_elt>): This.
1812         (aarch64_simd_st2<mode>): Use vector-tuple mode iterator and
1813         rename to...
1814         (aarch64_simd_st2<vstruct_elt>): This.
1815         (aarch64_vec_store_lanesoi_lane<mode>): Use vector-tuple mode
1816         iterator and rename to...
1817         (aarch64_vec_store_lanes<mode>_lane<vstruct_elt>): This.
1818         (vec_store_lanesoi<mode>): Use vector-tuple mode iterator and
1819         rename to...
1820         (vec_store_lanes<mode><vstruct_elt>): This.
1821         (aarch64_simd_ld3<mode>): Use vector-tuple mode iterator and
1822         rename to...
1823         (aarch64_simd_ld3<vstruct_elt>): This.
1824         (aarch64_simd_ld3r<mode>): Use vector-tuple mode iterator and
1825         rename to...
1826         (aarch64_simd_ld3r<vstruct_elt>): This.
1827         (aarch64_vec_load_lanesci_lane<mode>): Use vector-tuple mode
1828         iterator and rename to...
1829         (vec_load_lanesci<mode>): This.
1830         (aarch64_simd_st3<mode>): Use vector-tuple mode iterator and
1831         rename to...
1832         (aarch64_simd_st3<vstruct_elt>): This.
1833         (aarch64_vec_store_lanesci_lane<mode>): Use vector-tuple mode
1834         iterator and rename to...
1835         (vec_store_lanesci<mode>): This.
1836         (aarch64_simd_ld4<mode>): Use vector-tuple mode iterator and
1837         rename to...
1838         (aarch64_simd_ld4<vstruct_elt>): This.
1839         (aarch64_simd_ld4r<mode>): Use vector-tuple mode iterator and
1840         rename to...
1841         (aarch64_simd_ld4r<vstruct_elt>): This.
1842         (aarch64_vec_load_lanesxi_lane<mode>): Use vector-tuple mode
1843         iterator and rename to...
1844         (vec_load_lanesxi<mode>): This.
1845         (aarch64_simd_st4<mode>): Use vector-tuple mode iterator and
1846         rename to...
1847         (aarch64_simd_st4<vstruct_elt>): This.
1848         (aarch64_vec_store_lanesxi_lane<mode>): Use vector-tuple mode
1849         iterator and rename to...
1850         (vec_store_lanesxi<mode>): This.
1851         (mov<mode>): Define for Neon vector-tuple modes.
1852         (aarch64_ld1x3<VALLDIF:mode>): Use vector-tuple mode iterator
1853         and rename to...
1854         (aarch64_ld1x3<vstruct_elt>): This.
1855         (aarch64_ld1_x3_<mode>): Use vector-tuple mode iterator and
1856         rename to...
1857         (aarch64_ld1_x3_<vstruct_elt>): This.
1858         (aarch64_ld1x4<VALLDIF:mode>): Use vector-tuple mode iterator
1859         and rename to...
1860         (aarch64_ld1x4<vstruct_elt>): This.
1861         (aarch64_ld1_x4_<mode>): Use vector-tuple mode iterator and
1862         rename to...
1863         (aarch64_ld1_x4_<vstruct_elt>): This.
1864         (aarch64_st1x2<VALLDIF:mode>): Use vector-tuple mode iterator
1865         and rename to...
1866         (aarch64_st1x2<vstruct_elt>): This.
1867         (aarch64_st1_x2_<mode>): Use vector-tuple mode iterator and
1868         rename to...
1869         (aarch64_st1_x2_<vstruct_elt>): This.
1870         (aarch64_st1x3<VALLDIF:mode>): Use vector-tuple mode iterator
1871         and rename to...
1872         (aarch64_st1x3<vstruct_elt>): This.
1873         (aarch64_st1_x3_<mode>): Use vector-tuple mode iterator and
1874         rename to...
1875         (aarch64_st1_x3_<vstruct_elt>): This.
1876         (aarch64_st1x4<VALLDIF:mode>): Use vector-tuple mode iterator
1877         and rename to...
1878         (aarch64_st1x4<vstruct_elt>): This.
1879         (aarch64_st1_x4_<mode>): Use vector-tuple mode iterator and
1880         rename to...
1881         (aarch64_st1_x4_<vstruct_elt>): This.
1882         (*aarch64_mov<mode>): Define for vector-tuple modes.
1883         (*aarch64_be_mov<mode>): Likewise.
1884         (aarch64_ld<VSTRUCT:nregs>r<VALLDIF:mode>): Use vector-tuple
1885         mode iterator and rename to...
1886         (aarch64_ld<nregs>r<vstruct_elt>): This.
1887         (aarch64_ld2<mode>_dreg): Use vector-tuple mode iterator and
1888         rename to...
1889         (aarch64_ld2<vstruct_elt>_dreg): This.
1890         (aarch64_ld3<mode>_dreg): Use vector-tuple mode iterator and
1891         rename to...
1892         (aarch64_ld3<vstruct_elt>_dreg): This.
1893         (aarch64_ld4<mode>_dreg): Use vector-tuple mode iterator and
1894         rename to...
1895         (aarch64_ld4<vstruct_elt>_dreg): This.
1896         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Use vector-tuple mode
1897         iterator and rename to...
1898         (aarch64_ld<nregs><vstruct_elt>): Use vector-tuple mode
1899         iterator and rename to...
1900         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Use vector-tuple mode
1901         (aarch64_ld1x2<VQ:mode>): Delete.
1902         (aarch64_ld1x2<VDC:mode>): Use vector-tuple mode iterator and
1903         rename to...
1904         (aarch64_ld1x2<vstruct_elt>): This.
1905         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): Use vector-
1906         tuple mode iterator and rename to...
1907         (aarch64_ld<nregs>_lane<vstruct_elt>): This.
1908         (aarch64_get_dreg<VSTRUCT:mode><VDC:mode>): Delete.
1909         (aarch64_get_qreg<VSTRUCT:mode><VQ:mode>): Likewise.
1910         (aarch64_st2<mode>_dreg): Use vector-tuple mode iterator and
1911         rename to...
1912         (aarch64_st2<vstruct_elt>_dreg): This.
1913         (aarch64_st3<mode>_dreg): Use vector-tuple mode iterator and
1914         rename to...
1915         (aarch64_st3<vstruct_elt>_dreg): This.
1916         (aarch64_st4<mode>_dreg): Use vector-tuple mode iterator and
1917         rename to...
1918         (aarch64_st4<vstruct_elt>_dreg): This.
1919         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Use vector-tuple mode
1920         iterator and rename to...
1921         (aarch64_st<nregs><vstruct_elt>): This.
1922         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Use vector-tuple mode
1923         iterator and rename to aarch64_st<nregs><vstruct_elt>.
1924         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): Use vector-
1925         tuple mode iterator and rename to...
1926         (aarch64_st<nregs>_lane<vstruct_elt>): This.
1927         (aarch64_set_qreg<VSTRUCT:mode><VQ:mode>): Delete.
1928         (aarch64_simd_ld1<mode>_x2): Use vector-tuple mode iterator
1929         and rename to...
1930         (aarch64_simd_ld1<vstruct_elt>_x2): This.
1931         * config/aarch64/aarch64.c (aarch64_advsimd_struct_mode_p):
1932         Refactor to include new vector-tuple modes.
1933         (aarch64_classify_vector_mode): Add cases for new vector-
1934         tuple modes.
1935         (aarch64_advsimd_partial_struct_mode_p): Define.
1936         (aarch64_advsimd_full_struct_mode_p): Likewise.
1937         (aarch64_advsimd_vector_array_mode): Likewise.
1938         (aarch64_sve_data_mode): Change location in file.
1939         (aarch64_array_mode): Handle case of Neon vector-tuple modes.
1940         (aarch64_hard_regno_nregs): Handle case of partial Neon
1941         vector structures.
1942         (aarch64_classify_address): Refactor to include handling of
1943         Neon vector-tuple modes.
1944         (aarch64_print_operand): Print "d" for "%R" for a partial
1945         Neon vector structure.
1946         (aarch64_expand_vec_perm_1): Use new vector-tuple mode.
1947         (aarch64_modes_tieable_p): Prevent tieing Neon partial struct
1948         modes with scalar machines modes larger than 8 bytes.
1949         (aarch64_can_change_mode_class): Don't allow changes between
1950         partial and full Neon vector-structure modes.
1951         * config/aarch64/arm_neon.h (vst2_lane_f16): Use updated
1952         builtin and remove boiler-plate code for opaque mode.
1953         (vst2_lane_f32): Likewise.
1954         (vst2_lane_f64): Likewise.
1955         (vst2_lane_p8): Likewise.
1956         (vst2_lane_p16): Likewise.
1957         (vst2_lane_p64): Likewise.
1958         (vst2_lane_s8): Likewise.
1959         (vst2_lane_s16): Likewise.
1960         (vst2_lane_s32): Likewise.
1961         (vst2_lane_s64): Likewise.
1962         (vst2_lane_u8): Likewise.
1963         (vst2_lane_u16): Likewise.
1964         (vst2_lane_u32): Likewise.
1965         (vst2_lane_u64): Likewise.
1966         (vst2q_lane_f16): Likewise.
1967         (vst2q_lane_f32): Likewise.
1968         (vst2q_lane_f64): Likewise.
1969         (vst2q_lane_p8): Likewise.
1970         (vst2q_lane_p16): Likewise.
1971         (vst2q_lane_p64): Likewise.
1972         (vst2q_lane_s8): Likewise.
1973         (vst2q_lane_s16): Likewise.
1974         (vst2q_lane_s32): Likewise.
1975         (vst2q_lane_s64): Likewise.
1976         (vst2q_lane_u8): Likewise.
1977         (vst2q_lane_u16): Likewise.
1978         (vst2q_lane_u32): Likewise.
1979         (vst2q_lane_u64): Likewise.
1980         (vst3_lane_f16): Likewise.
1981         (vst3_lane_f32): Likewise.
1982         (vst3_lane_f64): Likewise.
1983         (vst3_lane_p8): Likewise.
1984         (vst3_lane_p16): Likewise.
1985         (vst3_lane_p64): Likewise.
1986         (vst3_lane_s8): Likewise.
1987         (vst3_lane_s16): Likewise.
1988         (vst3_lane_s32): Likewise.
1989         (vst3_lane_s64): Likewise.
1990         (vst3_lane_u8): Likewise.
1991         (vst3_lane_u16): Likewise.
1992         (vst3_lane_u32): Likewise.
1993         (vst3_lane_u64): Likewise.
1994         (vst3q_lane_f16): Likewise.
1995         (vst3q_lane_f32): Likewise.
1996         (vst3q_lane_f64): Likewise.
1997         (vst3q_lane_p8): Likewise.
1998         (vst3q_lane_p16): Likewise.
1999         (vst3q_lane_p64): Likewise.
2000         (vst3q_lane_s8): Likewise.
2001         (vst3q_lane_s16): Likewise.
2002         (vst3q_lane_s32): Likewise.
2003         (vst3q_lane_s64): Likewise.
2004         (vst3q_lane_u8): Likewise.
2005         (vst3q_lane_u16): Likewise.
2006         (vst3q_lane_u32): Likewise.
2007         (vst3q_lane_u64): Likewise.
2008         (vst4_lane_f16): Likewise.
2009         (vst4_lane_f32): Likewise.
2010         (vst4_lane_f64): Likewise.
2011         (vst4_lane_p8): Likewise.
2012         (vst4_lane_p16): Likewise.
2013         (vst4_lane_p64): Likewise.
2014         (vst4_lane_s8): Likewise.
2015         (vst4_lane_s16): Likewise.
2016         (vst4_lane_s32): Likewise.
2017         (vst4_lane_s64): Likewise.
2018         (vst4_lane_u8): Likewise.
2019         (vst4_lane_u16): Likewise.
2020         (vst4_lane_u32): Likewise.
2021         (vst4_lane_u64): Likewise.
2022         (vst4q_lane_f16): Likewise.
2023         (vst4q_lane_f32): Likewise.
2024         (vst4q_lane_f64): Likewise.
2025         (vst4q_lane_p8): Likewise.
2026         (vst4q_lane_p16): Likewise.
2027         (vst4q_lane_p64): Likewise.
2028         (vst4q_lane_s8): Likewise.
2029         (vst4q_lane_s16): Likewise.
2030         (vst4q_lane_s32): Likewise.
2031         (vst4q_lane_s64): Likewise.
2032         (vst4q_lane_u8): Likewise.
2033         (vst4q_lane_u16): Likewise.
2034         (vst4q_lane_u32): Likewise.
2035         (vst4q_lane_u64): Likewise.
2036         (vtbl3_s8): Likewise.
2037         (vtbl3_u8): Likewise.
2038         (vtbl3_p8): Likewise.
2039         (vtbl4_s8): Likewise.
2040         (vtbl4_u8): Likewise.
2041         (vtbl4_p8): Likewise.
2042         (vld1_u8_x3): Likewise.
2043         (vld1_s8_x3): Likewise.
2044         (vld1_u16_x3): Likewise.
2045         (vld1_s16_x3): Likewise.
2046         (vld1_u32_x3): Likewise.
2047         (vld1_s32_x3): Likewise.
2048         (vld1_u64_x3): Likewise.
2049         (vld1_s64_x3): Likewise.
2050         (vld1_f16_x3): Likewise.
2051         (vld1_f32_x3): Likewise.
2052         (vld1_f64_x3): Likewise.
2053         (vld1_p8_x3): Likewise.
2054         (vld1_p16_x3): Likewise.
2055         (vld1_p64_x3): Likewise.
2056         (vld1q_u8_x3): Likewise.
2057         (vld1q_s8_x3): Likewise.
2058         (vld1q_u16_x3): Likewise.
2059         (vld1q_s16_x3): Likewise.
2060         (vld1q_u32_x3): Likewise.
2061         (vld1q_s32_x3): Likewise.
2062         (vld1q_u64_x3): Likewise.
2063         (vld1q_s64_x3): Likewise.
2064         (vld1q_f16_x3): Likewise.
2065         (vld1q_f32_x3): Likewise.
2066         (vld1q_f64_x3): Likewise.
2067         (vld1q_p8_x3): Likewise.
2068         (vld1q_p16_x3): Likewise.
2069         (vld1q_p64_x3): Likewise.
2070         (vld1_u8_x2): Likewise.
2071         (vld1_s8_x2): Likewise.
2072         (vld1_u16_x2): Likewise.
2073         (vld1_s16_x2): Likewise.
2074         (vld1_u32_x2): Likewise.
2075         (vld1_s32_x2): Likewise.
2076         (vld1_u64_x2): Likewise.
2077         (vld1_s64_x2): Likewise.
2078         (vld1_f16_x2): Likewise.
2079         (vld1_f32_x2): Likewise.
2080         (vld1_f64_x2): Likewise.
2081         (vld1_p8_x2): Likewise.
2082         (vld1_p16_x2): Likewise.
2083         (vld1_p64_x2): Likewise.
2084         (vld1q_u8_x2): Likewise.
2085         (vld1q_s8_x2): Likewise.
2086         (vld1q_u16_x2): Likewise.
2087         (vld1q_s16_x2): Likewise.
2088         (vld1q_u32_x2): Likewise.
2089         (vld1q_s32_x2): Likewise.
2090         (vld1q_u64_x2): Likewise.
2091         (vld1q_s64_x2): Likewise.
2092         (vld1q_f16_x2): Likewise.
2093         (vld1q_f32_x2): Likewise.
2094         (vld1q_f64_x2): Likewise.
2095         (vld1q_p8_x2): Likewise.
2096         (vld1q_p16_x2): Likewise.
2097         (vld1q_p64_x2): Likewise.
2098         (vld1_s8_x4): Likewise.
2099         (vld1q_s8_x4): Likewise.
2100         (vld1_s16_x4): Likewise.
2101         (vld1q_s16_x4): Likewise.
2102         (vld1_s32_x4): Likewise.
2103         (vld1q_s32_x4): Likewise.
2104         (vld1_u8_x4): Likewise.
2105         (vld1q_u8_x4): Likewise.
2106         (vld1_u16_x4): Likewise.
2107         (vld1q_u16_x4): Likewise.
2108         (vld1_u32_x4): Likewise.
2109         (vld1q_u32_x4): Likewise.
2110         (vld1_f16_x4): Likewise.
2111         (vld1q_f16_x4): Likewise.
2112         (vld1_f32_x4): Likewise.
2113         (vld1q_f32_x4): Likewise.
2114         (vld1_p8_x4): Likewise.
2115         (vld1q_p8_x4): Likewise.
2116         (vld1_p16_x4): Likewise.
2117         (vld1q_p16_x4): Likewise.
2118         (vld1_s64_x4): Likewise.
2119         (vld1_u64_x4): Likewise.
2120         (vld1_p64_x4): Likewise.
2121         (vld1q_s64_x4): Likewise.
2122         (vld1q_u64_x4): Likewise.
2123         (vld1q_p64_x4): Likewise.
2124         (vld1_f64_x4): Likewise.
2125         (vld1q_f64_x4): Likewise.
2126         (vld2_s64): Likewise.
2127         (vld2_u64): Likewise.
2128         (vld2_f64): Likewise.
2129         (vld2_s8): Likewise.
2130         (vld2_p8): Likewise.
2131         (vld2_p64): Likewise.
2132         (vld2_s16): Likewise.
2133         (vld2_p16): Likewise.
2134         (vld2_s32): Likewise.
2135         (vld2_u8): Likewise.
2136         (vld2_u16): Likewise.
2137         (vld2_u32): Likewise.
2138         (vld2_f16): Likewise.
2139         (vld2_f32): Likewise.
2140         (vld2q_s8): Likewise.
2141         (vld2q_p8): Likewise.
2142         (vld2q_s16): Likewise.
2143         (vld2q_p16): Likewise.
2144         (vld2q_p64): Likewise.
2145         (vld2q_s32): Likewise.
2146         (vld2q_s64): Likewise.
2147         (vld2q_u8): Likewise.
2148         (vld2q_u16): Likewise.
2149         (vld2q_u32): Likewise.
2150         (vld2q_u64): Likewise.
2151         (vld2q_f16): Likewise.
2152         (vld2q_f32): Likewise.
2153         (vld2q_f64): Likewise.
2154         (vld3_s64): Likewise.
2155         (vld3_u64): Likewise.
2156         (vld3_f64): Likewise.
2157         (vld3_s8): Likewise.
2158         (vld3_p8): Likewise.
2159         (vld3_s16): Likewise.
2160         (vld3_p16): Likewise.
2161         (vld3_s32): Likewise.
2162         (vld3_u8): Likewise.
2163         (vld3_u16): Likewise.
2164         (vld3_u32): Likewise.
2165         (vld3_f16): Likewise.
2166         (vld3_f32): Likewise.
2167         (vld3_p64): Likewise.
2168         (vld3q_s8): Likewise.
2169         (vld3q_p8): Likewise.
2170         (vld3q_s16): Likewise.
2171         (vld3q_p16): Likewise.
2172         (vld3q_s32): Likewise.
2173         (vld3q_s64): Likewise.
2174         (vld3q_u8): Likewise.
2175         (vld3q_u16): Likewise.
2176         (vld3q_u32): Likewise.
2177         (vld3q_u64): Likewise.
2178         (vld3q_f16): Likewise.
2179         (vld3q_f32): Likewise.
2180         (vld3q_f64): Likewise.
2181         (vld3q_p64): Likewise.
2182         (vld4_s64): Likewise.
2183         (vld4_u64): Likewise.
2184         (vld4_f64): Likewise.
2185         (vld4_s8): Likewise.
2186         (vld4_p8): Likewise.
2187         (vld4_s16): Likewise.
2188         (vld4_p16): Likewise.
2189         (vld4_s32): Likewise.
2190         (vld4_u8): Likewise.
2191         (vld4_u16): Likewise.
2192         (vld4_u32): Likewise.
2193         (vld4_f16): Likewise.
2194         (vld4_f32): Likewise.
2195         (vld4_p64): Likewise.
2196         (vld4q_s8): Likewise.
2197         (vld4q_p8): Likewise.
2198         (vld4q_s16): Likewise.
2199         (vld4q_p16): Likewise.
2200         (vld4q_s32): Likewise.
2201         (vld4q_s64): Likewise.
2202         (vld4q_u8): Likewise.
2203         (vld4q_u16): Likewise.
2204         (vld4q_u32): Likewise.
2205         (vld4q_u64): Likewise.
2206         (vld4q_f16): Likewise.
2207         (vld4q_f32): Likewise.
2208         (vld4q_f64): Likewise.
2209         (vld4q_p64): Likewise.
2210         (vld2_dup_s8): Likewise.
2211         (vld2_dup_s16): Likewise.
2212         (vld2_dup_s32): Likewise.
2213         (vld2_dup_f16): Likewise.
2214         (vld2_dup_f32): Likewise.
2215         (vld2_dup_f64): Likewise.
2216         (vld2_dup_u8): Likewise.
2217         (vld2_dup_u16): Likewise.
2218         (vld2_dup_u32): Likewise.
2219         (vld2_dup_p8): Likewise.
2220         (vld2_dup_p16): Likewise.
2221         (vld2_dup_p64): Likewise.
2222         (vld2_dup_s64): Likewise.
2223         (vld2_dup_u64): Likewise.
2224         (vld2q_dup_s8): Likewise.
2225         (vld2q_dup_p8): Likewise.
2226         (vld2q_dup_s16): Likewise.
2227         (vld2q_dup_p16): Likewise.
2228         (vld2q_dup_s32): Likewise.
2229         (vld2q_dup_s64): Likewise.
2230         (vld2q_dup_u8): Likewise.
2231         (vld2q_dup_u16): Likewise.
2232         (vld2q_dup_u32): Likewise.
2233         (vld2q_dup_u64): Likewise.
2234         (vld2q_dup_f16): Likewise.
2235         (vld2q_dup_f32): Likewise.
2236         (vld2q_dup_f64): Likewise.
2237         (vld2q_dup_p64): Likewise.
2238         (vld3_dup_s64): Likewise.
2239         (vld3_dup_u64): Likewise.
2240         (vld3_dup_f64): Likewise.
2241         (vld3_dup_s8): Likewise.
2242         (vld3_dup_p8): Likewise.
2243         (vld3_dup_s16): Likewise.
2244         (vld3_dup_p16): Likewise.
2245         (vld3_dup_s32): Likewise.
2246         (vld3_dup_u8): Likewise.
2247         (vld3_dup_u16): Likewise.
2248         (vld3_dup_u32): Likewise.
2249         (vld3_dup_f16): Likewise.
2250         (vld3_dup_f32): Likewise.
2251         (vld3_dup_p64): Likewise.
2252         (vld3q_dup_s8): Likewise.
2253         (vld3q_dup_p8): Likewise.
2254         (vld3q_dup_s16): Likewise.
2255         (vld3q_dup_p16): Likewise.
2256         (vld3q_dup_s32): Likewise.
2257         (vld3q_dup_s64): Likewise.
2258         (vld3q_dup_u8): Likewise.
2259         (vld3q_dup_u16): Likewise.
2260         (vld3q_dup_u32): Likewise.
2261         (vld3q_dup_u64): Likewise.
2262         (vld3q_dup_f16): Likewise.
2263         (vld3q_dup_f32): Likewise.
2264         (vld3q_dup_f64): Likewise.
2265         (vld3q_dup_p64): Likewise.
2266         (vld4_dup_s64): Likewise.
2267         (vld4_dup_u64): Likewise.
2268         (vld4_dup_f64): Likewise.
2269         (vld4_dup_s8): Likewise.
2270         (vld4_dup_p8): Likewise.
2271         (vld4_dup_s16): Likewise.
2272         (vld4_dup_p16): Likewise.
2273         (vld4_dup_s32): Likewise.
2274         (vld4_dup_u8): Likewise.
2275         (vld4_dup_u16): Likewise.
2276         (vld4_dup_u32): Likewise.
2277         (vld4_dup_f16): Likewise.
2278         (vld4_dup_f32): Likewise.
2279         (vld4_dup_p64): Likewise.
2280         (vld4q_dup_s8): Likewise.
2281         (vld4q_dup_p8): Likewise.
2282         (vld4q_dup_s16): Likewise.
2283         (vld4q_dup_p16): Likewise.
2284         (vld4q_dup_s32): Likewise.
2285         (vld4q_dup_s64): Likewise.
2286         (vld4q_dup_u8): Likewise.
2287         (vld4q_dup_u16): Likewise.
2288         (vld4q_dup_u32): Likewise.
2289         (vld4q_dup_u64): Likewise.
2290         (vld4q_dup_f16): Likewise.
2291         (vld4q_dup_f32): Likewise.
2292         (vld4q_dup_f64): Likewise.
2293         (vld4q_dup_p64): Likewise.
2294         (vld2_lane_u8): Likewise.
2295         (vld2_lane_u16): Likewise.
2296         (vld2_lane_u32): Likewise.
2297         (vld2_lane_u64): Likewise.
2298         (vld2_lane_s8): Likewise.
2299         (vld2_lane_s16): Likewise.
2300         (vld2_lane_s32): Likewise.
2301         (vld2_lane_s64): Likewise.
2302         (vld2_lane_f16): Likewise.
2303         (vld2_lane_f32): Likewise.
2304         (vld2_lane_f64): Likewise.
2305         (vld2_lane_p8): Likewise.
2306         (vld2_lane_p16): Likewise.
2307         (vld2_lane_p64): Likewise.
2308         (vld2q_lane_u8): Likewise.
2309         (vld2q_lane_u16): Likewise.
2310         (vld2q_lane_u32): Likewise.
2311         (vld2q_lane_u64): Likewise.
2312         (vld2q_lane_s8): Likewise.
2313         (vld2q_lane_s16): Likewise.
2314         (vld2q_lane_s32): Likewise.
2315         (vld2q_lane_s64): Likewise.
2316         (vld2q_lane_f16): Likewise.
2317         (vld2q_lane_f32): Likewise.
2318         (vld2q_lane_f64): Likewise.
2319         (vld2q_lane_p8): Likewise.
2320         (vld2q_lane_p16): Likewise.
2321         (vld2q_lane_p64): Likewise.
2322         (vld3_lane_u8): Likewise.
2323         (vld3_lane_u16): Likewise.
2324         (vld3_lane_u32): Likewise.
2325         (vld3_lane_u64): Likewise.
2326         (vld3_lane_s8): Likewise.
2327         (vld3_lane_s16): Likewise.
2328         (vld3_lane_s32): Likewise.
2329         (vld3_lane_s64): Likewise.
2330         (vld3_lane_f16): Likewise.
2331         (vld3_lane_f32): Likewise.
2332         (vld3_lane_f64): Likewise.
2333         (vld3_lane_p8): Likewise.
2334         (vld3_lane_p16): Likewise.
2335         (vld3_lane_p64): Likewise.
2336         (vld3q_lane_u8): Likewise.
2337         (vld3q_lane_u16): Likewise.
2338         (vld3q_lane_u32): Likewise.
2339         (vld3q_lane_u64): Likewise.
2340         (vld3q_lane_s8): Likewise.
2341         (vld3q_lane_s16): Likewise.
2342         (vld3q_lane_s32): Likewise.
2343         (vld3q_lane_s64): Likewise.
2344         (vld3q_lane_f16): Likewise.
2345         (vld3q_lane_f32): Likewise.
2346         (vld3q_lane_f64): Likewise.
2347         (vld3q_lane_p8): Likewise.
2348         (vld3q_lane_p16): Likewise.
2349         (vld3q_lane_p64): Likewise.
2350         (vld4_lane_u8): Likewise.
2351         (vld4_lane_u16): Likewise.
2352         (vld4_lane_u32): Likewise.
2353         (vld4_lane_u64): Likewise.
2354         (vld4_lane_s8): Likewise.
2355         (vld4_lane_s16): Likewise.
2356         (vld4_lane_s32): Likewise.
2357         (vld4_lane_s64): Likewise.
2358         (vld4_lane_f16): Likewise.
2359         (vld4_lane_f32): Likewise.
2360         (vld4_lane_f64): Likewise.
2361         (vld4_lane_p8): Likewise.
2362         (vld4_lane_p16): Likewise.
2363         (vld4_lane_p64): Likewise.
2364         (vld4q_lane_u8): Likewise.
2365         (vld4q_lane_u16): Likewise.
2366         (vld4q_lane_u32): Likewise.
2367         (vld4q_lane_u64): Likewise.
2368         (vld4q_lane_s8): Likewise.
2369         (vld4q_lane_s16): Likewise.
2370         (vld4q_lane_s32): Likewise.
2371         (vld4q_lane_s64): Likewise.
2372         (vld4q_lane_f16): Likewise.
2373         (vld4q_lane_f32): Likewise.
2374         (vld4q_lane_f64): Likewise.
2375         (vld4q_lane_p8): Likewise.
2376         (vld4q_lane_p16): Likewise.
2377         (vld4q_lane_p64): Likewise.
2378         (vqtbl2_s8): Likewise.
2379         (vqtbl2_u8): Likewise.
2380         (vqtbl2_p8): Likewise.
2381         (vqtbl2q_s8): Likewise.
2382         (vqtbl2q_u8): Likewise.
2383         (vqtbl2q_p8): Likewise.
2384         (vqtbl3_s8): Likewise.
2385         (vqtbl3_u8): Likewise.
2386         (vqtbl3_p8): Likewise.
2387         (vqtbl3q_s8): Likewise.
2388         (vqtbl3q_u8): Likewise.
2389         (vqtbl3q_p8): Likewise.
2390         (vqtbl4_s8): Likewise.
2391         (vqtbl4_u8): Likewise.
2392         (vqtbl4_p8): Likewise.
2393         (vqtbl4q_s8): Likewise.
2394         (vqtbl4q_u8): Likewise.
2395         (vqtbl4q_p8): Likewise.
2396         (vqtbx2_s8): Likewise.
2397         (vqtbx2_u8): Likewise.
2398         (vqtbx2_p8): Likewise.
2399         (vqtbx2q_s8): Likewise.
2400         (vqtbx2q_u8): Likewise.
2401         (vqtbx2q_p8): Likewise.
2402         (vqtbx3_s8): Likewise.
2403         (vqtbx3_u8): Likewise.
2404         (vqtbx3_p8): Likewise.
2405         (vqtbx3q_s8): Likewise.
2406         (vqtbx3q_u8): Likewise.
2407         (vqtbx3q_p8): Likewise.
2408         (vqtbx4_s8): Likewise.
2409         (vqtbx4_u8): Likewise.
2410         (vqtbx4_p8): Likewise.
2411         (vqtbx4q_s8): Likewise.
2412         (vqtbx4q_u8): Likewise.
2413         (vqtbx4q_p8): Likewise.
2414         (vst1_s64_x2): Likewise.
2415         (vst1_u64_x2): Likewise.
2416         (vst1_f64_x2): Likewise.
2417         (vst1_s8_x2): Likewise.
2418         (vst1_p8_x2): Likewise.
2419         (vst1_s16_x2): Likewise.
2420         (vst1_p16_x2): Likewise.
2421         (vst1_s32_x2): Likewise.
2422         (vst1_u8_x2): Likewise.
2423         (vst1_u16_x2): Likewise.
2424         (vst1_u32_x2): Likewise.
2425         (vst1_f16_x2): Likewise.
2426         (vst1_f32_x2): Likewise.
2427         (vst1_p64_x2): Likewise.
2428         (vst1q_s8_x2): Likewise.
2429         (vst1q_p8_x2): Likewise.
2430         (vst1q_s16_x2): Likewise.
2431         (vst1q_p16_x2): Likewise.
2432         (vst1q_s32_x2): Likewise.
2433         (vst1q_s64_x2): Likewise.
2434         (vst1q_u8_x2): Likewise.
2435         (vst1q_u16_x2): Likewise.
2436         (vst1q_u32_x2): Likewise.
2437         (vst1q_u64_x2): Likewise.
2438         (vst1q_f16_x2): Likewise.
2439         (vst1q_f32_x2): Likewise.
2440         (vst1q_f64_x2): Likewise.
2441         (vst1q_p64_x2): Likewise.
2442         (vst1_s64_x3): Likewise.
2443         (vst1_u64_x3): Likewise.
2444         (vst1_f64_x3): Likewise.
2445         (vst1_s8_x3): Likewise.
2446         (vst1_p8_x3): Likewise.
2447         (vst1_s16_x3): Likewise.
2448         (vst1_p16_x3): Likewise.
2449         (vst1_s32_x3): Likewise.
2450         (vst1_u8_x3): Likewise.
2451         (vst1_u16_x3): Likewise.
2452         (vst1_u32_x3): Likewise.
2453         (vst1_f16_x3): Likewise.
2454         (vst1_f32_x3): Likewise.
2455         (vst1_p64_x3): Likewise.
2456         (vst1q_s8_x3): Likewise.
2457         (vst1q_p8_x3): Likewise.
2458         (vst1q_s16_x3): Likewise.
2459         (vst1q_p16_x3): Likewise.
2460         (vst1q_s32_x3): Likewise.
2461         (vst1q_s64_x3): Likewise.
2462         (vst1q_u8_x3): Likewise.
2463         (vst1q_u16_x3): Likewise.
2464         (vst1q_u32_x3): Likewise.
2465         (vst1q_u64_x3): Likewise.
2466         (vst1q_f16_x3): Likewise.
2467         (vst1q_f32_x3): Likewise.
2468         (vst1q_f64_x3): Likewise.
2469         (vst1q_p64_x3): Likewise.
2470         (vst1_s8_x4): Likewise.
2471         (vst1q_s8_x4): Likewise.
2472         (vst1_s16_x4): Likewise.
2473         (vst1q_s16_x4): Likewise.
2474         (vst1_s32_x4): Likewise.
2475         (vst1q_s32_x4): Likewise.
2476         (vst1_u8_x4): Likewise.
2477         (vst1q_u8_x4): Likewise.
2478         (vst1_u16_x4): Likewise.
2479         (vst1q_u16_x4): Likewise.
2480         (vst1_u32_x4): Likewise.
2481         (vst1q_u32_x4): Likewise.
2482         (vst1_f16_x4): Likewise.
2483         (vst1q_f16_x4): Likewise.
2484         (vst1_f32_x4): Likewise.
2485         (vst1q_f32_x4): Likewise.
2486         (vst1_p8_x4): Likewise.
2487         (vst1q_p8_x4): Likewise.
2488         (vst1_p16_x4): Likewise.
2489         (vst1q_p16_x4): Likewise.
2490         (vst1_s64_x4): Likewise.
2491         (vst1_u64_x4): Likewise.
2492         (vst1_p64_x4): Likewise.
2493         (vst1q_s64_x4): Likewise.
2494         (vst1q_u64_x4): Likewise.
2495         (vst1q_p64_x4): Likewise.
2496         (vst1_f64_x4): Likewise.
2497         (vst1q_f64_x4): Likewise.
2498         (vst2_s64): Likewise.
2499         (vst2_u64): Likewise.
2500         (vst2_f64): Likewise.
2501         (vst2_s8): Likewise.
2502         (vst2_p8): Likewise.
2503         (vst2_s16): Likewise.
2504         (vst2_p16): Likewise.
2505         (vst2_s32): Likewise.
2506         (vst2_u8): Likewise.
2507         (vst2_u16): Likewise.
2508         (vst2_u32): Likewise.
2509         (vst2_f16): Likewise.
2510         (vst2_f32): Likewise.
2511         (vst2_p64): Likewise.
2512         (vst2q_s8): Likewise.
2513         (vst2q_p8): Likewise.
2514         (vst2q_s16): Likewise.
2515         (vst2q_p16): Likewise.
2516         (vst2q_s32): Likewise.
2517         (vst2q_s64): Likewise.
2518         (vst2q_u8): Likewise.
2519         (vst2q_u16): Likewise.
2520         (vst2q_u32): Likewise.
2521         (vst2q_u64): Likewise.
2522         (vst2q_f16): Likewise.
2523         (vst2q_f32): Likewise.
2524         (vst2q_f64): Likewise.
2525         (vst2q_p64): Likewise.
2526         (vst3_s64): Likewise.
2527         (vst3_u64): Likewise.
2528         (vst3_f64): Likewise.
2529         (vst3_s8): Likewise.
2530         (vst3_p8): Likewise.
2531         (vst3_s16): Likewise.
2532         (vst3_p16): Likewise.
2533         (vst3_s32): Likewise.
2534         (vst3_u8): Likewise.
2535         (vst3_u16): Likewise.
2536         (vst3_u32): Likewise.
2537         (vst3_f16): Likewise.
2538         (vst3_f32): Likewise.
2539         (vst3_p64): Likewise.
2540         (vst3q_s8): Likewise.
2541         (vst3q_p8): Likewise.
2542         (vst3q_s16): Likewise.
2543         (vst3q_p16): Likewise.
2544         (vst3q_s32): Likewise.
2545         (vst3q_s64): Likewise.
2546         (vst3q_u8): Likewise.
2547         (vst3q_u16): Likewise.
2548         (vst3q_u32): Likewise.
2549         (vst3q_u64): Likewise.
2550         (vst3q_f16): Likewise.
2551         (vst3q_f32): Likewise.
2552         (vst3q_f64): Likewise.
2553         (vst3q_p64): Likewise.
2554         (vst4_s64): Likewise.
2555         (vst4_u64): Likewise.
2556         (vst4_f64): Likewise.
2557         (vst4_s8): Likewise.
2558         (vst4_p8): Likewise.
2559         (vst4_s16): Likewise.
2560         (vst4_p16): Likewise.
2561         (vst4_s32): Likewise.
2562         (vst4_u8): Likewise.
2563         (vst4_u16): Likewise.
2564         (vst4_u32): Likewise.
2565         (vst4_f16): Likewise.
2566         (vst4_f32): Likewise.
2567         (vst4_p64): Likewise.
2568         (vst4q_s8): Likewise.
2569         (vst4q_p8): Likewise.
2570         (vst4q_s16): Likewise.
2571         (vst4q_p16): Likewise.
2572         (vst4q_s32): Likewise.
2573         (vst4q_s64): Likewise.
2574         (vst4q_u8): Likewise.
2575         (vst4q_u16): Likewise.
2576         (vst4q_u32): Likewise.
2577         (vst4q_u64): Likewise.
2578         (vst4q_f16): Likewise.
2579         (vst4q_f32): Likewise.
2580         (vst4q_f64): Likewise.
2581         (vst4q_p64): Likewise.
2582         (vtbx4_s8): Likewise.
2583         (vtbx4_u8): Likewise.
2584         (vtbx4_p8): Likewise.
2585         (vld1_bf16_x2): Likewise.
2586         (vld1q_bf16_x2): Likewise.
2587         (vld1_bf16_x3): Likewise.
2588         (vld1q_bf16_x3): Likewise.
2589         (vld1_bf16_x4): Likewise.
2590         (vld1q_bf16_x4): Likewise.
2591         (vld2_bf16): Likewise.
2592         (vld2q_bf16): Likewise.
2593         (vld2_dup_bf16): Likewise.
2594         (vld2q_dup_bf16): Likewise.
2595         (vld3_bf16): Likewise.
2596         (vld3q_bf16): Likewise.
2597         (vld3_dup_bf16): Likewise.
2598         (vld3q_dup_bf16): Likewise.
2599         (vld4_bf16): Likewise.
2600         (vld4q_bf16): Likewise.
2601         (vld4_dup_bf16): Likewise.
2602         (vld4q_dup_bf16): Likewise.
2603         (vst1_bf16_x2): Likewise.
2604         (vst1q_bf16_x2): Likewise.
2605         (vst1_bf16_x3): Likewise.
2606         (vst1q_bf16_x3): Likewise.
2607         (vst1_bf16_x4): Likewise.
2608         (vst1q_bf16_x4): Likewise.
2609         (vst2_bf16): Likewise.
2610         (vst2q_bf16): Likewise.
2611         (vst3_bf16): Likewise.
2612         (vst3q_bf16): Likewise.
2613         (vst4_bf16): Likewise.
2614         (vst4q_bf16): Likewise.
2615         (vld2_lane_bf16): Likewise.
2616         (vld2q_lane_bf16): Likewise.
2617         (vld3_lane_bf16): Likewise.
2618         (vld3q_lane_bf16): Likewise.
2619         (vld4_lane_bf16): Likewise.
2620         (vld4q_lane_bf16): Likewise.
2621         (vst2_lane_bf16): Likewise.
2622         (vst2q_lane_bf16): Likewise.
2623         (vst3_lane_bf16): Likewise.
2624         (vst3q_lane_bf16): Likewise.
2625         (vst4_lane_bf16): Likewise.
2626         (vst4q_lane_bf16): Likewise.
2627         * config/aarch64/geniterators.sh: Modify iterator regex to
2628         match new vector-tuple modes.
2629         * config/aarch64/iterators.md (insn_count): Extend mode
2630         attribute with vector-tuple type information.
2631         (nregs): Likewise.
2632         (Vendreg): Likewise.
2633         (Vetype): Likewise.
2634         (Vtype): Likewise.
2635         (VSTRUCT_2D): New mode iterator.
2636         (VSTRUCT_2DNX): Likewise.
2637         (VSTRUCT_2DX): Likewise.
2638         (VSTRUCT_2Q): Likewise.
2639         (VSTRUCT_2QD): Likewise.
2640         (VSTRUCT_3D): Likewise.
2641         (VSTRUCT_3DNX): Likewise.
2642         (VSTRUCT_3DX): Likewise.
2643         (VSTRUCT_3Q): Likewise.
2644         (VSTRUCT_3QD): Likewise.
2645         (VSTRUCT_4D): Likewise.
2646         (VSTRUCT_4DNX): Likewise.
2647         (VSTRUCT_4DX): Likewise.
2648         (VSTRUCT_4Q): Likewise.
2649         (VSTRUCT_4QD): Likewise.
2650         (VSTRUCT_D): Likewise.
2651         (VSTRUCT_Q): Likewise.
2652         (VSTRUCT_QD): Likewise.
2653         (VSTRUCT_ELT): New mode attribute.
2654         (vstruct_elt): Likewise.
2655         * genmodes.c (VECTOR_MODE): Add default prefix and order
2656         parameters.
2657         (VECTOR_MODE_WITH_PREFIX): Define.
2658         (make_vector_mode): Add mode prefix and order parameters.
2660 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
2662         * expmed.c (extract_bit_field_1): Ensure modes are tieable.
2664 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
2666         * expr.c (emit_group_load_1): Remove historic workaround.
2668 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
2670         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
2671         Factor out main loop to...
2672         (aarch64_init_simd_builtin_functions): This new function.
2673         (register_tuple_type): Define.
2674         (aarch64_scalar_builtin_type_p): Define.
2675         (handle_arm_neon_h): Define.
2676         * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): Handle
2677         pragma for arm_neon.h.
2678         * config/aarch64/aarch64-protos.h (aarch64_advsimd_struct_mode_p):
2679         Declare.
2680         (handle_arm_neon_h): Likewise.
2681         * config/aarch64/aarch64.c (aarch64_advsimd_struct_mode_p):
2682         Remove static modifier.
2683         * config/aarch64/arm_neon.h (target): Remove Neon vector
2684         structure type definitions.
2686 2021-11-04  Aldy Hernandez  <aldyh@redhat.com>
2688         PR tree-optimization/102943
2689         * gimple-range-path.cc (path_range_query::range_on_path_entry):
2690         Prefer range_of_expr unless there are no statements in the BB.
2692 2021-11-04  Aldy Hernandez  <aldyh@redhat.com>
2694         PR tree-optimization/102943
2695         * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
2696         Avoid duplicate calculation of paths.
2698 2021-11-04  Aldy Hernandez  <aldyh@redhat.com>
2700         PR tree-optimization/102943
2701         * gimple-range-path.cc (path_range_query::compute_phi_relations):
2702         Only compute relations for SSA names in the import list.
2703         (path_range_query::compute_outgoing_relations): Same.
2704         * gimple-range-path.h (path_range_query::import_p): New.
2706 2021-11-04  Richard Biener  <rguenther@suse.de>
2708         PR rtl-optimization/103075
2709         * simplify-rtx.c (exact_int_to_float_conversion_p): Return
2710         false for a VOIDmode operand.
2712 2021-11-04  Richard Sandiford  <richard.sandiford@arm.com>
2714         * config/aarch64/aarch64.c (aarch64_vector_costs): Make member
2715         variables private and add "m_" to their names.  Remove is_loop.
2716         (aarch64_record_potential_advsimd_unrolling): Replace with...
2717         (aarch64_vector_costs::record_potential_advsimd_unrolling): ...this.
2718         (aarch64_analyze_loop_vinfo): Replace with...
2719         (aarch64_vector_costs::analyze_loop_vinfo): ...this.
2720         Move initialization of (m_)vec_flags to add_stmt_cost.
2721         (aarch64_analyze_bb_vinfo): Delete.
2722         (aarch64_count_ops): Replace with...
2723         (aarch64_vector_costs::count_ops): ...this.
2724         (aarch64_vector_costs::add_stmt_cost): Set m_vec_flags,
2725         using m_costing_for_scalar to test whether we're costing
2726         scalar or vector code.
2727         (aarch64_adjust_body_cost_sve): Replace with...
2728         (aarch64_vector_costs::adjust_body_cost_sve): ...this.
2729         (aarch64_adjust_body_cost): Replace with...
2730         (aarch64_vector_costs::adjust_body_cost): ...this.
2731         (aarch64_vector_costs::finish_cost): Use m_vinfo instead of is_loop.
2733 2021-11-04  Richard Sandiford  <richard.sandiford@arm.com>
2735         * target.def (targetm.vectorize.init_cost): Replace with...
2736         (targetm.vectorize.create_costs): ...this.
2737         (targetm.vectorize.add_stmt_cost): Delete.
2738         (targetm.vectorize.finish_cost): Likewise.
2739         (targetm.vectorize.destroy_cost_data): Likewise.
2740         * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): Replace with...
2741         (TARGET_VECTORIZE_CREATE_COSTS): ...this.
2742         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
2743         (TARGET_VECTORIZE_FINISH_COST): Likewise.
2744         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
2745         * doc/tm.texi: Regenerate.
2746         * tree-vectorizer.h (vec_info::vec_info): Remove target_cost_data
2747         parameter.
2748         (vec_info::target_cost_data): Change from a void * to a vector_costs *.
2749         (vector_costs): New class.
2750         (init_cost): Take a vec_info and return a vector_costs.
2751         (dump_stmt_cost): Remove data parameter.
2752         (add_stmt_cost): Replace vinfo and data parameters with a vector_costs.
2753         (add_stmt_costs): Likewise.
2754         (finish_cost): Replace data parameter with a vector_costs.
2755         (destroy_cost_data): Delete.
2756         * tree-vectorizer.c (dump_stmt_cost): Remove data argument and
2757         don't print it.
2758         (vec_info::vec_info): Remove the target_cost_data parameter and
2759         initialize the member variable to null instead.
2760         (vec_info::~vec_info): Delete target_cost_data instead of calling
2761         destroy_cost_data.
2762         (vector_costs::add_stmt_cost): New function.
2763         (vector_costs::finish_cost): Likewise.
2764         (vector_costs::record_stmt_cost): Likewise.
2765         (vector_costs::adjust_cost_for_freq): Likewise.
2766         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
2767         call to vec_info::vec_info.
2768         (vect_compute_single_scalar_iteration_cost): Update after above
2769         changes to costing interface.
2770         (vect_analyze_loop_operations): Likewise.
2771         (vect_estimate_min_profitable_iters): Likewise.
2772         (vect_analyze_loop_2): Initialize LOOP_VINFO_TARGET_COST_DATA
2773         at the start_over point, where it needs to be recreated after
2774         trying without slp.  Update retry code accordingly.
2775         * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Update call
2776         to vec_info::vec_info.
2777         (vect_slp_analyze_operation): Update after above changes to costing
2778         interface.
2779         (vect_bb_vectorization_profitable_p): Likewise.
2780         * targhooks.h (default_init_cost): Replace with...
2781         (default_vectorize_create_costs): ...this.
2782         (default_add_stmt_cost): Delete.
2783         (default_finish_cost, default_destroy_cost_data): Likewise.
2784         * targhooks.c (default_init_cost): Replace with...
2785         (default_vectorize_create_costs): ...this.
2786         (default_add_stmt_cost): Delete, moving logic to vector_costs instead.
2787         (default_finish_cost, default_destroy_cost_data): Delete.
2788         * config/aarch64/aarch64.c (aarch64_vector_costs): Inherit from
2789         vector_costs.  Add a constructor.
2790         (aarch64_init_cost): Replace with...
2791         (aarch64_vectorize_create_costs): ...this.
2792         (aarch64_add_stmt_cost): Replace with...
2793         (aarch64_vector_costs::add_stmt_cost): ...this.  Use record_stmt_cost
2794         to adjust the cost for inner loops.
2795         (aarch64_finish_cost): Replace with...
2796         (aarch64_vector_costs::finish_cost): ...this.
2797         (aarch64_destroy_cost_data): Delete.
2798         (TARGET_VECTORIZE_INIT_COST): Replace with...
2799         (TARGET_VECTORIZE_CREATE_COSTS): ...this.
2800         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
2801         (TARGET_VECTORIZE_FINISH_COST): Likewise.
2802         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
2803         * config/i386/i386.c (ix86_vector_costs): New structure.
2804         (ix86_init_cost): Replace with...
2805         (ix86_vectorize_create_costs): ...this.
2806         (ix86_add_stmt_cost): Replace with...
2807         (ix86_vector_costs::add_stmt_cost): ...this.  Use adjust_cost_for_freq
2808         to adjust the cost for inner loops.
2809         (ix86_finish_cost, ix86_destroy_cost_data): Delete.
2810         (TARGET_VECTORIZE_INIT_COST): Replace with...
2811         (TARGET_VECTORIZE_CREATE_COSTS): ...this.
2812         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
2813         (TARGET_VECTORIZE_FINISH_COST): Likewise.
2814         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
2815         * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): Replace with...
2816         (TARGET_VECTORIZE_CREATE_COSTS): ...this.
2817         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
2818         (TARGET_VECTORIZE_FINISH_COST): Likewise.
2819         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
2820         (rs6000_cost_data): Inherit from vector_costs.
2821         Add a constructor.  Drop loop_info, cost and costing_for_scalar
2822         in favor of the corresponding vector_costs member variables.
2823         Add "m_" to the names of the remaining member variables and
2824         initialize them.
2825         (rs6000_density_test): Replace with...
2826         (rs6000_cost_data::density_test): ...this.
2827         (rs6000_init_cost): Replace with...
2828         (rs6000_vectorize_create_costs): ...this.
2829         (rs6000_update_target_cost_per_stmt): Replace with...
2830         (rs6000_cost_data::update_target_cost_per_stmt): ...this.
2831         (rs6000_add_stmt_cost): Replace with...
2832         (rs6000_cost_data::add_stmt_cost): ...this.  Use adjust_cost_for_freq
2833         to adjust the cost for inner loops.
2834         (rs6000_adjust_vect_cost_per_loop): Replace with...
2835         (rs6000_cost_data::adjust_vect_cost_per_loop): ...this.
2836         (rs6000_finish_cost): Replace with...
2837         (rs6000_cost_data::finish_cost): ...this.  Group loop code
2838         into a single if statement and pass the loop_vinfo down to
2839         subroutines.
2840         (rs6000_destroy_cost_data): Delete.
2842 2021-11-04  Aldy Hernandez  <aldyh@redhat.com>
2844         PR tree-optimization/103062
2845         PR tree-optimization/103062
2846         * value-pointer-equiv.cc (ssa_equiv_stack::ssa_equiv_stack):
2847         Increase size of allocation by 1.
2848         (ssa_equiv_stack::push_replacement): Grow as needed.
2849         (ssa_equiv_stack::get_replacement): Same.
2850         (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
2851         (pointer_equiv_analyzer::~pointer_equiv_analyzer): Remove delete.
2852         (pointer_equiv_analyzer::set_global_equiv): Grow as needed.
2853         (pointer_equiv_analyzer::get_equiv): Same.
2854         (pointer_equiv_analyzer::get_equiv_expr): Remove const.
2855         * value-pointer-equiv.h (class pointer_equiv_analyzer): Remove
2856         const markers.  Use auto_vec instead of tree *.
2858 2021-11-04  Richard Biener  <rguenther@suse.de>
2860         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Remove always
2861         true parameter and inline valueization.
2862         (vn_nary_op_lookup_1): Inline valueization from ...
2863         (vn_nary_op_compute_hash): ... here and remove it here.
2864         * tree-ssa-pre.c (phi_translate_1): Do not valueize
2865         before vn_nary_lookup_pieces.
2866         (get_representative_for): Mark created SSA representatives
2867         as visited.
2869 2021-11-04  Richard Sandiford  <richard.sandiford@arm.com>
2871         * simplify-rtx.c (simplify_context::simplify_gen_vec_select): Assert
2872         that the operand has a vector mode.  Use subreg_lowpart_offset
2873         to test whether an index corresponds to the low part.
2875 2021-11-04  Richard Sandiford  <richard.sandiford@arm.com>
2877         * read-rtl.c: Remove dead !GENERATOR_FILE block.
2878         * read-rtl-function.c (function_reader::consolidate_singletons):
2879         Generate canonical CONST_VECTORs.
2881 2021-11-04  liuhongt  <hongtao.liu@intel.com>
2883         PR target/101989
2884         * config/i386/predicates.md (reg_or_notreg_operand): Rename to ..
2885         (regmem_or_bitnot_regmem_operand): .. and extend to handle
2886         memory_operand.
2887         * config/i386/sse.md (*<avx512>_vpternlog<mode>_1): Force_reg
2888         the operands which are required to be register_operand.
2889         (*<avx512>_vpternlog<mode>_2): Ditto.
2890         (*<avx512>_vpternlog<mode>_3): Ditto.
2891         (*<avx512>_vternlog<mode>_all): Disallow embeded broadcast for
2892         vector HFmodes since it's not a real AVX512FP16 instruction.
2894 2021-11-04  liuhongt  <hongtao.liu@intel.com>
2896         PR target/102464
2897         * match.pd: simplify (trunc)copysign((extend)a, (extend)b) to
2898         .COPYSIGN (a,b) when a and b are same type as the truncation
2899         type and has less precision than extend type.
2901 2021-11-04  Richard Biener  <rguenther@suse.de>
2903         * doc/generic.texi: Update TARGET_MEM_REF and MEM_REF
2904         documentation.
2906 2021-11-04  Hongyu Wang  <hongyu.wang@intel.com>
2908         * config/i386/sse.md (VI2_AVX512VNNIBW): New mode iterator.
2909         (VI1_AVX512VNNI): Likewise.
2910         (SDOT_VPDP_SUF): New mode_attr.
2911         (VI1SI): Likewise.
2912         (vi1si): Likewise.
2913         (sdot_prod<mode>): Use VI2_AVX512F iterator, expand to
2914         vpdpwssd when VNNI targets available.
2915         (usdot_prod<mode>): New expander for vector QImode.
2917 2021-11-04  Hongyu Wang  <hongyu.wang@intel.com>
2919         * config/i386/amxtileintrin.h (_tile_loadd_internal): Add
2920         parentheses to base and stride.
2921         (_tile_stream_loadd_internal): Likewise.
2922         (_tile_stored_internal): Likewise.
2924 2021-11-03  Maciej W. Rozycki  <macro@embecosm.com>
2926         * config/riscv/riscv.c (riscv_class_max_nregs): Swap the
2927         arguments to `reg_class_subset_p'.
2929 2021-11-03  Joseph Myers  <joseph@codesourcery.com>
2931         PR c/103031
2932         * fold-const.c (fold_init): New function.
2933         * fold-const.h (fold_init): New prototype.
2935 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
2937         * params.opt (param_vrp2_mode): Make ranger the default for VRP2.
2939 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
2941         * gimple-range-fold.cc (fold_using_range::range_of_phi): Don't import
2942         a range from edge if arg == phidef.
2944 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
2946         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Test
2947         for constant before any other processing.
2949 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
2951         * flag-types.h (RANGER_DEBUG_ALL): Fix values.
2953 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
2955         * gimple-range.cc (gimple_ranger::gimple_ranger): Initialize current_bb.
2956         (gimple_ranger::range_of_expr): Pick up range_on_entry when there is
2957         no explcit context and current_bb is set.
2958         (gimple_ranger::fold_stmt): New.
2959         * gimple-range.h (current_bb, fold_stmt): New.
2960         * tree-vrp.c (rvrp_folder::fold_stmt): Call ranger's fold_stmt.
2962 2021-11-03  Richard Biener  <rguenther@suse.de>
2964         PR tree-optimization/102970
2965         * tree-ssa-pre.c (phi_translate_1): Drop clique and base
2966         when translating a MEM_REF over a backedge.
2968 2021-11-03  Philipp Tomsich  <philipp.tomsich@vrull.eu>
2970         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New Ampere-1 core.
2971         * config/aarch64/aarch64-tune.md: Regenerate.
2972         * config/aarch64/aarch64-cost-tables.h: Add extra costs for Ampere-1.
2973         * config/aarch64/aarch64.c: Add tuning structures for Ampere-1.
2974         * doc/invoke.texi: Add documentation for Ampere-1 core.
2976 2021-11-03  Wilco Dijkstra  <wdijkstr@arm.com>
2978         * config/aarch64/aarch64.md (movsi): Add alternative for GOT accesses.
2979         (movdi): Likewise.
2980         (ldr_got_small_<mode>): Remove pattern.
2981         (ldr_got_small_sidi): Likewise.
2982         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Keep
2983         GOT accesses as moves.
2984         (aarch64_print_operand): Correctly print got_lo12 in L specifier.
2985         (aarch64_mov_operand_p): Make GOT accesses valid move operands.
2986         * config/aarch64/constraints.md: Add new constraint Usw for GOT access.
2988 2021-11-03  Martin Liska  <mliska@suse.cz>
2990         * gcov.c (read_line): Remove dead variable.
2992 2021-11-03  Martin Liska  <mliska@suse.cz>
2994         PR bootstrap/102828
2995         * ipa-fnsummary.c (edge_predicate_pool): Rename predicate class to ipa_predicate.
2996         (ipa_fn_summary::account_size_time): Likewise.
2997         (edge_set_predicate): Likewise.
2998         (set_hint_predicate): Likewise.
2999         (add_freqcounting_predicate): Likewise.
3000         (evaluate_conditions_for_known_args): Likewise.
3001         (evaluate_properties_for_edge): Likewise.
3002         (remap_freqcounting_preds_after_dup): Likewise.
3003         (ipa_fn_summary_t::duplicate): Likewise.
3004         (set_cond_stmt_execution_predicate): Likewise.
3005         (set_switch_stmt_execution_predicate): Likewise.
3006         (compute_bb_predicates): Likewise.
3007         (will_be_nonconstant_expr_predicate): Likewise.
3008         (will_be_nonconstant_predicate): Likewise.
3009         (phi_result_unknown_predicate): Likewise.
3010         (predicate_for_phi_result): Likewise.
3011         (analyze_function_body): Likewise.
3012         (compute_fn_summary): Likewise.
3013         (summarize_calls_size_and_time): Likewise.
3014         (estimate_calls_size_and_time): Likewise.
3015         (ipa_call_context::estimate_size_and_time): Likewise.
3016         (remap_edge_summaries): Likewise.
3017         (remap_freqcounting_predicate): Likewise.
3018         (ipa_merge_fn_summary_after_inlining): Likewise.
3019         (ipa_update_overall_fn_summary): Likewise.
3020         (read_ipa_call_summary): Likewise.
3021         (inline_read_section): Likewise.
3022         * ipa-fnsummary.h (struct ipa_freqcounting_predicate): Likewise.
3023         * ipa-predicate.c (predicate::add_clause): Likewise.
3024         (ipa_predicate::add_clause): Likewise.
3025         (predicate::or_with): Likewise.
3026         (ipa_predicate::or_with): Likewise.
3027         (predicate::evaluate): Likewise.
3028         (ipa_predicate::evaluate): Likewise.
3029         (predicate::probability): Likewise.
3030         (ipa_predicate::probability): Likewise.
3031         (dump_condition): Likewise.
3032         (dump_clause): Likewise.
3033         (predicate::dump): Likewise.
3034         (ipa_predicate::dump): Likewise.
3035         (predicate::debug): Likewise.
3036         (ipa_predicate::debug): Likewise.
3037         (predicate::remap_after_duplication): Likewise.
3038         (ipa_predicate::remap_after_duplication): Likewise.
3039         (predicate::remap_after_inlining): Likewise.
3040         (ipa_predicate::remap_after_inlining): Likewise.
3041         (predicate::stream_in): Likewise.
3042         (ipa_predicate::stream_in): Likewise.
3043         (predicate::stream_out): Likewise.
3044         (ipa_predicate::stream_out): Likewise.
3045         (add_condition): Likewise.
3046         * ipa-predicate.h (class predicate): Likewise.
3047         (class ipa_predicate): Likewise.
3048         (add_condition): Likewise.
3050 2021-11-03  Richard Biener  <rguenther@suse.de>
3052         * bitmap.h (bitmap_bit_p): Change the return type to bool.
3053         * bitmap.c (bitmap_bit_p): Likewise.
3054         * sbitmap.h (bitmap_bit_p): Likewise.
3055         (bitmap_set_bit): Return whether the bit changed.
3056         (bitmap_clear_bit): Likewise.
3057         * tree-ssa.c (verify_vssa): Make use of the changed state
3058         from bitmap_set_bit.
3060 2021-11-03  Richard Biener  <rguenther@suse.de>
3062         PR middle-end/103033
3063         * internal-fn.c (expand_DEFERRED_INIT): Elide the
3064         native_interpret_expr path in favor of folding the
3065         VIEW_CONVERT_EXPR generated when punning the RHS.
3067 2021-11-03  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
3069         * config/s390/s390.c (s390_loop_unroll_adjust): In case of early
3070         exit free bbs.
3072 2021-11-03  Jan Hubicka  <hubicka@ucw.cz>
3074         PR ipa/103040
3075         * ipa-modref.c (callee_to_caller_flags): New function.
3076         (modref_eaf_analysis::analyze_ssa_name): Use it.
3077         (ipa_merge_modref_summary_after_inlining): Fix whitespace.
3079 2021-11-02  Jan Hubicka  <hubicka@ucw.cz>
3081         * ipa-modref.c (modref_eaf_analysis::analyze_ssa_name): Revert
3082         accidental commit.
3084 2021-11-02  Roger Sayle  <roger@nextmovesoftware.com>
3085             Uroš Bizjak  <ubizjak@gmail.com>
3087         * config/i386/i386.md (<any_rotate>ti3): Provide expansion for
3088         rotations by non-constant amounts.
3090 2021-11-02  Jan Hubicka  <hubicka@ucw.cz>
3092         * ipa-modref.c: Fix anonymous namespace placement.
3093         (class modref_eaf_analysis): New class.
3094         (analyze_ssa_name_flags): Turn to ...
3095         (modref_eaf_analysis::analyze_ssa_name): ... this one.
3096         (merge_call_lhs_flags): Turn to ...
3097         (modref_eaf_analysis::merge_call_lhs_flags): .. this one
3098         (modref_eaf_analysis::merge_with_ssa_name): New member function.
3099         (record_escape_points): Turn to ...
3100         (modref_eaf_analysis::record_escape_points): ... this one.
3101         (analyze_parms): Updat
3102         (ipa_merge_modref_summary_after_inlining): Move to the end of file.
3104 2021-11-02  Jan Hubicka  <hubicka@ucw.cz>
3106         * gimple.c (gimple_call_static_chain_flags): New function.
3107         * gimple.h (gimple_call_static_chain_flags): Declare
3108         * ipa-modref.c (modref_summary::modref_summary): Initialize
3109         static_chain_flags.
3110         (modref_summary_lto::modref_summary_lto): Likewise.
3111         (modref_summary::useful_p): Test static_chain_flags.
3112         (modref_summary_lto::useful_p): Likewise.
3113         (struct modref_summary_lto): Add static_chain_flags.
3114         (modref_summary::dump): Dump static_chain_flags.
3115         (modref_summary_lto::dump): Likewise.
3116         (struct escape_point): Add static_cahin_arg.
3117         (analyze_ssa_name_flags): Use gimple_call_static_chain_flags.
3118         (analyze_parms): Handle static chains.
3119         (modref_summaries::duplicate): Duplicate static_chain_flags.
3120         (modref_summaries_lto::duplicate): Likewise.
3121         (modref_write): Stream static_chain_flags.
3122         (read_section): Likewise.
3123         (modref_merge_call_site_flags): Handle static_chain_flags.
3124         * ipa-modref.h (struct modref_summary): Add static_chain_flags.
3125         * tree-ssa-structalias.c (handle_rhs_call): Use
3126         gimple_static_chain_flags.
3128 2021-11-02  Richard Biener  <rguenther@suse.de>
3130         PR tree-optimization/103029
3131         * tree-vect-loop-manip.c (vect_loop_versioning): Ensure
3132         the PHI nodes in the loop maintain their original operand
3133         order.
3135 2021-11-02  Jan Hubicka  <hubicka@ucw.cz>
3137         * tree-core.h (EAF_NOT_RETURNED_DIRECTLY): New flag.
3138         (EAF_NOREAD): Renumber.
3139         * ipa-modref.c (dump_eaf_flags): Dump EAF_NOT_RETURNED_DIRECTLY.
3140         (remove_useless_eaf_flags): Handle EAF_NOT_RETURNED_DIRECTLY
3141         (deref_flags): Likewise.
3142         (modref_lattice::init): Likewise.
3143         (modref_lattice::merge): Likewise.
3144         (merge_call_lhs_flags): Likewise.
3145         (analyze_ssa_name_flags): Likewise.
3146         (modref_merge_call_site_flags): Likewise.
3147         * tree-ssa-structalias.c (handle_call_arg): Likewise.
3149 2021-11-02  Maciej W. Rozycki  <macro@embecosm.com>
3151         * config/riscv/riscv.c (riscv_rtx_costs): Correct a CONST_INT_P
3152         check and remove an unused local variable with shNadd/shNadd.uw
3153         pattern handling.
3155 2021-11-02  Tamar Christina  <tamar.christina@arm.com>
3157         PR tree-optimization/103007
3158         * tree-vect-slp-patterns.c (complex_fms_pattern::matches): Add elem
3159         check.
3161 2021-11-02  Richard Biener  <rguenther@suse.de>
3163         PR middle-end/103038
3164         * fold-const.c (native_interpret_expr): Handle OFFSET_TYPE.
3165         (can_native_interpret_type_p): Likewise.
3166         * internal-fn.c (expand_DEFERRED_INIT): View-convert the
3167         RHS if the LHS is an SSA name.
3169 2021-11-02  Richard Sandiford  <richard.sandiford@arm.com>
3171         * langhooks.h (lang_hooks_for_types::simulate_record_decl): New hook.
3172         * langhooks-def.h (lhd_simulate_record_decl): Declare.
3173         (LANG_HOOKS_SIMULATE_RECORD_DECL): Define.
3174         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
3175         * langhooks.c (lhd_simulate_record_decl): New function.
3177 2021-11-02  Jakub Jelinek  <jakub@redhat.com>
3179         PR target/103020
3180         * config/i386/i386.c (ix86_vector_mode_supported_p): Reject vector
3181         modes with TImode inner mode if 32-bit.
3183 2021-11-02  liuhongt  <hongtao.liu@intel.com>
3185         * doc/sourcebuild.texi (vect_slp_v4qi_store_unalign,
3186         vect_slp_v2hi_store_unalign, vect_slp_v4hi_store_unalign,
3187         vect_slp_v4si_store_unalign): Document efficient target.
3188         (vect_slp_v4qi_store_unalign_1, vect_slp_v8qi_store_unalign_1,
3189         vect_slp_v16qi_store_unalign_1): Ditto.
3190         (vect_slp_v2hi_store_align,vect_slp_v2qi_store_align,
3191         vect_slp_v2si_store_align, vect_slp_v4qi_store_align): Ditto.
3192         (struct_4char_block_move, struct_8char_block_move,
3193         struct_16char_block_move): Ditto.
3195 2021-11-02  Roger Sayle  <roger@nextmovesoftware.com>
3196             Jakub Jelinek  <jakub@redhat.com>
3198         PR target/102986
3199         * config/i386/i386-expand.c (ix86_expand_v1ti_to_ti,
3200         ix86_expand_ti_to_v1ti): New helper functions.
3201         (ix86_expand_v1ti_shift): Check if the amount operand is an
3202         integer constant, and expand as a TImode shift if it isn't.
3203         (ix86_expand_v1ti_rotate): Check if the amount operand is an
3204         integer constant, and expand as a TImode rotate if it isn't.
3205         (ix86_expand_v1ti_ashiftrt): New function to expand arithmetic
3206         right shifts of V1TImode quantities.
3207         * config/i386/i386-protos.h (ix86_expand_v1ti_ashift): Prototype.
3208         * config/i386/sse.md (ashlv1ti3, lshrv1ti3): Change constraints
3209         to QImode general_operand, and let the helper functions lower
3210         shifts by non-constant operands, as TImode shifts.  Make
3211         conditional on TARGET_64BIT.
3212         (ashrv1ti3): New expander calling ix86_expand_v1ti_ashiftrt.
3213         (rotlv1ti3, rotrv1ti3): Change shift operand to QImode.
3214         Make conditional on TARGET_64BIT.
3216 2021-11-02  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
3218         * config/s390/s390.md ("*cc_to_int", "tabort", "*tabort_1",
3219         "*tabort_1_plus"): Remove operands non-null check.
3221 2021-11-01  Martin Liska  <mliska@suse.cz>
3223         * opt-functions.awk: Add new sanity checking.
3224         * optc-gen.awk: Add new argument to integer_range_info.
3225         * params.opt: Update 2 params which have negative IntegerRange.
3227 2021-11-01  qing zhao  <qing.zhao@oracle.com>
3229         * gimplify.c (gimplify_decl_expr): Do not add call to
3230         __builtin_clear_padding when a variable is a gimple register
3231         or it might not have padding.
3232         (gimplify_init_constructor): Likewise.
3234 2021-11-01  Tamar Christina  <tamar.christina@arm.com>
3236         * config/arm/aarch-common-protos.h (struct vector_cost_table): Add
3237         movi, dup and extract costing fields.
3238         * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs,
3239         thunderx_extra_costs, thunderx2t99_extra_costs,
3240         thunderx3t110_extra_costs, tsv110_extra_costs, a64fx_extra_costs): Use
3241         them.
3242         * config/arm/aarch-cost-tables.h (generic_extra_costs,
3243         cortexa53_extra_costs, cortexa57_extra_costs, cortexa76_extra_costs,
3244         exynosm1_extra_costs, xgene1_extra_costs): Likewise
3245         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>): Add r->w dup.
3246         * config/aarch64/aarch64.c (aarch64_rtx_costs): Add extra costs.
3248 2021-11-01  Tamar Christina  <tamar.christina@arm.com>
3250         * cse.c (add_to_set): New.
3251         (find_sets_in_insn): Register constants in sets.
3252         (canonicalize_insn): Use auto_vec instead.
3253         (cse_insn): Try materializing using vec_dup.
3254         * rtl.h (simplify_context::simplify_gen_vec_select,
3255         simplify_gen_vec_select): New.
3256         * simplify-rtx.c (simplify_context::simplify_gen_vec_select): New.
3258 2021-11-01  David Malcolm  <dmalcolm@redhat.com>
3260         * common.opt (fdiagnostics-escape-format=): New.
3261         (diagnostics_escape_format): New enum.
3262         (DIAGNOSTICS_ESCAPE_FORMAT_UNICODE): New enum value.
3263         (DIAGNOSTICS_ESCAPE_FORMAT_BYTES): Likewise.
3264         * diagnostic-format-json.cc (json_end_diagnostic): Add
3265         "escape-source" attribute.
3266         * diagnostic-show-locus.c
3267         (exploc_with_display_col::exploc_with_display_col): Replace
3268         "tabstop" param with a cpp_char_column_policy and add an "aspect"
3269         param.  Use these to compute m_display_col accordingly.
3270         (struct char_display_policy): New struct.
3271         (layout::m_policy): New field.
3272         (layout::m_escape_on_output): New field.
3273         (def_policy): New function.
3274         (make_range): Update for changes to exploc_with_display_col ctor.
3275         (default_print_decoded_ch): New.
3276         (width_per_escaped_byte): New.
3277         (escape_as_bytes_width): New.
3278         (escape_as_bytes_print): New.
3279         (escape_as_unicode_width): New.
3280         (escape_as_unicode_print): New.
3281         (make_policy): New.
3282         (layout::layout): Initialize new fields.  Update m_exploc ctor
3283         call for above change to ctor.
3284         (layout::maybe_add_location_range): Update for changes to
3285         exploc_with_display_col ctor.
3286         (layout::calculate_x_offset_display): Update for change to
3287         cpp_display_width.
3288         (layout::print_source_line): Pass policy
3289         to cpp_display_width_computation. Capture cpp_decoded_char when
3290         calling process_next_codepoint.  Move printing of source code to
3291         m_policy.m_print_cb.
3292         (line_label::line_label): Pass in policy rather than context.
3293         (layout::print_any_labels): Update for change to line_label ctor.
3294         (get_affected_range): Pass in policy rather than context, updating
3295         calls to location_compute_display_column accordingly.
3296         (get_printed_columns): Likewise, also for cpp_display_width.
3297         (correction::correction): Pass in policy rather than tabstop.
3298         (correction::compute_display_cols): Pass m_policy rather than
3299         m_tabstop to cpp_display_width.
3300         (correction::m_tabstop): Replace with...
3301         (correction::m_policy): ...this.
3302         (line_corrections::line_corrections): Pass in policy rather than
3303         context.
3304         (line_corrections::m_context): Replace with...
3305         (line_corrections::m_policy): ...this.
3306         (line_corrections::add_hint): Update to use m_policy rather than
3307         m_context.
3308         (line_corrections::add_hint): Likewise.
3309         (layout::print_trailing_fixits): Likewise.
3310         (selftest::test_display_widths): New.
3311         (selftest::test_layout_x_offset_display_utf8): Update to use
3312         policy rather than tabstop.
3313         (selftest::test_one_liner_labels_utf8): Add test of escaping
3314         source lines.
3315         (selftest::test_diagnostic_show_locus_one_liner_utf8): Update to
3316         use policy rather than tabstop.
3317         (selftest::test_overlapped_fixit_printing): Likewise.
3318         (selftest::test_overlapped_fixit_printing_utf8): Likewise.
3319         (selftest::test_overlapped_fixit_printing_2): Likewise.
3320         (selftest::test_tab_expansion): Likewise.
3321         (selftest::test_escaping_bytes_1): New.
3322         (selftest::test_escaping_bytes_2): New.
3323         (selftest::diagnostic_show_locus_c_tests): Call the new tests.
3324         * diagnostic.c (diagnostic_initialize): Initialize
3325         context->escape_format.
3326         (convert_column_unit): Update to use default character width policy.
3327         (selftest::test_diagnostic_get_location_text): Likewise.
3328         * diagnostic.h (enum diagnostics_escape_format): New enum.
3329         (diagnostic_context::escape_format): New field.
3330         * doc/invoke.texi (-fdiagnostics-escape-format=): New option.
3331         (-fdiagnostics-format=): Add "escape-source" attribute to examples
3332         of JSON output, and document it.
3333         * input.c (location_compute_display_column): Pass in "policy"
3334         rather than "tabstop", passing to
3335         cpp_byte_column_to_display_column.
3336         (selftest::test_cpp_utf8): Update to use cpp_char_column_policy.
3337         * input.h (class cpp_char_column_policy): New forward decl.
3338         (location_compute_display_column): Pass in "policy" rather than
3339         "tabstop".
3340         * opts.c (common_handle_option): Handle
3341         OPT_fdiagnostics_escape_format_.
3342         * selftest.c (temp_source_file::temp_source_file): New ctor
3343         overload taking a size_t.
3344         * selftest.h (temp_source_file::temp_source_file): Likewise.
3346 2021-11-01  Aldy Hernandez  <aldyh@redhat.com>
3348         * dbgcnt.def: Add debug counter for back_thread[12] and
3349         back_threadfull[12].
3350         * passes.def: Pass "first" argument to each back threading pass.
3351         * tree-ssa-threadbackward.c (back_threader::back_threader): Add
3352         first argument.
3353         (back_threader::debug_counter): New.
3354         (back_threader::maybe_register_path): Call debug_counter.
3356 2021-11-01  Aldy Hernandez  <aldyh@redhat.com>
3358         * tree-ssa-threadbackward.c (BT_NONE): New.
3359         (BT_SPEED): New.
3360         (BT_RESOLVE): New.
3361         (back_threader::back_threader): Add flags.
3362         Move loop initialization here.
3363         (back_threader::~back_threader): New.
3364         (back_threader::find_taken_edge_switch): Change solver and ranger
3365         to pointers.
3366         (back_threader::find_taken_edge_cond): Same.
3367         (back_threader::find_paths_to_names): Same.
3368         (back_threader::find_paths): Same.
3369         (back_threader::dump): Same.
3370         (try_thread_blocks): Merge into thread_blocks.
3371         (back_threader::thread_blocks): New.
3372         (do_early_thread_jumps): Merge into thread_blocks.
3373         (do_thread_jumps): Merge into thread_blocks.
3374         (back_threader::thread_through_all_blocks): Remove.
3376 2021-11-01  Andrew MacLeod  <amacleod@redhat.com>
3378         PR tree-optimization/103003
3379         * value-relation.cc (dom_oracle::register_relation): If the 2
3380         ssa names are the same, don't register any relation.
3382 2021-11-01  Dan Li  <ashimida@linux.alibaba.com>
3384         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Remove
3385         redundant check for calls_eh_return.
3386         * config/aarch64/aarch64.md (*do_return): Likewise.
3388 2021-11-01  Xionghu Luo  <luoxhu@linux.ibm.com>
3390         * cfghooks.c (cfg_hook_duplicate_loop_to_header_edge): Rename
3391         duplicate_loop_to_header_edge to
3392         duplicate_loop_body_to_header_edge.
3393         (cfg_hook_duplicate_loop_body_to_header_edge): Likewise.
3394         * cfghooks.h (struct cfg_hooks): Likewise.
3395         (cfg_hook_duplicate_loop_body_to_header_edge): Likewise.
3396         * cfgloopmanip.c (duplicate_loop_body_to_header_edge): Likewise.
3397         (clone_loop_to_header_edge): Likewise.
3398         * cfgloopmanip.h (duplicate_loop_body_to_header_edge): Likewise.
3399         * cfgrtl.c (struct cfg_hooks): Likewise.
3400         * doc/loop.texi: Likewise.
3401         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
3402         (unroll_loop_runtime_iterations): Likewise.
3403         (unroll_loop_stupid): Likewise.
3404         (apply_opt_in_copies): Likewise.
3405         * tree-cfg.c (struct cfg_hooks): Likewise.
3406         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3407         (try_peel_loop): Likewise.
3408         * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise.
3409         (gimple_duplicate_loop_body_to_header_edge): Likewise.
3410         (tree_transform_and_unroll_loop): Likewise.
3411         * tree-ssa-loop-manip.h (gimple_duplicate_loop_body_to_header_edge):
3412         Likewise.
3414 2021-11-01  Xionghu Luo  <luoxhu@linux.ibm.com>
3416         * cfgloopmanip.c (loop_version): Refactor loopify to
3417         loop_version.  Move condition generation after loopify.
3418         (loopify): Delete.
3419         * cfgloopmanip.h (loopify): Delete.
3421 2021-10-31  Jan Hubicka  <hubicka@ucw.cz>
3423         * ipa-fnsummary.c: Include tree-dfa.h.
3424         (points_to_local_or_readonly_memory_p): Return true on return
3425         slot writes.
3426         * ipa-modref.c (analyze_ssa_name_flags): Fix handling of copy
3427         statement.
3429 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
3431         PR middle-end/102972
3432         * omp-low.c (omp_runtime_api_call): Use DECL_ASSEMBLER_NAME to get
3433         internal Fortran name; new permit_num_teams arg to permit
3434         omp_get_num_teams and omp_get_team_num.
3435         (scan_omp_1_stmt): Update call to it, add missing call for
3436         reverse offload, and check for strictly nested API calls in teams.
3438 2021-10-30  Jakub Jelinek  <jakub@redhat.com>
3440         * gimplify.c (gimplify_omp_for): Diagnose threadprivate iterators.
3442 2021-10-29  David Malcolm  <dmalcolm@redhat.com>
3444         * selftest.c (assert_streq): Add newlines when emitting non-equal
3445         non-NULL strings.
3447 2021-10-29  David Malcolm  <dmalcolm@redhat.com>
3449         * Makefile.in: Fix syntax for reference to LIBDEPS in
3450         gengtype link rule.
3452 2021-10-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3454         * doc/install.texi: Bump required minimum DejaGnu version.
3456 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
3457             Andrew MacLeod  <amacleod@redhat.com>
3459         * value-relation.cc (path_oracle::killing_def): Add a
3460         self-equivalence so we don't look to the root oracle.
3462 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
3464         * passes.def: Replace the pass_thread_jumps before VRP* with
3465         pass_thread_jumps_full.  Remove all pass_vrp_threader instances.
3466         * tree-ssa-threadbackward.c (pass_data_thread_jumps_full):
3467         Remove hyphen from "thread-full" name.
3469 2021-10-29  Andrew MacLeod  <amacleod@redhat.com>
3471         PR tree-optimization/102983
3472         * gimple-range-cache.h (propagate_updated_value): Make public.
3473         * gimple-range.cc (gimple_ranger::range_of_stmt): Propagate exports
3474         when processing gcond stmts.
3476 2021-10-29  Jan Hubicka  <hubicka@ucw.cz>
3478         * gimple.c (gimple_call_retslot_flags): New function.
3479         * gimple.h (gimple_call_retslot_flags): Declare.
3480         * ipa-modref.c: Include tree-cfg.h.
3481         (struct escape_entry): Turn parm_index to signed.
3482         (modref_summary_lto::modref_summary_lto): Add retslot_flags.
3483         (modref_summary::modref_summary): Initialize retslot_flags.
3484         (struct modref_summary_lto): Likewise.
3485         (modref_summary::useful_p): Check retslot_flags.
3486         (modref_summary_lto::useful_p): Likewise.
3487         (modref_summary::dump): Dump retslot_flags.
3488         (modref_summary_lto::dump): Likewise.
3489         (struct escape_point): Add hidden_args enum.
3490         (analyze_ssa_name_flags): Ignore return slot return;
3491         use gimple_call_retslot_flags.
3492         (record_escape_points): Break out from ...
3493         (analyze_parms): ... here; handle retslot_flags.
3494         (modref_summaries::duplicate): Duplicate retslot_flags.
3495         (modref_summaries_lto::duplicate): Likewise.
3496         (modref_write_escape_summary): Stream parm_index as signed.
3497         (modref_read_escape_summary): Likewise.
3498         (modref_write): Stream retslot_flags.
3499         (read_section): Likewise.
3500         (struct escape_map): Fix typo in comment.
3501         (update_escape_summary_1): Fix whitespace.
3502         (ipa_merge_modref_summary_after_inlining): Drop retslot_flags.
3503         (modref_merge_call_site_flags): Merge retslot_flags.
3504         * ipa-modref.h (struct modref_summary): Add retslot_flags.
3505         * tree-ssa-structalias.c (handle_rhs_call): Handle retslot_flags.
3507 2021-10-29  Tamar Christina  <tamar.christina@arm.com>
3509         PR tree-optimization/102977
3510         * tree-vect-slp-patterns.c (vect_match_call_p): Remove.
3511         (vect_detect_pair_op): Add crosslane check.
3512         (vect_match_call_complex_mla): Remove.
3513         (class complex_mul_pattern): Update comment.
3514         (complex_mul_pattern::matches): Update detection.
3515         (class complex_fma_pattern): Remove.
3516         (complex_fma_pattern::matches): Remove.
3517         (complex_fma_pattern::recognize): Remove.
3518         (complex_fma_pattern::build): Remove.
3519         (class complex_fms_pattern):  Update comment.
3520         (complex_fms_pattern::matches): Remove.
3521         (complex_operations_pattern::recognize): Remove complex_fma_pattern
3523 2021-10-29  Jakub Jelinek  <jakub@redhat.com>
3525         * gimple-fold.c (gimple_fold_builtin_memset): Copy over location from
3526         call to store.
3528 2021-10-29  Xionghu Luo  <luoxhu@linux.ibm.com>
3530         PR target/102868
3531         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Add
3532         patterns match and emit for VSX xxpermdi.
3534 2021-10-29  liuhongt  <hongtao.liu@intel.com>
3536         PR target/102464
3537         * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF): New
3538         function type.
3539         (V16HF_FTYPE_V16HF): Ditto.
3540         (V32HF_FTYPE_V32HF): Ditto.
3541         (V8HF_FTYPE_V8HF_ROUND): Ditto.
3542         (V16HF_FTYPE_V16HF_ROUND): Ditto.
3543         (V32HF_FTYPE_V32HF_ROUND): Ditto.
3544         * config/i386/i386-builtin.def ( IX86_BUILTIN_FLOORPH,
3545         IX86_BUILTIN_CEILPH, IX86_BUILTIN_TRUNCPH,
3546         IX86_BUILTIN_FLOORPH256, IX86_BUILTIN_CEILPH256,
3547         IX86_BUILTIN_TRUNCPH256, IX86_BUILTIN_FLOORPH512,
3548         IX86_BUILTIN_CEILPH512, IX86_BUILTIN_TRUNCPH512): New builtin.
3549         * config/i386/i386-builtins.c
3550         (ix86_builtin_vectorized_function): Enable vectorization for
3551         HFmode FLOOR/CEIL/TRUNC operation.
3552         * config/i386/i386-expand.c (ix86_expand_args_builtin): Handle
3553         new builtins.
3554         * config/i386/sse.md (rint<mode>2, nearbyint<mode>2): Extend
3555         to vector HFmodes.
3557 2021-10-28  Aldy Hernandez  <aldyh@redhat.com>
3558             Andrew MacLeod  <amacleod@redhat.com>
3560         * value-relation.cc (path_oracle::killing_def): Walk the
3561         equivalency list and remove SSA from any equivalencies.
3563 2021-10-28  Stafford Horne  <shorne@gmail.com>
3565         * config/or1k/or1k.h (PROFILE_HOOK): Add return address argument
3566         to _mcount.
3568 2021-10-28  Jakub Jelinek  <jakub@redhat.com>
3570         PR tree-optimization/102951
3571         * fold-const.h (address_compare): Declare.
3572         * fold-const.c (address_compare): New function.
3573         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Use
3574         address_compare helper.
3575         (minmax cmp (convert1?@2 addr@0) (convert2?@3 addr@1)): New
3576         simplification.
3578 2021-10-28  Andrew MacLeod  <amacleod@redhat.com>
3580         * vr-values.c (simplify_using_ranges::fold_cond): Change fold message.
3582 2021-10-28  Andrew MacLeod  <amacleod@redhat.com>
3584         PR tree-optimization/102940
3585         * tree-vrp.c (execute_ranger_vrp): Reset scev.
3587 2021-10-28  Richard Purdie  <richard.purdie@linuxfoundation.org>
3589         * config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add musl linker
3591 2021-10-28  Richard Purdie  <richard.purdie@linuxfoundation.org>
3593         * configure: Regenerate.
3594         * configure.ac: Use CPPFLAGS_FOR_BUILD for GMPINC
3596 2021-10-28  Eric Botcazou  <ebotcazou@adacore.com>
3598         * doc/invoke.texi (%X): Remove obsolete reference to -Wl.
3600 2021-10-28  Richard Biener  <rguenther@suse.de>
3602         PR middle-end/84407
3603         * fold-const.c (fold_convert_const): Avoid int to float
3604         constant folding with -frounding-math and inexact result.
3605         * simplify-rtx.c (simplify_const_unary_operation): Likewise
3606         for both float and unsigned_float.
3608 2021-10-28  Aldy Hernandez  <aldyh@redhat.com>
3610         * tree-ssa-threadbackward.c
3611         (back_threader::find_taken_edge_switch): Use find_case_label_range
3612         instead of find_taken_edge.
3614 2021-10-28  Aldy Hernandez  <aldyh@redhat.com>
3616         * tree-ssa-threadbackward.c (class back_threader_registry):
3617         Inherit from back_jt_path_registry.
3618         (back_threader_registry::thread_through_all_blocks): Remove.
3619         (back_threader_registry::register_path): Remove
3620         m_lowlevel_registry prefix.
3622 2021-10-28  Richard Biener  <rguenther@suse.de>
3624         PR middle-end/57245
3625         * fold-const.c (fold_convert_const_real_from_real): Honor
3626         -frounding-math if the conversion is not exact.
3627         * simplify-rtx.c (simplify_const_unary_operation): Do not
3628         simplify FLOAT_TRUNCATE with sign dependent rounding.
3630 2021-10-28  Richard Biener  <rguenther@suse.de>
3632         PR tree-optimization/102949
3633         * tree-vect-stmts.c (ensure_base_align): Look at the
3634         dr_info of a group leader and assert we are looking at
3635         one with analyzed alignment.
3637 2021-10-28  Kewen Lin  <linkw@linux.ibm.com>
3639         PR target/102767
3640         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Consider
3641         V1T1 mode for unaligned load and store.
3643 2021-10-28  Kito Cheng  <kito.cheng@sifive.com>
3645         * config/riscv/riscv.md (zero_extendsidi2_internal): Allow ZBB
3646         use this pattern.
3648 2021-10-28  Kito Cheng  <kito.cheng@sifive.com>
3650         * config/riscv/arch-canonicalize (CANONICAL_ORDER): Add `i` to
3651         CANONICAL_ORDER.
3653 2021-10-28  Alexandre Oliva  <oliva@adacore.com>
3655         * common.opt (fharden-compares): New.
3656         (fharden-conditional-branches): New.
3657         * doc/invoke.texi: Document new options.
3658         * gimple-harden-conditionals.cc: New.
3659         * Makefile.in (OBJS): Build it.
3660         * passes.def: Add new passes.
3661         * tree-pass.h (make_pass_harden_compares): Declare.
3662         (make_pass_harden_conditional_branches): Declare.
3664 2021-10-28  Xionghu Luo  <luoxhu@linux.ibm.com>
3666         PR target/94613
3667         * config/rs6000/altivec.md: Add vsx register constraints.
3668         * config/rs6000/vsx.md (vsx_xxsel<mode>): Delete.
3669         (vsx_xxsel<mode>2): Likewise.
3670         (vsx_xxsel<mode>3): Likewise.
3671         (vsx_xxsel<mode>4): Likewise.
3673 2021-10-28  Xionghu Luo  <luoxhu@linux.ibm.com>
3675         PR target/94613
3676         * config/rs6000/altivec.md (*altivec_vsel<mode>): Change to ...
3677         (altivec_vsel<mode>): ... this and update define.
3678         (*altivec_vsel<mode>_uns): Delete.
3679         (altivec_vsel<mode>2): New define_insn.
3680         (altivec_vsel<mode>3): Likewise.
3681         (altivec_vsel<mode>4): Likewise.
3682         * config/rs6000/rs6000-call.c (altivec_expand_vec_sel_builtin): New.
3683         (altivec_expand_builtin): Call altivec_expand_vec_sel_builtin to expand
3684         vel_sel.
3685         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use bit-wise
3686         selection instead of per element.
3687         * config/rs6000/vector.md:
3688         * config/rs6000/vsx.md (*vsx_xxsel<mode>): Change to ...
3689         (vsx_xxsel<mode>): ... this and update define.
3690         (*vsx_xxsel<mode>_uns): Delete.
3691         (vsx_xxsel<mode>2): New define_insn.
3692         (vsx_xxsel<mode>3): Likewise.
3693         (vsx_xxsel<mode>4): Likewise.
3695 2021-10-28  Hongyu Wang  <hongyu.wang@intel.com>
3697         * config/i386/i386.c (use_rsqrt_p): Add mode parameter, enable
3698           HFmode rsqrt without TARGET_SSE_MATH.
3699         (ix86_optab_supported_p): Refactor rint, adjust floor, ceil,
3700         btrunc condition to be restricted by -ftrapping-math, adjust
3701         use_rsqrt_p function call.
3702         * config/i386/i386.md (rcphf2): New define_insn.
3703         (rsqrthf2): Likewise.
3704         * config/i386/sse.md (div<mode>3): Change VF2H to VF2.
3705         (div<mode>3): New expander for HF mode.
3706         (rsqrt<mode>2): Likewise.
3707         (*avx512fp16_vmrcpv8hf2): New define_insn for rpad pass.
3708         (*avx512fp16_vmrsqrtv8hf2): Likewise.
3710 2021-10-27  Saagar Jha  <saagar@saagarjha.com>
3712         * config.gcc: Adjust for Darwin21.
3713         * config/darwin-c.c (macosx_version_as_macro): Likewise.
3714         * config/darwin-driver.c (validate_macosx_version_min):
3715         Likewise.
3716         (darwin_find_version_from_kernel): Likewise.
3718 2021-10-27  Aldy Hernandez  <aldyh@redhat.com>
3720         * gimple-range-path.cc
3721         (path_range_query::range_defined_in_block): Call killing_def.
3723 2021-10-27  Aldy Hernandez  <aldyh@redhat.com>
3725         * gimple-range-fold.cc (fold_using_range::range_of_range_op): Dump
3726         operands as well as relation.
3727         * gimple-range-path.cc
3728         (path_range_query::compute_ranges_in_block): Compute PHI relations
3729         first.  Compute outgoing relations at the end.
3730         (path_range_query::compute_ranges): Remove call to compute_relations.
3731         (path_range_query::compute_relations): Remove.
3732         (path_range_query::maybe_register_phi_relation): New.
3733         (path_range_query::compute_phi_relations): Abstract out
3734         registering one PHI relation to...
3735         (path_range_query::compute_outgoing_relations): ...here.
3736         * gimple-range-path.h (class path_range_query): Remove
3737         compute_relations.
3738         Add maybe_register_phi_relation.
3740 2021-10-27  Aldy Hernandez  <aldyh@redhat.com>
3741             Andrew MacLeod  <amacleod@redhat.com>
3743         * value-relation.cc (path_oracle::killing_def): Kill second
3744         order relations.
3746 2021-10-27  Martin Jambor  <mjambor@suse.cz>
3748         * ipa-cp.c (good_cloning_opportunity_p): Decide whether to use
3749         profile feedback depending on their local availability.
3751 2021-10-27  Martin Jambor  <mjambor@suse.cz>
3753         * params.opt (param_ipa_cp_profile_count_base): New parameter.
3754         * doc/invoke.texi (Optimize Options): Add entry for
3755         ipa-cp-profile-count-base.
3756         * ipa-cp.c (max_count): Replace with base_count, replace all
3757         occurrences too, unless otherwise stated.
3758         (ipcp_cloning_candidate_p): identify mostly-directly called
3759         functions based on their counts, not max_count.
3760         (compare_edge_profile_counts): New function.
3761         (ipcp_propagate_stage): Instead of setting max_count, find the
3762         appropriate edge count in a sorted vector of counts of eligible
3763         edges and make it the base_count.
3765 2021-10-27  Martin Jambor  <mjambor@suse.cz>
3767         * ipa-cp.c (struct caller_statistics): New fields rec_count_sum,
3768         n_nonrec_calls and itself, document all fields.
3769         (init_caller_stats): Initialize the above new fields.
3770         (gather_caller_stats): Gather self-recursive counts and calls number.
3771         (get_info_about_necessary_edges): Gather counts of self-recursive and
3772         other edges bringing in the requested value separately.
3773         (dump_profile_updates): Rework to dump info about a single node only.
3774         (lenient_count_portion_handling): New function.
3775         (struct gather_other_count_struct): New type.
3776         (gather_count_of_non_rec_edges): New function.
3777         (struct desc_incoming_count_struct): New type.
3778         (analyze_clone_icoming_counts): New function.
3779         (adjust_clone_incoming_counts): Likewise.
3780         (update_counts_for_self_gen_clones): Likewise.
3781         (update_profiling_info): Rewritten.
3782         (update_specialized_profile): Adjust call to dump_profile_updates.
3783         (create_specialized_node): Do not update profiling info.
3784         (decide_about_value): New parameter self_gen_clones, either push new
3785         clones into it or updat their profile counts.  For self-recursively
3786         generated values, use a portion of the node count instead of count
3787         from self-recursive edges to estimate goodness.
3788         (decide_whether_version_node): Gather clones for self-generated values
3789         in a new vector, update their profiles at once at the end.
3791 2021-10-27  Richard Biener  <rguenther@suse.de>
3793         * tree-vectorizer.c (vect_transform_loops): New function,
3794         split out from ...
3795         (try_vectorize_loop_1): ... here.  Simplify as epilogues
3796         are now fully handled in the split part.
3798 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
3800         * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
3801         iterators with pointer types.
3802         (expand_omp_for_init_vars, extract_omp_for_update_vars): Likewise.
3804 2021-10-26  Martin Sebor  <msebor@redhat.com>
3806         PR tree-optimization/102238
3807         PR tree-optimization/102919
3808         * gimple-ssa-sprintf.c (get_string_length): Add an argument.
3809         (array_elt_at_offset): Move to pointer-query.
3810         (set_aggregate_size_and_offset): New function.
3811         (field_at_offset):  Move to pointer-query.
3812         (get_origin_and_offset): Rename...
3813         (get_origin_and_offset_r): this.  Add an argument.  Make aggregate
3814         handling more robust.
3815         (get_origin_and_offset): New.
3816         (alias_offset): Add an argument.
3817         (format_string): Use subobject size determined by get_origin_and_offset.
3818         * pointer-query.cc (field_at_offset): Move from gimple-ssa-sprintf.c.
3819         Improve/correct handling of aggregates.
3820         (array_elt_at_offset): Same.
3821         * pointer-query.h (field_at_offset): Declare.
3822         (array_elt_at_offset): Declare.
3824 2021-10-26  Martin Sebor  <msebor@redhat.com>
3826         * builtins.c (check_strncat_sizes): Pass access_data ctor additional
3827         arguments.
3828         (expand_builtin_memcmp): Move code to gimple-ssa-warn-access.cc.
3829         (expand_builtin_fork_or_exec): Same.
3830         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Pass
3831         compute_objsize additional arguments.
3832         (inbounds_memaccess_p): Same.
3833         (array_bounds_checker::check_array_bounds): Add an assert.  Stash
3834         statement in a member.
3835         (check_array_bounds_dom_walker::before_dom_children): Same.
3836         * gimple-array-bounds.h (array_bounds_checker::m_stmt): New member.
3837         * gimple-ssa-sprintf.c (get_destination_size): Add an argument.
3838         (handle_printf_call): Pass a new argument.
3839         * gimple-ssa-warn-access.cc (get_size_range): Add an argument.
3840         (check_access): Add an argument and pass it along to callees.
3841         (check_read_access): Make a member function.
3842         (pass_waccess::check_strcat): Pass access_data ctor additional
3843         arguments.
3844         (pass_waccess::check_strncat): Same.
3845         (pass_waccess::check_stxcpy): Same.
3846         (pass_waccess::check_stxncpy): Same.
3847         (pass_waccess::check_strncmp): Same.
3848         (pass_waccess::check_read_access): Same.
3849         (pass_waccess::check_builtin): Same.
3850         (pass_waccess::maybe_check_access_sizes): Same.
3851         (pass_waccess::maybe_check_dealloc_call): Same.
3852         * gimple-ssa-warn-access.h (check_read_access): Declare a new
3853         member function.
3854         * pointer-query.cc (compute_objsize_r): Add an argument.
3855         (gimple_call_return_array): Same.
3856         (gimple_call_alloc_size): Same.
3857         (access_ref::access_ref): Same.
3858         (access_ref::get_ref): Same.
3859         (pointer_query::get_ref): Same.
3860         (handle_min_max_size): Pass an arguments to callees.
3861         (handle_array_ref): Add an argument.
3862         (handle_mem_ref): Same.
3863         (compute_objsize): Same.
3864         * pointer-query.h (struct access_ref): Adjust signatures.
3865         (struct access_data): Same.
3866         (gimple_call_alloc_size): Add an argument.
3867         (gimple_parm_array_size): Same.
3868         (compute_objsize): Same.
3869         * tree-ssa-strlen.c (strlen_pass::adjust_last_stmt): Pass an additional
3870         argument to compute_objsize.
3871         (strlen_pass::maybe_warn_overflow): Same.
3872         (maybe_diag_stxncpy_trunc): Same.
3874 2021-10-26  Martin Sebor  <msebor@redhat.com>
3876         PR middle-end/102453
3877         * gimple-ssa-warn-access.cc (pass_waccess::check_atomic_builtin): New.
3878         (pass_waccess::check_atomic_builtin): Call it.
3880 2021-10-26  Vladimir N. Makarov  <vmakarov@redhat.com>
3882         PR rtl-optimization/102842
3883         * lra-constraints.c (match_reload): Ignore out in checking values
3884         of outs.
3885         (curr_insn_transform): Collect outputs before doing reloads of operands.
3887 2021-10-26  Paul A. Clarke  <pc@us.ibm.com>
3889         PR target/102719
3890         * config/rs6000/x86intrin.h: Move some included headers to new
3891         headers.  Include new immintrin.h instead of those headers.
3892         * config/rs6000/immintrin.h: New.
3893         * config/rs6000/x86gprintrin.h: New.
3894         * config.gcc (powerpc*-*-*): Add new headers to extra_headers.
3896 2021-10-26  Richard Biener  <rguenther@suse.de>
3898         * tree-vectorizer.h (vect_create_addr_base_for_vector_ref):
3899         Remove byte_offset parameter.
3900         (vect_create_data_ref_ptr): Likewise.
3901         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3902         Likewise.
3903         (vect_create_data_ref_ptr): Likewise.
3904         * tree-vect-stmts.c (vectorizable_store): Adjust.
3905         (vectorizable_load): Likewise.
3907 2021-10-26  Richard Biener  <rguenther@suse.de>
3909         PR tree-optimization/96109
3910         * tree-vectorizer.h (dr_misalignment): Add optional offset
3911         parameter.
3912         * tree-vect-data-refs.c (dr_misalignment): Likewise.  Remove
3913         offset applied for negative stride accesses.
3914         (vect_enhance_data_refs_alignment): Compute negative stride
3915         access offset and pass it to dr_misalignment.
3916         * tree-vect-stmts.c (get_negative_load_store_type): Pass
3917         negative offset to dr_misalignment.
3918         (get_group_load_store_type): Likewise.
3919         (get_load_store_type): Likewise.
3920         (vectorizable_store): Remove asserts about alignment.
3921         (vectorizable_load): Likewise.
3923 2021-10-26  Kewen Lin  <linkw@linux.ibm.com>
3925         PR tree-optimization/102897
3926         * tree-ssa-forwprop.c (simplify_permutation): Remove a wrong assertion.
3928 2021-10-26  Richard Biener  <rguenther@suse.de>
3930         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3931         Take offset in bytes.
3932         (vect_create_data_ref_ptr): Likewise.
3933         * tree-vect-loop-manip.c (get_misalign_in_elems): Multiply
3934         offset by element size.
3935         (vect_create_cond_for_align_checks): Likewise.
3936         * tree-vect-stmts.c (get_negative_load_store_type): Likewise.
3937         (vectorizable_load): Remove duplicate leftover from merge
3938         conflict.
3940 2021-10-26  Roger Sayle  <roger@nextmovesoftware.com>
3942         * config/i386/i386-expand.c (ix86_expand_v1ti_shift): New helper
3943         function to expand V1TI mode logical shifts by integer constants.
3944         (ix86_expand_v1ti_rotate): New helper function to expand V1TI
3945         mode rotations by integer constants.
3946         * config/i386/i386-protos.h (ix86_expand_v1ti_shift,
3947         ix86_expand_v1ti_rotate): Prototype new functions here.
3948         * config/i386/sse.md (ashlv1ti3, lshrv1ti3, rotlv1ti3, rotrv1ti3):
3949         New TARGET_SSE2 expanders to implement V1TI shifts and rotations.
3951 2021-10-26  Aldy Hernandez  <aldyh@redhat.com>
3953         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
3954         Avoid threading circular paths.
3956 2021-10-26  Aldy Hernandez  <aldyh@redhat.com>
3958         * tree-ssa-threadbackward.c (back_threader::resolve_phi):
3959         Attempt to resolve all incoming paths to a PHI.
3960         (back_threader::resolve_def): Always return true for PHIs.
3962 2021-10-26  Aldy Hernandez  <aldyh@redhat.com>
3964         * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
3965         Always try to resolve path without looking back.
3966         * tree-ssa-threadupdate.c (dump_jump_thread): Indidicate whether
3967         edge is a back edge.
3969 2021-10-26  Kewen Lin  <linkw@linux.ibm.com>
3971         PR tree-optimization/102789
3972         * tree-vect-loop-manip.c (vect_update_inits_of_drs): Do not
3973         update inits of simd_lane_access.
3975 2021-10-25  Andrew MacLeod  <amacleod@redhat.com>
3977         * tree-vrp.c (vrp_simplify_cond_using_ranges): Add return type and
3978         move to vr-values.c.
3979         (simplify_casted_conds): Move to vrp_folder class.
3980         (execute_vrp): Call via vrp_folder now.
3981         * vr-values.c (simplify_cond_using_ranges_1): Call simplify_casted_cond.
3982         (simplify_using_ranges::simplify_casted_cond): Relocate from tree-vrp.c.
3983         * vr-values.h (simplify_casted_cond): Add prototype.
3985 2021-10-25  Andrew MacLeod  <amacleod@redhat.com>
3987         * tree-vrp.c (rvrp_folder::fold_stmt): If simplification fails, try
3988         to fold anyway.
3990 2021-10-25  Paul A. Clarke  <pc@us.ibm.com>
3992         * config/rs6000/smmintrin.h (_mm_testz_si128): Add "extern" to
3993         function signature.
3994         (_mm_testc_si128): Likewise.
3995         (_mm_testnzc_si128): Likewise.
3996         (_mm_blend_ps): Likewise.
3997         (_mm_blendv_ps): Likewise.
3998         (_mm_blend_pd): Likewise.
3999         (_mm_blendv_pd): Likewise.
4000         (_mm_ceil_pd): Likewise.
4001         (_mm_ceil_sd): Likewise.
4002         (_mm_ceil_ps): Likewise.
4003         (_mm_ceil_ss): Likewise.
4004         (_mm_floor_pd): Likewise.
4005         (_mm_floor_sd): Likewise.
4006         (_mm_floor_ps): Likewise.
4007         (_mm_floor_ss): Likewise.
4008         (_mm_minpos_epu16): Likewise.
4009         (_mm_mul_epi32): Likewise.
4010         (_mm_cvtepi8_epi16): Likewise.
4011         (_mm_packus_epi32): Likewise.
4012         (_mm_cmpgt_epi64): Likewise.
4014 2021-10-25  Roger Sayle  <roger@nextmovesoftware.com>
4016         * simplify-rtx.c (simplify_binary_operation_1) [SS_ASHIFT]: Simplify
4017         shifts of the mode's smin_value and smax_value when the bit count
4018         operand doesn't have side-effects.
4019         [US_ASHIFT]: Likewise, simplify shifts of the mode's umax_value
4020         when the bit count operand doesn't have side-effects.
4021         (simplify_const_binary_operation) [SS_ASHIFT, US_ASHIFT]: Perform
4022         compile-time evaluation of saturating left shifts with constant
4023         arguments.
4025 2021-10-25  Andrew MacLeod  <amacleod@redhat.com>
4027         * gimple-range.cc (gimple_ranger::export_global_ranges): Remove check
4028         for TDF_DETAILS.
4030 2021-10-25  Andrew MacLeod  <amacleod@redhat.com>
4032         * flag-types.h (enum ranger_debug): Adjust values.
4033         * params.opt (ranger_debug): Ditto.
4035 2021-10-25  Martin Jambor  <mjambor@suse.cz>
4037         PR tree-optimization/102886
4038         * tree-sra.c (totally_scalarize_subtree): Fix the out of
4039         access-condition.
4041 2021-10-25  Andrew Pinski  <apinski@marvell.com>
4043         * tree-ssa-dce.c (simple_dce_from_worklist):
4044         Check stmt_unremovable_because_of_non_call_eh_p also
4045         before removing the statement.
4047 2021-10-25  Richard Biener  <rguenther@suse.de>
4049         PR tree-optimization/102905
4050         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4051         Use vect_supportable_dr_alignment again to determine whether
4052         an access is supported when not aligned.
4054 2021-10-25  Kito Cheng  <kito.cheng@sifive.com>
4056         * config/riscv/riscv.c (riscv_rtx_costs): Handle cost model
4057         for zbs extension.
4059 2021-10-25  Jim Wilson  <jimw@sifive.com>
4060             Kito Cheng  <kito.cheng@sifive.com>
4061             Jia-Wei Chen  <jiawei@iscas.ac.cn>
4062             Shi-Hua Liao  <shihua@iscas.ac.cn>
4064         * config/riscv/bitmanip.md (shiftm1): New.
4065         (*bset<mode>): Ditto.
4066         (*bset<mode>_mask): Ditto.
4067         (*bset<mode>_1): Ditto.
4068         (*bset<mode>_1_mask): Ditto.
4069         (*bseti<mode>): Ditto.
4070         (*bclr<mode>): Ditto.
4071         (*bclri<mode>): Ditto.
4072         (*binv<mode>): Ditto.
4073         (*binvi<mode>): Ditto.
4074         (*bext<mode>): Ditto.
4075         (*bexti): Ditto.
4076         * config/riscv/predicates.md (splittable_const_int_operand):
4077         Handle bseti.
4078         (single_bit_mask_operand): New.
4079         (not_single_bit_mask_operand): Ditto.
4080         (const31_operand): Ditto.
4081         (const63_operand): Ditto.
4082         * config/riscv/riscv.c (riscv_build_integer_1): Handle bseti.
4083         (riscv_output_move): Ditto.
4084         (riscv_print_operand): Handle new operand type: T and S.
4085         * config/riscv/riscv.h (SINGLE_BIT_MASK_OPERAND): New.
4087 2021-10-25  Jim Wilson  <jimw@sifive.com>
4089         * config/riscv/riscv.c (riscv_build_integer_1): Build integer
4090         with rotate.
4092 2021-10-25  Kito Cheng  <kito.cheng@sifive.com>
4094         * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
4095         for zbb extension.
4096         (riscv_rtx_costs): Ditto.
4098 2021-10-25  Jim Wilson  <jimw@sifive.com>
4099             Kito Cheng  <kito.cheng@sifive.com>
4100             Jia-Wei Chen  <jiawei@iscas.ac.cn>
4102         * config/riscv/bitmanip.md (bitmanip_bitwise): New.
4103         (bitmanip_minmax): New.
4104         (clz_ctz_pcnt): New.
4105         (bitmanip_optab): New.
4106         (bitmanip_insn): New.
4107         (*<optab>_not<mode>): New.
4108         (*xor_not<mode>): New.
4109         (<bitmanip_optab>si2): New.
4110         (*<bitmanip_optab>disi2): New.
4111         (<bitmanip_optab>di2): New.
4112         (*zero_extendhi<GPR:mode>2_bitmanip): New.
4113         (*extend<SHORT:mode><SUPERQI:mode>2_zbb): New.
4114         (*zero_extendhi<GPR:mode>2_zbb): New.
4115         (rotrsi3): New.
4116         (rotrdi3): New.
4117         (rotrsi3_sext): New.
4118         (rotlsi3): New.
4119         (rotldi3): New.
4120         (rotlsi3_sext): New.
4121         (bswap<mode>2): New.
4122         (<bitmanip_optab><mode>3): New.
4123         * config/riscv/riscv.md (type): Add rotate.
4124         (zero_extendhi<GPR:mode>2): Change to define_expand pattern.
4125         (*zero_extendhi<GPR:mode>2): New.
4126         (extend<SHORT:mode><SUPERQI:mode>2): Change to define_expand pattern.
4127         (*extend<SHORT:mode><SUPERQI:mode>2): New.
4129 2021-10-25  Kito Cheng  <kito.cheng@sifive.com>
4131         * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
4132         for zba extension.
4133         (riscv_rtx_costs): Ditto.
4135 2021-10-25  Jim Wilson  <jimw@sifive.com>
4136             Kito Cheng  <kito.cheng@sifive.com>
4137             Jia-Wei Chen  <jiawei@iscas.ac.cn>
4139         * config/riscv/bitmanip.md (*zero_extendsidi2_bitmanip): New.
4140         (*shNadd): Ditto.
4141         (*shNadduw): Ditto.
4142         (*add.uw): Ditto.
4143         (*slliuw): Ditto.
4144         (riscv_rtx_costs): Ditto.
4145         * config/riscv/riscv.md: Include bitmanip.md
4146         (type): Add bitmanip bype.
4147         (zero_extendsidi2): Change to define_expand pattern.
4148         (*zero_extendsidi2_internal): New.
4149         (zero_extendsidi2_shifted): Disable for ZBA.
4151 2021-10-25  Kito Cheng  <kito.cheng@sifive.com>
4153         * common/config/riscv/riscv-common.c (riscv_ext_version_table):
4154         Add zba, zbb, zbc and zbs.
4155         (riscv_ext_flag_table): Ditto.
4156         * config/riscv/riscv-opts.h (MASK_ZBA): New.
4157         (MASK_ZBB): Ditto.
4158         (MASK_ZBC): Ditto.
4159         (MASK_ZBS): Ditto.
4160         (TARGET_ZBA): Ditto.
4161         (TARGET_ZBB): Ditto.
4162         (TARGET_ZBC): Ditto.
4163         (TARGET_ZBS): Ditto.
4164         * config/riscv/riscv.opt (riscv_zb_subext): New.
4166 2021-10-25  liuhongt  <hongtao.liu@intel.com>
4168         PR target/102464
4169         * match.pd: Simplify (_Float16) sqrtf((float) a) to .SQRT(a)
4170         when direct_internal_fn_supported_p, similar for sqrt/sqrtl.
4172 2021-10-25  Richard Biener  <rguenther@suse.de>
4174         PR tree-optimization/102920
4175         * tree-ssa-sccvn.h (expressions_equal_p): Add argument
4176         controlling VN_TOP matching behavior.
4177         * tree-ssa-sccvn.c (expressions_equal_p): Likewise.
4178         (vn_phi_eq): Do not optimistically match VN_TOP.
4180 2021-10-25  konglin1  <lingling.kong@intel.com>
4182         * config/i386/sse.md (fma_<mode>_fadd_fmul): Add new
4183         define_insn_and_split.
4184         (fma_<mode>_fadd_fcmul):Likewise
4185         (fma_<complexopname>_<mode>_fma_zero):Likewise
4187 2021-10-24  John David Anglin  <danglin@gcc.gnu.org>
4189         * config/pa/pa-d.c (pa_d_handle_target_float_abi): Don't check
4190         TARGET_DISABLE_FPREGS.
4191         * config/pa/pa.c (fix_range): Use MASK_SOFT_FLOAT instead of
4192         MASK_DISABLE_FPREGS.
4193         (hppa_rtx_costs): Don't check TARGET_DISABLE_FPREGS.  Adjust
4194         cost of hardware integer multiplication.
4195         (pa_conditional_register_usage): Don't check TARGET_DISABLE_FPREGS.
4196         * config/pa/pa.h (INT14_OK_STRICT): Likewise.
4197         * config/pa/pa.md: Don't check TARGET_DISABLE_FPREGS. Check
4198         TARGET_SOFT_FLOAT in patterns that use xmpyu instruction.
4199         * config/pa/pa.opt (mdisable-fpregs): Change target mask to
4200         SOFT_FLOAT.  Revise comment.
4201         (msoft-float): New option.
4203 2021-10-24  John David Anglin  <danglin@gcc.gnu.org>
4205         * config/pa/pa.md: Don't use 'G' constraint in integer move patterns.
4207 2021-10-24  Gerald Pfeifer  <gerald@pfeifer.com>
4209         * doc/install.texi (Specific): Remove obsolete details
4210         around GNU/Linux on Itanium.
4211         (Specific): Remove reference to Windows for Itanium.
4213 2021-10-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4215         * config/i386/x86-tune-sched-bd.c (dispatch_group): Commentary
4216         typo fix.
4218 2021-10-23  Jan Hubicka  <hubicka@ucw.cz>
4220         * tree-ssa-structalias.c (compute_points_to_sets): Cleanup.
4222 2021-10-23  Roger Sayle  <roger@nextmovesoftware.com>
4224         * config/i386/sse.md (<any_logic>v1ti3): New define_insn to
4225         implement V1TImode AND, IOR and XOR on TARGET_SSE2 (and above).
4226         (one_cmplv1ti2): New define expand.
4228 2021-10-22  Eric Gallager  <egallager@gcc.gnu.org>
4230         PR other/102663
4231         * Makefile.in: Handle dvidir and install-dvi target.
4232         * configure: Regenerate.
4233         * configure.ac: Add install-dvi to target_list.
4235 2021-10-22  Gerald Pfeifer  <gerald@pfeifer.com>
4237         * doc/install.texi (Binaries): Convert mingw-w64.org to https.
4238         (Specific): Ditto.
4240 2021-10-22  Richard Biener  <rguenther@suse.de>
4242         PR tree-optimization/102893
4243         * tree-ssa-dce.c (find_obviously_necessary_stmts): Fix the
4244         test for an exit edge.
4246 2021-10-22  Aldy Hernandez  <aldyh@redhat.com>
4247             Andrew MacLeod  <amacleod@redhat.com>
4249         * gimple-range-path.cc (path_range_query::compute_phi_relations):
4250         Kill any global relations we may know before registering a new
4251         one.
4252         * value-relation.cc (path_oracle::killing_def): New.
4253         * value-relation.h (path_oracle::killing_def): New.
4255 2021-10-22  Richard Biener  <rguenther@suse.de>
4257         PR bootstrap/102681
4258         * tree-ssa-sccvn.c (vn_phi_insert): For undefined SSA args
4259         record VN_TOP.
4260         (vn_phi_lookup): Likewise.
4262 2021-10-21  H.J. Lu  <hjl.tools@gmail.com>
4264         PR target/98667
4265         * doc/invoke.texi: Document -fcf-protection requires i686 or
4266         new.
4268 2021-10-21  Eric Botcazou  <ebotcazou@adacore.com>
4270         PR middle-end/102764
4271         * cfgexpand.c (expand_gimple_basic_block): Robustify latest change.
4273 2021-10-21  Jonathan Wright  <jonathan.wright@arm.com>
4275         * config/aarch64/arm_neon.h (__STRUCTN): Delete function
4276         macro and all invocations.
4278 2021-10-21  Andrew MacLeod  <amacleod@redhat.com>
4280         * doc/invoke.texi (ranger-debug): Document.
4281         * flag-types.h (enum ranger_debug): New.
4282         (enum evrp_mode): Remove debug values.
4283         * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Use new debug flag.
4284         * gimple-range-gori.cc (gori_compute::gori_compute): Ditto.
4285         * gimple-range.cc (gimple_ranger::gimple_ranger): Ditto.
4286         * gimple-ssa-evrp.c (hybrid_folder::choose_value): Ditto.
4287         (execute_early_vrp): Use evrp-mode directly.
4288         * params.opt (enum evrp_mode): Remove debug values.
4289         (ranger-debug): New.
4290         (ranger-logical-depth): Relocate to be in alphabetical order.
4292 2021-10-21  Andrew MacLeod  <amacleod@redhat.com>
4294         * doc/invoke.texi: (vrp1-mode, vrp2-mode): Document.
4295         * flag-types.h: (enum vrp_mode): New.
4296         * params.opt: (vrp1-mode, vrp2-mode): New.
4297         * tree-vrp.c (vrp_pass_num): New.
4298         (pass_vrp::pass_vrp): Set pass number.
4299         (pass_vrp::execute): Choose which VRP mode to execute.
4301 2021-10-21  Andrew MacLeod  <amacleod@redhat.com>
4303         * gimple-ssa-evrp.c (class rvrp_folder): Move to tree-vrp.c.
4304         (execute_early_vrp): For ranger only mode, invoke ranger_vrp.
4305         * tree-vrp.c (class rvrp_folder): Relocate here.
4306         (execute_ranger_vrp): New.
4307         * tree-vrp.h (execute_ranger_vrp): Export.
4309 2021-10-21  Martin Liska  <mliska@suse.cz>
4311         PR debug/102585
4312         PR bootstrap/102766
4313         * opts.c (finish_options): Process flag_var_tracking* options
4314         here as they can be adjusted by optimize attribute.
4315         Process also flag_syntax_only and flag_gtoggle.
4316         * toplev.c (process_options): Remove it here.
4317         * common.opt: Make debug_nonbind_markers_p as PerFunction
4318         attribute as it depends on optimization level.
4320 2021-10-21  Martin Jambor  <mjambor@suse.cz>
4322         PR tree-optimization/102505
4323         * tree-sra.c (totally_scalarize_subtree): Check that the
4324         encountered field fits within the acces we would like to put it
4325         in.
4327 2021-10-21  Aldy Hernandez  <aldyh@redhat.com>
4329         * tree-ssa-threadbackward.c
4330         (back_threader::maybe_register_path): Remove circular paths check.
4332 2021-10-21  Richard Biener  <rguenther@suse.de>
4334         * toplev.c (process_options): Move the initial debug_hooks
4335         setting ...
4336         (toplev::main): ... before the call of the post_options
4337         langhook.
4339 2021-10-21  Richard Biener  <rguenther@suse.de>
4341         PR tree-optimization/102847
4342         * tree-vect-stmts.c (vect_model_load_cost): Add the scalar
4343         load cost in the prologue for VMAT_INVARIANT.
4345 2021-10-21  Richard Biener  <rguenther@suse.de>
4347         PR tree-optimization/102847
4348         * tree-vect-stmts.c (vect_model_load_cost): Explicitely
4349         handle VMAT_INVARIANT as a splat in the prologue.
4351 2021-10-21  Hongyu Wang  <hongyu.wang@intel.com>
4353         PR target/102812
4354         * config/i386/i386.c (ix86_get_ssemov): Adjust HFmode vector
4355         move to use the same logic as HImode.
4357 2021-10-21  Richard Biener  <rguenther@suse.de>
4359         * tree-vect-slp.c (vect_build_slp_tree_1): Remove
4360         superfluous gimple_call_nothrow_p check.
4362 2021-10-21  Andrew Pinski  <apinski@marvell.com>
4364         * tree-cfg.c (maybe_remove_writeonly_store): Add dce_ssa_names argument.
4365         Mark the ssa-name of the rhs as one to be removed.
4366         (execute_fixup_cfg): Update call to maybe_remove_writeonly_store.
4367         Call simple_dce_from_worklist at the end to a simple dce.
4369 2021-10-21  Andrew Pinski  <apinski@marvell.com>
4371         * tree-cfg.c (maybe_remove_writeonly_store): New function
4372         factored out from ...
4373         (execute_fixup_cfg): Here. Call maybe_remove_writeonly_store.
4375 2021-10-21  Andrew Pinski  <apinski@marvell.com>
4377         * tree-cfg.c (execute_fixup_cfg): Remove comment
4378         about standalone pass.
4380 2021-10-21  Andrew Pinski  <apinski@marvell.com>
4382         * tree-cfg.c (execute_fixup_cfg): Output when the statement
4383         is removed when it is a write only var.
4385 2021-10-21  Aldy Hernandez  <aldyh@redhat.com>
4387         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
4388         Avoid threading circular paths.
4390 2021-10-20  Alex Coplan  <alex.coplan@arm.com>
4392         * calls.c (initialize_argument_information): Remove some dead
4393         code, remove handling for function_arg returning const_int.
4394         * doc/tm.texi: Delete documentation for unused target hooks.
4395         * doc/tm.texi.in: Likewise.
4396         * target.def (load_bounds_for_arg): Delete.
4397         (store_bounds_for_arg): Delete.
4398         (load_returned_bounds): Delete.
4399         (store_returned_bounds): Delete.
4400         * targhooks.c (default_load_bounds_for_arg): Delete.
4401         (default_store_bounds_for_arg): Delete.
4402         (default_load_returned_bounds): Delete.
4403         (default_store_returned_bounds): Delete.
4404         * targhooks.h (default_load_bounds_for_arg): Delete.
4405         (default_store_bounds_for_arg): Delete.
4406         (default_load_returned_bounds): Delete.
4407         (default_store_returned_bounds): Delete.
4409 2021-10-20  Jonathan Wakely  <jwakely@redhat.com>
4411         * doc/extend.texi (Basic Asm): Clarify that asm is not an
4412         extension in C++.
4413         * doc/invoke.texi (-fno-asm): Fix description for C++.
4415 2021-10-20  Jonathan Wakely  <jwakely@redhat.com>
4417         * doc/install.texi: Remove link to old.html
4419 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
4421         * config/aarch64/aarch64-simd.md (*aarch64_cmtst_same_<mode>): New.
4423 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
4425         * config/aarch64/aarch64-simd.md (*aarch64_narrow_trunc<mode>): New.
4427 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
4429         * config/aarch64/aarch64-simd.md (aarch64_simd_ashr<mode>): Add case cmp
4430         case.
4431         * config/aarch64/constraints.md (D1): New.
4433 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
4435         * config/aarch64/aarch64-simd.md
4436         (*aarch64_<srn_op>topbits_shuffle<mode>_le): New.
4437         (*aarch64_topbits_shuffle<mode>_le): New.
4438         (*aarch64_<srn_op>topbits_shuffle<mode>_be): New.
4439         (*aarch64_topbits_shuffle<mode>_be): New.
4440         * config/aarch64/predicates.md
4441         (aarch64_simd_shift_imm_vec_exact_top): New.
4443 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
4445         * config/aarch64/aarch64-simd.md (*aarch64_<srn_op>shrn<mode>_vect,
4446         *aarch64_<srn_op>shrn<mode>2_vect_le,
4447         *aarch64_<srn_op>shrn<mode>2_vect_be): New.
4448         * config/aarch64/iterators.md (srn_op): New.
4450 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
4452         * omp-low.c (omp_copy_decl_2): For !ctx, use record_vars to add new copy
4453         as local variable.
4454         (scan_sharing_clauses): Place copy of OMP_CLAUSE_IN_REDUCTION decl in
4455         ctx->outer instead of ctx.
4457 2021-10-20  Martin Liska  <mliska@suse.cz>
4459         Revert:
4460         2021-10-19  Martin Liska  <mliska@suse.cz>
4462         PR target/102374
4463         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
4464         * system.h (strip_whilespaces): New function.
4466 2021-10-20  Martin Liska  <mliska@suse.cz>
4468         Revert:
4469         2021-10-19  Martin Liska  <mliska@suse.cz>
4471         PR target/102375
4472         * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
4473         Strip whitespaces.
4475 2021-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
4477         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
4478         Change to 8 with -Os, 11 otherwise.
4480 2021-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
4482         * config/aarch64/aarch64.c (neoversev1_tunings):
4483         Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
4484         (neoversen2_tunings): Likewise.
4486 2021-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
4488         PR target/100966
4489         * config/aarch64/aarch64.md (frint_pattern): Update comment.
4490         * config/aarch64/aarch64-simd-builtins.def: Change frintn to roundeven.
4491         * config/aarch64/arm_fp16.h: Change frintn to roundeven.
4492         * config/aarch64/arm_neon.h: Likewise.
4493         * config/aarch64/iterators.md (frint_pattern): Use roundeven for FRINTN.
4495 2021-10-20  Martin Liska  <mliska@suse.cz>
4497         * config/arm/arm.c (arm_unwind_emit_sequence): Do not declare
4498         already declared global variable.
4499         (arm_unwind_emit_set): Use out_file as function argument.
4500         (arm_unwind_emit): Likewise.
4501         * config/darwin.c (machopic_output_data_section_indirection): Likewise.
4502         (machopic_output_stub_indirection): Likewise.
4503         (machopic_output_indirection): Likewise.
4504         (machopic_finish): Likewise.
4505         * config/i386/i386.c (ix86_asm_output_function_label): Likewise.
4506         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4507         * config/ia64/ia64.c (process_epilogue): Likewise.
4508         (process_cfa_adjust_cfa): Likewise.
4509         (process_cfa_register): Likewise.
4510         (process_cfa_offset): Likewise.
4511         (ia64_asm_unwind_emit): Likewise.
4512         * config/s390/s390.c (s390_asm_output_function_label): Likewise.
4514 2021-10-20  Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
4516         * config/aarch64/aarch64-builtins.c
4517         (aarch64_general_gimple_fold_builtin):
4518         lower vld1 and vst1 variants of the neon builtins
4519         * config/aarch64/aarch64-protos.h:
4520         (aarch64_general_gimple_fold_builtin): Add gsi parameter.
4521         * config/aarch64/aarch64.c (aarch64_general_gimple_fold_builtin):
4522         Likwise.
4524 2021-10-20  Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
4526         * match.pd: Generate IFN_TRUNC.
4528 2021-10-20  Richard Biener  <rguenther@suse.de>
4530         PR tree-optimization/102853
4531         * tree-data-ref.c (split_constant_offset_1): Bail out
4532         immediately if the expression traps on overflow.
4534 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4536         * tree-ssa-threadbackward.c (back_threader::~back_threader): Remove.
4538 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4540         * tree-ssa-threadupdate.c (back_jt_path_registry::adjust_paths_after_duplication):
4541         Remove superflous debugging message.
4542         (back_jt_path_registry::duplicate_thread_path): Same.
4544 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4546         * tree-ssa-threadbackward.c (back_threader_registry::back_threader_registry):
4547         Remove.
4548         (back_threader_registry::register_path): Remove m_threaded_paths.
4550 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4552         PR tree-optimization/102814
4553         * doc/invoke.texi: Document --param=max-fsm-thread-length.
4554         * params.opt: Add --param=max-fsm-thread-length.
4555         * tree-ssa-threadbackward.c
4556         (back_threader_profitability::profitable_path_p): Fail on paths
4557         longer than max-fsm-thread-length.
4559 2021-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4561         PR middle-end/102764
4562         * cfgexpand.c (expand_gimple_basic_block): Disregard a final debug
4563         statement to reset the current location for the outgoing edges.
4565 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4566             Richard Biener  <rguenther@suse.de>
4568         * tree-ssa-threadupdate.c (cancel_thread): Dump threading reason
4569         on the same line as the threading cancellation.
4570         (jt_path_registry::cancel_invalid_paths): Avoid rotating loops.
4571         Avoid threading through loop headers where the path remains in the
4572         loop.
4574 2021-10-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4576         * tree-object-size.c (unknown): Make into a function.  Adjust
4577         all uses.
4578         (unknown_object_size): Simplify implementation.
4580 2021-10-20  Hongtao Liu  <hongtao.liu@intel.com>
4581             Kewen Lin  <linkw@linux.ibm.com>
4583         * doc/sourcebuild.texi (Effective-Target Keywords): Document
4584         vect_slp_v2qi_store, vect_slp_v4qi_store, vect_slp_v8qi_store,
4585         vect_slp_v16qi_store, vect_slp_v2hi_store,
4586         vect_slp_v4hi_store, vect_slp_v2si_store, vect_slp_v4si_store.
4588 2021-10-19  Jonathan Wakely  <jwakely@redhat.com>
4590         * doc/extend.texi (Basic PowerPC Built-in Functions): Fix typo.
4592 2021-10-19  Paul A. Clarke  <pc@us.ibm.com>
4594         PR target/101893
4595         PR target/102719
4596         * config/rs6000/emmintrin.h: Guard POWER8 intrinsics.
4597         * config/rs6000/pmmintrin.h: Same.
4598         * config/rs6000/smmintrin.h: Same.
4599         * config/rs6000/tmmintrin.h: Same.
4601 2021-10-19  Paul A. Clarke  <pc@us.ibm.com>
4603         * config.gcc (extra_headers): Add nmmintrin.h.
4605 2021-10-19  Richard Biener  <rguenther@suse.de>
4607         * tree-vectorizer.h (vect_supportable_dr_alignment): Add
4608         misalignment parameter.
4609         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
4610         Do not change DR_MISALIGNMENT in place, instead pass the
4611         adjusted misalignment to vect_supportable_dr_alignment.
4612         (vect_peeling_supportable): Likewise.
4613         (vect_peeling_hash_get_lowest_cost): Adjust.
4614         (vect_enhance_data_refs_alignment): Likewise.
4615         (vect_vfa_access_size): Likewise.
4616         (vect_supportable_dr_alignment): Add misalignment
4617         parameter and simplify.
4618         * tree-vect-stmts.c (get_negative_load_store_type): Adjust.
4619         (get_group_load_store_type): Likewise.
4620         (get_load_store_type): Likewise.
4622 2021-10-19  Clément Chigot  <clement.chigot@atos.net>
4624         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): Move
4625         __tls_get_addr reference to .text csect.
4627 2021-10-19  Martin Liska  <mliska@suse.cz>
4629         PR target/102375
4630         * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
4631         Strip whitespaces.
4633 2021-10-19  Richard Biener  <rguenther@suse.de>
4635         * tree-vectorizer.h (vect_get_store_cost): Adjust signature.
4636         (vect_get_load_cost): Likewise.
4637         * tree-vect-data-refs.c (vect_get_data_access_cost): Get
4638         alignment support scheme and misalignment as arguments
4639         and pass them down.
4640         (vect_get_peeling_costs_all_drs): Compute that info here
4641         and note that we shouldn't need to.
4642         * tree-vect-stmts.c (vect_model_store_cost): Get
4643         alignment support scheme and misalignment as arguments.
4644         (vect_get_store_cost): Likewise.
4645         (vect_model_load_cost): Likewise.
4646         (vect_get_load_cost): Likewise.
4647         (vectorizable_store): Pass down alignment support scheme
4648         and misalignment to costing.
4649         (vectorizable_load): Likewise.
4651 2021-10-19  Richard Biener  <rguenther@suse.de>
4653         * tree-vect-stmts.c (get_negative_load_store_type): Add
4654         offset output parameter and initialize it.
4655         (get_group_load_store_type): Likewise.
4656         (get_load_store_type): Likewise.
4657         (vectorizable_store): Use offset as computed by
4658         get_load_store_type.
4659         (vectorizable_load): Likewise.
4661 2021-10-19  Richard Biener  <rguenther@suse.de>
4663         PR tree-optimization/102827
4664         * tree-if-conv.c (predicate_statements): Add pe parameter
4665         and use that edge to insert invariant stmts on.
4666         (combine_blocks): Pass through pe.
4667         (tree_if_conversion): Compute the edge to insert invariant
4668         stmts on and pass it along.
4670 2021-10-19  Roger Sayle  <roger@nextmovesoftware.com>
4672         PR target/102785
4673         * config/bfin/bfin.md (addsubv2hi3, subaddv2hi3, ssaddsubv2hi3,
4674         sssubaddv2hi3):  Swap the order of operators in vec_concat.
4676 2021-10-19  Xionghu Luo  <luoxhu@linux.ibm.com>
4678         * config/rs6000/altivec.md (*altivec_vmrghb_internal): Delete.
4679         (altivec_vmrghb_direct): New.
4680         (*altivec_vmrghh_internal): Delete.
4681         (altivec_vmrghh_direct): New.
4682         (*altivec_vmrghw_internal): Delete.
4683         (altivec_vmrghw_direct_<mode>): New.
4684         (altivec_vmrghw_direct): Delete.
4685         (*altivec_vmrglb_internal): Delete.
4686         (altivec_vmrglb_direct): New.
4687         (*altivec_vmrglh_internal): Delete.
4688         (altivec_vmrglh_direct): New.
4689         (*altivec_vmrglw_internal): Delete.
4690         (altivec_vmrglw_direct_<mode>): New.
4691         (altivec_vmrglw_direct): Delete.
4692         * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Adjust.
4693         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):
4694         Adjust.
4695         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust.
4696         (vsx_xxmrglw_<mode>): Adjust.
4698 2021-10-19  Aldy Hernandez  <aldyh@redhat.com>
4700         * passes.def: Change threading comment before pass_ccp pass.
4702 2021-10-19  Haochen Gui  <guihaoc@gcc.gnu.org>
4704         * config/rs6000/rs6000-call.c (altivec_expand_lxvr_builtin):
4705         Modify the expansion for sign extension. All extensions are done
4706         within VSX registers.
4708 2021-10-19  Richard Biener  <rguenther@suse.de>
4710         * tree-vect-stmts.c (get_group_load_store_type): Add
4711         misalignment output parameter and initialize it.
4712         (get_group_load_store_type): Likewise.
4713         (vectorizable_store): Remove now redundant queries.
4714         (vectorizable_load): Likewise.
4716 2021-10-19  Richard Biener  <rguenther@suse.de>
4718         * tree-vectorizer.h (vect_supportable_dr_alignment): Remove
4719         check_aligned argument.
4720         * tree-vect-data-refs.c (vect_supportable_dr_alignment):
4721         Likewise.
4722         (vect_peeling_hash_insert): Add supportable_if_not_aligned
4723         argument and do not call vect_supportable_dr_alignment here.
4724         (vect_peeling_supportable): Adjust.
4725         (vect_enhance_data_refs_alignment): Compute whether the
4726         access is supported with different alignment here and
4727         pass that down to vect_peeling_hash_insert.
4728         (vect_vfa_access_size): Adjust.
4729         * tree-vect-stmts.c (vect_get_store_cost): Likewise.
4730         (vect_get_load_cost): Likewise.
4731         (get_negative_load_store_type): Likewise.
4732         (get_group_load_store_type): Likewise.
4733         (get_load_store_type): Likewise.
4735 2021-10-19  Martin Liska  <mliska@suse.cz>
4737         PR target/102374
4738         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
4739         * system.h (strip_whilespaces): New function.
4741 2021-10-19  dianhong xu  <dianhong.xu@intel.com>
4743         * config/i386/avx512fp16intrin.h:
4744         (_mm512_set1_pch): New intrinsic.
4745         * config/i386/avx512fp16vlintrin.h:
4746         (_mm256_set1_pch): New intrinsic.
4747         (_mm_set1_pch): Ditto.
4749 2021-10-18  Andrew MacLeod  <amacleod@redhat.com>
4751         PR tree-optimization/102796
4752         * gimple-range.cc (gimple_ranger::range_on_edge): Process EH edges
4753         normally.  Return get_tree_range for non gimple_range_ssa_p names.
4754         (gimple_ranger::range_of_stmt): Use get_tree_range for non
4755         gimple_range_ssa_p names.
4757 2021-10-18  Uroš Bizjak  <ubizjak@gmail.com>
4759         PR target/102761
4760         * config/i386/i386.c (ix86_print_operand_address):
4761         Error out for non-address_operand asm operands.
4763 2021-10-18  Richard Biener  <rguenther@suse.de>
4765         * tree-vect-data-refs.c (vect_peeling_hash_insert): Do
4766         not auto-convert dr_alignment_support to bool.
4767         (vect_peeling_supportable): Likewise.
4768         (vect_enhance_data_refs_alignment): Likewise.
4769         (vect_supportable_dr_alignment): Commonize read/write case.
4770         * tree-vect-stmts.c (vect_get_store_cost): Use
4771         dr_alignment_support, not int, for the vect_supportable_dr_alignment
4772         result.
4773         (vect_get_load_cost): Likewise.
4775 2021-10-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4777         * tree-object-size.c (object_sizes_execute): Consolidate LHS
4778         null check and do it early.
4780 2021-10-18  Richard Biener  <rguenther@suse.de>
4782         * tree-vect-stmts.c (vectorizable_store): Use the
4783         computed alignment scheme instead of querying
4784         aligned_access_p.
4786 2021-10-18  Richard Biener  <rguenther@suse.de>
4788         * tree-vect-stmts.c (vectorizable_store): Do not recompute
4789         alignment scheme already determined by get_load_store_type.
4791 2021-10-18  Aldy Hernandez  <aldyh@redhat.com>
4793         * tree-ssa-threadbackward.c (class pass_thread_jumps_full):
4794         Clone corresponding pass.
4796 2021-10-18  Roger Sayle  <roger@nextmovesoftware.com>
4798         * combine.c (recog_for_combine): For an unrecognized move/set of
4799         a constant, try force_const_mem to place it in the constant pool.
4800         * cse.c (constant_pool_entries_cost, constant_pool_entries_regcost):
4801         Delete global variables (that are no longer assigned a cost value).
4802         (cse_insn): Simplify logic for deciding whether to place a folded
4803         constant in the constant pool using force_const_mem.
4804         (cse_main): Remove zero initialization of constant_pool_entries_cost
4805         and constant_pool_entries_regcost.
4806         * config/i386/i386.c (ix86_rtx_costs): Make memory accesses
4807         fractionally more expensive, when optimizing for speed.
4809 2021-10-18  Martin Liska  <mliska@suse.cz>
4811         PR gcov-profile/102746
4812         PR gcov-profile/102747
4813         * gcov.c (main): Return return_code.
4814         (output_gcov_file): Mark return_code when error happens.
4815         (generate_results): Likewise.
4816         (read_graph_file): Likewise.
4817         (read_count_file): Likewise.
4819 2021-10-18  Roger Sayle  <roger@nextmovesoftware.com>
4821         * config/bfin/bfin.md (define_constants): Remove UNSPEC_ONES.
4822         (define_insn "ones"): Replace UNSPEC_ONES with a truncate of
4823         a popcount, allowing compile-time evaluation/simplification.
4824         (popcountsi2, popcounthi2): New expanders using a "ones" insn.
4826 2021-10-18  Richard Biener  <rguenther@suse.de>
4828         PR tree-optimization/102788
4829         * tree-vect-patterns.c (vect_init_pattern_stmt): Allow
4830         a NULL vectype.
4831         (vect_pattern_recog_1): Likewise.
4832         (vect_recog_bool_pattern): Continue matching the pattern
4833         even if we do not have a vector type for a conversion
4834         result.
4836 2021-10-18  Roger Sayle  <roger@nextmovesoftware.com>
4838         * simplify-rtx.c (simplify_const_unary_operation) [SS_NEG, SS_ABS]:
4839         Evalute SS_NEG and SS_ABS of a constant argument.
4841 2021-10-18  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
4843         PR target/93183
4844         * gimple-match-head.c (try_conditional_simplification): Add case for single operand.
4845         * internal-fn.def: Add entry for COND_NEG internal function.
4846         * internal-fn.c (FOR_EACH_CODE_MAPPING): Add entry for
4847         NEGATE_EXPR, COND_NEG mapping.
4848         * optabs.def: Add entry for cond_neg_optab.
4849         * match.pd (UNCOND_UNARY, COND_UNARY): New operator lists.
4850         (vec_cond COND (foo A) B) -> (IFN_COND_FOO COND A B): New pattern.
4851         (vec_cond COND B (foo A)) -> (IFN_COND_FOO ~COND A B): Likewise.
4853 2021-10-18  Aldy Hernandez  <aldyh@redhat.com>
4855         * tree-ssa-strlen.c (class strlen_pass): Rename from
4856         strlen_dom_walker.
4857         (handle_builtin_stxncpy_strncat): Move to strlen_pass.
4858         (handle_assign): Same.
4859         (adjust_last_stmt): Same.
4860         (maybe_warn_overflow): Same.
4861         (handle_builtin_strlen): Same.
4862         (handle_builtin_strchr): Same.
4863         (handle_builtin_strcpy): Same.
4864         (handle_builtin_strncat): Same.
4865         (handle_builtin_stxncpy_strncat): Same.
4866         (handle_builtin_memcpy): Same.
4867         (handle_builtin_strcat): Same.
4868         (handle_alloc_call): Same.
4869         (handle_builtin_memset): Same.
4870         (handle_builtin_memcmp): Same.
4871         (get_len_or_size): Same.
4872         (strxcmp_eqz_result): Same.
4873         (handle_builtin_string_cmp): Same.
4874         (handle_pointer_plus): Same.
4875         (count_nonzero_bytes_addr): Same.
4876         (count_nonzero_bytes): Same.
4877         (handle_store): Same.
4878         (strlen_check_and_optimize_call): Same.
4879         (handle_integral_assign): Same.
4880         (check_and_optimize_stmt): Same.
4881         (printf_strlen_execute): Rename strlen_dom_walker to strlen_pass.
4883 2021-10-18  Richard Biener  <rguenther@suse.de>
4885         PR tree-optimization/102798
4886         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4887         Only copy points-to info to newly generated SSA names.
4889 2021-10-18  Martin Liska  <mliska@suse.cz>
4891         * dbgcnt.c (dbg_cnt_process_opt): Remove unused but set variable.
4892         * gcov.c (get_cycles_count): Likewise.
4893         * lto-compress.c (lto_compression_zlib): Likewise.
4894         (lto_uncompression_zlib): Likewise.
4895         * targhooks.c (default_pch_valid_p): Likewise.
4897 2021-10-17  Aldy Hernandez  <aldyh@redhat.com>
4899         * tree-pass.h (make_pass_thread_jumps_full): New.
4900         * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Inline.
4901         (try_thread_blocks): Add resolve and speed arguments.
4902         (pass_thread_jumps::execute): Inline.
4903         (do_early_thread_jumps): New.
4904         (do_thread_jumps): New.
4905         (make_pass_thread_jumps): Move.
4906         (pass_early_thread_jumps::gate): Inline.
4907         (pass_early_thread_jumps::execute): Inline.
4908         (class pass_thread_jumps_full): New.
4910 2021-10-16  Piotr Kubaj  <pkubaj@FreeBSD.org>
4912         * configure.ac: Treat powerpc64*-*-freebsd* the same as
4913         powerpc64-*-freebsd*.
4914         * configure: Regenerate.
4916 2021-10-16  H.J. Lu  <hjl.tools@gmail.com>
4918         * value-query.cc (get_ssa_name_ptr_info_nonnull): Change
4919         set_ptr_nonull to set_ptr_nonnull in comments.
4921 2021-10-16  Jan Hubicka  <hubicka@ucw.cz>
4923         PR tree-optimization/102720
4924         * tree-ssa-structalias.c (compute_points_to_sets): Fix producing
4925         of call used and clobbered sets.
4927 2021-10-15  Iain Sandoe  <iain@sandoe.co.uk>
4929         * config/darwin.h (LINK_COMMAND_SPEC_A): Update 'r' handling to
4930         skip gomp and itm when r or nodefaultlibs is given.
4931         (DSYMUTIL_SPEC): Do not call dsymutil for '-r' link lines.
4932         Update ordering of exclusions, remove duplicate 'v' addition
4933         (collect2 will add this from the main command line).
4935 2021-10-15  Iain Sandoe  <iain@sandoe.co.uk>
4937         * config/darwin-driver.c (darwin_driver_init): Revise comments, handle
4938         filelist and framework options in specs instead of code.
4939         * config/darwin.h (SUBTARGET_DRIVER_SELF_SPECS): Update to handle link
4940         specs that are really driver ones.
4941         (DARWIN_CC1_SPEC): Likewise.
4942         (CPP_SPEC): Likewise.
4943         (SYSROOT_SPEC): Append space.
4944         (LINK_SYSROOT_SPEC): Remove most driver link specs.
4945         (STANDARD_STARTFILE_PREFIX_2): Update link-related specs.
4946         (STARTFILE_SPEC): Likewise.
4947         (ASM_MMACOSX_VERSION_MIN_SPEC): Fix line wrap.
4948         (ASM_SPEC): Update driver-related specs.
4949         (ASM_FINAL_SPEC): Likewise.
4950         * config/darwin.opt: Remove now unused option aliases.
4951         * config/i386/darwin.h (EXTRA_ASM_OPTS): Ensure space after opt.
4952         (ASM_SPEC): Update driver-related specs.
4954 2021-10-15  Roger Sayle  <roger@nextmovesoftware.com>
4956         * config/i386/i386.c (ix86_hardreg_mov_ok): For vector modes,
4957         allow standard_sse_constant_p immediate constants.
4959 2021-10-15  Iain Sandoe  <iain@sandoe.co.uk>
4961         * config.gcc: Add tm-dwarf2.h to tm_d-file.
4963 2021-10-15  Andrew MacLeod  <amacleod@redhat.com>
4965         * gimple-range-fold.h (gimple_range_ssa_p): Don't process names
4966         that occur in abnormal phis.
4967         * gimple-range.cc (gimple_ranger::range_on_edge): Return false for
4968         abnormal and EH edges.
4969         * gimple-ssa-evrp.c (rvrp_folder::value_of_expr): Ditto.
4970         (rvrp_folder::value_on_edge): Ditto.
4971         (rvrp_folder::value_of_stmt): Ditto.
4972         (hybrid_folder::value_of_expr): Ditto for ranger queries.
4973         (hybrid_folder::value_on_edge): Ditto.
4974         (hybrid_folder::value_of_stmt): Ditto.
4975         * value-query.cc (gimple_range_global): Always return a range if
4976         the type is supported.
4978 2021-10-15  John David Anglin  <danglin@gcc.gnu.org>
4980         * config/pa/pa.md: Consistently use "rG" constraint for copy
4981         instruction in move patterns.
4983 2021-10-15  Andrew Stubbs  <ams@codesourcery.com>
4985         * config/gcn/gcn-hsa.h (S_FIJI): Set unconditionally.
4986         (S_900): Likewise.
4987         (S_906): Likewise.
4988         * config/gcn/gcn.c: Hard code SRAM ECC settings for old architectures.
4989         * config/gcn/mkoffload.c (ELFABIVERSION_AMDGPU_HSA): Rename to ...
4990         (ELFABIVERSION_AMDGPU_HSA_V3): ... this.
4991         (ELFABIVERSION_AMDGPU_HSA_V4): New.
4992         (SET_SRAM_ECC_UNSUPPORTED): New.
4993         (copy_early_debug_info): Create elf flags to match the other objects.
4994         (main): Just let the attribute flags pass through.
4996 2021-10-15  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
4998         * tree-loop-distribution.c (reduction_var_overflows_first):
4999         Pass the type of reduction_var as first argument as it is also
5000         done for the load type.
5001         (loop_distribution::transform_reduction_loop): Add missing
5002         TREE_TYPE while determining precission of reduction_var.
5004 2021-10-15  Richard Biener  <rguenther@suse.de>
5006         * defaults.h (PREFERRED_DEBUGGING_TYPE): Choose DWARF2_DEBUG
5007         when not set.
5008         * toplev.c (process_options): Warn when STABS debugging is
5009         enabled but not the preferred format.
5010         * config/pa/som.h (PREFERRED_DEBUGGING_TYPE): Define to
5011         DBX_DEBUG.
5012         * config/pdp11/pdp11.h (PREFERRED_DEBUGGING_TYPE): Likewise.
5014 2021-10-15  Richard Biener  <rguenther@suse.de>
5016         PR ipa/102762
5017         * tree-inline.c (copy_bb): Avoid underflowing nargs.
5019 2021-10-15  Hongyu Wang  <hongyu.wang@intel.com>
5021         * config/i386/i386-expand.c (ix86_expand_vec_perm): Convert
5022         HFmode input operand to HImode.
5023         (ix86_vectorize_vec_perm_const): Likewise.
5024         * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1_hf):
5025         New define_insn.
5026         (*avx512f_permvar_truncv8siv8hi_1_hf):
5027         Likewise.
5029 2021-10-15  Richard Biener  <rguenther@suse.de>
5031         PR middle-end/102682
5032         * expmed.c (store_bit_field_1): Ensure a LHS subreg would
5033         not create a paradoxical subreg.
5035 2021-10-15  Hongyu Wang  <hongyu.wang@intel.com>
5037         * config/i386/i386-expand.c (ix86_expand_vector_init):
5038         For half_vector concat for HFmode, handle them like HImode.
5040 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
5042         * tree-ssa-threadbackward.c (class back_threader): Add m_resolve.
5043         (back_threader::back_threader): Same.
5044         (back_threader::resolve_phi): Try to solve without looking back if
5045         possible.
5046         (back_threader::find_paths_to_names): Same.
5047         (try_thread_blocks): Pass resolve argument to back threader.
5048         (pass_early_thread_jumps::execute): Same.
5050 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
5052         * doc/invoke.texi: Remove max-fsm-thread-length,
5053         max-fsm-thread-paths, and fsm-maximum-phi-arguments.
5054         * params.opt: Same.
5055         * tree-ssa-threadbackward.c (back_threader::back_threader): Remove
5056         argument.
5057         (back_threader_registry::back_threader_registry): Same.
5058         (back_threader_profitability::profitable_path_p): Remove
5059         param_max_fsm_thread-length.
5060         (back_threader_registry::register_path): Remove
5061         m_max_allowable_paths.
5063 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
5065         * tree-ssa-threadbackward.c (class back_threader): Make m_imports
5066         an auto_bitmap.
5067         (back_threader::~back_threader): Do not release m_path.
5069 2021-10-14  Andrew MacLeod  <amacleod@redhat.com>
5071         PR tree-optimization/102738
5072         * vr-values.c (simplify_using_ranges::simplify): Handle RSHIFT_EXPR.
5074 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
5076         * omp-general.c (omp_check_context_selector):  Move from c-omp.c.
5077         (omp_mark_declare_variant): Move from c-omp.c.
5078         (omp_context_name_list_prop): Update for Fortran strings.
5079         * omp-general.h (omp_check_context_selector): New prototype.
5080         (omp_mark_declare_variant): New prototype.
5082 2021-10-14  Richard Sandiford  <richard.sandiford@arm.com>
5084         * config/rs6000/rs6000.c (rs6000_density_test): Move early
5085         exit test further up the function.
5087 2021-10-14  Richard Sandiford  <richard.sandiford@arm.com>
5089         * config/arm/arm.c (arm_add_stmt_cost): Delete.
5090         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
5092 2021-10-14  Martin Jambor  <mjambor@suse.cz>
5094         * doc/invoke.texi (Optimize Options): Add entry for
5095         ipa-cp-recursive-freq-factor.
5097 2021-10-14  Tamar Christina  <tamar.christina@arm.com>
5099         * match.pd: New rule.
5101 2021-10-14  Jan Hubicka  <hubicka@ucw.cz>
5103         PR ipa/102557
5104         * ipa-modref-tree.h (modref_access_node::update2):
5105         Also check that parm_offset is unchanged.
5106         (modref_ref_node::insert_access): Fix updating of
5107         parameter.
5109 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
5111         * tree-ssa-threadbackward.c (back_threader::resolve_phi): Add
5112         FIXME note.
5114 2021-10-14  Richard Biener  <rguenther@suse.de>
5116         PR tree-optimization/102659
5117         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Also
5118         rewrite pointer typed undefined overflow operations.
5119         (predicate_statements): Likewise.  Make sure to emit invariant
5120         conversions in the preheader.
5121         * tree-vectorizer.c (vect_loop_vectorized_call): Look through
5122         non-empty preheaders.
5123         * tree-data-ref.c (dr_analyze_indices): Strip useless
5124         conversions to the MEM_REF base type.
5126 2021-10-14  Martin Liska  <mliska@suse.cz>
5128         * common.opt: Stop using AUTODETECT_VALUE
5129         and use EnabledBy where possible.
5130         * opts.c: Enable OPT_fvar_tracking with optimize >= 1.
5131         * toplev.c (AUTODETECT_VALUE): Remove macro.
5132         (process_options): Simplify by using EnabledBy and
5133         OPT_fvar_tracking.  Use OPTION_SET_P macro instead of
5134         AUTODETECT_VALUE.
5136 2021-10-14  Jonathan Wright  <jonathan.wright@arm.com>
5138         * config/aarch64/arm_neon.h (vld1_s8_x3): Use signed type for
5139         pointer parameter.
5140         (vld1_s32_x3): Likewise.
5142 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
5144         PR tree-optimization/102736
5145         PR tree-optimization/102736
5146         * gimple-range-path.cc (path_range_query::range_on_path_entry):
5147         Assert that the requested range is defined outside the path.
5148         (path_range_query::ssa_range_in_phi): Do not call
5149         range_on_path_entry for SSA names that are defined within the
5150         path.
5152 2021-10-14  Iain Sandoe  <iain@sandoe.co.uk>
5154         * config/darwin-driver.c (darwin_find_version_from_kernel):
5155         Quote internal identifiers and avoid contractions in
5156         warnings.
5157         (darwin_default_min_version): Likewise.
5158         (darwin_driver_init): Likewise.
5160 2021-10-14  Martin Jambor  <mjambor@suse.cz>
5162         * params.opt (ipa-cp-recursive-freq-factor): New.
5163         * ipa-cp.c (ipcp_value): Switch to inline initialization.  New members
5164         scc_no, self_recursion_generated_level, same_scc and
5165         self_recursion_generated_p.
5166         (ipcp_lattice::add_value): Replaced parameter unlimited with
5167         same_lat_gen_level, usit it determine limit of values and store it to
5168         the value.
5169         (ipcp_lattice<valtype>::print): Dump the new fileds.
5170         (allocate_and_init_ipcp_value): Take same_lat_gen_level as a new
5171         parameter and store it to the new value.
5172         (self_recursively_generated_p): Removed.
5173         (propagate_vals_across_arith_jfunc): Use self_recursion_generated_p
5174         instead of self_recursively_generated_p, store self generation level
5175         to such values.
5176         (value_topo_info<valtype>::add_val): Set scc_no.
5177         (value_topo_info<valtype>::propagate_effects): Multiply frequencies of
5178         recursively feeding values and self generated values by appropriate
5179         new factors.
5181 2021-10-14  Richard Sandiford  <richard.sandiford@arm.com>
5183         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Remove
5184         redundant test for flag_vect_cost_model.
5186 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
5188         * bitmap.c (debug): New overloaded function for auto_bitmaps.
5189         * bitmap.h (debug): Same.
5191 2021-10-14  Hongyu Wang  <hongyu.wang@intel.com>
5193         * config/i386/avx512fp16intrin.h (_mm512_mask_fcmadd_pch):
5194         Adjust builtin call.
5195         (_mm512_mask3_fcmadd_pch): Likewise.
5196         (_mm512_mask_fmadd_pch): Likewise
5197         (_mm512_mask3_fmadd_pch): Likewise
5198         (_mm512_mask_fcmadd_round_pch): Likewise
5199         (_mm512_mask3_fcmadd_round_pch): Likewise
5200         (_mm512_mask_fmadd_round_pch): Likewise
5201         (_mm512_mask3_fmadd_round_pch): Likewise
5202         (_mm_mask_fcmadd_sch): Likewise
5203         (_mm_mask3_fcmadd_sch): Likewise
5204         (_mm_mask_fmadd_sch): Likewise
5205         (_mm_mask3_fmadd_sch): Likewise
5206         (_mm_mask_fcmadd_round_sch): Likewise
5207         (_mm_mask3_fcmadd_round_sch): Likewise
5208         (_mm_mask_fmadd_round_sch): Likewise
5209         (_mm_mask3_fmadd_round_sch): Likewise
5210         (_mm_fcmadd_round_sch): Likewise
5211         * config/i386/avx512fp16vlintrin.h (_mm_mask_fmadd_pch):
5212         Adjust builtin call.
5213         (_mm_mask3_fmadd_pch): Likewise
5214         (_mm256_mask_fmadd_pch): Likewise
5215         (_mm256_mask3_fmadd_pch): Likewise
5216         (_mm_mask_fcmadd_pch): Likewise
5217         (_mm_mask3_fcmadd_pch): Likewise
5218         (_mm256_mask_fcmadd_pch): Likewise
5219         (_mm256_mask3_fcmadd_pch): Likewise
5220         * config/i386/i386-builtin.def: Add mask3 builtin for complex
5221         fma, and adjust mask_builtin to corresponding expander.
5222         * config/i386/i386-expand.c (ix86_expand_round_builtin):
5223         Skip eraseing embedded rounding for expanders that emits
5224         multiple insns.
5225         * config/i386/sse.md (complexmove): New mode_attr.
5226         (<avx512>_fmaddc_<mode>_mask1<round_expand_name>): New expander.
5227         (<avx512>_fcmaddc_<mode>_mask1<round_expand_name>): Likewise.
5228         (avx512fp16_fmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
5229         (avx512fp16_fcmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
5230         (avx512fp16_fcmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
5231         (avx512fp16_fmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
5232         * config/i386/subst.md (round_embedded_complex): New subst.
5234 2021-10-14  John David Anglin  <danglin@gcc.gnu.org>
5236         * config/pa/pa.md (cbranchsf4): Disable if TARGET_SOFT_FLOAT.
5237         (cbranchdf4): Likewise.
5238         Add missing move patterns for TARGET_SOFT_FLOAT.
5240 2021-10-13  Roger Sayle  <roger@nextmovesoftware.com>
5242         * config/i386/i386-expand.c (ix86_expand_vector_move):  Use a
5243         pseudo intermediate when moving a SUBREG into a hard register,
5244         by checking ix86_hardreg_mov_ok.
5245         (ix86_expand_vector_extract): Store zero-extended SImode
5246         intermediate in a pseudo, then set target using a SUBREG_PROMOTED
5247         annotated subreg.
5248         * config/i386/sse.md (mov<VMOVE>_internal): Prevent CSE creating
5249         complex (SUBREG) sets of (vector) hard registers before reload, by
5250         checking ix86_hardreg_mov_ok.
5252 2021-10-13  Indu Bhagat  <indu.bhagat@oracle.com>
5254         * ctfc.h (enum ctf_dtu_d_union_enum): Remove redundant comma.
5256 2021-10-13  Indu Bhagat  <indu.bhagat@oracle.com>
5258         * dwarf2ctf.c (gen_ctf_array_type): Fix typo in comment.
5260 2021-10-13  Martin Sebor  <msebor@redhat.com>
5262         PR middle-end/102630
5263         * pointer-query.cc (compute_objsize_r): Handle named address spaces.
5265 2021-10-13  Iain Sandoe  <iain@sandoe.co.uk>
5267         * collect2.c (is_lto_object_file): Release simple-object
5268         resources, close files.
5270 2021-10-13  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5272         * config/arm/arm.c (thumb2_legitimate_address_p): Use VALID_MVE_MODE
5273         when checking mve addressing modes.
5274         (mve_vector_mem_operand): Fix the way we handle pre, post and offset
5275         addressing modes.
5276         (arm_print_operand): Fix printing of POST_ and PRE_MODIFY.
5277         * config/arm/mve.md: Use mve_memory_operand predicate everywhere where
5278         there is a single Ux constraint.
5280 2021-10-13  John David Anglin  <danglin@gcc.gnu.org>
5282         * config/pa/pa.md (muldi3): Add support for inlining 64-bit
5283         multiplication on 32-bit PA 1.1 and 2.0 targets.
5285 2021-10-13  Martin Liska  <mliska@suse.cz>
5287         PR gcov-profile/90364
5288         * coverage.c (build_info): Emit checksum to the global variable.
5289         (build_info_type): Add new field for checksum.
5290         (coverage_obj_finish): Pass object_checksum.
5291         (coverage_init): Use 0 as checksum for .gcno files.
5292         * gcov-dump.c (dump_gcov_file): Dump also new checksum field.
5293         * gcov.c (read_graph_file): Read also checksum.
5294         * doc/invoke.texi: Document the behaviour change.
5296 2021-10-13  Richard Biener  <rguenther@suse.de>
5298         * gimple-iterator.h (gsi_iterator_update): Add GSI_LAST_NEW_STMT,
5299         start at integer value 2.
5300         * gimple-iterator.c (gsi_insert_seq_nodes_before): Update
5301         the iterator for GSI_LAST_NEW_STMT.
5302         (gsi_insert_seq_nodes_after): Likewise.
5303         * tree-if-conv.c (predicate_statements): Use GSI_LAST_NEW_STMT.
5304         * tree-ssa.c (execute_update_addresses_taken): Correct bogus
5305         arguments to gsi_replace.
5307 2021-10-13  Martin Liska  <mliska@suse.cz>
5309         PR target/102688
5310         * common.opt: Use EnabledBy instead of detection in
5311         finish_options and process_options.
5312         * opts.c (finish_options): Remove handling of
5313         x_flag_unroll_all_loops.
5314         * toplev.c (process_options): Likewise for flag_web and
5315         flag_rename_registers.
5317 2021-10-13  Richard Biener  <rguenther@suse.de>
5319         PR tree-optimization/102659
5320         * tree-if-conv.c (need_to_rewrite_undefined): New flag.
5321         (if_convertible_gimple_assign_stmt_p): Mark the loop for
5322         rewrite when stmts with undefined behavior on integer
5323         overflow appear.
5324         (combine_blocks): Predicate also when we need to rewrite stmts.
5325         (predicate_statements): Rewrite affected stmts to something
5326         with well-defined behavior on overflow.
5327         (tree_if_conversion): Initialize need_to_rewrite_undefined.
5329 2021-10-13  Richard Biener  <rguenther@suse.de>
5331         PR ipa/102714
5332         * ipa-sra.c (ptr_parm_has_nonarg_uses): Fix volatileness
5333         check.
5335 2021-10-13  Jose E. Marchesi  <jose.marchesi@oracle.com>
5337         * dwarf2ctf.c: Fix typo in comment.
5339 2021-10-12  Bill Schmidt  <wschmidt@linux.ibm.com>
5341         PR target/101985
5342         * config/rs6000/altivec.h (vec_cpsgn): Swap operand order.
5343         * config/rs6000/rs6000-overload.def (VEC_COPYSIGN): Use SKIP to
5344         avoid generating an automatic #define of vec_cpsgn.  Use the
5345         correct built-in for V4SFmode that doesn't depend on VSX.
5347 2021-10-12  Uroš Bizjak  <ubizjak@gmail.com>
5349         PR target/85730
5350         PR target/82524
5351         * config/i386/i386.md (*add<mode>_1_slp): Rewrite as
5352         define_insn_and_split pattern.  Add alternative 1 and split it
5353         post reload to insert operand 1 into the low part of operand 0.
5354         (*sub<mode>_1_slp): Ditto.
5355         (*and<mode>_1_slp): Ditto.
5356         (*<any_or:code><mode>_1_slp): Ditto.
5357         (*ashl<mode>3_1_slp): Ditto.
5358         (*<any_shiftrt:insn><mode>3_1_slp): Ditto.
5359         (*<any_rotate:insn><mode>3_1_slp): Ditto.
5360         (*neg<mode>_1_slp): New insn_and_split pattern.
5361         (*one_cmpl<mode>_1_slp): Ditto.
5363 2021-10-12  David Edelsohn  <dje.gcc@gmail.com>
5365         * doc/install.texi: Update MinGW and mingw-64 Binaries
5366         download links.
5368 2021-10-12  Daniel Le Duc Khoi Nguyen  <greenrecyclebin@gmail.com>
5370         * doc/extend.texi (Common Variable Attributes): Fix typos in
5371         alloc_size documentation.
5373 2021-10-12  Richard Biener  <rguenther@suse.de>
5375         PR tree-optimization/102696
5376         * tree-vect-slp.c (vect_build_slp_tree_2): Properly mark
5377         the tree fatally failed when we reject a BIT_FIELD_REF.
5379 2021-10-12  Richard Biener  <rguenther@suse.de>
5381         PR tree-optimization/102572
5382         * tree-vect-stmts.c (vect_build_gather_load_calls): When
5383         gathering the vectorized defs for the mask pass in the
5384         desired mask vector type so invariants will be handled
5385         correctly.
5387 2021-10-12  Tamar Christina  <tamar.christina@arm.com>
5389         * config/aarch64/aarch64-sve.md (*fcm<cmp_op><mode>_bic_combine,
5390         *fcm<cmp_op><mode>_nor_combine, *fcmuo<mode>_bic_combine,
5391         *fcmuo<mode>_nor_combine): New.
5393 2021-10-12  Eric Botcazou  <ebotcazou@adacore.com>
5395         PR target/102588
5396         * config/sparc/sparc-modes.def (OI): New integer mode.
5398 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5400         * gimple-fold.h (clear_padding_type_may_have_padding_p): Declare.
5401         * gimple-fold.c (clear_padding_type_may_have_padding_p): No longer
5402         static.
5404 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5406         * tree-vectorizer.h (loop_cost_model): New function.
5407         (unlimited_cost_model): Use it.
5408         * tree-vect-loop.c (vect_analyze_loop_costing): Use loop_cost_model
5409         call instead of flag_vect_cost_model.
5410         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
5411         (vect_prune_runtime_alias_test_list): Likewise.  Also use it instead
5412         of flag_simd_cost_model.
5414 2021-10-12  liuhongt  <hongtao.liu@intel.com>
5416         PR target/102483
5417         * config/i386/i386-expand.c (emit_reduc_half): Handle
5418         V4QImode.
5419         * config/i386/mmx.md (reduc_<code>_scal_v4qi): New expander.
5420         (reduc_plus_scal_v4qi): Ditto.
5422 2021-10-12  Paul A. Clarke  <pc@us.ibm.com>
5424         * config/rs6000/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
5425         _mm_mullo_epi32, _mm_mul_epi32, _mm_packus_epi32): New.
5426         * config/rs6000/nmmintrin.h: Copy from i386, tweak to suit.
5428 2021-10-12  Paul A. Clarke  <pc@us.ibm.com>
5430         * config/rs6000/smmintrin.h (_mm_cvtepi8_epi16, _mm_cvtepi8_epi32,
5431         _mm_cvtepi8_epi64, _mm_cvtepi16_epi32, _mm_cvtepi16_epi64,
5432         _mm_cvtepi32_epi64, _mm_cvtepu8_epi16, _mm_cvtepu8_epi32,
5433         _mm_cvtepu8_epi64, _mm_cvtepu16_epi32, _mm_cvtepu16_epi64,
5434         _mm_cvtepu32_epi64): New.
5436 2021-10-12  Paul A. Clarke  <pc@us.ibm.com>
5438         * config/rs6000/smmintrin.h (_mm_test_all_zeros,
5439         _mm_test_all_ones, _mm_test_mix_ones_zeros): Rewrite as macro.
5441 2021-10-12  Paul A. Clarke  <pc@us.ibm.com>
5443         * config/rs6000/smmintrin.h (_mm_min_epi8, _mm_min_epu16,
5444         _mm_min_epi32, _mm_min_epu32, _mm_max_epi8, _mm_max_epu16,
5445         _mm_max_epi32, _mm_max_epu32): New.
5447 2021-10-11  Jan Hubicka  <hubicka@ucw.cz>
5449         * ipa-modref-tree.h (struct modref_access_node): Revert
5450         accidental change.
5451         (struct modref_ref_node): Likewise.
5453 2021-10-11  Jan Hubicka  <hubicka@ucw.cz>
5455         * ipa-modref-tree.h (modref_tree::global_access_p): New member
5456         function.
5457         * ipa-modref.c:
5458         (implicint_const_eaf_flags,implicit_pure_eaf_flags,
5459         ignore_stores_eaf_flags): Move to ipa-modref.h
5460         (remove_useless_eaf_flags): Remove early exit on NOCLOBBER.
5461         (modref_summary::global_memory_read_p): New member function.
5462         (modref_summary::global_memory_written_p): New member function.
5463         * ipa-modref.h (modref_summary::global_memory_read_p,
5464         modref_summary::global_memory_written_p): Declare.
5465         (implicint_const_eaf_flags,implicit_pure_eaf_flags,
5466         ignore_stores_eaf_flags): move here.
5467         * tree-ssa-structalias.c: Include ipa-modref-tree.h, ipa-modref.h
5468         and attr-fnspec.h.
5469         (handle_rhs_call): Rewrite.
5470         (handle_call_arg): New function.
5471         (determine_global_memory_access): New function.
5472         (handle_const_call): Remove
5473         (handle_pure_call): Remove
5474         (find_func_aliases_for_call): Update use of handle_rhs_call.
5475         (compute_points_to_sets): Handle global memory acccesses
5476         selectively
5478 2021-10-11  Diane Meirowitz  <diane.meirowitz@oracle.com>
5480         * doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
5481         documentation, mention UBSAN_OPTIONS, similar to what is done
5482         for AddressSanitizer.
5484 2021-10-11  Richard Biener  <rguenther@suse.de>
5486         PR middle-end/102683
5487         * internal-fn.c (expand_DEFERRED_INIT): Check for mode
5488         availability before building an integer type for storage
5489         purposes.
5491 2021-10-11  Richard Biener  <rguenther@suse.de>
5493         PR middle-end/101480
5494         * gimple.c (gimple_call_fnspec): Do not mark operator new/delete
5495         as const.
5497 2021-10-11  Martin Liska  <mliska@suse.cz>
5499         * common.opt: Remove Init(2) for some options.
5500         * toplev.c (process_options): Do not use AUTODETECT_VALUE, but
5501         use rather OPTION_SET_P.
5503 2021-10-11  Martin Liska  <mliska@suse.cz>
5505         * common.opt: Remove usage of IRA_REGION_AUTODETECT.
5506         * flag-types.h (enum ira_region): Likewise.
5507         * toplev.c (process_options): Use OPTION_SET_P instead of
5508         IRA_REGION_AUTODETECT.
5510 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
5512         * omp-low.c (omp_runtime_api_call): Handle omp_get_max_teams,
5513         omp_[sg]et_teams_thread_limit and omp_set_num_teams.
5515 2021-10-11  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
5517         * config/s390/s390-protos.h (s390_rawmemchr): Add prototype.
5518         * config/s390/s390.c (s390_rawmemchr): New function.
5519         * config/s390/s390.md (rawmemchr<SINT:mode>): New expander.
5520         * config/s390/vector.md (@vec_vfees<mode>): Basically a copy of
5521         the pattern vfees<mode> from vx-builtins.md.
5522         * config/s390/vx-builtins.md (*vfees<mode>): Remove.
5524 2021-10-11  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
5526         * builtins.c (get_memory_rtx): Change to external linkage.
5527         * builtins.h (get_memory_rtx): Add function prototype.
5528         * doc/md.texi (rawmemchr<mode>): Document.
5529         * internal-fn.c (expand_RAWMEMCHR): Define.
5530         * internal-fn.def (RAWMEMCHR): Add.
5531         * optabs.def (rawmemchr_optab): Add.
5532         * tree-loop-distribution.c (find_single_drs): Change return code
5533         behaviour by also returning true if no single store was found
5534         but a single load.
5535         (loop_distribution::classify_partition): Respect the new return
5536         code behaviour of function find_single_drs.
5537         (loop_distribution::execute): Call new function
5538         transform_reduction_loop in order to replace rawmemchr or strlen
5539         like loops by calls into builtins.
5540         (generate_reduction_builtin_1): New function.
5541         (generate_rawmemchr_builtin): New function.
5542         (generate_strlen_builtin_1): New function.
5543         (generate_strlen_builtin): New function.
5544         (generate_strlen_builtin_using_rawmemchr): New function.
5545         (reduction_var_overflows_first): New function.
5546         (determine_reduction_stmt_1): New function.
5547         (determine_reduction_stmt): New function.
5548         (loop_distribution::transform_reduction_loop): New function.
5550 2021-10-11  Martin Liska  <mliska@suse.cz>
5552         * tree.c (cl_option_hasher::hash): Use cl_optimization_hash
5553         and remove legacy hashing code.
5555 2021-10-11  Kito Cheng  <kito.cheng@sifive.com>
5557         PR target/100316
5558         * builtins.c (maybe_emit_call_builtin___clear_cache): Allow
5559         CONST_INT for BEGIN and END, and use gcc_assert rather than
5560         error.
5562 2021-10-10  Jakub Jelinek  <jakub@redhat.com>
5564         PR debug/102441
5565         * var-tracking.c (add_stores): For cselib_sp_derived_value_p values
5566         use MO_VAL_SET if loc is not sp.
5568 2021-10-10  Andrew Pinski  <apinski@marvell.com>
5570         PR tree-optimization/102622
5571         * match.pd: Swap the order of a?pow2cst:0 and a?-1:0 transformations.
5572         Swap the order of a?0:pow2cst and a?0:-1 transformations.
5574 2021-10-09  liuhongt  <hongtao.liu@intel.com>
5576         PR target/102639
5577         * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Handle
5578         HFmode.
5579         (ix86_use_mask_cmp_p): Ditto.
5580         (ix86_expand_sse_movcc): Ditto.
5581         * config/i386/i386.md (setcc_hf_mask): New define_insn.
5582         (movhf_mask): Ditto.
5583         (UNSPEC_MOVCC_MASK): New unspec.
5584         * config/i386/sse.md (UNSPEC_PCMP): Move to i386.md.
5586 2021-10-08  Vladimir N. Makarov  <vmakarov@redhat.com>
5588         PR rtl-optimization/102627
5589         * lra-constraints.c (split_reg): Use at least natural mode of hard reg.
5591 2021-10-08  Aldy Hernandez  <aldyh@redhat.com>
5593         * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Grow
5594         bitmap if needed.
5596 2021-10-08  Aldy Hernandez  <aldyh@redhat.com>
5598         * value-range.cc (irange::debug): New.
5599         * value-range.h (irange::debug): New.
5601 2021-10-08  Richard Sandiford  <richard.sandiford@arm.com>
5603         PR tree-optimization/102385
5604         * predict.h (change_edge_frequency): Declare.
5605         * predict.c (change_edge_frequency): New function.
5606         * tree-ssa-loop-manip.h (tree_transform_and_unroll_loop): Remove
5607         edge argument.
5608         (tree_unroll_loop): Likewise.
5609         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Update accordingly.
5610         * tree-predcom.c (pcom_worker::tree_predictive_commoning_loop):
5611         Likewise.
5612         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Likewise.
5613         * tree-ssa-loop-manip.c (tree_unroll_loop): Likewise.
5614         (tree_transform_and_unroll_loop): Likewise.  Use single_dom_exit
5615         to retrieve the exit edges.  Make all the old profile update code
5616         conditional on !single_loop_p -- the case it was written for --
5617         and use a different approach for the single-loop case.
5619 2021-10-08  Martin Liska  <mliska@suse.cz>
5621         * config/alpha/alpha.c (alpha_option_override): Use new macro
5622         OPTION_SET_P.
5623         * config/arc/arc.c (arc_override_options): Likewise.
5624         * config/arm/arm.c (arm_option_override): Likewise.
5625         * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5626         * config/c6x/c6x.c (c6x_option_override): Likewise.
5627         * config/csky/csky.c: Likewise.
5628         * config/darwin.c (darwin_override_options): Likewise.
5629         * config/frv/frv.c (frv_option_override): Likewise.
5630         * config/i386/djgpp.h: Likewise.
5631         * config/i386/i386.c (ix86_stack_protect_guard): Likewise.
5632         (ix86_max_noce_ifcvt_seq_cost): Likewise.
5633         * config/ia64/ia64.c (ia64_option_override): Likewise.
5634         (ia64_override_options_after_change): Likewise.
5635         * config/m32c/m32c.c (m32c_option_override): Likewise.
5636         * config/m32r/m32r.c (m32r_init): Likewise.
5637         * config/m68k/m68k.c (m68k_option_override): Likewise.
5638         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
5639         * config/mips/mips.c (mips_option_override): Likewise.
5640         * config/nios2/nios2.c (nios2_option_override): Likewise.
5641         * config/nvptx/nvptx.c (nvptx_option_override): Likewise.
5642         * config/pa/pa.c (pa_option_override): Likewise.
5643         * config/riscv/riscv.c (riscv_option_override): Likewise.
5644         * config/rs6000/aix71.h: Likewise.
5645         * config/rs6000/aix72.h: Likewise.
5646         * config/rs6000/aix73.h: Likewise.
5647         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Likewise.
5648         (rs6000_override_options_after_change): Likewise.
5649         (rs6000_linux64_override_options): Likewise.
5650         (glibc_supports_ieee_128bit): Likewise.
5651         (rs6000_option_override_internal): Likewise.
5652         (rs6000_file_start): Likewise.
5653         (rs6000_darwin_file_start): Likewise.
5654         * config/rs6000/rtems.h: Likewise.
5655         * config/rs6000/sysv4.h: Likewise.
5656         * config/rs6000/vxworks.h (SUB3TARGET_OVERRIDE_OPTIONS): Likewise.
5657         * config/s390/s390.c (s390_option_override): Likewise.
5658         * config/sh/linux.h: Likewise.
5659         * config/sh/netbsd-elf.h (while): Likewise.
5660         * config/sh/sh.c (sh_option_override): Likewise.
5661         * config/sol2.c (solaris_override_options): Likewise.
5662         * config/sparc/sparc.c (sparc_option_override): Likewise.
5663         * config/tilegx/tilegx.c (tilegx_option_override): Likewise.
5664         * config/visium/visium.c (visium_option_override): Likewise.
5665         * config/vxworks.c (vxworks_override_options): Likewise.
5666         * lto-opts.c (lto_write_options): Likewise.
5667         * omp-expand.c (expand_omp_simd): Likewise.
5668         * omp-general.c (omp_max_vf): Likewise.
5669         * omp-offload.c (oacc_xform_loop): Likewise.
5670         * opts.h (OPTION_SET_P): Likewise.
5671         * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
5672         * toplev.c (process_options): Likewise.
5673         * tree-predcom.c: Likewise.
5674         * tree-sra.c (analyze_all_variable_accesses): Likewise.
5676 2021-10-08  liuhongt  <hongtao.liu@intel.com>
5678         PR target/102464
5679         * config/i386/i386.c (ix86_optab_supported_p):
5680         Return true for HFmode.
5681         * match.pd: Simplify (_Float16) ceil ((double) x) to
5682         __builtin_ceilf16 (a) when a is _Float16 type and
5683         direct_internal_fn_supported_p.
5685 2021-10-08  liuhongt  <hongtao.liu@intel.com>
5687         PR target/102494
5688         * config/i386/i386-expand.c (emit_reduc_half): Hanlde V4HImode.
5689         * config/i386/mmx.md (reduc_plus_scal_v4hi): New.
5690         (reduc_<code>_scal_v4hi): New.
5692 2021-10-08  liuhongt  <hongtao.liu@intel.com>
5694         * common.opt (ftree-vectorize): Add Var(flag_tree_vectorize).
5695         * doc/invoke.texi (Options That Control Optimization): Update
5696         documents.
5697         * opts.c (default_options_table): Enable auto-vectorization at
5698         O2 with very-cheap cost model.
5699         (finish_options): Use cheap cost model for
5700         explicit -ftree{,-loop}-vectorize.
5702 2021-10-07  Indu Bhagat  <indu.bhagat@oracle.com>
5704         * ctfc.c (ctfc_delete_container): Free hash table contents.
5706 2021-10-07  Indu Bhagat  <indu.bhagat@oracle.com>
5708         * toplev.c (process_options): Do not warn for GNU GIMPLE.
5710 2021-10-07  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5712         * tree-object-size.c (addr_object_size,
5713         compute_builtin_object_size): Drop PDECL and POFF arguments.
5714         (addr_object_size): Adjust calls.
5715         * tree-object-size.h (compute_builtin_object_size): Drop PDECL
5716         and POFF arguments.
5718 2021-10-07  Roger Sayle  <roger@nextmovesoftware.com>
5720         * rtl.def (SMUL_HIGHPART, UMUL_HIGHPART): New RTX codes for
5721         representing signed and unsigned high-part multiplication resp.
5722         * simplify-rtx.c (simplify_binary_operation_1) [SMUL_HIGHPART,
5723         UMUL_HIGHPART]: Simplify high-part multiplications by zero.
5724         [SS_PLUS, US_PLUS, SS_MINUS, US_MINUS, SS_MULT, US_MULT,
5725         SS_DIV, US_DIV]: Similar simplifications for saturating
5726         arithmetic.
5727         (simplify_const_binary_operation) [SS_PLUS, US_PLUS, SS_MINUS,
5728         US_MINUS, SS_MULT, US_MULT, SMUL_HIGHPART, UMUL_HIGHPART]:
5729         Implement compile-time evaluation for constant operands.
5730         * dwarf2out.c (mem_loc_descriptor): Skip SMUL_HIGHPART and
5731         UMUL_HIGHPART.
5732         * doc/rtl.texi (smul_highpart, umul_highpart): Document RTX codes.
5733         * doc/md.texi (smul@var{m}3_highpart, umul@var{m3}_highpart):
5734         Mention the new smul_highpart and umul_highpart RTX codes.
5735         * doc/invoke.texi: Silence @xref "compilation" warnings.
5737 2021-10-07  Martin Jambor  <mjambor@suse.cz>
5739         PR ipa/102388
5740         * ipa-prop.c (ipa_edge_args_sum_t::duplicate): Also handle the
5741         case when the source reference description corresponds to a
5742         referance taken in a function src->caller is inlined to.
5744 2021-10-07  Jan Hubicka  <hubicka@ucw.cz>
5746         PR ipa/102581
5747         * ipa-modref-tree.h (modref_access_node::contains_p): Handle offsets
5748         better.
5749         (modref_access_node::try_merge_with): Add sanity check that there
5750         are no redundant entries in the list.
5752 2021-10-07  Richard Biener  <rguenther@suse.de>
5754         PR tree-optimization/102608
5755         * tree-ssa-sccvn.c (visit_stmt): Drop .DEFERRED_INIT to
5756         varying.
5758 2021-10-07  Martin Liska  <mliska@suse.cz>
5760         * toplev.c (toplev::main): Make
5761         save_opt_decoded_options a pointer type
5762         * toplev.h: Likewise.
5764 2021-10-07  Andrew Stubbs  <ams@codesourcery.com>
5766         * config/gcn/gcn-valu.md (gather<mode>_insn_2offsets<exec>): Apply
5767         HAVE_GCN_ASM_GLOBAL_LOAD_FIXED.
5768         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
5770 2021-10-07  Andrew Stubbs  <ams@codesourcery.com>
5772         * config/gcn/gcn-hsa.h (SRAMOPT): Include the whole option string.
5773         Adjust for new -msram-ecc=any behaviour.
5774         (ASM_SPEC): Adjust -mxnack and -msram-ecc usage.
5775         * config/gcn/gcn.c (output_file_start): Implement -msram-ecc=any.
5776         * config/gcn/mkoffload.c (EF_AMDGPU_XNACK): Rename to ...
5777         (EF_AMDGPU_XNACK_V3): ... this.
5778         (EF_AMDGPU_SRAM_ECC): Rename to ...
5779         (EF_AMDGPU_SRAM_ECC_V3): ... this.
5780         (EF_AMDGPU_FEATURE_XNACK_V4): New.
5781         (EF_AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4): New.
5782         (EF_AMDGPU_FEATURE_XNACK_ANY_V4): New.
5783         (EF_AMDGPU_FEATURE_XNACK_OFF_V4): New.
5784         (EF_AMDGPU_FEATURE_XNACK_ON_V4): New.
5785         (EF_AMDGPU_FEATURE_SRAMECC_V4): New.
5786         (EF_AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4): New.
5787         (EF_AMDGPU_FEATURE_SRAMECC_ANY_V4): New.
5788         (EF_AMDGPU_FEATURE_SRAMECC_OFF_V4): New.
5789         (EF_AMDGPU_FEATURE_SRAMECC_ON_V4): New.
5790         (SET_XNACK_ON): New.
5791         (SET_XNACK_OFF): New.
5792         (TEST_XNACK): New.
5793         (SET_SRAM_ECC_ON): New.
5794         (SET_SRAM_ECC_ANY): New.
5795         (SET_SRAM_ECC_OFF): New.
5796         (TEST_SRAM_ECC_ANY): New.
5797         (TEST_SRAM_ECC_ON): New.
5798         (main): Implement HSACOv4 and -msram-ecc=any.
5800 2021-10-07  Andrew Stubbs  <ams@codesourcery.com>
5802         * config.in: Regenerate.
5803         * config/gcn/gcn-hsa.h (X_FIJI): New macro.
5804         (X_900): New macro.
5805         (X_906): New macro.
5806         (X_908): New macro.
5807         (A_FIJI): Rename to ...
5808         (S_FIJI): ... this.
5809         (A_900): Rename to ...
5810         (S_900): ... this.
5811         (A_906): Rename to ...
5812         (S_906): ... this.
5813         (A_908): Rename to ...
5814         (S_908): ... this.
5815         (SRAMOPT): New macro.
5816         (ASM_SPEC): Adjust xnack option usage.
5817         * config/gcn/gcn.c (output_file_start): Adjust amdgcn_target usage.
5818         * configure: Regenerate.
5819         * configure.ac: Detect LLVM assembler dialect.
5821 2021-10-07  Richard Biener  <rguenther@suse.de>
5823         * tree-pretty-print.c (dump_generic_node): Do not elide
5824         printing '&' when dumping with -gimple.
5826 2021-10-06  Andrew MacLeod  <amacleod@redhat.com>
5828         * gimple-range-cache.cc (non_null_ref::adjust_range): Call new
5829         intersect routine.
5830         * gimple-range-fold.cc (adjust_pointer_diff_expr): Ditto.
5831         (adjust_imagpart_expr): Ditto.
5832         * value-range.cc (irange::irange_intersect): Call new routine if
5833         RHS is a single pair.
5834         (irange::intersect): New wide_int version.
5835         * value-range.h (class irange): New prototype.
5837 2021-10-06  Andrew MacLeod  <amacleod@redhat.com>
5839         * gimple-range-edge.cc (gimple_outgoing_range::gimple_outgoing_range):
5840         Add parameter to limit size when recognizing switches.
5841         (gimple_outgoing_range::edge_range_p): Check size limit.
5842         * gimple-range-edge.h (gimple_outgoing_range): Add size field.
5843         * gimple-range-gori.cc (gori_map::calculate_gori): Ignore switches
5844         that exceed the size limit.
5845         (gori_compute::gori_compute): Add initializer.
5846         * params.opt (evrp-switch-limit): New.
5847         * doc/invoke.texi: Update docs.
5849 2021-10-06  Andrew MacLeod  <amacleod@redhat.com>
5851         * value-range.h (irange::set_varying): Use TYPE_MIN_VALUE and
5852         TYPE_MAX_VALUE instead of creating new trees when possible.
5854 2021-10-06  Andrew MacLeod  <amacleod@redhat.com>
5856         * gimple-range-cache.cc (non_null_ref::adjust_range): Check for
5857         zero and non-zero more efficently.
5859 2021-10-06  Richard Biener  <rguenther@suse.de>
5861         PR c/102605
5862         * dumpfile.h (TDF_GIMPLE_VAL): New.
5863         (dump_flag): Re-order and adjust TDF_* flags.  Make
5864         the enum uint32_t.  Use std::underlying_type in the
5865         operator overloads.
5866         (optgroup_flag): Likewise for the operator overloads.
5867         * tree-pretty-print.c (dump_generic_node): Wrap ADDR_EXPR
5868         in _Literal if TDF_GIMPLE_VAL.
5869         * gimple-pretty-print.c (dump_gimple_assign): Add
5870         TDF_GIMPLE_VAL to flags when dumping operands where only
5871         is_gimple_val are allowed.
5872         (dump_gimple_cond): Likewise.
5874 2021-10-06  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
5876         * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove redundant if
5877         condition.
5879 2021-10-05  qing zhao  <qing.zhao@oracle.com>
5881         PR middle-end/102359
5882         * gimplify.c (gimplify_decl_expr): Not add initialization for an
5883         auto variable when it has been initialized by frontend.
5885 2021-10-05  Aldy Hernandez  <aldyh@redhat.com>
5887         * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
5888         Loosen restrictions
5890 2021-10-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5892         * common/config/avr/avr-common.c (avr_handle_option): Mark
5893         argument as ATTRIBUTE_UNUSED.
5895 2021-10-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5897         * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC):
5898         Undefine before redefinition.
5900 2021-10-05  Richard Biener  <rguenther@suse.de>
5902         * toplev.c (no_backend): Remove global var.
5903         (process_options): Pass in no_backend, move post_options
5904         langhook call to toplev::main.
5905         (do_compile): Pass in no_backend, move process_options call
5906         to toplev::main.
5907         (toplev::run_self_tests): Check no_backend at the caller.
5908         (toplev::main): Call post_options and process_options
5909         split out from do_compile, do self-tests only if
5910         no_backend is initialized.
5912 2021-10-05  Richard Biener  <rguenther@suse.de>
5914         * tree-cfg.c (dump_function_to_file): Dump the UID of the
5915         function as part of the name when requested.
5916         * tree-pretty-print.c (dump_function_name): Dump the UID when
5917         requested and the langhook produced the actual name.
5919 2021-10-05  Richard Biener  <rguenther@suse.de>
5921         PR middle-end/102587
5922         PR middle-end/102285
5923         * internal-fn.c (expand_DEFERRED_INIT): Fall back to
5924         zero-initialization as last resort, use the constant
5925         size as given by the DEFERRED_INIT argument to build
5926         the initializer.
5928 2021-10-04  Marek Polacek  <polacek@redhat.com>
5930         PR c++/97573
5931         * doc/invoke.texi: Document -Warray-compare.
5933 2021-10-04  Richard Biener  <rguenther@suse.de>
5935         * gimplify.c (is_var_need_auto_init): DECL_HARD_REGISTER
5936         variables are not to be initialized.
5938 2021-10-04  Richard Biener  <rguenther@suse.de>
5940         * expr.h (non_mem_decl_p): Declare.
5941         (mem_ref_refers_to_non_mem_p): Likewise.
5942         * expr.c (non_mem_decl_p): Export.
5943         (mem_ref_refers_to_non_mem_p): Likewise.
5944         * internal-fn.c (expand_DEFERRED_INIT): Do not expand the LHS
5945         but check the base with mem_ref_refers_to_non_mem_p
5946         and non_mem_decl_p.
5948 2021-10-04  Richard Biener  <rguenther@suse.de>
5950         PR tree-optimization/102570
5951         * tree-ssa-sccvn.h (vn_reference_op_struct): Document
5952         we are using clique for the internal function code.
5953         * tree-ssa-sccvn.c (vn_reference_op_eq): Compare the
5954         internal function code.
5955         (print_vn_reference_ops): Print the internal function code.
5956         (vn_reference_op_compute_hash): Hash it.
5957         (copy_reference_ops_from_call): Record it.
5958         (visit_stmt): Remove the restriction around internal function
5959         calls.
5960         (fully_constant_vn_reference_p): Use fold_const_call and handle
5961         internal functions.
5962         (vn_reference_eq): Compare call return types.
5963         * tree-ssa-pre.c (create_expression_by_pieces): Handle
5964         generating calls to internal functions.
5965         (compute_avail): Remove the restriction around internal function
5966         calls.
5968 2021-10-04  Aldy Hernandez  <aldyh@redhat.com>
5970         PR tree-optimization/102560
5971         * gimple-ssa-warn-alloca.c (alloca_call_type): Remove static
5972         marker for invalid_range.
5974 2021-10-04  Richard Biener  <rguenther@suse.de>
5976         PR middle-end/102587
5977         * internal-fn.c (expand_DEFERRED_INIT): Guard register
5978         initialization path an avoid initializing VLA registers
5979         with it.
5981 2021-10-04  Eric Botcazou  <ebotcazou@adacore.com>
5983         * config/rs6000/vxworks.h (TARGET_INIT_LIBFUNCS): Delete.
5985 2021-10-03  Martin Liska  <mliska@suse.cz>
5987         * toplev.c (toplev::main): Check opt_index if it is a part
5988         of cl_options.
5990 2021-10-02  Aldy Hernandez  <aldyh@redhat.com>
5992         PR tree-optimization/102563
5993         * range-op.cc (operator_lshift::op1_range): Do not clobber
5994         range.
5996 2021-10-02  Martin Liska  <mliska@suse.cz>
5998         * toplev.c (toplev::main): save_decoded_options[0] is program
5999         name and so it should be skipped.
6001 2021-10-01  Aldy Hernandez  <aldyh@redhat.com>
6003         PR tree-optimization/102546
6004         * range-op.cc (operator_lshift::op1_range): Teach range-ops that
6005         X << Y is non-zero implies X is also non-zero.
6007 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
6009         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
6010         Cortex-X2 core.
6011         * config/aarch64/aarch64-tune.md: Regenerate.
6012         * doc/invoke.texi: Update docs.
6014 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
6016         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
6017         Cortex-A710 core.
6018         * config/aarch64/aarch64-tune.md: Regenerate.
6019         * doc/invoke.texi: Update docs.
6021 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
6023         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
6024         Cortex-A510 core.
6025         * config/aarch64/aarch64-tune.md: Regenerate.
6026         * doc/invoke.texi: Update docs.
6028 2021-10-01  Martin Sebor  <msebor@redhat.com>
6030         PR c/102103
6031         * doc/invoke.texi (-Waddress): Update.
6032         * gengtype.c (write_types): Avoid -Waddress.
6033         * poly-int.h (POLY_SET_COEFF): Avoid using null.
6035 2021-10-01  John David Anglin  <danglin@gcc.gnu.org>
6037         PR debug/102373
6038         * config/pa/pa.c (pa_option_override): Default to dwarf version 4
6039         on hppa64-hpux.
6041 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
6043         * config/aarch64/aarch64.h (AARCH64_FL_V9): Update value.
6045 2021-10-01  Aldy Hernandez  <aldyh@redhat.com>
6047         * gimple-range-path.cc (path_range_query::compute_ranges): Use
6048         get_path_oracle.
6049         * gimple-range-path.h (class path_range_query): Remove shadowed
6050         m_oracle field.
6051         (path_range_query::get_path_oracle): New.
6053 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
6054             Richard Biener  <rguenther@suse.de>
6056         PR sanitizer/102515
6057         * doc/invoke.texi (-fsanitize=integer-divide-by-zero): Remove
6058         INT_MIN / -1 division detection from here ...
6059         (-fsanitize=signed-integer-overflow): ... and add it here.
6061 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
6063         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): Added
6064         armv9-a.
6065         * config/aarch64/aarch64.h (AARCH64_FL_V9): New.
6066         (AARCH64_FL_FOR_ARCH9): New flags for Armv9-A.
6067         (AARCH64_ISA_V9): New ISA flag.
6068         * doc/invoke.texi: Update docs.
6070 2021-10-01  Martin Liska  <mliska@suse.cz>
6072         * toplev.c (toplev::main): Save decoded optimization options.
6073         * toplev.h (save_opt_decoded_options): New.
6074         * doc/extend.texi: Be more clear about optimize and target
6075         attributes.
6077 2021-10-01  Eric Botcazou  <ebotcazou@adacore.com>
6079         * explow.c: Include langhooks.h.
6080         (set_stack_check_libfunc): Build a proper function type.
6082 2021-10-01  Eric Botcazou  <ebotcazou@adacore.com>
6084         PR c++/64697
6085         * config/i386/i386.c (legitimate_pic_address_disp_p): For PE-COFF do
6086         not return true for external weak function symbols in medium model.
6088 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
6090         * tree.h (OMP_CLAUSE_ORDER_REPRODUCIBLE): Define.
6091         * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_ORDER>: Print
6092         reproducible: for OMP_CLAUSE_ORDER_REPRODUCIBLE.
6093         * omp-general.c (omp_extract_for_data): If OMP_CLAUSE_ORDER is seen
6094         without OMP_CLAUSE_ORDER_UNCONSTRAINED, overwrite sched_kind to
6095         OMP_CLAUSE_SCHEDULE_STATIC.
6097 2021-10-01  Richard Biener  <rguenther@suse.de>
6099         PR middle-end/102518
6100         * tree-inline.c (setup_one_parameter): Avoid substituting
6101         an invariant into contexts where a GIMPLE register is not valid.
6103 2021-09-30  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
6105         * config/arm/arm-cpus.in: Add Cortex-R52+ CPU.
6106         * config/arm/arm-tables.opt: Regenerate.
6107         * config/arm/arm-tune.md: Regenerate.
6108         * doc/invoke.texi: Update docs.
6110 2021-09-30  Uroš Bizjak  <ubizjak@gmail.com>
6112         PR target/89954
6113         * config/i386/i386.md
6114         (sign_extend:WIDE (any_logic:NARROW (memory, immediate)) splitters):
6115         New splitters.
6117 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
6119         * omp-low.c (omp_runtime_api_call): Add omp_aligned_{,c}alloc and
6120         omp_{c,re}alloc, fix omp_alloc/omp_free.
6122 2021-09-30  Martin Liska  <mliska@suse.cz>
6124         * defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
6125         asm_out_file and stream directly to MYFILE.
6127 2021-09-30  Richard Biener  <rguenther@suse.de>
6129         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
6130         Restore and fix condition under which we apply npeel to
6131         the DRs misalignment value.
6133 2021-09-30  Richard Biener  <rguenther@suse.de>
6135         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
6136         Fix npeel check for variable amount of peeling.
6138 2021-09-30  Aldy Hernandez  <aldyh@redhat.com>
6140         * lto-wrapper.c (run_gcc): Plug snprintf overflow.
6142 2021-09-30  Aldy Hernandez  <aldyh@redhat.com>
6144         * gimple-range.cc (gimple_ranger::debug): New.
6145         * gimple-range.h (class gimple_ranger): Add debug.
6147 2021-09-30  Aldy Hernandez  <aldyh@redhat.com>
6149         PR middle-end/102519
6150         * tree-vrp.c (hybrid_threader::~hybrid_threader): Free m_query.
6152 2021-09-29  Indu Bhagat  <indu.bhagat@oracle.com>
6154         PR debug/102507
6155         * btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
6156         (btf_finalize): Empty the hash_map btf_var_ids.
6158 2021-09-29  Aldy Hernandez  <aldyh@redhat.com>
6160         * tree-vrp.c (thread_through_all_blocks): Return bool.
6161         (execute_vrp_threader): Return TODO_* flags.
6162         (pass_data_vrp_threader): Set todo_flags_finish to 0.
6164 2021-09-29  Aldy Hernandez  <aldyh@redhat.com>
6166         * timevar.def (TV_TREE_VRP_THREADER): New.
6167         * tree-vrp.c: Use TV_TREE_VRP_THREADER for VRP threader pass.
6169 2021-09-29  David Faust  <david.faust@oracle.com>
6171         * config.gcc (bpf-*-*): Do not overwrite extra_headers.
6173 2021-09-29  Jonathan Wright  <jonathan.wright@arm.com>
6175         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_PPU): Define
6176         new type qualifier enum.
6177         (TYPES_TERNOP_SSSU): Likewise.
6178         (TYPES_TERNOP_PPPU): Likewise.
6179         * config/aarch64/aarch64-simd-builtins.def: Define PPU, SSU,
6180         PPPU and SSSU builtin generator macros for qtbl1 and qtbx1
6181         Neon builtins.
6182         * config/aarch64/arm_neon.h (vqtbl1_p8): Use type-qualified
6183         builtin and remove casts.
6184         (vqtbl1_s8): Likewise.
6185         (vqtbl1q_p8): Likewise.
6186         (vqtbl1q_s8): Likewise.
6187         (vqtbx1_s8): Likewise.
6188         (vqtbx1_p8): Likewise.
6189         (vqtbx1q_s8): Likewise.
6190         (vqtbx1q_p8): Likewise.
6191         (vtbl1_p8): Likewise.
6192         (vtbl2_p8): Likewise.
6193         (vtbx2_p8): Likewise.
6195 2021-09-29  Richard Biener  <rguenther@suse.de>
6197         * tree-vect-data-refs.c (vect_dr_misalign_for_aligned_access):
6198         New helper.
6199         (vect_update_misalignment_for_peel): Use it to update
6200         misaligned to the value necessary for an aligned access.
6201         (vect_get_peeling_costs_all_drs): Likewise.
6202         (vect_enhance_data_refs_alignment): Likewise.
6204 2021-09-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6206         * config/aarch64/aarch64.c (aarch64_expand_cpymem): Count number of
6207         emitted operations and adjust heuristic for code size.
6209 2021-09-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6211         * config/aarch64/aarch64.c (aarch64_expand_setmem): Count number of
6212         emitted operations and adjust heuristic for code size.
6214 2021-09-29  Jakub Jelinek  <jakub@redhat.com>
6216         PR middle-end/102504
6217         * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private even
6218         in OMP_SCOPE clauses, not just on worksharing construct clauses.
6220 2021-09-28  Geng Qi  <gengqi@linux.alibaba.com>
6222         * config/riscv/riscv.md (mulv<mode>4): Call gen_smul<mode>3_highpart.
6223         (<u>mulditi3): Call <su>muldi3_highpart.
6224         (<u>muldi3_highpart): Rename to <su>muldi3_highpart.
6225         (<u>mulsidi3): Call <su>mulsi3_highpart.
6226         (<u>mulsi3_highpart): Rename to <su>mulsi3_highpart.
6228 2021-09-28  Iain Sandoe  <iain@sandoe.co.uk>
6230         * config/darwin.h (DSYMUTIL_SPEC): Recognize D sources.
6232 2021-09-28  Iain Sandoe  <iain@sandoe.co.uk>
6234         * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
6235         (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
6236         of the fixed regs.
6238 2021-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6240         * config/aarch64/aarch64.h (AARCH64_FL_LS64): Define
6241         (AARCH64_FL_V8_7): Likewise.
6242         (AARCH64_FL_FOR_ARCH8_7): Likewise.
6243         * config/aarch64/aarch64-arches.def (armv8.7-a): Define.
6244         * config/aarch64/aarch64-option-extensions.def (ls64): Define.
6245         * doc/invoke.texi: Document the above.
6247 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
6249         * dbgcnt.c (dbg_cnt_counter): New.
6250         * dbgcnt.h (dbg_cnt_counter): New.
6251         * dumpfile.c (dump_options): Add entry for TDF_THREADING.
6252         * dumpfile.h (enum dump_flag): Add TDF_THREADING.
6253         * gimple-range-path.cc (DEBUG_SOLVER): Use TDF_THREADING.
6254         * tree-ssa-threadupdate.c (dump_jump_thread_path): Dump out
6255         debug counter.
6257 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
6259         * cfgcleanup.c (pass_jump::execute): Check
6260         flag_expensive_optimizations.
6261         (pass_jump_after_combine::gate): Same.
6262         * doc/invoke.texi (-fthread-jumps): Enable for -O1.
6263         * opts.c (default_options_table): Enable -fthread-jumps at -O1.
6264         * tree-ssa-threadupdate.c
6265         (fwd_jt_path_registry::remove_jump_threads_including): Bail unless
6266         flag_thread_jumps.
6268 2021-09-28  Ilya Leoshkevich  <iii@linux.ibm.com>
6270         * tree-ssa-reassoc.c (biased_names): New global.
6271         (propagate_bias_p): New function.
6272         (loop_carried_phi): Remove.
6273         (propagate_rank): Propagate bias along single uses.
6274         (get_rank): Update biased_names when needed.
6276 2021-09-28  Ilya Leoshkevich  <iii@linux.ibm.com>
6278         * passes.def (pass_reassoc): Rename parameter to early_p.
6279         * tree-ssa-reassoc.c (reassoc_bias_loop_carried_phi_ranks_p):
6280         New variable.
6281         (phi_rank): Don't bias loop-carried phi ranks
6282         before vectorization pass.
6283         (execute_reassoc): Add bias_loop_carried_phi_ranks_p parameter.
6284         (pass_reassoc::pass_reassoc): Add bias_loop_carried_phi_ranks_p
6285         initializer.
6286         (pass_reassoc::set_param): Set bias_loop_carried_phi_ranks_p
6287         value.
6288         (pass_reassoc::execute): Pass bias_loop_carried_phi_ranks_p to
6289         execute_reassoc.
6290         (pass_reassoc::bias_loop_carried_phi_ranks_p): New member.
6292 2021-09-28  Jakub Jelinek  <jakub@redhat.com>
6294         PR target/102498
6295         * config/i386/i386.c (standard_80387_constant_p): Don't recognize
6296         special 80387 instruction XFmode constants if flag_rounding_math.
6298 2021-09-28  Richard Biener  <rguenther@suse.de>
6300         PR tree-optimization/100112
6301         * tree-ssa-sccvn.c (visit_reference_op_load): Record the
6302         referece into the hashtable twice in case last_vuse is
6303         different from the original vuse on the stmt.
6305 2021-09-28  Jakub Jelinek  <jakub@redhat.com>
6307         PR middle-end/102492
6308         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't call the
6309         omp_finish_clause langhook on implicitly added OMP_CLAUSE_PRIVATE
6310         clauses on SIMD constructs.
6312 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
6314         PR tree-optimization/102511
6315         * gimple-range-path.cc (path_range_query::range_on_path_entry):
6316         Return VARYING when nothing found.
6318 2021-09-28  Hongyu Wang  <hongyu.wang@intel.com>
6320         PR target/102230
6321         * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): Add
6322         V2HF mode check.
6323         (VALID_SSE2_REG_VHF_MODE): Add V4HFmode and V2HFmode.
6324         (VALID_MMX_REG_MODE): Add V4HFmode.
6325         (SSE_REG_MODE_P): Replace VALID_AVX512FP16_REG_MODE with
6326         vector mode condition.
6327         * config/i386/i386.c (classify_argument): Parse V4HF/V2HF
6328         via sse regs.
6329         (function_arg_32): Add V4HFmode.
6330         (function_arg_advance_32): Likewise.
6331         * config/i386/i386.md (mode): Add V4HF/V2HF.
6332         (MODE_SIZE): Likewise.
6333         * config/i386/mmx.md (MMXMODE): Add V4HF mode.
6334         (V_32): Add V2HF mode.
6335         (VHF_32_64): New mode iterator.
6336         (*mov<mode>_internal): Adjust sse alternatives to support
6337         V4HF mode move.
6338         (*mov<mode>_internal): Adjust sse alternatives to support
6339         V2HF mode move.
6340         (<insn><mode>3): New define_insn for add/sub/mul/div.
6342 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
6344         * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Check
6345         flag_thread_jumps.
6346         (pass_early_thread_jumps::gate): Same.
6347         * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
6348         Return if !flag_thread_jumps.
6349         * tree-ssa-threadupdate.c
6350         (jt_path_registry::register_jump_thread): Assert that
6351         flag_thread_jumps is true.
6353 2021-09-28  liuhongt  <hongtao.liu@intel.com>
6355         * simplify-rtx.c
6356         (simplify_context::simplify_binary_operation_1): Relax
6357         condition of simplifying (vec_concat:M (vec_select op0
6358         index0)(vec_select op1 index1)) to allow different modes
6359         between op0 and M, but have same inner mode.
6361 2021-09-28  liuhongt  <hongtao.liu@intel.com>
6363         * config/i386/i386-expand.c (emit_reduc_half): Handle
6364         V8HF/V16HF/V32HFmode.
6365         * config/i386/sse.md (REDUC_SSE_PLUS_MODE): Add V8HF.
6366         (REDUC_SSE_SMINMAX_MODE): Ditto.
6367         (REDUC_PLUS_MODE): Add V16HF and V32HF.
6368         (REDUC_SMINMAX_MODE): Ditto.
6370 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
6372         * gimple-range-path.cc
6373         (path_range_query::precompute_ranges_in_block): Rename to...
6374         (path_range_query::compute_ranges_in_block): ...this.
6375         (path_range_query::precompute_ranges): Rename to...
6376         (path_range_query::compute_ranges): ...this.
6377         (path_range_query::precompute_relations): Rename to...
6378         (path_range_query::compute_relations): ...this.
6379         (path_range_query::precompute_phi_relations): Rename to...
6380         (path_range_query::compute_phi_relations): ...this.
6381         * gimple-range-path.h: Rename precompute* to compute*.
6382         * tree-ssa-threadbackward.c
6383         (back_threader::find_taken_edge_switch): Same.
6384         (back_threader::find_taken_edge_cond): Same.
6385         * tree-ssa-threadedge.c
6386         (hybrid_jt_simplifier::compute_ranges_from_state): Same.
6387         (hybrid_jt_state::register_equivs_stmt): Inline...
6388         * tree-ssa-threadedge.h: ...here.
6390 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
6392         * tree-vrp.c (lhs_of_dominating_assert): Remove.
6393         (class vrp_jt_state): Remove.
6394         (class vrp_jt_simplifier): Remove.
6395         (vrp_jt_simplifier::simplify): Remove.
6396         (class vrp_jump_threader): Remove.
6397         (vrp_jump_threader::vrp_jump_threader): Remove.
6398         (vrp_jump_threader::~vrp_jump_threader): Remove.
6399         (vrp_jump_threader::before_dom_children): Remove.
6400         (vrp_jump_threader::after_dom_children): Remove.
6402 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
6404         * passes.def (pass_vrp_threader): New.
6405         * tree-pass.h (make_pass_vrp_threader): Add make_pass_vrp_threader.
6406         * tree-ssa-threadedge.c (hybrid_jt_state::register_equivs_stmt): New.
6407         (hybrid_jt_simplifier::hybrid_jt_simplifier): New.
6408         (hybrid_jt_simplifier::simplify): New.
6409         (hybrid_jt_simplifier::compute_ranges_from_state): New.
6410         * tree-ssa-threadedge.h (class hybrid_jt_state): New.
6411         (class hybrid_jt_simplifier): New.
6412         * tree-vrp.c (execute_vrp): Remove ASSERT_EXPR based jump
6413         threader.
6414         (class hybrid_threader): New.
6415         (hybrid_threader::hybrid_threader): New.
6416         (hybrid_threader::~hybrid_threader): New.
6417         (hybrid_threader::before_dom_children): New.
6418         (hybrid_threader::after_dom_children): New.
6419         (execute_vrp_threader): New.
6420         (class pass_vrp_threader): New.
6421         (make_pass_vrp_threader): New.
6423 2021-09-27  Martin Liska  <mliska@suse.cz>
6425         * output.h (enum section_flag): New.
6426         (SECTION_FORGET): Remove.
6427         (SECTION_ENTSIZE): Make it (1UL << 8) - 1.
6428         (SECTION_STYLE_MASK): Define it based on other enum
6429         values.
6430         * varasm.c (switch_to_section): Remove unused handling of
6431         SECTION_FORGET.
6433 2021-09-27  Martin Liska  <mliska@suse.cz>
6435         * common.opt: Add new variable flag_default_complex_method.
6436         * opts.c (finish_options): Handle flags related to
6437           x_flag_complex_method.
6438         * toplev.c (process_options): Remove option handling related
6439         to flag_complex_method.
6441 2021-09-27  Richard Biener  <rguenther@suse.de>
6443         PR middle-end/102450
6444         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid using
6445         type_for_size, instead use int_mode_for_size.
6447 2021-09-27  Andrew Pinski  <apinski@marvell.com>
6449         PR c/94726
6450         * gimplify.c (gimplify_save_expr): Return early
6451         if the type of val is error_mark_node.
6453 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
6455         * tree-ssanames.c (ssa_name_has_boolean_range): Use
6456         get_range_query.
6458 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
6460         * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
6461         vrp_visit_cond_stmt.
6462         * tree-ssa-dom.c (cprop_operand): Convert to range_query API.
6463         (cprop_into_stmt): Same.
6464         (dom_opt_dom_walker::optimize_stmt): Same.
6466 2021-09-27  Richard Biener  <rguenther@suse.de>
6468         PR tree-optimization/97351
6469         PR tree-optimization/97352
6470         PR tree-optimization/82426
6471         * tree-vectorizer.h (dr_misalignment): Add vector type
6472         argument.
6473         (aligned_access_p): Likewise.
6474         (known_alignment_for_access_p): Likewise.
6475         (vect_supportable_dr_alignment): Likewise.
6476         (vect_known_alignment_in_bytes): Likewise.  Refactor.
6477         (DR_MISALIGNMENT): Remove.
6478         (vect_update_shared_vectype): Likewise.
6479         * tree-vect-data-refs.c (dr_misalignment): Refactor, handle
6480         a vector type with larger alignment requirement and apply
6481         the negative step adjustment here.
6482         (vect_calculate_target_alignment): Remove.
6483         (vect_compute_data_ref_alignment): Get explicit vector type
6484         argument, do not apply a negative step alignment adjustment
6485         here.
6486         (vect_slp_analyze_node_alignment): Re-analyze alignment
6487         when we re-visit the DR with a bigger desired alignment but
6488         keep more precise results from smaller alignments.
6489         * tree-vect-slp.c (vect_update_shared_vectype): Remove.
6490         (vect_slp_analyze_node_operations_1): Do not update the
6491         shared vector type on stmts.
6492         * tree-vect-stmts.c (vect_analyze_stmt): Push/pop the
6493         vector type of an SLP node to the representative stmt-info.
6494         (vect_transform_stmt): Likewise.
6496 2021-09-27  liuhongt  <hongtao.liu@intel.com>
6498         Revert:
6499         2021-09-09  liuhongt  <hongtao.liu@intel.com>
6501         PR target/101059
6502         * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
6503         (reduc_plus_scal_v4sf): .. this, New define_expand.
6504         (reduc_plus_scal_v2df): .. and this, New define_expand.
6506 2021-09-26  liuhongt  <hongtao.liu@intel.com>
6508         * doc/extend.texi (Half-Precision): Remove storage only
6509         description for _Float16 w/o avx512fp16.
6511 2021-09-25  Dimitar Dimitrov  <dimitar@dinux.eu>
6513         * config/pru/constraints.md (Rrio): New constraint.
6514         * config/pru/predicates.md (regio_operand): New predicate.
6515         * config/pru/pru-pragma.c (pru_register_pragmas): Register
6516         the __regio_symbol address space.
6517         * config/pru/pru-protos.h (pru_symref2ioregno): Declaration.
6518         * config/pru/pru.c (pru_symref2ioregno): New helper function.
6519         (pru_legitimate_address_p): Remove.
6520         (pru_addr_space_legitimate_address_p): Use the address space
6521         aware hook variant.
6522         (pru_nongeneric_pointer_addrspace): New helper function.
6523         (pru_insert_attributes): New function to validate __regio_symbol
6524         usage.
6525         (TARGET_INSERT_ATTRIBUTES): New macro.
6526         (TARGET_LEGITIMATE_ADDRESS_P): Remove.
6527         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): New macro.
6528         * config/pru/pru.h (enum reg_class): Add REGIO_REGS class.
6529         * config/pru/pru.md (*regio_readsi): New pattern to read I/O
6530         registers.
6531         (*regio_nozext_writesi): New pattern to write to I/O registers.
6532         (*regio_zext_write_r30<EQS0:mode>): Ditto.
6533         * doc/extend.texi: Document the new PRU Named Address Space.
6535 2021-09-24  Patrick Palka  <ppalka@redhat.com>
6537         PR c++/98216
6538         PR c++/91292
6539         * real.c (encode_ieee_double): Avoid unwanted sign extension.
6540         (encode_ieee_quad): Likewise.
6542 2021-09-24  Vladimir Makarov  <vmakarov@redhat.com>
6544         PR rtl-optimization/102147
6545         * ira-build.c (ira_conflict_vector_profitable_p): Make
6546         profitability calculation independent of host compiler pointer and
6547         IRA_INT_BITS sizes.
6549 2021-09-24  Aldy Hernandez  <aldyh@redhat.com>
6551         * gimple-range-path.cc (path_range_query::path_range_query):
6552         Move debugging header...
6553         (path_range_query::precompute_ranges): ...here.
6554         (path_range_query::internal_range_of_expr): Do not call
6555         range_on_path_entry if NAME is defined in the current block.
6557 2021-09-24  Richard Biener  <rguenther@suse.de>
6559         * cfghooks.c (verify_flow_info): Verify unallocated BB and
6560         edge flags are not set.
6562 2021-09-24  Aldy Hernandez  <aldyh@redhat.com>
6564         * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
6565         New.
6566         (jt_path_registry::register_jump_thread): Call
6567         cancel_invalid_paths.
6568         * tree-ssa-threadupdate.h (class jt_path_registry): Add
6569         cancel_invalid_paths.
6571 2021-09-24  Feng Xue  <fxue@os.amperecomputing.com>
6573         PR tree-optimization/102400
6574         * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
6575         result_vdef to zero value.
6577 2021-09-24  Feng Xue  <fxue@os.amperecomputing.com>
6579         PR tree-optimization/102451
6580         * tree-ssa-dse.c (delete_dead_or_redundant_call): Record bb of stmt
6581         before removal.
6583 2021-09-24  Hongyu Wang  <hongyu.wang@intel.com>
6585         * config/i386/sse.md (cond_<insn><mode>): Extend to support
6586         vector HFmodes.
6587         (cond_mul<mode>): Likewise.
6588         (cond_div<mode>): Likewise.
6589         (cond_<code><mode>): Likewise.
6590         (cond_fma<mode>): Likewise.
6591         (cond_fms<mode>): Likewise.
6592         (cond_fnma<mode>): Likewise.
6593         (cond_fnms<mode>): Likewise.
6595 2021-09-23  Andrew MacLeod  <amacleod@redhat.com>
6597         PR tree-optimization/102463
6598         * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
6599         there is no range-ops handler, don't look for a relation.
6601 2021-09-23  Andrew MacLeod  <amacleod@redhat.com>
6603         * gimple-range-cache.cc (ranger_cache::ranger_cache): Take
6604         non-executable_edge flag as parameter.
6605         * gimple-range-cache.h (ranger_cache): Adjust prototype.
6606         * gimple-range-gori.cc (gori_compute::gori_compute): Take
6607         non-executable_edge flag as parameter.
6608         (gori_compute::outgoing_edge_range_p): Check new flag.
6609         * gimple-range-gori.h (gori_compute): Adjust prototype.
6610         * gimple-range.cc (gimple_ranger::gimple_ranger): Create new flag.
6611         (gimple_ranger::range_on_edge): Check new flag.
6612         * gimple-range.h (gimple_ranger::non_executable_edge_flag): New.
6613         * gimple-ssa-evrp.c (rvrp_folder): Pass ranger flag to simplifer.
6614         (hybrid_folder::hybrid_folder): Set ranger non-executable flag value.
6615         (hybrid_folder::fold_stmt): Set flag value in the simplifer.
6616         * vr-values.c (simplify_using_ranges::set_and_propagate_unexecutable):
6617         Use not_executable flag if provided inmstead of EDGE_EXECUTABLE.
6618         (simplify_using_ranges::simplify_switch_using_ranges): Clear
6619         EDGE_EXECUTABLE like it originally did.
6620         (simplify_using_ranges::cleanup_edges_and_switches): Clear any
6621         NON_EXECUTABLE flags.
6622         (simplify_using_ranges::simplify_using_ranges): Adjust.
6623         * vr-values.h (class simplify_using_ranges): Adjust.
6624         (simplify_using_ranges::set_range_query): Add non-executable flag param.
6626 2021-09-23  Bill Schmidt  <wschmidt@linux.ibm.com>
6628         PR target/102024
6629         * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect
6630         zero-width bit fields and return indicator.
6631         (rs6000_discover_homogeneous_aggregate): Diagnose when the
6632         presence of a zero-width bit field changes parameter passing in
6633         GCC 12.
6635 2021-09-23  Aldy Hernandez  <aldyh@redhat.com>
6637         * gimple-range-fold.cc (fold_using_range::range_of_phi):
6638         Remove dominator check.
6640 2021-09-23  Aldy Hernandez  <aldyh@redhat.com>
6642         * gimple-range-path.cc (path_range_query::precompute_relations):
6643         Hoist edge calculations before using EDGE_SUCC.
6645 2021-09-23  Jonathan Wakely  <jwakely@redhat.com>
6647         * configure.ac: Fix --with-multilib-list description.
6648         * configure: Regenerate.
6650 2021-09-23  Richard Biener  <rguenther@suse.de>
6652         PR tree-optimization/102448
6653         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
6654         Clear alignment info copied from DR_PTR_INFO.
6656 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
6658         * config/i386/i386-expand.c (ix86_use_mask_cmp_p): Enable
6659         HFmode mask_cmp.
6660         * config/i386/sse.md (sseintvecmodelower): Add HF vector modes.
6661         (<avx512>_store<mode>_mask): Extend to support HF vector modes.
6662         (vec_cmp<mode><avx512fmaskmodelower>): Likewise.
6663         (vcond_mask_<mode><avx512fmaskmodelower>): Likewise.
6664         (vcond<mode><mode>): New expander.
6665         (vcond<mode><sseintvecmodelower>): Likewise.
6666         (vcond<sseintvecmodelower><mode>): Likewise.
6667         (vcondu<mode><sseintvecmodelower>): Likewise.
6669 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
6671         * config/i386/sse.md (extend<ssePHmodelower><mode>2):
6672         New expander.
6673         (extendv4hf<mode>2): Likewise.
6674         (extendv2hfv2df2): Likewise.
6675         (trunc<mode><ssePHmodelower>2): Likewise.
6676         (avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
6677         (trunc<mode>v4hf2): ... this, and drop constraints.
6678         (avx512fp16_vcvtpd2ph_v2df): Rename to ...
6679         (truncv2dfv2hf2): ... this, and likewise.
6681 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
6683         * config/i386/sse.md (float<floatunssuffix><mode><ssePHmodelower>2):
6684         New expander.
6685         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>):
6686         Rename to ...
6687         (float<floatunssuffix><mode>v4hf2): ... this, and drop constraints.
6688         (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Rename to ...
6689         (float<floatunssuffix>v2div2hf2): ... this, and likewise.
6691 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
6693         * config/i386/i386.md (fix<fixunssuffix>_trunchf<mode>2): New expander.
6694         (fixuns_trunchfhi2): Likewise.
6695         (*fixuns_trunchfsi2zext): New define_insn.
6696         * config/i386/sse.md (ssePHmodelower): New mode_attr.
6697         (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
6698         New expander for same element vector fix_truncate.
6699         (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
6700         Likewise for V4HF to V4SI/V4DI fix_truncate.
6701         (fix<fixunssuffix>_truncv2hfv2di2):
6702         Likeise for V2HF to V2DI fix_truncate.
6704 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
6706         * config/i386/i386.md (<code>hf3): New expander.
6708 2021-09-23  liuhongt  <hongtao.liu@intel.com>
6710         * config/i386/sse.md (FMAMODEM): extend to handle FP16.
6711         (VFH_SF_AVX512VL): Extend to handle HFmode.
6712         (VF_SF_AVX512VL): Deleted.
6714 2021-09-23  liuhongt  <hongtao.liu@intel.com>
6716         * config/i386/i386.md (rinthf2): New expander.
6717         (nearbyinthf2): New expander.
6719 2021-09-23  Aldy Hernandez  <aldyh@redhat.com>
6721         * tree-ssa-dom.c (class dom_jump_threader_simplifier): Rename...
6722         (class dom_jt_state): ...this and provide virtual overrides.
6723         (dom_jt_state::register_equiv): New.
6724         (class dom_jt_simplifier): Rename from
6725         dom_jump_threader_simplifier.
6726         (dom_jump_threader_simplifier::simplify): Rename...
6727         (dom_jt_simplifier::simplify): ...to this.
6728         (pass_dominator::execute): Use dom_jt_simplifier and
6729         dom_jt_state.
6730         * tree-ssa-threadedge.c (jump_threader::jump_threader):
6731         Clean-up.
6732         (jt_state::register_equivs_stmt): Abstract out...
6733         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
6734         ...from here.
6735         (jump_threader::thread_around_empty_blocks): Update state.
6736         (jump_threader::thread_through_normal_block): Same.
6737         (jt_state::jt_state): Remove.
6738         (jt_state::push): Remove pass specific bits.  Keep block vector
6739         updated.
6740         (jt_state::append_path): New.
6741         (jt_state::pop): Remove pass specific bits.
6742         (jt_state::register_equiv): Same.
6743         (jt_state::record_ranges_from_stmt): Same.
6744         (jt_state::register_equivs_on_edge): Same.  Rename...
6745         (jt_state::register_equivs_edge):  ...to this.
6746         (jt_state::dump): New.
6747         (jt_state::debug): New.
6748         (jump_threader_simplifier::simplify): Remove.
6749         (jt_state::get_path): New.
6750         * tree-ssa-threadedge.h (class jt_simplifier): Make into a base
6751         class.  Expose common functionality as virtual methods.
6752         (class jump_threader_simplifier): Same.  Rename...
6753         (class jt_simplifier): ...to this.
6754         * tree-vrp.c (class vrp_jump_threader_simplifier): Rename...
6755         (class vrp_jt_simplifier): ...to this. Provide pass specific
6756         overrides.
6757         (class vrp_jt_state): New.
6758         (vrp_jump_threader_simplifier::simplify): Rename...
6759         (vrp_jt_simplifier::simplify): ...to this.  Inline code from
6760         what used to be the base class.
6761         (vrp_jump_threader::vrp_jump_threader): Use vrp_jt_state and
6762         vrp_jt_simplifier.
6764 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
6766         PR fortran/55534
6767         * doc/invoke.texi (-Wno-missing-include-dirs.): Document Fortran
6768         behavior.
6770 2021-09-22  Roger Sayle  <roger@nextmovesoftware.com>
6771             Richard Biener  <rguenther@suse.de>
6773         * match.pd (negation simplifications): Implement some negation
6774         folding transformations from fold-const.c's fold_negate_expr.
6775         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Add a SIMPLIFY
6776         argument, to control whether the op should be simplified prior
6777         to looking up/assigning a value number.
6778         (vn_nary_build_or_lookup): Update call to vn_nary_build_or_lookup_1.
6779         (vn_nary_simplify): Likewise.
6780         (visit_nary_op): Likewise, but when constructing a NEGATE_EXPR
6781         now call vn_nary_build_or_lookup_1 disabling simplification.
6783 2021-09-22  Jiufu Guo  <guojiufu@linux.ibm.com>
6785         PR tree-optimization/102087
6786         * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
6787         Update bound/cmp/control for niter.
6789 2021-09-22  Aldy Hernandez  <aldyh@redhat.com>
6791         * gimple-range-fold.cc (fold_using_range::range_of_range_op):
6792         Move check for non-empty BB here.
6793         (fur_source::register_outgoing_edges): ...from here.
6795 2021-09-22  Aldy Hernandez  <aldyh@redhat.com>
6797         * gimple-range-path.cc (path_range_query::internal_range_of_expr):
6798         Remove call to improve_range_with_equivs.
6799         (path_range_query::improve_range_with_equivs): Remove
6800         * gimple-range-path.h: Remove improve_range_with_equivs.
6802 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
6804         * config/i386/avx512fp16intrin.h:
6805         (_mm512_mask_blend_ph): New intrinsic.
6806         (_mm512_permutex2var_ph): Ditto.
6807         (_mm512_permutexvar_ph): Ditto.
6808         * config/i386/avx512fp16vlintrin.h:
6809         (_mm256_mask_blend_ph): New intrinsic.
6810         (_mm256_permutex2var_ph): Ditto.
6811         (_mm256_permutexvar_ph): Ditto.
6812         (_mm_mask_blend_ph): Ditto.
6813         (_mm_permutex2var_ph): Ditto.
6814         (_mm_permutexvar_ph): Ditto.
6816 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
6818         * config/i386/avx512fp16intrin.h: Add new intrinsics.
6819         (_mm512_conj_pch): New intrinsic.
6820         (_mm512_mask_conj_pch): Ditto.
6821         (_mm512_maskz_conj_pch): Ditto.
6822         * config/i386/avx512fp16vlintrin.h: Add new intrinsics.
6823         (_mm256_conj_pch): New intrinsic.
6824         (_mm256_mask_conj_pch): Ditto.
6825         (_mm256_maskz_conj_pch): Ditto.
6826         (_mm_conj_pch): Ditto.
6827         (_mm_mask_conj_pch): Ditto.
6828         (_mm_maskz_conj_pch): Ditto.
6830 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
6832         * config/i386/avx512fp16intrin.h (_MM512_REDUCE_OP): New macro
6833         (_mm512_reduce_add_ph): New intrinsic.
6834         (_mm512_reduce_mul_ph): Ditto.
6835         (_mm512_reduce_min_ph): Ditto.
6836         (_mm512_reduce_max_ph): Ditto.
6837         * config/i386/avx512fp16vlintrin.h
6838         (_MM256_REDUCE_OP/_MM_REDUCE_OP): New macro.
6839         (_mm256_reduce_add_ph): New intrinsic.
6840         (_mm256_reduce_mul_ph): Ditto.
6841         (_mm256_reduce_min_ph): Ditto.
6842         (_mm256_reduce_max_ph): Ditto.
6843         (_mm_reduce_add_ph): Ditto.
6844         (_mm_reduce_mul_ph): Ditto.
6845         (_mm_reduce_min_ph): Ditto.
6846         (_mm_reduce_max_ph): Ditto.
6848 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
6850         * config/i386/avx512fp16intrin.h (__m512h_u, __m256h_u,
6851         __m128h_u): New typedef.
6852         (_mm512_load_ph): New intrinsic.
6853         (_mm256_load_ph): Ditto.
6854         (_mm_load_ph): Ditto.
6855         (_mm512_loadu_ph): Ditto.
6856         (_mm256_loadu_ph): Ditto.
6857         (_mm_loadu_ph): Ditto.
6858         (_mm512_store_ph): Ditto.
6859         (_mm256_store_ph): Ditto.
6860         (_mm_store_ph): Ditto.
6861         (_mm512_storeu_ph): Ditto.
6862         (_mm256_storeu_ph): Ditto.
6863         (_mm_storeu_ph): Ditto.
6864         (_mm512_abs_ph): Ditto.
6865         * config/i386/avx512fp16vlintrin.h
6866         (_mm_abs_ph): Ditto.
6867         (_mm256_abs_ph): Ditto.
6869 2021-09-22  Andreas Krebbel  <krebbel@linux.ibm.com>
6871         * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.
6873 2021-09-22  Andreas Krebbel  <krebbel@linux.ibm.com>
6875         PR target/102222
6876         * config/s390/s390.c (s390_expand_insv): Emit a normal move if it
6877         is actually a full copy of the source operand into the target.
6878         Don't emit a strict low part move if source and target mode match.
6880 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
6882         PR middle-end/102415
6883         * omp-expand.c (expand_omp_single): If region->exit is NULL,
6884         assert region->entry is GIMPLE_OMP_SCOPE region and return.
6886 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
6888         * tree.h (OMP_CLAUSE_ALLOCATE_ALIGN): Define.
6889         * tree.c (omp_clause_num_ops): Change number of OMP_CLAUSE_ALLOCATE
6890         arguments from 2 to 3.
6891         * tree-pretty-print.c (dump_omp_clause): Print allocator() around
6892         allocate clause allocator and print align if present.
6893         * omp-low.c (scan_sharing_clauses): Force allocate_map entry even
6894         for omp_default_mem_alloc if align modifier is present.  If align
6895         modifier is present, use TREE_LIST to encode both allocator and
6896         align.
6897         (lower_private_allocate, lower_rec_input_clauses, create_task_copyfn):
6898         Handle align modifier on allocator clause if present.
6900 2021-09-22  liuhongt  <hongtao.liu@intel.com>
6902         * config/i386/i386.md (define_attr "isa"): Add
6903         fma_or_avx512vl.
6904         (define_attr "enabled"): Correspond fma_or_avx512vl to
6905         TARGET_FMA || TARGET_AVX512VL.
6906         * config/i386/mmx.md (fmav2sf4): Extend to AVX512 fma.
6907         (fmsv2sf4): Ditto.
6908         (fnmav2sf4): Ditto.
6909         (fnmsv2sf4): Ditto.
6911 2021-09-22  liuhongt  <hongtao.liu@intel.com>
6913         * config/i386/i386.md (cstorehf3): New define_expand.
6915 2021-09-22  liuhongt  <hongtao.liu@intel.com>
6917         * config/i386/i386.md (<rounding_insn>hf2): New expander.
6918         (sse4_1_round<mode>2): Extend from MODEF to MODEFH.
6919         * config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
6920         Extend from VF_128 to VFH_128.
6922 2021-09-22  liuhongt  <hongtao.liu@intel.com>
6924         * config/i386/i386-features.c (i386-features.c): Handle
6925         E_HFmode.
6926         * config/i386/i386.md (sqrthf2): New expander.
6927         (*sqrthf2): New define_insn.
6928         * config/i386/sse.md
6929         (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
6930         Extend to VFH_128.
6932 2021-09-22  liuhongt  <hongtao.liu@intel.com>
6934         * config/i386/avx512fp16intrin.h (_mm_mask_fcmadd_sch):
6935         New intrinsic.
6936         (_mm_mask3_fcmadd_sch): Likewise.
6937         (_mm_maskz_fcmadd_sch): Likewise.
6938         (_mm_fcmadd_sch): Likewise.
6939         (_mm_mask_fmadd_sch): Likewise.
6940         (_mm_mask3_fmadd_sch): Likewise.
6941         (_mm_maskz_fmadd_sch): Likewise.
6942         (_mm_fmadd_sch): Likewise.
6943         (_mm_mask_fcmadd_round_sch): Likewise.
6944         (_mm_mask3_fcmadd_round_sch): Likewise.
6945         (_mm_maskz_fcmadd_round_sch): Likewise.
6946         (_mm_fcmadd_round_sch): Likewise.
6947         (_mm_mask_fmadd_round_sch): Likewise.
6948         (_mm_mask3_fmadd_round_sch): Likewise.
6949         (_mm_maskz_fmadd_round_sch): Likewise.
6950         (_mm_fmadd_round_sch): Likewise.
6951         (_mm_fcmul_sch): Likewise.
6952         (_mm_mask_fcmul_sch): Likewise.
6953         (_mm_maskz_fcmul_sch): Likewise.
6954         (_mm_fmul_sch): Likewise.
6955         (_mm_mask_fmul_sch): Likewise.
6956         (_mm_maskz_fmul_sch): Likewise.
6957         (_mm_fcmul_round_sch): Likewise.
6958         (_mm_mask_fcmul_round_sch): Likewise.
6959         (_mm_maskz_fcmul_round_sch): Likewise.
6960         (_mm_fmul_round_sch): Likewise.
6961         (_mm_mask_fmul_round_sch): Likewise.
6962         (_mm_maskz_fmul_round_sch): Likewise.
6963         * config/i386/i386-builtin.def: Add corresponding new builtins.
6964         * config/i386/sse.md
6965         (avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>): New expander.
6966         (avx512fp16_fcmaddcsh_v8hf_maskz<round_expand_name>): Ditto.
6967         (avx512fp16_fma_<complexopname>sh_v8hf<mask_scalarcz_name><round_scalarcz_name>):
6968         New define insn.
6969         (avx512fp16_<complexopname>sh_v8hf_mask<round_name>): Ditto.
6970         (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>):
6971         Ditto.
6972         * config/i386/subst.md (mask_scalarcz_name): New.
6973         (mask_scalarc_name): Ditto.
6974         (mask_scalarc_operand3): Ditto.
6975         (mask_scalarcz_operand4): Ditto.
6976         (round_scalarcz_name): Ditto.
6977         (round_scalarc_mask_operand3): Ditto.
6978         (round_scalarcz_mask_operand4): Ditto.
6979         (round_scalarc_mask_op3): Ditto.
6980         (round_scalarcz_mask_op4): Ditto.
6981         (round_scalarcz_constraint): Ditto.
6982         (round_scalarcz_nimm_predicate): Ditto.
6983         (mask_scalarcz): Ditto.
6984         (mask_scalarc): Ditto.
6985         (round_scalarcz): Ditto.
6987 2021-09-22  liuhongt  <hongtao.liu@intel.com>
6989         * config/i386/avx512fp16intrin.h (_mm512_fcmadd_pch):
6990         New intrinsic.
6991         (_mm512_mask_fcmadd_pch): Likewise.
6992         (_mm512_mask3_fcmadd_pch): Likewise.
6993         (_mm512_maskz_fcmadd_pch): Likewise.
6994         (_mm512_fmadd_pch): Likewise.
6995         (_mm512_mask_fmadd_pch): Likewise.
6996         (_mm512_mask3_fmadd_pch): Likewise.
6997         (_mm512_maskz_fmadd_pch): Likewise.
6998         (_mm512_fcmadd_round_pch): Likewise.
6999         (_mm512_mask_fcmadd_round_pch): Likewise.
7000         (_mm512_mask3_fcmadd_round_pch): Likewise.
7001         (_mm512_maskz_fcmadd_round_pch): Likewise.
7002         (_mm512_fmadd_round_pch): Likewise.
7003         (_mm512_mask_fmadd_round_pch): Likewise.
7004         (_mm512_mask3_fmadd_round_pch): Likewise.
7005         (_mm512_maskz_fmadd_round_pch): Likewise.
7006         (_mm512_fcmul_pch): Likewise.
7007         (_mm512_mask_fcmul_pch): Likewise.
7008         (_mm512_maskz_fcmul_pch): Likewise.
7009         (_mm512_fmul_pch): Likewise.
7010         (_mm512_mask_fmul_pch): Likewise.
7011         (_mm512_maskz_fmul_pch): Likewise.
7012         (_mm512_fcmul_round_pch): Likewise.
7013         (_mm512_mask_fcmul_round_pch): Likewise.
7014         (_mm512_maskz_fcmul_round_pch): Likewise.
7015         (_mm512_fmul_round_pch): Likewise.
7016         (_mm512_mask_fmul_round_pch): Likewise.
7017         (_mm512_maskz_fmul_round_pch): Likewise.
7018         * config/i386/avx512fp16vlintrin.h (_mm_fmadd_pch):
7019         New intrinsic.
7020         (_mm_mask_fmadd_pch): Likewise.
7021         (_mm_mask3_fmadd_pch): Likewise.
7022         (_mm_maskz_fmadd_pch): Likewise.
7023         (_mm256_fmadd_pch): Likewise.
7024         (_mm256_mask_fmadd_pch): Likewise.
7025         (_mm256_mask3_fmadd_pch): Likewise.
7026         (_mm256_maskz_fmadd_pch): Likewise.
7027         (_mm_fcmadd_pch): Likewise.
7028         (_mm_mask_fcmadd_pch): Likewise.
7029         (_mm_mask3_fcmadd_pch): Likewise.
7030         (_mm_maskz_fcmadd_pch): Likewise.
7031         (_mm256_fcmadd_pch): Likewise.
7032         (_mm256_mask_fcmadd_pch): Likewise.
7033         (_mm256_mask3_fcmadd_pch): Likewise.
7034         (_mm256_maskz_fcmadd_pch): Likewise.
7035         (_mm_fmul_pch): Likewise.
7036         (_mm_mask_fmul_pch): Likewise.
7037         (_mm_maskz_fmul_pch): Likewise.
7038         (_mm256_fmul_pch): Likewise.
7039         (_mm256_mask_fmul_pch): Likewise.
7040         (_mm256_maskz_fmul_pch): Likewise.
7041         (_mm_fcmul_pch): Likewise.
7042         (_mm_mask_fcmul_pch): Likewise.
7043         (_mm_maskz_fcmul_pch): Likewise.
7044         (_mm256_fcmul_pch): Likewise.
7045         (_mm256_mask_fcmul_pch): Likewise.
7046         (_mm256_maskz_fcmul_pch): Likewise.
7047         * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF_V8HF_V8HF,
7048         V8HF_FTYPE_V16HF_V16HF_V16HF, V16HF_FTYPE_V16HF_V16HF_V16HF_UQI,
7049         V32HF_FTYPE_V32HF_V32HF_V32HF_INT,
7050         V32HF_FTYPE_V32HF_V32HF_V32HF_UHI_INT): Add new builtin types.
7051         * config/i386/i386-builtin.def: Add new builtins.
7052         * config/i386/i386-expand.c: Handle new builtin types.
7053         * config/i386/subst.md (SUBST_CV): New.
7054         (maskc_name): Ditto.
7055         (maskc_operand3): Ditto.
7056         (maskc): Ditto.
7057         (sdc_maskz_name): Ditto.
7058         (sdc_mask_op4): Ditto.
7059         (sdc_mask_op5): Ditto.
7060         (sdc_mask_mode512bit_condition): Ditto.
7061         (sdc): Ditto.
7062         (round_maskc_operand3): Ditto.
7063         (round_sdc_mask_operand4): Ditto.
7064         (round_maskc_op3): Ditto.
7065         (round_sdc_mask_op4): Ditto.
7066         (round_saeonly_sdc_mask_operand5): Ditto.
7067         * config/i386/sse.md (unspec): Add complex fma unspecs.
7068         (avx512fmaskcmode): New.
7069         (UNSPEC_COMPLEX_F_C_MA): Ditto.
7070         (UNSPEC_COMPLEX_F_C_MUL): Ditto.
7071         (complexopname): Ditto.
7072         (<avx512>_fmaddc_<mode>_maskz<round_expand_name>): New expander.
7073         (<avx512>_fcmaddc_<mode>_maskz<round_expand_name>): Ditto.
7074         (fma_<complexopname>_<mode><sdc_maskz_name><round_name>): New
7075         define insn.
7076         (<avx512>_<complexopname>_<mode>_mask<round_name>): Ditto.
7077         (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Ditto.
7079 2021-09-22  Kewen Lin  <linkw@linux.ibm.com>
7081         * config/rs6000/rs6000.opt (rs6000-density-pct-threshold,
7082         rs6000-density-size-threshold, rs6000-density-penalty,
7083         rs6000-density-load-pct-threshold,
7084         rs6000-density-load-num-threshold): New parameter.
7085         * config/rs6000/rs6000.c (rs6000_density_test): Adjust with
7086         corresponding parameters.
7088 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
7090         * gimple-range-path.cc (path_range_query::defined_outside_path):
7091         New.
7092         (path_range_query::range_on_path_entry): New.
7093         (path_range_query::internal_range_of_expr): Resolve unknowns
7094         with ranger.
7095         (path_range_query::improve_range_with_equivs): New.
7096         (path_range_query::ssa_range_in_phi): Resolve unknowns with
7097         ranger.
7098         * gimple-range-path.h (class path_range_query): Add
7099         defined_outside_path, range_on_path_entry, and
7100         improve_range_with_equivs.
7102 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
7104         * gimple-range-path.cc (path_range_query::add_to_imports): New.
7105         (path_range_query::add_copies_to_imports): New.
7106         (path_range_query::precompute_ranges): Call
7107         add_copies_to_imports.
7108         * gimple-range-path.h (class path_range_query): Add prototypes
7109         for add_copies_to_imports and add_to_imports.
7111 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
7113         * gimple-range-path.cc (path_range_query::range_defined_in_block):
7114         Remove useless code.
7116 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
7118         * gimple-range-fold.h (class fur_source): Make oracle protected.
7119         * gimple-range-path.cc (path_range_query::path_range_query): Add
7120         resolve argument.  Initialize oracle.
7121         (path_range_query::~path_range_query): Delete oracle.
7122         (path_range_query::range_of_stmt): Adapt to use relations.
7123         (path_range_query::precompute_ranges): Pre-compute relations.
7124         (class jt_fur_source): New
7125         (jt_fur_source::jt_fur_source): New.
7126         (jt_fur_source::register_relation): New.
7127         (jt_fur_source::query_relation): New.
7128         (path_range_query::precompute_relations): New.
7129         (path_range_query::precompute_phi_relations): New.
7130         * gimple-range-path.h (path_range_query): Add resolve argument.
7131         Add oracle, precompute_relations, precompute_phi_relations.
7132         * tree-ssa-threadbackward.c (back_threader::back_threader): Pass
7133         resolve argument to solver.
7135 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
7137         * gimple-range-fold.cc (fold_using_range::range_of_range_op):
7138         Rename postfold_gcond_edges to register_outgoing_edges and
7139         adapt.
7140         (fold_using_range::postfold_gcond_edges): Rename...
7141         (fur_source::register_outgoing_edges): ...to this.
7142         * gimple-range-fold.h (postfold_gcond_edges): Rename to
7143         register_outgoing_edges and move to fur_source.
7145 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
7147         * gimple-range-fold.cc (fold_using_range::range_of_phi): Check
7148         dom_info_available_p.
7150 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
7152         * gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
7153         and quick_grow_cleared instead of safe_grow_cleared.
7155 2021-09-21  Thomas Schwinge  <thomas@codesourcery.com>
7157         PR other/102408
7158         * omp-oacc-neuter-broadcast.cc (oacc_do_neutering): Evaluate
7159         'random ()' to '0'.
7161 2021-09-21  Richard Earnshaw  <rearnsha@arm.com>
7163         * configure.ac: Detect when the assembler supports new-style
7164         architecture extensions.
7165         * common/config/arm/arm-common.c (arm_rewrite_mcpu): Return
7166         the full CPU string if the assembler can grok it.
7167         (arm_rewrite_march): Likewise but for the architecture.
7168         * config.in: Regenerate.
7169         * configure: Regenerate.
7171 2021-09-21  Richard Biener  <rguenther@suse.de>
7173         PR tree-optimization/102421
7174         * tree-vect-loop.c (vect_dissolve_slp_only_groups): Copy and
7175         adjust alignment info.
7177 2021-09-21  Kewen Lin  <linkw@linux.ibm.com>
7179         * ipa-fnsummary.c (ipa_fn_summary_write): Remove inconsistent
7180         bitfield stream out.
7182 2021-09-20  Andrew MacLeod  <amacleod@redhat.com>
7184         * gimple-range-fold.cc (fold_using_range::range_of_phi): Ignore
7185         undefined edges, apply an equivalence if appropriate.
7186         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Return
7187         UNDEFINED if EDGE_EXECUTABLE is not set.
7188         * gimple-range.cc (gimple_ranger::gimple_ranger): Set all edges
7189         as EXECUTABLE upon startup.
7190         (gimple_ranger::range_on_edge): Return UNDEFINED for edges without
7191         EDGE_EXECUTABLE set.
7192         * vr-values.c (set_and_propagate_unexecutable): New.
7193         (simplify_using_ranges::fold_cond): Call set_and_propagate.
7194         (simplify_using_ranges::simplify_switch_using_ranges): Ditto.
7195         * vr-values.h: Add prototype.
7197 2021-09-20  Andrew MacLeod  <amacleod@redhat.com>
7199         * value-relation.cc (equiv_oracle::register_initial_def): New.
7200         (equiv_oracle::register_relation): Call register_initial_def.
7201         (equiv_oracle::add_equiv_to_block): New.  Split register_relation.
7202         (relation_oracle::register_stmt): Check def block of PHI arguments.
7203         * value-relation.h (equiv_oracle): Add new prototypes.
7205 2021-09-20  Matthias Kretz  <m.kretz@gsi.de>
7207         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
7208         Define __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
7209         __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
7210         __ROUNDING_MATH__ according to their corresponding flags.
7211         * doc/cpp.texi: Document __RECIPROCAL_MATH__,
7212         __NO_SIGNED_ZEROS__, __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__,
7213         and __ROUNDING_MATH__.
7215 2021-09-20  Richard Biener  <rguenther@suse.de>
7217         * tree-vect-stmts.c (vectorizable_load): Use the vectype
7218         from the SLP node.
7220 2021-09-20  Richard Biener  <rguenther@suse.de>
7222         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
7223         Do not compute alignment of the vectorized access here.
7225 2021-09-20  Richard Biener  <rguenther@suse.de>
7227         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7228         Store -1 for runtime alias peeling iterations.
7230 2021-09-20  Richard Biener  <rguenther@suse.de>
7232         * config.gcc: Obsolete hppa[12]*-*-hpux10* and hppa[12]*-*-hpux11*.
7234 2021-09-20  Thomas Schwinge  <thomas@codesourcery.com>
7236         * input.c (string_concat_db::record_string_concatenation)
7237         (string_concat_db::get_string_concatenation): Skip for
7238         'RESERVED_LOCATION_P'.
7240 2021-09-20  Richard Biener  <rguenther@suse.de>
7242         PR tree-optimization/65206
7243         * tree-data-ref.h (struct data_reference): Add alt_indices,
7244         order it last.
7245         * tree-data-ref.c (free_data_ref): Release alt_indices.
7246         (dr_analyze_indices): Work on struct indices and get DR_REF as tree.
7247         (create_data_ref): Adjust.
7248         (initialize_data_dependence_relation): Split into head
7249         and tail.  When the base objects fail to match up try
7250         again with pointer-based analysis of indices.
7251         * tree-vectorizer.c (vec_info_shared::check_datarefs): Do
7252         not compare the lazily computed alternate set of indices.
7254 2021-09-20  Iain Sandoe  <iain@sandoe.co.uk>
7256         * gcc.c: Test for execute OK when we find the
7257         programs for assembler linker and dsymutil and those
7258         were specified at configure-time.
7260 2021-09-19  Martin Sebor  <msebor@redhat.com>
7262         PR middle-end/102403
7263         * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
7264         Correct a function pre/postcondition.
7266 2021-09-19  Martin Sebor  <msebor@redhat.com>
7268         PR middle-end/102243
7269         * tree-ssa-strlen.c (get_range): Handle null cfun.
7271 2021-09-19  Iain Sandoe  <iain@sandoe.co.uk>
7273         * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10
7274         unwinder shim as a convenience library.
7276 2021-09-19  Andrew Pinski  <apinski@marvell.com>
7278         * doc/install.texi: Add note about
7279         binutils 2.35 is required for LTO usage.
7281 2021-09-19  Aldy Hernandez  <aldyh@redhat.com>
7283         * tree-ssa-threadbackward.c
7284         (back_threader_registry::register_path): Use push_edge.
7285         * tree-ssa-threadedge.c
7286         (jump_threader::thread_around_empty_blocks): Same.
7287         (jump_threader::thread_through_normal_block): Same.
7288         (jump_threader::thread_across_edge): Same.  Also, use auto_bitmap.
7289         Tidy up code.
7290         * tree-ssa-threadupdate.c
7291         (jt_path_registry::allocate_thread_edge): Remove.
7292         (jt_path_registry::push_edge): New.
7293         (dump_jump_thread_path): Make static.
7294         * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
7295         (push_edge): New.
7297 2021-09-19  Aldy Hernandez  <aldyh@redhat.com>
7299         * gimple-range-path.cc (path_range_query::path_range_query): Add
7300         header.
7301         (path_range_query::dump): Remove extern declaration of dump_ranger.
7302         * gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
7303         * gimple-range-trace.h (dump_ranger): Add prototype.
7305 2021-09-19  John Ericson  <git@JohnEricson.me>
7307         * gcc.c (find_a_program): New function, factored out of...
7308         (find_a_file): Here.
7309         (execute): Use find_a_program when looking for programs rather
7310         than find_a_file.
7312 2021-09-19  Matwey V. Kornilov  <matwey.kornilov@gmail.com>
7314         * config/avr/avr-mcus.def: Add atmega324pb.
7315         * doc/avr-mmcu.texi: Corresponding changes.
7317 2021-09-19  Roger Sayle  <roger@nextmovesoftware.com>
7319         PR middle-end/88173
7320         * match.pd (cmp @0 REAL_CST@1): When @0 is also REAL_CST, apply
7321         the same transformations as to @1.  For comparisons against NaN,
7322         don't check HONOR_SNANS but confirm that neither operand is a
7323         signaling NaN.
7325 2021-09-19  Benjamin Peterson  <benjamin@locrian.net>
7327         * attribs.c (make_unique_name): Delete.
7328         * attribs.h (make_unique_name): Delete.
7330 2021-09-19  Andrew Pinski  <apinski@marvell.com>
7332         * lra-constraints.c (check_and_process_move): Assert
7333         that dclass and sclass are greater than or equal to NO_REGS.
7335 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
7337         * tree.h (OMP_CLAUSE_ORDER_UNCONSTRAINED): Define.
7338         * tree-pretty-print.c (dump_omp_clause): Print unconstrained:
7339         for OMP_CLAUSE_ORDER_UNCONSTRAINED.
7341 2021-09-18  liuhongt  <hongtao.liu@intel.com>
7343         * config/i386/i386-features.c (remove_partial_avx_dependency):
7344         Restrict TARGET_USE_VECTOR_FP_CONVERTS and
7345         TARGET_USE_VECTOR_CONVERTS to conversion instructions only.
7347 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
7349         * gimplify.c (omp_default_clause): For C/C++ default({,first}private),
7350         if file/namespace scope variable doesn't have predetermined sharing,
7351         treat it as if there was default(none).
7353 2021-09-18  liuhongt  <hongtao.liu@intel.com>
7355         * config/i386/avx512fp16intrin.h (_mm_fmadd_sh):
7356         New intrinsic.
7357         (_mm_mask_fmadd_sh): Likewise.
7358         (_mm_mask3_fmadd_sh): Likewise.
7359         (_mm_maskz_fmadd_sh): Likewise.
7360         (_mm_fmadd_round_sh): Likewise.
7361         (_mm_mask_fmadd_round_sh): Likewise.
7362         (_mm_mask3_fmadd_round_sh): Likewise.
7363         (_mm_maskz_fmadd_round_sh): Likewise.
7364         (_mm_fnmadd_sh): Likewise.
7365         (_mm_mask_fnmadd_sh): Likewise.
7366         (_mm_mask3_fnmadd_sh): Likewise.
7367         (_mm_maskz_fnmadd_sh): Likewise.
7368         (_mm_fnmadd_round_sh): Likewise.
7369         (_mm_mask_fnmadd_round_sh): Likewise.
7370         (_mm_mask3_fnmadd_round_sh): Likewise.
7371         (_mm_maskz_fnmadd_round_sh): Likewise.
7372         (_mm_fmsub_sh): Likewise.
7373         (_mm_mask_fmsub_sh): Likewise.
7374         (_mm_mask3_fmsub_sh): Likewise.
7375         (_mm_maskz_fmsub_sh): Likewise.
7376         (_mm_fmsub_round_sh): Likewise.
7377         (_mm_mask_fmsub_round_sh): Likewise.
7378         (_mm_mask3_fmsub_round_sh): Likewise.
7379         (_mm_maskz_fmsub_round_sh): Likewise.
7380         (_mm_fnmsub_sh): Likewise.
7381         (_mm_mask_fnmsub_sh): Likewise.
7382         (_mm_mask3_fnmsub_sh): Likewise.
7383         (_mm_maskz_fnmsub_sh): Likewise.
7384         (_mm_fnmsub_round_sh): Likewise.
7385         (_mm_mask_fnmsub_round_sh): Likewise.
7386         (_mm_mask3_fnmsub_round_sh): Likewise.
7387         (_mm_maskz_fnmsub_round_sh): Likewise.
7388         * config/i386/i386-builtin-types.def
7389         (V8HF_FTYPE_V8HF_V8HF_V8HF_UQI_INT): New builtin type.
7390         * config/i386/i386-builtin.def: Add new builtins.
7391         * config/i386/i386-expand.c: Handle new builtin type.
7392         * config/i386/sse.md (fmai_vmfmadd_<mode><round_name>):
7393         Ajdust to support FP16.
7394         (fmai_vmfmsub_<mode><round_name>): Ditto.
7395         (fmai_vmfnmadd_<mode><round_name>): Ditto.
7396         (fmai_vmfnmsub_<mode><round_name>): Ditto.
7397         (*fmai_fmadd_<mode>): Ditto.
7398         (*fmai_fmsub_<mode>): Ditto.
7399         (*fmai_fnmadd_<mode><round_name>): Ditto.
7400         (*fmai_fnmsub_<mode><round_name>): Ditto.
7401         (avx512f_vmfmadd_<mode>_mask<round_name>): Ditto.
7402         (avx512f_vmfmadd_<mode>_mask3<round_name>): Ditto.
7403         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): Ditto.
7404         (avx512f_vmfmadd_<mode>_maskz_1<round_name>): Ditto.
7405         (*avx512f_vmfmsub_<mode>_mask<round_name>): Ditto.
7406         (avx512f_vmfmsub_<mode>_mask3<round_name>): Ditto.
7407         (*avx512f_vmfmsub_<mode>_maskz_1<round_name>): Ditto.
7408         (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
7409         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): Ditto.
7410         (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
7411         (*avx512f_vmfnmadd_<mode>_mask<round_name>): Renamed to ...
7412         (avx512f_vmfnmadd_<mode>_mask<round_name>) ... this, and
7413         adjust to support FP16.
7414         (avx512f_vmfnmadd_<mode>_mask3<round_name>): Ditto.
7415         (avx512f_vmfnmadd_<mode>_maskz_1<round_name>): Ditto.
7416         (avx512f_vmfnmadd_<mode>_maskz<round_expand_name>): New
7417         expander.
7419 2021-09-18  H.J. Lu  <hjl.tools@gmail.com>
7421         * config/i386/sse.md (avx512fmaskmodelower): Extend to support
7422         HF modes.
7423         (maskload<mode><avx512fmaskmodelower>): Ditto.
7424         (maskstore<mode><avx512fmaskmodelower>): Ditto.
7426 2021-09-18  H.J. Lu  <hjl.tools@gmail.com>
7428         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
7429         Handle HFmode.
7430         (ix86_expand_copysign): Ditto.
7431         (ix86_expand_xorsign): Ditto.
7432         * config/i386/i386.c (ix86_build_const_vector): Handle HF vector
7433         modes.
7434         (ix86_build_signbit_mask): Ditto.
7435         (ix86_can_change_mode_class): Ditto.
7436         * config/i386/i386.md
7437         (SSEMODEF): Add HFmode.
7438         (ssevecmodef): Ditto.
7439         (<code>hf2): New define_expand.
7440         (*<code>hf2_1): New define_insn_and_split.
7441         (copysign<mode>): Extend to support HFmode under AVX512FP16.
7442         (xorsign<mode>): Ditto.
7443         * config/i386/sse.md (VFB): New mode iterator.
7444         (VFB_128_256): Ditto.
7445         (VFB_512): Ditto.
7446         (sseintvecmode2): Support HF vector mode.
7447         (<code><mode>2): Use new mode iterator.
7448         (*<code><mode>2): Ditto.
7449         (copysign<mode>3): Ditto.
7450         (xorsign<mode>3): Ditto.
7451         (<code><mode>3<mask_name>): Ditto.
7452         (<code><mode>3<mask_name>): Ditto.
7453         (<sse>_andnot<mode>3<mask_name>): Adjust for HF vector mode.
7454         (<sse>_andnot<mode>3<mask_name>): Ditto.
7455         (*<code><mode>3<mask_name>): Ditto.
7456         (*<code><mode>3<mask_name>): Ditto.
7458 2021-09-18  liuhongt  <hongtao.liu@intel.com>
7460         * config/i386/avx512fp16intrin.h (_mm512_mask_fmadd_ph):
7461         New intrinsic.
7462         (_mm512_mask3_fmadd_ph): Likewise.
7463         (_mm512_maskz_fmadd_ph): Likewise.
7464         (_mm512_fmadd_round_ph): Likewise.
7465         (_mm512_mask_fmadd_round_ph): Likewise.
7466         (_mm512_mask3_fmadd_round_ph): Likewise.
7467         (_mm512_maskz_fmadd_round_ph): Likewise.
7468         (_mm512_fnmadd_ph): Likewise.
7469         (_mm512_mask_fnmadd_ph): Likewise.
7470         (_mm512_mask3_fnmadd_ph): Likewise.
7471         (_mm512_maskz_fnmadd_ph): Likewise.
7472         (_mm512_fnmadd_round_ph): Likewise.
7473         (_mm512_mask_fnmadd_round_ph): Likewise.
7474         (_mm512_mask3_fnmadd_round_ph): Likewise.
7475         (_mm512_maskz_fnmadd_round_ph): Likewise.
7476         (_mm512_fmsub_ph): Likewise.
7477         (_mm512_mask_fmsub_ph): Likewise.
7478         (_mm512_mask3_fmsub_ph): Likewise.
7479         (_mm512_maskz_fmsub_ph): Likewise.
7480         (_mm512_fmsub_round_ph): Likewise.
7481         (_mm512_mask_fmsub_round_ph): Likewise.
7482         (_mm512_mask3_fmsub_round_ph): Likewise.
7483         (_mm512_maskz_fmsub_round_ph): Likewise.
7484         (_mm512_fnmsub_ph): Likewise.
7485         (_mm512_mask_fnmsub_ph): Likewise.
7486         (_mm512_mask3_fnmsub_ph): Likewise.
7487         (_mm512_maskz_fnmsub_ph): Likewise.
7488         (_mm512_fnmsub_round_ph): Likewise.
7489         (_mm512_mask_fnmsub_round_ph): Likewise.
7490         (_mm512_mask3_fnmsub_round_ph): Likewise.
7491         (_mm512_maskz_fnmsub_round_ph): Likewise.
7492         * config/i386/avx512fp16vlintrin.h (_mm256_fmadd_ph):
7493         New intrinsic.
7494         (_mm256_mask_fmadd_ph): Likewise.
7495         (_mm256_mask3_fmadd_ph): Likewise.
7496         (_mm256_maskz_fmadd_ph): Likewise.
7497         (_mm_fmadd_ph): Likewise.
7498         (_mm_mask_fmadd_ph): Likewise.
7499         (_mm_mask3_fmadd_ph): Likewise.
7500         (_mm_maskz_fmadd_ph): Likewise.
7501         (_mm256_fnmadd_ph): Likewise.
7502         (_mm256_mask_fnmadd_ph): Likewise.
7503         (_mm256_mask3_fnmadd_ph): Likewise.
7504         (_mm256_maskz_fnmadd_ph): Likewise.
7505         (_mm_fnmadd_ph): Likewise.
7506         (_mm_mask_fnmadd_ph): Likewise.
7507         (_mm_mask3_fnmadd_ph): Likewise.
7508         (_mm_maskz_fnmadd_ph): Likewise.
7509         (_mm256_fmsub_ph): Likewise.
7510         (_mm256_mask_fmsub_ph): Likewise.
7511         (_mm256_mask3_fmsub_ph): Likewise.
7512         (_mm256_maskz_fmsub_ph): Likewise.
7513         (_mm_fmsub_ph): Likewise.
7514         (_mm_mask_fmsub_ph): Likewise.
7515         (_mm_mask3_fmsub_ph): Likewise.
7516         (_mm_maskz_fmsub_ph): Likewise.
7517         (_mm256_fnmsub_ph): Likewise.
7518         (_mm256_mask_fnmsub_ph): Likewise.
7519         (_mm256_mask3_fnmsub_ph): Likewise.
7520         (_mm256_maskz_fnmsub_ph): Likewise.
7521         (_mm_fnmsub_ph): Likewise.
7522         (_mm_mask_fnmsub_ph): Likewise.
7523         (_mm_mask3_fnmsub_ph): Likewise.
7524         (_mm_maskz_fnmsub_ph): Likewise.
7525         * config/i386/i386-builtin.def: Add corresponding new builtins.
7526         * config/i386/sse.md
7527         (<avx512>_fmadd_<mode>_maskz<round_expand_name>): Adjust to
7528         support HF vector modes.
7529         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
7530         Ditto.
7531         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
7532         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
7533         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
7534         (<avx512>_fmadd_<mode>_mask<round_name>): Ditto.
7535         (<avx512>_fmadd_<mode>_mask3<round_name>): Ditto.
7536         (<avx512>_fmsub_<mode>_maskz<round_expand_name>): Ditto.
7537         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
7538         Ditto.
7539         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
7540         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
7541         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
7542         (<avx512>_fmsub_<mode>_mask<round_name>): Ditto.
7543         (<avx512>_fmsub_<mode>_mask3<round_name>): Ditto.
7544         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
7545         Ditto.
7546         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
7547         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
7548         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
7549         (<avx512>_fnmadd_<mode>_mask<round_name>): Ditto.
7550         (<avx512>_fnmadd_<mode>_mask3<round_name>): Ditto.
7551         (<avx512>_fnmsub_<mode>_maskz<round_expand_name>): Ditto.
7552         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
7553         Ditto.
7554         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
7555         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
7556         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
7557         (<avx512>_fnmsub_<mode>_mask<round_name>): Ditto.
7558         (<avx512>_fnmsub_<mode>_mask3<round_name>): Ditto.
7560 2021-09-18  liuhongt  <hongtao.liu@intel.com>
7562         * config/i386/avx512fp16intrin.h (_mm512_fmaddsub_ph):
7563         New intrinsic.
7564         (_mm512_mask_fmaddsub_ph): Likewise.
7565         (_mm512_mask3_fmaddsub_ph): Likewise.
7566         (_mm512_maskz_fmaddsub_ph): Likewise.
7567         (_mm512_fmaddsub_round_ph): Likewise.
7568         (_mm512_mask_fmaddsub_round_ph): Likewise.
7569         (_mm512_mask3_fmaddsub_round_ph): Likewise.
7570         (_mm512_maskz_fmaddsub_round_ph): Likewise.
7571         (_mm512_mask_fmsubadd_ph): Likewise.
7572         (_mm512_mask3_fmsubadd_ph): Likewise.
7573         (_mm512_maskz_fmsubadd_ph): Likewise.
7574         (_mm512_fmsubadd_round_ph): Likewise.
7575         (_mm512_mask_fmsubadd_round_ph): Likewise.
7576         (_mm512_mask3_fmsubadd_round_ph): Likewise.
7577         (_mm512_maskz_fmsubadd_round_ph): Likewise.
7578         * config/i386/avx512fp16vlintrin.h (_mm256_fmaddsub_ph):
7579         New intrinsic.
7580         (_mm256_mask_fmaddsub_ph): Likewise.
7581         (_mm256_mask3_fmaddsub_ph): Likewise.
7582         (_mm256_maskz_fmaddsub_ph): Likewise.
7583         (_mm_fmaddsub_ph): Likewise.
7584         (_mm_mask_fmaddsub_ph): Likewise.
7585         (_mm_mask3_fmaddsub_ph): Likewise.
7586         (_mm_maskz_fmaddsub_ph): Likewise.
7587         (_mm256_fmsubadd_ph): Likewise.
7588         (_mm256_mask_fmsubadd_ph): Likewise.
7589         (_mm256_mask3_fmsubadd_ph): Likewise.
7590         (_mm256_maskz_fmsubadd_ph): Likewise.
7591         (_mm_fmsubadd_ph): Likewise.
7592         (_mm_mask_fmsubadd_ph): Likewise.
7593         (_mm_mask3_fmsubadd_ph): Likewise.
7594         (_mm_maskz_fmsubadd_ph): Likewise.
7595         * config/i386/i386-builtin.def: Add corresponding new builtins.
7596         * config/i386/sse.md (VFH_SF_AVX512VL): New mode iterator.
7597         * (<avx512>_fmsubadd_<mode>_maskz<round_expand_name>): New expander.
7598         * (<avx512>_fmaddsub_<mode>_maskz<round_expand_name>): Use
7599         VFH_SF_AVX512VL.
7600         * (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
7601         Ditto.
7602         * (<avx512>_fmaddsub_<mode>_mask<round_name>): Ditto.
7603         * (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
7604         * (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
7605         Ditto.
7606         * (<avx512>_fmsubadd_<mode>_mask<round_name>): Ditto.
7607         * (<avx512>_fmsubadd_<mode>_mask3<round_name>): Ditto.
7609 2021-09-18  liuhongt  <hongtao.liu@intel.com>
7611         PR target/87767
7612         * config/i386/i386.c (ix86_print_operand): Handle
7613         V8HF/V16HF/V32HFmode.
7614         * config/i386/i386.h (VALID_BCST_MODE_P): Add HFmode.
7615         * config/i386/sse.md (avx512bcst): Remove.
7617 2021-09-17  Martin Sebor  <msebor@redhat.com>
7619         * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
7620         * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
7621         (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
7622         (check_defs): Add comment.
7623         (can_skip_redundant_opnd): Update comment.
7624         (compute_uninit_opnds_pos): Adjust to namespace change.
7625         (find_pdom): Move to gimple-predicate-analysis.cc.
7626         (find_dom): Same.
7627         (struct uninit_undef_val_t): New.
7628         (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
7629         (find_control_equiv_block): Same.
7630         (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
7631         (MAX_SWITCH_CASES): Same.
7632         (compute_control_dep_chain): Same.
7633         (find_uninit_use): Use predicate analyzer.
7634         (struct pred_info): Move to gimple-predicate-analysis.
7635         (convert_control_dep_chain_into_preds): Same.
7636         (find_predicates): Same.
7637         (collect_phi_def_edges): Same.
7638         (warn_uninitialized_phi): Use predicate analyzer.
7639         (find_def_preds): Move to gimple-predicate-analysis.
7640         (dump_pred_info): Same.
7641         (dump_pred_chain): Same.
7642         (dump_predicates): Same.
7643         (destroy_predicate_vecs): Remove.
7644         (execute_late_warn_uninitialized): New.
7645         (get_cmp_code): Move to gimple-predicate-analysis.
7646         (is_value_included_in): Same.
7647         (value_sat_pred_p): Same.
7648         (find_matching_predicate_in_rest_chains): Same.
7649         (is_use_properly_guarded): Same.
7650         (prune_uninit_phi_opnds): Same.
7651         (find_var_cmp_const): Same.
7652         (use_pred_not_overlap_with_undef_path_pred): Same.
7653         (pred_equal_p): Same.
7654         (is_neq_relop_p): Same.
7655         (is_neq_zero_form_p): Same.
7656         (pred_expr_equal_p): Same.
7657         (is_pred_expr_subset_of): Same.
7658         (is_pred_chain_subset_of): Same.
7659         (is_included_in): Same.
7660         (is_superset_of): Same.
7661         (pred_neg_p): Same.
7662         (simplify_pred): Same.
7663         (simplify_preds_2): Same.
7664         (simplify_preds_3): Same.
7665         (simplify_preds_4): Same.
7666         (simplify_preds): Same.
7667         (push_pred): Same.
7668         (push_to_worklist): Same.
7669         (get_pred_info_from_cmp): Same.
7670         (is_degenerated_phi): Same.
7671         (normalize_one_pred_1): Same.
7672         (normalize_one_pred): Same.
7673         (normalize_one_pred_chain): Same.
7674         (normalize_preds): Same.
7675         (can_one_predicate_be_invalidated_p): Same.
7676         (can_chain_union_be_invalidated_p): Same.
7677         (uninit_uses_cannot_happen): Same.
7678         (pass_late_warn_uninitialized::execute): Define.
7679         * gimple-predicate-analysis.cc: New file.
7680         * gimple-predicate-analysis.h: New file.
7682 2021-09-17  Julian Brown  <julian@codesourcery.com>
7684         * config/gcn/gcn.c (gimple.h): Include.
7685         (gcn_fork_join): Emit barrier for worker-level joins.
7686         * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
7687         writes_gang_private bitmap parameter. Set bit for blocks
7688         containing gang-private variable writes.
7689         (worker_single_simple): Don't emit barrier after predicated block.
7690         (worker_single_copy): Don't emit barrier if we're not broadcasting
7691         anything and the block contains no gang-private writes.
7692         (neuter_worker_single): Don't predicate blocks that only contain
7693         NOPs or internal marker functions.  Pass has_gang_private_write
7694         argument to worker_single_copy.
7695         (oacc_do_neutering): Add writes_gang_private bitmap handling.
7697 2021-09-17  Julian Brown  <julian@codesourcery.com>
7699         * config/gcn/gcn-protos.h
7700         (gcn_goacc_create_worker_broadcast_record): Update prototype.
7701         * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
7702         preallocated block of LDS memory.  Do not cache/share decls for
7703         reduction temporaries between invocations.
7704         (gcn_goacc_reduction_teardown): Unshare VAR on second use.
7705         (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
7706         and return temporary LDS space at that offset.  Return pointer in
7707         "sender" case.
7708         * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
7709         New global vars.
7710         (ACC_LDS_SIZE): Define as acc_lds_size.
7711         (gcn_init_machine_status): Don't initialise lds_allocated,
7712         lds_allocs, reduc_decls fields of machine function struct.
7713         (gcn_option_override): Handle default size for gang-private
7714         variables and -mgang-private-size option.
7715         (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
7716         initialising M0_REG.
7717         (gcn_shared_mem_layout): New function.
7718         (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
7719         gang_private_hwm variable.
7720         (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
7721         * config/gcn/gcn.h (machine_function): Remove lds_allocated,
7722         lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
7723         * config/gcn/gcn.opt (gang_private_size_opt): New global.
7724         (mgang-private-size=): New option.
7725         * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
7726         documentation hook.
7727         * doc/tm.texi: Regenerate.
7728         * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
7729         Add includes.
7730         (build_sender_ref): Handle sender_decl being pointer.
7731         (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
7732         parameters.  Pass placement argument to
7733         create_worker_broadcast_record hook invocations.  Handle
7734         sender_decl being pointer and isolate_broadcasts inserting extra
7735         barriers.
7736         (blk_offset_map_t): Add typedef.
7737         (neuter_worker_single): Add BLK_OFFSET_MAP parameter.  Pass
7738         preallocated range to worker_single_copy call.
7739         (dfs_broadcast_reachable_1): New function.
7740         (idx_decl_pair_t, used_range_vec_t): New typedefs.
7741         (sort_size_descending): New function.
7742         (addr_range): New class.
7743         (splay_tree_compare_addr_range, splay_tree_free_key)
7744         (first_fit_range, merge_ranges_1, merge_ranges): New functions.
7745         (execute_omp_oacc_neuter_broadcast): Rename to...
7746         (oacc_do_neutering): ... this.  Add BOUNDS_LO, BOUNDS_HI
7747         parameters.  Arrange layout of shared memory for broadcast
7748         operations.
7749         (execute_omp_oacc_neuter_broadcast): New function.
7750         (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
7751         handling from here.  Enable pass for all OpenACC routines in order
7752         to call shared memory-layout hook.
7753         * target.def (create_worker_broadcast_record): Add OFFSET
7754         parameter.
7755         (shared_mem_layout): New hook.
7757 2021-09-17  Julian Brown  <julian@codesourcery.com>
7758             Thomas Schwinge  <thomas@codesourcery.com>
7760         * omp-oacc-neuter-broadcast.cc
7761         (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
7762         1.
7763         (execute_omp_oacc_neuter_broadcast): Adjust.
7765 2021-09-17  Andrew MacLeod  <amacleod@redhat.com>
7767         * value-relation.cc (class equiv_chain): Move to header file.
7768         (path_oracle::path_oracle): New.
7769         (path_oracle::~path_oracle): New.
7770         (path_oracle::register_relation): New.
7771         (path_oracle::query_relation): New.
7772         (path_oracle::reset_path): New.
7773         (path_oracle::dump): New.
7774         * value-relation.h (class equiv_chain): Move to here.
7775         (class path_oracle): New.
7777 2021-09-17  Andrew MacLeod  <amacleod@redhat.com>
7779         * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
7780         based oracle.
7781         * gimple-range-fold.cc (fur_depend::register_relation): Use
7782         register_stmt/edge routines.
7783         * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
7784         (equiv_oracle::equiv_oracle): Create self equivalence cache.
7785         (equiv_oracle::~equiv_oracle): Release same.
7786         (equiv_oracle::equiv_set): Return entry from self equiv cache if there
7787         are no equivalences.
7788         (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
7789         (equiv_oracle::register_relation): Rename from register_equiv.
7790         (relation_chain_head::find_relation): Relocate from dom_oracle.
7791         (relation_oracle::register_stmt): New.
7792         (relation_oracle::register_edge): New.
7793         (dom_oracle::*): Rename from relation_oracle.
7794         (dom_oracle::register_relation): Adjust to call equiv_oracle.
7795         (dom_oracle::set_one_relation): Split from register_relation.
7796         (dom_oracle::register_transitives): Consolidate 2 methods.
7797         (dom_oracle::find_relation_block): Move core to relation_chain.
7798         (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
7799         * value-relation.h (class relation_oracle): New pure virtual base.
7800         (class equiv_oracle): Inherit from relation_oracle and adjust.
7801         (class dom_oracle): Rename from old relation_oracle and adjust.
7803 2021-09-17  Martin Sebor  <msebor@redhat.com>
7805         PR middle-end/102200
7806         * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
7807         (handle_min_max_size): Change argument.  Store original SSA_NAME for
7808         operands to potentially distinct (sub)objects.
7809         (compute_objsize_r): Adjust call to the above.
7811 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
7813         * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
7814         (rs6000_new_builtin_vectorized_function): New function.
7815         (rs6000_new_builtin_md_vectorized_function): Likewise.
7816         (rs6000_builtin_vectorized_function): Call
7817         rs6000_new_builtin_vectorized_function.
7818         (rs6000_builtin_md_vectorized_function): Call
7819         rs6000_new_builtin_md_vectorized_function.
7821 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
7823         * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
7824         (ASSEMBLE_PAIR): Likewise.
7825         (BUILD_ACC): Likewise.
7826         (DISASSEMBLE_ACC): Likewise.
7827         (DISASSEMBLE_PAIR): Likewise.
7828         (PMXVBF16GER2): Likewise.
7829         (PMXVBF16GER2NN): Likewise.
7830         (PMXVBF16GER2NP): Likewise.
7831         (PMXVBF16GER2PN): Likewise.
7832         (PMXVBF16GER2PP): Likewise.
7833         (PMXVF16GER2): Likewise.
7834         (PMXVF16GER2NN): Likewise.
7835         (PMXVF16GER2NP): Likewise.
7836         (PMXVF16GER2PN): Likewise.
7837         (PMXVF16GER2PP): Likewise.
7838         (PMXVF32GER): Likewise.
7839         (PMXVF32GERNN): Likewise.
7840         (PMXVF32GERNP): Likewise.
7841         (PMXVF32GERPN): Likewise.
7842         (PMXVF32GERPP): Likewise.
7843         (PMXVF64GER): Likewise.
7844         (PMXVF64GERNN): Likewise.
7845         (PMXVF64GERNP): Likewise.
7846         (PMXVF64GERPN): Likewise.
7847         (PMXVF64GERPP): Likewise.
7848         (PMXVI16GER2): Likewise.
7849         (PMXVI16GER2PP): Likewise.
7850         (PMXVI16GER2S): Likewise.
7851         (PMXVI16GER2SPP): Likewise.
7852         (PMXVI4GER8): Likewise.
7853         (PMXVI4GER8PP): Likewise.
7854         (PMXVI8GER4): Likewise.
7855         (PMXVI8GER4PP): Likewise.
7856         (PMXVI8GER4SPP): Likewise.
7857         (XVBF16GER2): Likewise.
7858         (XVBF16GER2NN): Likewise.
7859         (XVBF16GER2NP): Likewise.
7860         (XVBF16GER2PN): Likewise.
7861         (XVBF16GER2PP): Likewise.
7862         (XVF16GER2): Likewise.
7863         (XVF16GER2NN): Likewise.
7864         (XVF16GER2NP): Likewise.
7865         (XVF16GER2PN): Likewise.
7866         (XVF16GER2PP): Likewise.
7867         (XVF32GER): Likewise.
7868         (XVF32GERNN): Likewise.
7869         (XVF32GERNP): Likewise.
7870         (XVF32GERPN): Likewise.
7871         (XVF32GERPP): Likewise.
7872         (XVF64GER): Likewise.
7873         (XVF64GERNN): Likewise.
7874         (XVF64GERNP): Likewise.
7875         (XVF64GERPN): Likewise.
7876         (XVF64GERPP): Likewise.
7877         (XVI16GER2): Likewise.
7878         (XVI16GER2PP): Likewise.
7879         (XVI16GER2S): Likewise.
7880         (XVI16GER2SPP): Likewise.
7881         (XVI4GER8): Likewise.
7882         (XVI4GER8PP): Likewise.
7883         (XVI8GER4): Likewise.
7884         (XVI8GER4PP): Likewise.
7885         (XVI8GER4SPP): Likewise.
7886         (XXMFACC): Likewise.
7887         (XXMTACC): Likewise.
7888         (XXSETACCZ): Likewise.
7889         (ASSEMBLE_PAIR_V): Likewise.
7890         (BUILD_PAIR): Likewise.
7891         (DISASSEMBLE_PAIR_V): Likewise.
7892         (LXVP): New.
7893         (STXVP): New.
7894         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
7895         Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
7896         * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
7897         (parse_bif_attrs): Handle ismmaint.
7898         (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
7899         (write_bif_static_init): Handle ismmaint.
7901 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
7903         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
7904         forward decl.
7905         (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
7906         (rs6000_new_builtin_valid_without_lhs): New function.
7907         (rs6000_gimple_fold_new_mma_builtin): Likewise.
7908         (rs6000_gimple_fold_new_builtin): Likewise.
7910 2021-09-17  Thomas Schwinge  <thomas@codesourcery.com>
7912         * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
7913         Destruct stale Value objects.
7914         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
7915         Update.
7917 2021-09-17  Roger Sayle  <roger@nextmovesoftware.com>
7919         PR c/102245
7920         * match.pd (shift optimizations): Disable recent sign-changing
7921         optimization for shifts by zero, these will be folded later.
7923 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
7925         * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
7926         [power9] to [always].
7928 2021-09-17  Richard Biener  <rguenther@suse.de>
7930         * tree-vect-stmts.c (vectorizable_load): Do not frob
7931         stmt_info for SLP.
7933 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
7935         * config/i386/i386-features.c (remove_partial_avx_dependency):
7936         Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
7937         and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
7938         vxorps.
7939         * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
7940         New.
7941         (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
7942         * config/i386/i386.md (SSE FP to FP splitters): Replace
7943         TARGET_SSE_PARTIAL_REG_DEPENDENCY with
7944         TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
7945         (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
7946         with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
7947         * config/i386/x86-tune.def
7948         (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
7949         (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
7951 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
7953         PR target/101900
7954         * config/i386/i386-features.c (remove_partial_avx_dependency):
7955         Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
7956         before generating vxorps.
7958 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
7960         * config/i386/i386-options.c (processor_cost_table): Use
7961         tremont_cost for Tremont.
7962         * config/i386/x86-tune-costs.h (tremont_memcpy): New.
7963         (tremont_memset): Likewise.
7964         (tremont_cost): Likewise.
7965         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
7966         Enable for Tremont.
7968 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
7970         * common/config/i386/i386-common.c: Use Haswell scheduling model
7971         for Tremont.
7972         * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
7973         scheduling pass.
7974         * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
7975         issue rate to 4.
7976         (ix86_adjust_cost): Handle Tremont.
7977         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
7978         Enable for Tremont.
7979         (X86_TUNE_USE_LEAVE): Likewise.
7980         (X86_TUNE_PUSH_MEMORY): Likewise.
7981         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
7982         (X86_TUNE_USE_CLTD): Likewise.
7983         (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
7984         (X86_TUNE_AVOID_MFENCE): Likewise.
7985         (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
7986         (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
7987         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
7988         (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
7989         (X86_TUNE_OPT_AGU): Likewise.
7990         (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
7991         (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
7992         (X86_TUNE_EXPAND_ABS): Likewise.
7993         (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
7994         (X86_TUNE_SLOW_PSHUFB): Likewise.
7996 2021-09-17  Eric Botcazou  <ebotcazou@adacore.com>
7998         PR rtl-optimization/102306
7999         * combine.c (try_combine): Abort the combination if we are about to
8000         duplicate volatile references.
8002 2021-09-17  liuhongt  <hongtao.liu@intel.com>
8004         * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
8005         New intrinsic.
8006         (_mm256_undefined_ph): Likewise.
8007         (_mm512_undefined_ph): Likewise.
8008         (_mm_cvtsh_h): Likewise.
8009         (_mm256_cvtsh_h): Likewise.
8010         (_mm512_cvtsh_h): Likewise.
8011         (_mm512_castph_ps): Likewise.
8012         (_mm512_castph_pd): Likewise.
8013         (_mm512_castph_si512): Likewise.
8014         (_mm512_castph512_ph128): Likewise.
8015         (_mm512_castph512_ph256): Likewise.
8016         (_mm512_castph128_ph512): Likewise.
8017         (_mm512_castph256_ph512): Likewise.
8018         (_mm512_zextph128_ph512): Likewise.
8019         (_mm512_zextph256_ph512): Likewise.
8020         (_mm512_castps_ph): Likewise.
8021         (_mm512_castpd_ph): Likewise.
8022         (_mm512_castsi512_ph): Likewise.
8023         * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
8024         New intrinsic.
8025         (_mm256_castph_ps): Likewise.
8026         (_mm_castph_pd): Likewise.
8027         (_mm256_castph_pd): Likewise.
8028         (_mm_castph_si128): Likewise.
8029         (_mm256_castph_si256): Likewise.
8030         (_mm_castps_ph): Likewise.
8031         (_mm256_castps_ph): Likewise.
8032         (_mm_castpd_ph): Likewise.
8033         (_mm256_castpd_ph): Likewise.
8034         (_mm_castsi128_ph): Likewise.
8035         (_mm256_castsi256_ph): Likewise.
8036         (_mm256_castph256_ph128): Likewise.
8037         (_mm256_castph128_ph256): Likewise.
8038         (_mm256_zextph128_ph256): Likewise.
8040 2021-09-17  liuhongt  <hongtao.liu@intel.com>
8042         * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
8043         New intrinsic.
8044         (_mm_mask_cvtsh_ss): Likewise.
8045         (_mm_maskz_cvtsh_ss): Likewise.
8046         (_mm_cvtsh_sd): Likewise.
8047         (_mm_mask_cvtsh_sd): Likewise.
8048         (_mm_maskz_cvtsh_sd): Likewise.
8049         (_mm_cvt_roundsh_ss): Likewise.
8050         (_mm_mask_cvt_roundsh_ss): Likewise.
8051         (_mm_maskz_cvt_roundsh_ss): Likewise.
8052         (_mm_cvt_roundsh_sd): Likewise.
8053         (_mm_mask_cvt_roundsh_sd): Likewise.
8054         (_mm_maskz_cvt_roundsh_sd): Likewise.
8055         (_mm_cvtss_sh): Likewise.
8056         (_mm_mask_cvtss_sh): Likewise.
8057         (_mm_maskz_cvtss_sh): Likewise.
8058         (_mm_cvtsd_sh): Likewise.
8059         (_mm_mask_cvtsd_sh): Likewise.
8060         (_mm_maskz_cvtsd_sh): Likewise.
8061         (_mm_cvt_roundss_sh): Likewise.
8062         (_mm_mask_cvt_roundss_sh): Likewise.
8063         (_mm_maskz_cvt_roundss_sh): Likewise.
8064         (_mm_cvt_roundsd_sh): Likewise.
8065         (_mm_mask_cvt_roundsd_sh): Likewise.
8066         (_mm_maskz_cvt_roundsd_sh): Likewise.
8067         * config/i386/i386-builtin-types.def
8068         (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
8069         V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
8070         V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
8071         V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
8072         * config/i386/i386-builtin.def: Add corrresponding new builtins.
8073         * config/i386/i386-expand.c: Handle new builtin types.
8074         * config/i386/sse.md (VF48_128): New mode iterator.
8075         (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
8076         New.
8077         (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
8078         Ditto.
8080 2021-09-17  liuhongt  <hongtao.liu@intel.com>
8082         * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
8083         New intrinsic.
8084         (_mm512_mask_cvtph_pd): Likewise.
8085         (_mm512_maskz_cvtph_pd): Likewise.
8086         (_mm512_cvt_roundph_pd): Likewise.
8087         (_mm512_mask_cvt_roundph_pd): Likewise.
8088         (_mm512_maskz_cvt_roundph_pd): Likewise.
8089         (_mm512_cvtxph_ps): Likewise.
8090         (_mm512_mask_cvtxph_ps): Likewise.
8091         (_mm512_maskz_cvtxph_ps): Likewise.
8092         (_mm512_cvtx_roundph_ps): Likewise.
8093         (_mm512_mask_cvtx_roundph_ps): Likewise.
8094         (_mm512_maskz_cvtx_roundph_ps): Likewise.
8095         (_mm512_cvtxps_ph): Likewise.
8096         (_mm512_mask_cvtxps_ph): Likewise.
8097         (_mm512_maskz_cvtxps_ph): Likewise.
8098         (_mm512_cvtx_roundps_ph): Likewise.
8099         (_mm512_mask_cvtx_roundps_ph): Likewise.
8100         (_mm512_maskz_cvtx_roundps_ph): Likewise.
8101         (_mm512_cvtpd_ph): Likewise.
8102         (_mm512_mask_cvtpd_ph): Likewise.
8103         (_mm512_maskz_cvtpd_ph): Likewise.
8104         (_mm512_cvt_roundpd_ph): Likewise.
8105         (_mm512_mask_cvt_roundpd_ph): Likewise.
8106         (_mm512_maskz_cvt_roundpd_ph): Likewise.
8107         * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
8108         New intrinsic.
8109         (_mm_mask_cvtph_pd): Likewise.
8110         (_mm_maskz_cvtph_pd): Likewise.
8111         (_mm256_cvtph_pd): Likewise.
8112         (_mm256_mask_cvtph_pd): Likewise.
8113         (_mm256_maskz_cvtph_pd): Likewise.
8114         (_mm_cvtxph_ps): Likewise.
8115         (_mm_mask_cvtxph_ps): Likewise.
8116         (_mm_maskz_cvtxph_ps): Likewise.
8117         (_mm256_cvtxph_ps): Likewise.
8118         (_mm256_mask_cvtxph_ps): Likewise.
8119         (_mm256_maskz_cvtxph_ps): Likewise.
8120         (_mm_cvtxps_ph): Likewise.
8121         (_mm_mask_cvtxps_ph): Likewise.
8122         (_mm_maskz_cvtxps_ph): Likewise.
8123         (_mm256_cvtxps_ph): Likewise.
8124         (_mm256_mask_cvtxps_ph): Likewise.
8125         (_mm256_maskz_cvtxps_ph): Likewise.
8126         (_mm_cvtpd_ph): Likewise.
8127         (_mm_mask_cvtpd_ph): Likewise.
8128         (_mm_maskz_cvtpd_ph): Likewise.
8129         (_mm256_cvtpd_ph): Likewise.
8130         (_mm256_mask_cvtpd_ph): Likewise.
8131         (_mm256_maskz_cvtpd_ph): Likewise.
8132         * config/i386/i386-builtin.def: Add corresponding new builtins.
8133         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8134         * config/i386/i386-expand.c: Handle new builtin types.
8135         * config/i386/sse.md
8136         (VF4_128_8_256): New.
8137         (VF48H_AVX512VL): Ditto.
8138         (ssePHmode): Add HF vector modes.
8139         (castmode): Add new convertable modes.
8140         (qq2phsuff): Ditto.
8141         (ph2pssuffix): New.
8142         (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
8143         (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
8144         (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
8145         (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
8146         (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
8147         (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
8148         (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
8149         Ditto.
8150         (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
8151         (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
8152         (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
8153         (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
8155 2021-09-17  liuhongt  <hongtao.liu@intel.com>
8157         * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
8158         New intrinsic.
8159         (_mm_cvttsh_u32): Likewise.
8160         (_mm_cvtt_roundsh_i32): Likewise.
8161         (_mm_cvtt_roundsh_u32): Likewise.
8162         (_mm_cvttsh_i64): Likewise.
8163         (_mm_cvttsh_u64): Likewise.
8164         (_mm_cvtt_roundsh_i64): Likewise.
8165         (_mm_cvtt_roundsh_u64): Likewise.
8166         * config/i386/i386-builtin.def: Add corresponding new builtins.
8167         * config/i386/sse.md
8168         (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
8169         New.
8171 2021-09-17  liuhongt  <hongtao.liu@intel.com>
8173         * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
8174         New intrinsic.
8175         (_mm512_mask_cvttph_epi32): Likewise.
8176         (_mm512_maskz_cvttph_epi32): Likewise.
8177         (_mm512_cvtt_roundph_epi32): Likewise.
8178         (_mm512_mask_cvtt_roundph_epi32): Likewise.
8179         (_mm512_maskz_cvtt_roundph_epi32): Likewise.
8180         (_mm512_cvttph_epu32): Likewise.
8181         (_mm512_mask_cvttph_epu32): Likewise.
8182         (_mm512_maskz_cvttph_epu32): Likewise.
8183         (_mm512_cvtt_roundph_epu32): Likewise.
8184         (_mm512_mask_cvtt_roundph_epu32): Likewise.
8185         (_mm512_maskz_cvtt_roundph_epu32): Likewise.
8186         (_mm512_cvttph_epi64): Likewise.
8187         (_mm512_mask_cvttph_epi64): Likewise.
8188         (_mm512_maskz_cvttph_epi64): Likewise.
8189         (_mm512_cvtt_roundph_epi64): Likewise.
8190         (_mm512_mask_cvtt_roundph_epi64): Likewise.
8191         (_mm512_maskz_cvtt_roundph_epi64): Likewise.
8192         (_mm512_cvttph_epu64): Likewise.
8193         (_mm512_mask_cvttph_epu64): Likewise.
8194         (_mm512_maskz_cvttph_epu64): Likewise.
8195         (_mm512_cvtt_roundph_epu64): Likewise.
8196         (_mm512_mask_cvtt_roundph_epu64): Likewise.
8197         (_mm512_maskz_cvtt_roundph_epu64): Likewise.
8198         (_mm512_cvttph_epi16): Likewise.
8199         (_mm512_mask_cvttph_epi16): Likewise.
8200         (_mm512_maskz_cvttph_epi16): Likewise.
8201         (_mm512_cvtt_roundph_epi16): Likewise.
8202         (_mm512_mask_cvtt_roundph_epi16): Likewise.
8203         (_mm512_maskz_cvtt_roundph_epi16): Likewise.
8204         (_mm512_cvttph_epu16): Likewise.
8205         (_mm512_mask_cvttph_epu16): Likewise.
8206         (_mm512_maskz_cvttph_epu16): Likewise.
8207         (_mm512_cvtt_roundph_epu16): Likewise.
8208         (_mm512_mask_cvtt_roundph_epu16): Likewise.
8209         (_mm512_maskz_cvtt_roundph_epu16): Likewise.
8210         * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
8211         New intirnsic.
8212         (_mm_mask_cvttph_epi32): Likewise.
8213         (_mm_maskz_cvttph_epi32): Likewise.
8214         (_mm256_cvttph_epi32): Likewise.
8215         (_mm256_mask_cvttph_epi32): Likewise.
8216         (_mm256_maskz_cvttph_epi32): Likewise.
8217         (_mm_cvttph_epu32): Likewise.
8218         (_mm_mask_cvttph_epu32): Likewise.
8219         (_mm_maskz_cvttph_epu32): Likewise.
8220         (_mm256_cvttph_epu32): Likewise.
8221         (_mm256_mask_cvttph_epu32): Likewise.
8222         (_mm256_maskz_cvttph_epu32): Likewise.
8223         (_mm_cvttph_epi64): Likewise.
8224         (_mm_mask_cvttph_epi64): Likewise.
8225         (_mm_maskz_cvttph_epi64): Likewise.
8226         (_mm256_cvttph_epi64): Likewise.
8227         (_mm256_mask_cvttph_epi64): Likewise.
8228         (_mm256_maskz_cvttph_epi64): Likewise.
8229         (_mm_cvttph_epu64): Likewise.
8230         (_mm_mask_cvttph_epu64): Likewise.
8231         (_mm_maskz_cvttph_epu64): Likewise.
8232         (_mm256_cvttph_epu64): Likewise.
8233         (_mm256_mask_cvttph_epu64): Likewise.
8234         (_mm256_maskz_cvttph_epu64): Likewise.
8235         (_mm_cvttph_epi16): Likewise.
8236         (_mm_mask_cvttph_epi16): Likewise.
8237         (_mm_maskz_cvttph_epi16): Likewise.
8238         (_mm256_cvttph_epi16): Likewise.
8239         (_mm256_mask_cvttph_epi16): Likewise.
8240         (_mm256_maskz_cvttph_epi16): Likewise.
8241         (_mm_cvttph_epu16): Likewise.
8242         (_mm_mask_cvttph_epu16): Likewise.
8243         (_mm_maskz_cvttph_epu16): Likewise.
8244         (_mm256_cvttph_epu16): Likewise.
8245         (_mm256_mask_cvttph_epu16): Likewise.
8246         (_mm256_maskz_cvttph_epu16): Likewise.
8247         * config/i386/i386-builtin.def: Add new builtins.
8248         * config/i386/sse.md
8249         (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
8250         New.
8251         (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
8252         (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
8253         (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
8254         (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
8256 2021-09-17  liuhongt  <hongtao.liu@intel.com>
8258         * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
8259         (_mm_cvtsh_u32): Likewise.
8260         (_mm_cvt_roundsh_i32): Likewise.
8261         (_mm_cvt_roundsh_u32): Likewise.
8262         (_mm_cvtsh_i64): Likewise.
8263         (_mm_cvtsh_u64): Likewise.
8264         (_mm_cvt_roundsh_i64): Likewise.
8265         (_mm_cvt_roundsh_u64): Likewise.
8266         (_mm_cvti32_sh): Likewise.
8267         (_mm_cvtu32_sh): Likewise.
8268         (_mm_cvt_roundi32_sh): Likewise.
8269         (_mm_cvt_roundu32_sh): Likewise.
8270         (_mm_cvti64_sh): Likewise.
8271         (_mm_cvtu64_sh): Likewise.
8272         (_mm_cvt_roundi64_sh): Likewise.
8273         (_mm_cvt_roundu64_sh): Likewise.
8274         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8275         * config/i386/i386-builtin.def: Add corresponding new builtins.
8276         * config/i386/i386-expand.c (ix86_expand_round_builtin):
8277         Handle new builtin types.
8278         * config/i386/sse.md
8279         (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
8280         New define_insn.
8281         (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
8282         (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
8284 2021-09-16  Bill Schmidt  <wschmidt@linux.ibm.com>
8286         * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
8287         (altivec_resolve_new_overloaded_builtin): New forward decl.
8288         (rs6000_new_builtin_type_compatible): New function.
8289         (altivec_resolve_overloaded_builtin): Call
8290         altivec_resolve_new_overloaded_builtin.
8291         (altivec_build_new_resolved_builtin): New function.
8292         (altivec_resolve_new_overloaded_builtin): Likewise.
8293         * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
8294         Likewise.
8295         * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
8296         name of rs6000_new_builtin_is_supported.
8298 2021-09-16  Uroš Bizjak  <ubizjak@gmail.com>
8300         * config/i386/i386-protos.h (ix86_decompose_address):
8301         Change return type to bool.
8302         * config/i386/i386.c (ix86_decompose_address): Ditto.
8304 2021-09-16  Tobias Burnus  <tobias@codesourcery.com>
8306         PR target/102353
8307         * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
8308         Added 'build/' to target, use build/%.o rule.
8309         (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
8310         '$(build_exeext)' to target and 'build/' for the *.o files.
8311         (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
8312         with $(RUN_GEN).
8314 2021-09-16  Martin Jambor  <mjambor@suse.cz>
8316         * cgraph.c (cgraph_node::dump): Do not check caller count sums if
8317         the body has been removed.  Remove trailing whitespace.
8319 2021-09-16  Richard Biener  <rguenther@suse.de>
8321         PR middle-end/102360
8322         * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
8323         of non-memory more robust.
8325 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
8327         * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
8328         * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
8329         (leon5_adjust_cost): Increase cost of store with data dependency
8330         on ALU instruction and FPU anti-dependencies.
8331         (sparc_option_override): Add LEON5 costs
8332         (sparc_adjust_cost): Add LEON5 cost adjustments
8333         * config/sparc/sparc.h: Add LEON5
8334         * config/sparc/sparc.md: Include LEON5 scheduling information
8335         * config/sparc/sparc.opt: Add LEON5
8336         * doc/invoke.texi: Add LEON5
8337         * config/sparc/leon5.md: New file.
8339 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
8341         * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
8342         sensitive sequence for B2BST errata workaround.
8344 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
8346         * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
8347         functions with atomic instruction in the UT700 errata workaround.
8349 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
8351         * config/sparc/sparc.c (next_active_non_empty_insn): New function
8352         that returns next active non empty assembly instruction.
8353         (sparc_do_work_around_errata): Use new function.
8355 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
8357         * config/sparc/sparc.c (store_insn_p): Add predicate for store
8358         attributes.
8359         (load_insn_p): Add predicate for load attributes.
8360         (sparc_do_work_around_errata): Use new predicates.
8362 2021-09-16  Andreas Larsson  <andreas@gaisler.com>
8364         * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
8365         LEON and LEON3.
8367 2021-09-16  Martin Liska  <mliska@suse.cz>
8369         * config/mips/netbsd.h: Fix typo in name of a macro.
8371 2021-09-16  liuhongt  <hongtao.liu@intel.com>
8373         PR middle-end/102080
8374         * match.pd: Check mask type when doing cond_op related gimple
8375         simplification.
8376         * tree.c (is_truth_type_for): New function.
8377         * tree.h (is_truth_type_for): New declaration.
8379 2021-09-16  liuhongt  <hongtao.liu@intel.com>
8381         * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
8382         intrinsic.
8383         (_mm512_mask_cvtepi32_ph): Likewise.
8384         (_mm512_maskz_cvtepi32_ph): Likewise.
8385         (_mm512_cvt_roundepi32_ph): Likewise.
8386         (_mm512_mask_cvt_roundepi32_ph): Likewise.
8387         (_mm512_maskz_cvt_roundepi32_ph): Likewise.
8388         (_mm512_cvtepu32_ph): Likewise.
8389         (_mm512_mask_cvtepu32_ph): Likewise.
8390         (_mm512_maskz_cvtepu32_ph): Likewise.
8391         (_mm512_cvt_roundepu32_ph): Likewise.
8392         (_mm512_mask_cvt_roundepu32_ph): Likewise.
8393         (_mm512_maskz_cvt_roundepu32_ph): Likewise.
8394         (_mm512_cvtepi64_ph): Likewise.
8395         (_mm512_mask_cvtepi64_ph): Likewise.
8396         (_mm512_maskz_cvtepi64_ph): Likewise.
8397         (_mm512_cvt_roundepi64_ph): Likewise.
8398         (_mm512_mask_cvt_roundepi64_ph): Likewise.
8399         (_mm512_maskz_cvt_roundepi64_ph): Likewise.
8400         (_mm512_cvtepu64_ph): Likewise.
8401         (_mm512_mask_cvtepu64_ph): Likewise.
8402         (_mm512_maskz_cvtepu64_ph): Likewise.
8403         (_mm512_cvt_roundepu64_ph): Likewise.
8404         (_mm512_mask_cvt_roundepu64_ph): Likewise.
8405         (_mm512_maskz_cvt_roundepu64_ph): Likewise.
8406         (_mm512_cvtepi16_ph): Likewise.
8407         (_mm512_mask_cvtepi16_ph): Likewise.
8408         (_mm512_maskz_cvtepi16_ph): Likewise.
8409         (_mm512_cvt_roundepi16_ph): Likewise.
8410         (_mm512_mask_cvt_roundepi16_ph): Likewise.
8411         (_mm512_maskz_cvt_roundepi16_ph): Likewise.
8412         (_mm512_cvtepu16_ph): Likewise.
8413         (_mm512_mask_cvtepu16_ph): Likewise.
8414         (_mm512_maskz_cvtepu16_ph): Likewise.
8415         (_mm512_cvt_roundepu16_ph): Likewise.
8416         (_mm512_mask_cvt_roundepu16_ph): Likewise.
8417         (_mm512_maskz_cvt_roundepu16_ph): Likewise.
8418         * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
8419         intrinsic.
8420         (_mm_mask_cvtepi32_ph): Likewise.
8421         (_mm_maskz_cvtepi32_ph): Likewise.
8422         (_mm256_cvtepi32_ph): Likewise.
8423         (_mm256_mask_cvtepi32_ph): Likewise.
8424         (_mm256_maskz_cvtepi32_ph): Likewise.
8425         (_mm_cvtepu32_ph): Likewise.
8426         (_mm_mask_cvtepu32_ph): Likewise.
8427         (_mm_maskz_cvtepu32_ph): Likewise.
8428         (_mm256_cvtepu32_ph): Likewise.
8429         (_mm256_mask_cvtepu32_ph): Likewise.
8430         (_mm256_maskz_cvtepu32_ph): Likewise.
8431         (_mm_cvtepi64_ph): Likewise.
8432         (_mm_mask_cvtepi64_ph): Likewise.
8433         (_mm_maskz_cvtepi64_ph): Likewise.
8434         (_mm256_cvtepi64_ph): Likewise.
8435         (_mm256_mask_cvtepi64_ph): Likewise.
8436         (_mm256_maskz_cvtepi64_ph): Likewise.
8437         (_mm_cvtepu64_ph): Likewise.
8438         (_mm_mask_cvtepu64_ph): Likewise.
8439         (_mm_maskz_cvtepu64_ph): Likewise.
8440         (_mm256_cvtepu64_ph): Likewise.
8441         (_mm256_mask_cvtepu64_ph): Likewise.
8442         (_mm256_maskz_cvtepu64_ph): Likewise.
8443         (_mm_cvtepi16_ph): Likewise.
8444         (_mm_mask_cvtepi16_ph): Likewise.
8445         (_mm_maskz_cvtepi16_ph): Likewise.
8446         (_mm256_cvtepi16_ph): Likewise.
8447         (_mm256_mask_cvtepi16_ph): Likewise.
8448         (_mm256_maskz_cvtepi16_ph): Likewise.
8449         (_mm_cvtepu16_ph): Likewise.
8450         (_mm_mask_cvtepu16_ph): Likewise.
8451         (_mm_maskz_cvtepu16_ph): Likewise.
8452         (_mm256_cvtepu16_ph): Likewise.
8453         (_mm256_mask_cvtepu16_ph): Likewise.
8454         (_mm256_maskz_cvtepu16_ph): Likewise.
8455         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8456         * config/i386/i386-builtin.def: Add corresponding new builtins.
8457         * config/i386/i386-expand.c
8458         (ix86_expand_args_builtin): Handle new builtin types.
8459         (ix86_expand_round_builtin): Ditto.
8460         * config/i386/i386-modes.def: Declare V2HF and V6HF.
8461         * config/i386/sse.md (VI2H_AVX512VL): New.
8462         (qq2phsuff): Ditto.
8463         (sseintvecmode): Add HF vector modes.
8464         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
8465         New.
8466         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
8467         (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
8468         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
8469         (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
8470         (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
8471         (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
8472         (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
8473         (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
8474         (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
8475         (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
8476         * config/i386/subst.md (round_qq2phsuff): New subst_attr.
8478 2021-09-16  liuhongt  <hongtao.liu@intel.com>
8480         * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
8481         New intrinsic/
8482         (_mm512_mask_cvtph_epi32): Likewise.
8483         (_mm512_maskz_cvtph_epi32): Likewise.
8484         (_mm512_cvt_roundph_epi32): Likewise.
8485         (_mm512_mask_cvt_roundph_epi32): Likewise.
8486         (_mm512_maskz_cvt_roundph_epi32): Likewise.
8487         (_mm512_cvtph_epu32): Likewise.
8488         (_mm512_mask_cvtph_epu32): Likewise.
8489         (_mm512_maskz_cvtph_epu32): Likewise.
8490         (_mm512_cvt_roundph_epu32): Likewise.
8491         (_mm512_mask_cvt_roundph_epu32): Likewise.
8492         (_mm512_maskz_cvt_roundph_epu32): Likewise.
8493         (_mm512_cvtph_epi64): Likewise.
8494         (_mm512_mask_cvtph_epi64): Likewise.
8495         (_mm512_maskz_cvtph_epi64): Likewise.
8496         (_mm512_cvt_roundph_epi64): Likewise.
8497         (_mm512_mask_cvt_roundph_epi64): Likewise.
8498         (_mm512_maskz_cvt_roundph_epi64): Likewise.
8499         (_mm512_cvtph_epu64): Likewise.
8500         (_mm512_mask_cvtph_epu64): Likewise.
8501         (_mm512_maskz_cvtph_epu64): Likewise.
8502         (_mm512_cvt_roundph_epu64): Likewise.
8503         (_mm512_mask_cvt_roundph_epu64): Likewise.
8504         (_mm512_maskz_cvt_roundph_epu64): Likewise.
8505         (_mm512_cvtph_epi16): Likewise.
8506         (_mm512_mask_cvtph_epi16): Likewise.
8507         (_mm512_maskz_cvtph_epi16): Likewise.
8508         (_mm512_cvt_roundph_epi16): Likewise.
8509         (_mm512_mask_cvt_roundph_epi16): Likewise.
8510         (_mm512_maskz_cvt_roundph_epi16): Likewise.
8511         (_mm512_cvtph_epu16): Likewise.
8512         (_mm512_mask_cvtph_epu16): Likewise.
8513         (_mm512_maskz_cvtph_epu16): Likewise.
8514         (_mm512_cvt_roundph_epu16): Likewise.
8515         (_mm512_mask_cvt_roundph_epu16): Likewise.
8516         (_mm512_maskz_cvt_roundph_epu16): Likewise.
8517         * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
8518         New intrinsic.
8519         (_mm_mask_cvtph_epi32): Likewise.
8520         (_mm_maskz_cvtph_epi32): Likewise.
8521         (_mm256_cvtph_epi32): Likewise.
8522         (_mm256_mask_cvtph_epi32): Likewise.
8523         (_mm256_maskz_cvtph_epi32): Likewise.
8524         (_mm_cvtph_epu32): Likewise.
8525         (_mm_mask_cvtph_epu32): Likewise.
8526         (_mm_maskz_cvtph_epu32): Likewise.
8527         (_mm256_cvtph_epu32): Likewise.
8528         (_mm256_mask_cvtph_epu32): Likewise.
8529         (_mm256_maskz_cvtph_epu32): Likewise.
8530         (_mm_cvtph_epi64): Likewise.
8531         (_mm_mask_cvtph_epi64): Likewise.
8532         (_mm_maskz_cvtph_epi64): Likewise.
8533         (_mm256_cvtph_epi64): Likewise.
8534         (_mm256_mask_cvtph_epi64): Likewise.
8535         (_mm256_maskz_cvtph_epi64): Likewise.
8536         (_mm_cvtph_epu64): Likewise.
8537         (_mm_mask_cvtph_epu64): Likewise.
8538         (_mm_maskz_cvtph_epu64): Likewise.
8539         (_mm256_cvtph_epu64): Likewise.
8540         (_mm256_mask_cvtph_epu64): Likewise.
8541         (_mm256_maskz_cvtph_epu64): Likewise.
8542         (_mm_cvtph_epi16): Likewise.
8543         (_mm_mask_cvtph_epi16): Likewise.
8544         (_mm_maskz_cvtph_epi16): Likewise.
8545         (_mm256_cvtph_epi16): Likewise.
8546         (_mm256_mask_cvtph_epi16): Likewise.
8547         (_mm256_maskz_cvtph_epi16): Likewise.
8548         (_mm_cvtph_epu16): Likewise.
8549         (_mm_mask_cvtph_epu16): Likewise.
8550         (_mm_maskz_cvtph_epu16): Likewise.
8551         (_mm256_cvtph_epu16): Likewise.
8552         (_mm256_mask_cvtph_epu16): Likewise.
8553         (_mm256_maskz_cvtph_epu16): Likewise.
8554         * config/i386/i386-builtin-types.def: Add new builtin types.
8555         * config/i386/i386-builtin.def: Add new builtins.
8556         * config/i386/i386-expand.c
8557         (ix86_expand_args_builtin): Handle new builtin types.
8558         (ix86_expand_round_builtin): Ditto.
8559         * config/i386/sse.md (sseintconvert): New.
8560         (ssePHmode): Ditto.
8561         (UNSPEC_US_FIX_NOTRUNC): Ditto.
8562         (sseintconvertsignprefix): Ditto.
8563         (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
8564         Ditto.
8566 2021-09-16  liuhongt  <hongtao.liu@intel.com>
8568         * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
8569         New intrinsic.
8570         (_mm_cvtsi128_si16): Likewise.
8571         (_mm_mask_load_sh): Likewise.
8572         (_mm_maskz_load_sh): Likewise.
8573         (_mm_mask_store_sh): Likewise.
8574         (_mm_move_sh): Likewise.
8575         (_mm_mask_move_sh): Likewise.
8576         (_mm_maskz_move_sh): Likewise.
8577         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8578         * config/i386/i386-builtin.def: Add corresponding new builtins.
8579         * config/i386/i386-expand.c
8580         (ix86_expand_special_args_builtin): Handle new builtin types.
8581         (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
8582         * config/i386/sse.md (VI2F): New mode iterator.
8583         (vec_set<mode>_0): Use new mode iterator.
8584         (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
8585         (avx512f_store<mode>_mask): Ditto.
8587 2021-09-16  Kewen Lin  <linkw@linux.ibm.com>
8589         * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
8591 2021-09-15  David Edelsohn  <dje.gcc@gmail.com>
8593         * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
8594         Proceed if no symbol summary or the symbol alias flag is false.
8596 2021-09-15  Jakub Jelinek  <jakub@redhat.com>
8598         PR c++/88578
8599         PR c++/102295
8600         * varasm.c (output_constructor_regular_field): Instead of assertion
8601         that array_size_for_constructor result is equal to size of
8602         TREE_TYPE (local->val) in bytes, assert that the type size is greater
8603         or equal to array_size_for_constructor result and use type size as
8604         fieldsize.
8606 2021-09-15  Martin Liska  <mliska@suse.cz>
8608         PR target/102351
8609         * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
8611 2021-09-15  Martin Liska  <mliska@suse.cz>
8613         PR target/102349
8614         * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
8615         Check that we have a symbol summary for a symbol.
8617 2021-09-15  Richard Biener  <rguenther@suse.de>
8619         PR target/102348
8620         * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
8621         to inherit from elfos.h
8623 2021-09-15  liuhongt  <hongtao.liu@intel.com>
8625         PR target/102327
8626         * config/i386/i386-expand.c
8627         (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
8628         HFmodes.
8629         (ix86_expand_vector_set): Use blendw instead of pinsrw.
8630         * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
8631         AVX512FP16 which supports 16bit vector load.
8632         * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
8633         Rename to ..
8634         (avx512bw_interleave_high<mode><mask_name>): .. this, and
8635         extend to V32HFmode.
8636         (avx2_interleave_highv16hi<mask_name>): Rename to ..
8637         (avx2_interleave_high<mode><mask_name>): .. this, and extend
8638         to V16HFmode.
8639         (vec_interleave_highv8hi<mask_name>): Rename to ..
8640         (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
8641         (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
8642         Rename to ..
8643         (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
8644         this, and extend to V32HFmode.
8645         (avx2_interleave_lowv16hi<mask_name>): Rename to ..
8646         (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
8647         (vec_interleave_lowv8hi<mask_name>): Rename to ..
8648         (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
8649         (sse4_1_pblendw): Rename to ..
8650         (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
8651         (avx2_pblendph): New define_expand.
8652         (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
8653         sseintmodesuffix instead of ssemodesuffix.
8654         (blendsuf): New mode attr.
8656 2021-09-15  Richard Biener  <rguenther@suse.de>
8658         * tree-vectorizer.h (dr_misalignment): Move out of line.
8659         (dr_target_alignment): New.
8660         (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
8661         (set_dr_target_alignment): New.
8662         (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
8663         * tree-vect-data-refs.c (dr_misalignment): Compute and
8664         return the group members misalignment.
8665         (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
8666         (vect_analyze_data_refs_alignment): Compute alignment only
8667         for the first element of a DR group.
8668         (vect_slp_analyze_node_alignment): Likewise.
8670 2021-09-15  Hongyu Wang  <hongyu.wang@intel.com>
8672         * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
8673         * config/i386/avx512fp16vlintrin.h: Likewise.
8674         * config/i386/i386-builtin.def: Adjust builtin name and
8675         enumeration to match AVX512F style.
8677 2021-09-15  Richard Biener  <rguenther@suse.de>
8679         PR tree-optimization/102318
8680         * tree-vect-loop.c (vect_transform_cycle_phi): Revert
8681         previous change and do the mode conversion separately from
8682         the sign conversion.
8684 2021-09-15  Hongtao Liu  <hongtao.liu@intel.com>
8685             Peter Cordes  <peter@cordes.ca>
8687         PR target/91103
8688         * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
8689         (*vec_extract<mode><ssescalarmodelower>_valign): Output
8690         vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
8691         0.
8693 2021-09-15  Richard Biener  <rguenther@suse.de>
8695         * config.gcc: Remove vax-*-openbsd* configuration.
8697 2021-09-15  Richard Biener  <rguenther@suse.de>
8699         * config.gcc: Remove m68k-openbsd.
8701 2021-09-15  Max Filippov  <jcmvbkbc@gmail.com>
8703         PR target/102336
8704         * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
8706 2021-09-14  Peter Bergner  <bergner@linux.ibm.com>
8708         * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
8709         (unspecv): Add UNSPECV_MMA_XXSETACCZ.
8710         (*mma_xxsetaccz): Delete.
8711         (mma_xxsetaccz): Change to define_insn.  Remove operand 1.
8712         Use UNSPECV_MMA_XXSETACCZ.  Update comment.
8713         * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
8715 2021-09-14  Iain Sandoe  <iain@sandoe.co.uk>
8717         * Makefile.in: Remove variables related to applying no-PIE
8718         to the exes on $build.
8719         * configure: Regenerate.
8720         * configure.ac: Remove configuration related to applying
8721         no-PIE to the exes on $build.
8723 2021-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
8725         * config/arc/arc.md (doloop_end): Add missing mode.
8726         (loop_end): Likewise.
8728 2021-09-14  Jakub Jelinek  <jakub@redhat.com>
8730         * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
8731         it to recursive calls, for depth above 7 just gimplify or return.
8732         Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
8733         __builtin_clear_padding and TARGET_EXPR.
8734         (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
8736 2021-09-14  liuhongt  <hongtao.liu@intel.com>
8738         * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
8739         New intrinsic.
8740         (_mm_mask_fpclass_sh_mask): Likewise.
8741         (_mm512_mask_fpclass_ph_mask): Likewise.
8742         (_mm512_fpclass_ph_mask): Likewise.
8743         (_mm_getexp_sh): Likewise.
8744         (_mm_mask_getexp_sh): Likewise.
8745         (_mm_maskz_getexp_sh): Likewise.
8746         (_mm512_getexp_ph): Likewise.
8747         (_mm512_mask_getexp_ph): Likewise.
8748         (_mm512_maskz_getexp_ph): Likewise.
8749         (_mm_getexp_round_sh): Likewise.
8750         (_mm_mask_getexp_round_sh): Likewise.
8751         (_mm_maskz_getexp_round_sh): Likewise.
8752         (_mm512_getexp_round_ph): Likewise.
8753         (_mm512_mask_getexp_round_ph): Likewise.
8754         (_mm512_maskz_getexp_round_ph): Likewise.
8755         (_mm_getmant_sh): Likewise.
8756         (_mm_mask_getmant_sh): Likewise.
8757         (_mm_maskz_getmant_sh): Likewise.
8758         (_mm512_getmant_ph): Likewise.
8759         (_mm512_mask_getmant_ph): Likewise.
8760         (_mm512_maskz_getmant_ph): Likewise.
8761         (_mm_getmant_round_sh): Likewise.
8762         (_mm_mask_getmant_round_sh): Likewise.
8763         (_mm_maskz_getmant_round_sh): Likewise.
8764         (_mm512_getmant_round_ph): Likewise.
8765         (_mm512_mask_getmant_round_ph): Likewise.
8766         (_mm512_maskz_getmant_round_ph): Likewise.
8767         * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
8768         New intrinsic.
8769         (_mm_fpclass_ph_mask): Likewise.
8770         (_mm256_mask_fpclass_ph_mask): Likewise.
8771         (_mm256_fpclass_ph_mask): Likewise.
8772         (_mm256_getexp_ph): Likewise.
8773         (_mm256_mask_getexp_ph): Likewise.
8774         (_mm256_maskz_getexp_ph): Likewise.
8775         (_mm_getexp_ph): Likewise.
8776         (_mm_mask_getexp_ph): Likewise.
8777         (_mm_maskz_getexp_ph): Likewise.
8778         (_mm256_getmant_ph): Likewise.
8779         (_mm256_mask_getmant_ph): Likewise.
8780         (_mm256_maskz_getmant_ph): Likewise.
8781         (_mm_getmant_ph): Likewise.
8782         (_mm_mask_getmant_ph): Likewise.
8783         (_mm_maskz_getmant_ph): Likewise.
8784         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8785         * config/i386/i386-builtin.def: Add corresponding new builtins.
8786         * config/i386/i386-expand.c
8787         (ix86_expand_args_builtin): Handle new builtin types.
8788         (ix86_expand_round_builtin): Ditto.
8789         * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
8790         (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
8791         to support HF vector modes.
8792         (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
8793         Ditto.
8794         (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
8795         (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
8796         (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
8797         (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
8798         Ditto.
8800 2021-09-14  liuhongt  <hongtao.liu@intel.com>
8802         * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
8803         New intrinsic.
8804         (_mm512_mask_reduce_ph): Likewise.
8805         (_mm512_maskz_reduce_ph): Likewise.
8806         (_mm512_reduce_round_ph): Likewise.
8807         (_mm512_mask_reduce_round_ph): Likewise.
8808         (_mm512_maskz_reduce_round_ph): Likewise.
8809         (_mm_reduce_sh): Likewise.
8810         (_mm_mask_reduce_sh): Likewise.
8811         (_mm_maskz_reduce_sh): Likewise.
8812         (_mm_reduce_round_sh): Likewise.
8813         (_mm_mask_reduce_round_sh): Likewise.
8814         (_mm_maskz_reduce_round_sh): Likewise.
8815         (_mm512_roundscale_ph): Likewise.
8816         (_mm512_mask_roundscale_ph): Likewise.
8817         (_mm512_maskz_roundscale_ph): Likewise.
8818         (_mm512_roundscale_round_ph): Likewise.
8819         (_mm512_mask_roundscale_round_ph): Likewise.
8820         (_mm512_maskz_roundscale_round_ph): Likewise.
8821         (_mm_roundscale_sh): Likewise.
8822         (_mm_mask_roundscale_sh): Likewise.
8823         (_mm_maskz_roundscale_sh): Likewise.
8824         (_mm_roundscale_round_sh): Likewise.
8825         (_mm_mask_roundscale_round_sh): Likewise.
8826         (_mm_maskz_roundscale_round_sh): Likewise.
8827         * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
8828         New intrinsic.
8829         (_mm_mask_reduce_ph): Likewise.
8830         (_mm_maskz_reduce_ph): Likewise.
8831         (_mm256_reduce_ph): Likewise.
8832         (_mm256_mask_reduce_ph): Likewise.
8833         (_mm256_maskz_reduce_ph): Likewise.
8834         (_mm_roundscale_ph): Likewise.
8835         (_mm_mask_roundscale_ph): Likewise.
8836         (_mm_maskz_roundscale_ph): Likewise.
8837         (_mm256_roundscale_ph): Likewise.
8838         (_mm256_mask_roundscale_ph): Likewise.
8839         (_mm256_maskz_roundscale_ph): Likewise.
8840         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8841         * config/i386/i386-builtin.def: Add corresponding new builtins.
8842         * config/i386/i386-expand.c
8843         (ix86_expand_args_builtin): Handle new builtin types.
8844         (ix86_expand_round_builtin): Ditto.
8845         * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
8846         Renamed to ...
8847         (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
8848         ... this, and adjust for round operands.
8849         (reduces<mode><mask_scalar_name>): Likewise, with ...
8850         (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
8851         ... this.
8852         (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
8853         Adjust for HF vector modes.
8854         (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8855         Ditto.
8856         (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
8858 2021-09-14  liuhongt  <hongtao.liu@intel.com>
8860         * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
8861         New intrinsic.
8862         (_mm512_mask_rcp_ph): Likewise.
8863         (_mm512_maskz_rcp_ph): Likewise.
8864         (_mm_rcp_sh): Likewise.
8865         (_mm_mask_rcp_sh): Likewise.
8866         (_mm_maskz_rcp_sh): Likewise.
8867         (_mm512_scalef_ph): Likewise.
8868         (_mm512_mask_scalef_ph): Likewise.
8869         (_mm512_maskz_scalef_ph): Likewise.
8870         (_mm512_scalef_round_ph): Likewise.
8871         (_mm512_mask_scalef_round_ph): Likewise.
8872         (_mm512_maskz_scalef_round_ph): Likewise.
8873         (_mm_scalef_sh): Likewise.
8874         (_mm_mask_scalef_sh): Likewise.
8875         (_mm_maskz_scalef_sh): Likewise.
8876         (_mm_scalef_round_sh): Likewise.
8877         (_mm_mask_scalef_round_sh): Likewise.
8878         (_mm_maskz_scalef_round_sh): Likewise.
8879         * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
8880         New intrinsic.
8881         (_mm256_rcp_ph): Likewise.
8882         (_mm_mask_rcp_ph): Likewise.
8883         (_mm256_mask_rcp_ph): Likewise.
8884         (_mm_maskz_rcp_ph): Likewise.
8885         (_mm256_maskz_rcp_ph): Likewise.
8886         (_mm_scalef_ph): Likewise.
8887         (_mm256_scalef_ph): Likewise.
8888         (_mm_mask_scalef_ph): Likewise.
8889         (_mm256_mask_scalef_ph): Likewise.
8890         (_mm_maskz_scalef_ph): Likewise.
8891         (_mm256_maskz_scalef_ph): Likewise.
8892         * config/i386/i386-builtin.def: Add new builtins.
8893         * config/i386/sse.md (VFH_AVX512VL): New.
8894         (avx512fp16_rcp<mode>2<mask_name>): Ditto.
8895         (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
8896         (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
8897         Adjust to support HF vector modes.
8898         (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
8900 2021-09-14  liuhongt  <hongtao.liu@intel.com>
8902         * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
8903         New intrinsic.
8904         (_mm512_mask_sqrt_ph): Likewise.
8905         (_mm512_maskz_sqrt_ph): Likewise.
8906         (_mm512_sqrt_round_ph): Likewise.
8907         (_mm512_mask_sqrt_round_ph): Likewise.
8908         (_mm512_maskz_sqrt_round_ph): Likewise.
8909         (_mm512_rsqrt_ph): Likewise.
8910         (_mm512_mask_rsqrt_ph): Likewise.
8911         (_mm512_maskz_rsqrt_ph): Likewise.
8912         (_mm_rsqrt_sh): Likewise.
8913         (_mm_mask_rsqrt_sh): Likewise.
8914         (_mm_maskz_rsqrt_sh): Likewise.
8915         (_mm_sqrt_sh): Likewise.
8916         (_mm_mask_sqrt_sh): Likewise.
8917         (_mm_maskz_sqrt_sh): Likewise.
8918         (_mm_sqrt_round_sh): Likewise.
8919         (_mm_mask_sqrt_round_sh): Likewise.
8920         (_mm_maskz_sqrt_round_sh): Likewise.
8921         * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
8922         (_mm256_sqrt_ph): Likewise.
8923         (_mm_mask_sqrt_ph): Likewise.
8924         (_mm256_mask_sqrt_ph): Likewise.
8925         (_mm_maskz_sqrt_ph): Likewise.
8926         (_mm256_maskz_sqrt_ph): Likewise.
8927         (_mm_rsqrt_ph): Likewise.
8928         (_mm256_rsqrt_ph): Likewise.
8929         (_mm_mask_rsqrt_ph): Likewise.
8930         (_mm256_mask_rsqrt_ph): Likewise.
8931         (_mm_maskz_rsqrt_ph): Likewise.
8932         (_mm256_maskz_rsqrt_ph): Likewise.
8933         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
8934         * config/i386/i386-builtin.def: Add corresponding new builtins.
8935         * config/i386/i386-expand.c
8936         (ix86_expand_args_builtin): Handle new builtins.
8937         (ix86_expand_round_builtin): Ditto.
8938         * config/i386/sse.md (VF_AVX512FP16VL): New.
8939         (sqrt<mode>2): Adjust for HF vector modes.
8940         (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
8941         (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
8942         Likewise.
8943         (<sse>_rsqrt<mode>2<mask_name>): New.
8944         (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
8946 2021-09-13  Thomas Schwinge  <thomas@codesourcery.com>
8948         PR bootstrap/101574
8949         * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
8950         'RESERVED_LOCATION_P' locations.
8951         * warning-control.cc (get_nowarn_spec, suppress_warning)
8952         (copy_warning): Likewise.
8954 2021-09-13  Thomas Schwinge  <thomas@codesourcery.com>
8956         * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
8957         (typedef key_type_t): ... this.  Remove.
8958         (nowarn_map): Document.
8959         * diagnostic-spec.c (nowarn_map): Likewise.
8960         * warning-control.cc (convert_to_key): Evolve functions into...
8961         (get_location): ... these.  Adjust all users.
8963 2021-09-13  Thomas Schwinge  <thomas@codesourcery.com>
8965         * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
8967 2021-09-13  Jason Merrill  <jason@redhat.com>
8969         * params.opt: Add destructive-interference-size and
8970         constructive-interference-size.
8971         * doc/invoke.texi: Document them.
8972         * config/aarch64/aarch64.c (aarch64_override_options_internal):
8973         Set them.
8974         * config/arm/arm.c (arm_option_override): Set them.
8975         * config/i386/i386-options.c (ix86_option_override_internal):
8976         Set them.
8978 2021-09-13  Martin Liska  <mliska@suse.cz>
8979             H.J. Lu  <hjl.tools@gmail.com>
8981         PR target/101696
8982         * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
8983         for x86-64 micro levels for __builtin_cpu_supports.
8984         * common/config/i386/i386-cpuinfo.h (enum feature_priority):
8985         Add priorities for the micro-arch levels.
8986         (enum processor_features): Add new features.
8987         * common/config/i386/i386-isas.h: Add micro-arch features.
8988         * config/i386/i386-builtins.c (get_builtin_code_for_version):
8989         Support the micro-arch levels by callsing
8990         __builtin_cpu_supports.
8991         * doc/extend.texi: Document that the levels are support by
8992           __builtin_cpu_supports.
8994 2021-09-13  Andrew Pinski  <apinski@marvell.com>
8996         PR target/95969
8997         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
8998         New function.
8999         (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
9000         (aarch64_general_gimple_fold_builtin): Likewise.
9002 2021-09-13  Andrew Pinski  <apinski@marvell.com>
9004         * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
9005         to the Unsupported targets list.
9006         Remove support for m32r-*-linux* and m32rle-*-linux*.
9007         * config/m32r/linux.h: Removed.
9008         * config/m32r/t-linux: Removed.
9010 2021-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9012         PR target/102252
9013         * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
9014         register index for SVE predicate modes.
9016 2021-09-13  Aldy Hernandez  <aldyh@redhat.com>
9018         * tree-ssa-threadbackward.c
9019         (back_threader_profitability::profitable_path_p): Remove FSM
9020         references.
9021         (back_threader_registry::register_path): Same.
9022         * tree-ssa-threadedge.c
9023         (jump_threader::simplify_control_stmt_condition): Same.
9024         * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
9025         Add backedge_threads argument.
9026         (fwd_jt_path_registry::fwd_jt_path_registry): Pass
9027         backedge_threads argument.
9028         (back_jt_path_registry::back_jt_path_registry):  Same.
9029         (dump_jump_thread_path): Adjust for FSM removal.
9030         (back_jt_path_registry::rewire_first_differing_edge): Same.
9031         (back_jt_path_registry::adjust_paths_after_duplication): Same.
9032         (back_jt_path_registry::update_cfg): Same.
9033         (jt_path_registry::register_jump_thread): Same.
9034         * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
9035         EDGE_FSM_THREAD.
9036         (class back_jt_path_registry): Add backedge_threads to
9037         constructor.
9039 2021-09-13  Martin Liska  <mliska@suse.cz>
9041         PR c++/101331
9042         * asan.h (sanitize_coverage_p): Handle when fn == NULL.
9044 2021-09-13  H.J. Lu  <hjl.tools@gmail.com>
9046         PR target/101935
9047         * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
9048         (TARGET_AVX256_STORE_BY_PIECES): Likewise.
9049         (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
9050         TARGET_AVX256_STORE_BY_PIECES instead of
9051         TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
9052         TARGET_AVX256_SPLIT_UNALIGNED_STORE.
9053         (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
9054         of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
9055         * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
9056         (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
9058 2021-09-13  liuhongt  <hongtao.liu@intel.com>
9060         PR bootstrap/102302
9061         * expmed.c (extract_bit_field_using_extv): Use
9062         gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
9064 2021-09-13  Aldy Hernandez  <aldyh@redhat.com>
9066         * Makefile.in (OBJS): Add value-pointer-equiv.o.
9067         * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
9068         value-pointer-equiv.*.
9069         (ssa_equiv_stack::ssa_equiv_stack): Same.
9070         (ssa_equiv_stack::enter): Same.
9071         (ssa_equiv_stack::leave): Same.
9072         (ssa_equiv_stack::push_replacement): Same.
9073         (ssa_equiv_stack::get_replacement): Same.
9074         (is_pointer_ssa): Same.
9075         (class pointer_equiv_analyzer): Same.
9076         (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
9077         (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
9078         (pointer_equiv_analyzer::set_global_equiv): Same.
9079         (pointer_equiv_analyzer::set_cond_equiv): Same.
9080         (pointer_equiv_analyzer::get_equiv): Same.
9081         (pointer_equiv_analyzer::enter): Same.
9082         (pointer_equiv_analyzer::leave): Same.
9083         (pointer_equiv_analyzer::get_equiv_expr): Same.
9084         (pta_valueize): Same.
9085         (pointer_equiv_analyzer::visit_stmt): Same.
9086         (pointer_equiv_analyzer::visit_edge): Same.
9087         (hybrid_folder::value_of_expr): Same.
9088         (hybrid_folder::value_on_edge): Same.
9089         * value-pointer-equiv.cc: New file.
9090         * value-pointer-equiv.h: New file.
9092 2021-09-13  Richard Earnshaw  <rearnsha@arm.com>
9094         PR target/102125
9095         * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
9096         memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
9098 2021-09-13  Richard Earnshaw  <rearnsha@arm.com>
9100         PR target/102125
9101         * config/arm/arm.md (movmisaligndi): New define_expand.
9102         * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
9104 2021-09-13  Richard Earnshaw  <rearnsha@arm.com>
9106         PR target/102125
9107         * emit-rtl.c (gen_highpart): Use adjust_address to handle
9108         MEM rather than calling simplify_gen_subreg.
9110 2021-09-13  Jan-Benedict Glaw  <jbglaw@ług-owl.de>
9112         * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
9113         define into a block.
9115 2021-09-13  Richard Biener  <rguenther@suse.de>
9117         * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
9118         * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
9119         change based on DARWIN_PREFER_DWARF not being defined.
9121 2021-09-13  Richard Biener  <rguenther@suse.de>
9123         * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
9124         to inherit from elfos.h
9126 2021-09-13  Richard Biener  <rguenther@suse.de>
9128         * config.gcc: Add cr16-*-* to the list of obsoleted targets.
9130 2021-09-13  Richard Biener  <rguenther@suse.de>
9132         * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
9133         override, pick up DWARF2_DEBUG define from elfos.h
9135 2021-09-13  Richard Biener  <rguenther@suse.de>
9137         * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
9138         DWARF2_DEBUG.
9140 2021-09-13  Richard Biener  <rguenther@suse.de>
9142         * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
9143         DWARF2_DEBUG.
9145 2021-09-13  Richard Biener  <rguenther@suse.de>
9147         * config/i386/cygming.h: Always default to DWARF2 debugging.
9148         Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
9149         already.
9150         * doc/install.texi: Document binutils 2.16 as minimum
9151         requirement for mingw.
9153 2021-09-13  Kewen Lin  <linkw@linux.ibm.com>
9155         * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
9156         nstmts, nloads and extra_ctor_cost.
9157         (rs6000_density_test): Add load density related heuristics.  Do
9158         extra costing on vector construction statements if need.
9159         (rs6000_init_cost): Init new members.
9160         (rs6000_update_target_cost_per_stmt): New function.
9161         (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
9162         rs6000_update_target_cost_per_stmt and call it.
9164 2021-09-13  Kewen Lin  <linkw@linux.ibm.com>
9166         * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
9167         (rs6000_init_cost): Adjust.
9169 2021-09-13  liuhongt  <hongtao.liu@intel.com>
9171         * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
9172         (UNSPEC_XORSIGN): Ditto.
9174 2021-09-12  Roger Sayle  <roger@nextmovesoftware.com>
9176         * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
9177         creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
9178         subreg.
9180 2021-09-11  Aldy Hernandez  <aldyh@redhat.com>
9182         * tree-ssa-threadbackward.c (class back_threader_registry): Use
9183         back_jt_path_registry.
9184         * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
9185         fwd_jt_path_registry.
9186         * tree-ssa-threadedge.h (class jump_threader): Same..
9187         * tree-ssa-threadupdate.c
9188         (jump_thread_path_registry::jump_thread_path_registry): Rename...
9189         (jt_path_registry::jt_path_registry): ...to this.
9190         (jump_thread_path_registry::~jump_thread_path_registry): Rename...
9191         (jt_path_registry::~jt_path_registry): ...this.
9192         (fwd_jt_path_registry::fwd_jt_path_registry): New.
9193         (fwd_jt_path_registry::~fwd_jt_path_registry): New.
9194         (jump_thread_path_registry::allocate_thread_edge): Rename...
9195         (jt_path_registry::allocate_thread_edge): ...to this.
9196         (jump_thread_path_registry::allocate_thread_path): Rename...
9197         (jt_path_registry::allocate_thread_path): ...to this.
9198         (jump_thread_path_registry::lookup_redirection_data): Rename...
9199         (fwd_jt_path_registry::lookup_redirection_data): ...to this.
9200         (jump_thread_path_registry::thread_block_1): Rename...
9201         (fwd_jt_path_registry::thread_block_1): ...to this.
9202         (jump_thread_path_registry::thread_block): Rename...
9203         (fwd_jt_path_registry::thread_block): ...to this.
9204         (jt_path_registry::thread_through_loop_header): Rename...
9205         (fwd_jt_path_registry::thread_through_loop_header): ...to this.
9206         (jump_thread_path_registry::mark_threaded_blocks): Rename...
9207         (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
9208         (jump_thread_path_registry::debug_path): Rename...
9209         (jt_path_registry::debug_path): ...to this.
9210         (jump_thread_path_registry::dump): Rename...
9211         (jt_path_registry::debug): ...to this.
9212         (jump_thread_path_registry::rewire_first_differing_edge): Rename...
9213         (back_jt_path_registry::rewire_first_differing_edge): ...to this.
9214         (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
9215         (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
9216         (jump_thread_path_registry::duplicate_thread_path): Rename...
9217         (back_jt_path_registry::duplicate_thread_path): ...to this.  Also,
9218         drop ill-formed candidates.
9219         (jump_thread_path_registry::remove_jump_threads_including): Rename...
9220         (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
9221         (jt_path_registry::thread_through_all_blocks): New.
9222         (back_jt_path_registry::update_cfg): New.
9223         (fwd_jt_path_registry::update_cfg): New.
9224         (jump_thread_path_registry::register_jump_thread): Rename...
9225         (jt_path_registry::register_jump_thread): ...to this.
9226         * tree-ssa-threadupdate.h (class jump_thread_path_registry):
9227         Abstract to...
9228         (class jt_path_registry): ...here.
9229         (class fwd_jt_path_registry): New.
9230         (class back_jt_path_registry): New.
9232 2021-09-10  liuhongt  <hongtao.liu@intel.com>
9234         Revert:
9235         2021-09-01  liuhongt  <hongtao.liu@intel.com>
9237         * emit-rtl.c (validate_subreg): Get rid of all float-int
9238         special cases.
9240 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
9242         * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
9243         OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
9244         OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
9245         OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
9246         OMP_FAIL_MEMORY_ORDER_MASK enumerators.
9247         (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
9248         * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
9249         dump_gimple_omp_atomic_store): Print [weak] for weak atomic
9250         load/store.
9251         * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
9252         to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
9253         GF_OMP_ATOMIC_WEAK.
9254         (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
9255         functions.
9256         * tree.h (OMP_ATOMIC_WEAK): Define.
9257         * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
9258         fail memory order being encoded in the same enum and also print
9259         fail clause if present.
9260         (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
9261         * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
9262         handle pre_p == NULL case as a test mode that only returns value
9263         but doesn't change gimplify nor change anything otherwise, adjust
9264         recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
9265         and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
9266         __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
9267         than rvalue.
9268         (gimplify_omp_atomic): Adjust goa_stabilize_expr caller.  Handle
9269         COND_EXPR rhs.  Set weak flag on gimple load/store for
9270         OMP_ATOMIC_WEAK.
9271         * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
9272         (omp_memory_order_to_memmodel): Adjust for fail clause encoded
9273         in the same enum.
9274         (expand_omp_atomic_cas): New function.
9275         (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
9276         function.
9277         (expand_omp_atomic): Attempt to optimize atomic compare and exchange
9278         using expand_omp_atomic_cas.
9280 2021-09-10  Aldy Hernandez  <aldyh@redhat.com>
9281             Michael Matz  <matz@suse.de>
9283         * tree-pass.h (PROP_loop_opts_done): New.
9284         * gimple-range-path.cc (path_range_query::internal_range_of_expr):
9285         Intersect with global range.
9286         * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
9287         * tree-ssa-threadbackward.c
9288         (back_threader_profitability::profitable_path_p): Disable
9289         threading through latches until after loop optimizations have run.
9291 2021-09-10  David Faust  <david.faust@oracle.com>
9293         * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
9294         options.
9296 2021-09-10  David Faust  <david.faust@oracle.com>
9298         * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
9299         * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
9300         * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
9301         (bpf_expand_cbranch): New function.
9302         * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
9303         mode.
9304         (zero_extendsidi2): Only use mov32 instruction if it is available.
9305         (SIM mode iterator): Conditionalize support for SI mode.
9306         (JM mode iterator): New.
9307         (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
9308         (*branch_on_di): Update name, use new JM iterator.
9309         * config/bpf/bpf.opt: (mjmpext): New option.
9310         (malu32): Likewise.
9311         (mjmp32): Likewise.
9312         (mcpu): Likewise.
9313         (bpf_isa): New enum.
9315 2021-09-10  David Faust  <david.faust@oracle.com>
9317         * config/bpf/bpf.md (zero_extendhidi2): Add new output template
9318         for register-to-register extensions.
9319         (zero_extendqidi2): Likewise.
9321 2021-09-10  Richard Biener  <rguenther@suse.de>
9323         PR middle-end/102273
9324         * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
9326 2021-09-10  Richard Biener  <rguenther@suse.de>
9328         PR middle-end/102269
9329         * gimplify.c (is_var_need_auto_init): Empty types do not need
9330         initialization.
9332 2021-09-10  Richard Biener  <rguenther@suse.de>
9334         * configure.ac (--with-stabs): Remove.
9335         * configure: Regenerate.
9336         * doc/install.texi: Remove --with-stabs documentation.
9338 2021-09-10  liuhongt  <hongtao.liu@intel.com>
9340         * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
9341         New intrinsic.
9342         (_mm512_mask_cmp_ph_mask): Likewise.
9343         (_mm512_cmp_round_ph_mask): Likewise.
9344         (_mm512_mask_cmp_round_ph_mask): Likewise.
9345         (_mm_cmp_sh_mask): Likewise.
9346         (_mm_mask_cmp_sh_mask): Likewise.
9347         (_mm_cmp_round_sh_mask): Likewise.
9348         (_mm_mask_cmp_round_sh_mask): Likewise.
9349         (_mm_comieq_sh): Likewise.
9350         (_mm_comilt_sh): Likewise.
9351         (_mm_comile_sh): Likewise.
9352         (_mm_comigt_sh): Likewise.
9353         (_mm_comige_sh): Likewise.
9354         (_mm_comineq_sh): Likewise.
9355         (_mm_ucomieq_sh): Likewise.
9356         (_mm_ucomilt_sh): Likewise.
9357         (_mm_ucomile_sh): Likewise.
9358         (_mm_ucomigt_sh): Likewise.
9359         (_mm_ucomige_sh): Likewise.
9360         (_mm_ucomineq_sh): Likewise.
9361         (_mm_comi_round_sh): Likewise.
9362         (_mm_comi_sh): Likewise.
9363         * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
9364         (_mm_mask_cmp_ph_mask): Likewise.
9365         (_mm256_cmp_ph_mask): Likewise.
9366         (_mm256_mask_cmp_ph_mask): Likewise.
9367         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
9368         * config/i386/i386-builtin.def: Add corresponding new builtins.
9369         * config/i386/i386-expand.c
9370         (ix86_expand_args_builtin): Handle new builtin types.
9371         (ix86_expand_round_builtin): Ditto.
9372         * config/i386/i386.md (ssevecmode): Add HF mode.
9373         (MODEFH): New mode iterator.
9374         * config/i386/sse.md
9375         (V48H_AVX512VL): New mode iterator to support HF vector modes.
9376         Ajdust corresponding description.
9377         (ssecmpintprefix): New.
9378         (VI12_AVX512VL): Adjust to support HF vector modes.
9379         (cmp_imm_predicate): Likewise.
9380         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
9381         Likewise.
9382         (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
9383         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
9384         (<sse>_<unord>comi<round_saeonly_name>): Likewise.
9386 2021-09-10  liuhongt  <hongtao.liu@intel.com>
9388         * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
9389         (_mm512_mask_max_ph): Likewise.
9390         (_mm512_maskz_max_ph): Likewise.
9391         (_mm512_min_ph): Likewise.
9392         (_mm512_mask_min_ph): Likewise.
9393         (_mm512_maskz_min_ph): Likewise.
9394         (_mm512_max_round_ph): Likewise.
9395         (_mm512_mask_max_round_ph): Likewise.
9396         (_mm512_maskz_max_round_ph): Likewise.
9397         (_mm512_min_round_ph): Likewise.
9398         (_mm512_mask_min_round_ph): Likewise.
9399         (_mm512_maskz_min_round_ph): Likewise.
9400         (_mm_max_sh): Likewise.
9401         (_mm_mask_max_sh): Likewise.
9402         (_mm_maskz_max_sh): Likewise.
9403         (_mm_min_sh): Likewise.
9404         (_mm_mask_min_sh): Likewise.
9405         (_mm_maskz_min_sh): Likewise.
9406         (_mm_max_round_sh): Likewise.
9407         (_mm_mask_max_round_sh): Likewise.
9408         (_mm_maskz_max_round_sh): Likewise.
9409         (_mm_min_round_sh): Likewise.
9410         (_mm_mask_min_round_sh): Likewise.
9411         (_mm_maskz_min_round_sh): Likewise.
9412         * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
9413         (_mm256_max_ph): Likewise.
9414         (_mm_mask_max_ph): Likewise.
9415         (_mm256_mask_max_ph): Likewise.
9416         (_mm_maskz_max_ph): Likewise.
9417         (_mm256_maskz_max_ph): Likewise.
9418         (_mm_min_ph): Likewise.
9419         (_mm256_min_ph): Likewise.
9420         (_mm_mask_min_ph): Likewise.
9421         (_mm256_mask_min_ph): Likewise.
9422         (_mm_maskz_min_ph): Likewise.
9423         (_mm256_maskz_min_ph): Likewise.
9424         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
9425         * config/i386/i386-builtin.def: Add corresponding new builtins.
9426         * config/i386/i386-expand.c
9427         (ix86_expand_args_builtin): Handle new builtin types.
9428         * config/i386/sse.md
9429         (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
9430         support HF vector modes.
9431         (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
9432         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
9433         Likewise.
9434         (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
9435         Likewise.
9436         * config/i386/subst.md (round_saeonly_mode512bit_condition):
9437         Adjust for HF vector modes.
9439 2021-09-10  Liu, Hongtao  <hongtao.liu@intel.com>
9441         * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
9442         (_mm_mask_add_sh): Likewise.
9443         (_mm_maskz_add_sh): Likewise.
9444         (_mm_sub_sh): Likewise.
9445         (_mm_mask_sub_sh): Likewise.
9446         (_mm_maskz_sub_sh): Likewise.
9447         (_mm_mul_sh): Likewise.
9448         (_mm_mask_mul_sh): Likewise.
9449         (_mm_maskz_mul_sh): Likewise.
9450         (_mm_div_sh): Likewise.
9451         (_mm_mask_div_sh): Likewise.
9452         (_mm_maskz_div_sh): Likewise.
9453         (_mm_add_round_sh): Likewise.
9454         (_mm_mask_add_round_sh): Likewise.
9455         (_mm_maskz_add_round_sh): Likewise.
9456         (_mm_sub_round_sh): Likewise.
9457         (_mm_mask_sub_round_sh): Likewise.
9458         (_mm_maskz_sub_round_sh): Likewise.
9459         (_mm_mul_round_sh): Likewise.
9460         (_mm_mask_mul_round_sh): Likewise.
9461         (_mm_maskz_mul_round_sh): Likewise.
9462         (_mm_div_round_sh): Likewise.
9463         (_mm_mask_div_round_sh): Likewise.
9464         (_mm_maskz_div_round_sh): Likewise.
9465         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
9466         * config/i386/i386-builtin.def: Add corresponding new builtins.
9467         * config/i386/i386-expand.c
9468         (ix86_expand_round_builtin): Handle new builtins.
9469         * config/i386/sse.md (VF_128): Change description.
9470         (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
9471         Adjust to support HF vector modes.
9472         (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
9473         Likewise.
9475 2021-09-10  H.J. Lu  <hjl.tools@gmail.com>
9477         * config/i386/i386-expand.c
9478         (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
9479         * config/i386/i386.c
9480         (ix86_preferred_simd_mode): Handle HF mode.
9481         * config/i386/sse.md (V_256H): New mode iterator.
9482         (avx_vextractf128<mode>): Use it.
9483         (VEC_INIT_MODE): Align vector HFmode condition to vector
9484         HImodes since there're no real HF instruction used.
9485         (VEC_INIT_HALF_MODE): Ditto.
9486         (VIHF): Ditto.
9487         (VIHF_AVX512BW): Ditto.
9488         (*vec_extracthf): Ditto.
9489         (VEC_EXTRACT_MODE): Ditto.
9491 2021-09-10  Richard Biener  <rguenther@suse.de>
9493         PR target/102255
9494         * config/dbx.h: Remove.
9495         * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
9496         * config/lynx.h: Likewise.
9498 2021-09-10  liuhongt  <hongtao.liu@intel.com>
9500         * config/i386/i386-expand.c (ix86_expand_copysign): Expand
9501         right into ANDNOT + AND + IOR, using paradoxical subregs.
9502         (ix86_split_copysign_const): Remove.
9503         (ix86_split_copysign_var): Ditto.
9504         * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
9505         (ix86_split_copysign_var): Ditto.
9506         * config/i386/i386.md (@copysign<mode>3_const): Ditto.
9507         (@copysign<mode>3_var): Ditto.
9509 2021-09-09  qing zhao  <qing.zhao@oracle.com>
9511         * builtins.c (expand_builtin_memset): Make external visible.
9512         * builtins.h (expand_builtin_memset): Declare extern.
9513         * common.opt (ftrivial-auto-var-init=): New option.
9514         * doc/extend.texi: Document the uninitialized attribute.
9515         * doc/invoke.texi: Document -ftrivial-auto-var-init.
9516         * flag-types.h (enum auto_init_type): New enumerated type
9517         auto_init_type.
9518         * gimple-fold.c (clear_padding_type): Add one new parameter.
9519         (clear_padding_union): Likewise.
9520         (clear_padding_emit_loop): Likewise.
9521         (clear_type_padding_in_mask): Likewise.
9522         (gimple_fold_builtin_clear_padding): Handle this new parameter.
9523         * gimplify.c (gimple_add_init_for_auto_var): New function.
9524         (gimple_add_padding_init_for_auto_var): New function.
9525         (is_var_need_auto_init): New function.
9526         (gimplify_decl_expr): Add initialization to automatic variables per
9527         users' requests.
9528         (gimplify_call_expr): Add one new parameter for call to
9529         __builtin_clear_padding.
9530         (gimplify_init_constructor): Add padding initialization in the end.
9531         * internal-fn.c (INIT_PATTERN_VALUE): New macro.
9532         (expand_DEFERRED_INIT): New function.
9533         * internal-fn.def (DEFERRED_INIT): New internal function.
9534         * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
9535         * tree-sra.c (generate_subtree_deferred_init): New function.
9536         (scan_function): Avoid setting cannot_scalarize_away_bitmap for
9537         calls to .DEFERRED_INIT.
9538         (sra_modify_deferred_init): New function.
9539         (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
9540         * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
9541         * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
9542         specially.
9543         (check_defs): Likewise.
9544         (warn_uninitialized_vars): Likewise.
9545         * tree-ssa.c (ssa_undefined_value_p): Likewise.
9546         * tree.c (build_common_builtin_nodes): Build tree node for
9547         BUILT_IN_CLEAR_PADDING when needed.
9549 2021-09-09  Richard Biener  <rguenther@suse.de>
9551         * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
9552         into all subloops.
9554 2021-09-09  Richard Biener  <rguenther@suse.de>
9556         * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
9557         DOM walk from get_loop_body_in_dom_order using a worklist
9558         approach.
9560 2021-09-09  liuhongt  <hongtao.liu@intel.com>
9562         * config.gcc: Add avx512fp16vlintrin.h.
9563         * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
9564         (_mm512_mask_add_ph): Likewise.
9565         (_mm512_maskz_add_ph): Likewise.
9566         (_mm512_sub_ph): Likewise.
9567         (_mm512_mask_sub_ph): Likewise.
9568         (_mm512_maskz_sub_ph): Likewise.
9569         (_mm512_mul_ph): Likewise.
9570         (_mm512_mask_mul_ph): Likewise.
9571         (_mm512_maskz_mul_ph): Likewise.
9572         (_mm512_div_ph): Likewise.
9573         (_mm512_mask_div_ph): Likewise.
9574         (_mm512_maskz_div_ph): Likewise.
9575         (_mm512_add_round_ph): Likewise.
9576         (_mm512_mask_add_round_ph): Likewise.
9577         (_mm512_maskz_add_round_ph): Likewise.
9578         (_mm512_sub_round_ph): Likewise.
9579         (_mm512_mask_sub_round_ph): Likewise.
9580         (_mm512_maskz_sub_round_ph): Likewise.
9581         (_mm512_mul_round_ph): Likewise.
9582         (_mm512_mask_mul_round_ph): Likewise.
9583         (_mm512_maskz_mul_round_ph): Likewise.
9584         (_mm512_div_round_ph): Likewise.
9585         (_mm512_mask_div_round_ph): Likewise.
9586         (_mm512_maskz_div_round_ph): Likewise.
9587         * config/i386/avx512fp16vlintrin.h: New header.
9588         * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
9589         Add new builtin types.
9590         * config/i386/i386-builtin.def: Add corresponding builtins.
9591         * config/i386/i386-expand.c
9592         (ix86_expand_args_builtin): Handle new builtin types.
9593         (ix86_expand_round_builtin): Likewise.
9594         * config/i386/immintrin.h: Include avx512fp16vlintrin.h
9595         * config/i386/sse.md (VFH): New mode_iterator.
9596         (VF2H): Likewise.
9597         (avx512fmaskmode): Add HF vector modes.
9598         (avx512fmaskhalfmode): Likewise.
9599         (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
9600         HF vector modes.
9601         (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
9602         (mul<mode>3<mask_name><round_name>): Likewise.
9603         (*mul<mode>3<mask_name><round_name>): Likewise.
9604         (div<mode>3): Likewise.
9605         (<sse>_div<mode>3<mask_name><round_name>): Likewise.
9606         * config/i386/subst.md (SUBST_V): Add HF vector modes.
9607         (SUBST_A): Likewise.
9608         (round_mode512bit_condition): Adjust for V32HFmode.
9610 2021-09-09  liuhongt  <hongtao.liu@intel.com>
9612         PR target/101059
9613         * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
9614         (reduc_plus_scal_v4sf): .. this, New define_expand.
9615         (reduc_plus_scal_v2df): .. and this, New define_expand.
9617 2021-09-09  liuhongt  <hongtao.liu@intel.com>
9619         PR target/91103
9620         * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
9621         New define_insn.
9623 2021-09-08  Jonathan Wakely  <jwakely@redhat.com>
9625         PR c++/60318
9626         * doc/trouble.texi (Copy Assignment): Fix description of
9627         behaviour and fix code in example.
9629 2021-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
9631         PR target/102107
9632         * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
9633         r11 instead of r12 for restoring CR.
9635 2021-09-08  Jakub Jelinek  <jakub@redhat.com>
9636             liuhongt  <hongtao.liu@intel.com>
9638         PR target/89984
9639         * config/i386/i386.md (@xorsign<mode>3_1): Remove.
9640         * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
9641         into AND with mask and XOR, using paradoxical subregs.
9642         (ix86_split_xorsign): Remove.
9643         * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
9645 2021-09-08  Di Zhao  <dizhao@os.amperecomputing.com>
9647         * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
9649 2021-09-08  Jakub Jelinek  <jakub@redhat.com>
9651         PR target/102224
9652         * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
9653         operands[2], emit abs<mode>2 instead.
9654         (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
9655         first alternative even for avx, add another alternative with
9656         =&Yv <- 0, Yv, Yvm constraints.
9657         * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
9658         to op1, emit vpandn instead.
9660 2021-09-08  liuhongt  <hongtao.liu@intel.com>
9662         * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
9663         (_mm256_set_ph): Likewise.
9664         (_mm512_set_ph): Likewise.
9665         (_mm_setr_ph): Likewise.
9666         (_mm256_setr_ph): Likewise.
9667         (_mm512_setr_ph): Likewise.
9668         (_mm_set1_ph): Likewise.
9669         (_mm256_set1_ph): Likewise.
9670         (_mm512_set1_ph): Likewise.
9671         (_mm_setzero_ph): Likewise.
9672         (_mm256_setzero_ph): Likewise.
9673         (_mm512_setzero_ph): Likewise.
9674         (_mm_set_sh): Likewise.
9675         (_mm_load_sh): Likewise.
9676         (_mm_store_sh): Likewise.
9677         * config/i386/i386-builtin-types.def (V8HF): New type.
9678         (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
9679         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
9680         Support vector HFmodes.
9681         (ix86_expand_vector_init_one_nonzero): Likewise.
9682         (ix86_expand_vector_init_one_var): Likewise.
9683         (ix86_expand_vector_init_interleave): Likewise.
9684         (ix86_expand_vector_init_general): Likewise.
9685         (ix86_expand_vector_set): Likewise.
9686         (ix86_expand_vector_extract): Likewise.
9687         (ix86_expand_vector_init_concat): Likewise.
9688         (ix86_expand_sse_movcc): Handle vector HFmodes.
9689         (ix86_expand_vector_set_var): Ditto.
9690         * config/i386/i386-modes.def: Add HF vector modes in comment.
9691         * config/i386/i386.c (classify_argument): Add HF vector modes.
9692         (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
9693         (ix86_vector_mode_supported_p): Likewise.
9694         (ix86_set_reg_reg_cost): Handle vector HFmode.
9695         (ix86_get_ssemov): Handle vector HFmode.
9696         (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
9697         by stack.
9698         (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
9699         mode.
9700         (function_arg_advance_32): Ditto.
9701         * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
9702         (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
9703         (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
9704         (VALID_SSE2_REG_VHF_MODE): New.
9705         (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
9706         (SSE_REG_MODE_P): Add vector HFmode.
9707         * config/i386/i386.md (mode): Add HF vector modes.
9708         (MODE_SIZE): Likewise.
9709         (ssemodesuffix): Add ph suffix for HF vector modes.
9710         * config/i386/sse.md (VFH_128): New mode iterator.
9711         (VMOVE): Adjust for HF vector modes.
9712         (V): Likewise.
9713         (V_256_512): Likewise.
9714         (avx512): Likewise.
9715         (avx512fmaskmode): Likewise.
9716         (shuffletype): Likewise.
9717         (sseinsnmode): Likewise.
9718         (ssedoublevecmode): Likewise.
9719         (ssehalfvecmode): Likewise.
9720         (ssehalfvecmodelower): Likewise.
9721         (ssePScmode): Likewise.
9722         (ssescalarmode): Likewise.
9723         (ssescalarmodelower): Likewise.
9724         (sseintprefix): Likewise.
9725         (i128): Likewise.
9726         (bcstscalarsuff): Likewise.
9727         (xtg_mode): Likewise.
9728         (VI12HF_AVX512VL): New mode_iterator.
9729         (VF_AVX512FP16): Likewise.
9730         (VIHF): Likewise.
9731         (VIHF_256): Likewise.
9732         (VIHF_AVX512BW): Likewise.
9733         (V16_256): Likewise.
9734         (V32_512): Likewise.
9735         (sseintmodesuffix): New mode_attr.
9736         (sse): Add scalar and vector HFmodes.
9737         (ssescalarmode): Add vector HFmode mapping.
9738         (ssescalarmodesuffix): Add sh suffix for HFmode.
9739         (*<sse>_vm<insn><mode>3): Use VFH_128.
9740         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
9741         (*ieee_<ieee_maxmin><mode>3): Likewise.
9742         (<avx512>_blendm<mode>): New define_insn.
9743         (vec_setv8hf): New define_expand.
9744         (vec_set<mode>_0): New define_insn for HF vector set.
9745         (*avx512fp16_movsh): Likewise.
9746         (avx512fp16_movsh): Likewise.
9747         (vec_extract_lo_v32hi): Rename to ...
9748         (vec_extract_lo_<mode>): ... this, and adjust to allow HF
9749         vector modes.
9750         (vec_extract_hi_v32hi): Likewise.
9751         (vec_extract_hi_<mode>): Likewise.
9752         (vec_extract_lo_v16hi): Likewise.
9753         (vec_extract_lo_<mode>): Likewise.
9754         (vec_extract_hi_v16hi): Likewise.
9755         (vec_extract_hi_<mode>): Likewise.
9756         (vec_set_hi_v16hi): Likewise.
9757         (vec_set_hi_<mode>): Likewise.
9758         (vec_set_lo_v16hi): Likewise.
9759         (vec_set_lo_<mode>): Likewise.
9760         (*vec_extract<mode>_0): New define_insn_and_split for HF
9761         vector extract.
9762         (*vec_extracthf): New define_insn.
9763         (VEC_EXTRACT_MODE): Add HF vector modes.
9764         (PINSR_MODE): Add V8HF.
9765         (sse2p4_1): Likewise.
9766         (pinsr_evex_isa): Likewise.
9767         (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
9768         insert for V8HFmode.
9769         (pbroadcast_evex_isa): Add HF vector modes.
9770         (AVX2_VEC_DUP_MODE): Likewise.
9771         (VEC_INIT_MODE): Likewise.
9772         (VEC_INIT_HALF_MODE): Likewise.
9773         (avx2_pbroadcast<mode>): Adjust to support HF vector mode
9774         broadcast.
9775         (avx2_pbroadcast<mode>_1): Likewise.
9776         (<avx512>_vec_dup<mode>_1): Likewise.
9777         (<avx512>_vec_dup<mode><mask_name>): Likewise.
9778         (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
9779         Likewise.
9781 2021-09-08  Guo, Xuepeng  <xuepeng.guo@intel.com>
9782             H.J. Lu  <hongjiu.lu@intel.com>
9783             Liu Hongtao  <hongtao.liu@intel.com>
9784             Wang Hongyu  <hongyu.wang@intel.com>
9785             Xu Dianhong  <dianhong.xu@intel.com>
9787         * common/config/i386/cpuinfo.h (get_available_features):
9788         Detect FEATURE_AVX512FP16.
9789         * common/config/i386/i386-common.c
9790         (OPTION_MASK_ISA_AVX512FP16_SET,
9791         OPTION_MASK_ISA_AVX512FP16_UNSET,
9792         OPTION_MASK_ISA2_AVX512FP16_SET,
9793         OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
9794         (OPTION_MASK_ISA2_AVX512BW_UNSET,
9795         OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
9796         (ix86_handle_option): Handle -mavx512fp16.
9797         * common/config/i386/i386-cpuinfo.h (enum processor_features):
9798         Add FEATURE_AVX512FP16.
9799         * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
9800         * config.gcc: Add avx512fp16intrin.h.
9801         * config/i386/avx512fp16intrin.h: New intrinsic header.
9802         * config/i386/cpuid.h: Add bit_AVX512FP16.
9803         * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
9804         * config/i386/i386-builtins.c: Support _Float16 type for i386
9805         backend.
9806         (ix86_register_float16_builtin_type): New function.
9807         (ix86_float16_type_node): New.
9808         * config/i386/i386-c.c (ix86_target_macros_internal): Define
9809         __AVX512FP16__.
9810         * config/i386/i386-expand.c (ix86_expand_branch): Support
9811         HFmode.
9812         (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
9813         SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
9814         (ix86_expand_fp_movcc): Ditto.
9815         * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
9816         * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
9817         (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
9818         * config/i386/i386.c (ix86_get_ssemov): Use
9819         vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
9820         (ix86_get_excess_precision): Use
9821         FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
9822         existed.
9823         (sse_store_index): Use SFmode cost for HFmode cost.
9824         (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
9825         GPR cost for HFmode.
9826         (ix86_hard_regno_mode_ok): Allow HImode in sse register.
9827         (ix86_mangle_type): Add manlging for _Float16 type.
9828         (inline_secondary_memory_needed): No memory is needed for
9829         16bit movement between gpr and sse reg under
9830         TARGET_AVX512FP16.
9831         (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
9832         SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
9833         (ix86_division_cost): Ditto.
9834         (ix86_rtx_costs): Ditto.
9835         (ix86_add_stmt_cost): Ditto.
9836         (ix86_optab_supported_p): Ditto.
9837         * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
9838         (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
9839         (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
9840         * config/i386/i386.md (mode): Add HFmode.
9841         (MODE_SIZE): Add HFmode.
9842         (isa): Add avx512fp16.
9843         (enabled): Handle avx512fp16.
9844         (ssemodesuffix): Add sh suffix for HFmode.
9845         (comm): Add mult, div.
9846         (plusminusmultdiv): New code iterator.
9847         (insn): Add mult, div.
9848         (*movhf_internal): Adjust for avx512fp16 instruction.
9849         (*movhi_internal): Ditto.
9850         (*cmpi<unord>hf): New define_insn for HFmode.
9851         (*ieee_s<ieee_maxmin>hf3): Likewise.
9852         (extendhf<mode>2): Likewise.
9853         (trunc<mode>hf2): Likewise.
9854         (float<floatunssuffix><mode>hf2): Likewise.
9855         (*<insn>hf): Likewise.
9856         (cbranchhf4): New expander.
9857         (movhfcc): Likewise.
9858         (<insn>hf3): Likewise.
9859         (mulhf3): Likewise.
9860         (divhf3): Likewise.
9861         * config/i386/i386.opt: Add mavx512fp16.
9862         * config/i386/immintrin.h: Include avx512fp16intrin.h.
9863         * doc/invoke.texi: Add mavx512fp16.
9864         * doc/extend.texi: Add avx512fp16 Usage Notes.
9866 2021-09-08  liuhongt  <hongtao.liu@intel.com>
9868         * common.opt: Support -fexcess-precision=16.
9869         * config/aarch64/aarch64.c (aarch64_excess_precision): Return
9870         FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
9871         EXCESS_PRECISION_TYPE_FLOAT16.
9872         * config/arm/arm.c (arm_excess_precision): Ditto.
9873         * config/i386/i386.c (ix86_get_excess_precision): Ditto.
9874         * config/m68k/m68k.c (m68k_excess_precision): Issue an error
9875         when EXCESS_PRECISION_TYPE_FLOAT16.
9876         * config/s390/s390.c (s390_excess_precision): Ditto.
9877         * coretypes.h (enum excess_precision_type): Add
9878         EXCESS_PRECISION_TYPE_FLOAT16.
9879         * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
9880         * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
9881         * doc/extend.texi (Half-Precision): Document
9882         -fexcess-precision=16.
9883         * flag-types.h (enum excess_precision): Add
9884         EXCESS_PRECISION_FLOAT16.
9885         * target.def (excess_precision): Update document.
9886         * tree.c (excess_precision_type): Set excess_precision_type to
9887         EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
9889 2021-09-08  liuhongt  <hongtao.liu@intel.com>
9891         * doc/extend.texi: (@node Floating Types): Adjust the wording.
9892         (@node Half-Precision): Ditto.
9894 2021-09-07  Takayuki 'January June' Suwa  <jjsuwa_sys3175@yahoo.co.jp>
9896         PR target/102115
9897         * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
9898         'CONST_INT_P (src)' to the condition of the block that tries to
9899         eliminate literal when loading integer contant.
9901 2021-09-07  David Faust  <david.faust@oracle.com>
9903         * doc/extend.texi (BPF Type Attributes) New node.
9904         Document new preserve_access_index attribute.
9905         Document new preserve_access_index builtin.
9906         * doc/invoke.texi: Document -mco-re and -mno-co-re options.
9908 2021-09-07  David Faust  <david.faust@oracle.com>
9910         * config/bpf/bpf.c: Adjust includes.
9911         (bpf_handle_preserve_access_index_attribute): New function.
9912         (bpf_attribute_table): Use it here.
9913         (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
9914         (bpf_option_override): Handle "-mco-re" option.
9915         (bpf_asm_init_sections): New.
9916         (TARGET_ASM_INIT_SECTIONS): Redefine.
9917         (bpf_file_end): New.
9918         (TARGET_ASM_FILE_END): Redefine.
9919         (bpf_init_builtins): Add "__builtin_preserve_access_index".
9920         (bpf_core_compute, bpf_core_get_index): New.
9921         (is_attr_preserve_access): New.
9922         (bpf_expand_builtin): Handle new builtins.
9923         (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
9924         (bpf_core_walk): New.
9925         (bpf_resolve_overloaded_builtin): New.
9926         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
9927         (handle_attr): New.
9928         (pass_bpf_core_attr): New RTL pass.
9929         * config/bpf/bpf-passes.def: New file.
9930         * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
9931         * config/bpf/coreout.c: New file.
9932         * config/bpf/coreout.h: Likewise.
9933         * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
9934         (coreout.o): New rule.
9935         (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
9936         * config.gcc (bpf): Add coreout.h to extra_headers.
9937         Add coreout.o to extra_objs.
9938         Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
9940 2021-09-07  David Faust  <david.faust@oracle.com>
9942         * btfout.c (get_btf_id): Function is no longer static.
9943         * ctfc.h: Expose it here.
9945 2021-09-07  David Faust  <david.faust@oracle.com>
9947         * ctfc.c (ctf_lookup_tree_type): New function.
9948         * ctfc.h: Likewise.
9950 2021-09-07  David Faust  <david.faust@oracle.com>
9952         * ctfc.c (ctf_dtd_lookup): Function is no longer static.
9953         * ctfc.h: Analogous change.
9955 2021-09-07  David Faust  <david.faust@oracle.com>
9957         * dwarf2out.c (lookup_type_die): Function is no longer static.
9958         * dwarf2out.h: Expose it here.
9960 2021-09-07  Indu Bhagat  <indu.bhagat@oracle.com>
9962         * dwarf2ctf.c (ctf_debug_finalize): Make it static.
9963         (ctf_debug_early_finish): New definition.
9964         (ctf_debug_finish): Likewise.
9965         * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
9966         (ctf_debug_early_finish): New declaration.
9967         (ctf_debug_finish): Likewise.
9968         * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
9969         (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
9971 2021-09-07  Indu Bhagat  <indu.bhagat@oracle.com>
9973         * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
9974         support when compiling for CO-RE.
9975         * config/bpf/bpf.opt: Add new command line option -mco-re.
9977 2021-09-07  Indu Bhagat  <indu.bhagat@oracle.com>
9979         * flag-types.h (enum debug_info_type): Add new enum
9980         DINFO_TYPE_BTF_WITH_CORE.
9981         (BTF_WITH_CORE_DEBUG): New bitmask.
9982         * flags.h (btf_with_core_debuginfo_p): New declaration.
9983         * opts.c (btf_with_core_debuginfo_p): New definition.
9985 2021-09-07  Jason Merrill  <jason@redhat.com>
9987         * tree.h (error_operand_p): Change to inline function.
9989 2021-09-07  Aldy Hernandez  <aldyh@redhat.com>
9991         * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
9992         (empty_block_with_phis_p): ...this.
9993         (potentially_threadable_block): Same.
9994         (jump_threader::thread_through_normal_block): Same.
9996 2021-09-07  Eric Botcazou  <ebotcazou@adacore.com>
9998         PR debug/101947
9999         * dwarf2out.c (mark_base_types): New overloaded function.
10000         (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
10001         as the compilation unit, and call move_marked_base_types afterward.
10003 2021-09-07  H.J. Lu  <hjl.tools@gmail.com>
10005         PR target/85819
10006         * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
10007         Enable FMA.
10008         (ix86_expand_vector_convert_uns_vsivsf): Likewise.
10010 2021-09-07  Richard Biener  <rguenther@suse.de>
10012         PR tree-optimization/102226
10013         * tree-vect-loop.c (vect_transform_cycle_phi): Record
10014         the converted value for the epilogue PHI use.
10016 2021-09-07  Martin Liska  <mliska@suse.cz>
10018         PR gcov-profile/80223
10019         * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
10020         options, do not inline when no_profile_instrument_function
10021         attributes are different in early inliner. It's fine to inline
10022         it after PGO instrumentation.
10024 2021-09-07  Richard Biener  <rguenther@suse.de>
10026         PR tree-optimization/101555
10027         * tree-ssa-pre.c (translate_vuse_through_block): Do not
10028         perform an alias walk to determine the validity of the
10029         mem at the start of the block which is already guaranteed
10030         by means of prune_clobbered_mems.
10031         (phi_translate_1): Pass edge to translate_vuse_through_block.
10033 2021-09-07  Xionghu Luo  <luoxhu@linux.ibm.com>
10035         PR target/97142
10036         * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
10037         (remainder<mode>3): Likewise.
10039 2021-09-07  YunQiang Su  <yunqiang.su@cipunited.com>
10041         * config/mips/mips.c (mips_file_start): add .module for
10042           arch and ase.
10044 2021-09-06  Roger Sayle  <roger@nextmovesoftware.com>
10046         * wide-int.cc (wi::clz): Reorder tests to ensure the result
10047         is zero for all negative values.
10049 2021-09-06  Tobias Burnus  <tobias@codesourcery.com>
10051         * doc/invoke.texi (-foffload-options): Fix @opindex.
10053 2021-09-06  H.J. Lu  <hjl.tools@gmail.com>
10055         PR target/89984
10056         * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
10057         * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
10058         source alternative for AVX.
10060 2021-09-06  liuhongt  <hongtao.liu@intel.com>
10062         PR middle-end/102182
10063         * optabs.c (expand_fix): Add from1 to avoid from being
10064         overwritten.
10066 2021-09-06  Eric Botcazou  <ebotcazou@adacore.com>
10068         * dwarf2out.c (modified_type_die): Deal with all array types earlier
10069         and use local variable consistently throughout the function.
10071 2021-09-06  Jakub Jelinek  <jakub@redhat.com>
10073         PR tree-optimization/102207
10074         * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
10075         were promoted from signed to wider unsigned type.
10077 2021-09-06  Andrew Pinski  <apinski@marvell.com>
10079         PR tree-optimization/63184
10080         * match.pd: Add simplification of pointer_diff of two pointer_plus
10081         with addr_expr in the first operand of each pointer_plus.
10082         Add simplificatoin of ne/eq of two pointer_plus with addr_expr
10083         in the first operand of each pointer_plus.
10085 2021-09-06  Richard Biener  <rguenther@suse.de>
10087         PR tree-optimization/102176
10088         * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
10089         New function.
10090         (vect_bb_slp_scalar_cost): Use the computed set of
10091         vectorized scalar stmts instead of relying on the out-of-date
10092         and not accurate PURE_SLP_STMT.
10093         (vect_bb_vectorization_profitable_p): Compute the set
10094         of vectorized scalar stmts.
10096 2021-09-05  Aldy Hernandez  <aldyh@redhat.com>
10098         * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
10099         GIMPLE_COND special casing.
10100         (path_range_query::range_defined_in_block): Use range_of_stmt
10101         instead of calling fold_range directly.
10103 2021-09-05  Aldy Hernandez  <aldyh@redhat.com>
10105         * gimple-range-path.cc (path_range_query::range_of_expr): Set
10106         m_undefined_path when appropriate.
10107         (path_range_query::internal_range_of_expr): Copy from range_of_expr.
10108         (path_range_query::unreachable_path_p): New.
10109         (path_range_query::precompute_ranges): Set m_undefined_path.
10110         * gimple-range-path.h (path_range_query::unreachable_path_p): New.
10111         (path_range_query::internal_range_of_expr): New.
10112         * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
10113         Use unreachable_path_p.
10115 2021-09-05  Aldy Hernandez  <aldyh@redhat.com>
10117         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
10118         Remove argument and call find_taken_edge.
10119         (back_threader::resolve_phi): Do not calculate taken edge before
10120         calling maybe_register_path.
10121         (back_threader::find_paths_to_names): Same.
10123 2021-09-05  Jeff Law  <jlaw@localhost.localdomain>
10125         * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
10126         * config/h8300/testcompare.md (store_c): Update name, use new
10127         QHSI2 iterator.
10128         (store_neg_c, store_shifted_c): New patterns.
10130 2021-09-03  Segher Boessenkool  <segher@kernel.crashing.org>
10132         PR target/102107
10133         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
10134         instead of r12 for CR save, in all cases.
10136 2021-09-03  Andrew Pinski  <apinski@marvell.com>
10138         * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
10139         Handle error_mark_node as the type of the type_decl.
10141 2021-09-03  Andrew Pinski  <apinski@marvell.com>
10143         * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
10144         Mark with GTY.
10145         (aarch64_simd_types): Likewise.
10146         (aarch64_simd_intOI_type_node): Likewise.
10147         (aarch64_simd_intCI_type_node): Likewise.
10148         (aarch64_simd_intXI_type_node): Likewise.
10149         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
10150         (aarch64_fp16_ptr_type_node): Likewise.
10151         (aarch64_bf16_type_node): Likewise.
10152         (aarch64_bf16_ptr_type_node): Likewise.
10154 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10156         * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
10157         out to...
10158         (minus_op1_op2_relation_effect): ...here.
10159         (class operator_pointer_diff): New.
10160         (operator_pointer_diff::op1_op2_relation_effect): Call
10161         minus_op1_op2_relation_effect.
10162         (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
10164 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10166         * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
10167         Add may_peel_loop_headers.
10168         (back_threader_registry::thread_through_all_blocks): Same.
10169         (try_thread_blocks): Pass may_peel_loop_headers argument.
10170         (pass_early_thread_jumps::execute): Same.
10172 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10174         * tree-ssa-threadedge.c (has_phis_p): New.
10175         (forwarder_block_p): New.
10176         (potentially_threadable_block): Call forwarder_block_p.
10177         (jump_threader::thread_around_empty_blocks): Call has_phis_p.
10178         (jump_threader::thread_through_normal_block): Call
10179         forwarder_block_p.
10181 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10183         * tree-ssa-threadbackward.c (back_threader::dump): New.
10184         (back_threader::debug): New.
10185         (back_threader_profitability::profitable_path_p): Dump blocks
10186         even if we are bailing early.
10188 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10190         * tree-ssa-threadupdate.c (cancel_thread): New.
10191         (jump_thread_path_registry::thread_block_1): Use cancel_thread.
10192         (jump_thread_path_registry::mark_threaded_blocks): Same.
10193         (jump_thread_path_registry::register_jump_thread): Same.
10195 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10197         * tree-ssa-threadedge.c (jt_state::push): Only call methods for
10198         which objects are available.
10199         (jt_state::pop): Same.
10200         (jt_state::register_equiv): Same.
10201         (jt_state::register_equivs_on_edge): Same.
10203 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10205         * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
10206         Move pop until after a thread is registered.
10208 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10210         * tree-ssa-threadupdate.c (debug): New.
10212 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10214         * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
10215         (push_dump_file::~push_dump_file): New.
10216         (dump_ranger): Change dump_file temporarily while dumping
10217         ranger.
10218         * gimple-range-trace.h (class push_dump_file): New.
10220 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10222         * gimple-range-trace.cc (debug_seed_ranger): Remove static.
10223         (dump_ranger): Dump function name.
10225 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10227         * gimple-range-path.cc (path_range_query::range_defined_in_block):
10228         Adjust for non-null.
10229         (path_range_query::adjust_for_non_null_uses): New.
10230         (path_range_query::precompute_ranges): Call
10231         adjust_for_non_null_uses.
10232         * gimple-range-path.h: Add m_non_null and
10233         adjust_for_non_null_uses.
10235 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10237         * gimple-range-path.cc (path_range_query::dump): Dump path
10238         length.
10239         (path_range_query::precompute_ranges): Dump entire path.
10241 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10243         * value-relation.cc (relation_oracle::debug): New.
10244         * value-relation.h (relation_oracle::debug): New.
10246 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10248         * tree-ssa-loop-ch.c: Remove unnecessary include file.
10250 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10252         * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
10253         Skip statements with no defining BB.
10254         * gimple-range-path.cc (path_range_query::range_defined_in_block):
10255         Do not get confused by statements with no defining BB.
10257 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
10259         * gimple-range-fold.cc (adjust_imagpart_expr): Move from
10260         gimple_range_adjustment.  Add support for constants.
10261         (adjust_realpart_expr): New.
10262         (gimple_range_adjustment): Move IMAGPART_EXPR code to
10263         adjust_imagpart_expr.
10264         * range-op.cc (integral_table::integral_table): Add entry for
10265         REALPART_CST.
10267 2021-09-03  Jakub Jelinek  <jakub@redhat.com>
10269         * omp-expand.c (expand_omp_atomic_pipeline): Use
10270         IFN_ATOMIC_COMPARE_EXCHANGE instead of
10271         BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
10272         can be provided.
10274 2021-09-03  Jakub Jelinek  <jakub@redhat.com>
10276         PR target/102024
10277         * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
10278         that is false if DECL_BIT_FIELD.
10279         (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
10280         SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
10281         * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
10282         DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
10283         of DECL_FIELD_ABI_IGNORED.
10284         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
10285         SET_DECL_FIELD_ABI_IGNORED instead of writing to
10286         DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
10287         SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
10288         * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
10289         DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
10291 2021-09-03  liuhongt  <hongtao.liu@intel.com>
10293         PR target/102166
10294         * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
10295         * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
10296         * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
10298 2021-09-02  Martin Sebor  <msebor@redhat.com>
10300         PR tree-optimization/17506
10301         PR testsuite/37182
10302         * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
10304 2021-09-02  Richard Biener  <rguenther@suse.de>
10306         * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
10307         fix for PR78185 and continue processing when leaving
10308         finite inner loops.
10310 2021-09-02  Jakub Jelinek  <jakub@redhat.com>
10312         PR tree-optimization/99591
10313         * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
10314         were promoted.
10316 2021-09-02  Richard Biener  <rguenther@suse.de>
10318         Revert:
10319         2021-09-02  Richard Biener  <rguenther@suse.de>
10321         PR tree-optimization/102155
10322         * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
10323         over a part of the RPO array and do not recurse here.
10324         Dump blocks marked as always executed.
10325         (fill_always_executed_in): Walk over the RPO array and
10326         process loops whose header we run into.
10327         (loop_invariant_motion_in_fun): Compute the first RPO
10328         using rev_post_order_and_mark_dfs_back_seme in iteration
10329         order and pass that to fill_always_executed_in.
10331 2021-09-02  liuhongt  <hongtao.liu@intel.com>
10333         * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
10334         * config/i386/i386.c (enum x86_64_reg_class): Add
10335         X86_64_SSEHF_CLASS.
10336         (merge_classes): Handle X86_64_SSEHF_CLASS.
10337         (examine_argument): Ditto.
10338         (construct_container): Ditto.
10339         (classify_argument): Ditto, and set HFmode/HCmode to
10340         X86_64_SSEHF_CLASS.
10341         (function_value_32): Return _FLoat16/Complex Float16 by
10342         %xmm0.
10343         (function_value_64): Return _Float16/Complex Float16 by SSE
10344         register.
10345         (ix86_print_operand): Handle CONST_DOUBLE HFmode.
10346         (ix86_secondary_reload): Require gpr as intermediate register
10347         to store _Float16 from sse register when sse4 is not
10348         available.
10349         (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
10350         sse2.
10351         (ix86_scalar_mode_supported_p): Ditto.
10352         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
10353         * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
10354         (VALID_INT_MODE_P): Add HFmode and HCmode.
10355         * config/i386/i386.md (*pushhf_rex64): New define_insn.
10356         (*pushhf): Ditto.
10357         (*movhf_internal): Ditto.
10358         * doc/extend.texi (Half-Precision Floating Point): Documemt
10359         _Float16 for x86.
10361 2021-09-02  Richard Biener  <rguenther@suse.de>
10363         PR tree-optimization/102155
10364         * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
10365         over a part of the RPO array and do not recurse here.
10366         Dump blocks marked as always executed.
10367         (fill_always_executed_in): Walk over the RPO array and
10368         process loops whose header we run into.
10369         (loop_invariant_motion_in_fun): Compute the first RPO
10370         using rev_post_order_and_mark_dfs_back_seme in iteration
10371         order and pass that to fill_always_executed_in.
10373 2021-09-02  YunQiang Su  <syq@debian.org>
10375         Revert:
10376         2021-08-31  YunQiang Su  <yunqiang.su@cipunited.com>
10378         * config/mips/mips.c (mips_module_isa_name): New.
10379           mips_file_start: add .module mipsREV to all asm output
10381 2021-09-01  Jeff Law  <jlaw@localhost.localdomain>
10383         PR tree-optimization/102152
10384         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
10385         comparison to a scalar comparison before calling
10386         update_stmt_if_modified.
10388 2021-09-01  Andrew Pinski  <apinski@marvell.com>
10390         PR target/101934
10391         * config/aarch64/aarch64.c (aarch64_expand_setmem):
10392         Check STRICT_ALIGNMENT before creating an overlapping
10393         store.
10395 2021-09-01  Martin Sebor  <msebor@redhat.com>
10397         * gimple-ssa-warn-access.cc (get_size_range): Add argument.
10398         (check_access): Pass additional argument.
10399         (check_memop_access): Remove template and make a member function.
10400         (maybe_check_dealloc_call): Make a pass_waccess member function.
10401         (class pass_waccess): Add, rename, and remove members.
10402         (pass_waccess::pass_waccess): Adjust to name change.
10403         (pass_waccess::~pass_waccess): Same.
10404         (check_alloca): Make a member function.
10405         (check_alloc_size_call): Same.
10406         (check_strcat): Same.
10407         (check_strncat): Same.
10408         (check_stxcpy): Same.
10409         (check_stxncpy): Same.
10410         (check_strncmp): Same.
10411         (maybe_warn_rdwr_sizes): Rename...
10412         (pass_waccess::maybe_check_access_sizes): ...to this.
10413         (pass_waccess::check_call): Adjust to name changes.
10414         (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
10415         function.
10416         (pass_waccess::execute): Adjust to name changes.
10417         * gimple-ssa-warn-access.h (check_memop_access): Remove.
10418         * pointer-query.cc (access_ref::phi): Handle null pointer.
10419         (access_ref::inform_access): Same.
10420         (pointer_query::put_ref): Modify a cached value, not a copy of it.
10421         (pointer_query::dump): New function.
10422         (compute_objsize_r): Avoid overwriting access_ref::bndrng.  Cache
10423         more results.
10424         * pointer-query.h (pointer_query::dump): Declare.
10425         * tree-ssa-strlen.c (get_range): Simplify.  Use function query.
10426         (dump_strlen_info): Use function query.
10427         (printf_strlen_execute): Factor code out into pointer_query::put_ref.
10429 2021-09-01  Thomas Schwinge  <thomas@codesourcery.com>
10431         * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
10433 2021-09-01  Iain Sandoe  <iain@sandoe.co.uk>
10435         * doc/extend.texi: Document unavailable attribute.
10436         * print-tree.c (print_node): Handle unavailable attribute.
10437         * tree-core.h (struct tree_base): Add a bit to carry unavailability.
10438         * tree.c (error_unavailable_use): New.
10439         * tree.h (TREE_UNAVAILABLE): New.
10440         (error_unavailable_use): New.
10442 2021-09-01  Jakub Jelinek  <jakub@redhat.com>
10444         PR tree-optimization/102124
10445         * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
10446         MINUS_EXPR, if itype is unsigned with smaller precision than type,
10447         add an extra cast to signed variant of itype to ensure sign-extension.
10449 2021-09-01  Martin Liska  <mliska@suse.cz>
10451         * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
10452           edges and rather use colors for TRUE and FALSE edges.
10454 2021-09-01  Richard Biener  <rguenther@suse.de>
10456         PR tree-optimization/93491
10457         * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
10458         after processing the stmt itself.  Do not consider
10459         pure functions possibly not returning.  Properly avoid
10460         adding possibly trapping calls to EXP_GEN when there's
10461         a preceeding possibly not returning call.
10462         * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
10463         not handle calls.
10465 2021-09-01  Richard Biener  <rguenther@suse.de>
10467         PR tree-optimization/102139
10468         * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
10469         type to record a std::pair of the stmt-info and the innermost
10470         loop behavior.
10471         (dr_vec_info::group): New member.
10472         * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
10473         (vect_compute_data_ref_alignment): Verify the recorded
10474         base alignment can be used.
10475         (data_ref_pair): Remove.
10476         (dr_group_sort_cmp): Adjust.
10477         (vect_analyze_data_ref_accesses): Store the group-ID in the
10478         dr_vec_info and operate on a vector of dr_vec_infos.
10480 2021-09-01  YunQiang Su  <yunqiang.su@cipunited.com>
10482         * read-md.c (md_reader::handle_enum): support value assignation.
10483         * doc/md.texi: record define_c_enum value assignation support.
10485 2021-09-01  Jakub Jelinek  <jakub@redhat.com>
10487         PR tree-optimization/102141
10488         * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
10489         argument.  If false, emit stmts after gsi instead of before, and
10490         with GSI_NEW_STMT.
10491         (bswap_replace): Adjust callers.  When converting output of bswap,
10492         emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
10493         of before it.
10495 2021-09-01  liuhongt  <hongtao.liu@intel.com>
10497         * emit-rtl.c (validate_subreg): Get rid of all float-int
10498         special cases.
10500 2021-09-01  liuhongt  <hongtao.liu@intel.com>
10502         Revert:
10503         2021-08-30  liuhongt  <hongtao.liu@intel.com>
10505         * expmed.c (extract_bit_field_1): Make sure we're playing with
10506         integral modes before call extract_integral_bit_field.
10507         (extract_integral_bit_field): Add a parameter of type
10508         scalar_int_mode which corresponds to of tmode.
10509         And call extract_and_convert_fixed_bit_field instead of
10510         extract_fixed_bit_field and convert_extracted_bit_field.
10511         (extract_and_convert_fixed_bit_field): New function, it's a
10512         combination of extract_fixed_bit_field and
10513         convert_extracted_bit_field.
10515 2021-08-31  Thomas Schwinge  <thomas@codesourcery.com>
10517         * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
10519 2021-08-31  Thomas Schwinge  <thomas@codesourcery.com>
10521         * omp-general.h (omp_is_reference): Rename to...
10522         (omp_privatize_by_reference): ... this.  Adjust all users...
10523         * omp-general.c: ... here, ...
10524         * gimplify.c: ... here, ...
10525         * omp-expand.c: ... here, ...
10526         * omp-low.c: ... here.
10528 2021-08-31  Martin Sebor  <msebor@redhat.com>
10530         * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
10531         pointer element for equality to zero, not that of the cotaining
10532         array.
10534 2021-08-31  Martin Sebor  <msebor@redhat.com>
10536         * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
10538 2021-08-31  Martin Sebor  <msebor@redhat.com>
10540         * function.h (function): Add comments.
10541         (get_range_query): Same.  Add attribute returns nonnull.
10543 2021-08-31  Roger Sayle  <roger@nextmovesoftware.com>
10545         * expr.c (convert_modes): Don't use subreg_promoted_mode on a
10546         SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
10547         Instead use the standard (safer) is_a <scalar_int_mode> idiom.
10549 2021-08-31  Jeff Law  <jlaw@localhost.localdomain>
10551         * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
10552         tm_file.
10553         (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
10554         (mn10300-*-*, am33_2.0-*-linux*): Likewise.
10555         (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
10556         (m32c-*-elf*, m32c-*-rtems*): Likewise.
10557         * config/cris/cris.h (DBX_NO_XREFS): Remove.
10558         (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
10559         * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
10560         (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
10561         * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
10562         * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
10564 2021-08-31  Marcel Vollweiler  <marcel@codesourcery.com>
10566         * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
10567         allowed on target constructs and only with particular other clauses.
10568         * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
10569         'ancestor' is used.
10570         * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
10571         structs when 'ancestor' is used.
10572         (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
10573         'ancestor' is used.
10574         * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
10575         * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
10577 2021-08-31  Roger Sayle  <roger@nextmovesoftware.com>
10579         * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
10580         creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
10581         subreg.
10582         * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
10583         Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
10584         partial subreg from a SUBREG_PROMOTED_VAR_P subreg.  Generate
10585         SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
10586         [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
10587         creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
10588         subreg.  Generate ZERO_EXTEND of the SUBREG_REG when a subreg
10589         would be paradoxical.
10591 2021-08-31  Roger Sayle  <roger@nextmovesoftware.com>
10593         * combine.c (combine_simplify_rtx): Avoid converting an explicit
10594         TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
10595         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10597 2021-08-31  Richard Biener  <rguenther@suse.de>
10599         PR tree-optimization/102142
10600         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
10601         condition under which to unset the visited flag.
10603 2021-08-31  Richard Biener  <rguenther@suse.de>
10605         PR middle-end/102129
10606         * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
10607         possibly trapping expressions across calls.
10609 2021-08-31  Jakub Jelinek  <jakub@redhat.com>
10611         PR tree-optimization/102134
10612         * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
10613         UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
10614         become negative.
10616 2021-08-31  Andrew Pinski  <apinski@marvell.com>
10618         PR driver/79181
10619         * collect-utils.c (setup_signals): New declaration.
10620         * collect-utils.h (setup_signals): New function.
10621         * collect2.c (handler): Delete.
10622         (main): Instead of manually setting up the signals,
10623         just call setup_signals.
10624         * lto-wrapper.c (main): Likewise.
10626 2021-08-31  Andrew Pinski  <apinski@marvell.com>
10628         PR target/56337
10629         * config/i386/i386-protos.h (x86_output_aligned_bss):
10630         Change align argument to unsigned type.
10631         (x86_elf_aligned_decl_common): Likewise.
10632         * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
10633         (x86_output_aligned_bss): Likewise.
10635 2021-08-31  YunQiang Su  <yunqiang.su@cipunited.com>
10637         * config/mips/mips.c (mips_module_isa_name): New.
10638           mips_file_start: add .module mipsREV to all asm output
10640 2021-08-31  YunQiang Su  <yunqiang.su@cipunited.com>
10642         * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
10643           use enum instead of int for 'isa' member.
10644         * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
10645           config/mips/netbsd.h: replace hardcoded numbers with enum.
10647 2021-08-31  liuhongt  <hongtao.liu@intel.com>
10649         * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
10650         define_split to define_insn_and_split.
10651         (*avx2_eq<mode>3): Removed.
10652         (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
10653         (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
10654         (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
10655         adjust pattern.
10656         (*avx2_gt<mode>3): Removed.
10657         (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
10658         define_insn to define_expand, and adjust pattern.
10659         (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
10661 2021-08-30  David Malcolm  <dmalcolm@redhat.com>
10663         PR analyzer/99260
10664         * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
10666 2021-08-30  Jason Merrill  <jason@redhat.com>
10668         * doc/invoke.texi: Document -Wmissing-requires.
10670 2021-08-30  Bill Schmidt  <wschmidt@linux.ibm.com>
10672         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
10673         TARGET_EXTRA_BUILTINS guard.
10675 2021-08-30  Bill Schmidt  <wschmidt@linux.ibm.com>
10677         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
10678         initialization of V2DI_type_node and unsigned_V2DI_type_node.
10680 2021-08-30  Bill Schmidt  <wschmidt@linux.ibm.com>
10682         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
10683         decl when new_builtins_are_live.
10684         * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
10685         built-in.
10687 2021-08-30  Pat Haugen  <pthaugen@linux.ibm.com>
10689         * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
10690         OPTION_MASK_P10_FUSION_2STORE.
10691         (POWERPC_MASKS): Likewise.
10692         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
10693         store fusion for Power10.
10694         (is_fusable_store): New.
10695         (power10_sched_reorder): Likewise.
10696         (rs6000_sched_reorder): Do Power10 specific reordering.
10697         (rs6000_sched_reorder2): Likewise.
10698         * config/rs6000/rs6000.opt: Add new option.
10700 2021-08-30  Richard Biener  <rguenther@suse.de>
10702         PR tree-optimization/102128
10703         * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
10704         Move scanning for if-converted scalar code to the caller
10705         and instead delay clearing the visited flag for profitable
10706         subgraphs.
10707         (vect_slp_region): Cost all subgraphs before scheduling.
10708         For if-converted BB vectorization scan for scalar COND_EXPRs
10709         and do not vectorize if any found and the cost model is
10710         very-cheap.
10712 2021-08-30  Richard Biener  <rguenther@suse.de>
10714         * common.opt (fexceptions): Mark
10715         EnabledBy(fnon-call-exceptions).
10716         * doc/invoke.texi (fnon-call-exceptions): Document this
10717         enables -fexceptions.
10719 2021-08-30  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10721         * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
10722         is not already defined.
10724 2021-08-30  liuhongt  <hongtao.liu@intel.com>
10726         * expmed.c (extract_bit_field_1): Make sure we're playing with
10727         integral modes before call extract_integral_bit_field.
10728         (extract_integral_bit_field): Add a parameter of type
10729         scalar_int_mode which corresponds to of tmode.
10730         And call extract_and_convert_fixed_bit_field instead of
10731         extract_fixed_bit_field and convert_extracted_bit_field.
10732         (extract_and_convert_fixed_bit_field): New function, it's a
10733         combination of extract_fixed_bit_field and
10734         convert_extracted_bit_field.
10736 2021-08-29  Iain Sandoe  <iain@sandoe.co.uk>
10738         * config/darwin.c (darwin_libc_has_function): Do not run
10739         the checks for x86 or modern Darwin.  Make sure that there
10740         is a value set for darwin_macosx_version_min before testing.
10742 2021-08-29  Iain Sandoe  <iain@sandoe.co.uk>
10744         * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
10746 2021-08-28  Jan Hubicka  <hubicka@ucw.cz>
10748         * ipa-modref-tree.h (modref_access_node::merge): Break out
10749         logic combining offsets and logic merging ranges to ...
10750         (modref_access_node::combined_offsets): ... here
10751         (modref_access_node::update2): ... here
10752         (modref_access_node::closer_pair_p): New member function.
10753         (modref_access_node::forced_merge): New member function.
10754         (modre_ref_node::insert): Do merging when table is full.
10756 2021-08-28  YunQiang Su  <yunqiang.su@cipunited.com>
10758         PR target/102089
10759         * config.gcc: MIPS: use N64 ABI by default if the triple end
10760           with -gnuabi64, which is used by Debian since 2013.
10762 2021-08-28  Alexandre Oliva  <oliva@adacore.com>
10764         * ipa-modref.c (analyze_function): Skip debug stmts.
10765         * tree-inline.c (estimate_num_insn): Consider builtins even
10766         without a cgraph_node.
10768 2021-08-27  Jeff Law  <jlaw@localhost.localdomain>
10770         * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
10771         * config/h8300/h8300.c (h8300_expand_branch): Remove function.
10772         * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
10773         * config/h8300/h8300.md (eqne): New code iterator.
10774         (geultu, geultu_to_c): Similarly.
10775         * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
10776         (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
10777         (cmp<mode>_c): New pattern
10779 2021-08-27  Jeff Law  <jlaw@localhost.localdomain>
10781         * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
10782         function.
10783         (dom_opt_dom_walker::optimize_stmt): Use it.
10785 2021-08-27  Iain Sandoe  <iain@sandoe.co.uk>
10787         * config/darwin.c (finalize_ctors): Add a section-start linker-
10788         visible symbol.
10789         (finalize_dtors): Likewise.
10790         * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
10792 2021-08-27  Bill Schmidt  <wschmidt@linux.ibm.com>
10794         * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
10795         (rs6000_init_builtins): Call rs6000_init_generated_builtins.  Skip the
10796         old initialization logic when new builtins are enabled.
10797         * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
10798         rs6000_autoinit_builtins to rs6000_init_generated_builtins.
10799         (write_init_file): Likewise.
10801 2021-08-27  Iain Sandoe  <iain@sandoe.co.uk>
10803         * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
10804         gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
10805         (amdgcn-* | gcn-*) Likewise.
10807 2021-08-27  Anthony Sharp  <anthonysharp15@gmail.com>
10809         * symbol-summary.h: Added missing template keyword.
10811 2021-08-27  Richard Biener  <rguenther@suse.de>
10813         PR tree-optimization/45178
10814         * tree-ssa-dce.c (find_obviously_necessary_stmts): For
10815         infinite loops without exit do not mark control dependent
10816         edges of the latch necessary.
10818 2021-08-27  konglin1  <lingling.kong@intel.com>
10820         PR target/101472
10821         * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
10822         UNSPEC_VSIBADDR.
10823         (<avx512>scattersi<mode>): Likewise.
10824         (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
10825         (*avx512f_scatterdi<VI48F:mode>): Likewise
10827 2021-08-27  Kewen Lin  <linkw@linux.ibm.com>
10829         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
10830         support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
10831         MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
10832         P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
10833         P10_BUILTIN_PEXTD on Power10.
10835 2021-08-27  Kewen Lin  <linkw@linux.ibm.com>
10837         * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
10838         signedness for some Power10 bifs.
10840 2021-08-27  David Edelsohn  <dje.gcc@gmail.com>
10842         PR target/102068
10843         * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
10844         computed alignment if the entire struct has attribute packed.
10846 2021-08-27  liuhongt  <hongtao.liu@intel.com>
10848         PR target/98167
10849         PR target/43147
10850         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
10851         IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
10852         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
10853         IX86_BUILTIN_SHUFPS256.
10854         (ix86_masked_all_ones): New function.
10856 2021-08-26  Uroš Bizjak  <ubizjak@gmail.com>
10858         * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
10859         (conditional moves with memory inputs splitters): Ditto.
10860         * config/i386/sse.md (one_cmpl<mode>2): Simplify.
10862 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
10864         * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
10865         search after merging.
10867 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
10869         * config/rs6000/rs6000-overload.def: Add remaining overloads.
10871 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
10873         * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
10875 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
10877         * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
10878         crypto, and htm stanzas.
10880 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
10882         * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
10884 2021-08-26  Martin Sebor  <msebor@redhat.com>
10886         * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
10887         (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
10888         (warn_uninitialized_vars): Same.  Reduce visibility of locals.
10889         (warn_uninitialized_phi): Same.
10891 2021-08-26  Roger Sayle  <roger@nextmovesoftware.com>
10893         * tree-ssa-ccp.c (get_individual_bits): Helper function to
10894         extract the individual bits from a widest_int constant (mask).
10895         (gray_code_bit_flips): New read-only table for effiently
10896         enumerating permutations/combinations of bits.
10897         (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
10898         by unknown counts that are guaranteed less than the target
10899         precision and four or fewer unknown bits by enumeration.
10900         [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
10901         enumeration under the same conditions.  Handle remaining
10902         shifts as a mask based upon the minimum possible shift value.
10904 2021-08-26  Roger Sayle  <roger@nextmovesoftware.com>
10905             Richard Biener  <rguenther@suse.de>
10907         * match.pd (shift transformations): Remove a redundant
10908         !POINTER_TYPE_P check.
10910 2021-08-26  Uroš Bizjak  <ubizjak@gmail.com>
10912         PR target/102057
10913         * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
10914         Set all_regs to true in the call to replace_rtx.
10916 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
10918         * ipa-modref-tree.c (test_insert_search_collapse): Update test.
10919         * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
10920         hiting --param modref-max-refs limit.
10921         (modref_tree:insert_base): Be smarter when hitting
10922         --param modref-max-bases limit. Add new parameter REF.
10923         (modref_tree:insert): Update.
10924         (modref_tree:merge): Update.
10925         * ipa-modref.c (read_modref_records): Update.
10927 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
10929         * params.opt: (modref-max-adjustments): Add full stop.
10931 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
10933         * ipa-modref-tree.h (modref_ref_node::verify): New member
10934         functoin.
10935         (modref_ref_node::insert): Use it.
10936         (modref_ref_node::try_mere_with): Fix off by one error.
10938 2021-08-26  Martin Liska  <mliska@suse.cz>
10939             Stefan Kneifel  <stefan.kneifel@bluewin.ch>
10941         * cgraph.h (create_version_clone_with_body): Add new parameter.
10942         * cgraphclones.c: Likewise.
10943         * multiple_target.c (create_dispatcher_calls): Do not use
10944         numbered suffixes.
10945         (create_target_clone): Likewise here.
10947 2021-08-26  Jonathan Yong  <10walls@gmail.com>
10949         * doc/extend.texi: Add note about reserved priorities
10950         to the constructor attribute.
10952 2021-08-25  Martin Sebor  <msebor@redhat.com>
10954         * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
10955         range table header alone.
10956         * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
10958 2021-08-25  Jan Hubicka  <hubicka@ucw.cz>
10960         * doc/invoke.texi: Document --param modref-max-adjustments.
10961         * ipa-modref-tree.c (test_insert_search_collapse): Update.
10962         (test_merge): Update.
10963         * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
10964         (modref_access_node::operator==): Fix handling of access ranges.
10965         (modref_access_node::contains): Constify parameter; handle also
10966         mismatched parm offsets.
10967         (modref_access_node::update): New function.
10968         (modref_access_node::merge): New function.
10969         (unspecified_modref_access_node): Update constructor.
10970         (modref_ref_node::insert_access): Add record_adjustments parameter;
10971         handle merging.
10972         (modref_ref_node::try_merge_with): New private function.
10973         (modref_tree::insert): New record_adjustments parameter.
10974         (modref_tree::merge): New record_adjustments parameter.
10975         (modref_tree::copy_from): Update.
10976         * ipa-modref.c (dump_access): Dump adjustments field.
10977         (get_access): Update constructor.
10978         (record_access): Update call of insert.
10979         (record_access_lto): Update call of insert.
10980         (merge_call_side_effects): Add record_adjustments parameter.
10981         (get_access_for_fnspec): Update.
10982         (process_fnspec): Update.
10983         (analyze_call): Update.
10984         (analyze_function): Update.
10985         (read_modref_records): Update.
10986         (ipa_merge_modref_summary_after_inlining): Update.
10987         (propagate_unknown_call): Update.
10988         (modref_propagate_in_scc): Update.
10989         * params.opt (param-max-modref-adjustments=): New.
10991 2021-08-25  Michael Meissner  <meissner@linux.ibm.com>
10993         * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
10994         UNSPEC_XXSPLTID.
10995         (xxspltiw_v4si): Use vecperm type attribute.
10996         (xxspltiw_v4si_inst): Use vecperm type attribute.
10997         (xxspltiw_v4sf_inst): Likewise.
10998         (xxspltidp_v2df): Use vecperm type attribute.  Use
10999         UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
11000         (xxspltidp_v2df_inst): Likewise.
11001         (xxsplti32dx_v4si): Use vecperm type attribute.
11002         (xxsplti32dx_v4si_inst): Likewise.
11003         (xxsplti32dx_v4sf_inst): Likewise.
11004         (xxblend_<mode>): Likewise.
11005         (xxpermx): Likewise.
11006         (xxpermx_inst): Likewise.
11007         (xxeval): Likewise.
11009 2021-08-25  Lewis Hyatt  <lhyatt@gmail.com>
11011         PR other/93067
11012         * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
11013         * diagnostic.c (diagnostic_initialize_input_context): New function.
11014         * diagnostic.h (diagnostic_initialize_input_context): Declare.
11015         * input.c (default_charset_callback): New function.
11016         (file_cache::initialize_input_context): New function.
11017         (file_cache_slot::create): Added ability to convert the input
11018         according to the input context.
11019         (file_cache::file_cache): Initialize the new input context.
11020         (class file_cache_slot): Added new m_alloc_offset member.
11021         (file_cache_slot::file_cache_slot): Initialize the new member.
11022         (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
11023         (file_cache_slot::maybe_grow): Likewise.
11024         (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
11025         (file_cache_slot::get_next_line): Likewise.
11026         * input.h (class file_cache): Added input context member.
11028 2021-08-25  Richard Biener  <rguenther@suse.de>
11030         PR tree-optimization/102046
11031         * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
11032         update ->any_pattern when swapping operands.
11034 2021-08-25  Hongyu Wang  <hongyu.wang@intel.com>
11036         PR target/101716
11037         * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
11038         (ix86_decompose_address): Remove retval check for ASHIFT,
11039         allow non-canonical zero extend if AND mask covers ASHIFT
11040         count.
11041         (ix86_legitimate_address_p): Adjust condition for decompose.
11042         (ix86_rtx_costs): Adjust cost for lea with non-canonical
11043         zero-extend.
11044         Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
11046 2021-08-25  Jiufu Guo  <guojiufu@linux.ibm.com>
11048         PR tree-optimization/101145
11049         * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
11050         New function.
11051         (number_of_iterations_lt): Invoke above function.
11052         (adjust_cond_for_loop_until_wrap):
11053         Merge to number_of_iterations_until_wrap.
11054         (number_of_iterations_cond): Update invokes for
11055         adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
11057 2021-08-25  konglin1  <lingling.kong@intel.com>
11059         PR target/101471
11060         * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
11061         macro define in O0.
11062         (_mm512_mask_fpclass_ps_mask): Ditto.
11064 2021-08-25  Kewen Lin  <linkw@linux.ibm.com>
11066         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
11067         (vec_unpacku_hi_v8hi): Likewise.
11068         (vec_unpacku_lo_v16qi): Likewise.
11069         (vec_unpacku_lo_v8hi): Likewise.
11070         (vec_unpacku_hi_<VP_small_lc>): New define_expand.
11071         (vec_unpacku_lo_<VP_small_lc>): Likewise.
11073 2021-08-24  David Edelsohn  <dje.gcc@gmail.com>
11075         * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
11076         * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
11077         * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
11078         * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
11080 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
11082         PR middle-end/102031
11083         * simplify-rtx.c (simplify_truncation): When comparing precisions
11084         use "subreg_prec" variable, not "subreg_mode".
11086 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
11088         * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
11089         stanzas.
11091 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
11093         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
11094         various pointer type nodes.
11095         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
11096         values for various pointer types.
11097         (ptr_V16QI_type_node): New macro.
11098         (ptr_V1TI_type_node): New macro.
11099         (ptr_V2DI_type_node): New macro.
11100         (ptr_V2DF_type_node): New macro.
11101         (ptr_V4SI_type_node): New macro.
11102         (ptr_V4SF_type_node): New macro.
11103         (ptr_V8HI_type_node): New macro.
11104         (ptr_unsigned_V16QI_type_node): New macro.
11105         (ptr_unsigned_V1TI_type_node): New macro.
11106         (ptr_unsigned_V8HI_type_node): New macro.
11107         (ptr_unsigned_V4SI_type_node): New macro.
11108         (ptr_unsigned_V2DI_type_node): New macro.
11109         (ptr_bool_V16QI_type_node): New macro.
11110         (ptr_bool_V8HI_type_node): New macro.
11111         (ptr_bool_V4SI_type_node): New macro.
11112         (ptr_bool_V2DI_type_node): New macro.
11113         (ptr_bool_V1TI_type_node): New macro.
11114         (ptr_pixel_type_node): New macro.
11115         (ptr_intQI_type_node): New macro.
11116         (ptr_uintQI_type_node): New macro.
11117         (ptr_intHI_type_node): New macro.
11118         (ptr_uintHI_type_node): New macro.
11119         (ptr_intSI_type_node): New macro.
11120         (ptr_uintSI_type_node): New macro.
11121         (ptr_intDI_type_node): New macro.
11122         (ptr_uintDI_type_node): New macro.
11123         (ptr_intTI_type_node): New macro.
11124         (ptr_uintTI_type_node): New macro.
11125         (ptr_long_integer_type_node): New macro.
11126         (ptr_long_unsigned_type_node): New macro.
11127         (ptr_float_type_node): New macro.
11128         (ptr_double_type_node): New macro.
11129         (ptr_long_double_type_node): New macro.
11130         (ptr_dfloat64_type_node): New macro.
11131         (ptr_dfloat128_type_node): New macro.
11132         (ptr_ieee128_type_node): New macro.
11133         (ptr_ibm128_type_node): New macro.
11134         (ptr_vector_pair_type_node): New macro.
11135         (ptr_vector_quad_type_node): New macro.
11136         (ptr_long_long_integer_type_node): New macro.
11137         (ptr_long_long_unsigned_type_node): New macro.
11139 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
11141         * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
11142         and power9-64 stanzas.
11144 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
11145             Tom de Vries  <tdevries@suse.de>
11147         * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
11148         * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
11149         * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
11150         a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
11151         * config/nvptx/t-nvptx (nvptx-c.o): New rule.
11152         * config/nvptx/nvptx-c.c: New source file.
11153         (nvptx_cpu_cpp_builtins): Move implementation here.
11155 2021-08-24  Martin Sebor  <msebor@redhat.com>
11157         PR middle-end/101600
11158         PR middle-end/101977
11159         * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
11160         the phrasing of a warning.
11161         (check_access): Use the remaining size after subtracting any offset
11162         rather than the whole object size.
11163         * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
11164         clear for any nonnull PHI argument.
11165         (compute_objsize): Clear argument.
11167 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
11169         * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
11171 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
11173         * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
11174         stanzas.
11176 2021-08-24  Andrew MacLeod  <amacleod@redhat.com>
11178         * value-relation.cc (rr_transitive_table): New.
11179         (relation_transitive): New.
11180         (value_relation::swap): Remove.
11181         (value_relation::apply_transitive): New.
11182         (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
11183         (relation_oracle::register_relation): Call register_transitives.
11184         (relation_oracle::register_transitives): New.
11185         * value-relation.h (relation_oracle): Add new temporary bitmap and
11186         methods.
11188 2021-08-24  H.J. Lu  <hjl.tools@gmail.com>
11190         PR target/102021
11191         * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
11192         from integer to a pseudo vector register.
11194 2021-08-24  Richard Biener  <rguenther@suse.de>
11196         PR tree-optimization/100089
11197         * tree-vectorizer.h (vect_slp_bb): Rename to ...
11198         (vect_slp_if_converted_bb): ... this and get the original
11199         loop as new argument.
11200         * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
11201         pass original loop to vect_slp_if_converted_bb.
11202         * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
11203         If orig_loop was passed scan the not vectorized stmts
11204         for COND_EXPRs and force not profitable if found.
11205         (vect_slp_region): Pass down all SLP instances to costing
11206         if orig_loop was specified.
11207         (vect_slp_bbs): Pass through orig_loop.
11208         (vect_slp_bb): Rename to ...
11209         (vect_slp_if_converted_bb): ... this and get the original
11210         loop as new argument.
11211         (vect_slp_function): Adjust.
11213 2021-08-24  Richard Earnshaw  <rearnsha@arm.com>
11215         PR target/102035
11216         * config/arm/arm.md (attribute arch): Add fix_vlldm.
11217         (arch_enabled): Use it.
11218         * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
11219         use when erratum mitigation is needed.
11221 2021-08-24  Richard Earnshaw  <rearnsha@arm.com>
11223         PR target/102035
11224         * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
11225         * doc/invoke.texi (Arm Options): Document it.
11226         * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
11227         (ALL_QUIRKS): Add quirk_vlldm.
11228         (cortex-m33): Add quirk_vlldm.
11229         (cortex-m35p, cortex-m55): Likewise.
11230         * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
11231         targetting an affected CPU and not explicitly controlled on
11232         the command line.
11234 2021-08-24  Richard Earnshaw  <rearnsha@arm.com>
11236         * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
11237         (lazy_load_multiple_insn): Likewise.
11239 2021-08-24  liuhongt  <hongtao.liu@intel.com>
11241         PR target/101989
11242         * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
11243         Enable avx512 embedded broadcast.
11244         (*<avx512>_vternlog<mode>_all): Ditto.
11245         (<avx512>_vternlog<mode>_mask): Ditto.
11247 2021-08-24  liuhongt  <hongtao.liu@intel.com>
11249         PR target/101989
11250         * config/i386/i386.c (ix86_rtx_costs): Define cost for
11251         UNSPEC_VTERNLOG.
11252         * config/i386/i386.h (STRIP_UNARY): New macro.
11253         * config/i386/predicates.md (reg_or_notreg_operand): New
11254         predicate.
11255         * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
11256         (*<avx512>_vternlog<mode>_1): New pre_reload
11257         define_insn_and_split.
11258         (*<avx512>_vternlog<mode>_2): Ditto.
11259         (*<avx512>_vternlog<mode>_3): Ditto.
11260         (any_logic1,any_logic2): New code iterator.
11261         (logic_op): New code attribute.
11262         (ternlogsuffix): Extend to VNxDF and VNxSF.
11264 2021-08-24  Richard Biener  <rguenther@suse.de>
11266         * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
11267         * params.opt (--param vect-inner-loop-cost-factor): Adjust
11268         maximum value.
11269         * tree-vect-loop.c (vect_analyze_loop_form): Initialize
11270         inner_loop_cost_factor to the minimum of the estimated number
11271         of iterations of the inner loop and vect-inner-loop-cost-factor.
11273 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
11274             Richard Biener  <rguenther@suse.de>
11276         * config/i386/i386-features.c (compute_convert_gain): Provide
11277         more accurate values for CONST_INT, when optimizing for size.
11278         * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
11279         * config/i386/i386.h (COSTS_N_BYTES): to here.
11281 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
11282             Jakub Jelinek  <jakub@redhat.com>
11284         PR middle-end/102029
11285         * match.pd (shift transformations): Add an additional check for
11286         !POINTER_TYPE_P in the recently added left shift transformation.
11288 2021-08-24  liuhongt  <hongtao.liu@intel.com>
11290         PR tree-optimization/100089
11291         * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
11292         loop vectorizer when cost model is very-cheap.
11294 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
11296         * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
11297         asprintf, which is not available on AIX.
11299 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
11301         * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
11302         * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
11304 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
11306         * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
11307         * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
11308         last.
11309         * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
11310         (rbtree.o): Likewise.
11311         (rs6000-gen-builtins): Likewise.
11312         (rs6000-builtins.c): Likewise.
11313         (rs6000-builtins.h): Likewise.
11314         (rs6000.o): Add dependency.
11315         (EXTRA_HEADERS): Add rs6000-vecdefines.h.
11316         (rs6000-vecdefines.h): New target.
11317         (rs6000-builtins.o): Likewise.
11318         (rs6000-call.o): Add rs6000-builtins.h as a dependency.
11319         (rs6000-c.o): Likewise.
11321 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
11323         PR target/101830
11324         * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
11325         Diagnose buffer overrun.
11326         (safe_inc_pos): Fix overrun detection.
11327         (match_identifier): Diagnose buffer overrun.
11328         (match_integer): Likewise.
11329         (match_to_right_bracket): Likewise.
11331 2021-08-23  Jan Hubicka  <hubicka@ucw.cz>
11333         * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
11334         Improve range compare.
11335         (modref_access_node::contains): New member function.
11336         (modref_access_node::search): Remove.
11337         (modref_access_node::insert): Be smarter about subaccesses.
11339 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
11341         * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
11342         <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
11343         * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
11344         Add "intel_mic".
11346 2021-08-23  Jeff Law  <jlaw@localhost.localdomain>
11348         * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
11349         argument.
11350         * config/h8300/jumpcall.md (call, call_value): Restrict to
11351         !SIBLING_CALL_P cases.
11352         (subcall, sibcall_value): New patterns & expanders.
11353         * config/h8300/proepi.md (epilogue): Pass new argument to
11354         h8300_expand_epilogue.
11355         (sibcall_epilogue): New expander.
11356         * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
11357         epilogues too.
11358         (h8300_ok_for_sibcall_p): New function.
11359         (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
11361 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
11363         * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
11364         Handle case where the operand is already the desired mode.
11366 2021-08-23  Richard Biener  <rguenther@suse.de>
11368         PR ipa/97565
11369         * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
11370         in addition to has_gimple_body.
11372 2021-08-23  Jan Hubicka  <hubicka@ucw.cz>
11374         PR middle-end/101949
11375         * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
11376         EAF_NOCLOBBER
11378 2021-08-23  Martin Liska  <mliska@suse.cz>
11380         * doc/invoke.texi: Put the option out of -mxl-mode-app-model
11381         table.
11383 2021-08-23  Richard Biener  <rguenther@suse.de>
11385         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
11386         Properly scale the inner loop cost only once.
11388 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
11390         * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
11391         Provide bounds for unsigned (and signed with non-negative operands)
11392         division and modulus.
11394 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
11396         * simplify-rtx.c (simplify_truncation): Generalize simplification
11397         of (truncate:A (subreg:B X)).
11398         (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
11399         SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
11400         already has the desired machine mode.
11401         (test_scalar_int_ops): Add tests that useless extensions and
11402         truncations are optimized away.
11403         (test_scalar_int_ext_ops): New self-test function to confirm
11404         that truncations of extensions are correctly simplified.
11405         (test_scalar_int_ext_ops2): New self-test function to check
11406         truncations of truncations, extensions of extensions, and
11407         truncations of extensions.
11408         (test_scalar_ops): Call the above two functions with a
11409         representative sampling of integer machine modes.
11411 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
11413         * match.pd (shift transformations): Change the sign of an
11414         LSHIFT_EXPR if it reduces the number of explicit conversions.
11416 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
11418         PR tree-optimization/86723
11419         * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
11420         cast64_to_32 argument, set *cast64_to_32 to false, unless n is
11421         non-memory permutation of 64-bit src which only has bytes of
11422         0 or [5..8] and n->range is 4.
11423         (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
11424         find_bswap_or_nop_finalize caller, support bswap with some bytes
11425         zeroed, as long as at least two bytes are not zeroed.
11426         (bswap_replace): Add mask argument and handle masking of bswap
11427         result.
11428         (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
11429         caller, punt if cast64_to_32 or mask is not all ones.
11430         (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
11431         caller, for now punt if cast64_to_32.
11433 2021-08-23  Richard Biener  <rguenther@suse.de>
11435         PR tree-optimization/79334
11436         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
11437         a type also for COMPONENT_REFs.
11438         (vn_reference_may_trap): Check ARRAY_REF with constant index
11439         against the array domain.
11441 2021-08-23  liuhongt  <hongtao.liu@intel.com>
11443         PR target/102016
11444         * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
11445         TARGET_AVX512BW to condition.
11447 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
11449         PR debug/101905
11450         * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
11451         register variables already during early_dwarf if possible.
11453 2021-08-23  Christophe Lyon  <christophe.lyon@foss.st.com>
11455         * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
11457 2021-08-23  Christophe Lyon  <christophe.lyon@foss.st.com>
11459         PR target/100856
11460         * config/arm/arm.opt: Fix typo.
11461         * config/arm/t-rmprofile: Fix typo.
11463 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
11465         * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
11466         (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
11467         * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
11468         case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
11469         * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
11470         if either grainsize or num_tasks clause has the strict modifier.
11472 2021-08-23  Martin Liska  <mliska@suse.cz>
11474         * dbgcnt.def (DEBUG_COUNTER): New counter.
11475         * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
11477 2021-08-23  Jan Hubicka  <hubicka@ucw.cz>
11479         * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
11481 2021-08-23  Xi Ruoyao  <xry111@mengyan1223.wang>
11483         PR target/101922
11484         * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
11485           Declare.
11486         * config/mips/mips.c (mips_msa_output_shift_immediate): New
11487           function.
11488         * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
11489           vlshr<mode>3): Call it.
11491 2021-08-22  Jan Hubicka  <hubicka@ucw.cz>
11492             Martin Liska  <mliska@suse.cz>
11494         PR middle-end/101949
11495         * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
11496         ~EAF_NOCLOBBER.
11498 2021-08-21  Dragan Mladjenovic  <OT_Dragan.Mladjenovic@mediatek.com>
11500         * config/mips/mips.c (mips_function_rodata_section,
11501         TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
11503 2021-08-21  John David Anglin  <danglin@gcc.gnu.org>
11505         * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
11507 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
11509         * configure.ac (thread-local storage support): Remove tls_first_major
11510         and tls_first_minor.  Use "$conftest_s" to check support.
11511         * configure: Regenerate.
11513 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
11515         * configure.ac: Fixup formatting.
11517 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
11519         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
11520         * configure.ac: ... update all callers.
11522 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
11524         PR target/91602
11525         * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
11526         (gcc_GAS_VERSION_GTE_IFELSE): Remove.
11527         (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
11528         * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
11529         Remove remaining checks for in-tree assembler.
11530         * configure: Regenerate.
11532 2021-08-20  Jeff Law  <jlaw@localhost.localdomain>
11534         * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
11535         by 15 bits for H8/300H and H8/S.  Improve logical shifts by 12
11536         bits for H8/S.
11537         (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
11538         H8/300H.  Improve arithmetic shift right by 15 bits for H8/S.
11539         Improve logical shifts by 27 bits for H8/S.
11540         (get_shift_alg): Corresponding changes.
11541         (h8300_option_override): Revert to loops for -Os when profitable.
11543 2021-08-20  Richard Biener  <rguenther@suse.de>
11545         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
11546         BBs.
11547         (vect_analyze_data_ref_accesses): Likewise.  Assign the BB
11548         index as group_id when dataref_groups were not computed.
11549         * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
11550         we advace to the next BB.
11552 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
11554         * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
11555         builtins.
11557 2021-08-20  Martin Liska  <mliska@suse.cz>
11559         PR gcov-profile/89961
11560         * gcov.c (make_gcov_file_name): Rewrite using std::string.
11561         (mangle_name): Simplify, do not used the second argument.
11562         (strip_extention): New function.
11563         (get_md5sum): Likewise.
11564         (get_gcov_intermediate_filename): Handle properly -p and -x
11565         options.
11566         (output_gcov_file): Use string type.
11567         (generate_results): Likewise.
11568         (md5sum_to_hex): Remove.
11570 2021-08-20  Michael Meissner  <meissner@linux.ibm.com>
11572         * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
11573         (UNSPEC_XXSPLTIW): Move to vsx.md.
11574         (UNSPEC_XXSPLTID): Move to vsx.md.
11575         (UNSPEC_XXSPLTI32DX): Move to vsx.md.
11576         (UNSPEC_XXBLEND): Move to vsx.md.
11577         (UNSPEC_XXPERMX): Move to vsx.md.
11578         (VM3): Move to vsx.md.
11579         (VM3_char): Move to vsx.md.
11580         (xxspltiw_v4si): Move to vsx.md.
11581         (xxspltiw_v4sf): Move to vsx.md.
11582         (xxspltiw_v4sf_inst): Move to vsx.md.
11583         (xxspltidp_v2df): Move to vsx.md.
11584         (xxspltidp_v2df_inst): Move to vsx.md.
11585         (xxsplti32dx_v4si_inst): Move to vsx.md.
11586         (xxsplti32dx_v4sf): Move to vsx.md.
11587         (xxsplti32dx_v4sf_inst): Move to vsx.md.
11588         (xxblend_<mode>): Move to vsx.md.
11589         (xxpermx): Move to vsx.md.
11590         (xxpermx_inst): Move to vsx.md.
11591         * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
11592         (UNSPEC_XXSPLTIW): Move from altivec.md.
11593         (UNSPEC_XXSPLTID): Move from altivec.md.
11594         (UNSPEC_XXSPLTI32DX): Move from altivec.md.
11595         (UNSPEC_XXBLEND): Move from altivec.md.
11596         (UNSPEC_XXPERMX): Move from altivec.md.
11597         (VM3): Move from altivec.md.
11598         (VM3_char): Move from altivec.md.
11599         (xxspltiw_v4si): Move from altivec.md.
11600         (xxspltiw_v4sf): Move from altivec.md.
11601         (xxspltiw_v4sf_inst): Move from altivec.md.
11602         (xxspltidp_v2df): Move from altivec.md.
11603         (xxspltidp_v2df_inst): Move from altivec.md.
11604         (xxsplti32dx_v4si_inst): Move from altivec.md.
11605         (xxsplti32dx_v4sf): Move from altivec.md.
11606         (xxsplti32dx_v4sf_inst): Move from altivec.md.
11607         (xxblend_<mode>): Move from altivec.md.
11608         (xxpermx): Move from altivec.md.
11609         (xxpermx_inst): Move from altivec.md.
11611 2021-08-19  Roger Sayle  <roger@nextmovesoftware.com>
11613         * tree-vect-generic.c (expand_vector_operations_1): Use either
11614         gimplify_build1 or gimplify_build2 instead of gimple_build_assign
11615         when constructing scalar splat expressions.
11617 2021-08-19  Peter Bergner  <bergner@linux.ibm.com>
11619         PR target/101849
11620         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
11621         pointer to __vector_pair *.
11623 2021-08-19  Martin Sebor  <msebor@redhat.com>
11625         * gimple-range.cc: Add comments.
11626         * gimple-range.h: Same.
11628 2021-08-19  Martin Sebor  <msebor@redhat.com>
11630         PR middle-end/101984
11631         * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
11632         disable_ranger.
11634 2021-08-19  Jeff Law  <jlaw@localhost.localdomain>
11636         * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
11637         (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
11638         * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
11640 2021-08-19  Jakub Jelinek  <jakub@redhat.com>
11642         PR middle-end/101950
11643         * optabs.c (expand_clrsb_using_clz): New function.
11644         (expand_unop): Use it as another clrsb expansion fallback.
11646 2021-08-19  liuhongt  <hongtao.liu@intel.com>
11648         Revert:
11649         2021-07-28  liuhongt  <hongtao.liu@intel.com>
11651         PR target/99881
11652         * config/i386/i386.h (processor_costs): Add new member
11653         integer_to_sse.
11654         * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
11655         i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
11656         geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
11657         bdver_cost, znver1_cost, znver2_cost, znver3_cost,
11658         btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
11659         nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
11660         generic_cost, core_cost): Initialize integer_to_sse same value
11661         as sse_op.
11662         (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
11663         * config/i386/i386.c (ix86_builtin_vectorization_cost):
11664         Use integer_to_sse instead of sse_op to calculate the cost of
11665         vec_construct.
11667 2021-08-18  Iain Sandoe  <iain@sandoe.co.uk>
11669         * config.gcc: Include rpath.opt for Darwin.
11670         * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
11672 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
11674         PR bootstrap/101959
11675         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
11676         Use an 'int_hash'.
11678 2021-08-18  Jonathan Wright  <jonathan.wright@arm.com>
11680         * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
11681         pattern and type cast.
11682         (vld4_lane_f32): Use float RTL pattern.
11683         (vld4q_lane_f64): Use float type cast.
11685 2021-08-18  Jan Hubicka  <hubicka@ucw.cz>
11687         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
11688         EAF_NOREAD.
11690 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
11692         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
11693         (test_map_of_type_with_ctor_and_dtor_expand): Add function.
11694         (hash_map_tests_c_tests): Call it.
11696 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
11698         * ggc.h (enum ggc_collect): New.
11699         (ggc_collect): Use it.
11700         * ggc-page.c: Adjust.
11701         * ggc-common.c: Likewise.
11702         * ggc-tests.c: Likewise.
11703         * read-rtl-function.c: Likewise.
11704         * selftest-run-tests.c: Likewise.
11705         * doc/gty.texi (Invoking the garbage collector): Likewise.
11707 2021-08-18  liuhongt  <hongtao.liu@intel.com>
11709         PR target/97147
11710         * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
11711         New macro.
11712         * config/i386/sse.md (*sse3_haddv2df3_low): Add
11713         TARGET_V2DF_REDUCTION_PREFER_HADDPD.
11714         (*sse3_hsubv2df3_low): Ditto.
11715         * config/i386/x86-tune.def
11716         (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
11718 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
11720         * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
11721         (gori_compute::compute_operand_range): Add tracing.
11722         (gori_compute::logical_combine): Ditto.
11723         (gori_compute::compute_logical_operands): Ditto.
11724         (gori_compute::compute_operand1_range): Ditto.
11725         (gori_compute::compute_operand2_range): Ditto.
11726         (gori_compute::outgoing_edge_range_p): Ditto.
11727         * gimple-range-gori.h (class gori_compute): Add range_tracer.
11729 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
11731         * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
11732         * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
11733         * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
11734         * params.opt (--param=evrp-mode): Adjust options.
11736 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
11738         * Makefile.in (OBJS): Add gimple-range-trace.o.
11739         * gimple-range-cache.h (enable_new_values): Remove unused prototype.
11740         * gimple-range-fold.cc: Adjust headers.
11741         * gimple-range-trace.cc: New.
11742         * gimple-range-trace.h: New.
11743         * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
11744         (gimple_ranger::range_of_expr): Add tracing.
11745         (gimple_ranger::range_on_entry): Ditto.
11746         (gimple_ranger::range_on_exit): Ditto.
11747         (gimple_ranger::range_on_edge): Ditto.
11748         (gimple_ranger::fold_range_internal): Ditto.
11749         (gimple_ranger::dump_bb): Do not calculate edge range twice.
11750         (trace_ranger::*): Remove.
11751         (enable_ranger): Never create a trace_ranger.
11752         (debug_seed_ranger): Move to gimple-range-trace.cc.
11753         (dump_ranger): Ditto.
11754         (debug_ranger): Ditto.
11755         * gimple-range.h: Include gimple-range-trace.h.
11756         (range_on_entry, range_on_exit): No longer virtual.
11757         (class trace_ranger): Remove.
11758         (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
11760 2021-08-17  Martin Sebor  <msebor@redhat.com>
11762         PR middle-end/101854
11763         * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
11764         in gimple-ssa-warn-access.cc.
11765         * calls.c (alloc_max_size): Move code to check_alloca.
11766         (get_size_range): Move to pointer-query.cc.
11767         (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
11768         (get_attr_nonstring_decl): Move to tree.c.
11769         (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
11770         (append_attrname): Same.
11771         (maybe_warn_rdwr_sizes): Same.
11772         (initialize_argument_information): Move code to
11773         gimple-ssa-warn-access.cc.
11774         * calls.h (maybe_warn_alloc_args_overflow): Move to
11775         gimple-ssa-warn-access.h.
11776         (get_attr_nonstring_decl): Move to tree.h.
11777         (maybe_warn_nonstring_arg):  Move to gimple-ssa-warn-access.h.
11778         (enum size_range_flags): Move to pointer-query.h.
11779         (get_size_range): Same.
11780         * gimple-ssa-warn-access.cc (has_location): Remove unused overload
11781         to avoid Clang -Wunused-function.
11782         (get_size_range): Declare static.
11783         (maybe_emit_free_warning): Rename...
11784         (maybe_check_dealloc_call): ...to this for consistency.
11785         (class pass_waccess): Add members.
11786         (pass_waccess::~pass_waccess): Defined.
11787         (alloc_max_size): Move here from calls.c.
11788         (maybe_warn_alloc_args_overflow): Same.
11789         (check_alloca): New function.
11790         (check_alloc_size_call): New function.
11791         (check_strncat): Handle another warning flag.
11792         (pass_waccess::check_builtin): Handle alloca.
11793         (fntype_argno_type): Move here from calls.c.
11794         (append_attrname): Same.
11795         (maybe_warn_rdwr_sizes): Same.
11796         (pass_waccess::check_call): Define.
11797         (check_nonstring_args): New function.
11798         (pass_waccess::check): Call new member functions.
11799         (pass_waccess::execute): Enable ranger.
11800         * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
11801         (maybe_warn_nonstring_arg): Same.
11802         * gimple-ssa-warn-restrict.c: Remove #include.
11803         * pointer-query.cc (get_size_range): Move here from calls.c.
11804         * pointer-query.h (enum size_range_flags): Same.
11805         (get_size_range): Same.
11806         * tree.c (get_attr_nonstring_decl): Move here from calls.c.
11807         * tree.h (get_attr_nonstring_decl): Move here from calls.h.
11809 2021-08-17  Thomas Schwinge  <thomas@codesourcery.com>
11811         * ggc.h (ggc_collect): Add 'force_collect' parameter.
11812         * ggc-page.c (ggc_collect): Use that one instead of global
11813         'ggc_force_collect'.  Adjust all users.
11814         * doc/gty.texi (Invoking the garbage collector): Update.
11815         * ggc-internal.h (ggc_force_collect): Remove.
11816         * ggc-common.c (ggc_force_collect): Likewise.
11817         * selftest.h (forcibly_ggc_collect): Remove.
11818         * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
11819         * read-rtl-function.c (test_loading_labels): Adjust.
11820         * selftest-run-tests.c (run_tests): Likewise.
11822 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
11824         * config/darwin.c (darwin_file_end): Reset and reclaim the
11825         section names table at the end of compile.
11827 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
11829         PR target/100340
11830         * config.in: Regenerate.
11831         * config/i386/darwin.h (EXTRA_ASM_OPTS): New
11832         (ASM_SPEC): Pass options to disable branch shortening where
11833         needed.
11834         * configure: Regenerate.
11835         * configure.ac: Detect versions of 'as' that support the
11836         optimisation which has the bug.
11838 2021-08-17  Richard Biener  <rguenther@suse.de>
11840         * optabs-query.c (supports_vec_gather_load_p): Also check
11841         for masked optabs.
11842         (supports_vec_scatter_store_p): Likewise.
11843         * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
11844         back to masked variants if non-masked are not supported.
11845         * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
11846         When we need to use masked gather/scatter but do not have
11847         a mask set up a constant true one.
11848         * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
11849         non-SSA_NAME masks.
11851 2021-08-17  Roger Sayle  <roger@nextmovesoftware.com>
11853         * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
11854         algorithm as PLUS_EXPR to improve subtraction bit bounds.
11855         [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
11857 2021-08-17  Roger Sayle  <roger@nextmovesoftware.com>
11859         * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
11860         calculate the mask-value pair result of a multiplication by an
11861         unsigned constant.
11862         (bit_value_binop) [MULT_EXPR]:  Call it from here for
11863         multiplications by (sparse) non-negative constants.
11865 2021-08-17  Christophe Lyon  <christophe.lyon@foss.st.com>
11867         PR target/100896
11868         * config.gcc (gcc_cv_initfini_array): Leave undefined for
11869         uclinuxfdpiceabi targets.
11871 2021-08-17  Alexandre Oliva  <oliva@adacore.com>
11873         * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
11874         reverse debug stmts.
11876 2021-08-17  Alexandre Oliva  <oliva@adacore.com>
11878         * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
11880 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
11882         * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
11883         (__LD4Q_LANE_FUNC): Likewise.
11884         (vld4_lane_u8): Define without macro.
11885         (vld4_lane_u16): Likewise.
11886         (vld4_lane_u32): Likewise.
11887         (vld4_lane_u64): Likewise.
11888         (vld4_lane_s8): Likewise.
11889         (vld4_lane_s16): Likewise.
11890         (vld4_lane_s32): Likewise.
11891         (vld4_lane_s64): Likewise.
11892         (vld4_lane_f16): Likewise.
11893         (vld4_lane_f32): Likewise.
11894         (vld4_lane_f64): Likewise.
11895         (vld4_lane_p8): Likewise.
11896         (vld4_lane_p16): Likewise.
11897         (vld4_lane_p64): Likewise.
11898         (vld4q_lane_u8): Likewise.
11899         (vld4q_lane_u16): Likewise.
11900         (vld4q_lane_u32): Likewise.
11901         (vld4q_lane_u64): Likewise.
11902         (vld4q_lane_s8): Likewise.
11903         (vld4q_lane_s16): Likewise.
11904         (vld4q_lane_s32): Likewise.
11905         (vld4q_lane_s64): Likewise.
11906         (vld4q_lane_f16): Likewise.
11907         (vld4q_lane_f32): Likewise.
11908         (vld4q_lane_f64): Likewise.
11909         (vld4q_lane_p8): Likewise.
11910         (vld4q_lane_p16): Likewise.
11911         (vld4q_lane_p64): Likewise.
11912         (vld4_lane_bf16): Likewise.
11913         (vld4q_lane_bf16): Likewise.
11915 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
11917         * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
11918         (__LD3Q_LANE_FUNC): Delete.
11919         (vld3_lane_u8): Define without macro.
11920         (vld3_lane_u16): Likewise.
11921         (vld3_lane_u32): Likewise.
11922         (vld3_lane_u64): Likewise.
11923         (vld3_lane_s8): Likewise.
11924         (vld3_lane_s16): Likewise.
11925         (vld3_lane_s32): Likewise.
11926         (vld3_lane_s64): Likewise.
11927         (vld3_lane_f16): Likewise.
11928         (vld3_lane_f32): Likewise.
11929         (vld3_lane_f64): Likewise.
11930         (vld3_lane_p8): Likewise.
11931         (vld3_lane_p16): Likewise.
11932         (vld3_lane_p64): Likewise.
11933         (vld3q_lane_u8): Likewise.
11934         (vld3q_lane_u16): Likewise.
11935         (vld3q_lane_u32): Likewise.
11936         (vld3q_lane_u64): Likewise.
11937         (vld3q_lane_s8): Likewise.
11938         (vld3q_lane_s16): Likewise.
11939         (vld3q_lane_s32): Likewise.
11940         (vld3q_lane_s64): Likewise.
11941         (vld3q_lane_f16): Likewise.
11942         (vld3q_lane_f32): Likewise.
11943         (vld3q_lane_f64): Likewise.
11944         (vld3q_lane_p8): Likewise.
11945         (vld3q_lane_p16): Likewise.
11946         (vld3q_lane_p64): Likewise.
11947         (vld3_lane_bf16): Likewise.
11948         (vld3q_lane_bf16): Likewise.
11950 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
11952         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
11953         (__LD2Q_LANE_FUNC): Likewise.
11954         (vld2_lane_u8): Define without macro.
11955         (vld2_lane_u16): Likewise.
11956         (vld2_lane_u32): Likewise.
11957         (vld2_lane_u64): Likewise.
11958         (vld2_lane_s8): Likewise.
11959         (vld2_lane_s16): Likewise.
11960         (vld2_lane_s32): Likewise.
11961         (vld2_lane_s64): Likewise.
11962         (vld2_lane_f16): Likewise.
11963         (vld2_lane_f32): Likewise.
11964         (vld2_lane_f64): Likewise.
11965         (vld2_lane_p8): Likewise.
11966         (vld2_lane_p16): Likewise.
11967         (vld2_lane_p64): Likewise.
11968         (vld2q_lane_u8): Likewise.
11969         (vld2q_lane_u16): Likewise.
11970         (vld2q_lane_u32): Likewise.
11971         (vld2q_lane_u64): Likewise.
11972         (vld2q_lane_s8): Likewise.
11973         (vld2q_lane_s16): Likewise.
11974         (vld2q_lane_s32): Likewise.
11975         (vld2q_lane_s64): Likewise.
11976         (vld2q_lane_f16): Likewise.
11977         (vld2q_lane_f32): Likewise.
11978         (vld2q_lane_f64): Likewise.
11979         (vld2q_lane_p8): Likewise.
11980         (vld2q_lane_p16): Likewise.
11981         (vld2q_lane_p64): Likewise.
11982         (vld2_lane_bf16): Likewise.
11983         (vld2q_lane_bf16): Likewise.
11985 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11987         * haifa-sched.c (advance_one_cycle): Output more context-synchronization
11988         lines for diff.
11990 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11992         * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
11993         (rank_for_schedule): Use it.
11995 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11997         PR rtl-optimization/91598
11998         * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
11999         insns after memory reads and before memory writes.
12001 2021-08-17  Alistair_Lee  <alistair.lee@arm.com>
12003         * rtl.h (CONST_VECTOR_P): New macro.
12004         * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
12005         code testing macros.
12006         (aarch64_ptrue_all_mode): Likewise.
12007         (aarch64_expand_mov_immediate): Likewise.
12008         (aarch64_const_vec_all_in_range_p): Likewise.
12009         (aarch64_rtx_costs): Likewise.
12010         (aarch64_legitimate_constant_p): Likewise.
12011         (aarch64_simd_valid_immediate): Likewise.
12012         (aarch64_simd_make_constant): Likewise.
12013         (aarch64_convert_mult_to_shift): Likewise.
12014         (aarch64_expand_sve_vec_perm): Likewise.
12015         (aarch64_vec_fpconst_pow_of_2): Likewise.
12017 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
12019         PR tree-optimization/101938
12020         * range-op.cc (operator_abs::op1_range): Special case
12021         -TYPE_MIN_VALUE for flag_wrapv.
12023 2021-08-17  Kewen Lin  <linkw@linux.ibm.com>
12025         * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
12026         value extraction.
12028 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
12030         * tree.def (OMP_SCOPE): New tree code.
12031         * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
12032         * tree-nested.c (convert_nonlocal_reference_stmt,
12033         convert_local_reference_stmt, convert_gimple_call): Handle
12034         GIMPLE_OMP_SCOPE.
12035         * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
12036         * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
12037         * gimple.c (gimple_build_omp_scope): New function.
12038         (gimple_copy): Handle GIMPLE_OMP_SCOPE.
12039         * gimple.h (gimple_build_omp_scope): Declare.
12040         (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
12041         (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
12042         gimple_omp_scope_set_clauses): New inline functions.
12043         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
12044         * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
12045         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
12046         * gimple-walk.c (walk_gimple_stmt): Likewise.
12047         * gimple-low.c (lower_stmt): Likewise.
12048         * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
12049         (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
12050         like ORT_WORKSHARE constructs.  Adjust diagnostics for %<scope%>
12051         allowing task reductions.  Reject inscan reductions on scope.
12052         (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
12053         (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
12054         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
12055         (estimate_num_insns): Likewise.
12056         * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
12057         contexts if var isn't privatized there.
12058         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
12059         (scan_omp_1_stmt): Likewise.
12060         (maybe_add_implicit_barrier_cancel): Look through outer
12061         scope constructs.
12062         (lower_omp_scope): New function.
12063         (lower_omp_task_reductions): Handle OMP_SCOPE.
12064         (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
12065         (diagnose_sb_1, diagnose_sb_2): Likewise.
12066         * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
12067         (expand_omp): Handle GIMPLE_OMP_SCOPE.
12068         (omp_make_gimple_edges): Likewise.
12069         * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
12071 2021-08-17  Richard Biener  <rguenther@suse.de>
12073         PR tree-optimization/101925
12074         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
12075         reverse on COMPONENT_REF and ARRAY_REF according to
12076         what reverse_storage_order_for_component_p does.
12077         (vn_reference_eq): Compare reversed on reference ops.
12078         (reverse_storage_order_for_component_p): New overload.
12079         (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
12080         on the reference looked up.
12082 2021-08-17  Jeff Law  <jlaw@localhost.localdomain>
12084         * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
12085         shifts on the H8/S.
12086         (h8300_option_override): Use loops on H8/S more often when optimizing
12087         for size.
12088         (get_shift_alg): Handle new "special" cases on H8/S.  Simplify
12089         accordingly.  Handle various arithmetic right shifts with special
12090         sequences that we couldn't handle before.
12092 2021-08-16  Jeff Law  <jlaw@localhost.localdomain>
12094         * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
12096 2021-08-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12098         * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
12099         * config/sparc/sparc.c (sparc_gcov_type_size): New.
12100         (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
12101         * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
12102         * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
12103         * doc/tm.texi.in: Regenerate.
12104         * target.def (gcov_type_size): New target hook.
12105         * targhooks.c (default_gcov_type_size): New.
12106         * targhooks.h (default_gcov_type_size): Declare.
12107         * tree-profile.c (gimple_gen_edge_profiler): Use precision of
12108         gcov_type_node.
12109         (gimple_gen_time_profiler): Likewise.
12111 2021-08-16  Eric Botcazou  <ebotcazou@gcc.gnu.org>
12113         * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
12115 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
12117         PR middle-end/101931
12118         * omp-low.c (omp_runtime_api_call): Update for routines
12119         added in the meanwhile.
12121 2021-08-16  Martin Liska  <mliska@suse.cz>
12123         PR tree-optimization/100393
12124         * tree-switch-conversion.c (group_cluster::dump): Use
12125           get_comparison_count.
12126         (jump_table_cluster::find_jump_tables): Pre-compute number of
12127         comparisons and then decrement it. Cache also max_ratio.
12128         (jump_table_cluster::can_be_handled): Change signature.
12129         * tree-switch-conversion.h (get_comparison_count): New.
12131 2021-08-16  Eric Botcazou  <ebotcazou@gcc.gnu.org>
12133         * dwarf2out.c (add_data_member_location_attribute): Use GNAT
12134         encodings only when -fgnat-encodings=all is specified.
12135         (add_bound_info): Likewise.
12136         (add_byte_size_attribute): Likewise.
12137         (gen_member_die): Likewise.
12139 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
12141         * omp-oacc-neuter-broadcast.cc
12142         (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
12144 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
12146         * omp-oacc-neuter-broadcast.cc
12147         (execute_omp_oacc_neuter_broadcast): Clarify memory management for
12148         'prop_set'.
12150 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
12152         * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
12153         (execute_omp_oacc_neuter_broadcast): ... here.
12154         (install_var_field, build_receiver_ref, build_sender_ref): Take
12155         'field_map_t *' parameter.  Adjust all users.
12156         (worker_single_copy, neuter_worker_single): Take a
12157         'record_field_map_t *' parameter.  Adjust all users.
12159 2021-08-16  liuhongt  <hongtao.liu@intel.com>
12161         PR target/101930
12162         * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
12163         reg.
12165 2021-08-16  Martin Liska  <mliska@suse.cz>
12167         PR ipa/101726
12168         * multiple_target.c (create_dispatcher_calls): Make default
12169           function local only if it is a definition.
12171 2021-08-16  Martin Liska  <mliska@suse.cz>
12173         PR ipa/100600
12174         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
12175           consider equal SSA_NAMEs when one is a param.
12177 2021-08-16  liuhongt  <hongtao.liu@intel.com>
12179         PR target/101846
12180         * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
12181         Support vpermi2b for V32QI/V16QImode.
12182         (ix86_extract_perm_from_pool_constant): New function.
12183         (ix86_expand_vec_one_operand_perm_avx512): Support
12184         vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
12185         (expand_vec_perm_1): Adjust comments for upper.
12186         * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
12187         New declare.
12188         * config/i386/predicates.md (permvar_truncate_operand): New predicate.
12189         (pshufb_truncv4siv4hi_operand): Ditto.
12190         (pshufb_truncv8hiv8qi_operand): Ditto.
12191         * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
12192         New pre_reload define_insn_and_split.
12193         (*avx512f_permvar_truncv8siv8hi_1): Ditto.
12194         (*avx512f_vpermvar_truncv8div8si_1): Ditto.
12195         (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
12196         (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
12197         (*avx512f_permvar_truncv4div4si_1): Ditto.
12198         (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
12199         (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
12200         (*avx512f_pshufd_truncv2div2si_1): Ditto.
12202 2021-08-16  Kito Cheng  <kito.cheng@sifive.com>
12204         * config/riscv/multilib-generator: Support code model option for
12205         multi-lib.
12206         * doc/install.texi: Add document of new option for
12207         --with-multilib-generator.
12209 2021-08-15  Clément Chigot  <clement.chigot@atos.net>
12211         * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
12212         (rs6000_legitimize_tls_address_aix): Use it.
12213         (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
12214         xcoff_tls_exec_model_detected is true.
12216 2021-08-15  Jeff Law  <jlaw@localhost.localdomain>
12218         * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
12219         to allow a bit more code growth, saving many dozens of cycles.
12220         (h8300_option_override): Adjus shift_alg_si if optimizing for
12221         code size.
12222         (get_shift_alg): Use special + inline shifts for residuals
12223         in more cases.
12225 2021-08-14  Stafford Horne  <shorne@gmail.com>
12227         PR target/99783
12228         * config/or1k/or1k-opts.h: New file.
12229         * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
12230         Support generating gotha relocations if -mcmodel=large is
12231         specified.
12232         * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
12233         New macros.
12234         * config/or1k/or1k.opt (mcmodel=): New option.
12235         * doc/invoke.texi (OpenRISC Options): Document mcmodel.
12237 2021-08-14  Martin Sebor  <msebor@redhat.com>
12239         PR middle-end/101791
12240         * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
12241         to valid_new_delete_pair_p.
12242         * tree.c (valid_new_delete_pair_p): Add argument.
12243         * tree.h (valid_new_delete_pair_p): Same.
12245 2021-08-14  Jakub Jelinek  <jakub@redhat.com>
12247         PR target/101896
12248         * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
12249         <case E_V64QImode>: For this mode assert
12250         !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
12252 2021-08-13  Michael Meissner  <meissner@linux.ibm.com>
12254         PR target/99921
12255         * config/rs6000/altivec.md (xxeval): Use register_predicate
12256         instead of altivec_register_predicate.
12258 2021-08-13  Martin Sebor  <msebor@redhat.com>
12260         PR middle-end/101734
12261         * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
12262         (maybe_warn_operand): Call it.
12264 2021-08-13  Martin Liska  <mliska@suse.cz>
12266         PR ipa/101354
12267         * attribs.c (decl_attributes): Make naked functions "noipa"
12268           functions.
12270 2021-08-13  Martin Liska  <mliska@suse.cz>
12272         PR ipa/101261
12273         * symtab.c (symtab_node::noninterposable_alias): Do not create
12274           local aliases for target_clone functions as the clonning pass
12275           rejects aliases.
12277 2021-08-13  Martin Liska  <mliska@suse.cz>
12279         * opts.c (LIVE_PATCHING_OPTION): Define.
12280         (control_options_for_live_patching): Use it in error messages.
12282 2021-08-13  Jan Hubicka  <hubicka@ucw.cz>
12284         * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
12285         (implicit_const_eaf_flags, implicit_pure_eaf_flags,
12286          ignore_stores_eaf_flags): New constants.
12287         (remove_useless_eaf_flags): New function.
12288         (eaf_flags_useful_p): Use it.
12289         (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
12290         handle EAF_NOREAD.
12291         (modref_lattice::init): Add EAF_NOREAD.
12292         (modref_lattice::add_escape_point): Do not reacord escape point if
12293         result is unused.
12294         (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
12295         use remove_useless_eaf_flags.
12296         (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
12297         (modref_lattice::merge_direct_load): Add EAF_NOREAD
12298         (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
12299         (analyze_parms): Use remove_useless_eaf_flags.
12300         (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
12301         (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
12302         use remove_useless_eaf_flags.
12303         (modref_propagate_flags_in_scc): Update.
12304         * ipa-modref.h: Turn eaf_flags_t back to char.
12305         * tree-core.h (EAF_NOT_RETURNED): Fix.
12306         (EAF_NOREAD): New constant
12307         * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
12308         EAF_NOREAD.
12309         * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
12310         (handle_pure_call): Likewise.
12312 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
12314         * tree.def (OMP_MASKED): New tree code.
12315         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
12316         * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
12317         OMP_CLAUSE_FILTER_EXPR): Define.
12318         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
12319         (omp_clause_code_name): Likewise.
12320         (walk_tree_1): Handle OMP_CLAUSE_FILTER.
12321         * tree-nested.c (convert_nonlocal_omp_clauses,
12322         convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
12323         (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
12324         convert_gimple_call): Handle GIMPLE_OMP_MASTER.
12325         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
12326         (dump_generic_node): Handle OMP_MASTER.
12327         * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
12328         * gimple.c (gimple_build_omp_masked): New function.
12329         (gimple_copy): Handle GIMPLE_OMP_MASKED.
12330         * gimple.h (gimple_build_omp_masked): Declare.
12331         (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
12332         (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
12333         gimple_omp_masked_set_clauses): New inline functions.
12334         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
12335         * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
12336         (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
12337         * gimple-walk.c (walk_gimple_stmt): Likewise.
12338         * gimple-low.c (lower_stmt): Likewise.
12339         * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
12340         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER.  For clauses
12341         that take one expression rather than decl or constant, force
12342         gimplification of that into a SSA_NAME or temporary unless min
12343         invariant.
12344         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
12345         (gimplify_expr): Handle OMP_MASKED.
12346         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
12347         (estimate_num_insns): Likewise.
12348         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
12349         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED.  Adjust
12350         diagnostics for existence of masked construct.
12351         (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
12352         diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
12353         * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
12354         Likewise.
12356 2021-08-12  Uroš Bizjak  <ubizjak@gmail.com>
12358         PR target/98309
12359         * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
12360         (ldexp<mode>3): Use avx512f_scalef<mode>2.
12361         (UNSPEC_SCALEF): Move from ...
12362         * config/i386/sse.md (UNSPEC_SCALEF): ... here.
12364 2021-08-12  Jan Hubicka  <hubicka@ucw.cz>
12366         * ipa-split.c (consider_split): Fix condition testing void functions.
12368 2021-08-12  Aldy Hernandez  <aldyh@redhat.com>
12370         * doc/invoke.texi: Remove docs for threader-mode param.
12371         * flag-types.h (enum threader_mode): Remove.
12372         * params.opt: Remove threader-mode param.
12373         * tree-ssa-threadbackward.c (class back_threader): Remove
12374         path_is_unreachable_p.
12375         Make find_paths private.
12376         Add maybe_thread and thread_through_all_blocks.
12377         Remove reference marker for m_registry.
12378         Remove reference marker for m_profit.
12379         (back_threader::back_threader): Adjust for registry and profit not
12380         being references.
12381         (dump_path): Move down.
12382         (debug): Move down.
12383         (class thread_jumps): Remove.
12384         (class back_threader_registry): Remove m_all_paths.
12385         Remove destructor.
12386         (thread_jumps::thread_through_all_blocks): Move to back_threader
12387         class.
12388         (fsm_find_thread_path): Remove
12389         (back_threader::maybe_thread): New.
12390         (back_threader::thread_through_all_blocks): Move from
12391         thread_jumps.
12392         (back_threader_registry::back_threader_registry): Remove
12393         m_all_paths.
12394         (back_threader_registry::~back_threader_registry): Remove.
12395         (thread_jumps::find_taken_edge): Remove.
12396         (thread_jumps::check_subpath_and_update_thread_path): Remove.
12397         (thread_jumps::maybe_register_path): Remove.
12398         (thread_jumps::handle_phi): Remove.
12399         (handle_assignment_p): Remove.
12400         (thread_jumps::handle_assignment): Remove.
12401         (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
12402         (thread_jumps::find_jump_threads_backwards): Remove.
12403         (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
12404         (try_thread_blocks): Rename find_jump_threads_backwards to
12405         maybe_thread.
12406         (pass_early_thread_jumps::execute): Same.
12408 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
12410         * tree-core.h (omp_clause_proc_bind_kind): Add
12411         OMP_CLAUSE_PROC_BIND_PRIMARY.
12412         * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
12413         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
12415 2021-08-12  Claudiu Zissulescu  <claziss@synopsys.com>
12417         * common/config/arc/arc-common.c (arc_option_init_struct): Remove
12418         fno-common reference.
12419         * config/arc/arc.c (arc_override_options): Remove overriding of
12420         flag_no_common.
12422 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
12424         PR target/101860
12425         * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
12426         If d->testing_p, return true after performing checks instead of
12427         actually expanding the insn.
12428         (expand_vec_perm_broadcast_1): Handle V32HImode - assert
12429         !TARGET_AVX512BW and return false.
12431 2021-08-12  Eric Botcazou  <ebotcazou@gcc.gnu.org>
12433         * configure.ac (PE linker --disable-dynamicbase support): New check.
12434         * configure: Regenerate.
12435         * config.in: Likewise.
12436         * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
12437         (LINK_SPEC): Use it.
12438         * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
12439         (LINK_SPEC): Likewise.
12441 2021-08-12  liuhongt  <hongtao.liu@intel.com>
12443         PR target/101846
12444         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
12445         post_reload define_insn_and_split.
12446         (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
12447         (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
12448         (*avx512f_zero_extendv16hiv16si2_2): Ditto.
12449         (*avx2_zero_extendv8hiv8si2_2): Ditto.
12450         (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
12451         (*avx512f_zero_extendv8siv8di2_2): Ditto.
12452         (*avx2_zero_extendv4siv4di2_2): Ditto.
12453         (*sse4_1_zero_extendv2siv2di2_4): Ditto.
12454         (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
12455         mode iterator.
12457 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
12459         * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
12460         power6 stanzas.
12462 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
12464         * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
12466 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
12468         * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
12469         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
12470         initialization of pcvoid_type_node here...
12471         (altivec_init_builtins): ...from here.
12472         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
12473         RS6000_BTI_const_ptr_void.
12474         (pcvoid_type_node): New macro.
12476 2021-08-11  Richard Biener  <rguenther@suse.de>
12478         PR target/101877
12479         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
12480         hard-register accesses.
12482 2021-08-11  Richard Biener  <rguenther@suse.de>
12484         * tree-ssa-operands.c (operands_scanner::get_expr_operands):
12485         Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
12486         to determine has_volatile_ops.
12488 2021-08-11  Eric Botcazou  <ebotcazou@gcc.gnu.org>
12490         * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
12492 2021-08-11  Jan Hubicka  <hubicka@ucw.cz>
12493             Alexandre Oliva  <oliva@adacore.com>
12495         * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
12496         dumping.
12497         (modref_lattice::merge_deref): Fix handling of indirect scape points.
12498         (update_escape_summary_1): Likewise.
12499         (update_escape_summary): Likewise.
12500         (ipa_merge_modref_summary_after_inlining): Likewise.
12502 2021-08-11  Richard Biener  <rguenther@suse.de>
12504         PR middle-end/101858
12505         * fold-const.c (fold_binary_loc): Guard simplification
12506         of  X < (cast) (1 << Y) to integer types.
12508 2021-08-11  Richard Biener  <rguenther@suse.de>
12510         PR tree-optimization/101861
12511         * tree-vect-stmts.c (vectorizable_load): Fix error in
12512         previous change with regard to gather vectorization.
12514 2021-08-11  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
12516         PR target/66791
12517         * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
12518         with constructor.
12519         (vdup_n_s16): Likewise.
12520         (vdup_n_s32): Likewise.
12521         (vdup_n_s64): Likewise.
12522         (vdup_n_u8): Likewise.
12523         (vdup_n_u16): Likewise.
12524         (vdup_n_u32): Likewise.
12525         (vdup_n_u64): Likewise.
12526         (vdup_n_p8): Likewise.
12527         (vdup_n_p16): Likewise.
12528         (vdup_n_p64): Likewise.
12529         (vdup_n_f16): Likewise.
12530         (vdup_n_f32): Likewise.
12531         (vdupq_n_s8): Likewise.
12532         (vdupq_n_s16): Likewise.
12533         (vdupq_n_s32): Likewise.
12534         (vdupq_n_s64): Likewise.
12535         (vdupq_n_u8): Likewise.
12536         (vdupq_n_u16): Likewise.
12537         (vdupq_n_u32): Likewise.
12538         (vdupq_n_u64): Likewise.
12539         (vdupq_n_p8): Likewise.
12540         (vdupq_n_p16): Likewise.
12541         (vdupq_n_p64): Likewise.
12542         (vdupq_n_f16): Likewise.
12543         (vdupq_n_f32): Likewise.
12544         (vmov_n_s8): Replace call to builtin with call to corresponding
12545         vdup_n intrinsic.
12546         (vmov_n_s16): Likewise.
12547         (vmov_n_s32): Likewise.
12548         (vmov_n_s64): Likewise.
12549         (vmov_n_u8): Likewise.
12550         (vmov_n_u16): Likewise.
12551         (vmov_n_u32): Likewise.
12552         (vmov_n_u64): Likewise.
12553         (vmov_n_p8): Likewise.
12554         (vmov_n_p16): Likewise.
12555         (vmov_n_f16): Likewise.
12556         (vmov_n_f32): Likewise.
12557         (vmovq_n_s8): Likewise.
12558         (vmovq_n_s16): Likewise.
12559         (vmovq_n_s32): Likewise.
12560         (vmovq_n_s64): Likewise.
12561         (vmovq_n_u8): Likewise.
12562         (vmovq_n_u16): Likewise.
12563         (vmovq_n_u32): Likewise.
12564         (vmovq_n_u64): Likewise.
12565         (vmovq_n_p8): Likewise.
12566         (vmovq_n_p16): Likewise.
12567         (vmovq_n_f16): Likewise.
12568         (vmovq_n_f32): Likewise.
12569         * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
12571 2021-08-11  liuhongt  <hongtao.liu@intel.com>
12573         PR target/98309
12574         * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
12575         when TARGET_AVX512F and TARGET_SSE_MATH.
12577 2021-08-10  Jakub Jelinek  <jakub@redhat.com>
12579         PR target/80355
12580         * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
12581         for V32HImode if !TARGET_AVX512BW.
12582         (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
12583         If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
12584         early, but actually check the permutation.
12586 2021-08-10  Richard Biener  <rguenther@suse.de>
12588         PR tree-optimization/101809
12589         * tree-vect-stmts.c (get_load_store_type): Allow emulated
12590         gathers with offset vector nunits being a constant multiple
12591         of the data vector nunits.
12592         (vect_get_gather_scatter_ops): Use the appropriate nunits
12593         for the offset vector defs.
12594         (vectorizable_store): Adjust call to
12595         vect_get_gather_scatter_ops.
12596         (vectorizable_load): Likewise.  Handle the case of less
12597         offset vectors than data vectors.
12599 2021-08-10  Jakub Jelinek  <jakub@redhat.com>
12601         PR target/80355
12602         * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
12603         *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
12604         patterns.
12606 2021-08-10  Richard Biener  <rguenther@suse.de>
12608         PR tree-optimization/101801
12609         PR tree-optimization/101819
12610         * tree-vectorizer.h (vect_emulated_vector_p): Declare.
12611         * tree-vect-loop.c (vect_emulated_vector_p): New function.
12612         (vectorizable_reduction): Re-instantiate a check for emulated
12613         operations.
12614         * tree-vect-stmts.c (vectorizable_shift): Likewise.
12615         (vectorizable_operation): Likewise.  Cost emulated vector
12616         operations according to the scalar sequence synthesized by
12617         vector lowering.
12619 2021-08-10  Richard Biener  <rguenther@suse.de>
12621         PR middle-end/101824
12622         * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
12623         volatile in case the variable was.
12625 2021-08-10  H.J. Lu  <hjl.tools@gmail.com>
12627         PR target/101804
12628         * config/i386/constraints.md (BC): Document for integer SSE
12629         constant all bits set operand.
12630         (BF): New constraint for const floating-point all bits set
12631         vectors.
12632         * config/i386/i386.c (standard_sse_constant_p): Likewise.
12633         (standard_sse_constant_opcode): Likewise.
12634         * config/i386/sse.md (sseconstm1): New mode attribute.
12635         (mov<mode>_internal): Replace BC with <sseconstm1>.
12637 2021-08-10  liuhongt  <hongtao.liu@intel.com>
12639         * config/i386/sse.md (cond_<insn><mode>): New expander.
12640         (VI248_AVX512VLBW): New mode iterator.
12641         * config/i386/predicates.md
12642         (nonimmediate_or_const_vec_dup_operand): New predicate.
12644 2021-08-09  Andrew MacLeod  <amacleod@redhat.com>
12646         PR tree-optimization/101741
12647         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
12648         type of parameter for toupper/tolower.
12650 2021-08-09  Martin Jambor  <mjambor@suse.cz>
12652         PR testsuite/101654
12653         * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
12655 2021-08-09  Pat Haugen  <pthaugen@linux.ibm.com>
12657         * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
12658         register.
12659         (is_store_insn1): Verify source is a register.
12661 2021-08-09  Uroš Bizjak  <ubizjak@gmail.com>
12663         PR target/101812
12664         * config/i386/mmx.md (<any_logic:code>v2sf3):
12665         Rename from *mmx_<any_logic:code>v2sf3
12667 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12669         * config/nvptx/nvptx.c: Cross-reference parts adapted in
12670         'gcc/omp-oacc-neuter-broadcast.cc'.
12671         * omp-low.c: Likewise.
12672         * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
12673         the above files.
12675 2021-08-09  Julian Brown  <julian@codesourcery.com>
12676             Kwok Cheung Yeung  <kcy@codesourcery.com>
12677             Thomas Schwinge  <thomas@codesourcery.com>
12679         * config/gcn/gcn.c (gcn_init_builtins): Override decls for
12680         BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
12681         BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
12682         (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
12683         (gcn_fork_join): Update comment.
12684         * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
12685         (macc_experimental_workers): Remove unused option.
12687 2021-08-09  Julian Brown  <julian@codesourcery.com>
12688             Nathan Sidwell  <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
12689             Kwok Cheung Yeung  <kcy@codesourcery.com>
12690             Thomas Schwinge  <thomas@codesourcery.com>
12692         * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
12693         * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
12694         Add documentation hook.
12695         * doc/tm.texi: Regenerate.
12696         * omp-oacc-neuter-broadcast.cc: New file.
12697         * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
12698         (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
12699         (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
12700         * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
12701         * target.def (goacc.create_worker_broadcast_record): Add target
12702         hook.
12703         * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
12704         prototype.
12705         * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
12706         Rename prototype to...
12707         (gcn_goacc_create_worker_broadcast_record): ... this.
12708         * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
12709         function to...
12710         (gcn_goacc_create_worker_broadcast_record): ... this.
12711         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
12712         Rename to...
12713         (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
12715 2021-08-09  Tejas Belagod  <tejas.belagod@arm.com>
12717         PR target/101609
12718         * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
12719         the right iterator.
12721 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12723         * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
12725 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12727         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
12728         consider '-foffload-abi'.
12729         * common.opt (-foffload-abi): Remove 'Var', 'Init'.
12730         * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
12731         Ignore.
12733 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12735         * optc-gen.awk: Sanity check that 'Init' doesn't appear without
12736         'Var'.
12738 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12740         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
12742 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12744         * doc/gty.texi (Files): Update.
12746 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
12748         * doc/gty.texi (Files): Fix GTY header file example.
12750 2021-08-09  Roger Sayle  <roger@nextmovesoftware.com>
12752         * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
12753         determine the upper and lower bounds from a mask-value pair.
12754         (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
12755         absolute value and unsigned absolute value expressions.
12756         (bit_value_binop):  Initialize *VAL's precision.
12757         [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
12758         upper and lower bounds of operands.  Add LE_EXPR/GE_EXPR
12759         support when the operands are unknown but potentially equal.
12760         [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
12762 2021-08-09  Bin Cheng  <bin.cheng@linux.alibaba.com>
12764         * config/aarch64/aarch64.md
12765         (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
12767 2021-08-08  Sergei Trofimovich  <siarheit@google.com>
12769         * lra-constraints.c: Fix s/otput/output/ typo.
12771 2021-08-06  Martin Sebor  <msebor@redhat.com>
12773         * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
12774         (expand_builtin_strcat): Same.
12775         (expand_builtin_stpncpy): Same.
12776         (expand_builtin_strncat): Same.
12777         (check_read_access): Same.
12778         (check_memop_access): Same.
12779         (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
12780         (expand_builtin_strnlen): Same.
12781         (expand_builtin_memcpy): Same.
12782         (expand_builtin_memmove): Same.
12783         (expand_builtin_mempcpy): Same.
12784         (expand_builtin_strcpy): Same.
12785         (expand_builtin_strcpy_args): Same.
12786         (expand_builtin_stpcpy_1): Same.
12787         (expand_builtin_strncpy): Same.
12788         (expand_builtin_memset): Same.
12789         (expand_builtin_bzero): Same.
12790         (expand_builtin_strcmp): Same.
12791         (expand_builtin_strncmp): Same.
12792         (expand_builtin): Remove handlers.
12793         (fold_builtin_strlen): Add a comment.
12794         * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
12795         * calls.c (maybe_warn_nonstring_arg): Same.
12796         * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
12797         * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
12798         (gimple_fold_builtin_stpcpy): Same.
12799         * gimple-ssa-warn-access.cc (has_location): New function.
12800         (get_location): Same.
12801         (get_callee_fndecl): Same.
12802         (call_nargs): Same.
12803         (call_arg): Same.
12804         (warn_string_no_nul): Define.
12805         (unterminated_array): Same.
12806         (check_nul_terminated_array): Same.
12807         (maybe_warn_nonstring_arg): Same.
12808         (maybe_warn_for_bound): Same.
12809         (warn_for_access): Same.
12810         (check_access): Same.
12811         (check_memop_access): Same.
12812         (check_read_access): Same.
12813         (warn_dealloc_offset): Use helper functions.
12814         (maybe_emit_free_warning): Same.
12815         (class pass_waccess): Add members.
12816         (check_strcat): New function.
12817         (check_strncat): New function.
12818         (check_stxcpy): New function.
12819         (check_stxncpy): New function.
12820         (check_strncmp): New function.
12821         (pass_waccess::check_builtin): New function.
12822         (pass_waccess::check): Call it.
12823         * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
12824         builtins.h.
12825         (maybe_warn_for_bound): Same.
12826         (check_access): Same.
12827         (check_memop_access): Same.
12828         (check_read_access): Same.
12829         * pointer-query.h (struct access_data): Define a ctor overload.
12831 2021-08-06  Richard Biener  <rguenther@suse.de>
12833         PR tree-optimization/101801
12834         * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
12835         (vect_can_vectorize_without_simd_p): ... to this.
12836         * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
12837         (vect_can_vectorize_without_simd_p): ... to this and fold
12838         in vect_min_worthwhile_factor.
12839         (vect_min_worthwhile_factor): Remove.
12840         (vectorizable_reduction): Adjust and remove the cost part.
12841         * tree-vect-stmts.c (vectorizable_shift): Likewise.
12842         (vectorizable_operation): Likewise.
12844 2021-08-06  Uroš Bizjak  <ubizjak@gmail.com>
12846         PR target/101797
12847         * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
12848         Add general_gr_operand predicate to operand 3.
12850 2021-08-06  Roger Sayle  <roger@nextmovesoftware.com>
12852         * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
12853         CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
12855 2021-08-06  Tamar Christina  <tamar.christina@arm.com>
12857         * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
12858         register_svprfop): Pass vec<> by pointer.
12859         * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
12860         * langhooks.c (lhd_simulate_enum_decl): Likewise.
12861         * langhooks.h (struct lang_hooks_for_types): Likewise.
12863 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
12865         * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
12866         __builtin_memcpy instead of constructing an additional
12867         __builtin_aarch64_simd_oi one vector at a time.
12868         (vst1q_bf16_x2): Likewise.
12869         (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
12870         an additional __builtin_aarch64_simd_ci one vector at a time.
12871         (vst1q_bf16_x3): Likewise.
12872         (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
12873         (vst1q_bf16_x4): Likewise.
12874         (vst2_bf16): Use __builtin_memcpy instead of constructing an
12875         additional __builtin_aarch64_simd_oi one vector at a time.
12876         (vst2q_bf16): Likewise.
12877         (vst3_bf16): Use __builtin_memcpy instead of constructing an
12878         additional __builtin_aarch64_simd_ci mode one vector at a
12879         time.
12880         (vst3q_bf16): Likewise.
12881         (vst4_bf16): Use __builtin_memcpy instead of constructing an
12882         additional __builtin_aarch64_simd_xi one vector at a time.
12883         (vst4q_bf16): Likewise.
12885 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
12887         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
12888         (__ST2Q_LANE_FUNC): Delete.
12889         (vst2_lane_f16): Use __builtin_memcpy to copy vector
12890         structure instead of constructing __builtin_aarch64_simd_oi
12891         one vector at a time.
12892         (vst2_lane_f32): Likewise.
12893         (vst2_lane_f64): Likewise.
12894         (vst2_lane_p8): Likewise.
12895         (vst2_lane_p16): Likewise.
12896         (vst2_lane_p64): Likewise.
12897         (vst2_lane_s8): Likewise.
12898         (vst2_lane_s16): Likewise.
12899         (vst2_lane_s32): Likewise.
12900         (vst2_lane_s64): Likewise.
12901         (vst2_lane_u8): Likewise.
12902         (vst2_lane_u16): Likewise.
12903         (vst2_lane_u32): Likewise.
12904         (vst2_lane_u64): Likewise.
12905         (vst2_lane_bf16): Likewise.
12906         (vst2q_lane_f16): Use __builtin_memcpy to copy vector
12907         structure instead of using a union.
12908         (vst2q_lane_f32): Likewise.
12909         (vst2q_lane_f64): Likewise.
12910         (vst2q_lane_p8): Likewise.
12911         (vst2q_lane_p16): Likewise.
12912         (vst2q_lane_p64): Likewise.
12913         (vst2q_lane_s8): Likewise.
12914         (vst2q_lane_s16): Likewise.
12915         (vst2q_lane_s32): Likewise.
12916         (vst2q_lane_s64): Likewise.
12917         (vst2q_lane_u8): Likewise.
12918         (vst2q_lane_u16): Likewise.
12919         (vst2q_lane_u32): Likewise.
12920         (vst2q_lane_u64): Likewise.
12921         (vst2q_lane_bf16): Likewise.
12923 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
12925         * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
12926         (__ST3Q_LANE_FUNC): Delete.
12927         (vst3_lane_f16): Use __builtin_memcpy to copy vector
12928         structure instead of constructing __builtin_aarch64_simd_ci
12929         one vector at a time.
12930         (vst3_lane_f32): Likewise.
12931         (vst3_lane_f64): Likewise.
12932         (vst3_lane_p8): Likewise.
12933         (vst3_lane_p16): Likewise.
12934         (vst3_lane_p64): Likewise.
12935         (vst3_lane_s8): Likewise.
12936         (vst3_lane_s16): Likewise.
12937         (vst3_lane_s32): Likewise.
12938         (vst3_lane_s64): Likewise.
12939         (vst3_lane_u8): Likewise.
12940         (vst3_lane_u16): Likewise.
12941         (vst3_lane_u32): Likewise.
12942         (vst3_lane_u64): Likewise.
12943         (vst3_lane_bf16): Likewise.
12944         (vst3q_lane_f16): Use __builtin_memcpy to copy vector
12945         structure instead of using a union.
12946         (vst3q_lane_f32): Likewise.
12947         (vst3q_lane_f64): Likewise.
12948         (vst3q_lane_p8): Likewise.
12949         (vst3q_lane_p16): Likewise.
12950         (vst3q_lane_p64): Likewise.
12951         (vst3q_lane_s8): Likewise.
12952         (vst3q_lane_s16): Likewise.
12953         (vst3q_lane_s32): Likewise.
12954         (vst3q_lane_s64): Likewise.
12955         (vst3q_lane_u8): Likewise.
12956         (vst3q_lane_u16): Likewise.
12957         (vst3q_lane_u32): Likewise.
12958         (vst3q_lane_u64): Likewise.
12959         (vst3q_lane_bf16): Likewise.
12961 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
12963         * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
12964         (__ST4Q_LANE_FUNC): Delete.
12965         (vst4_lane_f16): Use __builtin_memcpy to copy vector
12966         structure instead of constructing __builtin_aarch64_simd_xi
12967         one vector at a time.
12968         (vst4_lane_f32): Likewise.
12969         (vst4_lane_f64): Likewise.
12970         (vst4_lane_p8): Likewise.
12971         (vst4_lane_p16): Likewise.
12972         (vst4_lane_p64): Likewise.
12973         (vst4_lane_s8): Likewise.
12974         (vst4_lane_s16): Likewise.
12975         (vst4_lane_s32): Likewise.
12976         (vst4_lane_s64): Likewise.
12977         (vst4_lane_u8): Likewise.
12978         (vst4_lane_u16): Likewise.
12979         (vst4_lane_u32): Likewise.
12980         (vst4_lane_u64): Likewise.
12981         (vst4_lane_bf16): Likewise.
12982         (vst4q_lane_f16): Use __builtin_memcpy to copy vector
12983         structure instead of using a union.
12984         (vst4q_lane_f32): Likewise.
12985         (vst4q_lane_f64): Likewise.
12986         (vst4q_lane_p8): Likewise.
12987         (vst4q_lane_p16): Likewise.
12988         (vst4q_lane_p64): Likewise.
12989         (vst4q_lane_s8): Likewise.
12990         (vst4q_lane_s16): Likewise.
12991         (vst4q_lane_s32): Likewise.
12992         (vst4q_lane_s64): Likewise.
12993         (vst4q_lane_u8): Likewise.
12994         (vst4q_lane_u16): Likewise.
12995         (vst4q_lane_u32): Likewise.
12996         (vst4q_lane_u64): Likewise.
12997         (vst4q_lane_bf16): Likewise.
12999 2021-08-06  Martin Liska  <mliska@suse.cz>
13001         * config/rs6000/rs6000.c (rs6000_option_override_internal): When
13002         a target option is restored, it can have
13003         rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
13004         and error should not be emitted.
13006 2021-08-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13008         * gcov-io.h (gcov_write): Declare.
13009         * gcov-io.c (gcov_write): New.
13010         (gcov_write_counter): Remove.
13011         (gcov_write_tag_length): Likewise.
13012         (gcov_write_summary): Replace gcov_write_tag_length() with calls to
13013         gcov_write_unsigned().
13014         * doc/invoke.texi (fprofile-info-section): Mention
13015         __gcov_info_to_gdca().
13017 2021-08-06  Martin Sebor  <msebor@redhat.com>
13019         * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
13020         arguments to by-reference.
13021         (iterate_fix_dominators): Same.
13022         * dominance.h (iterate_fix_dominators): Same.
13023         * ipa-prop.h: Call auto_vec::to_vec_legacy.
13024         * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
13025         arguments to by-reference.
13026         (debug_data_dependence_relation): Same.
13027         (dump_data_dependence_relations): Same.
13028         * tree-data-ref.h (debug_data_dependence_relation): Same.
13029         (dump_data_dependence_relations): Same.
13030         * tree-predcom.c (dump_chains): Same.
13031         (initialize_root_vars_lm): Same.
13032         (determine_unroll_factor): Same.
13033         (replace_phis_by_defined_names): Same.
13034         (insert_init_seqs): Same.
13035         (pcom_worker::tree_predictive_commoning_loop): Call
13036          auto_vec::to_vec_legacy.
13037         * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
13038         arguments to by-reference.
13039         * tree-ssa-threadbackward.c (populate_worklist): Same.
13040         (back_threader::resolve_def): Same.
13041         * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
13042         (vect_enhance_data_refs_alignment): Same.
13043         (vect_check_lower_bound): Same.
13044         (vect_prune_runtime_alias_test_list): Same.
13045         (vect_permute_store_chain): Same.
13046         * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
13047         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
13048         * tree-vectorizer.h (vect_permute_store_chain): Same.
13049         * vec.c (test_init): New function.
13050         (vec_c_tests): Call new function.
13051         * vec.h (vec): Declare ctors, dtor, and assignment.
13052         (auto_vec::vec_to_legacy): New function.
13053         (vec::copy): Adjust initialization.
13055 2021-08-05  H.J. Lu  <hjl.tools@gmail.com>
13057         PR target/99744
13058         * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
13059         callee only uses GPRs.
13060         * config/i386/ia32intrin.h: Revert commit 5463cee2770.
13061         * config/i386/serializeintrin.h: Revert commit 71958f740f1.
13062         * config/i386/x86gprintrin.h: Add
13063         #pragma GCC target("general-regs-only") and #pragma GCC pop_options
13064         to disable non-GPR ISAs.
13066 2021-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13068         PR middle-end/101787
13069         * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
13071 2021-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13073         * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
13074         (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
13075         (vect_is_extending_load, vect_is_integer_truncation): New functions,
13076         moved from aarch64.c but given different names.
13077         * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
13078         (aarch64_is_reduction, aarch64_reduc_type)
13079         (aarch64_embedded_comparison_type, aarch64_comparison_type)
13080         (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
13081         in favor of the above.  Update callers accordingly.
13083 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
13085         PR target/101723
13086         * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
13087         writing .cpu directive in asm output.
13088         * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
13089         (arm_last_printed_arch_string): Delete.
13090         (arm_last-printed_fpu_string): Delete.
13091         (arm_configure_build_target): If use of floating-point/SIMD is
13092         disabled, remove all fp/simd related features from the target ISA.
13093         (last_arm_targ_options): New variable.
13094         (arm_print_asm_arch_directives): Add new parameters.  Change order
13095         of emitted directives and handle all cases here.
13096         (arm_file_start): Always call arm_print_asm_arch_directives, move
13097         all generation of .arch/.arch_extension here.
13098         (arm_file_end): Call arm_print_asm_arch.
13099         (arm_declare_function_name): Call arm_print_asm_arch_directives
13100         instead of printing .arch/.fpu directives directly.
13102 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
13104         * config/arm/arm.c (arm_configure_build_target): Don't call
13105         arm_option_reconfigure_globals.
13106         (arm_option_restore): Call arm_option_reconfigure_globals after
13107         reconfiguring the target.
13108         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
13110 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
13112         * config/arm/arm.c (arm_configure_build_target): Ensure the target's
13113         arch_name is always set.
13115 2021-08-05  Jonathan Wright  <jonathan.wright@arm.com>
13117         * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
13118         of vec_select high-half from being added into Neon subtract
13119         cost.
13121 2021-08-05  Jonathan Wright  <jonathan.wright@arm.com>
13123         * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
13124         of vec_select high-half from being added into Neon add cost.
13126 2021-08-05  Kewen Lin  <linkw@linux.ibm.com>
13128         * cfgloop.h (loops_list::loops_list): Add one optional argument
13129         root and adjust accordingly, update loop tree walking and factor
13130         out to ...
13131         * cfgloop.c (loops_list::walk_loop_tree): ... this.  New function.
13133 2021-08-05  Eric Botcazou  <ebotcazou@gcc.gnu.org>
13135         PR tree-optimization/101626
13136         * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
13137         reverse scalar storage order on a pointer or vector component.
13139 2021-08-05  liuhongt  <hongtao.liu@intel.com>
13141         * config/i386/sse.md (cond_<code><mode>): New expander.
13143 2021-08-05  liuhongt  <hongtao.liu@intel.com>
13145         * config/i386/sse.md (cond_<code><mode>): New expander.
13147 2021-08-05  liuhongt  <hongtao.liu@intel.com>
13149         * config/i386/sse.md (cond_<code><mode>): New expander.
13151 2021-08-04  David Malcolm  <dmalcolm@redhat.com>
13153         PR analyzer/101570
13154         * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
13156 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
13158         PR target/101742
13159         * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
13160         only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
13162 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
13164         PR target/101772
13165         * config/i386/i386-expand.c (ix86_expand_vector_move): Call
13166         ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
13167         data with SSE register from one memory location to another.
13169 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
13171         * config/s390/s390.c (expand_perm_with_vpdi): New function.
13172         (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
13173         * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
13174         parameterized expander.
13175         (*vpdi4<mode>, @vpdi4<mode>): Likewise.
13177 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
13179         * config/s390/s390.c (MAX_VECT_LEN): Define macro.
13180         (struct expand_vec_perm_d): Define struct.
13181         (expand_perm_with_merge): New function.
13182         (vectorize_vec_perm_const_1): New function.
13183         (s390_vectorize_vec_perm_const): New function.
13184         (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
13186 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
13188         * config/s390/vector.md (V_HW_64): Remove mode iterator.
13189         (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
13190         * config/s390/vx-builtins.md
13191         (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
13192         V_HW_64.
13194 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
13196         * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
13197         definition.
13198         * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
13199         definitions.
13200         * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
13201         instead of an unspec.
13203 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
13205         * config/s390/s390-modes.def: Add more vector modes to support
13206         concatenation of two vectors.
13207         * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
13208         prototype.
13209         (s390_expand_merge): Likewise.
13210         * config/s390/s390.c (s390_expand_merge_perm_const): New function.
13211         (s390_expand_merge): New function.
13212         * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
13213         Remove constant definitions.
13214         * config/s390/vector.md (V_HW_2): Add mode iterators.
13215         (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
13216         (vec_2x_nelts, vec_2x_wide): New mode attributes.
13217         (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
13218         New pattern definitions.
13219         (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
13220         (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
13221         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
13222         (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
13223         vec merge.
13224         * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
13225         in vector.md.
13226         (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
13227         emit vec merge pattern.
13229 2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>
13231         * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
13232         Define.
13233         (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
13234         vec_select high-half from being added into Neon multiply
13235         cost.
13236         * rtlanal.c (vec_series_highpart_p): Define.
13237         * rtlanal.h (vec_series_highpart_p): Declare.
13239 2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>
13241         * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
13242         Define.
13243         (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
13244         vec_select cost from being added into Neon multiply cost.
13246 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
13248         * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
13249         which old_loop_vinfo is an epilogue loop that handles a constant
13250         number of iterations.
13252 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
13254         * tree-vect-loop.c (vect_analyze_loop): Print a dump message
13255         when a reanalyzed loop fails to be cheaper than the current
13256         main loop.
13258 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
13260         * config/aarch64/aarch64.c: Fix a typo.
13262 2021-08-04  Vincent Lefèvre  <vincent-gcc@vinc17.net>
13264         PR gcov-profile/101773
13265         * gcov-io.c (gcov_close): Check return code of a fclose.
13267 2021-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13269         PR ada/101575
13270         * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
13271         .file statement when needed.
13273 2021-08-04  Richard Biener  <rguenther@suse.de>
13275         * tree-vect-data-refs.c (vect_check_gather_scatter):
13276         Include widening conversions only when the result is
13277         still handed by native gather or the current offset
13278         size not already matches the data size.
13279         Also succeed analysis in case there's no native support,
13280         noted by a IFN_LAST ifn and a NULL decl.
13281         (vect_analyze_data_refs): Always consider gathers.
13282         * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
13283         Test for no IFN gather rather than decl gather.
13284         * tree-vect-stmts.c (vect_model_load_cost): Pass in the
13285         gather-scatter info and cost emulated gathers accordingly.
13286         (vect_truncate_gather_scatter_offset): Properly test for
13287         no IFN gather.
13288         (vect_use_strided_gather_scatters_p): Likewise.
13289         (get_load_store_type): Handle emulated gathers and its
13290         restrictions.
13291         (vectorizable_load): Likewise.  Emulate them by extracting
13292         scalar offsets, doing scalar loads and a vector construct.
13294 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
13296         PR target/101742
13297         * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
13298         argument to set m_max_size.
13299         (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
13300         (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
13301         (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
13303 2021-08-04  Roger Sayle  <roger@nextmovesoftware.com>
13304             Marc Glisse  <marc.glisse@inria.fr>
13306         * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
13307         (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
13308         tree_nonzero_bits to ensure that operands are bit-wise disjoint.
13310 2021-08-04  Richard Biener  <rguenther@suse.de>
13312         * tree-ssa-forwprop.c (pass_forwprop::execute): Split
13313         out code to decompose vector loads ...
13314         (optimize_vector_load): ... here.  Generalize it to
13315         handle intermediate widening and TARGET_MEM_REF loads
13316         and apply it to loads with a supported vector mode as well.
13318 2021-08-04  Richard Biener  <rguenther@suse.de>
13320         PR tree-optimization/101756
13321         * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
13322         the result of the reduction epilogue is compatible to the original
13323         scalar result.
13325 2021-08-04  liuhongt  <hongtao.liu@intel.com>
13327         PR target/101743
13328         * config/i386/i386.md (peephole2): Refine predicate from
13329         register_operand to general_reg_operand.
13331 2021-08-04  Aldy Hernandez  <aldyh@redhat.com>
13333         * gimple-range-path.h (path_range_query::dump): Mark override.
13335 2021-08-04  Richard Biener  <rguenther@suse.de>
13337         PR tree-optimization/101769
13338         * tree-tailcall.c (eliminate_tail_call): Add the created loop
13339         for the first recursion and return it via the new output parameter.
13340         (optimize_tail_call): Pass through new output param.
13341         (tree_optimize_tail_calls_1): After creating all latches,
13342         add the created loop to the loop tree.  Do not mark loops for fixup.
13344 2021-08-04  Martin Liska  <mliska@suse.cz>
13346         * doc/invoke.texi: Document threader-mode param.
13348 2021-08-04  liuhongt  <hongtao.liu@intel.com>
13350         * config/i386/sse.md (cond_fma<mode>): New expander.
13351         (cond_fms<mode>): Ditto.
13352         (cond_fnma<mode>): Ditto.
13353         (cond_fnms<mode>): Ditto.
13355 2021-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
13357         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
13359 2021-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
13361         * config/rs6000/constraints.md: Remove "e" from the list of available
13362         constraint characters.
13364 2021-08-03  Eugene Rozenfeld  <erozen@microsoft.com>
13366         PR gcov-profile/71672
13367         * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
13369 2021-08-03  Paul A. Clarke  <pc@us.ibm.com>
13371         * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
13373 2021-08-03  H.J. Lu  <hjl.tools@gmail.com>
13375         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
13376         try XMM31 to avoid vzeroupper.
13378 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
13380         * doc/invoke.texi: Document -mtune=neoverse-512tvb and
13381         -mcpu=neoverse-512tvb.
13382         * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
13383         * config/aarch64/aarch64-tune.md: Regenerate.
13384         * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
13385         (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
13386         (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
13387         (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
13388         (aarch64_adjust_body_cost): Likewise.
13390 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
13392         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
13393         record issue information for operations that occur in the
13394         innermost loop.
13396 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
13398         * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
13399         parameter.  Detect cases in which an Advanced SIMD MLA would almost
13400         certainly require a MOV.
13401         (aarch64_count_ops): Update accordingly.
13403 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
13405         * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
13406         function, split out from...
13407         (aarch64_detect_vector_stmt_subtype): ...here.
13408         (aarch64_add_stmt_cost): Treat extracting element 0 as free.
13410 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
13412         * config/aarch64/aarch64-protos.h (sve_vec_cost):
13413         Add gather_load_x32_cost and gather_load_x64_cost.
13414         * config/aarch64/aarch64.c (generic_sve_vector_cost)
13415         (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
13416         accordingly, using the values given by the scalar_load * number
13417         of elements calculation that we used previously.
13418         (aarch64_detect_vector_stmt_subtype): Use the new fields.
13420 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
13422         * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
13423         function, split out from...
13424         (aarch64_adjust_body_cost): ...here.
13426 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
13428         * config/aarch64/fractional-cost.h: New file.
13429         * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
13430         and cost_fraction.h.
13431         (vec_cost_fraction): New typedef.
13432         (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
13433         (aarch64_detect_vector_stmt_subtype): Likewise.
13434         (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
13435         (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
13436         for cycle counts.
13437         (aarch64_adjust_body_cost): Likewise.
13438         (aarch64_test_cost_fraction): New function.
13439         (aarch64_run_selftests): Call it.
13441 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
13443         * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
13444         into a bitmask.
13445         * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
13446         accordingly.
13447         (aarch64_estimated_poly_value): Likewise.  Use the least significant
13448         set bit for the minimum and likely values.  Use the most significant
13449         set bit for the maximum value.
13451 2021-08-03  liuhongt  <hongtao.liu@intel.com>
13453         * config/i386/sse.md (cond_<insn><mode>): New expander.
13454         (cond_mul<mode>): Ditto.
13456 2021-08-03  Kewen Lin  <linkw@linux.ibm.com>
13458         * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
13460 2021-08-03  liuhongt  <hongtao.liu@intel.com>
13462         * config/i386/sse.md (cond_<insn><mode>):New expander.
13463         (cond_mul<mode>): Ditto.
13464         (cond_div<mode>): Ditto.
13466 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
13468         * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
13469         check stack_realign_needed for stack realignment.
13470         (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
13471         than the largest integer supported by vector register.
13472         * config/i386/i386.h (MAX_MOVE_MAX): New.  Set to 64.
13473         (MOVE_MAX): Set to bytes of the largest integer supported by
13474         vector register.
13475         (STORE_MAX_PIECES): New.
13477 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
13479         * config/i386/i386-expand.c (ix86_expand_vector_move): Call
13480         ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
13481         data from one memory location to another.
13483 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
13485         PR middle-end/90773
13486         * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
13488 2021-08-02  Aldy Hernandez  <aldyh@redhat.com>
13490         PR tree-optimization/101724
13491         * params.opt: Remove --param=threader-iterative.
13492         * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
13493         iterative mode.
13495 2021-08-02  Tom de Vries  <tdevries@suse.de>
13497         PR middle-end/101665
13498         * doc/extend.texi (nonnull attribute): Improve documentation.
13500 2021-08-02  Andrew Pinski  <apinski@marvell.com>
13502         PR rtl-optimization/101683
13503         * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
13505 2021-08-02  Roger Sayle  <roger@nextmovesoftware.com>
13507         * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
13508         Renamed from cond_removal_in_popcount_clz_ctz_pattern.
13509         Add support for BSWAP, FFS, PARITY and CLRSB builtins.
13510         (tree_ssa_phiop_worker): Update call to function above.
13512 2021-08-01  H.J. Lu  <hjl.tools@gmail.com>
13514         PR target/78103
13515         * config/i386/i386.md (bsr_rex64_1_zext): New.
13516         (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
13517         with gen_bsr_rex64_1_zext.
13519 2021-07-31  Jakub Jelinek  <jakub@redhat.com>
13521         PR target/78103
13522         * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
13523         define_insn patterns.
13524         (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
13525         Add combine splitters for constant - clz.
13526         (clz<mode>2): Use a temporary pseudo for bsr result.
13528 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
13530         * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
13531         _mm_floor_sd, _mm_floor_ss): New.
13533 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
13535         * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
13536         _mm_ceil_sd, _mm_ceil_ss): New.
13538 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
13540         * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
13541         _mm_blend_ps, _mm_blendv_ps): New.
13543 2021-07-30  Roger Sayle  <roger@nextmovesoftware.com>
13544             Uroš Bizjak  <ubizjak@gmail.com>
13546         * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
13547         to generate a conditional move using the carry flag after sub $1.
13548         (peephole2): Eliminate a register-to-register move by inverting
13549         the condition of a conditional move.
13551 2021-07-30  Hans-Peter Nilsson  <hp@bitrange.com>
13553         * config/mmix/mmix.md ("call", "call_value", "*call_real")
13554         ("*call_value_real"): Don't generate rtx mentioning the generic
13555         operands 1 and 2 to "call", and similarly for "call_value".
13556         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
13557         (mmix_print_operand): Use '!' instead of 'p'.
13559 2021-07-30  Hans-Peter Nilsson  <hp@bitrange.com>
13561         * doc/md.texi (call): Correct information about operand 2.
13562         * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
13564 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
13566         * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
13568 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
13570         * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
13572 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
13574         * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
13575         const_basic_block..
13576         (*::get_bb_range): Ditto.
13577         (*::bb_range_p): Ditto.
13578         * gimple-range-cache.h: Change prototypes.
13580 2021-07-30  H.J. Lu  <hjl.tools@gmail.com>
13582         PR middle-end/90773
13583         * builtins.c (builtin_memcpy_read_str): Change the mode argument
13584         from scalar_int_mode to fixed_size_mode.
13585         (builtin_strncpy_read_str): Likewise.
13586         (gen_memset_value_from_prev): New function.
13587         (builtin_memset_read_str): Change the mode argument from
13588         scalar_int_mode to fixed_size_mode.  Use gen_memset_value_from_prev
13589         and support CONST_VECTOR.
13590         (builtin_memset_gen_str): Likewise.
13591         (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
13592         constfun.
13593         * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
13594         with fixed_size_mode.
13595         (builtin_memset_read_str): Likewise.
13596         * expr.c (widest_int_mode_for_size): Renamed to ...
13597         (widest_fixed_size_mode_for_size): Add a bool argument to
13598         indicate if QI vector mode can be used.
13599         (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
13600         instead of widest_int_mode_for_size.
13601         (pieces_addr::adjust): Change the mode argument from
13602         scalar_int_mode to fixed_size_mode.
13603         (op_by_pieces_d): Make m_len read-only.  Add a bool member,
13604         m_qi_vector_mode, to indicate that QI vector mode can be used.
13605         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
13606         initialize m_qi_vector_mode.  Call widest_fixed_size_mode_for_size
13607         instead of widest_int_mode_for_size.
13608         (op_by_pieces_d::get_usable_mode): Change the mode argument from
13609         scalar_int_mode to fixed_size_mode.  Call
13610         widest_fixed_size_mode_for_size instead of
13611         widest_int_mode_for_size.
13612         (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
13613         function to return the smallest integer or QI vector mode.
13614         (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
13615         instead of widest_int_mode_for_size.  Call
13616         smallest_fixed_size_mode_for_size instead of
13617         smallest_int_mode_for_size.
13618         (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
13619         indicate that QI vector mode can be used and pass it to
13620         op_by_pieces_d::op_by_pieces_d.
13621         (can_store_by_pieces): Call widest_fixed_size_mode_for_size
13622         instead of widest_int_mode_for_size.  Pass memsetp to
13623         widest_fixed_size_mode_for_size to support QI vector mode.
13624         Allow all CONST_VECTORs for memset if vec_duplicate is supported.
13625         (store_by_pieces): Pass memsetp to
13626         store_by_pieces_d::store_by_pieces_d.
13627         (clear_by_pieces_1): Removed.
13628         (clear_by_pieces): Replace clear_by_pieces_1 with
13629         builtin_memset_read_str and pass true to store_by_pieces_d to
13630         support vector mode broadcast.
13631         (string_cst_read_str): Change the mode argument from
13632         scalar_int_mode to fixed_size_mode.
13633         * expr.h (by_pieces_constfn): Change scalar_int_mode to
13634         fixed_size_mode.
13635         (by_pieces_prev): Likewise.
13636         * rtl.h (lowpart_subreg_regno): New.
13637         * rtlanal.c (lowpart_subreg_regno): New.  A wrapper around
13638         simplify_subreg_regno.
13639         * target.def (gen_memset_scratch_rtx): New hook.
13640         * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
13641         * doc/tm.texi: Regenerated.
13643 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
13645         PR target/94780
13646         * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
13647           TARGET_EXPR instead of MODIFY_EXPR.
13649 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
13651         PR target/101132
13652         * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
13653         * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
13654         * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
13655           expander.
13656           (vec_cmpu<IMSA:mode><mode_i>): New expander.
13658 2021-07-30  H.J. Lu  <hjl.tools@gmail.com>
13660         PR target/101685
13661         * config/i386/i386-options.c (ix86_option_override_internal):
13662         Don't enable LZCNT/POPCNT if they have been disabled explicitly.
13664 2021-07-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
13666         PR target/66791
13667         * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
13668         explicitly dereferencing __a.
13669         (vld1_s64): Likewise.
13670         (vld1_u64): Likewise.
13671         * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
13672         and change to VAR13.
13674 2021-07-30  Aldy Hernandez  <aldyh@redhat.com>
13676         * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
13677         use of m_range_analyzer.
13678         (loop_versioning::lv_dom_walker::before_dom_children): Same.
13679         (loop_versioning::lv_dom_walker::after_dom_children): Remove.
13680         (loop_versioning::prune_loop_conditions): Replace vr_values use
13681         with range_query interface.
13682         (pass_loop_versioning::execute): Use ranger.
13684 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
13686         PR ipa/101396
13687         * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
13688           enum values, and emit a warning if they mismatch.
13690 2021-07-30  Kewen Lin  <linkw@linux.ibm.com>
13692         * cfgloop.h (as_const): New function.
13693         (class loop_iterator): Rename to ...
13694         (class loops_list): ... this.
13695         (loop_iterator::next): Rename to ...
13696         (loops_list::Iter::fill_curr_loop): ... this and adjust.
13697         (loop_iterator::loop_iterator): Rename to ...
13698         (loops_list::loops_list): ... this and adjust.
13699         (loops_list::Iter): New class.
13700         (loops_list::iterator): New type.
13701         (loops_list::const_iterator): New type.
13702         (loops_list::begin): New function.
13703         (loops_list::end): Likewise.
13704         (loops_list::begin const): Likewise.
13705         (loops_list::end const): Likewise.
13706         (FOR_EACH_LOOP): Remove.
13707         (FOR_EACH_LOOP_FN): Remove.
13708         * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
13709         for loop with loops_list instance.
13710         (sort_sibling_loops): Likewise.
13711         (disambiguate_loops_with_multiple_latches): Likewise.
13712         (verify_loop_structure): Likewise.
13713         * cfgloopmanip.c (create_preheaders): Likewise.
13714         (force_single_succ_latches): Likewise.
13715         * config/aarch64/falkor-tag-collision-avoidance.c
13716         (execute_tag_collision_avoidance): Likewise.
13717         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
13718         * config/s390/s390.c (s390_adjust_loops): Likewise.
13719         * doc/loop.texi: Likewise.
13720         * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
13721         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
13722         * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
13723         (loop_versioning::make_versioning_decisions): Likewise.
13724         * gimple-ssa-split-paths.c (split_paths): Likewise.
13725         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
13726         * graphite.c (canonicalize_loop_form): Likewise.
13727         (graphite_transform_loops): Likewise.
13728         * ipa-fnsummary.c (analyze_function_body): Likewise.
13729         * ipa-pure-const.c (analyze_function): Likewise.
13730         * loop-doloop.c (doloop_optimize_loops): Likewise.
13731         * loop-init.c (loop_optimizer_finalize): Likewise.
13732         (fix_loop_structure): Likewise.
13733         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13734         (move_loop_invariants): Likewise.
13735         * loop-unroll.c (decide_unrolling): Likewise.
13736         (unroll_loops): Likewise.
13737         * modulo-sched.c (sms_schedule): Likewise.
13738         * predict.c (predict_loops): Likewise.
13739         (pass_profile::execute): Likewise.
13740         * profile.c (branch_prob): Likewise.
13741         * sel-sched-ir.c (sel_finish_pipelining): Likewise.
13742         (sel_find_rgns): Likewise.
13743         * tree-cfg.c (replace_loop_annotate): Likewise.
13744         (replace_uses_by): Likewise.
13745         (move_sese_region_to_fn): Likewise.
13746         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
13747         * tree-loop-distribution.c (loop_distribution::execute): Likewise.
13748         * tree-parloops.c (parallelize_loops): Likewise.
13749         * tree-predcom.c (tree_predictive_commoning): Likewise.
13750         * tree-scalar-evolution.c (scev_initialize): Likewise.
13751         (scev_reset): Likewise.
13752         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
13753         * tree-ssa-live.c (remove_unused_locals): Likewise.
13754         * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
13755         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
13756         (tree_ssa_lim_initialize): Likewise.
13757         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
13758         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
13759         * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
13760         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
13761         (free_numbers_of_iterations_estimates): Likewise.
13762         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
13763         * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
13764         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
13765         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
13766         (pass_scev_cprop::execute): Likewise.
13767         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
13768         * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
13769         * tree-ssa-threadupdate.c
13770         (jump_thread_path_registry::thread_through_all_blocks): Likewise.
13771         * tree-vectorizer.c (vectorize_loops): Likewise.
13772         * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
13774 2021-07-29  Hans-Peter Nilsson  <hp@bitrange.com>
13776         * config/mmix/mmix.c (mmix_function_arg_1): Avoid
13777         generating a VOIDmode register for e.g the
13778         function_arg_info::end_marker.
13780 2021-07-29  Jeff Law  <jeffreyalaw@gmail.com>
13782         * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
13783         * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
13784         (cc mode_attr): Similarly.
13785         (ccz subst_attr): Similarly.
13786         * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
13787         * config/h8300/testcompare.md: Remove various cc0 based patterns
13788         that had been commented out.  Add pattern to set CCZ from a bit
13789         test.
13791 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
13792             Julian Brown  <julian@codesourcery.com>
13793             Kwok Cheung Yeung  <kcy@codesourcery.com>
13795         * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
13796         'update_stmt' after modification.
13797         (pass_oacc_loop_designation): New function, extracted out of...
13798         (pass_oacc_device_lower): ... this.
13799         (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
13800         (make_pass_oacc_loop_designation): New
13801         * passes.def: Add it.
13802         * tree-parloops.c (create_parallel_loop): Adjust.
13803         * tree-pass.h (make_pass_oacc_loop_designation): New.
13805 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
13807         * flag-types.h (enum threader_mode): New.
13808         * params.opt: Add entry for --param=threader-mode.
13809         * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
13810         (class back_threader): New.
13811         (back_threader::back_threader): New.
13812         (back_threader::~back_threader): New.
13813         (back_threader::maybe_register_path): New.
13814         (back_threader::find_taken_edge): New.
13815         (back_threader::find_taken_edge_switch): New.
13816         (back_threader::find_taken_edge_cond): New.
13817         (back_threader::resolve_def): New.
13818         (back_threader::resolve_phi): New.
13819         (back_threader::find_paths_to_names): New.
13820         (back_threader::find_paths): New.
13821         (dump_path): New.
13822         (debug): New.
13823         (thread_jumps::find_jump_threads_backwards): Call ranger threader.
13824         (thread_jumps::find_jump_threads_backwards_with_ranger): New.
13825         (pass_thread_jumps::execute): Abstract out code...
13826         (try_thread_blocks): ...here.
13827         * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
13828         Abstract out threading candidate code to...
13829         (single_succ_to_potentially_threadable_block): ...here.
13830         * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
13831         New.
13832         * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
13833         * tree-ssa-threadupdate.h (class jump_thread_path_registry):
13834         Return bool from register_jump_thread.
13836 2021-07-29  Andreas Krebbel  <krebbel@linux.ibm.com>
13838         * target.def: in0 and in1 do not need to be registers.
13839         * doc/tm.texi: Regenerate.
13841 2021-07-29  liuhongt  <hongtao.liu@intel.com>
13843         PR target/39821
13844         * config/i386/i386.c (ix86_widen_mult_cost): New function.
13845         (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
13846         WIDEN_MULT_EXPR.
13848 2021-07-29  Jiufu Guo  <guojiufu@linux.ibm.com>
13850         PR target/61837
13851         * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
13852         (rs6000_preferred_doloop_mode): New hook.
13853         * doc/tm.texi: Regenerate.
13854         * doc/tm.texi.in: Add hook preferred_doloop_mode.
13855         * target.def (preferred_doloop_mode): New hook.
13856         * targhooks.c (default_preferred_doloop_mode): New hook.
13857         * targhooks.h (default_preferred_doloop_mode): New hook.
13858         * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
13859         (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
13860         and compute_doloop_base_on_mode.
13862 2021-07-28  Martin Sebor  <msebor@redhat.com>
13864         PR middle-end/101494
13865         * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
13866         and size computation.
13868 2021-07-28  Martin Sebor  <msebor@redhat.com>
13870         PR middle-end/101601
13871         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
13872         a pointless test.
13873         Handle pointers to functions.
13875 2021-07-28  Martin Sebor  <msebor@redhat.com>
13877         * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
13878         * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
13879         * builtins.c (compute_objsize_r): Move to pointer-query.cc.
13880         (access_ref::access_ref): Same.
13881         (access_ref::phi): Same.
13882         (access_ref::get_ref): Same.
13883         (access_ref::size_remaining): Same.
13884         (access_ref::offset_in_range): Same.
13885         (access_ref::add_offset): Same.
13886         (access_ref::inform_access): Same.
13887         (ssa_name_limit_t::visit_phi): Same.
13888         (ssa_name_limit_t::leave_phi): Same.
13889         (ssa_name_limit_t::next): Same.
13890         (ssa_name_limit_t::next_phi): Same.
13891         (ssa_name_limit_t::~ssa_name_limit_t): Same.
13892         (pointer_query::pointer_query): Same.
13893         (pointer_query::get_ref): Same.
13894         (pointer_query::put_ref): Same.
13895         (pointer_query::flush_cache): Same.
13896         (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
13897         (check_nul_terminated_array): Same.
13898         (unterminated_array): Same.
13899         (maybe_warn_for_bound): Same.
13900         (check_read_access): Same.
13901         (warn_for_access): Same.
13902         (get_size_range): Same.
13903         (check_access): Same.
13904         (gimple_call_alloc_size): Move to tree.c.
13905         (gimple_parm_array_size): Move to pointer-query.cc.
13906         (get_offset_range): Same.
13907         (gimple_call_return_array): Same.
13908         (handle_min_max_size): Same.
13909         (handle_array_ref): Same.
13910         (handle_mem_ref): Same.
13911         (compute_objsize): Same.
13912         (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
13913         (call_dealloc_argno): Same.
13914         (fndecl_dealloc_argno): Same.
13915         (new_delete_mismatch_p): Same.
13916         (matching_alloc_calls_p): Same.
13917         (warn_dealloc_offset): Same.
13918         (maybe_emit_free_warning): Same.
13919         * builtins.h (check_nul_terminated_array): Move to
13920         gimple-ssa-warn-access.h.
13921         (check_nul_terminated_array): Same.
13922         (warn_string_no_nul): Same.
13923         (unterminated_array): Same.
13924         (class ssa_name_limit_t): Same.
13925         (class pointer_query): Same.
13926         (struct access_ref): Same.
13927         (class range_query): Same.
13928         (struct access_data): Same.
13929         (gimple_call_alloc_size): Same.
13930         (gimple_parm_array_size): Same.
13931         (compute_objsize): Same.
13932         (class access_data): Same.
13933         (maybe_emit_free_warning): Same.
13934         * calls.c (initialize_argument_information): Remove call to
13935         maybe_emit_free_warning.
13936         * gimple-array-bounds.cc: Include new header..
13937         * gimple-fold.c: Same.
13938         * gimple-ssa-sprintf.c: Same.
13939         * gimple-ssa-warn-restrict.c: Same.
13940         * passes.def: Add pass_warn_access.
13941         * tree-pass.h (make_pass_warn_access): Declare.
13942         * tree-ssa-strlen.c: Include new headers.
13943         * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
13944         * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
13945         * gimple-ssa-warn-access.cc: New file.
13946         * gimple-ssa-warn-access.h: New file.
13947         * pointer-query.cc: New file.
13948         * pointer-query.h: New file.
13950 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
13952         PR middle-end/101624
13953         * ubsan.c (maybe_instrument_pointer_overflow,
13954         instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
13955         PARM_DECLs or RESULT_DECLs.
13956         * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
13958 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
13960         PR middle-end/101642
13961         * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
13962         to type of bswap16 for comparison.
13963         (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
13965 2021-07-28  Richard Biener  <rguenther@suse.de>
13967         PR tree-optimization/101615
13968         * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
13969         at CTOR SLP graph entries.
13971 2021-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13973         * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
13974         Add "r,w" alternative.
13976 2021-07-28  H.J. Lu  <hjl.tools@gmail.com>
13978         PR target/101456
13979         * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
13980         AVX_U128_DIRTY when all bits are zero.
13982 2021-07-28  Richard Biener  <rguenther@suse.de>
13984         PR tree-optimization/101615
13985         * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
13986         external nodes cannot be permuted so make them perm_out 0.
13988 2021-07-28  Andrew Stubbs  <ams@codesourcery.com>
13990         PR target/100208
13991         * config.in: Regenerate.
13992         * config/gcn/gcn-hsa.h (A_FIJI): New define.
13993         (A_900): New define.
13994         (A_906): New define.
13995         (A_908): New define.
13996         (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
13997         * config/gcn/gcn.c (output_file_start): Adjust attributes according
13998         to the assembler capabilities.
13999         * config/gcn/mkoffload.c (main): Likewise.
14000         * configure: Regenerate.
14001         * configure.ac: Add tests for LLVM assembler attribute features.
14003 2021-07-28  Andrew MacLeod  <amacleod@redhat.com>
14005         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
14006         cond_false and cond_true on branches.
14008 2021-07-28  Bin Cheng  <bin.cheng@linux.alibaba.com>
14010         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
14011         gcc_stablesort.
14013 2021-07-28  Bin Cheng  <bin.cheng@linux.alibaba.com>
14015         * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
14017 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
14019         PR target/101611
14020         * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
14021         and vashrv4di3 expander, where the latter requires just TARGET_AVX2
14022         and has special !TARGET_AVX512VL expansion.
14023         (vashrv2di3<mask_name>): Rename to ...
14024         (vashrv2di3): ... this.  Change condition to TARGET_XOP || TARGET_AVX2
14025         and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
14027 2021-07-28  Martin Uecker  <muecker@gwdg.de>
14029         * calls.c (maybe_warn_rdwr_sizes): Correct argument
14030         numbers in warning that were switched.
14032 2021-07-28  Kewen Lin  <linkw@linux.ibm.com>
14034         PR tree-optimization/101596
14035         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
14036         by using new_type's precision instead.
14038 2021-07-28  liuhongt  <hongtao.liu@intel.com>
14040         PR target/99881
14041         * config/i386/i386.h (processor_costs): Add new member
14042         integer_to_sse.
14043         * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
14044         i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
14045         geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
14046         bdver_cost, znver1_cost, znver2_cost, znver3_cost,
14047         btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
14048         nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
14049         generic_cost, core_cost): Initialize integer_to_sse same value
14050         as sse_op.
14051         (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
14052         * config/i386/i386.c (ix86_builtin_vectorization_cost):
14053         Use integer_to_sse instead of sse_op to calculate the cost of
14054         vec_construct.
14056 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
14058         * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
14059         function.
14060         (write_init_file): Call write_ovld_static_init.
14062 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
14064         * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
14065         function.
14066         (write_init_file): Call write_bif_static_init.
14068 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
14070         * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
14071         (TYPE_MAP_SIZE): New macro.
14072         (type_map): New initialized variable.
14073         (typemap_cmp): New function.
14074         (write_type_node): Likewise.
14075         (write_fntype_init): Implement.
14077 2021-07-27  Martin Sebor  <msebor@redhat.com>
14079         PR tree-optimization/101584
14080         * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
14081         (check_defs): Call it.
14083 2021-07-27  Aldy Hernandez  <aldyh@redhat.com>
14085         * tree-ssa-dom.c (dom_jump_threader_simplifier):
14086         Put avail_exprs_stack in the class, instead of passing it to
14087         jump_threader_simplifier.
14088         (dom_jump_threader_simplifier::simplify): Add state argument.
14089         (dom_opt_dom_walker): Add state.
14090         (pass_dominator::execute): Pass state to threader.
14091         (dom_opt_dom_walker::before_dom_children): Use state.
14092         * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
14093         arguments by state.
14094         (jump_threader::record_temporary_equivalences_from_phis):
14095         Register equivalences through the state variable.
14096         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
14097         Record ranges in a statement through the state variable.
14098         (jump_threader::simplify_control_stmt_condition): Pass state to
14099         simplify.
14100         (jump_threader::simplify_control_stmt_condition_1): Same.
14101         (jump_threader::thread_around_empty_blocks): Remove obsolete
14102         comment.
14103         (jump_threader::thread_through_normal_block): Record equivalences
14104         on edge through the state variable.
14105         (jump_threader::thread_across_edge): Abstract state pushing.
14106         (jt_state::jt_state): New.
14107         (jt_state::push): New.
14108         (jt_state::pop): New.
14109         (jt_state::register_equiv): New.
14110         (jt_state::record_ranges_from_stmt): New.
14111         (jt_state::register_equivs_on_edge): New.
14112         (jump_threader_simplifier::jump_threader_simplifier): Move from
14113         header.
14114         (jump_threader_simplifier::simplify): Add state argument.
14115         * tree-ssa-threadedge.h (class jt_state): New.
14116         (class jump_threader): Add state to constructor.
14117         (class jump_threader_simplifier): Add state to simplify.  Remove
14118         avail_exprs_stack from class.
14119         * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
14120         argument.
14121         (vrp_jump_threader::vrp_jump_threader): Add state.
14122         (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
14124 2021-07-27  Aldy Hernandez  <aldyh@redhat.com>
14126         * Makefile.in (OBJS): Add gimple-range-path.o.
14127         * gimple-range-path.cc: New file.
14128         * gimple-range-path.h: New file.
14130 2021-07-27  Jonathan Wright  <jonathan.wright@arm.com>
14132         * config/aarch64/aarch64-simd.md: Push sign/zero-extension
14133         inside vec_duplicate for all patterns.
14134         * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
14135         Push sign/zero-extension inside vec_duplicate.
14137 2021-07-27  Richard Biener  <rguenther@suse.de>
14139         PR tree-optimization/101573
14140         * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
14141         looking at uninitialized PHI arg defs in some constrained cases.
14142         (warn_uninitialized_vars): Call it.
14143         (execute_early_warn_uninitialized): Calculate dominators.
14145 2021-07-27  Richard Biener  <rguenther@suse.de>
14147         PR tree-optimization/39821
14148         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
14149         vector_stmt for widening arithmetic.
14150         (vectorizable_conversion): Adjust.
14152 2021-07-27  Martin Jambor  <mjambor@suse.cz>
14154         * cgraph.h (ipa_replace_map): New field force_load_ref.
14155         * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
14156         aded new flag load_dereferenced, adjusted comments.
14157         (ipa_get_param_dereferenced): New function.
14158         (ipa_set_param_dereferenced): Likewise.
14159         * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
14160         * ipa-cp.c: Include gimple.h.
14161         (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
14162         (get_replacement_map): New parameter force_load_ref, set the
14163         appropriate flag in ipa_replace_map if set.
14164         (struct symbol_and_index_together): New type.
14165         (adjust_refs_in_act_callers): New function.
14166         (adjust_references_in_caller): Likewise.
14167         (create_specialized_node): When appropriate, call
14168         adjust_references_in_caller and force only load references.
14169         * ipa-prop.c (load_from_dereferenced_name): New function.
14170         (ipa_analyze_controlled_uses): Also detect loads from a
14171         dereference, harden testing of call statements.
14172         (ipa_write_node_info): Stream the dereferenced flag.
14173         (ipa_read_node_info): Likewise.
14174         (ipa_set_jf_constant): Also create refdesc when jump function
14175         references a variable.
14176         (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
14177         also on references of variables and return a symtab_node.  Adjust
14178         all callers.
14179         (propagate_controlled_uses): Also remove references to VAR_DECLs.
14181 2021-07-27  Jakub Jelinek  <jakub@redhat.com>
14183         PR middle-end/101586
14184         * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
14185         positions above or equal to sz except for diagnostics of flexible
14186         array members.
14188 2021-07-26  Andrew MacLeod  <amacleod@redhat.com>
14190         PR tree-optimization/78888
14191         * gimple-range-fold.cc (get_letter_range): New.
14192         (fold_using_range::range_of_builtin_call): Call get_letter_range.
14194 2021-07-26  Andrew MacLeod  <amacleod@redhat.com>
14196         PR tree-optimization/78888
14197         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
14198         for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
14200 2021-07-26  Roger Sayle  <roger@nextmovesoftware.com>
14201             Marc Glisse  <marc.glisse@inria.fr>
14203         * match.pd (rotate): Simplify equality/inequality of rotations.
14204         (bswap): Simplify equality/inequality tests of byte swapping.
14206 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
14208         * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
14209         New.
14211 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
14213         * range-op.cc (operator_lshift::fold_range): Pass rel to
14214         base class fold_range.
14215         (operator_rshift::fold_range): Same.
14217 2021-07-26  Ashimida  <ashimida@linux.alibaba.com>
14219         PR driver/101447
14220         * toplev.h (min_align_loops_log): Remove declaration.
14221         (min_align_jumps_log, min_align_labels_log): Likewise.
14222         (min_align_functions_log): Likewise.
14224 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
14226         * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
14227         with range_query.
14228         (execute_vrp): Abstract out simplification of conditionals...
14229         (simplify_casted_conds): ...here.
14231 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
14233         * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
14234         Add gimple argument.
14235         (array_bounds_checker::check_array_ref): Same.
14236         (array_bounds_checker::check_addr_expr): Same.
14237         (array_bounds_checker::check_array_bounds): Pass statement to
14238         check_array_bounds and check_addr_expr.
14239         * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
14240         (check_addr_expr): Same.
14241         (get_value_range): Same.
14243 2021-07-26  Tamar Christina  <tamar.christina@arm.com>
14245         * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
14246         (sdot_prod, udot_prod): ... This.
14247         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
14248         into...
14249         (<sur>dot_prod<vsi2qi>): ... this.
14250         (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
14251         Change operands order.
14252         (<sur>sadv16qi): Use new operands order.
14253         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
14254         vdotq_s32): Use new RTL ordering.
14256 2021-07-26  Tamar Christina  <tamar.christina@arm.com>
14258         * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
14259         aarch64_types_ternop_suss_qualifiers): New.
14260         * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
14261         * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
14262         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
14264 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
14266         PR rtl-optimization/101562
14267         * expmed.c (store_integral_bit_field): Only use movstrict_optab
14268         if the operand isn't paradoxical.
14270 2021-07-23  Aldy Hernandez  <aldyh@redhat.com>
14272         * gimple-array-bounds.h (class array_bounds_checker): Change
14273         ranges type to range_query.
14275 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
14277         * config/aarch64/arm_neon.h (vst1_s64_x2): Use
14278         __builtin_memcpy instead of constructing
14279         __builtin_aarch64_simd_oi one vector at a time.
14280         (vst1_u64_x2): Likewise.
14281         (vst1_f64_x2): Likewise.
14282         (vst1_s8_x2): Likewise.
14283         (vst1_p8_x2): Likewise.
14284         (vst1_s16_x2): Likewise.
14285         (vst1_p16_x2): Likewise.
14286         (vst1_s32_x2): Likewise.
14287         (vst1_u8_x2): Likewise.
14288         (vst1_u16_x2): Likewise.
14289         (vst1_u32_x2): Likewise.
14290         (vst1_f16_x2): Likewise.
14291         (vst1_f32_x2): Likewise.
14292         (vst1_p64_x2): Likewise.
14293         (vst1q_s8_x2): Likewise.
14294         (vst1q_p8_x2): Likewise.
14295         (vst1q_s16_x2): Likewise.
14296         (vst1q_p16_x2): Likewise.
14297         (vst1q_s32_x2): Likewise.
14298         (vst1q_s64_x2): Likewise.
14299         (vst1q_u8_x2): Likewise.
14300         (vst1q_u16_x2): Likewise.
14301         (vst1q_u32_x2): Likewise.
14302         (vst1q_u64_x2): Likewise.
14303         (vst1q_f16_x2): Likewise.
14304         (vst1q_f32_x2): Likewise.
14305         (vst1q_f64_x2): Likewise.
14306         (vst1q_p64_x2): Likewise.
14308 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
14310         * config/aarch64/arm_neon.h (vst1_s64_x3): Use
14311         __builtin_memcpy instead of constructing
14312         __builtin_aarch64_simd_ci one vector at a time.
14313         (vst1_u64_x3): Likewise.
14314         (vst1_f64_x3): Likewise.
14315         (vst1_s8_x3): Likewise.
14316         (vst1_p8_x3): Likewise.
14317         (vst1_s16_x3): Likewise.
14318         (vst1_p16_x3): Likewise.
14319         (vst1_s32_x3): Likewise.
14320         (vst1_u8_x3): Likewise.
14321         (vst1_u16_x3): Likewise.
14322         (vst1_u32_x3): Likewise.
14323         (vst1_f16_x3): Likewise.
14324         (vst1_f32_x3): Likewise.
14325         (vst1_p64_x3): Likewise.
14326         (vst1q_s8_x3): Likewise.
14327         (vst1q_p8_x3): Likewise.
14328         (vst1q_s16_x3): Likewise.
14329         (vst1q_p16_x3): Likewise.
14330         (vst1q_s32_x3): Likewise.
14331         (vst1q_s64_x3): Likewise.
14332         (vst1q_u8_x3): Likewise.
14333         (vst1q_u16_x3): Likewise.
14334         (vst1q_u32_x3): Likewise.
14335         (vst1q_u64_x3): Likewise.
14336         (vst1q_f16_x3): Likewise.
14337         (vst1q_f32_x3): Likewise.
14338         (vst1q_f64_x3): Likewise.
14339         (vst1q_p64_x3): Likewise.
14341 2021-07-23  H.J. Lu  <hjl.tools@gmail.com>
14343         PR target/101504
14344         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
14345         hard register when LRA is in progress.
14347 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
14349         * config/aarch64/arm_neon.h (vst1_s8_x4): Use
14350         __builtin_memcpy instead of using a union.
14351         (vst1q_s8_x4): Likewise.
14352         (vst1_s16_x4): Likewise.
14353         (vst1q_s16_x4): Likewise.
14354         (vst1_s32_x4): Likewise.
14355         (vst1q_s32_x4): Likewise.
14356         (vst1_u8_x4): Likewise.
14357         (vst1q_u8_x4): Likewise.
14358         (vst1_u16_x4): Likewise.
14359         (vst1q_u16_x4): Likewise.
14360         (vst1_u32_x4): Likewise.
14361         (vst1q_u32_x4): Likewise.
14362         (vst1_f16_x4): Likewise.
14363         (vst1q_f16_x4): Likewise.
14364         (vst1_f32_x4): Likewise.
14365         (vst1q_f32_x4): Likewise.
14366         (vst1_p8_x4): Likewise.
14367         (vst1q_p8_x4): Likewise.
14368         (vst1_p16_x4): Likewise.
14369         (vst1q_p16_x4): Likewise.
14370         (vst1_s64_x4): Likewise.
14371         (vst1_u64_x4): Likewise.
14372         (vst1_p64_x4): Likewise.
14373         (vst1q_s64_x4): Likewise.
14374         (vst1q_u64_x4): Likewise.
14375         (vst1q_p64_x4): Likewise.
14376         (vst1_f64_x4): Likewise.
14377         (vst1q_f64_x4): Likewise.
14379 2021-07-23  Jonathan Wrightt  <jonathan.wright@arm.com>
14381         * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
14382         instead of constructing __builtin_aarch64_simd_oi one vector
14383         at a time.
14384         (vst2_u64): Likewise.
14385         (vst2_f64): Likewise.
14386         (vst2_s8): Likewise.
14387         (vst2_p8): Likewise.
14388         (vst2_s16): Likewise.
14389         (vst2_p16): Likewise.
14390         (vst2_s32): Likewise.
14391         (vst2_u8): Likewise.
14392         (vst2_u16): Likewise.
14393         (vst2_u32): Likewise.
14394         (vst2_f16): Likewise.
14395         (vst2_f32): Likewise.
14396         (vst2_p64): Likewise.
14397         (vst2q_s8): Likewise.
14398         (vst2q_p8): Likewise.
14399         (vst2q_s16): Likewise.
14400         (vst2q_p16): Likewise.
14401         (vst2q_s32): Likewise.
14402         (vst2q_s64): Likewise.
14403         (vst2q_u8): Likewise.
14404         (vst2q_u16): Likewise.
14405         (vst2q_u32): Likewise.
14406         (vst2q_u64): Likewise.
14407         (vst2q_f16): Likewise.
14408         (vst2q_f32): Likewise.
14409         (vst2q_f64): Likewise.
14410         (vst2q_p64): Likewise.
14412 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
14414         * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
14415         instead of constructing __builtin_aarch64_simd_ci one vector
14416         at a time.
14417         (vst3_u64): Likewise.
14418         (vst3_f64): Likewise.
14419         (vst3_s8): Likewise.
14420         (vst3_p8): Likewise.
14421         (vst3_s16): Likewise.
14422         (vst3_p16): Likewise.
14423         (vst3_s32): Likewise.
14424         (vst3_u8): Likewise.
14425         (vst3_u16): Likewise.
14426         (vst3_u32): Likewise.
14427         (vst3_f16): Likewise.
14428         (vst3_f32): Likewise.
14429         (vst3_p64): Likewise.
14430         (vst3q_s8): Likewise.
14431         (vst3q_p8): Likewise.
14432         (vst3q_s16): Likewise.
14433         (vst3q_p16): Likewise.
14434         (vst3q_s32): Likewise.
14435         (vst3q_s64): Likewise.
14436         (vst3q_u8): Likewise.
14437         (vst3q_u16): Likewise.
14438         (vst3q_u32): Likewise.
14439         (vst3q_u64): Likewise.
14440         (vst3q_f16): Likewise.
14441         (vst3q_f32): Likewise.
14442         (vst3q_f64): Likewise.
14443         (vst3q_p64): Likewise.
14445 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
14447         * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
14448         instead of constructing __builtin_aarch64_simd_xi one vector
14449         at a time.
14450         (vst4_u64): Likewise.
14451         (vst4_f64): Likewise.
14452         (vst4_s8): Likewise.
14453         (vst4_p8): Likewise.
14454         (vst4_s16): Likewise.
14455         (vst4_p16): Likewise.
14456         (vst4_s32): Likewise.
14457         (vst4_u8): Likewise.
14458         (vst4_u16): Likewise.
14459         (vst4_u32): Likewise.
14460         (vst4_f16): Likewise.
14461         (vst4_f32): Likewise.
14462         (vst4_p64): Likewise.
14463         (vst4q_s8): Likewise.
14464         (vst4q_p8): Likewise.
14465         (vst4q_s16): Likewise.
14466         (vst4q_p16): Likewise.
14467         (vst4q_s32): Likewise.
14468         (vst4q_s64): Likewise.
14469         (vst4q_u8): Likewise.
14470         (vst4q_u16): Likewise.
14471         (vst4q_u32): Likewise.
14472         (vst4q_u64): Likewise.
14473         (vst4q_f16): Likewise.
14474         (vst4q_f32): Likewise.
14475         (vst4q_f64): Likewise.
14476         (vst4q_p64): Likewise.
14478 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
14480         * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
14481         instead of constructing __builtin_aarch64_simd_oi one vector
14482         at a time.
14483         (vtbx4_u8): Likewise.
14484         (vtbx4_p8): Likewise.
14486 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
14488         * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
14489         instead of constructing __builtin_aarch64_simd_oi one vector
14490         at a time.
14491         (vtbl3_u8): Likewise.
14492         (vtbl3_p8): Likewise.
14493         (vtbl4_s8): Likewise.
14494         (vtbl4_u8): Likewise.
14495         (vtbl4_p8): Likewise.
14497 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
14499         * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
14500         instead of constructing __builtin_aarch64_simd_oi one vector
14501         at a time.
14502         (vqtbx2_u8): Likewise.
14503         (vqtbx2_p8): Likewise.
14504         (vqtbx2q_s8): Likewise.
14505         (vqtbx2q_u8): Likewise.
14506         (vqtbx2q_p8): Likewise.
14507         (vqtbx3_s8): Use __builtin_memcpy instead of constructing
14508         __builtin_aarch64_simd_ci one vector at a time.
14509         (vqtbx3_u8): Likewise.
14510         (vqtbx3_p8): Likewise.
14511         (vqtbx3q_s8): Likewise.
14512         (vqtbx3q_u8): Likewise.
14513         (vqtbx3q_p8): Likewise.
14514         (vqtbx4_s8): Use __builtin_memcpy instead of constructing
14515         __builtin_aarch64_simd_xi one vector at a time.
14516         (vqtbx4_u8): Likewise.
14517         (vqtbx4_p8): Likewise.
14518         (vqtbx4q_s8): Likewise.
14519         (vqtbx4q_u8): Likewise.
14520         (vqtbx4q_p8): Likewise.
14522 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
14524         * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
14525         instead of constructing __builtin_aarch64_simd_oi one vector
14526         at a time.
14527         (vqtbl2_u8): Likewise.
14528         (vqtbl2_p8): Likewise.
14529         (vqtbl2q_s8): Likewise.
14530         (vqtbl2q_u8): Likewise.
14531         (vqtbl2q_p8): Likewise.
14532         (vqtbl3_s8): Use __builtin_memcpy instead of constructing
14533         __builtin_aarch64_simd_ci one vector at a time.
14534         (vqtbl3_u8): Likewise.
14535         (vqtbl3_p8): Likewise.
14536         (vqtbl3q_s8): Likewise.
14537         (vqtbl3q_u8): Likewise.
14538         (vqtbl3q_p8): Likewise.
14539         (vqtbl4_s8): Use __builtin_memcpy instead of constructing
14540         __builtin_aarch64_simd_xi one vector at a time.
14541         (vqtbl4_u8): Likewise.
14542         (vqtbl4_p8): Likewise.
14543         (vqtbl4q_s8): Likewise.
14544         (vqtbl4q_u8): Likewise.
14545         (vqtbl4q_p8): Likewise.
14547 2021-07-23  Haochen Gui  <guihaoc@gcc.gnu.org>
14549         PR target/100952
14550         * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
14552 2021-07-22  Andrew Pinski  <apinski@marvell.com>
14554         PR tree-optimization/10153
14555         * tree-tailcall.c (create_tailcall_accumulator):
14556         Don't call fold_convert as the type should be correct already.
14557         (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
14558         of integer_{one,zero}_node for the call of create_tailcall_accumulator.
14560 2021-07-22  Aldy Hernandez  <aldyh@redhat.com>
14562         * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
14563         varying_p check for null/non-null check.
14565 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
14567         PR tree-optimization/101511
14568         * value-relation.cc (relation_oracle::query_relation): Check if ssa1
14569         is in ssa2's equiv set, and don't trap if so.
14571 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
14573         PR tree-optimization/101497
14574         * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
14575         for undefined.
14577 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
14579         PR tree-optimization/101496
14580         * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
14581         first, then vrp_visit_cond_Stmt.
14583 2021-07-22  liuhongt  <hongtao.liu@intel.com>
14585         * config/i386/i386-expand.c
14586         (ix86_broadcast_from_integer_constant): Rename to ..
14587         (ix86_broadcast_from_constant): .. this, and extend it to
14588         handle float mode.
14589         (ix86_expand_vector_move): Extend to float mode.
14590         * config/i386/i386-features.c
14591         (replace_constant_pool_with_broadcast): Remove.
14592         (remove_partial_avx_dependency_gate): Ditto.
14593         (constant_pool_broadcast): Ditto.
14594         (class pass_constant_pool_broadcast): Ditto.
14595         (make_pass_constant_pool_broadcast): Ditto.
14596         (remove_partial_avx_dependency): Adjust gate.
14597         * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
14598         * config/i386/i386-protos.h
14599         (make_pass_constant_pool_broadcast): Remove.
14601 2021-07-22  liuhongt  <hongtao.liu@intel.com>
14603         * config/i386/constraints.md (Wb): New constraint.
14604         (Ww): Ditto.
14605         * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
14606         shift.
14607         (*ashlqi3_1): Ditto.
14608         (*<insn><mode>3_1): Split to ..
14609         (*ashr<mode>3_1): this, ...
14610         (*lshr<mode>3_1): and this, also extend this pattern to avx512
14611         mask registers.
14612         (*<insn><mode>3_1): Split to ..
14613         (*ashr<mode>3_1): this, ...
14614         (*lshrqi3_1): and this, also extend this pattern to avx512
14615         mask registers.
14616         (*lshrhi3_1): And this, also extend this pattern to avx512
14617         mask registers.
14618         * config/i386/sse.md (k<code><mode>): New define_split after
14619         it to convert generic shift pattern to mask shift ones.
14621 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
14622             Joseph Myers  <joseph@codesourcery.com>
14623             Cesar Philippidis  <cesar@codesourcery.com>
14625         * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
14626         * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
14627         Handle it.
14628         * tree-pretty-print.c (dump_omp_clause): Likewise.
14629         * omp-general.c (oacc_verify_routine_clauses): Likewise.
14630         * gimplify.c (gimplify_scan_omp_clauses)
14631         (gimplify_adjust_omp_clauses): Likewise.
14632         * tree-nested.c (convert_nonlocal_omp_clauses)
14633         (convert_local_omp_clauses): Likewise.
14634         * omp-low.c (scan_sharing_clauses): Likewise.
14635         * omp-offload.c (execute_oacc_device_lower): Update.
14637 2021-07-21  Martin Sebor  <msebor@redhat.com>
14639         * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
14641 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14643         * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
14644         Implement.
14646 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14648         * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
14649         callback function.
14650         (write_fntype_init): New stub function.
14651         (write_init_bif_table): Likewise.
14652         (write_init_ovld_table): New function.
14653         (write_init_file): Implement.
14655 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14657         * config/rs6000/rs6000-gen-builtins.c
14658         (write_autogenerated_header): New function.
14659         (write_decls): Likewise.
14660         (write_extern_fntype): New callback function.
14661         (write_header_file): Implement.
14663 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14665         * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
14666         Implement.
14668 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14670         * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
14671         function.
14672         (complete_base_type): Likewise.
14673         (construct_fntype_id): Likewise.
14674         (parse_bif_entry): Call contruct_fntype_id.
14675         (parse_ovld_entry): Likewise.
14677 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14679         * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
14680         (MAXOVLDSTANZAS): New macro.
14681         (ovld_stanzas): New variable.
14682         (curr_ovld_stanza): Likewise.
14683         (MAXOVLDS): New macro.
14684         (ovlddata): New struct.
14685         (ovlds): New variable.
14686         (curr_ovld): Likewise.
14687         (max_ovld_args): Likewise.
14688         (parse_ovld_entry): New function.
14689         (parse_ovld_stanza): Likewise.
14690         (parse_ovld): Implement.
14692 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14694         * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
14695         Implement.
14697 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14699         * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
14700         (parse_prototype): Implement.
14702 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14704         * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
14705         (curr_bif_stanza): New variable.
14706         (stanza_entry): New struct.
14707         (stanza_map): New initialized variable.
14708         (enable_string): Likewise.
14709         (fnkinds): New enum.
14710         (typelist): New struct.
14711         (attrinfo): Likewise.
14712         (MAXRESTROPNDS): New macro.
14713         (prototype): New struct.
14714         (MAXBIFS): New macro.
14715         (bifdata): New struct.
14716         (bifs): New variable.
14717         (curr_bif): Likewise.
14718         (bif_order): Likewise.
14719         (bif_index): Likewise.
14720         (fatal): New function.
14721         (stanza_name_to_stanza): Likewise.
14722         (parse_bif_attrs): New stub function.
14723         (parse_prototype): Likewise.
14724         (parse_bif_entry): New function.
14725         (parse_bif_stanza): Likewise.
14726         (parse_bif): Implement.
14727         (set_bif_order): New function.
14728         (create_bif_order): Implement.
14730 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
14732         * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
14733         (num_bifs): New variable.
14734         (num_ovld_stanzas): Likewise.
14735         (num_ovlds): Likewise.
14736         (parse_codes): New enum.
14737         (bif_rbt): New variable.
14738         (ovld_rbt): Likewise.
14739         (fntype_rbt): Likewise.
14740         (bifo_rbt): Likewise.
14741         (parse_bif): New stub function.
14742         (create_bif_order): Likewise.
14743         (parse_ovld): Likewise.
14744         (write_header_file): Likewise.
14745         (write_init_file): Likewise.
14746         (write_defines_file): Likewise.
14747         (delete_output_files): New function.
14748         (main): Likewise.
14750 2021-07-21  H.J. Lu  <hjl.tools@gmail.com>
14752         PR target/101549
14753         * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
14754         from CRC32 _builtin functions.
14756 2021-07-21  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14758         * coverage.c (build_gcov_info_var_registration): Mark the object placed
14759         in the linker set as referenced so that it does not get optimized away.
14761 2021-07-21  Kito Cheng  <kito.cheng@sifive.com>
14763         Revert:
14764         2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
14766         * config.gcc (riscv*-*-*): Detect which python is available.
14768 2021-07-21  Jakub Jelinek  <jakub@redhat.com>
14770         PR middle-end/101535
14771         * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
14772         contexts in which decl isn't privatized and for ORT_TARGET return
14773         false if decl is mapped.
14775 2021-07-21  Richard Sandiford  <richard.sandiford@arm.com>
14777         * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
14778         (tree_loop_unroll_and_jam): Run value-numbering on a loop that
14779         has been successfully unrolled.
14781 2021-07-21  Richard Sandiford  <richard.sandiford@arm.com>
14783         * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
14784         exit condition if no tail loop is needed, and if the original exit
14785         condition should therefore be kept as-is.
14786         (tree_transform_and_unroll_loop): Handle that case here too.
14788 2021-07-21  Kewen Lin  <linkw@linux.ibm.com>
14790         * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
14791         by reference.
14792         (free_data_refs): Likewise.
14793         * tree-data-ref.h (free_dependence_relations): Likewise.
14794         (free_data_refs): Likewise.
14795         * tree-predcom.c (struct chain): Use auto_vec instead of vec for
14796         members.
14797         (struct component): Likewise.
14798         (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
14799         (pcom_worker::~pcom_worker): Likewise.
14800         (pcom_worker::release_chain): Adjust as auto_vec changes.
14801         (pcom_worker::loop): Rename to ...
14802         (pcom_worker::m_loop): ... this.
14803         (pcom_worker::datarefs): Rename to ...
14804         (pcom_worker::m_datarefs): ... this.  Use auto_vec instead of vec.
14805         (pcom_worker::dependences): Rename to ...
14806         (pcom_worker::m_dependences): ... this.  Use auto_vec instead of vec.
14807         (pcom_worker::chains): Rename to ...
14808         (pcom_worker::m_chains): ... this.  Use auto_vec instead of vec.
14809         (pcom_worker::looparound_phis): Rename to ...
14810         (pcom_worker::m_looparound_phis): ... this.  Use auto_vec instead of
14811         vec.
14812         (pcom_worker::cache): Rename to ...
14813         (pcom_worker::m_cache): ... this.  Use auto_vec instead of vec.
14814         (pcom_worker::release_chain): Adjust for auto_vec changes.
14815         (pcom_worker::release_chains): Adjust for auto_vec and renaming
14816         changes.
14817         (release_component): Remove.
14818         (release_components): Adjust for release_component removal.
14819         (component_of): Adjust to use vec.
14820         (merge_comps): Likewise.
14821         (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
14822         (pcom_worker::determine_offset): Likewise.
14823         (class comp_ptrs): Remove.
14824         (pcom_worker::split_data_refs_to_components): Adjust for renaming
14825         changes, for comp_ptrs removal with auto_vec.
14826         (pcom_worker::suitable_component_p): Adjust for renaming changes.
14827         (pcom_worker::filter_suitable_components): Adjust for release_component
14828         removal.
14829         (pcom_worker::valid_initializer_p): Adjust for renaming changes.
14830         (pcom_worker::find_looparound_phi): Likewise.
14831         (pcom_worker::add_looparound_copies): Likewise.
14832         (pcom_worker::determine_roots_comp): Likewise.
14833         (pcom_worker::single_nonlooparound_use): Likewise.
14834         (pcom_worker::execute_pred_commoning_chain): Likewise.
14835         (pcom_worker::execute_pred_commoning): Likewise.
14836         (pcom_worker::try_combine_chains): Likewise.
14837         (pcom_worker::prepare_initializers_chain): Likewise.
14838         (pcom_worker::prepare_initializers): Likewise.
14839         (pcom_worker::prepare_finalizers_chain): Likewise.
14840         (pcom_worker::prepare_finalizers): Likewise.
14841         (pcom_worker::tree_predictive_commoning_loop): Likewise.
14843 2021-07-20  Martin Sebor  <msebor@redhat.com>
14845         PR middle-end/101397
14846         * builtins.c (gimple_call_return_array): Add argument.  Correct
14847         offsets for memchr, mempcpy, stpcpy, and stpncpy.
14848         (compute_objsize_r): Adjust offset computation for argument returning
14849         built-ins.
14851 2021-07-20  Martin Sebor  <msebor@redhat.com>
14853         PR middle-end/101300
14854         * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
14856 2021-07-20  Jeff Law  <jlaw@localhost.localdomain>
14858         * function.c (assign_parm_setup_block): Use adjust_address instead
14859         of change_address to preserve MEM_EXPR and friends.
14861 2021-07-20  Martin Sebor  <msebor@redhat.com>
14863         * cfgloop.h (single_likely_exit): Adjust by-value argument to
14864         by-const-reference.
14865         * cfgloopanal.c (single_likely_exit): Same.
14866         * cgraph.h (struct cgraph_node): Same.
14867         * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
14868         * genautomata.c (merge_states): Same.
14869         * genextract.c (VEC_char_to_string): Same.
14870         * genmatch.c (dt_node::gen_kids_1): Same.
14871         (walk_captures): Adjust by-value argument to by-reference.
14872         * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
14873         to by-const-reference.
14874         * gimple.c (gimple_build_call_vec): Same.
14875         (gimple_build_call_internal_vec): Same.
14876         (gimple_build_switch): Same.
14877         (sort_case_labels): Same.
14878         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
14879         by-reference.
14880         * gimple.h (gimple_build_call_vec): Adjust by-value argument to
14881         by-const-reference.
14882         (gimple_build_call_internal_vec): Same.
14883         (gimple_build_switch): Same.
14884         (sort_case_labels): Same.
14885         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
14886         by-reference.
14887         * haifa-sched.c (calc_priorities): Adjust by-value argument to
14888         by-const-reference.
14889         (sched_init_luids): Same.
14890         (haifa_init_h_i_d): Same.
14891         * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
14892         (adjust_callers_for_value_intersection): Adjust by-value argument to
14893         by-reference.
14894         (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
14895         by-const-reference.
14896         (find_more_contexts_for_caller_subset): Same.
14897         (find_aggregate_values_for_callers_subset): Same.
14898         (copy_useful_known_contexts): Same.
14899         * ipa-fnsummary.c (remap_edge_summaries): Same.
14900         (remap_freqcounting_predicate): Same.
14901         * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
14902         by-reference.
14903         * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
14904         to by-const-reference.
14905         * ipa-predicate.h (predicate::remap_after_inlining): Same.
14906         * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
14907         * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
14908         * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
14909         * read-rtl.c (add_overload_instance): Same.
14910         * rtl.h (native_decode_rtx): Same.
14911         (native_decode_vector_rtx): Same.
14912         * sched-int.h (sched_init_luids): Same.
14913         (haifa_init_h_i_d): Same.
14914         * simplify-rtx.c (native_decode_vector_rtx): Same.
14915         (native_decode_rtx): Same.
14916         * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
14917         (shrink_wrap_one_built_in_call_with_conds): Same.
14918         (shrink_wrap_conditional_dead_built_in_calls): Same.
14919         * tree-data-ref.c (create_runtime_alias_checks): Same.
14920         (compute_all_dependences): Same.
14921         * tree-data-ref.h (compute_all_dependences): Same.
14922         (create_runtime_alias_checks): Same.
14923         (index_in_loop_nest): Same.
14924         * tree-if-conv.c (mask_exists): Same.
14925         * tree-loop-distribution.c (class loop_distribution): Same.
14926         (loop_distribution::create_rdg_vertices): Same.
14927         (dump_rdg_partitions): Same.
14928         (debug_rdg_partitions): Same.
14929         (partition_contains_all_rw): Same.
14930         (loop_distribution::distribute_loop): Same.
14931         * tree-parloops.c (oacc_entry_exit_ok_1): Same.
14932         (oacc_entry_exit_single_gang): Same.
14933         * tree-ssa-loop-im.c (hoist_memory_references): Same.
14934         (loop_suitable_for_sm): Same.
14935         * tree-ssa-loop-niter.c (bound_index): Same.
14936         * tree-ssa-reassoc.c (update_ops): Same.
14937         (swap_ops_for_binary_stmt): Same.
14938         (rewrite_expr_tree): Same.
14939         (rewrite_expr_tree_parallel): Same.
14940         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
14941         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
14942         * tree-ssa-structalias.c (process_all_all_constraints): Same.
14943         (make_constraints_to): Same.
14944         (handle_lhs_call): Same.
14945         (find_func_aliases_for_builtin_call): Same.
14946         (sort_fieldstack): Same.
14947         (check_for_overlaps): Same.
14948         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
14949         (vect_create_cond_for_unequal_addrs): Same.
14950         (vect_create_cond_for_lower_bounds): Same.
14951         (vect_create_cond_for_alias_checks): Same.
14952         * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
14953         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
14954         (vect_make_slp_decision): Same.
14955         (vect_slp_bbs): Same.
14956         (duplicate_and_interleave): Same.
14957         (vect_transform_slp_perm_load): Same.
14958         (vect_schedule_slp): Same.
14959         * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
14960         (vect_schedule_slp): Same.
14961         (duplicate_and_interleave): Same.
14962         * tree.c (build_vector_from_ctor): Same.
14963         (build_vector): Same.
14964         (check_vector_cst): Same.
14965         (check_vector_cst_duplicate): Same.
14966         (check_vector_cst_fill): Same.
14967         (check_vector_cst_stepped): Same.
14968         * tree.h (build_vector_from_ctor): Same.
14970 2021-07-20  Jakub Jelinek  <jakub@redhat.com>
14972         PR target/101384
14973         * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
14974         type from bool to int.
14975         * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
14976         EASY_VECTOR_MSB case if either step or copies is not 1.
14977         (vspltis_shifted): Fix comment typo.
14978         (easy_altivec_constant): Change return type from bool to int, instead
14979         of returning true return byte size of the element mode that should be
14980         used to synthetize the constant.
14981         * config/rs6000/predicates.md (easy_vector_constant_msb): Require
14982         that vspltis_shifted is 0, handle the case where easy_altivec_constant
14983         assumes using different vector mode from CONST_VECTOR's mode.
14984         * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
14985         easy_altivec_constant to determine mode in which -1 >> -1 should be
14986         performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
14988 2021-07-20  Richard Biener  <rguenther@suse.de>
14990         PR debug/101473
14991         * dwarf2out.h (dwarf_file_data): Add key member.
14992         * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
14993         (dwarf_file_hasher::hash): Hash key.
14994         (lookup_filename): Remap the filename and store it in the
14995         filename member of dwarf_file_data when creating a new
14996         dwarf_file_data.
14997         (file_name_acquire): Do not remap the filename again.
14998         (maybe_emit_file): Likewise.
15000 2021-07-20  Jonathan Wright  <jonathan.wright@arm.com>
15002         * config/aarch64/aarch64-simd-builtins.def: Use two variant
15003         generators for all TBL/TBX intrinsics and rename to
15004         consistent forms: qtbl[1234] or qtbx[1234].
15005         * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
15006         Rename to...
15007         (aarch64_qtbl1<mode>): This.
15008         (aarch64_tbx1<mode>): Rename to...
15009         (aarch64_qtbx1<mode>): This.
15010         (aarch64_tbl2v16qi): Delete.
15011         (aarch64_tbl3<mode>): Rename to...
15012         (aarch64_qtbl2<mode>): This.
15013         (aarch64_tbx4<mode>): Rename to...
15014         (aarch64_qtbx2<mode>): This.
15015         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
15016         renamed qtbl1 and qtbl2 RTL patterns.
15017         * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
15018         RTL pattern.
15019         (vqtbl1_s8): Likewise.
15020         (vqtbl1_u8): Likewise.
15021         (vqtbl1q_p8): Likewise.
15022         (vqtbl1q_s8): Likewise.
15023         (vqtbl1q_u8): Likewise.
15024         (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
15025         (vqtbx1_u8): Likewise.
15026         (vqtbx1_p8): Likewise.
15027         (vqtbx1q_s8): Likewise.
15028         (vqtbx1q_u8): Likewise.
15029         (vqtbx1q_p8): Likewise.
15030         (vtbl1_s8): Use renamed qtbl1 RTL pattern.
15031         (vtbl1_u8): Likewise.
15032         (vtbl1_p8): Likewise.
15033         (vtbl2_s8): Likewise
15034         (vtbl2_u8): Likewise.
15035         (vtbl2_p8): Likewise.
15036         (vtbl3_s8): Use renamed qtbl2 RTL pattern.
15037         (vtbl3_u8): Likewise.
15038         (vtbl3_p8): Likewise.
15039         (vtbl4_s8): Likewise.
15040         (vtbl4_u8): Likewise.
15041         (vtbl4_p8): Likewise.
15042         (vtbx2_s8): Use renamed qtbx2 RTL pattern.
15043         (vtbx2_u8): Likewise.
15044         (vtbx2_p8): Likewise.
15045         (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
15046         (vqtbl2_u8): Likewise.
15047         (vqtbl2_p8): Likewise.
15048         (vqtbl2q_s8): Likewise.
15049         (vqtbl2q_u8): Likewise.
15050         (vqtbl2q_p8): Likewise.
15051         (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
15052         (vqtbx2_u8): Likewise.
15053         (vqtbx2_p8): Likewise.
15054         (vqtbx2q_s8): Likewise.
15055         (vqtbx2q_u8): Likewise.
15056         (vqtbx2q_p8): Likewise.
15057         (vtbx4_s8): Likewise.
15058         (vtbx4_u8): Likewise.
15059         (vtbx4_p8): Likewise.
15061 2021-07-20  Uroš Bizjak  <ubizjak@gmail.com>
15063         PR target/100182
15064         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
15065         Remove.
15066         (define_peephole2 atomic_loaddi_fpu): Ditto.
15068 2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
15070         * config.gcc (riscv*-*-*): Detect which python is available.
15072 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
15074         * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
15075         (smul<mode>3_highpart): ... this.
15076         (mulhu_<mode>): Rename to...
15077         (umul<mode>3_highpart): ... this.
15078         * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
15079         MULHU_V2DI, MULHU_V4SI): Adjust.
15081 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
15083         PR tree-optimization/100696
15084         * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
15085         * internal-fn.def (IFN_MULH): New internal function.
15086         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
15087         recog normal multiply highpart as IFN_MULH.
15088         * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
15089         function CFN_MULH.
15091 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
15093         * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
15094         (BTF_DEBUGGING_INFO): Likewise.
15095         * doc/tm.texi.in: Document the new macros.
15096         * doc/tm.texi: Regenerated.
15097         * toplev.c: Guard initialization of debug hooks.
15099 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
15101         * flags.h (ctf_debuginfo_p): New function declaration.
15102         * opts.c (ctf_debuginfo_p): New function definition.
15104 2021-07-19  Andrew Stubbs  <ams@codesourcery.com>
15106         PR target/100208
15107         * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
15108         (ASM_SPEC): Set -mattr for xnack and sram-ecc.
15109         * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
15110         * config/gcn/gcn-valu.md: Add a warning comment.
15111         * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
15112         (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
15113         * config/gcn/gcn.md: Add a warning comment.
15114         * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
15115         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
15116         SRAM-ECC flag.
15117         (EF_AMDGPU_XNACK): New.
15118         (EF_AMDGPU_SRAM_ECC): New.
15119         (elf_flags): New.
15120         (copy_early_debug_info): Use elf_flags.
15121         (main): Handle -mxnack and -msram-ecc options.
15122         * doc/invoke.texi: Document -mxnack and -msram-ecc.
15124 2021-07-19  Andrew Pinski  <apinski@marvell.com>
15126         PR target/101205
15127         * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
15128         (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
15130 2021-07-19  Richard Biener  <rguenther@suse.de>
15132         PR tree-optimization/101505
15133         * tree-vect-patterns.c (vect_determine_precisions): Walk
15134         PHIs also for loop vectorization.
15136 2021-07-19  Richard Biener  <rguenther@suse.de>
15138         * gimple.h (gimple_expr_type): Remove.
15139         * doc/gimple.texi: Remove gimple_expr_type documentation.
15141 2021-07-19  Richard Biener  <rguenther@suse.de>
15143         * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
15144         (ao_ref_init_from_vn_reference): Likewise.
15145         (fully_constant_reference): Likewise.
15146         (vn_reference_lookup_call): Do not set vr->type to random
15147         values.
15148         * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
15149         without a value.
15150         * tree-vect-generic.c (expand_vector_piecewise): Pass in
15151         whether we expanded parallel.
15152         (expand_vector_parallel): Adjust.
15153         (expand_vector_addition): Likewise.
15154         (expand_vector_comparison): Likewise.
15155         (expand_vector_operation): Likewise.
15156         (expand_vector_scalar_condition): Likewise.
15157         (expand_vector_conversion): Likewise.
15159 2021-07-19  Richard Biener  <rguenther@suse.de>
15161         * tree-vrp.c (register_edge_assert_for_2): Use the
15162         type from the LHS.
15163         (vrp_folder::fold_predicate_in): Likewise.
15164         * vr-values.c (gimple_assign_nonzero_p): Likewise.
15165         (vr_values::extract_range_from_comparison): Likewise.
15166         (vr_values::extract_range_from_ubsan_builtin): Use the
15167         type of the first operand.
15168         (vr_values::extract_range_basic): Push down type
15169         computation, use the appropriate LHS.
15170         (vr_values::extract_range_from_assignment): Use the
15171         type of the LHS.
15173 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
15175         PR target/101492
15176         * common/config/i386/i386-common.c (ix86_handle_option): For
15177         -mgeneral-regs-only, enable the GPR only instructions which are
15178         enabled implicitly by SSE ISAs unless they have been disabled
15179         explicitly.
15181 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
15183         PR target/101495
15184         * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
15185         ix86_avx_u128_mode_needed.
15186         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
15187         returns AVX register.
15189 2021-07-17  Jan Hubicka  <hubicka@ucw.cz>
15191         * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
15192         (handle_const_call): Liekise
15193         (handle_pure_call): Liekise
15195 2021-07-17  Andrew MacLeod  <amacleod@redhat.com>
15197         PR tree-optimization/96542
15198         * range-op.cc (range_operator::wi_fold_in_parts): New.
15199         (range_operator::fold_range): Call wi_fold_in_parts.
15200         (operator_lshift::wi_fold): Fix broken lshift by [0,0].
15201         * range-op.h (wi_fold_in_parts): Add prototype.
15203 2021-07-16  David Malcolm  <dmalcolm@redhat.com>
15205         * doc/analyzer.texi: Add __analyzer_dump_state.
15207 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
15209         * config/rs6000/rbtree.c: New file.
15210         * config/rs6000/rbtree.h: New file.
15212 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
15214         * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
15215         (typeinfo): Add restr field.
15216         (match_bracketed_pair): New function.
15217         (match_const_restriction): Implement.
15219 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
15221         * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
15223 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
15225         * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
15226         (basetype): Likewise.
15227         (typeinfo): Likewise.
15228         (handle_pointer): New function.
15229         (match_basetype): New stub function.
15230         (match_const_restriction): Likewise.
15231         (match_type): New function.
15233 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
15235         * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
15236         function.
15237         (advance_line): Likewise.
15238         (safe_inc_pos): Likewise.
15239         (match_identifier): Likewise.
15240         (match_integer): Likewise.
15241         (match_to_right_bracket): Likewise.
15243 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
15245         * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
15246         (ovld_file): Likewise.
15247         (header_file): Likewise.
15248         (init_file): Likewise.
15249         (defines_file): Likewise.
15250         (pgm_path): Likewise.
15251         (bif_path): Likewise.
15252         (ovld_path): Likewise.
15253         (header_path): Likewise.
15254         (init_path): Likewise.
15255         (defines_path): Likewise.
15256         (LINELEN): New macro.
15257         (linebuf): New variable.
15258         (line): Likewise.
15259         (pos): Likewise.
15260         (diag): Likewise.
15261         (bif_diag): New function.
15262         (ovld_diag): Likewise.
15264 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
15266         * config/rs6000/rs6000-builtin-new.def: New.
15267         * config/rs6000/rs6000-overload.def: New.
15269 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
15271         * config/rs6000/rs6000-gen-builtins.c: New.
15273 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
15275         * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
15276         (s-gtype): Depend on EXTRA_GTYPE_DEPS.
15277         * gengtype-state.c (state_writer::write_state_file_list): Add a
15278         parameter to the fileslist expression for the number of build
15279         headers to scan.
15280         (read_state_files_list): Detect build headers and strip the
15281         initial "./" or ".\" from their names.
15282         * gengtype.c (build_headers): New global variable.
15283         (num_build_headers): Likewise.
15284         (open_base_files): Emit #include for each build header.
15285         (main): Detect and count build headers.
15286         * gengtype.h (build_headers): New extern variable.
15287         (num_build_headers): Likewise.
15289 2021-07-16  Richard Biener   <rguenther@suse.de>
15291         * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
15292         the type of the LHS.
15293         (find_bswap_or_nop_1): Likewise.
15294         (find_bswap_or_nop): Likewise.
15295         * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
15296         prototype.
15297         * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
15298         Remove unused parameters, pass in the scalar type.  Fix
15299         internal store function handling.
15300         * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
15301         (vect_get_vector_types_for_stmt): Move down check for
15302         existing vector stmt after we've determined a scalar type.
15303         Pass down the used scalar type to vect_get_smallest_scalar_type.
15304         * tree-vect-generic.c (expand_vector_condition): Use
15305         the type of the LHS.
15306         (expand_vector_scalar_condition): Likewise.
15307         (expand_vector_operations_1): Likewise.
15308         * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
15309         (vect_recog_dot_prod_pattern): Likewise.
15310         (vect_recog_sad_pattern): Likewise.
15311         (vect_recog_widen_op_pattern): Likewise.
15312         (vect_recog_widen_sum_pattern): Likewise.
15313         (vect_recog_mixed_size_cond_pattern): Likewise.
15315 2021-07-16  Jan Hubicka  <hubicka@ucw.cz>
15317         * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
15318         (dump_eaf_flags): Dump EAF_NOT_RETURNED
15319         (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
15320         and EAF_NOT_RETURNED.
15321         (modref_summary::useful_p): Likewise.
15322         (modref_summary_lto::useful_p): Likewise.
15323         (struct) modref_summary_lto: Use eaf_fleags_t.
15324         (deref_flags): Handle EAF_NOT_RETURNED.
15325         (struct escape_point): Use min_flags.
15326         (modref_lattice::init): Add EAF_NOT_RETURNED.
15327         (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
15328         (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
15329         handle call flags.
15330         (analyze_parms): Also analyze const functions; update conition on
15331         flags usefulness.
15332         (modref_write): Update streaming.
15333         (read_section): Update streaming.
15334         (remap_arg_flags): Use eaf_flags_t.
15335         (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
15336         * ipa-modref.h: (eaf_flags_t): New typedef.
15337         (struct modref_summary): Use eaf_flags_t.
15338         * tree-core.h (EAF_NOT_RETURNED): New constant.
15340 2021-07-16  Richard Biener  <rguenther@suse.de>
15342         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
15343         the type of the LHS.
15344         (gimple_assign_nonnegative_warnv_p): Likewise.
15345         (gimple_call_nonnegative_warnv_p): Likewise.  Return false
15346         if the call has no LHS.
15347         * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
15348         * tree-eh.c (stmt_could_throw_1_p): Likewise.
15349         * tree-inline.c (insert_init_stmt): Likewise.
15350         * tree-ssa-loop-niter.c (get_val_for): Likewise.
15351         * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
15352         the def.
15353         * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
15354         gassign *.  Use the type of the lhs.
15355         (vn_nary_op_lookup_stmt): Adjust.
15356         (vn_nary_op_insert_stmt): Likewise.
15358 2021-07-16  Ilya Leoshkevich  <iii@linux.ibm.com>
15360         * config/s390/predicates.md (bras_sym_operand): Accept all
15361         functions in 64-bit mode, use UNSPEC_PLT31.
15362         (larl_operand): Use UNSPEC_PLT31.
15363         * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
15364         (legitimize_pic_address): Likewise.
15365         (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
15366         use UNSPEC_PLT31.
15367         (s390_delegitimize_address): Use UNSPEC_PLT31.
15368         (s390_output_addr_const_extra): Likewise.
15369         (print_operand): Add @PLT to TLS calls, handle %K.
15370         (s390_function_profiler): Mark __fentry__/_mcount as function,
15371         use %K, use UNSPEC_PLT31.
15372         (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
15373         (s390_emit_call): Use UNSPEC_PLT31.
15374         (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
15375         * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
15376         (*movdi_64): Use %K.
15377         (reload_base_64): Likewise.
15378         (*sibcall_brc): Likewise.
15379         (*sibcall_brcl): Likewise.
15380         (*sibcall_value_brc): Likewise.
15381         (*sibcall_value_brcl): Likewise.
15382         (*bras): Likewise.
15383         (*brasl): Likewise.
15384         (*bras_r): Likewise.
15385         (*brasl_r): Likewise.
15386         (*bras_tls): Likewise.
15387         (*brasl_tls): Likewise.
15388         (main_base_64): Likewise.
15389         (reload_base_64): Likewise.
15390         (@split_stack_call<mode>): Likewise.
15392 2021-07-16  Richard Biener  <rguenther@suse.de>
15394         PR tree-optimization/101467
15395         * tree-vect-stmts.c (vect_gen_while): Properly guard
15396         make_temp_ssa_name usage.
15398 2021-07-16  Cooper Qu  <cooper.qu@linux.alibaba.com>
15400         * config.gcc: Don't use forked print-sysroot-suffix.sh and
15401         t-sysroot-suffix for C-SKY.
15402         * config/csky/print-sysroot-suffix.sh: Delete.
15403         * config/csky/t-csky-linux: Delete.
15404         * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
15405         instead of CSKY_MULTILIB_DIRNAMES.
15407 2021-07-16  Richard Biener  <rguenther@suse.de>
15409         * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
15410         conversion issues with the partial reduction of the reused
15411         vector accumulator.
15413 2021-07-16  Richard Biener  <rguenther@suse.de>
15415         * config/i386/i386-options.c (ix86_option_override_internal): Set
15416         param_vect_partial_vector_usage to zero if not set.
15418 2021-07-15  Uroš Bizjak  <ubizjak@gmail.com>
15420         PR target/101346
15421         * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
15422         (VALID_INT_MODE_P): Add SDmode and DDmode.
15423         Add TDmode for TARGET_64BIT.
15424         (VALID_DFP_MODE_P): Remove.
15425         * config/i386/i386.c (ix86_hard_regno_mode_ok):
15426         Do not use VALID_DFP_MODE_P.
15428 2021-07-15  Andrew MacLeod  <amacleod@redhat.com>
15430         * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
15431         gimple_range_type.
15432         (fold_using_range::fold_stmt): Ditto.
15433         (fold_using_range::range_of_range_op): Ditto.
15434         (fold_using_range::range_of_phi): Ditto.
15435         (fold_using_range::range_of_call): Ditto.
15436         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
15437         (fold_using_range::range_of_builtin_call): Ditto.
15438         (fold_using_range::range_of_cond_expr): Ditto.
15439         * gimple-range-fold.h (gimple_range_type): New.
15441 2021-07-15  Martin Sebor  <msebor@redhat.com>
15443         PR middle-end/97027
15444         * tree-ssa-strlen.c (handle_assign): New function.
15445         (maybe_warn_overflow): Add argument.
15446         (nonzero_bytes_for_type): New function.
15447         (count_nonzero_bytes): Handle more tree types.  Call
15448         nonzero_bytes_for_tye.
15449         (count_nonzero_bytes): Handle types.
15450         (handle_store): Handle stores from function calls.
15451         (strlen_check_and_optimize_call): Move code to handle_assign.  Call
15452         it for assignments from function calls.
15454 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
15456         PR analyzer/95006
15457         PR analyzer/94713
15458         PR analyzer/94714
15459         * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
15461 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
15463         * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
15465 2021-07-15  Martin Sebor  <msebor@redhat.com>
15467         PR c/101289
15468         PR c/97548
15469         * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
15470         (operand_compare::verify_hash_value): Same.
15471         * tree-core.h (OEP_DECL_NAME): New.
15473 2021-07-15  Martin Jambor  <mjambor@suse.cz>
15475         * profile-count.h (profile_count::value): Change the return type to
15476         uint64_t.
15477         * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
15478         statement.
15479         * tree-cfg.c (dump_function_to_file): Likewise.
15481 2021-07-15  Bill Schmidt  <wschmidt@linux.ibm.com>
15483         PR target/101129
15484         * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
15485         (rs6000_analyze_swaps): Insns containing a subreg of a mult are
15486         not swappable.
15488 2021-07-15  Richard Biener  <rguenther@suse.de>
15490         * tree-vectorizer.h (vect_gen_while): Match up with
15491         vect_gen_while_not.
15492         * tree-vect-stmts.c (vect_gen_while): Adjust API to that
15493         of vect_gen_while_not.
15494         (vect_gen_while_not): Adjust.
15495         * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
15497 2021-07-15  Aldy Hernandez  <aldyh@redhat.com>
15499         * gimple-range-cache.cc (non_null_ref::adjust_range): New.
15500         (ranger_cache::range_of_def): Call adjust_range.
15501         (ranger_cache::entry_range): Same.
15502         * gimple-range-cache.h (non_null_ref::adjust_range): New.
15503         * gimple-range.cc (gimple_ranger::range_of_expr): Call
15504         adjust_range.
15505         (gimple_ranger::range_on_entry): Same.
15507 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
15509         Revert:
15510         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15512         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
15514 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
15516         Revert:
15517         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15519         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
15520         (sdot_prod, udot_prod): ...These.
15521         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
15522         (aarch64_<sur>dot<vsi2qi>): Rename to...
15523         (<sur>dot_prod<vsi2qi>): ...This.
15524         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
15525         Update builtins.
15527 2021-07-15  Jakub Jelinek  <jakub@redhat.com>
15529         PR middle-end/101437
15530         * gimplify.c (gimplify_expr): Throw away volatile reads from empty
15531         types even if they have non-BLKmode TYPE_MODE.
15533 2021-07-15  Richard Biener  <rguenther@suse.de>
15535         PR driver/101383
15536         * gcc.c (process_command): Process -gtoggle like process_options
15537         would after parsing options.
15539 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
15541         * cfgexpand.c (expand_asm_loc): Adjust.
15542         (expand_asm_stmt): Likewise.
15543         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
15544         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
15545         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
15546         * config/avr/avr.c (avr_md_asm_adjust): Likewise.
15547         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
15548         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
15549         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
15550         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
15551         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
15552         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
15553         * config/s390/s390.c (s390_md_asm_adjust): Likewise.
15554         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
15555         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
15556         * doc/tm.texi: Regenerate.
15557         * target.def: Add location argument to md_asm_adjust.
15559 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
15561         * tree-diagnostic.c (diagnostic_report_current_function): Use the
15562         diagnostic's location, not input_location.
15564 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
15566         * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
15567         diagnostics.
15568         (expand_asm_stmt): Likewise.
15570 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
15572         * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
15573         addressed memory rtx, if any.
15574         (rs6000_split_multireg_move): Fix code formatting.
15575         Handle MMA build built-ins with operands in adjacent memory locations.
15577 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
15579         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
15580         in the file.
15582 2021-07-14  Jason Merrill  <jason@redhat.com>
15584         * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
15586 2021-07-14  Jason Merrill  <jason@redhat.com>
15588         * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
15589         C++.
15591 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15593         * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
15594         Remove erroneous line.
15596 2021-07-14  Andrew MacLeod  <amacleod@redhat.com>
15598         * params.opt (param_evrp_mode): Change default.
15600 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15602         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
15603         (sdot_prod, udot_prod): ...These.
15604         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
15605         (aarch64_<sur>dot<vsi2qi>): Rename to...
15606         (<sur>dot_prod<vsi2qi>): ...This.
15607         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
15608         Update builtins.
15610 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15612         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
15614 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15616         * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
15618 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15620         * config/arm/neon.md (usdot_prod<vsi2qi>): New.
15622 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15624         * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
15625         (usdot_prod<vsi2qi>): ... This.
15626         * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
15627         (usdot_prod): ...This.
15628         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
15629         * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
15630         Rename to...
15631         (@<sur>dot_prod<vsi2qi>): ...This.
15632         * config/aarch64/aarch64-sve-builtins-base.cc
15633         (svusdot_impl::expand): Use it.
15635 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
15637         * optabs.def (usdot_prod_optab): New.
15638         * doc/md.texi: Document it and clarify other dot prod optabs.
15639         * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
15640         * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
15641         * optabs.c (expand_widen_pattern_expr): Likewise.
15642         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15643         * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
15644         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
15645         optab subtype.
15646         (vect_widened_op_tree): Optionally ignore
15647         mismatch types.
15648         (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
15650 2021-07-14  H.J. Lu  <hjl.tools@gmail.com>
15652         PR target/101395
15653         * config/i386/driver-i386.c (host_detect_local_cpu): Check
15654         "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
15655         Enable UINTR only for 64-bit codegen.
15656         * config/i386/i386-options.c
15657         (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
15658         in 64-bit mode.
15659         * config/i386/i386.h (ARCH_ARG): New.
15660         (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
15661         "[arch|tune] 64" for 64-bit codegen.
15663 2021-07-14  Richard Biener  <rguenther@suse.de>
15665         PR tree-optimization/101445
15666         * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
15667         of the IV in the correct direction for negative stride
15668         accesses.
15670 2021-07-14  Jakub Jelinek  <jakub@redhat.com>
15672         PR go/101407
15673         * godump.c (godump_str_hash): New type.
15674         (godump_container::pot_dummy_types): Use string_hash instead of
15675         ptr_hash in the hash_set.
15677 2021-07-14  Richard Biener  <rguenther@suse.de>
15679         * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
15680         vector types where the old vector type has a multiple of
15681         the new vector type elements.
15682         (vect_create_partial_epilog): New function, split out from...
15683         (vect_create_epilog_for_reduction): ... here.
15684         (vect_transform_cycle_phi): Reduce the re-used accumulator
15685         to the new vector type.
15687 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
15689         * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
15690         non-'t'-sized arg check.
15692 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
15694         * tree-cfg.c (cleanup_dead_labels_eh): Update
15695         post_landing_pad label upon change of landing pad block's
15696         primary label.
15697         (cleanup_dead_labels): Check that a removed label is not that
15698         of a landing pad.
15700 2021-07-13  Jonathan Wright  <jonathan.wright@arm.com>
15702         * combine.c (combine_simplify_rtx): Add vec_select -> subreg
15703         simplification.
15704         * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
15705         Add Neon to general purpose register case for zero-extend
15706         pattern.
15707         * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
15708         case to prevent some cases opting to go through memory.
15709         * cse.c (fold_rtx): Add vec_select -> subreg simplification.
15710         * rtl.c (rtvec_series_p): Define predicate to determine
15711         whether a vector contains a linear series of integers.
15712         * rtl.h (rtvec_series_p): Define.
15713         * rtlanal.c (vec_series_lowpart_p): Define predicate to
15714         determine if a vector selection is equivalent to the low part
15715         of the vector.
15716         * rtlanal.h (vec_series_lowpart_p): Define.
15717         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
15718         Add vec_select -> subreg simplification.
15720 2021-07-13  Paul A. Clarke  <pc@us.ibm.com>
15722         * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
15723         _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
15724         _mm_test_mix_ones_zeros): New.
15726 2021-07-13  Roger Sayle  <roger@nextmovesoftware.com>
15727             Richard Biener  <rguenther@suse.de>
15729         * gimple.c (gimple_could_trap_p_1):  Make S argument a
15730         "const gimple*".  Preserve constness in call to
15731         gimple_asm_volatile_p.
15732         (gimple_could_trap_p): Make S argument a "const gimple*".
15733         * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
15734         Update function prototypes.
15736 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15738         * tree-vectorizer.h (vect_reusable_accumulator): New structure.
15739         (_loop_vec_info::main_loop_edge): New field.
15740         (_loop_vec_info::skip_main_loop_edge): Likewise.
15741         (_loop_vec_info::skip_this_loop_edge): Likewise.
15742         (_loop_vec_info::reusable_accumulators): Likewise.
15743         (_stmt_vec_info::reduc_scalar_results): Likewise.
15744         (_stmt_vec_info::reused_accumulator): Likewise.
15745         (vect_get_main_loop_result): Declare.
15746         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
15747         reduc_scalar_inputs.
15748         (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
15749         * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
15750         (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
15751         skip_main_loop_edge and skip_this_loop_edge fields.
15752         * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
15753         (vect_emit_reduction_init_stmts): New function.
15754         (get_initial_def_for_reduction): Use it.
15755         (get_initial_defs_for_reduction): Likewise.  Change the vinfo
15756         parameter to a loop_vec_info.
15757         (vect_create_epilog_for_reduction): Store the scalar results
15758         in the reduc_info.  If an epilogue loop is reusing an accumulator
15759         from the main loop, and if the epilogue loop can also be skipped,
15760         try to place the reduction code in the join block.  Record
15761         accumulators that could potentially be reused by epilogue loops.
15762         (vect_transform_cycle_phi): When vectorizing epilogue loops,
15763         try to reuse accumulators from the main loop.  Record the initial
15764         value in reduc_info for non-SLP reductions too.
15766 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15768         * tree-vect-loop.c (get_initial_def_for_reduction): Remove
15769         adjustment handling.  Take the neutral value as an argument,
15770         in place of the code argument.
15771         (vect_transform_cycle_phi): Update accordingly.  Handle the
15772         initial values of cond reductions separately from code reductions.
15773         Choose the adjustment here rather than in
15774         get_initial_def_for_reduction.  Sink the splat of vec_initial_def.
15776 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15778         * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
15779         (neutral_op_for_reduction): ...this, providing a more general
15780         interface.
15781         (vect_create_epilog_for_reduction): Update accordingly.
15782         (vectorizable_reduction): Likewise.
15783         (vect_transform_cycle_phi): Likewise.
15785 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15787         * tree-vect-loop.c (get_initial_def_for_reduction): Take the
15788         reduc_info instead of the original stmt_vec_info.
15789         (vect_transform_cycle_phi): Update accordingly.
15791 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15793         * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
15794         reduc_info as an additional parameter.
15795         (vect_transform_cycle_phi): Update accordingly.
15797 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15799         * tree-vectorizer.h: Include tree-ssa-operands.h.
15800         (vect_phi_initial_value): New function.
15801         * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
15802         (get_initial_defs_for_reduction, info_for_reduction): Likewise.
15803         (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
15804         (vect_transform_cycle_phi, vectorizable_induction): Likewise.
15806 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15808         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
15809         the phi results to vectype after creating them.  Remove later
15810         conversion code that thus becomes redundant.
15812 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15814         * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
15815         the new_phis vector with a reduc_inputs vector.  Combine handling
15816         of reduction chains and ncopies > 1.
15818 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15820         * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
15821         scalar_results to group_size elements after reducing down from
15822         N*group_size elements.  Construct an array_slice of the live-out
15823         stmts and assert that there is one stmt per scalar result.
15825 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15827         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15828         nested_in_vect_loop and use double_reduc everywhere.  Remove dead
15829         assignment to "loop".
15831 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
15833         * internal-fn.c (vectorized_internal_fn_supported_p): Handle
15834         vector types first.  For scalar types, consider both the preferred
15835         vector mode and the alternative vector modes.
15836         * optabs-query.c (can_vec_mask_load_store_p): Use the same
15837         structure as above, in particular using related_vector_mode
15838         for modes provided by autovectorize_vector_modes.
15840 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
15841             Richard Biener  <rguenther@suse.de>
15843         PR tree-optimization/101419
15844         * tree-pass.h (PROP_objsz): Define.
15845         (make_pass_early_object_sizes): Declare.
15846         * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
15847         there to pass_early_object_sizes, drop parameter.
15848         (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
15849         drop parameter, move pass_post_ipa_warn right after that.
15850         * tree-object-size.c (pass_object_sizes::execute): Rename to...
15851         (object_sizes_execute): ... this.  Add insert_min_max_p argument.
15852         (pass_data_object_sizes): Move after object_sizes_execute.
15853         (pass_object_sizes): Likewise.  In execute method call
15854         object_sizes_execute, drop set_pass_param method and insert_min_max_p
15855         non-static data member and its initializer in the ctor.
15856         (pass_data_early_object_sizes, pass_early_object_sizes,
15857         make_pass_early_object_sizes): New.
15858         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
15859         (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
15861 2021-07-13  Kito Cheng  <kito.cheng@sifive.com>
15863         PR target/101275
15864         * config/riscv/constraints.md ("S"): Update description and remove
15865         @internal.
15866         * doc/md.texi (Machine Constraints): Document the 'S' constraints
15867         for RISC-V.
15869 2021-07-13  Richard Biener  <rguenther@suse.de>
15871         Revert:
15872         2021-07-12  Richard Biener  <rguenther@suse.de>
15874         * tree-vect-slp.c (vect_slp_region): Show the number of
15875         SLP graph entries in the optimization message.
15877 2021-07-13  Michael Meissner  <meissner@linux.ibm.com>
15879         * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
15880         value to to long.
15881         * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
15882         return type to long.
15883         * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
15884         type to long.
15886 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
15888         * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
15889         Query relation between the 2 operands and use it.
15891 2021-07-12  Sergei Trofimovich  <siarheit@google.com>
15893         * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
15895 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
15897         PR target/101424
15898         * config/i386/predicates.md (vec_setm_sse41_operand):
15899         Rename from vec_setm_operand.
15900         (vec_setm_avx2_operand): New predicate.
15901         * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
15902         Use vec_setm_sse41_operand as operand 2 predicate.
15903         (vec_set<V_256_512:mode): New expander.
15904         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
15905         as operand 2 predicate.
15907 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
15909         PR tree-optimization/101335
15910         * range-op.cc (operator_cast::lhs_op1_relation): Delete.
15912 2021-07-12  Andrew Pinski  <apinski@marvell.com>
15914         * tree-ssa-phiopt.c (match_simplify_replacement): Move
15915         insert of the sequence before the movement of the
15916         statement. Check if to see if the statement is used
15917         outside of the original phi to see if we should move it.
15919 2021-07-12  Richard Biener  <rguenther@suse.de>
15921         * dump-context.h (debug_dump_context::debug_dump_context):
15922         Add FILE * parameter defaulted to stderr.
15923         * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
15924         * tree-vect-slp.c (dot_slp_tree): New functions.
15926 2021-07-12  Richard Biener  <rguenther@suse.de>
15928         PR tree-optimization/101373
15929         * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
15930         references when the BB may not return.
15931         (compute_avail): Pass in the function we're working on and
15932         replace cfun references with it.  Externally throwing
15933         const calls also possibly terminate the function.
15934         (pass_pre::execute): Pass down the function we're working on.
15935         * gcse.c (compute_hash_table_work): Externally throwing
15936         const/pure calls also need record_last_mem_set_info.
15937         * postreload-gcse.c (record_opr_changes): Looping or externally
15938         throwing const/pure calls also need record_last_mem_set_info.
15940 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
15942         * recog.c (memory_address_addr_space_p): Change the type to bool.
15943         Return true/false instead of 1/0.
15944         (offsettable_memref_p): Ditto.
15945         (offsettable_nonstrict_memref_p): Ditto.
15946         (offsettable_address_addr_space_p): Ditto.
15947         Change the type of addressp indirect function to bool.
15948         * recog.h (memory_address_addr_space_p): Change the type to bool.
15949         (strict_memory_address_addr_space_p): Ditto.
15950         (offsettable_memref_p): Ditto.
15951         (offsettable_nonstrict_memref_p): Ditto.
15952         (offsettable_address_addr_space_p): Ditto.
15953         * reload.c (maybe_memory_address_addr_space_p): Ditto.
15954         (strict_memory_address_addr_space_p): Change the type to bool.
15955         Return true/false instead of 1/0.
15956         (maybe_memory_address_addr_space_p): Change the type to bool.
15958 2021-07-12  Richard Biener  <rguenther@suse.de>
15960         * tree-vect-slp.c (vect_slp_region): Show the number of
15961         SLP graph entries in the optimization message.
15963 2021-07-12  Richard Biener  <rguenther@suse.de>
15965         PR tree-optimization/101394
15966         * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
15967         copies from abnormals for a full redundancy.
15969 2021-07-12  Richard Biener  <rguenther@suse.de>
15971         PR middle-end/101423
15972         * gimple.c (gimple_could_trap_p_1): Internal function calls
15973         do not trap.
15974         * tree-eh.c (tree_could_trap_p): Likewise.
15976 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
15978         PR target/66791
15979         * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
15980         __a * __b.
15981         (vmulq_n_u32): Likewise.
15982         (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
15983         (vmulq_n_f32): Likewise.
15984         (vmul_n_f16): Likewise.
15985         (vmulq_n_f16): Likewise.
15987 2021-07-12  Martin Liska  <mliska@suse.cz>
15989         PR sanitizer/101425
15990         * gcc.c (check_offload_target_name): Call
15991           candidates_list_and_hint only if we have a candidate.
15993 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
15995         PR target/98435
15996         * config/arm/neon.md (vec_init): Move to ...
15997         * config/arm/vec-common.md (vec_init): ... here.
15998         Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
16000 2021-07-12  Roger Sayle  <roger@nextmovesoftware.com>
16002         PR tree-optimization/101403
16003         * match.pd ((T)bswap(X)>>C): Correctly handle cases where
16004         signedness of the shift is not the same as the signedness of
16005         the type extension.
16007 2021-07-09  Roger Sayle  <roger@nextmovesoftware.com>
16008             Uroš Bizjak  <ubizjak@gmail.com>
16010         * config/i386/i386.md (*divmodsi4_const): Optimize SImode
16011         divmod of a constant numerator with new define_insn_and_split.
16013 2021-07-09  Iain Sandoe  <iain@sandoe.co.uk>
16015         PR target/100152
16016         * config/i386/i386-expand.c (ix86_expand_call): If a call is
16017         to a non-local-binding, or local but to a public symbol, then
16018         assume that it might be indirected via the lazy symbol binder.
16019         Mark R10 and R10 as clobbered in that case.
16021 2021-07-09  Eric Botcazou  <ebotcazou@adacore.com>
16023         PR target/101377
16024         * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
16025         the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
16026         and HAVE_LD_BROKEN_PE_DWARF5 is defined.
16028 2021-07-09  Uroš Bizjak  <ubizjak@gmail.com>
16030         * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
16031         log2 range of operands[3] to [1,31].
16032         (*udivmodsi4_pow2_zext_2): Ditto.  Correct insn RTX pattern.
16034 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
16036         * doc/md.texi: Don't split @smallexample in multiple @groups.
16038 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
16040         * doc/md.texi: Add missing 'see' word.
16042 2021-07-09  Andrew Pinski  <apinski@marvell.com>
16044         * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
16045         to take sequence and gimple_match_op.  Accept the case where
16046         op is a SSA_NAME and one statement in the sequence.
16047         Also allow constants.
16048         (gimple_simplify_phiopt): Always pass a sequence to resimplify.
16049         Update call to phiopt_early_allow.  Discard the sequence if not
16050         used.
16052 2021-07-09  Xi Ruoyao  <xry111@mengyan1223.wang>
16054         PR target/100760
16055         PR target/100761
16056         PR target/100762
16057         * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
16058         instead of ISA_HAS_MSA.
16059         (mips_expand_vec_unpack): Likewise.
16060         (mips_expand_vector_init): Likewise.
16062 2021-07-09  Kewen Lin  <linkw@linux.ibm.com>
16064         * config/rs6000/vsx.md (mods_<mode>): Rename to...
16065         (mod<mode>3): ... this.
16066         (modu_<mode>): Rename to...
16067         (umod<mode>3): ... this.
16068         * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
16069         MODU_V4SI): Adjust.
16071 2021-07-08  Jeff Law  <jeffreyalaw@gmail.com>
16073         * config/h8300/shiftrotate.md (variable shifts): Expose condition
16074         code handling for the test before the loop.
16076 2021-07-08  Martin Jambor  <mjambor@suse.cz>
16078         PR ipa/101066
16079         * ipa-sra.c (class isra_call_summary): New member
16080         m_before_any_store, initialize it in the constructor.
16081         (isra_call_summary::dump): Dump the new field.
16082         (ipa_sra_call_summaries::duplicate): Copy it.
16083         (process_scan_results): Set it.
16084         (isra_write_edge_summary): Stream it.
16085         (isra_read_edge_summary): Likewise.
16086         (param_splitting_across_edge): Only override
16087         safe_to_import_accesses if m_before_any_store is set.
16089 2021-07-08  Martin Sebor  <msebor@redhat.com>
16091         PR bootstrap/101374
16092         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
16093         Use Object Size Type 0 instead of 1.
16095 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
16097         * tree-vect-loop.c (vectorizable_reduction): Remove always-true
16098         if condition.
16100 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
16102         * match.pd: Simplify an extend-operate-truncate sequence involving
16103         a POLY_INT_CST.
16105 2021-07-08  Roger Sayle  <roger@nextmovesoftware.com>
16106             Richard Biener  <rguenther@suse.de>
16108         PR tree-optimization/40210
16109         * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
16110         (x>>C3)&C2 when possible.  Simplify bswap(x)>>C1 as ((T)x)>>C2
16111         when possible.  Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
16113 2021-07-08  Uroš Bizjak  <ubizjak@gmail.com>
16115         PR target/100637
16116         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
16117         Handle V4QI mode.
16118         * config/i386/mmx.md (V_32): New mode iterator.
16119         (mov<V_32:mode>): Use V_32 mode iterator.
16120         (*mov<V_32:mode>_internal): Ditto.
16121         (*push<V_32:mode>2_rex64): Ditto.
16122         (*push<V_32:mode>2): Ditto.
16123         (movmisalign<V_32:mode>): Ditto.
16124         (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
16125         (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
16126         (vec_unpacks_lo_v4qi): New expander.
16127         (vec_unpacks_hi_v4qi): Ditto.
16128         (vec_unpacku_lo_v4qi): Ditto.
16129         (vec_unpacku_hi_v4qi): Ditto.
16130         * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
16131         (VALID_INT_MODE_P): Ditto.
16133 2021-07-08  Michael Meissner  <meissner@linux.ibm.com>
16135         PR target/100809
16136         * config/rs6000/rs6000.md (udivti3): New insn.
16137         (divti3): New insn.
16138         (umodti3): New insn.
16139         (modti3): New insn.
16141 2021-07-07  Martin Sebor  <msebor@redhat.com>
16143         PR tree-optimization/100137
16144         PR tree-optimization/99121
16145         PR tree-optimization/97027
16146         * builtins.c (access_ref::access_ref): Also set offmax.
16147         (access_ref::offset_in_range): Define new function.
16148         (access_ref::add_offset): Set offmax.
16149         (access_ref::inform_access): Handle access_none.
16150         (handle_mem_ref): Clear ostype.
16151         (compute_objsize_r): Handle ASSERT_EXPR.
16152         * builtins.h (struct access_ref): Add offmax member.
16153         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
16154         compute_objsize() and simplify.
16156 2021-07-07  Peter Bergner  <bergner@linux.ibm.com>
16158         * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
16159         and VSX_BUILTIN_STXVP.
16161 2021-07-07  Martin Sebor  <msebor@redhat.com>
16163         PR target/101363
16164         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
16165         a stray %K from error_at() missed in r12-2088.
16167 2021-07-07  Richard Biener  <rguenther@suse.de>
16169         PR tree-optimization/99728
16170         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
16171         aggregate copies.
16172         (mem_refs_may_alias_p): Add assert we handled aggregate
16173         copies elsewhere.
16174         (sm_seq_valid_bb): Give up when running into aggregate copies.
16175         (ref_indep_loop_p): Handle aggregate copies as never
16176         being invariant themselves but allow other refs to be
16177         disambiguated against them.
16178         (can_sm_ref_p): Do not try to apply store-motion to aggregate
16179         copies.
16181 2021-07-06  Indu Bhagat  <indu.bhagat@oracle.com>
16183         PR debug/101283
16184         * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
16185         number of bits.
16187 2021-07-06  Martin Sebor  <msebor@redhat.com>
16189         * gimple-pretty-print.c (percent_G_format): Remove.
16190         * tree-diagnostic.c (default_tree_printer): Remove calls.
16191         * tree-pretty-print.c (percent_K_format): Remove.
16192         * tree-pretty-print.h (percent_K_format): Remove.
16194 2021-07-06  Martin Sebor  <msebor@redhat.com>
16196         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
16197         Remove %K and use error_at.
16198         (aarch64_expand_fcmla_builtin): Same.
16199         (aarch64_expand_builtin_tme): Same.
16200         (aarch64_expand_builtin_memtag): Same.
16201         * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
16202         (arm_expand_builtin): Same.
16203         * config/arm/arm.c (bounds_check): Same.
16205 2021-07-06  Martin Sebor  <msebor@redhat.com>
16207         * builtins.c (warn_string_no_nul): Remove %G.
16208         (maybe_warn_for_bound): Same.
16209         (warn_for_access): Same.
16210         (check_access): Same.
16211         (check_strncat_sizes): Same.
16212         (expand_builtin_strncat): Same.
16213         (expand_builtin_strncmp): Same.
16214         (expand_builtin): Same.
16215         (expand_builtin_object_size): Same.
16216         (warn_dealloc_offset): Same.
16217         (maybe_emit_free_warning): Same.
16218         * calls.c (maybe_warn_alloc_args_overflow): Same.
16219         (maybe_warn_nonstring_arg): Same.
16220         (maybe_warn_rdwr_sizes): Same.
16221         * expr.c (expand_expr_real_1): Remove %K.
16222         * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
16223         (gimple_fold_builtin_strncat): Same.
16224         * gimple-ssa-sprintf.c (format_directive): Same.
16225         (handle_printf_call): Same.
16226         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
16227         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
16228         (maybe_diag_access_bounds): Same.  Call gimple_location.
16229         (check_bounds_or_overlap): Same.
16230         * trans-mem.c (ipa_tm_scan_irr_block): Remove %K.  Simplify.
16231         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
16232         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
16233         (maybe_diag_stxncpy_trunc): Same.
16234         (handle_builtin_stxncpy_strncat): Same.
16235         (maybe_warn_pointless_strcmp): Same.
16236         * tree-ssa-uninit.c (maybe_warn_operand): Same.
16238 2021-07-06  Uroš Bizjak  <ubizjak@gmail.com>
16240         PR target/97194
16241         * config/i386/predicates.md (vec_setm_operand): Enable
16242         register_operand for TARGET_SSE4_1.
16243         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
16244         as operand 2 predicate.  Call ix86_expand_vector_set_var
16245         for non-constant index operand.
16246         (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
16247         Call ix86_expand_vector_set_var for non-constant index operand.
16249 2021-07-06  Jeff Law  <jeffreyalaw@gmail.com>
16251         * config/h8300/jumpcall.md (*branch): When possible, generate
16252         the comparison in CCZN mode.
16253         * config/h8300/predicates.md (simple_memory_operand): Reject all
16254         auto-increment addressing modes.
16256 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
16258         PR bootstrap/100246
16259         * config/i386/i386.h (struct stringop_algs): Define a CTOR for
16260         this type.
16262 2021-07-06  Richard Biener  <rguenther@suse.de>
16264         * doc/md.texi (vec_fmaddsub<mode>4): Document.
16265         (vec_fmsubadd<mode>4): Likewise.
16266         * optabs.def (vec_fmaddsub$a4): Add.
16267         (vec_fmsubadd$a4): Likewise.
16268         * internal-fn.def (IFN_VEC_FMADDSUB): Add.
16269         (IFN_VEC_FMSUBADD): Likewise.
16270         * tree-vect-slp-patterns.c (addsub_pattern::recognize):
16271         Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
16272         (addsub_pattern::build): Likewise.
16273         * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
16274         and CFN_VEC_FMSUBADD are not transparent for permutes.
16275         * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
16276         (vec_fmsubadd<mode>4): Likewise.
16278 2021-07-06  Richard Biener  <rguenther@suse.de>
16280         * doc/invoke.texi (fmove-loop-stores): Document.
16281         * common.opt (fmove-loop-stores): New option.
16282         * opts.c (default_options_table): Enable -fmove-loop-stores
16283         at -O1 but not -Og.
16284         * tree-ssa-loop-im.c (pass_lim::execute): Pass
16285         flag_move_loop_stores instead of true to
16286         loop_invariant_motion_in_fun.
16288 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
16290         * doc/install.texi: Document --with-dsymutil.
16292 2021-07-06  Andrew Pinski  <apinski@marvell.com>
16294         PR tree-optimization/101256
16295         * dbgcnt.def (phiopt_edge_range): New counter.
16296         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
16297         Check to make sure the new name is defined in the same
16298         bb as the conditional before duplicating range info.
16299         Also add debug counter.
16301 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
16303         PR rtl-optimization/100328
16304         * config/i386/i386-options.c (ix86_option_override_internal):
16305         Set param_ira_consider_dup_in_all_alts to 0.
16307 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
16309         PR rtl-optimization/100328
16310         * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
16311         parameter.
16312         * ira.c (ira_get_dup_out_num): Adjust as parameter
16313         param_ira_consider_dup_in_all_alts.
16314         * params.opt (ira-consider-dup-in-all-alts): New.
16315         * ira-conflicts.c (process_regs_for_copy): Add one parameter
16316         single_input_op_has_cstr_p.
16317         (get_freq_for_shuffle_copy): New function.
16318         (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
16319         * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
16321 2021-07-05  Jeff Law  <jeffreyalaw@gmail.com>
16323         * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
16324         generate condition code aware RTL directly.
16326 2021-07-05  Andrew Pinski  <apinski@marvell.com>
16328         PR tree-optimization/101039
16329         * match.pd (A CMP 0 ? A : -A): New patterns.
16330         * tree-ssa-phiopt.c (abs_replacement): Delete function.
16331         (tree_ssa_phiopt_worker): Don't call abs_replacement.
16332         Update comment about abs_replacement.
16334 2021-07-05  Andrew Pinski  <apinski@marvell.com>
16336         * tree-ssa-phiopt.c (gimple_simplify_phiopt):
16337         If "A ? B : C" fails to simplify, try "(!A) ? C : B".
16339 2021-07-05  Andrew Pinski  <apinski@marvell.com>
16341         * tree-ssa-phiopt.c (match_simplify_replacement):
16342         Add early_p argument. Call gimple_simplify_phiopt
16343         instead of gimple_simplify.
16344         (tree_ssa_phiopt_worker): Update call to
16345         match_simplify_replacement and allow unconditionally.
16346         (phiopt_early_allow): New function.
16347         (gimple_simplify_phiopt): New function.
16349 2021-07-05  Andrew Pinski  <apinski@marvell.com>
16351         PR middle-end/101237
16352         * fold-const.c (negate_expr_p): Remove call to element_mode
16353         and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
16354         HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
16355         (fold_negate_expr_1): Likewise.
16356         (const_unop): Likewise.
16357         (fold_cond_expr_with_comparison): Likewise.
16358         (fold_binary_loc): Likewise.
16359         (fold_ternary_loc): Likewise.
16360         (tree_call_nonnegative_warnv_p): Likewise.
16361         * match.pd (-(A + B) -> (-B) - A): Likewise.
16363 2021-07-05  Iain Sandoe  <iain@sandoe.co.uk>
16365         * configure.ac: Handle --with-dsymutil in the same way as we
16366         do for the assembler and linker.  (DEFAULT_DSYMUTIL): New.
16367         Extract the type and version for the dsymutil configured or
16368         found by the default searches.
16369         * config.in: Regenerated.
16370         * configure: Regenerated.
16371         * collect2.c (do_dsymutil): Handle locating dsymutil in the
16372         same way as for the assembler and  linker.
16373         * config/darwin.h (DSYMUTIL): Delete.
16374         * gcc.c: Report a configured dsymutil correctly.
16375         * exec-tool.in: Allow for dsymutil.
16377 2021-07-05  Uroš Bizjak  <ubizjak@gmail.com>
16379         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
16380         Handle V4QI and V2HI modes.
16381         (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
16382         Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
16383         (expand_vec_perm_pshufb): Rewrite to use switch statemets.
16384         Handle 4-byte dual operands with TARGET_XOP and single operands
16385         with TARGET_SSSE3.  Emit mmx_ppermv32 for TARGET_XOP and
16386         mmx_pshufbv4qi3 for TARGET_SSSE3.
16387         (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
16388         (expand_vec_perm_interleave2): Allow 4-byte vector modes.
16389         (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
16390         (expand_vec_perm_even_odd_1): Handle V4QI mode.
16391         (expand_vec_perm_broadcast_1): Handle V4QI mode.
16392         (ix86_vectorize_vec_perm_const): Handle V4QI mode.
16393         * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
16394         (mmx_pshufbv4qi3): Ditto.
16395         (*mmx_pblendw32): Ditto.
16396         (*mmx_pblendw64): Rename from *mmx_pblendw.
16397         (mmx_punpckhbw_low): New insn_and_split pattern.
16398         (mmx_punpcklbw_low): Ditto.
16400 2021-07-05  Richard Biener  <rguenther@suse.de>
16402         * tree-vect-loop-manip.c (vect_loop_versioning): Do not
16403         set LOOP_C_INFINITE on the vectorized loop.
16405 2021-07-05  Richard Biener  <rguenther@suse.de>
16407         PR middle-end/101291
16408         * cfgloopmanip.c (loop_version): Set the loop copy of the
16409         versioned loop to the new loop.
16411 2021-07-04  Iain Sandoe  <iain@sandoe.co.uk>
16413         PR target/100269
16414         * config.gcc: Ensure that Darwin biarch definitions are
16415         added before i386.h.
16416         * config/i386/darwin.h (TARGET_64BIT): Remove.
16417         (PR80556_WORKAROUND): New.
16418         (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
16419         (DARWIN_SUBARCH_SPEC): New.
16420         * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
16421         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
16422         (REAL_LIBGCC_SPEC): Remove.
16423         * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
16424         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
16425         (REAL_LIBGCC_SPEC): Remove.
16427 2021-07-03  H.J. Lu  <hjl.tools@gmail.com>
16429         PR middle-end/101294
16430         * expr.c (store_constructor): Don't use vec_duplicate on vector.
16432 2021-07-02  Martin Sebor  <msebor@redhat.com>
16434         PR middle-end/98871
16435         PR middle-end/98512
16436         * diagnostic.c (get_any_inlining_info): New.
16437         (update_effective_level_from_pragmas): Handle inlining context.
16438         (diagnostic_enabled): Same.
16439         (diagnostic_report_diagnostic): Same.
16440         * diagnostic.h (struct diagnostic_info): Add ctor.
16441         (struct diagnostic_context): Add new member.
16442         * tree-diagnostic.c (set_inlining_locations): New.
16443         (tree_diagnostics_defaults): Set new callback pointer.
16445 2021-07-02  Peter Bergner  <bergner@linux.ibm.com>
16447         * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
16448         New macros.
16449         (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
16450         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
16451         lxvp and stxvp built-ins.
16452         (mma_init_builtins): Handle lxvp and stxvp built-ins.
16453         (builtin_function_type): Likewise.
16454         * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
16456 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
16458         * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
16459         additional argument for the code.
16460         * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
16461         argument for the code.  Just return if the ZN bits are useful or
16462         not rather than the old style CC_* enums.
16463         * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
16464         more generic shiftqi patterns.
16465         (shifthi_noscratch, shiftsi_noscratch): Similarly.
16466         (shiftqi_noscratch_set_flags): New pattern.
16467         (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
16469 2021-07-02  Andrew MacLeod  <amacleod@redhat.com>
16471         PR tree-optimization/101223
16472         * range-op.cc (build_lt): Add -1 for signed values.
16473         (built_gt): Subtract -1 for signed values.
16475 2021-07-02  David Faust  <david.faust@oracle.com>
16477         * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
16478         (btf_asm_type): Likewise.
16480 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
16482         * config/h8300/h8300-protos.h (output_a_shift): Make first argument
16483         an array of rtx rather than a pointer to rtx.  Add code argument.
16484         (compute_a_shift_length): Similarly.
16485         * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
16486         shift itself isn't an operand.  Create dummy operand[0] to carry
16487         a mode and pass a suitable rtx code to compute_a_shift_length.
16488         (get_shift_alg): Adjust operand number of clobber in output templates.
16489         (output_a_shift): Make first argument an array of rtx rather than
16490         a pointer to rtx.  Add code argument for the type of shift.
16491         Adjust now that the shift itself is no longer an operand.
16492         (compute_a_shift_length): Similarly.
16493         * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
16494         iterator rather than nshift_operator.
16495         (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
16496         (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
16497         and compute_a_shift_length.
16498         (shiftqi_noscratch_clobber_flags): Likewise.
16499         (shifthi_noscratch_clobber_flags): Likewise.
16500         (shiftsi_noscratch_clobber_flags): Likewise.
16502 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
16504         PR debug/101283
16505         * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
16506         dsymutil for BTF/CTF.
16508 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
16510         PR debug/101283
16511         * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
16512         segment to include BTF.
16513         (BTF_INFO_SECTION_NAME): New.
16515 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
16517         * config/m32r/m32r-protos.h (call_operand): Adjust return type.
16518         (small_data_operand, memreg_operand, small_insn_p): Likewise.
16519         * config/m32r/m32r.c (call_operand): Adjust return type.
16520         (small_data_operand, memreg_operand): Likewise.
16522 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
16524         * config/frv/frv-protos.h  (integer_register_operand): Adjust return
16525         type.
16526         (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
16527         (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
16528         (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
16529         (move_source_operand, move_destination_operand): Likewise.
16530         (condexec_source_operand, condexec_dest_operand): Likewise.
16531         (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
16532         (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
16533         (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
16534         (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
16535         (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
16536         (even_fpr_operand, odd_fpr_operand): Likewise.
16537         (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
16538         (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
16539         (uint4_operand, uint1_operand, int_2word_operand): Likewise
16540         (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
16541         (relational_operator, float_relational_operator): Likewise.
16542         (ccr_eqne_operator, minmax_operator): Likewise.
16543         (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
16544         (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
16545         (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
16546         (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
16547         (quad_acc_operand, accg_operand): Likewise.
16549 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
16551         * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
16552         return type to a bool.
16553         (nonimmediate_nonstack_operand): Likewise.
16554         (xstormy16_splittable_below100_operand): Likewise.
16555         * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
16556         return type.
16557         (xstormy16_splittable_below100_operand): Likewise.
16559 2021-07-02  Richard Biener  <rguenther@suse.de>
16561         PR tree-optimization/101293
16562         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
16563         with combined offsets.
16564         (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
16565         combined with the rest of the offset.
16567 2021-07-02  Eric Botcazou  <ebotcazou@adacore.com>
16569         * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
16570         PIC encodings for PE-COFF targets.
16572 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
16574         PR target/101286
16575         * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
16576         Return nullptr for TImode inner mode.
16578 2021-07-02  Richard Biener  <rguenther@suse.de>
16580         PR tree-optimization/101280
16581         PR tree-optimization/101173
16582         * gimple-loop-interchange.cc
16583         (tree_loop_interchange::valid_data_dependences): Properly
16584         guard all dependence checks with DDR_REVERSED_P or its
16585         inverse.
16587 2021-07-02  Hongyu Wang  <hongyu.wang@intel.com>
16589         * config/i386/i386-expand.c (ix86_expand_builtin):
16590         Add branch to clear odata when ZF is set for asedecenc_expand
16591         and wideaesdecenc_expand.
16593 2021-07-02  Eugene Rozenfeld  <erozen@microsoft.com>
16595         * config/i386/gcc-auto-profile: regenerate
16597 2021-07-02  liuhongt  <hongtao.liu@intel.com>
16599         * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
16600         (trunc<mode><pmov_dst_4_lower>2): this.
16602 2021-07-01  David Malcolm  <dmalcolm@redhat.com>
16604         * diagnostic.h (diagnostic_context::m_file_cache): New field.
16605         * input.c (class fcache): Rename to...
16606         (class file_cache_slot): ...this, making most members private and
16607         prefixing fields with "m_".
16608         (file_cache_slot::get_file_path): New accessor.
16609         (file_cache_slot::get_use_count): New accessor.
16610         (file_cache_slot::missing_trailing_newline_p): New accessor.
16611         (file_cache_slot::inc_use_count): New.
16612         (fcache_buffer_size): Move to...
16613         (file_cache_slot::buffer_size): ...here.
16614         (fcache_line_record_size): Move to...
16615         (file_cache_slot::line_record_size): ...here.
16616         (fcache_tab): Delete, in favor of global_dc->m_file_cache.
16617         (fcache_tab_size): Move to file_cache::num_file_slots.
16618         (diagnostic_file_cache_init): Update for move of fcache_tab
16619         to global_dc->m_file_cache.
16620         (diagnostic_file_cache_fini): Likewise.
16621         (lookup_file_in_cache_tab): Convert to...
16622         (file_cache::lookup_file): ...this.
16623         (diagnostics_file_cache_forcibly_evict_file): Update for move of
16624         fcache_tab to global_dc->m_file_cache, moving most of
16625         implementation to...
16626         (file_cache::forcibly_evict_file): ...this new function and...
16627         (file_cache_slot::evict): ...this new function.
16628         (evicted_cache_tab_entry): Convert to...
16629         (file_cache::evicted_cache_tab_entry): ...this.
16630         (add_file_to_cache_tab): Convert to...
16631         (file_cache::add_file): ...this, moving bulk of implementation
16632         to...
16633         (file_cache_slot::create): ..this new function.
16634         (file_cache::file_cache): New.
16635         (file_cache::~file_cache): New.
16636         (lookup_or_add_file_to_cache_tab): Convert to...
16637         (file_cache::lookup_or_add_file): ..this new function.
16638         (fcache::fcache): Rename to...
16639         (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
16640         to fields.
16641         (fcache::~fcache): Rename to...
16642         (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
16643         to fields.
16644         (needs_read): Convert to...
16645         (file_cache_slot::needs_read_p): ...this.
16646         (needs_grow): Convert to...
16647         (file_cache_slot::needs_grow_p): ...this.
16648         (maybe_grow): Convert to...
16649         (file_cache_slot::maybe_grow): ...this.
16650         (read_data): Convert to...
16651         (file_cache_slot::read_data): ...this.
16652         (maybe_read_data): Convert to...
16653         (file_cache_slot::maybe_read_data): ...this.
16654         (get_next_line): Convert to...
16655         (file_cache_slot::get_next_line): ...this.
16656         (goto_next_line): Convert to...
16657         (file_cache_slot::goto_next_line): ...this.
16658         (read_line_num): Convert to...
16659         (file_cache_slot::read_line_num): ...this.
16660         (location_get_source_line): Update for moving of globals to
16661         global_dc->m_file_cache.
16662         (location_missing_trailing_newline): Likewise.
16663         * input.h (class file_cache_slot): New forward decl.
16664         (class file_cache): New.
16666 2021-07-01  Michael Meissner  <meissner@linux.ibm.com>
16668         * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
16669         128-bit floating point conditional move support.
16670         (have_compare_and_set_mask): Add IEEE 128-bit floating point
16671         types.
16672         * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
16673         (mov<mode>cc_p10, IEEE128 iterator): New insn.
16674         (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
16675         (fpmask<mode>, IEEE128 iterator): New insn.
16676         (xxsel<mode>, IEEE128 iterator): New insn.
16678 2021-07-01  Iain Sandoe  <iain@sandoe.co.uk>
16680         PR debug/101283
16681         * config/darwin.h (CTF_INFO_SECTION_NAME): New.
16683 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
16685         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
16686         Make it global.
16687         * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
16688         New prototype.
16689         * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
16690         (vec_duplicate<mode>): New expander.
16692 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
16694         PR target/100865
16695         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
16696         New prototype.
16697         (ix86_byte_broadcast): New function.
16698         (ix86_convert_const_wide_int_to_broadcast): Likewise.
16699         (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
16700         size is 16 bytes or bigger.
16701         (ix86_broadcast_from_integer_constant): New function.
16702         (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
16703         to broadcast if mode size is 16 bytes or bigger.
16704         * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
16705         prototype.
16706         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
16708 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
16710         * config/i386/predicates.md (ix86_endbr_immediate_operand):
16711         Return true/false instead of 1/0.
16712         (movq_parallel): Ditto.
16714 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
16716         * recog.c (general_operand): Return true/false instead of 1/0.
16717         (register_operand): Ditto.
16718         (immediate_operand): Ditto.
16719         (const_int_operand): Ditto.
16720         (const_scalar_int_operand): Ditto.
16721         (const_double_operand): Ditto.
16722         (push_operand): Ditto.
16723         (pop_operand): Ditto.
16724         (memory_operand): Ditto.
16725         (indirect_operand): Ditto.
16727 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
16729         * genpreds.c (write_predicate_subfunction):
16730         Change the type of written subfunction to bool.
16731         (write_one_predicate_function):
16732         Change the type of written function to bool.
16733         (write_tm_preds_h): Ditto.
16734         * recog.h (*insn_operand_predicate_fn): Change the type to bool.
16735         * recog.c (general_operand): Change the type to bool.
16736         (address_operand): Ditto.
16737         (register_operand): Ditto.
16738         (pmode_register_operand): Ditto.
16739         (scratch_operand): Ditto.
16740         (immediate_operand): Ditto.
16741         (const_int_operand): Ditto.
16742         (const_scalar_int_operand): Ditto.
16743         (const_double_operand): Ditto.
16744         (nonimmediate_operand): Ditto.
16745         (nonmemory_operand): Ditto.
16746         (push_operand): Ditto.
16747         (pop_operand): Ditto.
16748         (memory_operand): Ditto.
16749         (indirect_operand): Ditto.
16750         (ordered_comparison_operator): Ditto.
16751         (comparison_operator): Ditto.
16752         * config/i386/i386-expand.c (ix86_expand_sse_cmp):
16753         Change the type of indirect predicate function to bool.
16754         * config/rs6000/rs6000.c (easy_vector_constant):
16755         Change the type to bool.
16756         * config/mips/mips-protos.h (m16_based_address_p):
16757         Change the type of operand 3 to bool.
16759 2021-07-01  Richard Biener  <rguenther@suse.de>
16761         PR tree-optimization/101280
16762         PR tree-optimization/101173
16763         * gimple-loop-interchange.cc
16764         (tree_loop_interchange::valid_data_dependences): Revert
16765         previous change and instead correctly handle DDR_REVERSED_P
16766         dependence.
16768 2021-07-01  Richard Biener  <rguenther@suse.de>
16770         PR tree-optimization/101278
16771         * tree-ssa-dse.c (dse_classify_store): First check for
16772         uses, then ignore stmt for chaining purposes.
16774 2021-07-01  Richard Biener  <rguenther@suse.de>
16776         PR tree-optimization/100778
16777         * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
16778         vectorized ops ahead of their scalar BB.
16780 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
16782         PR target/101044
16783         * config/i386/i386.md (*nabs<dwi>2_doubleword):
16784         New insn_and_split pattern.
16785         (*nabs<dwi>2_1): Ditto.
16786         * config/i386/i386-features.c
16787         (general_scalar_chain::compute_convert_gain):
16788         Handle (NEG (ABS (...))) RTX.  Rewrite src code
16789         scanner as switch statement.
16790         (general_scalar_chain::convert_insn):
16791         Handle (NEG (ABS (...))) RTX.
16792         (general_scalar_to_vector_candidate_p):
16793         Detect  (NEG (ABS (...))) RTX.  Reorder case statements
16794         for (AND (NOT (...) ...)) fallthrough.
16796 2021-07-01  Richard Biener  <rguenther@suse.de>
16798         PR tree-optimization/101178
16799         * tree-vect-slp.c (slpg_vertex::materialize): Remove.
16800         (slpg::perm_in): Add.
16801         (slpg::get_perm_in): Remove.
16802         (slpg::get_perm_materialized): Add.
16803         (vect_optimize_slp): Handle VEC_PERM nodes more optimally
16804         during permute propagation and materialization.
16806 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
16808         PR debug/101266
16809         * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
16811 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
16813         PR middle-end/94366
16814         * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
16815         is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
16816         use boolean_type_node instead of integer_type_node as NE_EXPR type.
16817         (lower_reduction_clauses): Likewise.
16819 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
16821         * config/gcn/gcn.c: Include dwarf2.h.
16822         (gcn_addr_space_debug): New function.
16823         (TARGET_ADDR_SPACE_DEBUG): New hook.
16825 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
16827         * common/config/gcn/gcn-common.c
16828         (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
16829         * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
16830         when emitting CFI.
16831         (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
16832         (gcn_frame_pointer_rqd): New function.
16833         (TARGET_FRAME_POINTER_REQUIRED): New hook.
16835 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
16837         * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
16838         prologue register saves.
16839         (gcn_debug_unwind_info): Use UI_DWARF2.
16840         (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
16841         (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
16842         * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
16843         (DWARF_LINK_REGISTER): New define.
16844         (FIRST_PSEUDO_REGISTER): Increment.
16845         (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
16846         (CALL_USED_REGISTERS): Likewise.
16847         (REGISTER_NAMES): Likewise.
16849 2021-06-30  Richard Biener  <rguenther@suse.de>
16851         PR tree-optimization/101267
16852         * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
16853         API and use SLP compatible interface of vect_is_simple_use.
16854         Reject not vectorized SLP defs for callers that do not support
16855         that.
16856         (vect_check_store_rhs): Handle masked stores and pass down
16857         the appropriate operator index.
16858         (vectorizable_call): Adjust.
16859         (vectorizable_store): Likewise.
16860         (vectorizable_load): Likewise.  Handle SLP pecularity of
16861         masked loads.
16862         (vect_is_simple_use): Remove special-casing of masked stores.
16864 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
16866         * common.opt (foffload): Remove help as Driver only.
16867         * gcc.c (display_help): Add -foffload.
16869 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
16871         * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
16872         (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
16873         a candidate list; better inform no offload target is configured
16874         and fix hint extraction when passed target is not '\0' at [len].
16875         * common.opt (foffload): Add tailing '.'.
16876         (foffload-options): Likewise; fix flag name in the help string.
16878 2021-06-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
16880         PR target/66791
16881         * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
16882         (vcage_f32): Gate comparison on __FAST_MATH__.
16883         (vcageq_f32): Likewise.
16884         (vcale_f32): Likewise.
16885         (vcaleq_f32): Likewise.
16886         (vcagt_f32): Likewise.
16887         (vcagtq_f32): Likewise.
16888         (vcalt_f32): Likewise.
16889         (vcaltq_f32): Likewise.
16890         (vcage_f16): Likewise.
16891         (vcageq_f16): Likewise.
16892         (vcale_f16): Likewise.
16893         (vcaleq_f16): Likewise.
16894         (vcagt_f16): Likewise.
16895         (vcagtq_f16): Likewise.
16896         (vcalt_f16): Likewise.
16897         (vcaltq_f16): Likewise.
16899 2021-06-30  Richard Biener  <rguenther@suse.de>
16901         PR tree-optimization/101264
16902         * tree-vect-slp.c (vect_optimize_slp): Propagate the
16903         computed perm_in to all "any" permute successors
16904         we cannot de-duplicate immediately.
16906 2021-06-30  liuhongt  <hongtao.liu@intel.com>
16908         PR target/101248
16909         * config/i386/sse.md
16910         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
16911         Refined to ..
16912         (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
16913         this.
16914         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
16915         * config/i386/subst.md (maskz_scalar): New define_subst.
16916         (maskz_scalar_name): New subst_attr.
16917         (maskz_scalar_op5): Ditto.
16918         (round_saeonly_maskz_scalar_op5): Ditto.
16919         (round_saeonly_maskz_scalar_operand5): Ditto.
16921 2021-06-30  David Edelsohn  <dje.gcc@gmail.com>
16923         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
16924         Increase code CSECT alignment to at least 32 bytes.
16925         * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
16926         alignment designation.
16928 2021-06-29  Sergei Trofimovich  <siarheit@google.com>
16930         * doc/generic.texi: Fix s/net yet/not yet/ typo.
16932 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
16934         PR tree-optimization/101254
16935         * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
16936         wrapping/non-wrapping when setting the result range.
16938 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
16940         * value-query.cc (gimple_range_global): Allow phis.
16942 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
16944         * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
16945         (simplify_using_ranges::op_with_boolean_value_range_p): Add a
16946         statement for location context.
16947         (check_for_binary_op_overflow): Ditto.
16948         (simplify_using_ranges::get_vr_for_comparison): Ditto.
16949         (simplify_using_ranges::compare_name_with_value): Ditto.
16950         (simplify_using_ranges::compare_names): Ditto.
16951         (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
16952         (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
16953         (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
16954         (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
16955         (simplify_using_ranges::two_valued_val_range_p): Ditto.
16956         (simplify_using_ranges::simplify): Ditto.
16957         * vr-values.h: Adjust prototypes.
16959 2021-06-29  Uroš Bizjak  <ubizjak@gmail.com>
16961         PR target/95046
16962         * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
16964 2021-06-29  Julian Brown  <julian@codesourcery.com>
16966         * config/gcn/gcn.c (gcn_init_libfuncs): New function.
16967         (TARGET_INIT_LIBFUNCS): Define target hook using above function.
16968         * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
16969         otherwise.
16970         (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
16971         (MAX_FIXED_MODE_SIZE): Change to 128.
16973 2021-06-29  Julian Brown  <julian@codesourcery.com>
16975         * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
16976         (s_mnemonic): Add clrsb.
16977         (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
16978         (clrsb<mode>2): Add expander for SImode/DImode.
16980 2021-06-29  Julian Brown  <julian@codesourcery.com>
16982         * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
16983         muldi3): Add patterns.
16985 2021-06-29  Julian Brown  <julian@codesourcery.com>
16987         * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
16988         (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
16990 2021-06-29  Julian Brown  <julian@codesourcery.com>
16992         * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
16994 2021-06-29  Joseph Myers  <joseph@codesourcery.com>
16996         * btfout.c, ctfout.c: Include "memmodel.h".
16998 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
17000         * gcc.c (check_offload_target_name): Cast len argument to
17001         %q.*s to 'int'; avoid -Wstringop-truncation warning.
17003 2021-06-29  Richard Biener  <rguenther@suse.de>
17005         * tree-vect-slp.c (vect_optimize_slp): Forward propagate
17006         to "any" permute nodes and relax "any" permute proapgation
17007         during iterative backward propagation.
17009 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
17011         PR other/67300
17012         * common.opt (-foffload=): Update description.
17013         (-foffload-options=): New.
17014         * doc/invoke.texi (C Language Options): Document
17015         -foffload and -foffload-options.
17016         * gcc.c (check_offload_target_name): New, split off from
17017         handle_foffload_option.
17018         (check_foffload_target_names): New.
17019         (handle_foffload_option): Handle -foffload=default.
17020         (driver_handle_option): Update for -foffload-options.
17021         * lto-opts.c (lto_write_options): Use -foffload-options
17022         instead of -foffload.
17023         * lto-wrapper.c (merge_and_complain, append_offload_options):
17024         Likewise.
17025         * opts.c (common_handle_option): Likewise.
17027 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
17029         * doc/invoke.texi (C Language Options): Sort options
17030         alphabetically in optlist and also the description itself.
17031         Remove leftover -fallow-single-precision from and add missing
17032         -fgnu-tm to the optlist.
17034 2021-06-29  Richard Biener  <rguenther@suse.de>
17036         * tree-vect-slp.c (slpg_vertex::visited): Remove.
17037         (vect_slp_perms_eq): Handle -1 permutes.
17038         (vect_optimize_slp): Rewrite permute propagation.
17040 2021-06-29  Jakub Jelinek  <jakub@redhat.com>
17042         PR c++/101210
17043         * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
17044         perform the optimization in GENERIC when sanitizing and x has a
17045         reference type.
17047 2021-06-29  Richard Biener  <rguenther@suse.de>
17049         PR tree-optimization/101242
17050         * tree-vect-slp.c (vect_slp_build_vertices): Force-add
17051         PHIs with not represented initial values as leafs.
17053 2021-06-29  Jan-Benedict Glaw  <jbglaw@getslash.de>
17055         * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
17056         * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
17057         "register" keyword.
17058         (pdp11_initial_elimination_offset) Remove unused variable.
17059         (pdp11_cmp_length) Ditto.
17060         (pdp11_insn_cost): Ditto, and fix signedness warning.
17062 2021-06-29  David Edelsohn  <dje.gcc@gmail.com>
17064         * btfout.c: Include tm_p.h.
17065         * ctfout.c: Same.
17067 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
17069         * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
17070         frame related.
17071         (bpf_expand_epilogue): Likewise.
17072         * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
17073         Do not define DBX_DEBUGGING_INFO.
17075 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
17077         * doc/invoke.texi: Document the CTF and BTF debug info options.
17079 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
17080             David Faust  <david.faust@oracle.com>
17081             Jose E. Marchesi  <jose.marchesi@oracle.com>
17082             Weimin Pan  <weimin.pan@oracle.com>
17084         * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
17085         GTFILES.  Add new object files.
17086         * common.opt: Add CTF and BTF debug info options.
17087         * btfout.c: New file.
17088         * ctfc.c: Likewise.
17089         * ctfc.h: Likewise.
17090         * ctfout.c: Likewise.
17091         * dwarf2ctf.c: Likewise.
17092         * dwarf2ctf.h: Likewise.
17093         * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
17094         BTF_DEBUG.
17095         * dwarf2out.c (dwarf2out_source_line): Likewise.
17096         (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
17097         be generated.
17098         (debug_format_do_cu): New function.
17099         (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
17100         them if requested.
17101         Include dwarf2ctf.c.
17102         * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
17103         formats.
17104         * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
17105         (CTF_DEBUG): New bitmask.
17106         (BTF_DEBUG): Likewise.
17107         (enum ctf_debug_info_levels): New enum.
17108         * gengtype.c (open_base_files): Handle ctfc.h.
17109         (main): Handle uint32_t type.
17110         * flags.h (btf_debuginfo_p): New definition.
17111         (dwarf_based_debuginfo_p): Likewise.
17112         * opts.c (debug_type_names): Add entries for CTF and BTF.
17113         (btf_debuginfo_p): New function.
17114         (dwarf_based_debuginfo_p): Likewise.
17115         (common_handle_option): Handle -gctfN and -gbtf options.
17116         (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
17117         * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
17118         frontend is not C.
17120 2021-06-28  Jose E. Marchesi  <jose.marchesi@oracle.com>
17122         * dwarf2out.c (AT_class): Function is no longer static.
17123         (AT_int): Likewise.
17124         (AT_unsigned): Likewise.
17125         (AT_loc): Likewise.
17126         (get_AT): Likewise.
17127         (get_AT_string): Likewise.
17128         (get_AT_flag): Likewise.
17129         (get_AT_unsigned): Likewise.
17130         (get_AT_ref): Likewise.
17131         (new_die_raw): Likewise.
17132         (lookup_decl_die): Likewise.
17133         (base_type_die): Likewise.
17134         (add_name_attribute): Likewise.
17135         (add_AT_int): Likewise.
17136         (add_AT_unsigned): Likewise.
17137         (add_AT_loc): Likewise.
17138         (dw_get_die_tag): New function.
17139         (dw_get_die_child): Likewise.
17140         (dw_get_die_sib): Likewise.
17141         (struct dwarf_file_data): Move from here to dwarf2out.h
17142         (struct dw_attr_struct): Likewise.
17143         * dwarf2out.h: Analogous changes.
17145 2021-06-28  Martin Jambor  <mjambor@suse.cz>
17147         PR ipa/93385
17148         * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
17149         members m_dead_stmts and m_dead_ssas.
17150         * ipa-param-manipulation.c
17151         (ipa_param_body_adjustments::mark_dead_statements): New function.
17152         (ipa_param_body_adjustments::common_initialization): Call it on
17153         all removed but not split parameters.
17154         (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
17155         new mwmbers.
17156         (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
17157         are dead.
17158         * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
17159         dead debug statements.
17160         (copy_phis_for_bb): Do not copy dead PHI nodes.
17162 2021-06-28  Martin Jambor  <mjambor@suse.cz>
17164         PR ipa/93385
17165         * symtab-clones.h (clone_info): Removed member param_adjustments.
17166         * ipa-param-manipulation.h: Adjust initial comment to reflect how we
17167         deal with pass-through splits now.
17168         (ipa_param_performed_split): Removed.
17169         (ipa_param_adjustments::modify_call): Adjusted parameters.
17170         (class ipa_param_body_adjustments): Adjusted parameters of
17171         register_replacement, modify_gimple_stmt and modify_call_stmt.
17172         (ipa_verify_edge_has_no_modifications): Declare.
17173         (ipa_edge_modifications_finalize): Declare.
17174         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
17175         performed_splits processing, pas only edge to padjs->modify_call,
17176         check that call arguments were not modified if they should not have
17177         been.
17178         * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
17179         splits.
17180         * ipa-param-manipulation.c (struct pass_through_split_map): New type.
17181         (ipa_edge_modification_info): Likewise.
17182         (ipa_edge_modification_sum): Likewise.
17183         (ipa_edge_modifications): New edge summary.
17184         (ipa_verify_edge_has_no_modifications): New function.
17185         (transitive_split_p): Removed.
17186         (transitive_split_map): Likewise.
17187         (init_transitive_splits): Likewise.
17188         (ipa_param_adjustments::modify_call): Adjusted to use the new edge
17189         summary instead of performed_splits.
17190         (ipa_param_body_adjustments::register_replacement): Drop dummy
17191         parameter, set base_index of the created ipa_param_body_replacement.
17192         (phi_arg_will_live_p): New function.
17193         (ipa_param_body_adjustments::common_initialization): Do not create
17194         IPA_SRA dummy decls.
17195         (simple_tree_swap_info): Removed.
17196         (remap_split_decl_to_dummy): Likewise.
17197         (record_argument_state_1): New function.
17198         (record_argument_state): Likewise.
17199         (ipa_param_body_adjustments::modify_call_stmt): New parameter
17200         orig_stmt.  Do not work with dummy decls, save necessary info about
17201         changes to ipa_edge_modifications.
17202         (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
17203         orig_stmt, pass it to modify_call_stmt.
17204         (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
17205         modify_gimple_stmt.
17206         (ipa_edge_modifications_finalize): New function.
17207         * tree-inline.c (remap_gimple_stmt): Pass original statement to
17208         modify_gimple_stmt.
17209         (copy_phis_for_bb): Do not copy dead PHI nodes.
17210         (expand_call_inline): Do not remap performed_splits.
17211         (update_clone_info): Likewise.
17212         * toplev.c: Include ipa-param-manipulation.h.
17213         (toplev::finalize): Call ipa_edge_modifications_finalize.
17215 2021-06-28  Andrew Pinski  <apinski@marvell.com>
17217         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
17218         info if we're the only things setting the target PHI.
17219         (value_replacement): Don't duplicate range here.
17220         (minmax_replacement): Likewise.
17222 2021-06-28  Richard Biener  <rguenther@suse.de>
17224         PR tree-optimization/101229
17225         * gimple-walk.c (gimple_walk_op): Handle PHIs.
17227 2021-06-28  Martin Liska  <mliska@suse.cz>
17229         * config/v850/v850.c (construct_dispose_instruction): Allocate
17230         a bigger buffer.
17231         (construct_prepare_instruction): Likewise.
17233 2021-06-28  Martin Liska  <mliska@suse.cz>
17235         * config/v850/v850.c (v850_option_override): Build default
17236         target node.
17237         (v850_can_inline_p): New.  Allow MASK_PROLOG_FUNCTION to be
17238         ignored for inlining.
17239         (TARGET_CAN_INLINE_P): New.
17241 2021-06-28  Richard Biener  <rguenther@suse.de>
17243         PR tree-optimization/101207
17244         * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
17245         permute eliding for load permutations properly.
17247 2021-06-28  Richard Biener  <rguenther@suse.de>
17249         PR tree-optimization/101173
17250         * gimple-loop-interchange.cc
17251         (tree_loop_interchange::valid_data_dependences): Disallow outer
17252         loop dependence distance of zero.
17254 2021-06-28  liuhongt  <hongtao.liu@intel.com>
17256         PR target/100648
17257         * config/i386/sse.md (*avx_cmp<mode>3_lt): New
17258         define_insn_and_split.
17259         (*avx_cmp<mode>3_ltint): Ditto.
17260         (*avx2_pcmp<mode>3_3): Ditto.
17261         (*avx2_pcmp<mode>3_4): Ditto.
17262         (*avx2_pcmp<mode>3_5): Ditto.
17264 2021-06-28  liuhongt  <hongtao.liu@intel.com>
17266         * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
17267         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
17268         IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
17269         IX86_BUILTIN_PBLENDVB128): Replace icode with
17270         CODE_FOR_nothing.
17271         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
17272         builtins.
17273         * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
17274         New pre_reload splitter.
17276 2021-06-27  Andrew Pinski  <apinski@marvell.com>
17278         PR middle-end/101230
17279         * fold-const.c (fold_ternary_loc): Check
17280         the return value of invert_tree_comparison.
17282 2021-06-27  David Edelsohn  <dje.gcc@gmail.com>
17284         * config.gcc: Add SPDX License Identifier.
17285         (powerpc-ibm-aix789): Default to aix73.h.
17286         (powerpc-ibm-aix7.2.*.*): New stanza.
17287         * config/rs6000/aix72.h: Add SPDX License Identifier.
17288         * config/rs6000/aix73.h: New file.
17290 2021-06-26  Jason Merrill  <jason@redhat.com>
17292         * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
17294 2021-06-26  Andrew Pinski  <apinski@marvell.com>
17296         * genmatch.c (lower_cond): Copy for_subst_vec
17297         for the simplify also.
17298         (lower): Swap the order for lower_for and lower_cond.
17300 2021-06-26  Andrew Pinski  <apinski@marvell.com>
17302         * tree-ssa-phiopt.c (match_simplify_replacement): Reset
17303         flow senatitive info on the moved ssa set.
17305 2021-06-26  Andrew Pinski  <apinski@marvell.com>
17307         * fold-const.c (fold_cond_expr_with_comparison):
17308         Exand arg0 into comp_code, arg00, and arg01.
17309         (fold_ternary_loc): Use invert_tree_comparison
17310         instead of fold_invert_truthvalue for the case
17311         where we have A CMP B ? C : A.
17313 2021-06-25  Martin Sebor  <msebor@redhat.com>
17315         PR middle-end/101216
17316         * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
17318 2021-06-25  Jeff Law  <jeffreyalaw@gmail.com>
17320         * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
17322 2021-06-25  Richard Biener  <rguenther@suse.de>
17324         PR tree-optimization/101202
17325         * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
17326         failed nodes.
17328 2021-06-25  Richard Biener  <rguenther@suse.de>
17330         * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
17331         STMT_VINFO_REDUC_DEF from the original representative.
17333 2021-06-25  Martin Sebor  <msebor@redhat.com>
17335         * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
17336         gimple_no_warning_p and gimple_set_no_warning with
17337         warning_suppressed_p, and suppress_warning.
17338         (c_strlen): Same.
17339         (maybe_warn_for_bound): Same.
17340         (warn_for_access): Same.
17341         (check_access): Same.
17342         (expand_builtin_strncmp): Same.
17343         (fold_builtin_varargs): Same.
17344         * calls.c (maybe_warn_nonstring_arg): Same.
17345         (maybe_warn_rdwr_sizes): Same.
17346         * cfgexpand.c (expand_call_stmt): Same.
17347         * cgraphunit.c (check_global_declaration): Same.
17348         * fold-const.c (fold_undefer_overflow_warnings): Same.
17349         (fold_truth_not_expr): Same.
17350         (fold_unary_loc): Same.
17351         (fold_checksum_tree): Same.
17352         * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
17353         (array_bounds_checker::check_mem_ref): Same.
17354         (array_bounds_checker::check_addr_expr): Same.
17355         (array_bounds_checker::check_array_bounds): Same.
17356         * gimple-expr.c (copy_var_decl): Same.
17357         * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
17358         (gimple_fold_builtin_strncat): Same.
17359         (gimple_fold_builtin_stxcpy_chk): Same.
17360         (gimple_fold_builtin_stpcpy): Same.
17361         (gimple_fold_builtin_sprintf): Same.
17362         (fold_stmt_1): Same.
17363         * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
17364         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
17365         * gimple-ssa-sprintf.c (handle_printf_call): Same.
17366         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
17367         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
17368         * gimple-ssa-warn-restrict.h: Adjust declarations.
17369         (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
17370         gimple_no_warning_p and gimple_set_no_warning with
17371         warning_suppressed_p, and suppress_warning.
17372         (check_call): Same.
17373         (check_bounds_or_overlap): Same.
17374         * gimple.c (gimple_build_call_from_tree): Same.
17375         * gimplify.c (gimplify_return_expr): Same.
17376         (gimplify_cond_expr): Same.
17377         (gimplify_modify_expr_complex_part): Same.
17378         (gimplify_modify_expr): Same.
17379         (gimple_push_cleanup): Same.
17380         (gimplify_expr): Same.
17381         * omp-expand.c (expand_omp_for_generic): Same.
17382         (expand_omp_taskloop_for_outer): Same.
17383         * omp-low.c (lower_rec_input_clauses): Same.
17384         (lower_lastprivate_clauses): Same.
17385         (lower_send_clauses): Same.
17386         (lower_omp_target): Same.
17387         * tree-cfg.c (pass_warn_function_return::execute): Same.
17388         * tree-complex.c (create_one_component_var): Same.
17389         * tree-inline.c (remap_gimple_op_r): Same.
17390         (copy_tree_body_r): Same.
17391         (declare_return_variable): Same.
17392         (expand_call_inline): Same.
17393         * tree-nested.c (lookup_field_for_decl): Same.
17394         * tree-sra.c (create_access_replacement): Same.
17395         (generate_subtree_copies): Same.
17396         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
17397         * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
17398         * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
17399         * tree-ssa-loop-im.c (execute_sm): Same.
17400         * tree-ssa-phiopt.c (cond_store_replacement): Same.
17401         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
17402         (handle_builtin_strcpy): Same.
17403         (maybe_diag_stxncpy_trunc): Same.
17404         (handle_builtin_stxncpy_strncat): Same.
17405         (handle_builtin_strcat): Same.
17406         * tree-ssa-uninit.c (get_no_uninit_warning): Same.
17407         (set_no_uninit_warning): Same.
17408         (uninit_undefined_value_p): Same.
17409         (warn_uninit): Same.
17410         (maybe_warn_operand): Same.
17411         * tree-vrp.c (compare_values_warnv): Same.
17412         * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
17413         (test_for_singularity): Same.
17414         * gimple.h (warning_suppressed_p): New function.
17415         (suppress_warning): Same.
17416         (copy_no_warning): Same.
17417         (gimple_set_block): Call gimple_set_location.
17418         (gimple_set_location): Call copy_warning.
17420 2021-06-25  Martin Sebor  <msebor@redhat.com>
17422         * tree.h (warning_suppressed_at, copy_warning,
17423         warning_suppressed_p, suppress_warning): New functions.
17425 2021-06-25  Martin Sebor  <msebor@redhat.com>
17427         * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
17428         * gengtype.c (open_base_files): Add diagnostic-spec.h.
17429         * diagnostic-spec.c: New file.
17430         * diagnostic-spec.h: New file.
17431         * tree.h (no_warning, all_warnings, suppress_warning_at): New
17432         declarations.
17433         * warning-control.cc: New file.
17435 2021-06-25  liuhongt  <hongtao.liu@intel.com>
17437         PR target/101185
17438         * config/i386/i386.c (x86_order_regs_for_local_alloc):
17439         Revert r12-1669.
17441 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
17443         PR tree-optimization/101189
17444         * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
17445         LHS range of condition to postfold routine.
17446         (fold_using_range::postfold_gcond_edges): Only process the TRUE or
17447         FALSE edge if the LHS range supports it being taken.
17448         * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
17450 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
17452         * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
17453         (relation_oracle::find_relation_block): Check correct bitmap.
17454         (relation_oracle::dump): Do not dump NULL blocks.
17456 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
17458         * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
17459         range_on_edge instead of manually calculating.
17461 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
17463         * range-op.cc: Fix comment.
17465 2021-06-24  Uroš Bizjak  <ubizjak@gmail.com>
17467         PR target/89021
17468         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
17469         Handle V8QI and V4HI modes.
17470         * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
17471         New insn pattern.
17472         (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
17473         (mmxpackmode): New mode attribute.
17474         (vec_pack_trunc_<mmxpackmode:mode>): New expander.
17475         (mmxunpackmode): New mode attribute.
17476         (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
17477         (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
17478         (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
17479         (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
17480         * config/i386/i386.md (extsuffix): Move from ...
17481         * config/i386/sse.md: ... here.
17483 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
17485         * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
17486         (dwarf2out_finish): ...instead of here.
17488 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
17490         * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
17491         (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
17492         (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
17493         * configure: Regenerate.
17495 2021-06-24  Richard Biener  <rguenther@suse.de>
17497         * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
17498         vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
17499         (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
17501 2021-06-24  Richard Biener  <rguenther@suse.de>
17503         * config/i386/sse.md (avx_addsubv4df3): Rename to
17504         vec_addsubv4df3.
17505         (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
17506         (sse3_addsubv2df3): Rename to vec_addsubv2df3.
17507         (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
17508         * config/i386/i386-builtin.def: Adjust.
17509         * internal-fn.def (VEC_ADDSUB): New internal optab fn.
17510         * optabs.def (vec_addsub_optab): New optab.
17511         * tree-vect-slp-patterns.c (class addsub_pattern): New.
17512         (slp_patterns): Add addsub_pattern.
17513         * tree-vect-slp.c (vect_optimize_slp): Disable propagation
17514         across CFN_VEC_ADDSUB.
17515         * tree-vectorizer.h (vect_pattern::vect_pattern): Make
17516         m_ops optional.
17517         * doc/md.texi (vec_addsub<mode>3): Document.
17519 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
17521         PR middle-end/101170
17522         * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
17523         where regno + subreg_regno_offset wraps around use 0 as starting
17524         regno.
17526 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
17528         PR middle-end/101172
17529         * stor-layout.c (finish_bitfield_representative): If nextf has
17530         error_mark_node type, set repr type to error_mark_node too.
17532 2021-06-24  Ilya Leoshkevich  <iii@linux.ibm.com>
17534         * config/s390/s390.c (s390_function_profiler): Ignore labelno
17535         parameter.
17536         * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
17538 2021-06-24  Richard Biener  <rguenther@suse.de>
17540         * tree-vect-slp.c (vect_optimize_slp): Do not propagate
17541         across operations that have different semantics on different
17542         lanes.
17544 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
17546         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
17547         * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
17548         with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
17549         of non-decl OMP_CLAUSE_DECL.  For OMP_CLAUSE_IN_REDUCTION on
17550         OMP_TARGET user outer_ctx instead of ctx for placeholders and
17551         initializer/combiner gimplification.
17552         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
17553         on target constructs.
17554         (lower_rec_input_clauses): Likewise.
17555         (lower_omp_target): Likewise.
17556         * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
17557         on target if in_reduction is present.
17559 2021-06-24  Kewen Lin  <linkw@linux.ibm.com>
17561         * tree-predcom.c (class pcom_worker): New class.
17562         (release_chain): Renamed to...
17563         (pcom_worker::release_chain): ...this.
17564         (release_chains): Renamed to...
17565         (pcom_worker::release_chains): ...this.
17566         (aff_combination_dr_offset): Renamed to...
17567         (pcom_worker::aff_combination_dr_offset): ...this.
17568         (determine_offset): Renamed to...
17569         (pcom_worker::determine_offset): ...this.
17570         (class comp_ptrs): New class.
17571         (split_data_refs_to_components): Renamed to...
17572         (pcom_worker::split_data_refs_to_components): ...this,
17573         and update with class comp_ptrs.
17574         (suitable_component_p): Renamed to...
17575         (pcom_worker::suitable_component_p): ...this.
17576         (filter_suitable_components): Renamed to...
17577         (pcom_worker::filter_suitable_components): ...this.
17578         (valid_initializer_p): Renamed to...
17579         (pcom_worker::valid_initializer_p): ...this.
17580         (find_looparound_phi): Renamed to...
17581         (pcom_worker::find_looparound_phi): ...this.
17582         (add_looparound_copies): Renamed to...
17583         (pcom_worker::add_looparound_copies): ...this.
17584         (determine_roots_comp): Renamed to...
17585         (pcom_worker::determine_roots_comp): ...this.
17586         (determine_roots): Renamed to...
17587         (pcom_worker::determine_roots): ...this.
17588         (single_nonlooparound_use): Renamed to...
17589         (pcom_worker::single_nonlooparound_use): ...this.
17590         (remove_stmt): Renamed to...
17591         (pcom_worker::remove_stmt): ...this.
17592         (execute_pred_commoning_chain): Renamed to...
17593         (pcom_worker::execute_pred_commoning_chain): ...this.
17594         (execute_pred_commoning): Renamed to...
17595         (pcom_worker::execute_pred_commoning): ...this.
17596         (struct epcc_data): New member worker.
17597         (execute_pred_commoning_cbck): Call execute_pred_commoning
17598         with pcom_worker pointer.
17599         (find_use_stmt): Renamed to...
17600         (pcom_worker::find_use_stmt): ...this.
17601         (find_associative_operation_root): Renamed to...
17602         (pcom_worker::find_associative_operation_root): ...this.
17603         (find_common_use_stmt): Renamed to...
17604         (pcom_worker::find_common_use_stmt): ...this.
17605         (combinable_refs_p): Renamed to...
17606         (pcom_worker::combinable_refs_p): ...this.
17607         (reassociate_to_the_same_stmt): Renamed to...
17608         (pcom_worker::reassociate_to_the_same_stmt): ...this.
17609         (stmt_combining_refs): Renamed to...
17610         (pcom_worker::stmt_combining_refs): ...this.
17611         (combine_chains): Renamed to...
17612         (pcom_worker::combine_chains): ...this.
17613         (try_combine_chains): Renamed to...
17614         (pcom_worker::try_combine_chains): ...this.
17615         (prepare_initializers_chain): Renamed to...
17616         (pcom_worker::prepare_initializers_chain): ...this.
17617         (prepare_initializers): Renamed to...
17618         (pcom_worker::prepare_initializers): ...this.
17619         (prepare_finalizers_chain): Renamed to...
17620         (pcom_worker::prepare_finalizers_chain): ...this.
17621         (prepare_finalizers): Renamed to...
17622         (pcom_worker::prepare_finalizers): ...this.
17623         (tree_predictive_commoning_loop): Renamed to...
17624         (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
17625         some calls and remove some cleanup code.
17626         (tree_predictive_commoning): Adjusted to use pcom_worker instance.
17627         (static variable looparound_phis): Remove.
17628         (static variable name_expansions): Remove.
17630 2021-06-24  Richard Biener  <rguenther@suse.de>
17632         * tree-vect-slp.c (slpg_vertex): New struct.
17633         (vect_slp_build_vertices): Adjust.
17634         (vect_optimize_slp): Likewise.  Maintain an outgoing permute
17635         and a materialized one.
17637 2021-06-24  Richard Biener  <rguenther@suse.de>
17639         PR tree-optimization/101105
17640         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
17641         Only ignore steps when they are equal or scalar order is preserved.
17643 2021-06-24  liuhongt  <hongtao.liu@intel.com>
17645         PR target/98434
17646         * config/i386/i386-expand.c (ix86_expand_vec_interleave):
17647         Adjust comments for ix86_expand_vecop_qihi2.
17648         (ix86_expand_vecmul_qihi): Renamed to ..
17649         (ix86_expand_vecop_qihi2): Adjust function prototype to
17650         support shift operation, add static to definition.
17651         (ix86_expand_vec_shift_qihi_constant): Add static to definition.
17652         (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
17653         ix86_expand_vec_shift_qihi_constant.
17654         * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
17655         (ix86_expand_vec_shift_qihi_constant): Deleted.
17656         * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
17657         iterator.
17658         (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
17659         condition TARGET_64BIT.
17660         (mul<mode>3): Ditto.
17661         (<insn><mode>3): Ditto.
17662         (vlshr<mode>3): Extend to support avx512 vlshr.
17663         (v<insn><mode>3): New expander for
17664         vashr/vlshr/vashl.
17665         (v<insn>v8qi3): Ditto.
17666         (vashrv8hi3<mask_name>): Renamed to ..
17667         (vashr<mode>3): And extend to support V16QImode for avx512.
17668         (vashrv16qi3): Deleted.
17669         (vashrv2di3<mask_name>): Extend expander to support avx512
17670         instruction.
17672 2021-06-23  Dimitar Dimitrov  <dimitar@dinux.eu>
17674         * doc/lto.texi (Design Overview): Update that slim objects are
17675         the default.
17677 2021-06-23  Aaron Sawdey  <acsawdey@linux.ibm.com>
17679         * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
17680         of OTHER_POWER10_MASKS so it will not be enabled by default.
17682 2021-06-23  Richard Biener  <rguenther@suse.de>
17683             Martin Jambor  <mjambor@suse.cz>
17685         * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
17686         param replacement unconditionally.  Adjust comment.
17688 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
17690         * Makefile.in (OBJS): Add gimple-range-fold.o
17691         * gimple-range-fold.cc: New.
17692         * gimple-range-fold.h: New.
17693         * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
17694         (gimple_range_calc_op2): Ditto.
17695         * gimple-range-gori.h: Move prototypes to here.
17696         * gimple-range.cc: Adjust include files.
17697         (fur_source:fur_source): Relocate to gimple-range-fold.cc.
17698         (fur_source::get_operand): Ditto.
17699         (fur_source::get_phi_operand): Ditto.
17700         (fur_source::query_relation): Ditto.
17701         (fur_source::register_relation): Ditto.
17702         (class fur_edge): Ditto.
17703         (fur_edge::fur_edge): Ditto.
17704         (fur_edge::get_operand): Ditto.
17705         (fur_edge::get_phi_operand): Ditto.
17706         (fur_stmt::fur_stmt): Ditto.
17707         (fur_stmt::get_operand): Ditto.
17708         (fur_stmt::get_phi_operand): Ditto.
17709         (fur_stmt::query_relation): Ditto.
17710         (class fur_depend): Relocate to gimple-range-fold.h.
17711         (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
17712         (fur_depend::register_relation): Ditto.
17713         (fur_depend::register_relation): Ditto.
17714         (class fur_list): Ditto.
17715         (fur_list::fur_list): Ditto.
17716         (fur_list::get_operand): Ditto.
17717         (fur_list::get_phi_operand): Ditto.
17718         (fold_range): Ditto.
17719         (adjust_pointer_diff_expr): Ditto.
17720         (gimple_range_adjustment): Ditto.
17721         (gimple_range_base_of_assignment): Ditto.
17722         (gimple_range_operand1): Ditto.
17723         (gimple_range_operand2): Ditto.
17724         (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
17725         (gimple_range_calc_op2): Ditto.
17726         (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
17727         (fold_using_range::range_of_range_op): Ditto.
17728         (fold_using_range::range_of_address): Ditto.
17729         (fold_using_range::range_of_phi): Ditto.
17730         (fold_using_range::range_of_call): Ditto.
17731         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
17732         (fold_using_range::range_of_builtin_call): Ditto.
17733         (fold_using_range::range_of_cond_expr): Ditto.
17734         (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
17735         (fold_using_range::relation_fold_and_or): Ditto.
17736         (fold_using_range::postfold_gcond_edges): Ditto.
17737         * gimple-range.h: Add gimple-range-fold.h to include files. Change
17738         GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
17739         (gimple_range_handler): Relocate to gimple-range-fold.h.
17740         (gimple_range_ssa_p): Ditto.
17741         (range_compatible_p): Ditto.
17742         (class fur_source): Ditto.
17743         (class fur_stmt): Ditto.
17744         (class fold_using_range): Ditto.
17745         (gimple_range_calc_op1): Relocate to gimple-range-gori.h
17746         (gimple_range_calc_op2): Ditto.
17748 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
17750         PR tree-optimization/101148
17751         PR tree-optimization/101014
17752         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
17753         (ranger_cache::~ranger_cache): Adjust.
17754         (ranger_cache::block_range): Check if propagation disallowed.
17755         (ranger_cache::propagate_cache): Disallow propagation if new value
17756         can't be stored properly.
17757         * gimple-range-cache.h (ranger_cache::m_propfail): New member.
17759 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
17761         * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
17762         (sbr_vector::set_bb_range): Return true.
17763         (class sbr_sparse_bitmap): Adjust.
17764         (sbr_sparse_bitmap::set_bb_range): Return value.
17765         (block_range_cache::set_bb_range): Return value.
17766         (ranger_cache::propagate_cache): Use return value to print msg.
17767         * gimple-range-cache.h (class block_range_cache): Adjust.
17769 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
17771         * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
17773 2021-06-23  Jeff Law  <jeffreyalaw@gmail.com>
17775         * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
17776         so this pattern can be used for test/compare removal.  Pass
17777         current insn to compute_logical_op_length and output_logical_op.
17778         * config/h8300/h8300.c (compute_logical_op_cc): Remove.
17779         (h8300_and_costs): Add argument to compute_logical_op_length.
17780         (output_logical_op): Add new argument.  Use it to determine if the
17781         condition codes are used and adjust the output accordingly.
17782         (compute_logical_op_length): Add new argument and update length
17783         computations when condition codes are used.
17784         * config/h8300/h8300-protos.h (compute_logical_op_length): Update
17785         prototype.
17786         (output_logical_op): Likewise.
17788 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
17790         PR target/89021
17791         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
17792         Handle 64bit modes for TARGET_XOP.  Use indirect gen_* functions.
17793         * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
17794         * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
17795         * config/i386/sse.md (unspec): ... here.
17797 2021-06-23  Martin Liska  <mliska@suse.cz>
17799         PR target/98636
17800         * optc-save-gen.awk: Put back arm_fp16_format to
17801         checked_options.
17803 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
17805         PR target/101175
17806         * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
17807         (bsr): Ditto.
17808         (*bsrhi): Remove.
17809         (clz<mode>2): Update RTX pattern for additions.
17811 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
17813         PR middle-end/101167
17814         * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
17815         and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
17817 2021-06-22  Sergei Trofimovich  <siarheit@google.com>
17819         * doc/rtl.texi: drop unbalanced parenthesis.
17821 2021-06-22  Richard Biener  <rguenther@suse.de>
17823         PR middle-end/101156
17824         * gimplify.c (gimplify_expr): Remove premature incorrect
17825         optimization.
17827 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
17829         PR tree-optimization/101159
17830         * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
17831         comment typos.
17833 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
17835         PR middle-end/101160
17836         * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
17837         clear crtl->return_rtx instead of keeping it referencing a pseudo.
17839 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
17840             Andrew Pinski  <apinski@marvell.com>
17842         PR tree-optimization/101162
17843         * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
17844         types.
17846 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17848         * range-op.cc (range_relational_tests): New.
17849         (range_op_tests): Call range_relational_tests.
17851 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17853         * range-op.cc (operator_cast::lhs_op1_relation): New.
17854         (operator_identity::lhs_op1_relation): Mew.
17856 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17858         * range-op.cc (operator_minus::op1_op2_relation_effect): New.
17860 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17862         * range-op.cc (operator_plus::lhs_op1_relation): New.
17863         (operator_plus::lhs_op2_relation): New.
17865 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17867         * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
17868         relation_oracle if dominators exist.
17869         (ranger_cache::~ranger_cache): Dispose of oracle.
17870         (ranger_cache::dump_bb): Dump oracle.
17871         * gimple-range.cc (fur_source::fur_source): New.
17872         (fur_source::get_operand): Use mmeber query.
17873         (fur_source::get_phi_operand): Use member_query.
17874         (fur_source::query_relation): New.
17875         (fur_source::register_dependency): Delete.
17876         (fur_source::register_relation): New.
17877         (fur_edge::fur_edge): Adjust.
17878         (fur_edge::get_phi_operand): Fix comment.
17879         (fur_edge::query): Delete.
17880         (fur_stmt::fur_stmt): Adjust.
17881         (fur_stmt::query): Delete.
17882         (fur_depend::fur_depend): Adjust.
17883         (fur_depend::register_relation): New.
17884         (fur_depend::register_relation): New.
17885         (fur_list::fur_list): Adjust.
17886         (fur_list::get_operand): Use member query.
17887         (fold_using_range::range_of_range_op): Process and query relations.
17888         (fold_using_range::range_of_address): Adjust dependency call.
17889         (fold_using_range::range_of_phi): Ditto.
17890         (gimple_ranger::gimple_ranger): New.  Use ranger_ache oracle.
17891         (fold_using_range::relation_fold_and_or): New.
17892         (fold_using_range::postfold_gcond_edges): New.
17893         * gimple-range.h (class gimple_ranger): Adjust.
17894         (class fur_source): Adjust members.
17895         (class fur_stmt): Ditto.
17896         (class fold_using_range): Ditto.
17898 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17900         * range-op.cc (range_operator::wi_fold): Apply relation effect.
17901         (range_operator::fold_range): Adjust and apply relation effect.
17902         (*::fold_range): Add relation parameters.
17903         (*::op1_range): Ditto.
17904         (*::op2_range): Ditto.
17905         (range_operator::lhs_op1_relation): New.
17906         (range_operator::lhs_op2_relation): New.
17907         (range_operator::op1_op2_relation): New.
17908         (range_operator::op1_op2_relation_effect): New.
17909         (relop_early_resolve): New.
17910         (operator_equal::op1_op2_relation): New.
17911         (operator_equal::fold_range): Call relop_early_resolve.
17912         (operator_not_equal::op1_op2_relation): New.
17913         (operator_not_equal::fold_range): Call relop_early_resolve.
17914         (operator_lt::op1_op2_relation): New.
17915         (operator_lt::fold_range): Call relop_early_resolve.
17916         (operator_le::op1_op2_relation): New.
17917         (operator_le::fold_range): Call relop_early_resolve.
17918         (operator_gt::op1_op2_relation): New.
17919         (operator_gt::fold_range): Call relop_early_resolve.
17920         (operator_ge::op1_op2_relation): New.
17921         (operator_ge::fold_range): Call relop_early_resolve.
17922         * range-op.h (class range_operator): Adjust parameters and methods.
17924 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
17926         * Makefile.in (OBJS): Add value-relation.o.
17927         * gimple-range.h: Adjust include files.
17928         * tree-data-ref.c: Adjust include file order.
17929         * value-query.cc (range_query::get_value_range): Default to no oracle.
17930         (range_query::query_relation): New.
17931         (range_query::query_relation): New.
17932         * value-query.h (class range_query): Adjust.
17933         * value-relation.cc: New.
17934         * value-relation.h: New.
17936 2021-06-22  Richard Biener  <rguenther@suse.de>
17938         PR tree-optimization/101151
17939         * tree-ssa-sink.c (statement_sink_location): Expand irreducible
17940         region check.
17942 2021-06-22  Jojo R  <rjiejie@linux.alibaba.com>
17944         * config/riscv/riscv.c (thead_c906_tune_info): New.
17945         (riscv_tune_info_table): Use new tune.
17947 2021-06-22  Richard Biener  <rguenther@suse.de>
17949         PR tree-optimization/101158
17950         * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
17951         checking after checking for matching operation.
17953 2021-06-22  Richard Biener  <rguenther@suse.de>
17955         PR tree-optimization/101159
17956         * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
17957         missing NULL vectype check.
17959 2021-06-22  Richard Biener  <rguenther@suse.de>
17961         PR tree-optimization/101154
17962         * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
17964 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
17966         PR target/11877
17967         * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
17968         * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
17969         * config/i386/i386.c (ix86_expand_prologue): Clear it.
17970         * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
17971         Remove "" from match_operand.  Emit new insns using emit_move_insn and
17972         set ix86_last_zero_store_uid to INSN_UID of the last store.
17973         Add peephole2s for 1/2/4 stores of const0_rtx following previous
17974         successful peep2s.
17976 2021-06-22  Martin Liska  <mliska@suse.cz>
17978         * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
17979         was changed.
17981 2021-06-22  Martin Liska  <mliska@suse.cz>
17983         * gcov-io.h: Remove padding entries.
17985 2021-06-22  liuhongt  <hongtao.liu@intel.com>
17987         PR tree-optimization/97770
17988         * tree-vect-patterns.c (vect_recog_popcount_pattern):
17989         New.
17990         (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
17992 2021-06-22  liuhongt  <hongtao.liu@intel.com>
17994         PR target/100267
17995         * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
17996         * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
17997         (expand<mode>_mask): this ..
17998         (*expand<mode>_mask): New pre_reload splitter to transform
17999         v{,p}expand* to vmov* when mask is zero, all ones, or has all
18000         ones in it's lower part, otherwise still generate
18001         v{,p}expand*.
18003 2021-06-22  liuhongt  <hongtao.liu@intel.com>
18005         PR target/100310
18006         * config/i386/i386-expand.c
18007         (ix86_expand_special_args_builtin): Keep constm1_operand only
18008         if it satisfies insn's operand predicate.
18010 2021-06-21  Jason Merrill  <jason@redhat.com>
18012         PR target/88529
18013         * df-scan.c (df_ref_record): Check that regno < endregno.
18014         * function.c (assign_parms, expand_function_end): Do nothing with a
18015         TYPE_EMPTY_P result.
18017 2021-06-21  Richard Biener  <rguenther@suse.de>
18019         PR tree-optimization/101120
18020         * tree-vect-data-refs.c (bump_vector_ptr): Fold the
18021         built increment.
18022         * tree-vect-slp.c (vect_transform_slp_perm_load): Add
18023         DR chain DCE capability.
18024         * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
18025         * tree-vect-stmts.c (vectorizable_load): Remove unused
18026         loads in the DR chain for SLP.
18028 2021-06-21  Jakub Jelinek  <jakub@redhat.com>
18030         PR inline-asm/100785
18031         * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
18032         output or input operands were already error_mark_node.
18033         * cfgexpand.c (expand_asm_stmt): If errors are emitted,
18034         remove all inputs, outputs and clobbers from the asm and
18035         set template to "".
18037 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
18039         * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
18040         (vceq_s16): Likewise.
18041         (vceq_s32): Likewise.
18042         (vceq_u8): Likewise.
18043         (vceq_u16): Likewise.
18044         (vceq_u32): Likewise.
18045         (vceq_p8): Likewise.
18046         (vceqq_s8): Likewise.
18047         (vceqq_s16): Likewise.
18048         (vceqq_s32): Likewise.
18049         (vceqq_u8): Likewise.
18050         (vceqq_u16): Likewise.
18051         (vceqq_u32): Likewise.
18052         (vceqq_p8): Likewise.
18053         (vceq_f32): Gate __a == __b on __FAST_MATH__.
18054         (vceqq_f32): Likewise.
18055         (vceq_f16): Likewise.
18056         (vceqq_f16): Likewise.
18058 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
18060         PR target/97906
18061         * config/arm/iterators.md (NEON_VACMP): Remove.
18062         * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
18063         iterator.
18064         (neon_vca<cmp_op><mode>_insn): Likewise.
18065         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
18066         NEON_VACMP.
18068 2021-06-21  Richard Biener  <rguenther@suse.de>
18070         PR tree-optimization/101121
18071         * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
18072         when we just lack a stmt with the desired op when doing permutation.
18073         (vect_build_slp_tree): When caching a failed SLP build attempt
18074         assert that at least one lane is marked as not matching.
18076 2021-06-21  liuhongt  <hongtao.liu@intel.com>
18078         PR target/101142
18079         * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
18080         register alternative.
18081         (*and<mode>_1): Ditto.
18082         (*andqi_1): Ditto.
18083         (*andn<mode>_1): Ditto.
18084         (*<code><mode>_1): Ditto.
18085         (*<code>qi_1): Ditto.
18086         (*one_cmpl<mode>2_1): Ditto.
18087         (*one_cmplsi2_1_zext): Ditto.
18088         (*one_cmplqi2_1): Ditto.
18089         * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
18090         the order of mask registers to be before general registers.
18092 2021-06-21  Roger Sayle  <roger@nextmovesoftware.com>
18094         PR target/11877
18095         * config/i386/i386.md: New define_peephole2s to shrink writing
18096         1, 2 or 4 consecutive zeros to memory when optimizing for size.
18098 2021-06-18  Jeff Law  <jeffreyalaw@gmail.com>
18100         * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
18101         * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
18102         more efficient code when the source can be trivially simplified.
18104 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
18106         * gimple-range-cache.cc (ranger_cache::range_of_def):  Calculate
18107         a range if global is not available.
18108         (ranger_cache::entry_range): Fallback to range_of_def.
18109         * gimple-range-cache.h (range_of_def): Adjust prototype.
18111 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
18113         PR tree-optimization/101014
18114         * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
18115         value list.
18116         (ranger_cache::~ranger_cache): Ditto.
18117         (ranger_cache::enable_new_values): Delete.
18118         (ranger_cache::push_poor_value): Delete.
18119         (ranger_cache::range_of_def): Remove poor value processing.
18120         (ranger_cache::entry_range): Ditto.
18121         (ranger_cache::fill_block_cache): Ditto.
18122         * gimple-range-cache.h (class ranger_cache): Remove poor value members.
18123         * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
18124         * gimple-range.h (class gimple_ranger): Adjust.
18126 2021-06-18  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
18128         PR target/100856
18129         * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
18130         derived from arm_canon_arch.
18131         (arm_canon_arch_option): Call it.
18132         (arm_canon_arch_multilib_option): New function.
18133         * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
18134         * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
18135         (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
18136         (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
18137         (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
18138         * config/arm/arm.opt (mlibarch): New option.
18139         * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
18140         of march on RHS with mlibarch.
18142 2021-06-18  Marcel Vollweiler  <marcel@codesourcery.com>
18144         * config.in: Regenerate.
18145         * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
18146         functions.
18147         * configure: Regenerate.
18148         * configure.ac: Fix for global_load assembler functions.
18150 2021-06-18  Richard Biener  <rguenther@suse.de>
18152         PR tree-optimization/101112
18153         * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
18154         to lookup a pattern stmt def.
18156 2021-06-18  Jakub Jelinek  <jakub@redhat.com>
18158         PR middle-end/101062
18159         * stor-layout.c (finish_bitfield_layout): Don't add bitfield
18160         representatives in QUAL_UNION_TYPE.
18162 2021-06-18  Andrew Pinski  <apinski@marvell.com>
18164         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
18165         Add counting of how many times it is done.
18166         (factor_out_conditional_conversion): Likewise.
18167         (match_simplify_replacement): Likewise.
18168         (value_replacement): Likewise.
18169         (spaceship_replacement): Likewise.
18170         (cond_store_replacement): Likewise.
18171         (cond_if_else_store_replacement_1): Likewise.
18172         (hoist_adjacent_loads): Likewise.
18174 2021-06-18  Andrew Pinski  <apinski@marvell.com>
18176         * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
18177         types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
18178         (verify_gimple_assign_binary): Reject point and offset types on
18179         MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
18180         FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
18181         FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
18183 2021-06-18  Michael Meissner  <meissner@linux.ibm.com>
18185         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
18186         3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
18187         * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
18188         New insns.
18190 2021-06-17  Aaron Sawdey  <acsawdey@linux.ibm.com>
18192         * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
18193         earlyclobber to alts 0/1.
18194         (gen_addadd): Add earlyclobber to alts 0/1.
18195         * config/rs6000/fusion.md: Regenerate file.
18197 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
18199         * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
18201 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
18203         * gimple-range-cache.cc: Comment cleanups.
18204         * gimple-range-gori.cc: Comment cleanups.
18205         * gimple-range.cc: Comment/spacing cleanups
18206         * value-range.h: Comment cleanups.
18208 2021-06-17  H.J. Lu  <hjl.tools@gmail.com>
18210         PR target/100704
18211         * calls.c (expand_call): Replace PUSH_ARGS with
18212         targetm.calls.push_argument (0).
18213         (emit_library_call_value_1): Likewise.
18214         * defaults.h (PUSH_ARGS): Removed.
18215         (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
18216         targetm.calls.push_argument (0).
18217         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
18218         (emit_push_insn): Pass the number bytes to push to
18219         targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
18220         * hooks.c (hook_bool_uint_true): New.
18221         * hooks.h (hook_bool_uint_true): Likewise.
18222         * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
18223         targetm.calls.push_argument (0).
18224         * target.def (push_argument): Add a targetm.calls hook.
18225         * targhooks.c (default_push_argument): New.
18226         * targhooks.h (default_push_argument): Likewise.
18227         * config/bpf/bpf.h (PUSH_ARGS): Removed.
18228         * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
18229         * config/cr16/cr16.h (PUSH_ARGS): Removed.
18230         * config/i386/i386.c (ix86_push_argument): New.
18231         (TARGET_PUSH_ARGUMENT): Likewise.
18232         * config/i386/i386.h (PUSH_ARGS): Removed.
18233         * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
18234         * config/m32c/m32c.h (PUSH_ARGS): Removed.
18235         * config/nios2/nios2.h (PUSH_ARGS): Likewise.
18236         * config/pru/pru.h (PUSH_ARGS): Likewise.
18237         * doc/tm.texi.in: Remove PUSH_ARGS documentation.  Add
18238         TARGET_PUSH_ARGUMENT hook.
18239         * doc/tm.texi: Regenerated.
18241 2021-06-17  Uroš Bizjak  <ubizjak@gmail.com>
18243         PR target/97194
18244         * config/i386/i386-expand.c (expand_vector_set_var):
18245         Handle V2FS mode remapping.  Pass TARGET_MMX_WITH_SSE to
18246         ix86_expand_vector_init_duplicate.
18247         (ix86_expand_vector_init_duplicate): Emit insv_1 for
18248         QImode for !TARGET_PARTIAL_REG_STALL.
18249         * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
18250         * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
18251         as operand 2 predicate.  Call ix86_expand_vector_set_var
18252         for non-constant index operand.
18253         (vec_setv2si): Ditto.
18254         (vec_setv4hi): Ditto.
18255         (vec_setv8qi): ditto.
18257 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
18259         PR tree-optimization/100790
18260         * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
18261         code.
18263 2021-06-17  Martin Liska  <mliska@suse.cz>
18265         * doc/invoke.texi: Use consistently -O1 instead of -O.
18267 2021-06-17  Martin Liska  <mliska@suse.cz>
18269         * gcov-io.h: Update documentation entry about string format.
18271 2021-06-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
18273         PR target/100871
18274         * config/s390/vecintrin.h (vec_doublee): Fix to use
18275           __builtin_s390_vflls.
18276         (vec_floate): Fix to use __builtin_s390_vflrd.
18278 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
18280         * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
18281         * dominance.h (get_dominated_to_depth): Likewise.
18282         (get_all_dominated_blocks): Likewise.
18283         * cfgcleanup.c (delete_unreachable_blocks): Adjust.
18284         * gcse.c (hoist_code): Likewise.
18285         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
18286         * tree-parloops.c (oacc_entry_exit_ok): Likewise.
18287         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
18288         * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
18290 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
18292         * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
18293         * dominance.h (get_dominated_by_region): Likewise.
18294         * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
18295         (gimple_duplicate_sese_tail): Likewise.
18296         (move_sese_region_to_fn): Likewise.
18298 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
18300         * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
18301         * dominance.h (get_dominated_by): Likewise.
18302         * auto-profile.c (afdo_find_equiv_class): Adjust.
18303         * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
18304         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18305         * tree-cfg.c (test_linear_chain): Likewise.
18306         (test_diamond): Likewise.
18308 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
18310         * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
18311         * cfgloopanal.c (get_loop_hot_path): Likewise.
18312         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
18314 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
18316         * cgraph.c (cgraph_node::collect_callers): Return
18317         auto_vec<cgraph_edge *>.
18318         * cgraph.h (cgraph_node::collect_callers): Likewise.
18319         * ipa-cp.c (create_specialized_node): Adjust.
18320         (decide_about_value): Likewise.
18321         (decide_whether_version_node): Likewise.
18322         * ipa-sra.c (process_isra_node_results): Likewise.
18324 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
18326         * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
18327         (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
18328         constructor.
18329         (auto_vec<T, 0>::operator=): Define move assignment and delete copy
18330         assignment.
18332 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
18334         * gimple-range.cc (debug_seed_ranger): New.
18335         (dump_ranger): New.
18336         (debug_ranger): New.
18338 2021-06-17  Richard Biener   <rguenther@suse.de>
18340         PR tree-optimization/54400
18341         * tree-vectorizer.h (enum slp_instance_kind): Add
18342         slp_inst_kind_bb_reduc.
18343         (reduction_fn_for_scalar_code): Declare.
18344         * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
18345         Check SLP_INSTANCE_KIND instead of looking at the
18346         representative.
18347         (vect_slp_analyze_instance_alignment): Likewise.
18348         * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
18349         * tree-vect-slp.c (vect_slp_linearize_chain): Split out
18350         chain linearization from vect_build_slp_tree_2 and generalize
18351         for the use of BB reduction vectorization.
18352         (vect_build_slp_tree_2): Adjust accordingly.
18353         (vect_optimize_slp): Elide permutes at the root of BB reduction
18354         instances.
18355         (vectorizable_bb_reduc_epilogue): New function.
18356         (vect_slp_prune_covered_roots): Likewise.
18357         (vect_slp_analyze_operations): Use them.
18358         (vect_slp_check_for_constructors): Recognize associatable
18359         chains for BB reduction vectorization.
18360         (vectorize_slp_instance_root_stmt): Generate code for the
18361         BB reduction epilogue.
18363 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
18365         * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
18366         may_recompute_p.
18367         (gori_compute::may_recompute_p): New.
18368         (gori_compute::outgoing_edge_range_p): Perform recomputations.
18369         * gimple-range-gori.h (class gori_compute): Add prototype.
18371 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
18373         * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
18374         true when a range can be calculated.
18375         * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
18377 2021-06-16  Martin Sebor  <msebor@redhat.com>
18379         * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
18380         Correct documented defaults.
18382 2021-06-16  Andrew MacLeod  <amacleod@redhat.com>
18384         * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
18385         m_new_value_p directly.
18387 2021-06-16  Uroš Bizjak  <ubizjak@gmail.com>
18389         PR target/89021
18390         * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
18391         Handle 64bit modes for TARGET_SSE4_1.
18392         (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
18393         (expand_vec_perm_even_odd_pack): Handle V4HI mode.
18394         (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
18395         expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
18396         expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
18397         * config/i386/mmx.md (mmx_packusdw): New insn pattern.
18399 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
18401         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
18402         Change to an expander that emits the correct instruction
18403         depending on endianness.
18404         (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
18405         (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
18407 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
18409         * config/aarch64/aarch64-simd-builtins.def: Split generator
18410         for aarch64_<su>qmovn builtins into scalar and vector
18411         variants.
18412         * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
18413         Define.
18414         (aarch64_<su>qmovn<mode>_insn_be): Define.
18415         (aarch64_<su>qmovn<mode>): Split into scalar and vector
18416         variants. Change vector variant to an expander that emits the
18417         correct instruction depending on endianness.
18419 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
18421         * config/aarch64/aarch64-simd-builtins.def: Split generator
18422         for aarch64_sqmovun builtins into scalar and vector variants.
18423         * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
18424         Split into scalar and vector variants. Change vector variant
18425         to an expander that emits the correct instruction depending
18426         on endianness.
18427         (aarch64_sqmovun<mode>_insn_le): Define.
18428         (aarch64_sqmovun<mode>_insn_be): Define.
18430 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
18432         * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
18433         Define - modeling zero-high-half semantics.
18434         (aarch64_xtn<mode>): Change to an expander that emits the
18435         appropriate instruction depending on endianness.
18436         (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
18437         semantics.
18438         (aarch64_xtn2<mode>_le): Rename to...
18439         (aarch64_xtn2<mode>_insn_le): This.
18440         (aarch64_xtn2<mode>_be): Rename to...
18441         (aarch64_xtn2<mode>_insn_be): This.
18442         (vec_pack_trunc_<mode>): Emit truncation instruction instead
18443         of aarch64_xtn.
18444         * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
18445         attribute iterator.
18447 2021-06-16  Martin Jambor  <mjambor@suse.cz>
18449         PR tree-optimization/100453
18450         * tree-sra.c (create_access): Disqualify any const candidates
18451         which are written to.
18452         (sra_modify_expr): Do not store sub-replacements back to a const base.
18453         (handle_unscalarized_data_in_subtree): Likewise.
18454         (sra_modify_assign): Likewise.  Earlier, use TREE_READONLy test
18455         instead of constant_decl_p.
18457 2021-06-16  Jakub Jelinek  <jakub@redhat.com>
18459         PR middle-end/101062
18460         * stor-layout.c (finish_bitfield_representative): For fields in unions
18461         assume nextf is always NULL.
18462         (finish_bitfield_layout): Compute bit field representatives also in
18463         unions, but handle it as if each bitfield was the only field in the
18464         aggregate.
18466 2021-06-16  Richard Biener  <rguenther@suse.de>
18468         PR tree-optimization/101088
18469         * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
18470         supported refs on edges.  Do not assert same ref but
18471         different kind stores are unsuported but mark them so.
18472         (hoist_memory_references): Only look for supported refs
18473         on exits.
18475 2021-06-16  Roger Sayle  <roger@nextmovesoftware.com>
18477         PR rtl-optimization/46235
18478         * config/i386/i386.md: New define_split for bt followed by cmov.
18479         (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
18480         (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
18481         (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
18482         by setnc with zero extension.
18484 2021-06-16  Richard Biener  <rguenther@suse.de>
18486         PR tree-optimization/101083
18487         * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
18488         vectype as argument.
18489         (vect_build_slp_tree_2): Adjust.
18491 2021-06-15  Martin Sebor  <msebor@redhat.com>
18493         PR middle-end/100876
18494         * builtins.c: (gimple_call_return_array): Account for size_t
18495         mangling as either unsigned int or unsigned long
18497 2021-06-15  Jeff Law  <jeffreyalaw@gmail.com>
18499         * compare-elim.c (try_eliminate_compare): Run DCE to clean things
18500         up before eliminating comparisons.
18502 2021-06-15  Aldy Hernandez  <aldyh@redhat.com>
18504         * range-op.cc (operator_bitwise_or::wi_fold): Make sure
18505         nonzero|X is nonzero.
18506         (range_op_bitwise_and_tests): Add tests for above.
18508 2021-06-15  Carl Love  <cel@us.ibm.com>
18510         PR target/101022
18511         * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
18512         enum definition.
18513         (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
18514         definitions.
18516 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
18518         PR fortran/92568
18519         * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
18520         (struct gimplify_omp_ctx): Extend defaultmap array by one.
18521         (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
18522         (omp_notice_variable): Update type classification for Fortran.
18523         (gimplify_scan_omp_clauses): Update calls for new argument; handle
18524         GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
18525         * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
18526         * langhooks.c (lhd_omp_scalar_p): Likewise.
18527         (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
18528         (LANG_HOOKS_DECLS): Add them.
18529         * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
18530         omp_scalar_p pointer type to include the new bool argument.
18532 2021-06-15  David Malcolm  <dmalcolm@redhat.com>
18534         * doc/analyzer.texi
18535         (Special Functions for Debugging the Analyzer): Add
18536         __analyzer_dump_capacity.
18538 2021-06-15  Jakub Jelinek  <jakub@redhat.com>
18540         PR target/101046
18541         * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
18542         case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
18544 2021-06-15  Richard Biener  <rguenther@suse.de>
18546         * cfgloopanal.c (mark_irreducible_loops): Use a dominance
18547         check to identify loop latches.
18548         * cfgloop.c (verify_loop_structure): Likewise.
18549         * loop-init.c (apply_loop_flags): Allow marked irreducible
18550         regions even with multiple latches.
18551         * predict.c (rebuild_frequencies): Simplify.
18553 2021-06-15  Richard Biener  <rguenther@suse.de>
18555         * tree-ssa-threadupdate.c
18556         (jump_thread_path_registry::mark_threaded_blocks): Assert we
18557         have marked irreducible regions.
18559 2021-06-14  Martin Sebor  <msebor@redhat.com>
18561         PR c++/100876
18562         * builtins.c (gimple_call_return_array): Check for attribute fn spec.
18563         Handle calls to placement new.
18564         (ndecl_dealloc_argno): Avoid placement delete.
18566 2021-06-14  Peter Bergner  <bergner@linux.ibm.com>
18568         PR target/100777
18569         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
18570         create_tmp_reg_or_ssa_name().
18572 2021-06-14  Andrew MacLeod  <amacleod@redhat.com>
18574         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
18575         (ranger_cache::enable_new_values): Set to specified value and
18576         return the old value.
18577         (ranger_cache::disable_new_values): Delete.
18578         (ranger_cache::fill_block_cache): Disable non 1st order derived
18579         poor values.
18580         * gimple-range-cache.h (ranger_cache): Adjust prototypes.
18581         * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
18583 2021-06-14  Uroš Bizjak  <ubizjak@gmail.com>
18585         PR target/101058
18586         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
18587         Return true early when testing with V2HImode.
18588         * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
18590 2021-06-14  Christophe Lyon  <christophe.lyon@linaro.org>
18592         * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
18593         (mve_vec_unpack<US>_hi_<mode>): New pattern.
18594         (@mve_vec_pack_trunc_lo_<mode>): New pattern.
18595         (mve_vmovntq_<supf><mode>): Prefix with '@'.
18596         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
18597         vec-common.md.
18598         (vec_unpack<US>_lo_<mode>): Likewise.
18599         (vec_pack_trunc_<mode>): Rename to
18600         neon_quad_vec_pack_trunc_<mode>.
18601         * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
18602         pattern.
18603         (vec_unpack<US>_lo_<mode>): New.
18604         (vec_pack_trunc_<mode>): New.
18606 2021-06-14  Richard Biener  <rguenther@suse.de>
18608         PR tree-optimization/100934
18609         * tree-ssa-dom.c (pass_dominator::execute): Properly
18610         mark irreducible regions.
18612 2021-06-14  Martin Liska  <mliska@suse.cz>
18614         * doc/invoke.texi: Put r{...} on the same line as @item.
18616 2021-06-14  Martin Liska  <mliska@suse.cz>
18618         * doc/invoke.texi: Add missing newline.
18620 2021-06-14  Martin Liska  <mliska@suse.cz>
18622         * doc/invoke.texi: Remove '+' charasters.
18624 2021-06-14  Claudiu Zissulescu  <claziss@synopsys.com>
18626         * config.gcc (arc): Add support for with_cpu option.
18627         * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
18629 2021-06-14  Richard Biener  <rguenther@suse.de>
18631         PR tree-optimization/101031
18632         * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
18633         instead of size when accounting for a possibly string
18634         terminating nul.
18636 2021-06-14  Martin Liska  <mliska@suse.cz>
18638         * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
18640 2021-06-14  Aldy Hernandez  <aldyh@redhat.com>
18642         * value-query.cc (gimple_range_global): Call get_range_global
18643         if called after inlining.
18645 2021-06-13  Uroš Bizjak  <ubizjak@gmail.com>
18647         PR target/101021
18648         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
18649         Emit constant permutation insn directly from here.
18651 2021-06-13  Trevor Saunders  <tbsaunde@tbsaunde.org>
18653         * attribs.c (find_attribute_namespace): Iterate over vec<> with
18654         range based for.
18655         * auto-profile.c (afdo_find_equiv_class): Likewise.
18656         * gcc.c (do_specs_vec): Likewise.
18657         (do_spec_1): Likewise.
18658         (driver::set_up_specs): Likewise.
18659         * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
18660         * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
18661         (imm_store_chain_info::try_coalesce_bswap): Likewise.
18662         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
18663         (get_location_for_stmts): Likewise.
18664         * graphite-poly.c (print_iteration_domains): Likewise.
18665         (free_poly_bb): Likewise.
18666         (remove_gbbs_in_scop): Likewise.
18667         (free_scop): Likewise.
18668         (dump_gbb_cases): Likewise.
18669         (dump_gbb_conditions): Likewise.
18670         (print_pdrs): Likewise.
18671         (print_scop): Likewise.
18672         * ifcvt.c (cond_move_process_if_block): Likewise.
18673         * lower-subreg.c (decompose_multiword_subregs): Likewise.
18674         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
18675         * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
18676         * sel-sched-dump.c (dump_insn_vector): Likewise.
18677         * store-motion.c (store_ops_ok): Likewise.
18678         (store_killed_in_insn): Likewise.
18679         * timevar.c (timer::named_items::print): Likewise.
18680         * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
18681         (cleanup_tree_cfg_noloop): Likewise.
18682         * tree-data-ref.c (dump_data_references): Likewise.
18683         (print_dir_vectors): Likewise.
18684         (print_dist_vectors): Likewise.
18685         (dump_data_dependence_relations): Likewise.
18686         (dump_dist_dir_vectors): Likewise.
18687         (dump_ddrs): Likewise.
18688         (create_runtime_alias_checks): Likewise.
18689         (free_subscripts): Likewise.
18690         (save_dist_v): Likewise.
18691         (save_dir_v): Likewise.
18692         (invariant_access_functions): Likewise.
18693         (same_access_functions): Likewise.
18694         (access_functions_are_affine_or_constant_p): Likewise.
18695         (find_data_references_in_stmt): Likewise.
18696         (graphite_find_data_references_in_stmt): Likewise.
18697         (free_dependence_relations): Likewise.
18698         (free_data_refs): Likewise.
18699         * tree-inline.c (copy_debug_stmts): Likewise.
18700         * tree-into-ssa.c (dump_currdefs): Likewise.
18701         (rewrite_update_phi_arguments): Likewise.
18702         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
18703         * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
18704         Likewise.
18705         (vect_slp_analyze_node_dependences): Likewise.
18706         (vect_slp_analyze_instance_dependence): Likewise.
18707         (vect_record_base_alignments): Likewise.
18708         (vect_get_peeling_costs_all_drs): Likewise.
18709         (vect_peeling_supportable): Likewise.
18710         * tree-vectorizer.c (vec_info::~vec_info): Likewise.
18711         (vec_info::free_stmt_vec_infos): Likewise.
18713 2021-06-13  Jeff Law  <jeffreyalaw@gmail.com>
18715         * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
18716         (andqi3_1<cczn>): Removed.
18717         (<ors>qi3_1): Do not split for IOR/XOR a single bit.
18718         (H8/SX bit logicals): Split out from other patterns.
18719         * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
18720         mulqihi3_const_clobber_flags.
18721         (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
18723 2021-06-13  H.J. Lu  <hjl.tools@gmail.com>
18725         PR target/101023
18726         * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
18727         to true if red zone is used.
18728         (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
18729         ix86_red_zone_used.
18730         * config/i386/i386.h (machine_function): Add red_zone_used.
18731         (ix86_red_zone_size): Removed.
18732         (ix86_red_zone_used): New.
18733         * config/i386/i386.md (peephole2 patterns): Replace
18734         ix86_red_zone_size with ix86_red_zone_used.
18736 2021-06-12  Jason Merrill  <jason@redhat.com>
18738         * doc/extend.texi (unused variable attribute): Applies to
18739         structure fields as well.
18741 2021-06-12  Eugene Rozenfeld  <erozen@microsoft.com>
18743         * auto-profile.c (read_profile): fix a typo in an error string
18745 2021-06-11  Thomas Schwinge  <thomas@codesourcery.com>
18747         * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
18748         default argument.
18749         * tree-pretty-print.c (dump_omp_clauses): Update.
18750         (dump_generic_node) <OMP_CLAUSE>: Use it.
18752 2021-06-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
18754         PR target/101016
18755         * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
18756         int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
18757         the polymorphic variants matching code.
18758         (__arm_vld1q_z): Likewise.
18759         (__arm_vld2q): Likewise.
18760         (__arm_vld4q): Likewise.
18761         (__arm_vldrbq_gather_offset): Likewise.
18762         (__arm_vldrbq_gather_offset_z): Likewise.
18764 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
18766         PR tree-optimization/96392
18767         * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
18769 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
18771         PR tree-optimization/96392
18772         * fold-const.c (fold_real_zero_addition_p): Take both arguments
18773         of the addition or subtraction, not just the zero.  Use this
18774         other argument in tests for signaling NaNs and signed zeros.
18775         (tree_expr_maybe_real_minus_zero_p): New predicate.
18776         * fold-const.h (fold_real_zero_addition_p): Update prototype.
18777         (tree_expr_maybe_real_minus_zero_p): New function prototype.
18778         * match.pd: Update calls to fold_real_zero_addition_p.
18779         Replace HONOR_NANS with tree_expr_maybe_nan_p.
18780         Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
18781         Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
18782         * tree-ssa-reassoc.c (eliminate_using_constants): Update
18783         call to fold_real_zero_addition_p.
18785 2021-06-11  Richard Biener  <rguenther@suse.de>
18787         PR tree-optimization/101025
18788         * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
18789         all refs that require dependence checking.
18791 2021-06-11  Richard Biener  <rguenther@suse.de>
18793         PR tree-optimization/101028
18794         * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
18795         reassoc discovery fails fatally, mark appropriate lanes
18796         in matches[] so.
18798 2021-06-11  Richard Biener  <rguenther@suse.de>
18800         PR tree-optimization/101026
18801         * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
18802         have a representative for the associated chain nodes.
18804 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
18806         PR rtl-optimization/101008
18807         * simplify-rtx.c (relational_result): New function.
18808         (simplify_logical_relational_operation,
18809         simplify_relational_operation): Use it.
18811 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
18813         PR target/101007
18814         * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
18816 2021-06-11  Uroš Bizjak  <ubizjak@gmail.com>
18818         PR target/101021
18819         * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
18820         false if the permutation can be implemented with constant
18821         permutation instruction in wider mode.
18822         (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
18823         Handle V8QImode and V4HImode.
18825 2021-06-11  Martin Liska  <mliska@suse.cz>
18827         PR gcov-profile/100788
18828         * common.opt: Add new option.
18829         * coverage.c (coverage_begin_function): Emit warning instead on
18830         the internal compiler error.
18831         * doc/invoke.texi: Document the option.
18832         * toplev.c (process_options): Enable it by default.
18834 2021-06-11  Richard Biener  <rguenther@suse.de>
18836         PR middle-end/101009
18837         * tree-data-ref.c (build_classic_dist_vector_1): Make sure
18838         to set *init_b to true when we encounter a constant equal
18839         index pair.
18840         (compute_affine_dependence): Also dump the actual DR_REF.
18842 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
18844         PR tree-optimization/100984
18845         * gimple-ssa-evrp.c  (ssa_equiv_stack): Use auto_vec for
18846         replacements table.
18847         (ssa_equiv_stack::~ssa_equiv_stack): Remove.
18849 2021-06-11  Kewen Lin  <linkw@linux.ibm.com>
18851         * config/rs6000/rs6000.md
18852         (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
18853         define_insn_and_split.
18855 2021-06-11  Richard Biener  <rguenther@suse.de>
18857         * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
18858         to sort operands of the associative chain.
18860 2021-06-11  Richard Biener  <rguenther@suse.de>
18862         * system.h (gcc_stablesort_r): Declare.
18863         * sort.cc (gcc_sort_r): Support stable sort.
18864         (gcc_stablesort_r): Define.
18865         * vec.h (vec<>::stablesort): Add.
18867 2021-06-10  Uroš Bizjak  <ubizjak@gmail.com>
18869         PR target/89021
18870         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
18871         Handle V2SF mode.  Emit SHUFPS to fixup unpack-high for V2SF mode.
18872         (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
18873         (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
18874         (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
18875         (expand_vec_perm_interleave2): Handle 64bit modes.
18876         (expand_vec_perm_even_odd_pack): Handle V8QI mode.
18877         (expand_vec_perm_even_odd_1): Ditto.
18878         (ix86_vectorize_vec_perm_const): Ditto.
18879         * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
18880         * config/i386/sse.md: ... here.
18881         * config/i386/mmx.md (*vec_interleave_lowv2sf):
18882         New insn_and_split pattern.
18883         (*vec_interleave_highv2sf): Ditto.
18884         (mmx_pshufbv8qi3): New insn pattern.
18885         (*mmx_pblendw): Ditto.
18887 2021-06-10  Peter Bergner  <bergner@linux.ibm.com>
18889         * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
18890         (build_acc): Likewise.
18891         * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
18892         source operands in little-endian mode.
18893         (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
18894         (mma_init_builtins): Likewise.
18895         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
18896         ordering for the MMA assemble and build source operands.
18897         * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
18898         Document.
18899         (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
18900         documentation.
18902 2021-06-10  Jeff Law  <jeffreyalaw@gmail.com>
18904         * config/h8300/h8300.c (select_cc_mode): Handle MEM.  Use
18905         REG_P.
18906         * config/h8300/extensions.md: Replace _clobber_flags patterns
18907         with <cczn>.
18909 2021-06-10  Robin Dapp  <rdapp@linux.ibm.com>
18911         * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
18912         (vcond_mask_<mode><tointvec>): this.
18914 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
18915             Thomas Schwinge  <thomas@codesourcery.com>
18917         * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
18918         (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
18919         * gimple.h (enum gf_mask): Split
18920         'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
18921         'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
18922         'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
18923         (is_gimple_omp_oacc): Update.
18924         * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
18925         * gimplify.c (gimplify_omp_target_update): Likewise.
18926         * omp-expand.c (expand_omp_target, build_omp_regions_1)
18927         (omp_make_gimple_edges): Likewise.
18928         * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
18929         Likewise.
18931 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
18933         * value-query.cc (value_query::value_on_edge): Rename name to
18934         expr.
18935         (range_query::range_on_edge): Same.
18936         (range_query::value_of_expr): Same.
18937         (range_query::value_on_edge): Same.
18938         * value-query.h (class value_query): Same.
18939         (class range_query): Same.
18941 2021-06-10  Richard Biener  <rguenther@suse.de>
18943         PR tree-optimization/101003
18944         * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
18945         use the pattern stmt defs when linearizing a chain.
18947 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
18949         PR debug/100852
18950         * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
18951         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
18953 2021-06-10  Clement Chigot  <clement.chigot@atos.net>
18955         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
18956         * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
18958 2021-06-09  Andrew Pinski  <apinski@marvell.com>
18960         PR tree-optimization/100925
18961         * match.pd (a ? CST1 : CST2): Limit transformations
18962         that would produce a negative to integeral types only.
18963         Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
18965 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
18967         Revert:
18968         2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
18970         * doc/tm.texi: Correctly update.
18972 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
18974         * doc/tm.texi: Correctly update.
18976 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
18978         PR other/100735
18979         * doc/tm.texi.in (Trampolines): Add a missing blank line.
18981 2021-06-09  Paul Eggert  <eggert@cs.ucla.edu>
18983         PR other/100735
18984         * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
18985         and -ftrampolines work only with Ada.
18986         * doc/tm.texi.in (Trampolines): Likewise.
18987         * doc/tm.texi: Regenerated.
18989 2021-06-09  Carl Love  <cel@us.ibm.com>
18991         * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
18992         Add define for new builtins.
18993         * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
18994         * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL):  Add
18995         overloaded builtin definitions.
18996         (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
18997         VSIGNEXTSD2Q):  Add builtin expansions.
18998         (SIGNEXT): Add P10 overload definition.
18999         * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
19000         P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
19001         * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
19002         (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
19003         vsignextend_si_v2di)[VIlong]: Add define_expand.
19004         Make define_insn vsx_sign_extend_si_v2di visible.
19005         * doc/extend.texi:  Add documentation for the vec_signexti,
19006         vec_signextll builtins and vec_signextq.
19008 2021-06-09  Carl Love  <cel@us.ibm.com>
19010         * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
19011         __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
19012         __floattikf_sw, __floatuntikf_sw respectively.
19013         * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
19014         fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
19015         define_insn for mode IEEE 128.
19017 2021-06-09  Carl Love  <cel@us.ibm.com>
19019         * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
19020         Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
19021         * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
19022         (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
19023         (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
19024         * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
19025         uses of VSX_TI to VEC_TI.
19027 2021-06-09  Carl Love  <cel@us.ibm.com>
19029         * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
19031 2021-06-09  Carl Love  <cel@us.ibm.com>
19033         * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
19034         builtins.
19035         * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
19036         UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
19037         (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
19038         altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
19039         altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
19040         altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
19041         altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
19042         define_insn.
19043         (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
19044         vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
19045         altivec_vrlqnm): New define_expands.
19046         * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
19047         VCMPGTUT_P): Add macro expansions.
19048         (BU_P10V_AV_P): Add builtin predicate definition.
19049         (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
19050         CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
19051         VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
19052         VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
19053         MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
19054         (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
19055         * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
19056         P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
19057         P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
19058         P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
19059         P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
19060         P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
19061         P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
19062         P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
19063         P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
19064         P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
19065         P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
19066         P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
19067         P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
19068         P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
19069         P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
19070         P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
19071         P10V_BUILTIN_MODU_V1TI):
19072         New overloaded definitions.
19073         (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
19074         P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
19075         P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
19076         P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
19077         P10V_BUILTIN_CMPLE_U1TI]: New case statements.
19078         (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
19079         New assignments.
19080         (altivec_init_builtins): New E_V1TImode case statement.
19081         (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
19082         P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
19083         P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
19084         P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
19085         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
19086         E_V1TImode]: New case statements.
19087         * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
19088         value RS6000_BTI_bool_V1TI.
19089         * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
19090         vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
19091         vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
19092         vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
19093         vlshrv1ti3, vashrv1ti3): New define_expands.
19094         * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
19095         UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
19096         UNSPEC_VSX_MODUQ): New unspecs.
19097         (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
19098         vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
19099         define_insns.
19100         (vcmpnet): New define_expand.
19101         * doc/extend.texi: Add documentation for the new builtins vec_rl,
19102         vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
19103         vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
19104         vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
19105         vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
19106         vec_any_ge, vec_any_le.
19108 2021-06-09  Carl Love  <cel@us.ibm.com>
19110         * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
19111         bug in argument generation.
19113 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
19115         * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
19116         (VCLZQ): Remove.
19117         * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
19118         remove <supf> iterator.
19119         (mve_vclzq_u<mode>): New.
19120         * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
19121         (neon_vclz<mode): Move to ...
19122         * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
19123         * config/arm/vec-common.md: ... here. Add support for MVE.
19125 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
19127         * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
19128         (@mve_vrhaddq_<supf><mode): Likewise.
19129         * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
19130         * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
19131         (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
19133 2021-06-09  imba-tjd  <109224573@qq.com>
19135         * doc/invoke.texi: Fix typo.
19137 2021-06-09  Roger Sayle  <roger@nextmovesoftware.com>
19139         PR middle-end/53267
19140         * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
19141         Support evaluation of fmod/fmodf/fmodl at compile-time.
19143 2021-06-09  Richard Biener  <rguenther@suse.de>
19145         PR tree-optimization/100981
19146         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
19147         gimple_get_lhs to also handle calls.
19148         * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
19149         reduction info.
19151 2021-06-09  Richard Biener  <rguenther@suse.de>
19153         PR tree-optimization/97832
19154         * tree-vectorizer.h (_slp_tree::failed): New.
19155         * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
19156         failed member.
19157         (_slp_tree::~_slp_tree): Free failed.
19158         (vect_build_slp_tree): Retain failed nodes and record
19159         matches in them, copying that back out when running
19160         into a cached fail.  Dump start and end of discovery.
19161         (dt_sort_cmp): New.
19162         (vect_build_slp_tree_2): Handle associatable chains
19163         together doing more aggressive operand swapping.
19165 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
19167         PR target/100896
19168         * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
19169         GNU targets.
19170         * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
19171         Linux and GNU targets.
19173 2021-06-09  Richard Biener  <rguenther@suse.de>
19175         * tree-vect-stmts.c (vect_is_simple_use): Always get dt
19176         from the stmt.
19178 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
19180         * config/arc/arc.md (loop_end): Change it to
19181         define_insn_and_split.
19183 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
19185         * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
19186         (machi): New pattern.
19187         (umaddhisi4): Use VMAC2HU instruction.
19188         (umachi): New pattern.
19190 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
19192         * config/arc/arc-protos.h (arc_split_move_p): New prototype.
19193         * config/arc/arc.c (arc_split_move_p): New function.
19194         (arc_split_move): Clean up.
19195         * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
19196         (movdf_insn): Likewise.
19197         * config/arc/simdext.md (mov<VWH>_insn): Likewise.
19199 2021-06-09  Uroš Bizjak  <ubizjak@gmail.com>
19201         PR target/100936
19202         * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
19203         argument to "raw".  Do not emit segment overrides when "raw" is true.
19205 2021-06-09  Martin Liska  <mliska@suse.cz>
19207         * doc/gcov.texi: Create a proper JSON files.
19208         * doc/invoke.texi: Remove dots in order to make it a valid
19209         JSON object.
19211 2021-06-09  Xionghu Luo  <luoxhu@linux.ibm.com>
19213         * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
19214         (insn_is_load_p): Use pattern_is_rotate64.
19215         (insn_is_swap_p): Likewise.
19216         (quad_aligned_load_p): Likewise.
19217         (const_load_sequence_p): Likewise.
19218         (replace_swapped_aligned_load): Likewise.
19219         (recombine_lvx_pattern): Likewise.
19220         (recombine_stvx_pattern): Likewise.
19222 2021-06-09  Andrew MacLeod  <amacleod@redhat.com>
19224         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
19225         fur_stmt source record.
19226         * gimple-range.cc (fur_source::get_operand): Generic range query.
19227         (fur_source::get_phi_operand): New.
19228         (fur_source::register_dependency): New.
19229         (fur_source::query): New.
19230         (class fur_edge): New.  Edge source for operands.
19231         (fur_edge::fur_edge): New.
19232         (fur_edge::get_operand): New.
19233         (fur_edge::get_phi_operand): New.
19234         (fur_edge::query): New.
19235         (fur_stmt::fur_stmt): New.
19236         (fur_stmt::get_operand): New.
19237         (fur_stmt::get_phi_operand): New.
19238         (fur_stmt::query): New.
19239         (class fur_depend): New.  Statement source and process dependencies.
19240         (fur_depend::fur_depend): New.
19241         (fur_depend::register_dependency): New.
19242         (class fur_list): New.  List source for operands.
19243         (fur_list::fur_list): New.
19244         (fur_list::get_operand): New.
19245         (fur_list::get_phi_operand): New.
19246         (fold_range): New.  Instantiate appropriate fur_source class and fold.
19247         (fold_using_range::range_of_range_op): Use new API.
19248         (fold_using_range::range_of_address): Ditto.
19249         (fold_using_range::range_of_phi): Ditto.
19250         (imple_ranger::fold_range_internal): Use fur_depend class.
19251         (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
19252         * gimple-range.h (class fur_source): Now a base class.
19253         (class fur_stmt): New.
19254         (fold_range): New prototypes.
19255         (fur_source::fur_source): Delete.
19257 2021-06-08  Andrew Pinski  <apinski@marvell.com>
19259         PR tree-optimization/25290
19260         * tree-ssa-phiopt.c (xor_replacement): Delete.
19261         (tree_ssa_phiopt_worker): Delete use of xor_replacement.
19262         (match_simplify_replacement): Allow one cheap preparation
19263         statement that can be moved to before the if.
19265 2021-06-08  Pat Haugen  <pthaugen@linux.ibm.com>
19267         * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
19268         power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
19270 2021-06-08  Jeff Law  <jeffreyalaw@gmail.com>
19272         * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
19273         Create length attribute on define_insn_and_split.  Only split for cases which we
19274         know will use AND.
19275         (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags.  Only handle AND here and
19276         fix length computation.
19277         (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
19279 2021-06-08  Richard Biener  <rguenther@suse.de>
19281         PR tree-optimization/100923
19282         * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
19283         the operand vector to be valueized.
19284         (valueize_refs): Likewise.
19285         (valueize_shared_reference_ops_from_ref): Adjust.
19286         (valueize_shared_reference_ops_from_call): Likewise.
19287         (vn_reference_lookup_3): Likewise.
19288         (vn_reference_lookup_pieces): Likewise.  Re-valueize
19289         with honoring availability when we are about to create
19290         the ao_ref and valueized before.
19291         (vn_reference_lookup): Likewise.
19292         (vn_reference_insert_pieces): Adjust.
19294 2021-06-08  Richard Biener  <rguenther@suse.de>
19296         * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
19297         (_slp_instance::root_stmts): ... a vector.
19298         (SLP_INSTANCE_ROOT_STMT): Rename to ...
19299         (SLP_INSTANCE_ROOT_STMTS): ... this.
19300         (slp_root::root): Change to...
19301         (slp_root::roots): ... a vector.
19302         (slp_root::slp_root): Adjust.
19303         * tree-vect-slp.c (_slp_instance::location): Adjust.
19304         (vect_free_slp_instance): Release the root stmt vector.
19305         (vect_build_slp_instance): Adjust.
19306         (vect_analyze_slp): Likewise.
19307         (_bb_vec_info::~_bb_vec_info): Likewise.
19308         (vect_slp_analyze_operations): Likewise.
19309         (vect_bb_vectorization_profitable_p): Likewise.  Adjust
19310         costs for the root stmt.
19311         (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
19312         as root stmts.
19313         (vect_slp_analyze_bb_1): Simplify by marking all root stmts
19314         as pure_slp.
19315         (vectorize_slp_instance_root_stmt): Adjust.
19316         (vect_schedule_slp): Likewise.
19318 2021-06-08  Aldy Hernandez  <aldyh@redhat.com>
19320         * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
19321         (ssa_equiv_stack::ssa_equiv_stack): New.
19322         (ssa_equiv_stack::~ssa_equiv_stack): New.
19323         (ssa_equiv_stack::enter): New.
19324         (ssa_equiv_stack::leave): New.
19325         (ssa_equiv_stack::push_replacement): New.
19326         (ssa_equiv_stack::get_replacement): New.
19327         (is_pointer_ssa): New.
19328         (class pointer_equiv_analyzer): New.
19329         (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
19330         (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
19331         (pointer_equiv_analyzer::set_global_equiv): New.
19332         (pointer_equiv_analyzer::set_cond_equiv): New.
19333         (pointer_equiv_analyzer::get_equiv): New.
19334         (pointer_equiv_analyzer::enter): New.
19335         (pointer_equiv_analyzer::leave): New.
19336         (pointer_equiv_analyzer::get_equiv_expr): New.
19337         (pta_valueize): New.
19338         (pointer_equiv_analyzer::visit_stmt): New.
19339         (pointer_equiv_analyzer::visit_edge): New.
19340         (hybrid_folder::value_of_expr): Call PTA.
19341         (hybrid_folder::value_on_edge): Same.
19342         (hybrid_folder::pre_fold_bb): New.
19343         (hybrid_folder::post_fold_bb): New.
19344         (hybrid_folder::pre_fold_stmt): New.
19345         (rvrp_folder::pre_fold_bb): New.
19346         (rvrp_folder::post_fold_bb): New.
19347         (rvrp_folder::pre_fold_stmt): New.
19348         (rvrp_folder::value_of_expr): Call PTA.
19349         (rvrp_folder::value_on_edge): Same.
19351 2021-06-08  Jakub Jelinek  <jakub@redhat.com>
19353         PR c++/100957
19354         * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
19355         check TREE_CODE if OMP_CLAUSE_DECL is NULL.
19357 2021-06-08  Richard Biener  <rguenther@suse.de>
19359         PR middle-end/100951
19360         * tree-vect-generic.c (expand_vector_piecewise): Build a
19361         VECTOR_CST if all elements are constant.
19362         (expand_vector_condition): Likewise.
19363         (lower_vec_perm): Likewise.
19364         (expand_vector_conversion): Likewise.
19366 2021-06-08  Martin Liska  <mliska@suse.cz>
19368         * doc/invoke.texi: Document new param evrp-sparse-threshold.
19370 2021-06-08  Martin Liska  <mliska@suse.cz>
19372         * genautomata.c (create_automata): Fix typo.
19374 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
19376         PR tree-optimization/100794
19377         * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
19378         allow_unroll_p and only allow unrolling when it's true.
19379         (tree_predictive_commoning): Add parameter allow_unroll_p and
19380         adjust for it.
19381         (run_tree_predictive_commoning): Likewise.
19382         (pass_predcom::gate): Check flag_tree_loop_vectorize and
19383         global_options_set.x_flag_predictive_commoning.
19384         (pass_predcom::execute): Adjust for allow_unroll_p.
19386 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
19388         * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
19389         (tree_predictive_commoning_loop): Factor some cleanup stuffs into
19390         lambda function cleanup, remove scev_reset call, and adjust return
19391         value.
19392         (tree_predictive_commoning): Adjust for different changed values,
19393         only set flag TODO_update_ssa_only_virtuals if changed.
19394         (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
19395         from todo_flags_finish.
19397 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
19399         * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
19400         (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
19401         (sbr_sparse_bitmap::bitmap_set_quad): New.
19402         (sbr_sparse_bitmap::bitmap_get_quad): New.
19403         (sbr_sparse_bitmap::set_bb_range): New.
19404         (sbr_sparse_bitmap::get_bb_range): New.
19405         (sbr_sparse_bitmap::bb_range_p): New.
19406         (block_range_cache::block_range_cache): initialize bitmap obstack.
19407         (block_range_cache::~block_range_cache): Destruct obstack.
19408         (block_range_cache::set_bb_range): Decide when to utilze the
19409         sparse on entry cache.
19410         * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
19411         * params.opt (-param=evrp-sparse-threshold): New.
19413 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
19415         * bitmap.c (bitmap_set_aligned_chunk): New.
19416         (bitmap_get_aligned_chunk): New.
19417         (test_aligned_chunk): New.
19418         (bitmap_c_tests): Call test_aligned_chunk.
19419         * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
19421 2021-06-07  Uroš Bizjak  <ubizjak@gmail.com>
19423         PR target/100637
19424         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
19425         Handle V4QI mode.
19426         (ix86_expand_vector_init_one_nonzero): Ditto.
19427         (ix86_expand_vector_init_one_var): Ditto.
19428         (ix86_expand_vector_init_general): Ditto.
19429         * config/i386/mmx.md (vec_initv4qiqi): New expander.
19431 2021-06-07  Jeff Law  <jeffreyalaw@gmail.com>
19433         * config/h8300/movepush.md: Change most _clobber_flags
19434         patterns to instead use <cczn> subst.
19435         (movsi_cczn): New pattern with usable CC cases split out.
19436         (movsi_h8sx_cczn): Likewise.
19438 2021-06-07  Martin Liska  <mliska@suse.cz>
19440         * common/common-target.def: Split long lines and replace them
19441         with '\n\'.
19442         * target.def: Likewise.
19443         * doc/tm.texi: Re-generated.
19445 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
19447         PR target/100887
19448         * fold-const.c (fold_read_from_vector): Return NULL if trying to
19449         read from a CONSTRUCTOR with vector type elements.
19451 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
19453         PR middle-end/100898
19454         * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
19455         should copy any arguments.  Don't call gimple_call_num_args
19456         on id->call_stmt or call_stmt more than once.
19458 2021-06-07  liuhongt  <hongtao.liu@intel.com>
19460         PR target/100885
19461         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
19462         constraints.
19463         (<insn>v4siv4di2): Delete constraints for define_expand.
19465 2021-06-07  liuhongt  <hongtao.liu@intel.com>
19467         PR target/82735
19468         * config/i386/i386-expand.c (ix86_expand_builtin): Remove
19469         assignment of cfun->machine->has_explicit_vzeroupper.
19470         * config/i386/i386-features.c
19471         (ix86_add_reg_usage_to_vzerouppers): Delete.
19472         (ix86_add_reg_usage_to_vzeroupper): Ditto.
19473         (rest_of_handle_insert_vzeroupper): Remove
19474         ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
19475         of the function.
19476         (gate): Remove cfun->machine->has_explicit_vzeroupper.
19477         * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
19478         Declared.
19479         * config/i386/i386.c (ix86_insn_callee_abi): New function.
19480         (ix86_initialize_callee_abi): Ditto.
19481         (ix86_expand_avx_vzeroupper): Ditto.
19482         (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
19483         ABI.
19484         (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
19485         (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
19486         directly.
19487         * config/i386/i386.h (struct GTY(()) machine_function): Delete
19488         has_explicit_vzeroupper.
19489         * config/i386/i386.md (enum unspec): New member
19490         UNSPEC_CALLEE_ABI.
19491         (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
19492         define_constants for insn callee abi index.
19493         * config/i386/predicates.md (vzeroupper_pattern): Adjust.
19494         * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
19495         (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
19496         (*avx_vzeroupper): Rename to ..
19497         (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
19498         call_insn which has a special vzeroupper ABI.
19499         (*avx_vzeroupper_1): Deleted.
19501 2021-06-07  liuhongt  <hongtao.liu@intel.com>
19503         PR target/82735
19504         * df-scan.c (df_get_call_refs): When call_insn is a fake call,
19505         it won't use stack pointer reg.
19506         * final.c (leaf_function_p): When call_insn is a fake call, it
19507         won't affect caller as a leaf function.
19508         * reg-stack.c (callee_clobbers_any_stack_reg): New.
19509         (subst_stack_regs): When call_insn doesn't clobber any stack
19510         reg, don't clear the arguments.
19511         * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
19512         a insn.
19513         * shrink-wrap.c (requires_stack_frame_p): No need for stack
19514         frame for a fake call.
19515         * rtl.h (FAKE_CALL_P): New macro.
19517 2021-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19519         * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
19520         to...
19521         (sparc_order_regs_for_local_alloc): ...this.
19522         (sparc_leaf_reg_remap): Declare.
19523         * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
19524         (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
19525         * config/sparc/sparc.c (leaf_reg_remap): Delete.
19526         (order_regs_for_local_alloc): Rename to...
19527         (sparc_order_regs_for_local_alloc): ...this.
19528         (sparc_leaf_reg_remap): New function.
19529         (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
19531 2021-06-06  David Edelsohn  <dje.gcc@gmail.com>
19533         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
19534         Use assemble_name to output BSS section name.
19536 2021-06-06  Uroš Bizjak  <ubizjak@gmail.com>
19538         * config/i386/constraints.md (Bs):
19539         Remove boolean operators from match_test RTX.
19540         (Bw): Ditto.
19541         (L): Ditto.
19542         (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
19543         (Wz): Ditto.
19545 2021-06-06  Martin Liska  <mliska@suse.cz>
19547         * doc/extend.texi: Add missing @headitem.
19548         * doc/invoke.texi: Likewise.
19549         * doc/objc.texi: Likewise.
19551 2021-06-06  Martin Liska  <mliska@suse.cz>
19553         * genhooks.c (emit_findices): Remove unused function.
19554         (emit_documentation): Do not call emit_findices
19555         and do not search for @Fcode directives.
19557 2021-06-06  Martin Liska  <mliska@suse.cz>
19559         * doc/invoke.texi: Remove extra character.
19561 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
19563         * config/sh/sh.md (doloop_end_split): Fix empty split condition.
19565 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
19567         * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
19568         *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
19569         *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
19570         *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
19572 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
19574         * config/or1k/or1k.md (*movdi): Fix empty split condition.
19576 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
19578         * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
19579         split condition.
19581 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
19583         * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
19584         *zero_extendsidi2): Fix empty split condition.
19586 2021-06-05  Jeff Law  <jeffreyalaw@gmail.com>
19588         * config/h8300/addsub.md: Fix split condition in define_insn_and_split
19589         patterns.
19590         * config/h8300/bitfield.md: Likewise.
19591         * config/h8300/combiner.md: Likewise.
19592         * config/h8300/divmod.md: Likewise.
19593         * config/h8300/extensions.md: Likewise.
19594         * config/h8300/jumpcall.md: Likewise.
19595         * config/h8300/movepush.md: Likewise.
19596         * config/h8300/multiply.md: Likewise.
19597         * config/h8300/other.md: Likewise.
19598         * config/h8300/shiftrotate.md: Likewise.
19599         * config/h8300/logical.md: Likewise.  Fix split pattern to use
19600         code iterator that somehow slipped through.
19602 2021-06-04  Tobias Burnus  <tobias@codesourcery.com>
19604         PR middle-end/100905
19605         * tree-nested.c (convert_nonlocal_omp_clauses,
19606         convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
19608 2021-06-04  Martin Sebor  <msebor@redhat.com>
19610         PR middle-end/100732
19611         * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
19612         with either source or destination argument of invalid type.
19613         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
19614         calls with arguments of invalid type.
19616 2021-06-04  Martin Sebor  <msebor@redhat.com>
19618         * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
19619         order.
19620         (attr_access::vla_bounds): Also handle VLA bounds.
19622 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
19624         * config/i386/predicates.md (GOT_memory_operand):
19625         Implement using match_code RTXes.
19626         (GOT32_symbol_operand): Ditto.
19628 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
19630         PR target/100637
19631         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
19632         Handle V2HI mode.
19633         (ix86_expand_vector_init_general): Ditto.
19634         Use SImode instead of word_mode for logic operations
19635         when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
19636         (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
19637         implemented by expand_vec_perm_1.
19638         (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
19639         should be implemented using standard shuffle patterns.
19640         (ix86_vectorize_vec_perm_const): Handle V2HImode.  Add V4HI and
19641         V2HI modes to modes, implementable with shuffle for one operand.
19642         * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
19643         (*pshufw_1): New insn pattern.
19644         (*vec_dupv2hi): Ditto.
19645         (vec_initv2hihi): New expander.
19647 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
19649         * config/arm/vfp.md (no_literal_pool_df_immediate,
19650         no_literal_pool_sf_immediate): Fix empty split condition.
19652 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
19654         * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
19655         *tls_dynamic_gnu2_combine_32): Fix empty split condition.
19656         * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
19657         *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
19658         *<sse4_1_avx2>_pblendvb_lt): Likewise.
19660 2021-06-04  Jakub Jelinek  <jakub@redhat.com>
19662         PR target/100887
19663         * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
19664         concatenation from half-sized modes with TImode elements.
19666 2021-06-04  Claudiu Zissulescu  <claziss@synopsys.com>
19668         * config/arc/arc.c (arc_override_options): Disable millicode
19669         thunks when RF16 is on.
19671 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
19673         * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
19675 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
19677         * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
19678         Replace PROMOTE_MODE marco with its content.
19680 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
19682         * config/cris/cris.md (*addi_reload): Fix empty split condition.
19684 2021-06-03  Jim Wilson  <jimw@sifive.com>
19686         * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
19687         turn it on for all riscv targets.
19689 2021-06-03  Uroš Bizjak  <ubizjak@gmail.com>
19691         PR target/100637
19692         * config/i386/i386-expand.c (ix86_expand_vector_set):
19693         Handle V2HI and V4QI modes.
19694         (ix86_expand_vector_extract): Ditto.
19695         * config/i386/mmx.md (*pinsrw): New insn pattern.
19696         (*pinsrb): Ditto.
19697         (*pextrw): Ditto.
19698         (*pextrw_zext): Ditto.
19699         (*pextrb): Ditto.
19700         (*pextrb_zext): Ditto.
19701         (vec_setv2hi): New expander.
19702         (vec_extractv2hihi): Ditto.
19703         (vec_setv4qi): Ditto.
19704         (vec_extractv4qiqi): Ditto.
19705         (vec_setv8qi): Enable only for TARGET_SSE4_1.
19706         (vec_extractv8qiqi): Ditto.
19708 2021-06-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
19710         * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
19711         order to subf instruction.
19712         * config/rs6000/fusion.md: Regenerate.
19714 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
19716         * calls.c (get_size_range): Use range_of_expr instead of
19717         determine_value_range.
19718         * tree-affine.c (expr_to_aff_combination): Same.
19719         * tree-data-ref.c (split_constant_offset): Same.
19720         * tree-vrp.c (determine_value_range_1): Remove.
19721         (determine_value_range): Remove.
19722         * tree-vrp.h (determine_value_range): Remove.
19724 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
19726         * function-tests.c (test_ranges): Call gimple_range_tests.
19727         * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
19728         to get_tree_range.
19729         * gimple-range.cc (fur_source::get_operand): Do not call
19730         get_tree_range or gimple_range_global.
19731         get_tree_range.
19732         (get_tree_range): Move to value-query.cc.
19733         Call get_arith_expr_range.
19734         (gimple_ranger::range_of_expr): Add argument to get_tree_range.
19735         Include gimple-range-tests.cc.
19736         * gimple-range.h (fold_range): Add argument.
19737         (get_tree_range): Remove.
19738         * selftest.h (gimple_range_tests): New.
19739         * value-query.cc (global_range_query::range_of_expr): Add
19740         stmt argument.
19741         (range_query::get_tree_range): Move from gimple-range.cc.
19742         * value-query.h (class range_query): Add get_tree_range and
19743         get_arith_expr_range.  Make fur_source a friend.
19744         * vr-values.c (vr_values::range_of_expr): Pass stmt to
19745         get_tree_range.
19746         * gimple-range-tests.cc: New file.
19748 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
19750         * gimple-range.cc (gimple_ranger::export_global_ranges): Call
19751           update_global_range.
19752         * value-query.cc (update_global_range): New.
19753         * value-query.h (update_global_range): New.
19755 2021-06-03  David Malcolm  <dmalcolm@redhat.com>
19757         * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
19758         printing the same location twice if there are fix-it hints,
19759         multiple locations, or a label.
19761 2021-06-03  Andre Vieira  <andre.simoesdiasvieira@arm.com>
19763         * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
19764         thresholds to narrow the upper bound on epilogue iterations.
19766 2021-06-03  Christophe Lyon  <christophe.lyon@linaro.org>
19768         * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
19769         (mve_vabsq_s<mode>): Likewise.
19770         * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
19771         * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
19772         * config/arm/vec-common.md (neg<mode>2): Rename to
19773         <absneg_str><mode>2.
19775 2021-06-03  Claudiu Zissulescu  <claziss@synopsys.com>
19777         * common/config/arc/arc-common.c (arc_option_optimization_table):
19778         Remove malign-call.
19779         * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
19780         * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
19781         (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
19782         * config/arc/arc.md (abssi2_mixed): Remove pattern.
19783         * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
19784         (malign-call): Likewise.
19785         (mmixed-code): Likewise.
19786         * doc/invoke.texi (ARC): Update doc.
19788 2021-06-03  Martin Liska  <mliska@suse.cz>
19790         * common.opt: Use proper Enum values.
19791         * opts.c (COVERAGE_SANITIZER_OPT): Remove.
19792         (parse_sanitizer_options): Handle only sanitizer_opts.
19793         (common_handle_option): Just assign value.
19795 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
19797         PR ipa/99122
19798         * tree-inline.c (inline_forbidden_p): Remove test on return type.
19800 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
19802         * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
19803         DW_OP_GNU_variable_value referencing an existing DIE at file scope.
19804         (type_byte_size): Inline into...
19805         (add_byte_size_attribute): ...this and call add_scalar_info.
19807 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
19809         * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
19810         (typed_binop_from_tree): New function.
19811         (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
19812         turn a divide by a power of 2 into a shift.
19813         <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
19814         size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
19815         typed divide by calling typed_binop_from_tree.
19817 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
19819         * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
19820         (is_handled_procedure_type): Likewise.
19821         (struct loc_descr_context): Add strict_signedness field.
19822         (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
19823         DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
19824         (resolve_args_picking): Minor tweak.
19825         (function_to_dwarf_procedure): Initialize strict_signedness field.
19826         (type_byte_size): Likewise.
19827         (field_byte_offset): Likewise.
19828         (gen_descr_array_type_die): Likewise.
19829         (gen_variant_part): Likewise.
19830         (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
19831         to true when a context is present before evaluating the arguments.
19832         <COND_EXPR>: Do not generate a useless comparison with zero.
19833         When dereferencing an address, if strict_signedness is true and the
19834         type is small and signed, use DW_OP_deref_type to do the dereference
19835         and then DW_OP_convert to convert back to the generic type.
19837 2021-06-03  Jakub Jelinek  <jakub@redhat.com>
19839         PR c++/100859
19840         * tree-inline.c (copy_tree_body_r): Handle iterators on
19841         OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
19843 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
19845         * config/arc/arc.md (*bbit_di): Remove.
19847 2021-06-02  Christoph Muellner  <cmuellner@gcc.gnu.org>
19849         PR rtl-optimization/100264
19850         * ree.c (get_sub_rtx): Ignore SET expressions without register
19851         destinations and remove assertion, as it is not valid anymore
19852         with this new behaviour.
19853         (merge_def_and_ext): Eliminate destination check for register
19854         as such SET expressions can't occur anymore.
19855         (combine_reaching_defs): Likewise.
19857 2021-06-02  Jakub Jelinek  <jakub@redhat.com>
19859         PR target/100841
19860         * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
19861         -Wtype-limits warnings.
19862         (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
19863         in operands to avoid -Wsign-compare warnings.
19865 2021-06-02  Pat Haugen  <pthaugen@linux.ibm.com>
19867         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
19868         gen_frame_store.
19870 2021-06-02  Vineet Gupta  <vgupta@synopsys.com>
19872         * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
19874 2021-06-02  Ilya Leoshkevich  <iii@linux.ibm.com>
19876         * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
19877         constraint.
19878         * config/s390/subst.md(cconly_subst): Use a single constraint
19879         in (match_scratch).
19881 2021-06-02  Martin Liska  <mliska@suse.cz>
19883         * ipa-icf.h: Use auto_vec for memory_access_types.
19885 2021-06-02  Jeff Law  <jeffreyalaw@gmail.com>
19887         * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
19888         argument from prototype.
19889         (output_logical_op): Add rtx_code argument.
19890         (compute_logical_op_length): Likewise.
19891         * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
19892         to compute_a_shift_length.
19893         (output_logical_op); New argument with the rtx code rather than
19894         extracting it from an operand.  Handle QImode too.
19895         (compute_logical_op_length): Similary.
19896         (compute_a_shift_length): Drop unused argument.
19897         * config/h8300/h8300.md (logicals): New code iterator.
19898         * config/h8300/logical.md (<code><mode>3 expander): Combine
19899         the "and" expander with the "ior"/"xor" expander.
19900         (bclr<mode>msx): Combine the QI/HI mode patterns.
19901         (<logical><mode>3 insns): Use code iterator rather than match_operator.
19902         Handle QImode as well.   Update call to output_logical_op and
19903         compute_logical_op_length to pass in rtx_code
19904         Fix split condition on all define_insn_and_split patterns.
19905         (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
19906         the flags and setting ZN via existing define_subst.
19907         * config/h8300/shiftrotate.md: Drop unused argument from
19908         calls to compute_a_shift_length.
19909         Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
19911 2021-06-01  Andrew Pinski  <apinski@marvell.com>
19913         PR tree-optimization/25290
19914         * tree-ssa-phiopt.c (match_simplify_replacement):
19915         New function.
19916         (tree_ssa_phiopt_worker): Use match_simplify_replacement.
19917         (two_value_replacement): Change the comment about
19918         conditional_replacement.
19919         (conditional_replacement): Delete.
19921 2021-06-01  Andrew Pinski  <apinski@marvell.com>
19923         PR tree-optimization/95481
19924         * tree-tailcall.c (find_tail_calls): Handle empty typed
19925         return decls.
19927 2021-06-01  Andrew Pinski  <apinski@marvell.com>
19929         * gimplify.c (zero_sized_field_decl): Delete
19930         (zero_sized_type): Delete
19931         (gimplify_init_ctor_eval): Use is_empty_type instead
19932         of zero_sized_field_decl.
19933         (gimplify_modify_expr): Use is_empty_type instead of
19934         zero_sized_type.
19936 2021-06-01  Jason Merrill  <jason@redhat.com>
19938         PR c++/91859
19939         * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
19941 2021-06-01  Jason Merrill  <jason@redhat.com>
19943         PR c++/94492
19944         * diagnostic.h (warning_enabled_at): Declare.
19945         * diagnostic.c (diagnostic_enabled): Factor out from...
19946         (diagnostic_report_diagnostic): ...here.
19947         (warning_enabled_at): New.
19949 2021-06-01  Aldy Hernandez  <aldyh@redhat.com>
19951         * gimple-ssa-evrp.c: Enable exporting of global ranges.
19953 2021-06-01  Martin Liska  <mliska@suse.cz>
19955         PR other/100826
19956         * doc/invoke.texi: Mention that -fgcse-after-reload
19957         is enabled with -O3.
19959 2021-06-01  liuhongt  <hongtao.liu@intel.com>
19961         PR tree-optimization/98365
19962         * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
19963         (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
19964         (convert_scalar_cond_reduction): Ditto.
19965         (predicate_scalar_phi): Ditto.
19967 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
19969         PR tree-optimization/100781
19970         * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
19971         value calculation by default.
19972         (ranger_cache::enable_new_values): New.
19973         (ranger_cache::disable_new_values): New.
19974         (ranger_cache::push_poor_value): Check if new values are allowed.
19975         * gimple-range-cache.h (class ranger_cache): New member/methods.
19976         * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
19977         statement, and disable/renable new value calculation.
19979 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
19981         * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
19982         (ranger_cache::range_of_def): New.
19983         (ranger_cache::entry_range): New.
19984         (ranger_cache::exit_range): New.
19985         (ranger_cache::range_of_expr): Adjust.
19986         (ranger_cache::range_on_edge): Adjust.
19987         (ranger_cache::propagate_cache): Call exit_range directly.
19988         * gimple-range-cache.h (class ranger_cache): Adjust.
19990 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
19992         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
19993         gori_compute being a member rather than base class.
19994         dervied call to member call.
19995         (ranger_cache::dump): No longer dump gori_map.
19996         (ranger_cache::dump_bb): New.
19997         (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
19998         being a member rather than base class.
19999         (ranger_cache::set_global_range): Ditto.
20000         (ranger_cache::ssa_range_in_bb): Ditto.
20001         (ranger_cache::range_of_expr): New.
20002         (ranger_cache::range_on_edge): New.
20003         (ranger_cache::block_range): Adjust for gori_computes.  Debug changes.
20004         (ranger_cache::propagate_cache):  Adjust debugging output.
20005         (ranger_cache::fill_block_cache): Adjust for gori_computes.  Debug
20006         output changes.
20007         * gimple-range-cache.h (class ranger_cache): Make gori_compute a
20008         member, and inherit from range_query instead.
20009         (ranger_cache::dump_bb): New. split from dump.
20010         * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
20011         (gori_compute::expr_range_at_stmt): Delete.
20012         (gori_compute::compute_name_range_op): Delete.
20013         (gori_compute::compute_operand_range_switch): Add fur_source.
20014         (gori_compute::compute_operand_range): Add fur_source param, inline
20015         old compute_name_range_op and optimize_logical_operands.
20016         (struct tf_range): Delete.
20017         (gori_compute::logical_combine): Adjust
20018         (gori_compute::optimize_logical_operands): Delete.
20019         (gori_compute::compute_logical_operands_in_chain): Delete.
20020         (gori_compute::compute_logical_operands): Adjust.
20021         (gori_compute::compute_operand1_range): Adjust to fur_source.
20022         (gori_compute::compute_operand2_range): Ditto.
20023         (gori_compute::compute_operand1_and_operand2_range): Ditto.
20024         (gori_compute::outgoing_edge_range_p): Add range_query parameter,
20025         and adjust to fur_source.
20026         * gimple-range-gori.h (class gori_compute): Simplify and adjust to
20027         range_query and fur_source.
20028         * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
20029         from the ranger_cache..
20030         (gimple_ranger::fold_range_internal): Adjust to base class change of
20031         ranger_cache.
20032         (gimple_ranger::dump_bb): Adjust dump.
20033         * gimple-range.h (gimple_ranger):export gori computes object.
20035 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
20037         PR tree-optimization/100774
20038         * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
20039         Constant values are also not stale.
20040         (ranger_cache::set_global_range): Range invariant values should also
20041         have the correct timestamp.
20043 2021-05-31  Martin Liska  <mliska@suse.cz>
20045         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
20046         Unpack FUNCTION_DECL_DECL_TYPE.
20047         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
20048         Stream FUNCTION_DECL_DECL_TYPE instead of
20049         DECL_IS_OPERATOR_NEW_P.
20050         * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
20051         macro.
20052         (DECL_IS_OPERATOR_NEW_P): Likewise.
20053         (DECL_IS_OPERATOR_DELETE_P): Likewise.
20054         (DECL_LAMBDA_FUNCTION_P): Likewise.
20056 2021-05-31  Richard Biener  <rguenther@suse.de>
20058         PR c++/88601
20059         * internal-fn.c (expand_SHUFFLEVECTOR): Define.
20060         * internal-fn.def (SHUFFLEVECTOR): New.
20061         * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
20062         * doc/extend.texi: Document __builtin_shufflevector.
20064 2021-05-31  Peter Bergner  <bergner@linux.ibm.com>
20066         PR target/99842
20067         * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
20068         indexed form addresses.
20070 2021-05-29  Jeff Law  <jlaw@tachyum.com>
20072         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
20073         parameter.  Call callers fixed.
20074         (push): Likewise.
20075         (output_plussi): Add FALLTHRU markers.
20076         (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
20078 2021-05-29  Jakub Jelinek  <jakub@redhat.com>
20080         PR middle-end/99928
20081         * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
20082         combined with parallel, make sure to add shared clause to
20083         parallel for explicit linear clause.
20085 2021-05-29  Aldy Hernandez  <aldyh@redhat.com>
20087         PR tree-optimization/100787
20088         * gimple-ssa-evrp.c: Disable exporting of global ranges.
20090 2021-05-28  Jason Merrill  <jason@redhat.com>
20092         * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
20093         operator--, operator*, operator==, and operator!=.
20094         (class tsi_range): New.
20096 2021-05-28  Richard Biener  <rguenther@suse.de>
20098         PR tree-optimization/100778
20099         * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
20100         trapping ops in different BBs.
20102 2021-05-28  Richard Biener  <rguenther@suse.de>
20104         PR ipa/100791
20105         * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
20106         copy fntype from original call.
20108 2021-05-28  Martin Liska  <mliska@suse.cz>
20110         PR gcov-profile/100751
20111         * doc/gcov.texi: Revert partially a hunk that was wrong.
20113 2021-05-28  Cooper Qu  <cooper.qu@linux.alibaba.com>
20115         * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
20116         Defined.
20117         (HAVE_sync_compare_and_swaphi): Likewise.
20118         (HAVE_sync_compare_and_swapsi): Likewise.
20120 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
20122         PR middle-end/99928
20123         * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
20125 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
20127         * gimplify.c (gimplify_omp_affinity): New.
20128         (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
20129         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
20130         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
20131         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
20132         (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
20134 2021-05-28  Joern Rennecke  <joern.rennecke@riscy-ip.com>
20135             Richard Biener   <rguenther@suse.de>
20137         * match.pd <popcount & / + pattern matching>:
20138         When generating popcount directly fails, try doing it in two halves.
20140 2021-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20142         * Makefile.in (generated_files): Add gimple-match.c and
20143         generic-match.c
20145 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
20147         * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
20149 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
20151         * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
20153 2021-05-28  Kewen Lin  <linkw@linux.ibm.com>
20155         PR tree-optimization/99398
20156         * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
20157         where the fed operands are CTOR/CST and propagated through
20158         VIEW_CONVERT_EXPR.  Call vec_perm_indices::new_shrunk_vector.
20159         * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
20160         function.
20161         * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
20162         declare.
20164 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
20166         * config/i386/mmx.md (addv2sf3): Do not call
20167         ix86_fixup_binary_operands_no_copy.
20168         (subv2sf3): Ditto.
20169         (mulv2sf3): Ditto.
20170         (<smaxmin:code>v2sf3): Ditto.
20171         (<plusminus:insn><MMXMODEI:mode>3): Ditto.
20172         (<plusminus:insn><VI_32:mode>3): Remove expander.
20173         (<plusminus:insn><VI_32:mode>3): Rename from
20174         "*<plusminus:insn><VI_32:mode>3".
20175         (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
20176         (mulv2hi3): Remove expander.
20177         (mulv2hi3): Rename from *mulv2hi3.
20178         (<s>mulv2hi3_highpart): Remove expander.
20179         (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
20180         (<smaxmin:code><MMXMODE14:mode>3): Rename from
20181         "*mmx_<smaxmin:code><MMXMODE14:mode>3".
20182         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
20183         (SMAXMIN_MMXMODEI): Remove mode iterator.
20184         (<smaxmin:code>v4hi3): New expander.
20185         (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
20186         (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
20187         (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
20188         (SMAXMIN_VI_32): Remove mode iterator.
20189         (<umaxmin:code><MMXMODE24:mode>3): Rename from
20190         "*mmx_<umaxmin:code><MMXMODE24:mode>3".
20191         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
20192         (UMAXMIN_MMXMODEI): Remove mode iterator.
20193         (<umaxmin:code>v8qi3): New expander.
20194         (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
20195         (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
20196         (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
20197         (UMAXMIN_VI_32): Remove mode iterator.
20198         (<any_shift:insn>v2hi3): Remove expander.
20199         (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
20200         (<any_logic:code><MMXMODEI:mode>3): Do not call
20201         ix86_fixup_binary_operands_no_copy.
20202         (<any_logic:code><VI_32:mode>3): Remove expander.
20203         (<any_logic:code><VI_32:mode>3): Rename from
20204         "*<any_logic:code><VI_32:mode>3".
20205         (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
20206         * config/i386/sse.md (div<VF2:mode>3): Do not call
20207         ix86_fixup_binary_operands_no_copy.
20208         (div<VF1:mode>3): Ditto.
20209         (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
20210         (smulhrsv4hi3): Ditto.
20211         (smulhrsv2hi3): Ditto.
20213 2021-05-27  Martin Sebor  <msebor@redhat.com>
20215         * ggc.h (gt_ggc_mx): Add overloads for all integers.
20216         (gt_pch_nx):  Same.
20217         * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
20218         integers.
20219         (hash_map::operator==): New function.
20221 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
20223         PR target/100637
20224         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
20225         For TARGET_XOP bypass SSE comparisons for all supported vector modes.
20226         * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
20227         (*xop_maskcmp<VI_32:mode>3): Ditto.
20228         (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
20229         (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
20231 2021-05-27  Richard Earnshaw  <rearnsha@arm.com>
20233         PR target/100767
20234         * config/arm/arm.c (arm_configure_build_target): Remove parameter
20235         opts_set, directly check opts parameters for being non-null.
20236         (arm_option_restore): Update call to arm_configure_build_target.
20237         (arm_option_override): Likewise.
20238         (arm_can_inline_p): Likewise.
20239         (arm_valid_target_attribute_tree): Likewise.
20240         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
20241         * config/arm/arm-protos.h (arm_configure_build_target): Adjust
20242         prototype.
20244 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
20246         * vr-values.c (simplify_conversion_using_ranges): Use
20247         get_range_query instead of get_global_range_query.
20249 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
20251         * gimple-range.cc (get_range_global): Move to value-query.cc.
20252         (gimple_range_global): Same.
20253         (get_global_range_query): Same.
20254         (global_range_query::range_of_expr): Same.
20255         * gimple-range.h (class global_range_query): Move to
20256         value-query.h.
20257         (gimple_range_global): Same.
20258         * tree-ssanames.c (get_range_info): Move to value-query.cc.
20259         (get_ptr_nonnull): Same.
20260         * tree-ssanames.h (get_range_info): Remove.
20261         (get_ptr_nonnull): Remove.
20262         * value-query.cc (get_ssa_name_range_info): Move from
20263         tree-ssanames.c.
20264         (get_ssa_name_ptr_info_nonnull): Same.
20265         (get_range_global): Move from gimple-range.cc.
20266         (gimple_range_global): Same.
20267         (get_global_range_query): Same.
20268         (global_range_query::range_of_expr): Same.
20269         * value-query.h (class global_range_query): Move from
20270         gimple-range.h.
20271         (gimple_range_global): Same.
20273 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
20275         PR target/100637
20276         * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
20277         (uavgv2hi3_ceil): Ditto.
20279 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
20281         PR c/100653
20282         * doc/extend.texi (scalar_storage_order): Rephrase slightly.
20284 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
20286         * tree-ssanames.c (get_range_info): Merge both copies of
20287         get_range_info into one that works with irange.
20288         * tree-ssanames.h (get_range_info): Remove version that works on
20289         wide_ints.
20291 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
20293         * builtins.c (check_nul_terminated_array): Convert to get_range_query.
20294         (expand_builtin_strnlen): Same.
20295         (determine_block_size): Same.
20296         * fold-const.c (expr_not_equal_to): Same.
20297         * gimple-fold.c (size_must_be_zero_p): Same.
20298         * gimple-match-head.c: Include gimple-range.h.
20299         * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
20300         * gimple-ssa-warn-restrict.c
20301         (builtin_memref::extend_offset_range): Same.
20302         * graphite-sese-to-poly.c (add_param_constraints): Same.
20303         * internal-fn.c (get_min_precision): Same.
20304         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
20305         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
20306         * match.pd: Same.
20307         * tree-data-ref.c (split_constant_offset): Same.
20308         (dr_step_indicator): Same.
20309         * tree-dfa.c (get_ref_base_and_extent): Same.
20310         * tree-scalar-evolution.c (iv_can_overflow_p): Same.
20311         * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
20312         (determine_value_range): Same.
20313         (record_nonwrapping_iv): Same.
20314         (infer_loop_bounds_from_signedness): Same.
20315         (scev_var_range_cant_overflow): Same.
20316         * tree-ssa-phiopt.c (two_value_replacement): Same.
20317         * tree-ssa-pre.c (insert_into_preds_of_block): Same.
20318         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
20319         * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
20320         (get_range): Same.
20321         (dump_strlen_info): Same.
20322         (set_strlen_range): Same.
20323         (maybe_diag_stxncpy_trunc): Same.
20324         (get_len_or_size): Same.
20325         (handle_integral_assign): Same.
20326         * tree-ssa-structalias.c (find_what_p_points_to): Same.
20327         * tree-ssa-uninit.c (find_var_cmp_const): Same.
20328         * tree-switch-conversion.c (bit_test_cluster::emit): Same.
20329         * tree-vect-patterns.c (vect_get_range_info): Same.
20330         (vect_recog_divmod_pattern): Same.
20331         * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
20332         (register_edge_assert_for_2): Same.
20333         (determine_value_range_1): Same.
20334         * tree.c (get_range_pos_neg): Same.
20335         * vr-values.c (vr_values::get_lattice_entry): Same.
20336         (vr_values::update_value_range): Same.
20337         (simplify_conversion_using_ranges): Same.
20339 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
20341         * gimple-ssa-warn-alloca.c (alloca_call_type): Use
20342           get_range_query instead of query argument.
20343         (pass_walloca::execute): Enable and disable global ranger.
20345 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
20347         * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
20348         enable_ranger.
20349         (rvrp_folder::~rvrp_folder): Call disable_ranger.
20350         (hybrid_folder::hybrid_folder): Call enable_ranger.
20351         (hybrid_folder::~hybrid_folder): Call disable_ranger.
20353 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
20355         * function.c (allocate_struct_function): Set cfun->x_range_query.
20356         * function.h (struct function): Declare x_range_query.
20357         (get_range_query): New.
20358         (get_global_range_query): New.
20359         * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
20360         Remove call to safe_grow_cleared.
20361         * gimple-range.cc (get_range_global): New.
20362         (gimple_range_global): Move from gimple-range.h.
20363         (get_global_range_query): New.
20364         (global_range_query::range_of_expr): New.
20365         (enable_ranger): New.
20366         (disable_ranger): New.
20367         * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
20368         (class global_range_query): New.
20369         (enable_ranger): New.
20370         (disable_ranger): New.
20371         * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
20372         dump_all_value_ranges to dump.
20373         * tree-vrp.c (vrp_prop::finalize): Same.
20374         * value-query.cc (range_query::dump): New.
20375         * value-query.h (range_query::dump): New.
20376         * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
20377         (vr_values::dump): ...this.
20378         * vr-values.h (class vr_values): Rename dump_all_value_ranges to
20379         dump and make virtual.
20381 2021-05-26  Uroš Bizjak  <ubizjak@gmail.com>
20383         * config/i386/i386.c (ix86_autovectorize_vector_modes):
20384         Add V4QImode and V16QImode for TARGET_SSE2.
20385         * doc/sourcebuild.texi (Vector-specific attributes):
20386         Add vect64 and vect32 description.
20388 2021-05-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20390         * gimple-range-gori.cc (range_def_chain::register_dependency):
20391         Resize m_def_chain when needed.
20393 2021-05-26  Christophe Lyon  <christophe.lyon@linaro.org>
20395         * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
20396         * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
20397         * config/arm/vec-common.md: .. here. Add support for MVE.
20399 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
20401         * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
20402         register keywords.
20403         * config/microblaze/microblaze.c (microblaze_legitimize_address,
20404         call_internal1,
20405         microblaze_option_override, print_operand): Likewise.
20406         * config/microblaze/microblaze.md (call_internal_plt,
20407         call_value_intern_plt, call_value_intern): Likewise.
20408         * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
20409         * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
20410         call_value_multiple_internal1): Likewise.
20411         * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
20413 2021-05-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20415         * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
20416         arc_ccfsm_advance, symbolic_reference_mentioned_p,
20417         arc_raw_symbolic_reference_mentioned_p): Remove register
20418         keyword.
20420 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
20422         PR libgomp/100573
20423         * omp-low.c: Include omp-offload.h.
20424         (create_omp_child_function): If current_function_decl has
20425         "omp declare target" attribute and is_gimple_omp_offloaded,
20426         remove that attribute from the copy of attribute list and
20427         add "omp target entrypoint" attribute instead.
20428         (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
20429         variables for offloading if in omp_maybe_offloaded_ctx.
20430         * omp-offload.c (pass_omp_target_link::execute): Nullify second
20431         argument to GOMP_target_data_ext in offloaded code.
20433 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
20435         * config/csky/csky.c (csky_can_change_mode_class): Delete.
20436         For csky, HF/SF mode use the low bits of VREGS.
20438 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
20440         * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
20441         DECL which is a reference for OMP.
20443 2021-05-26  Martin Liska  <mliska@suse.cz>
20445         PR gcov-profile/100751
20446         * doc/gcov.texi: Document that __gcov_dump can be called just
20447         once and that __gcov_reset resets run-time counters.
20449 2021-05-26  Martin Liska  <mliska@suse.cz>
20451         * doc/install.texi: Port relevant part from install-old.texi
20452         and re-generate list of CPUs and systems.
20454 2021-05-26  Martin Liska  <mliska@suse.cz>
20456         * Makefile.in: Remove it.
20457         * doc/include/fdl.texi: Update next/previous chapters.
20458         * doc/install.texi: Likewise.
20459         * doc/install-old.texi: Removed.
20461 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
20463         * config/csky/csky.c (ck810_legitimate_index_p): Support
20464         "base + index" with DF mode.
20465         * config/csky/constraints.md ("Y"): New constraint for memory operands
20466         without index register.
20467         * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
20468         when mov between memory and general registers, and lower their priority.
20469         * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
20471 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
20473         * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
20475 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
20477         * config/csky/csky.md (untyped_call): Emit clobber for return
20478         registers to mark them used.
20480 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
20482         * config/csky/csky.md (cskyv2_sextend_ldbs): New.
20484 2021-05-26  Andrew Pinski  <apinski@marvell.com>
20486         * match.pd (x < 0 ? ~y : y): New patterns.
20488 2021-05-26  Andrew Pinski  <apinski@marvell.com>
20490         * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
20491         A?POW2:0 and A?0:POW2.
20493 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
20495         * gimple-range-gori.cc (class logical_stmt_cache): Delete
20496         (logical_stmt_cache::logical_stmt_cache ): Delete.
20497         (logical_stmt_cache::~logical_stmt_cache): Delete.
20498         (logical_stmt_cache::cache_entry::dump): Delete.
20499         (logical_stmt_cache::get_range): Delete.
20500         (logical_stmt_cache::cached_name ): Delete.
20501         (logical_stmt_cache::same_cached_name): Delete.
20502         (logical_stmt_cache::cacheable_p): Delete.
20503         (logical_stmt_cache::slot_diagnostics ): Delete.
20504         (logical_stmt_cache::dump): Delete.
20505         (gori_compute_cache::gori_compute_cache): Delete.
20506         (gori_compute_cache::~gori_compute_cache): Delete.
20507         (gori_compute_cache::compute_operand_range): Delete.
20508         (gori_compute_cache::cache_stmt): Delete.
20509         * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
20510         virtual.
20511         (class gori_compute_cache): Delete.
20513 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
20515         * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
20516         intead of m_cache.
20517         (fold_using_range::range_of_address): Adjust.
20518         (fold_using_range::range_of_phi): Adjust.
20519         * gimple-range.h (class fur_source): Adjust.
20520         (fur_source::fur_source): Adjust.
20522 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
20524         * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
20525         from expr_range_in_bb and adjust.
20526         (gori_compute::compute_name_range_op): Adjust.
20527         (gori_compute::optimize_logical_operands): Adjust.
20528         (gori_compute::compute_logical_operands_in_chain): Adjust.
20529         (gori_compute::compute_operand1_range): Adjust.
20530         (gori_compute::compute_operand2_range): Adjust.
20531         (ori_compute_cache::cache_stmt): Adjust.
20532         * gimple-range-gori.h (gori_compute): Rename prototype.
20534 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
20536         * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
20537         checked only after range_of_stmt, not range_on_entry.
20538         (gimple_ranger::range_on_entry): Check for non-null in any
20539         predecessor block, if it is not already non-null.
20540         (gimple_ranger::range_on_exit): DOnt check for non-null after
20541         range on entry call.
20542         (gimple_ranger::dump_bb): New.  Split from dump.
20543         (gimple_ranger::dump): Adjust.
20544         * gimple-range.h (class gimple_ranger): Adjust.
20546 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
20548         * gimple-range-cache.cc (struct range_timestamp): Delete.
20549         (class temporal_cache): Adjust.
20550         (temporal_cache::get_timestamp): Delete.
20551         (temporal_cache::set_dependency): Delete.
20552         (temporal_cache::temporal_value): Adjust.
20553         (temporal_cache::current_p): Take dependencies as params.
20554         (temporal_cache::set_timestamp): Adjust.
20555         (temporal_cache::set_always_current): Adjust.
20556         (ranger_cache::get_non_stale_global_range): Adjust.
20557         (ranger_cache::register_dependency): Delete.
20558         * gimple-range-cache.h (class range_cache): Adjust.
20560 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
20562         * gimple-range-gori.cc (range_def_chain::range_def_chain): init
20563         bitmap obstack.
20564         (range_def_chain::~range_def_chain): Dispose of obstack rather than
20565         each individual bitmap.
20566         (range_def_chain::set_import): New.
20567         (range_def_chain::get_imports): New.
20568         (range_def_chain::chain_import_p): New.
20569         (range_def_chain::register_dependency): Rename from build_def_chain
20570         and set imports.
20571         (range_def_chain::def_chain_in_bitmap_p): New.
20572         (range_def_chain::add_def_chain_to_bitmap): New.
20573         (range_def_chain::has_def_chain): Just check first depenedence.
20574         (range_def_chain::get_def_chain): Process imports, use generic
20575         register_dependency routine.
20576         (range_def_chain::dump): New.
20577         (gori_map::gori_map): Allocate import list.
20578         (gori_map::~gori_map): Release imports.
20579         (gori_map::exports): Check for past allocated block size.
20580         (gori_map::imports): New.
20581         (gori_map::def_chain_in_export_p): Delete.
20582         (gori_map::is_import_p): New.
20583         (gori_map::maybe_add_gori): Handle imports.
20584         (gori_map::dump): Adjust output, add imports.
20585         (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
20586         (gori_export_iterator::gori_export_iterator): New.
20587         (gori_export_iterator::next): New.
20588         (gori_export_iterator::get_name): New.
20589         * gimple-range-gori.h (range_def_chain): Add imports and direct
20590         dependecies via struct rdc.
20591         (range_def_chain::depend1): New.
20592         (range_def_chain::depend2): New.
20593         (class gori_map): Adjust.
20594         (FOR_EACH_GORI_IMPORT_NAME): New.
20595         (FOR_EACH_GORI_EXPORT_NAME): New.
20596         (class gori_export_iterator): New.
20598 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
20600         * gimple-range-cache.cc (ranger_cache::ranger_cache):  Move initial
20601         export cache filling to here.
20602         * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
20604 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
20606         * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
20607         (gori_map): Move to gimple-range-gori.h.
20608         (gori_compute::gori_compute): Adjust.
20609         (gori_compute::~gori_compute): Delete.
20610         (gori_compute::compute_operand_range_switch): Adjust.
20611         (gori_compute::compute_operand_range): Adjust.
20612         (gori_compute::compute_logical_operands): Adjust.
20613         (gori_compute::has_edge_range_p ): Adjust.
20614         (gori_compute::set_range_invariant): Delete.
20615         (gori_compute::dump): Adjust.
20616         (gori_compute::outgoing_edge_range_p): Adjust.
20617         * gimple-range-gori.h (class range_def_chain): Relocate here.
20618         (class gori_map): Relocate here.
20619         (class gori_compute): Inherit from gori_map, and adjust.
20621 2021-05-25  Aldy Hernandez  <aldyh@redhat.com>
20623         * value-range.cc (range_tests_legacy): Use
20624         build_nonstandard_integer_type instead of int and short.
20626 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
20628         * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
20629         when really creating an initialization statement for it.
20631 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
20633         * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
20635 2021-05-25  Kito Cheng  <kito.cheng@sifive.com>
20637         * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
20639 2021-05-25  Martin Liska  <mliska@suse.cz>
20641         PR tree-optimization/92860
20642         PR target/99592
20643         * optc-save-gen.awk: Remove exceptions.
20645 2021-05-25  Martin Liska  <mliska@suse.cz>
20647         * asan.h (sanitize_coverage_p): New function.
20648         * doc/extend.texi: Document it.
20649         * fold-const.c (fold_range_test): Use sanitize_flags_p
20650         instead of flag_sanitize_coverage.
20651         (fold_truth_andor): Likewise.
20652         * sancov.c: Likewise.
20653         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
20654         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
20655         -fsanitize-coverage when inlining.
20657 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
20659         * config/csky/csky-modes.def : Fix copyright.
20661 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
20663         * config/csky/csky-modes.def : Amend copyright.
20664         * config/csky/csky_insn_fpuv2.md : Likewise.
20665         * config/csky/csky_insn_fpuv3.md : Likewise.
20667 2021-05-25  Richard Biener  <rguenther@suse.de>
20669         PR middle-end/100727
20670         * calls.c (initialize_argument_information): Explicitely test
20671         for WITH_SIZE_EXPR.
20672         * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
20674 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
20676         * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
20677         HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
20678         the signle definition. The signle definition may not work well
20679         at simplify_subreg_regno().
20680         (HARD_FRAME_POINTER_REGNUM): New.
20681         (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
20682         * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
20683         csky_initial_elimination_offset, csky_expand_prologue,
20684         csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
20686 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
20688         * config/csky/csky.c (csky_option_override):
20689         Init csky_arch_isa_features[] in advance, so TARGET_DSP
20690         and TARGET_DIV can be set well.
20692 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
20694         * config/csky/constraints.md ("l", "h"): Delete.
20695         * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
20696         REG_CLASS_CONTENTS):  Delete LO_REGS and HI_REGS.
20697         * config/csky/csky.c (regno_reg_classm,
20698         csky_secondary_reload, csky_register_move_cost):
20699         Use HILO_REGS instead of LO_REGS and HI_REGS.
20701 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
20703         * config/csky/constraints.md ("W"): New constriant for mem operand
20704         with base reg, index register.
20705         ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
20706         "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
20707         constraint.
20708         ("Dv"): New constraint for const double value that can be used at
20709         fmovi instruction.
20710         * config/csky/csky-modes.def (HFmode): New mode.
20711         * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
20712         to "csky_valid_mem_constraint_operand" and support new constraint
20713         "W".
20714         (csky_get_movedouble_length): New.
20715         (fpuv3_output_move): New.
20716         (fpuv3_const_double): New.
20717         * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
20718         (decompose_csky_address): Refine.
20719         (csky_print_operand): New "CONST_DOUBLE" operand.
20720         (csky_output_move): Support fpv3 instructions.
20721         (csky_get_movedouble_length): New.
20722         (fpuv3_output_move): New.
20723         (fpuv3_const_double): New.
20724         (csky_emit_compare): Cover float comparsion.
20725         (csky_emit_compare_float): Refine.
20726         (csky_vaild_fpuv2_mem_operand): Rename to
20727         "csky_valid_mem_constraint_operand" and support new constraint "W".
20728         (ck860_rtx_costs): New.
20729         (csky_rtx_costs): Add the cost calculation of CK860.
20730         (regno_reg_class): New vregs for fpuv3.
20731         (csky_dbx_regno): Likewise.
20732         (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
20733         (csky_conditional_register_usage): Suporrot fpuv3.
20734         (csky_dwarf_register_span): Suporrot fpuv3.
20735         (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
20736         (ck810_legitimate_index_p): Support fp16.
20737         * config/csky/csky.h (TARGET_TLS): ADD CK860.
20738         (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
20739         (TARGET_SINGLE_FPU): Support fpuv3.
20740         (TARGET_SUPPORT_FPV3): New.
20741         (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
20742         (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
20743          REG_CLASS_CONTENTS): Support fpuv3.
20744         * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
20745         (csky_movsf_fpv2): Likewise.
20746         (ck801_movsf): Likewise.
20747         (csky_movsf): Likewise.
20748         (movdf): Likewise.
20749         (csky_movdf_fpv2): Likewise.
20750         (ck801_movdf): Likewise.
20751         (csky_movdf): Likewise.
20752         (movsicc): Refine. Use "comparison_operatior" instead of
20753         "ordered_comparison_operatior".
20754         (addsicc): Likewise.
20755         (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
20756         (call_value_internal_vh): New.
20757         * config/csky/csky_cores.def (CK860): New arch and cpu.
20758         (fpv3_hf): New.
20759         (fpv3_hsf): New.
20760         (fpv3_sdf): New.
20761         (fpv3): New.
20762         * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
20763         into emit-patterns and match-patterns, remain the emit-patterns here,
20764         and move the match-patterns to csky_insn_fpuv2.md or
20765         csky_insn_fpuv3.md.
20766         * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
20767         * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
20768         isntructions.
20769         * config/csky/csky_isa.def (fcr): New.
20770         (fpv3_hi): New.
20771         (fpv3_hf): New.
20772         (fpv3_sf): New.
20773         (fpv3_df): New.
20774         (CK860): New definition for ck860.
20775         * config/csky/csky_tables.opt (ck860): New processors ck860,
20776         ck860f. And new arch ck860.
20777         (fpv3_hf): New.
20778         (fpv3_hsf): New.
20779         (fpv3_hdf): New.
20780         (fpv3): New.
20781         * config/csky/predicates.md (csky_float_comparsion_operator): Delete
20782         "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
20783         * config/csky/t-csky-elf: Support 860.
20784         * config/csky/t-csky-linux: Likewise.
20785         * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
20787 2021-05-24  Aaron Sawdey  <acsawdey@linux.ibm.com>
20789         * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
20790         add generation of logical-add and add-logical fusion pairs.
20791         * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
20792         and powerpc mask.
20793         * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
20794         logical-add and add-logical fusion by default.
20795         * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
20796         -mpower10-fusion-add-logical options.
20797         * config/rs6000/fusion.md: Regenerate file.
20799 2021-05-24  Aldy Hernandez  <aldyh@redhat.com>
20801         * value-range.cc (irange::legacy_equal_p): Check type when
20802         comparing VR_VARYING types.
20803         (range_tests_legacy): Test comparing VARYING ranges of different
20804         sizes.
20806 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
20808         * config/aarch64/aarch64.c (neoversen1_tunings):
20809         Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
20811 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
20813         * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
20814         extern weak symbols.  Limit symbol offsets for non-GOT symbols with
20815         PIC/PIE.
20817 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
20819         * config/arm/neon.md (vec_load_lanesxi<mode>)
20820         (vec_store_lanexoi<mode>): Move ...
20821         * config/arm/vec-common.md: here.
20823 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
20825         * config/arm/neon.md (vec_load_lanesoi<mode>)
20826         (vec_store_lanesoi<mode>): Move ...
20827         * config/arm/vec-common.md: here.
20829 2021-05-24  liuhongt  <hongtao.liu@intel.com>
20831         PR target/100660
20832         * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
20833         stmt with GIMPLE_NOP when lhs doesn't exist.
20835 2021-05-23  Uroš Bizjak  <ubizjak@gmail.com>
20837         PR target/100722
20838         * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
20839         New instruction pattern.
20840         (*push<VI_32:mode>2): Ditto.
20841         (push splitter for SSE registers): New splitter.
20843 2021-05-23  Andrew Pinski  <apinski@marvell.com>
20845         * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
20847 2021-05-22  Aaron Sawdey  <acsawdey@linux.ibm.com>
20849         * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
20850         * config/rs6000/fusion.md: Regenerate file.
20852 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
20854         * config/rs6000/genfusion.pl (gen_addadd): New function.
20855         * config/rs6000/fusion.md: Regenerate file.
20856         * config/rs6000/rs6000-cpus.def: Add
20857         OPTION_MASK_P10_FUSION_2ADD to masks.
20858         * config/rs6000/rs6000.c (rs6000_option_override_internal):
20859         Handle default value of OPTION_MASK_P10_FUSION_2ADD.
20860         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
20862 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
20864         PR middle-end/99928
20865         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
20866         * gimplify.c (enum gimplify_omp_var_data): Fix up
20867         GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
20868         (omp_lastprivate_for_combined_outer_constructs): If combined target
20869         has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
20870         GOVD_MAP | GOVD_SEEN.
20871         (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
20872         firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
20873         (gimplify_adjust_omp_clauses): For firstprivate clauses with
20874         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
20875         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
20876         let it be replaced by implicit map clause.
20878 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
20880         PR middle-end/99928
20881         * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
20882         function.
20883         (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
20884         (gimplify_omp_for): Likewise.
20886 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20888         PR middle-end/90115
20889         * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
20890         'external' in blocks.
20892 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20894         PR middle-end/90115
20895         * flag-types.h (enum openacc_privatization): New.
20896         * params.opt (-param=openacc-privatization): New.
20897         * doc/invoke.texi (openacc-privatization): Document it.
20898         * omp-general.h (get_openacc_privatization_dump_flags): New
20899         function.
20900         * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
20901         * omp-offload.c (execute_oacc_device_lower)
20902         <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
20903         * target.def (goacc.adjust_private_decl): Add 'location_t'
20904         parameter.
20905         * doc/tm.texi: Regenerate.
20906         * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
20907         * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
20908         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
20909         Likewise.  Preserve it for...
20910         (nvptx_goacc_expand_var_decl): ... use here.
20912 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20914         * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
20915         DejaGnu selector.
20917 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20919         PR middle-end/90115
20920         * omp-low.c (oacc_privatization_candidate_p): New function.
20921         (oacc_privatization_scan_clause_chain)
20922         (oacc_privatization_scan_decl_chain): Use it.  Also
20923         'gcc_checking_assert' that we're not seeing duplicates.
20925 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20927         PR middle-end/90115
20928         * omp-offload.c (execute_oacc_device_lower): Skip processing if no
20929         work to be done.
20931 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20933         PR middle-end/90115
20934         * omp-offload.c (execute_oacc_device_lower): Explain.
20936 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20938         PR middle-end/90115
20939         * omp-offload.c (execute_oacc_device_lower)
20940         <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
20941         case, too.
20942         * internal-fn.c (expand_UNIQUE): Don't expect
20943         'IFN_UNIQUE_OACC_PRIVATE'.
20945 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20947         PR middle-end/90115
20948         * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
20950 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20952         PR middle-end/90115
20953         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
20954         (nvptx_goacc_expand_var_decl): Tighten.
20956 2021-05-21  Julian Brown  <julian@codesourcery.com>
20957             Chung-Lin Tang  <cltang@codesourcery.com>
20958             Thomas Schwinge  <thomas@codesourcery.com>
20960         PR middle-end/90115
20961         * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
20962         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
20963         * doc/tm.texi: Regenerate.
20964         * expr.c (expand_expr_real_1): Expand decls using the
20965         expand_var_decl OpenACC hook if defined.
20966         * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
20967         * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
20968         * omp-low.c (omp_context): Add oacc_privatization_candidates
20969         field.
20970         (lower_oacc_reductions): Add PRIVATE_MARKER parameter.  Insert
20971         before fork.
20972         (lower_oacc_head_tail): Add PRIVATE_MARKER parameter.  Modify
20973         private marker's gimple call arguments, and pass it to
20974         lower_oacc_reductions.
20975         (oacc_privatization_scan_clause_chain)
20976         (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
20977         New functions.
20978         (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
20979         * omp-offload.c (convert.h): Include.
20980         (oacc_loop_xform_head_tail): Treat private-variable markers like
20981         fork/join when transforming head/tail sequences.
20982         (struct var_decl_rewrite_info): Add struct.
20983         (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
20984         (execute_oacc_device_lower): Support rewriting gang-private
20985         variables using target hook, and fix up addr_expr and var_decl
20986         nodes afterwards.
20987         * target.def (adjust_private_decl, expand_var_decl): New hooks.
20988         * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
20989         Rename to...
20990         (gcn_goacc_adjust_private_decl): ...this.
20991         * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
20992         Rename to...
20993         (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
20994         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
20995         definition using gcn_goacc_adjust_gangprivate_decl...
20996         (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
20997         gcn_goacc_adjust_private_decl.
20998         * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
20999         (gang_private_shared_size): New global variable.
21000         (gang_private_shared_align): Likewise.
21001         (gang_private_shared_sym): Likewise.
21002         (gang_private_shared_hmap): Likewise.
21003         (nvptx_option_override): Initialize these.
21004         (nvptx_file_end): Output gang_private_shared_sym.
21005         (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
21006         New functions.
21007         (nvptx_set_current_function): Clear gang_private_shared_hmap.
21008         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
21009         (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
21011 2021-05-21  H.J. Lu  <hjl.tools@gmail.com>
21013         * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
21015 2021-05-21  Richard Biener  <rguenther@suse.de>
21016             H.J. Lu  <hjl.tools@gmail.com>
21018         PR middle-end/90773
21019         * expr.c (expand_constructor): Elide expand_constructor if
21020         move by pieces is preferred.
21022 2021-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21024         * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
21025         Take a flag and mode value as arguments.
21026         (aarch64_modifies_global_state_p): Likewise.
21027         (aarch64_reads_global_state_p): Likewise.
21028         (aarch64_could_trap_p): Likewise.
21029         (aarch64_get_attributes): Likewise.
21030         (aarch64_init_simd_builtins): Adjust callsite of above.
21031         (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
21032         function attributes to apply to builtins.
21033         (aarch64_init_crc32_builtins): Likewise.
21034         (aarch64_init_builtin_rsqrt): Likewise.
21036 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
21038         * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
21039         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
21040         (gen_2logical): Use new fusion types.
21041         * config/rs6000/fusion.md: Regenerate.
21043 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
21045         PR target/100637
21046         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
21047         Handle V4QI and V2HI modes.
21048         (ix86_expand_sse_movcc): Ditto.
21049         * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
21050         New instruction pattern.
21051         (*eq<VI_32:mode>3): Ditto.
21052         (*gt<VI_32:mode>3): Ditto.
21053         (*xop_pcmov_<VI_32:mode>): Ditto.
21054         (mmx_pblendvb32): Ditto.
21055         (mmx_pblendvb64): Rename from mmx_pblendvb.
21056         (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
21057         (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
21058         (vcond<VI_32:mode><VI_32:mode>): Ditto.
21059         (vcondu<VI_32:mode><VI_32:mode>): Ditto.
21060         (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
21062 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
21064         PR tree-optimization/94589
21065         * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
21066         rhs2, treat x <= 4 equivalently to x < 5 etc.  In cmp1 and cmp2 (if
21067         not the same as cmp3) treat <= the same as < and >= the same as >.
21068         Don't require that cond2_phi_edge is true edge, instead take
21069         false/true edges into account based on cmp1/cmp2 comparison kinds.
21071 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
21073         PR target/100637
21074         * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
21075         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
21076         from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
21077         using SMAXMIN_MMXMODEI mode iterator.
21078         (*<smaxmin:code>v4qi3): New insn pattern.
21079         (*<smaxmin:code>v2hi3): Ditto.
21080         (SMAXMIN_VI_32): New mode iterator.
21081         (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
21082         (UMAXMIN_MMXMODEI): New mode iterator.
21083         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
21084         from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
21085         using UMAXMIN_MMXMODEI mode iterator.
21086         (*<umaxmin:code>v4qi3): New insn pattern.
21087         (*<umaxmin:code>v2hi3): Ditto.
21088         (UMAXMIN_VI_32): New mode iterator.
21089         (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
21090         (abs<VI_32:mode>2): New insn pattern.
21091         (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
21092         * config/i386/sse.md: ... here.
21094 2021-05-20  Clement Chigot  <clement.chigot@atos.net>
21095             David Edelsohn  <dje.gcc@gmail.com>
21097         * collect2.c (scan_prog_file): Issue non-fatal warning for
21098         non-COFF files.
21100 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
21102         * doc/invoke.texi (-Wno-c++11-extensions)
21103         (-Wno-c++14-extensions, -Wno-c++17-extensions)
21104         (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
21105         new options.
21107 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
21109         * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
21110         * config/darwin.c (darwin_override_options): Likewise.
21111         * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
21112         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
21113         (DWARF2_FRAME_REG_OUT): Likewise.
21114         * config/mips/mips.c (mips_output_filename): Likewise.
21115         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
21116         Likewise.
21117         (rs6000_dbx_register_number): Likewise.
21118         * dbxout.c: Include flags.h.
21119         * dwarf2cfi.c (cfi_label_required_p): Likewise.
21120         (dwarf2out_do_frame): Likewise.
21121         * except.c: Include flags.h.
21122         * final.c (dwarf2_debug_info_emitted_p): Likewise.
21123         (final_scan_insn_1): Likewise.
21124         * flags.h (dwarf_debuginfo_p): New function declaration.
21125         * opts.c (dwarf_debuginfo_p): New function definition.
21126         * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
21127         * toplev.c (process_options): Likewise.
21129 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
21131         * common.opt: Change type to support bitmasks.
21132         * flag-types.h (enum debug_info_type): Rename enumerator constants.
21133         (NO_DEBUG): New bitmask.
21134         (DBX_DEBUG): Likewise.
21135         (DWARF2_DEBUG): Likewise.
21136         (XCOFF_DEBUG): Likewise.
21137         (VMS_DEBUG): Likewise.
21138         (VMS_AND_DWARF2_DEBUG): Likewise.
21139         * flags.h (debug_set_to_format): New function declaration.
21140         (debug_set_count): Likewise.
21141         (debug_set_names): Likewise.
21142         * opts.c (debug_type_masks): Array of bitmasks for debug formats.
21143         (debug_set_to_format): New function definition.
21144         (debug_set_count): Likewise.
21145         (debug_set_names): Likewise.
21146         (set_debug_level): Update access to debug_type_names.
21147         * toplev.c: Likewise.
21149 2021-05-20  Martin Sebor  <msebor@redhat.com>
21151         PR middle-end/100684
21152         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
21154 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
21156         PR target/100701
21157         * config/i386/i386.md (isa): Remove x64_bmi.
21158         (enabled): Remove x64_bmi.
21159         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
21160         Remove general register alternative.
21161         (*andnot<VI_32:mode>3): Ditto.
21162         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
21163         (*<any_logic:code><VI_32:mode>3): Ditto.
21165 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
21167         * config/arm/arm.c: Include head files tree-vectorizer.h and
21168         cfgloop.h.
21170 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
21172         PR target/100637
21173         * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
21174         (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
21175         (<s>mulv4hi3_highpart): New expander.
21176         (*<s>mulv2hi3_highpart): New insn pattern.
21177         (<s>mulv2hi3_higpart): New expander.
21178         (*<any_shift:insn>v2hi3): New insn pattern.
21179         (<any_shift:insn>v2hi3): New expander.
21180         * config/i386/sse.md (smulhrsv2hi3): New expander.
21181         (*smulhrsv2hi3): New insn pattern.
21183 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
21185         * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
21186         parameter.
21187         * params.opt (vect-inner-loop-cost-factor): New.
21188         * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
21189         50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
21190         tree-vectorizer.h and its required ones.
21191         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
21192         hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
21193         * config/arm/arm.c (arm_add_stmt_cost): Likewise.
21194         * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
21195         * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
21196         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
21197         Likewise.
21198         (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
21199         * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
21200         (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
21202 2021-05-20  Christophe Lyon  <christophe.lyon@linaro.org>
21203             Torbjörn Svensson  <torbjorn.svensson@st.com>
21205         PR c/42579
21206         * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
21208 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
21210         PR middle-end/99928
21211         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
21212         explicit linear clause when combined with target, make it map(tofrom:)
21213         instead of no clause or firstprivate.
21215 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
21217         PR tree-optimization/94589
21218         * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
21219         of integral conversions.
21221 2021-05-19  Andrew MacLeod  <amacleod@redhat.com>
21223         * gimple-range.cc (fur_source::get_operand): New.
21224         (gimple_range_fold): Delete.
21225         (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
21226         (fold_using_range::range_of_range_op): Move from gimple_ranger.
21227         (fold_using_range::range_of_address): Ditto.
21228         (fold_using_range::range_of_phi): Ditto.
21229         (fold_using_range::range_of_call): Ditto.
21230         (fold_using_range::range_of_builtin_ubsan_call): Move from
21231         range_of_builtin_ubsan_call.
21232         (fold_using_range::range_of_builtin_call): Move from
21233         range_of_builtin_call.
21234         (gimple_ranger::range_of_builtin_call): Delete.
21235         (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
21236         (gimple_ranger::fold_range_internal): New.
21237         (gimple_ranger::range_of_stmt): Use new fold_using_range API.
21238         (fold_using_range::range_of_ssa_name_with_loop_info): Move from
21239         gimple_ranger.  Improve ranges of SSA_NAMES when possible.
21240         * gimple-range.h (gimple_ranger): Remove various range_of routines.
21241         (class fur_source): New.
21242         (class fold_using_range): New.
21243         (fur_source::fur_source): New.
21244         (fold_range): New.
21245         * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
21246         instead of range_of_builtin_call.
21248 2021-05-19  Jonathan Wakely  <jwakely@redhat.com>
21250         * doc/cpp.texi (Common Predefined Macros): Update documentation
21251         for the __GXX_EXPERIMENTAL_CXX0X__ macro.
21253 2021-05-19  Alex Coplan  <alex.coplan@arm.com>
21255         PR target/100333
21256         * config/arm/arm.md (nonsecure_call_internal): Always ensure
21257         callee's address is in a register.
21259 2021-05-19  Geng Qi  <gengqi@linux.alibaba.com>
21261         * common/config/riscv/riscv-common.c
21262         (riscv_subset_list::parsing_subset_version): Properly parse the letter
21263         'p' in '-march'.
21264         (riscv_subset_list::parse_std_ext,
21265          riscv_subset_list::parse_multiletter_ext): To handle errors generated
21266         in riscv_subset_list::parsing_subset_version.
21268 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
21270         * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
21271         type attribute in patterns generating XTN(2).
21273 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
21275         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
21276         Remove as duplicate of...
21277         (aarch64_xtn<mode>): This.
21278         (aarch64_xtn2<mode>_le): Move position in file.
21279         (aarch64_xtn2<mode>_be): Move position in file.
21280         (aarch64_xtn2<mode>): Move position in file.
21281         (vec_pack_trunc_<mode>): Define as an expander.
21283 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
21285         * config/aarch64/aarch64-simd-builtins.def: Split builtin
21286         generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
21287         separate scalar and vector generators.
21288         * config/aarch64/aarch64-simd.md
21289         (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
21290         split into...
21291         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
21292         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
21293         * config/aarch64/iterators.md: Define SD_HSDI iterator.
21295 2021-05-19  Jonathn Wright  <jonathan.wright@arm.com>
21297         * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
21298         of UNSPEC_SQXTUN2.
21299         * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
21301 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
21303         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
21304         Implement as an expand emitting a big/little endian
21305         instruction pattern.
21306         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
21307         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
21309 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
21311         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
21312         Implement as an expand emitting a big/little endian
21313         instruction pattern.
21314         (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
21315         (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
21316         * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
21317         UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
21319 2021-05-19  Richard Biener  <rguenther@suse.de>
21321         PR middle-end/100672
21322         * fold-const.c (fold_negate_expr_1): Use element_precision.
21323         (negate_expr_p): Likewise.
21325 2021-05-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
21327         * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
21328         (pred_load): New int attribute.
21329         * config/aarch64/aarch64-sve.md
21330         (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
21331         SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
21332         * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
21333         code_for_aarch64_load.
21335 2021-05-19  Richard Biener  <rguenther@suse.de>
21337         * cfgexpand.c (discover_nonconstant_array_refs_r): Make
21338         sure TARGET_MEM_REF bases are expanded as memory.
21339         * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
21340         Do not mark TARGET_MEM_REF bases addressable.
21341         * tree-ssa.c (non_rewritable_mem_ref_base): Handle
21342         TARGET_MEM_REF bases as never rewritable.
21343         * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
21344         walk TARGET_MEM_REF bases as address-takens.
21345         * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
21347 2021-05-19  Richard Biener  <rguenther@suse.de>
21349         * builtins.c (get_object_alignment_1): Strip outer
21350         WITH_SIZE_EXPR.
21351         * tree-dfa.c (get_ref_base_and_extent): Handle outer
21352         WITH_SIZE_EXPR for size processing and process the
21353         containing ref.
21354         * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
21355         outer WITH_SIZE_EXPR.
21356         (ao_ref_base_alias_ptr_type): Likewise.
21357         (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
21358         and handle that accordingly, stripping it for the
21359         core alias workers.
21360         * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
21361         looking through it instead of returning NULL.
21363 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
21365         PR middle-end/100576
21366         * builtins.c (check_read_access): Convert bound to size_type_node if
21367         non-NULL.
21369 2021-05-19  Richard Biener  <rguenther@suse.de>
21371         * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
21372         (verify_types_in_gimple_reference): ... here.  Sanitize.
21373         (verify_gimple_call): Verify references in LHS and arguments.
21374         (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
21376 2021-05-19  Uroš Bizjak  <ubizjak@gmail.com>
21378         * config/i386/i386.h (VALID_INT_MODE_P):
21379         Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
21380         * config/i386/i386.md (isa): Add x64_bmi.
21381         (enabled): Handle x64_bmi.
21382         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
21383         Add alternative using 64bit general registers.
21384         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
21386 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
21388         PR middle-end/99928
21389         * tree.h (OMP_MASTER_COMBINED): Define.
21390         * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
21391         handling for outer combined/composite constructs to a loop.
21392         Handle lastprivate on combined target.
21393         (gimplify_expr): Formatting fix.
21395 2021-05-19  Xionghu Luo  <luoxhu@linux.ibm.com>
21397         * passes.def: Add sink_code pass before store_merging.
21398         * tree-ssa-sink.c (pass_sink_code:clone): New.
21400 2021-05-18  Bill Schmidt  <wschmidt@linux.ibm.com>
21402         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
21403         rs6000_special_adjust_field_align_p.
21404         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
21405         * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
21406         Remove ABI warning.
21407         (rs6000_function_arg): Likewise.
21408         * config/rs6000/rs6000-protos.h
21409         (rs6000_special_adjust_field_align_p): Remove prototype.
21410         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
21411         Remove.
21412         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
21413         rs6000_special_adjust_field_align_p.
21415 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
21417         PR target/100637
21418         * config/i386/i386.h (VALID_SSE2_REG_MODE):
21419         Add V4QI and V2HI modes.
21420         (VALID_INT_MODE_P): Ditto.
21421         * config/i386/mmx.md (VI_32): New mode iterator.
21422         (mmxvecsize): Handle V4QI and V2HI.
21423         (Yv_Yw): Ditto.
21424         (mov<VI_32:mode>): New expander.
21425         (*mov<mode>_internal): New insn pattern.
21426         (movmisalign<VI_32:mode>): New expander.
21427         (neg<VI_32:mode>): New expander.
21428         (<plusminus:insn><VI_32:mode>3): New expander.
21429         (*<plusminus:insn><VI_32:mode>3): New insn pattern.
21430         (mulv2hi3): New expander.
21431         (*mulv2hi3): New insn pattern.
21432         (one_cmpl<VI_32:mode>2): New expander.
21433         (*andnot<VI_32:mode>3): New insn pattern.
21434         (<any_logic:code><VI_32:mode>3): New expander.
21435         (*<any_logic:code><VI_32:mode>3): New insn pattern.
21437 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
21439         * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
21440         Fix a mode mismatch with operand 1.
21442 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
21444         PR target/100626
21445         * config/i386/i386-expand.c (split_double_mode): Return
21446         temporary register when simplify_gen_subreg fails with
21447         the high half od the paradoxical subreg.
21449 2021-05-18  Richard Biener  <rguenther@suse.de>
21451         * cfgexpand.c (expand_one_var): Pass in forced_stack_var
21452         and honor it when expanding.
21453         (expand_used_vars_for_block): Pass through forced_stack_var.
21454         (expand_used_vars): Likewise.
21455         (discover_nonconstant_array_refs_r): Set bits in
21456         forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
21457         (avoid_type_punning_on_regs): Likewise.
21458         (discover_nonconstant_array_refs): Likewise.
21459         (pass_expand::execute): Create and pass down forced_stack_var
21460         bitmap.  For parameters and returns temporarily set
21461         TREE_ADDRESSABLE when expand_function_start.
21463 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
21465         * doc/sourcebuild.texi: Document 'dg-note'.
21467 2021-05-18  Tobias Burnus  <tobias@codesourcery.com>
21469         PR other/100598
21470         * configure: Regenerate.
21471         * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
21473 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
21475         * gimple.h (is_gimple_omp_oacc): Tighten.
21476         * omp-low.c (check_omp_nesting_restrictions): Adjust.
21478 2021-05-18  Richard Biener  <rguenther@suse.de>
21480         * tree-ssa-operands.c (mark_address_taken): Simplify.
21482 2021-05-18  Martin Liska  <mliska@suse.cz>
21484         * config/gcn/mkoffload.c (STR): Redefine.
21485         * config/i386/intelmic-mkoffload.c (STR): Likewise.
21486         * config/nvptx/mkoffload.c (STR): Likewise.
21488 2021-05-18  Martin Liska  <mliska@suse.cz>
21490         * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
21491         Use startswith function instead of strncmp.
21492         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
21493         * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
21494         * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
21495         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
21496         * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
21497         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
21498         * config/arm/arm.c (arm_file_start): Likewise.
21499         (arm_valid_target_attribute_rec): Likewise.
21500         (thumb1_md_asm_adjust): Likewise.
21501         * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
21502         * config/avr/avr.c (STR_PREFIX_P): Likewise.
21503         (avr_set_current_function): Likewise.
21504         (avr_handle_addr_attribute): Likewise.
21505         (avr_asm_output_aligned_decl_common): Likewise.
21506         (avr_asm_named_section): Likewise.
21507         (avr_section_type_flags): Likewise.
21508         (avr_asm_select_section): Likewise.
21509         * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
21510         (c6x_section_type_flags): Likewise.
21511         * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
21512         (darwin_objc_declare_unresolved_class_reference): Likewise.
21513         (darwin_objc_declare_class_definition): Likewise.
21514         * config/darwin.c (indirect_data): Likewise.
21515         (darwin_encode_section_info): Likewise.
21516         (darwin_objc2_section): Likewise.
21517         (darwin_objc1_section): Likewise.
21518         (machopic_select_section): Likewise.
21519         (darwin_globalize_label): Likewise.
21520         (darwin_label_is_anonymous_local_objc_name): Likewise.
21521         (darwin_asm_named_section): Likewise.
21522         (darwin_asm_output_dwarf_offset): Likewise.
21523         * config/frv/frv.c (frv_string_begins_with): Likewise.
21524         (frv_in_small_data_p): Likewise.
21525         * config/gcn/mkoffload.c (STR): Likewise.
21526         (main): Likewise.
21527         * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
21528         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
21529         * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
21530         (ix86_md_asm_adjust): Likewise.
21531         * config/i386/intelmic-mkoffload.c (STR): Likewise.
21532         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
21533         (i386_pe_file_end): Likewise.
21534         * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
21535         (ia64_section_type_flags): Likewise.
21536         * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
21537         * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
21538         (mips16_stub_function_p): Likewise.
21539         (mips_function_rodata_section): Likewise.
21540         * config/msp430/msp430.c (msp430_mcu_name): Likewise.
21541         (msp430_function_section): Likewise.
21542         (msp430_section_type_flags): Likewise.
21543         (msp430_expand_helper): Likewise.
21544         * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
21545         (nios2_valid_target_attribute_rec): Likewise.
21546         * config/nvptx/mkoffload.c (process): Likewise.
21547         (STR): Likewise.
21548         * config/pa/som.h: Likewise.
21549         * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
21550         * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
21551         * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
21552         (rs6000_inner_target_options): Likewise.
21553         * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
21554         * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
21555         * config/vax/vax.c (vax_output_int_move): Likewise.
21556         * config/vms/vms-ld.c (startswith): Likewise.
21557         (process_args): Likewise.
21558         (main): Likewise.
21559         * config/vms/vms.c: Likewise.
21561 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
21563         PR rtl-optimization/100590
21564         * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
21565         they are NONJUMP_INSN_P.
21567 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
21569         PR c++/100580
21570         * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
21571         DECL_ASSEMBLER_NAME on the fn_decl.
21573 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
21575         PR tree-optimization/94589
21576         * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
21577         phi result used in (res & ~1) == 0 comparison as res >= 0 as
21578         res == 2 would be UB with -ffinite-math-only.
21580 2021-05-18  Martin Liska  <mliska@suse.cz>
21582         * Makefile.in: genversion.o should depend on DATESTAMP.
21584 2021-05-18  Claudiu Zissulescu  <claziss@synopsys.com>
21586         * config/arc/simdext.md (negv2si2): Remove round bracket.
21588 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
21590         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
21591         _Bool as macro expanding to _Bool.
21593 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
21595         PR c++/100281
21596         * tree.c (build_reference_type_for_mode)
21597         (build_pointer_type_for_mode): Pick pointer mode if MODE argument
21598         is VOIDmode.
21599         (build_reference_type, build_pointer_type): Invoke
21600         build_*_type_for_mode with VOIDmode.
21602 2021-05-17  Andrew MacLeod  <amacleod@redhat.com>
21604         PR tree-optimization/100512
21605         * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
21606         and non-zero pointer ranges as invariant.
21607         * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
21608         processing from here.
21610 2021-05-17  Tom de Vries  <tdevries@suse.de>
21612         PR target/100497
21613         * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
21614         * config/nvptx/nvptx.c (nvptx_output_barrier)
21615         (nvptx_output_atomic_insn): New function.
21616         (nvptx_print_operand): Add support for 'B'.
21617         * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
21618         insns.
21620 2021-05-17  Aldy Hernandez  <aldyh@redhat.com>
21622         PR tree-optimization/100349
21623         * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
21624           NULL.
21626 2021-05-17  Tamar Christina  <tamar.christina@arm.com>
21628         * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
21629         (host_detect_local_cpu): Use it.
21631 2021-05-17  Martin Liska  <mliska@suse.cz>
21633         * doc/invoke.texi: Add 2 missing dots.
21635 2021-05-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
21637         PR bootstrap/100552
21638         * configure.ac: Replace pattern substitution with call to sed.
21639         * configure: Regenerate.
21641 2021-05-17  Richard Biener  <rguenther@suse.de>
21643         PR middle-end/100582
21644         * tree.c (array_at_struct_end_p): Get to the base of the
21645         reference before looking for the underlying decl.
21647 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
21649         * genoutput.c (validate_insn_alternatives) Make "wrong number of
21650         alternatives" message more specific, and remove assumption on where
21651         the problem is.
21653 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
21655         * config/arm/iterators.md (V16): New iterator.
21656         (VH_cvtto): New iterator.
21657         (v_cmp_result): Added V4HF and V8HF support.
21658         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
21659         (vcond<mode><mode>): Likewise.
21660         (vcond_mask_<mode><v_cmp_result>): Likewise.
21661         (vcond<VH_cvtto><mode>): New expander.
21663 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
21665         * config/arm/arm-protos.h (arm_expand_vector_compare): Update
21666         prototype.
21667         * config/arm/arm.c (arm_expand_vector_compare): Add support for
21668         MVE.
21669         (arm_expand_vcond): Likewise.
21670         * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
21671         VCMPEQQ_N_S, VCMPNEQ_N_S.
21672         (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
21673         * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
21674         (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
21675         (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
21676         (@mve_vpselq_<supf><mode>): Likewise.
21677         (@mve_vpselq_f<mode>"): Likewise.
21678         * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
21679         and move to vec-common.md.
21680         (vec_cmpu<mode><mode>): Likewise.
21681         (vcond<mode><mode>): Likewise.
21682         (vcond<V_cvtto><mode>): Likewise.
21683         (vcondu<mode><v_cmp_result>): Likewise.
21684         (vcond_mask_<mode><v_cmp_result>): Likewise.
21685         * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
21686         (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
21687         (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
21688         (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
21689         (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
21690         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
21691         from neon.md.
21692         (vec_cmpu<mode><mode>): Likewise.
21693         (vcond<mode><mode>): Likewise.
21694         (vcond<V_cvtto><mode>): Likewise.
21695         (vcondu<mode><v_cmp_result>): Likewise.
21696         (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
21697         condition.
21699 2021-05-17  liuhongt  <hongtao.liu@intel.com>
21701         PR target/100549
21702         * config/i386/i386.c (ix86_gimple_fold_builtin): Use
21703         gsi_insert_seq_before instead.
21705 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
21707         * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
21708         (arm_sat_ok): ...this.
21710 2021-05-17  Martin Liska  <mliska@suse.cz>
21712         * lto-wrapper.c (merge_flto_options): Factor out a new function.
21713         (merge_and_complain): Use it.
21714         (run_gcc): Merge also linker command line -flto=foo argument
21715         with IL files.
21717 2021-05-16  Christophe Lyon  <christophe.lyon@linaro.org>
21719         * config/arm/arm.h (CPP_SPEC): Remove error message about
21720         -mlittle-endian/-mbig-endian conflict.
21722 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
21724         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
21725         __ROP_PROTECT__ if -mrop-protect is selected.
21727 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
21729         * config/rs6000/rs6000-internal.h (rs6000_stack): Add
21730         rop_hash_save_offset and rop_hash_size.
21731         * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
21732         rop_hash_size and rop_hash_save_offset.
21733         (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
21734         (rs6000_emit_prologue): Emit hashst[p] in prologue.
21735         (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
21736         * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
21737         UNSPEC_HASHCHK.
21738         (hashst): New define_insn.
21739         (hashchk): Likewise.
21741 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
21743         * config/rs6000/rs6000.c (rs6000_option_override_internal):
21744         Disable shrink wrap when inserting ROP-protect instructions.
21745         * config/rs6000/rs6000.opt (mrop-protect): New option.
21746         (mprivileged): Likewise.
21747         * doc/invoke.texi: Document mrop-protect and mprivileged.
21749 2021-05-15  Hans-Peter Nilsson  <hp@axis.com>
21751         * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
21752         "Remove CC0".
21754 2021-05-15  Martin Jambor  <mjambor@suse.cz>
21756         Revert:
21757         2021-05-13  Martin Jambor  <mjambor@suse.cz>
21759         PR tree-optimization/100453
21760         * tree-sra.c (sra_modify_assign): All const base accesses do not
21761         need refreshing, not just those from decl_pool.
21762         (sra_modify_assign): Do not refresh into a const base decl.
21764 2021-05-15  Jakub Jelinek  <jakub@redhat.com>
21766         PR rtl-optimization/100342
21767         * regcprop.c (copy_value): When copying a source reg in a wider
21768         mode than it has recorded for the value, adjust recorded destination
21769         mode too or punt if !REG_CAN_CHANGE_MODE_P.
21771 2021-05-14  Jason Merrill  <jason@redhat.com>
21773         * intl.h: Add comments.
21775 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21777         * config/aarch64/aarch64-simd.md
21778         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
21779         (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
21780         (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
21781         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
21782         (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
21783         (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
21784         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
21785         (aarch64_sqdmlsl2_n<mode>_internal): ... This...
21786         (aarch64_sqdmlal2_n<mode>_internal): ... And this.
21788 2021-05-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21790         PR target/66791
21791         * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
21792         boolean logic equivalent.
21793         (vtst_s16): Likewise.
21794         (vtst_s32): Likewise.
21795         (vtst_u8): Likewise.
21796         (vtst_u16): Likewise.
21797         (vtst_u32): Likewise.
21798         (vtst_p8): Likewise.
21799         (vtst_p16): Likewise.
21800         (vtstq_s8): Likewise.
21801         (vtstq_s16): Likewise.
21802         (vtstq_s32): Likewise.
21803         (vtstq_u8): Likewise.
21804         (vtstq_u16): Likewise.
21805         (vtstq_u32): Likewise.
21806         (vtstq_p8): Likewise.
21807         (vtstq_p16): Likewise.
21808         * config/arm/arm_neon_builtins.def: Remove entry for vtst.
21809         * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
21811 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21813         * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
21814         (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
21815         (aarch64_sqdmlsl2<mode>): Delete.
21816         (aarch64_sqdmlal2_lane<mode>): Merge this...
21817         (aarch64_sqdmlsl2_lane<mode>): ... And this...
21818         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
21819         (aarch64_sqdmlal2_laneq<mode>): Merge this...
21820         (aarch64_sqdmlsl2_laneq<mode>): ... And this...
21821         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
21822         (aarch64_sqdmlal2_n<mode>): Merge this...
21823         (aarch64_sqdmlsl2_n<mode>): ... And this...
21824         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
21826 2021-05-13  Martin Sebor  <msebor@redhat.com>
21828         PR middle-end/100574
21829         * builtins.c (access_ref::get_ref): Improve detection of PHIs with
21830         all null arguments.
21832 2021-05-13  Martin Sebor  <msebor@redhat.com>
21834         PR tree-optimization/93100
21835         PR middle-end/98583
21836         * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
21837         don't modify referenced objects.
21839 2021-05-13  Martin Jambor  <mjambor@suse.cz>
21841         PR tree-optimization/100453
21842         * tree-sra.c (sra_modify_assign): All const base accesses do not
21843         need refreshing, not just those from decl_pool.
21844         (sra_modify_assign): Do not refresh into a const base decl.
21846 2021-05-13  Martin Liska  <mliska@suse.cz>
21848         * tree-ssa-dom.c: Remove m_simplifier.
21850 2021-05-13  Richard Earnshaw  <rearnsha@arm.com>
21852         PR target/100563
21853         * config/arm/arm.c (arm_canonicalize_comparison): Correctly
21854         canonicalize DImode inequality comparisons against the
21855         maximum integral value.
21857 2021-05-13  Jakub Jelinek  <jakub@redhat.com>
21859         PR tree-optimization/98856
21860         * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
21861         Expect V2DI and V4DI arithmetic right shifts to be emulated.
21862         (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
21863         caller.
21864         * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
21865         expand_vec_perm_2perm_pblendv): New functions.
21866         (ix86_expand_vec_perm_const_1): Use them.
21867         * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
21868         (<mask_codefor>ashr<mode>3<mask_name>): ... this.
21869         (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
21870         (ashrv4di3): New define_expand.
21871         (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
21872         and !TARGET_AVX512VL expansion.
21874 2021-05-13  Uroš Bizjak  <ubizjak@gmail.com>
21876         PR target/100581
21877         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
21878         sizes < 16 to a register when constructing vpcmov pattern.
21879         * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
21881 2021-05-13  Martin Liska  <mliska@suse.cz>
21883         * gcov-io.c (gcov_write_block): Remove.
21884         (gcov_write_words): Likewise.
21885         (gcov_read_words): Re-implement using gcov_read_bytes.
21886         (gcov_allocate): Remove.
21887         (GCOV_BLOCK_SIZE): Likewise.
21888         (struct gcov_var): Remove most of the fields.
21889         (gcov_position): Implement with ftell.
21890         (gcov_rewrite): Remove setting of start and offset fields.
21891         (from_file): Re-format.
21892         (gcov_open): Remove setbuf call. It should not be needed.
21893         (gcov_close): Remove internal buffer handling.
21894         (gcov_magic): Use __builtin_bswap32.
21895         (gcov_write_counter): Use directly gcov_write_unsigned.
21896         (gcov_write_string): Use direct fwrite and do not round
21897         to 4 bytes.
21898         (gcov_seek): Use directly fseek.
21899         (gcov_write_tag): Use gcov_write_unsigned directly.
21900         (gcov_write_length): Likewise.
21901         (gcov_write_tag_length): Likewise.
21902         (gcov_read_bytes): Use directly fread.
21903         (gcov_read_unsigned): Use gcov_read_words.
21904         (gcov_read_counter): Likewise.
21905         (gcov_read_string): Use gcov_read_bytes.
21906         * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
21907         that size is not in bytes, but words (4B).
21908         (GCOV_TAG_FUNCTION_LENGTH): Likewise.
21909         (GCOV_TAG_ARCS_LENGTH): Likewise.
21910         (GCOV_TAG_ARCS_NUM): Likewise.
21911         (GCOV_TAG_COUNTER_LENGTH): Likewise.
21912         (GCOV_TAG_COUNTER_NUM): Likewise.
21913         (GCOV_TAG_SUMMARY_LENGTH): Likewise.
21915 2021-05-13  liuhongt  <hongtao.liu@intel.com>
21917         PR target/94680
21918         * config/i386/sse.md (ssedoublevecmode): Add attribute for
21919         V64QI/V32HI/V16SI/V4DI.
21920         (ssehalfvecmode): Add attribute for V2DI/V2DF.
21921         (*vec_concatv4si_0): Extend to VI124_128.
21922         (*vec_concat<mode>_0): New pre-reload splitter.
21923         * config/i386/predicates.md (movq_parallel): New predicate.
21925 2021-05-13  Alexandre Oliva  <oliva@adacore.com>
21927         * targhooks.c (default_zero_call_used_regs): Retry using
21928         successfully-zeroed registers as sources.
21930 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
21932         * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
21934 2021-05-12  Aldy Hernandez  <aldyh@redhat.com>
21936         PR c/100521
21937         * gimple-range.cc (range_of_builtin_call): Skip out on
21938           processing __builtin_clz when varying.
21940 2021-05-12  Tom de Vries  <tdevries@suse.de>
21942         PR target/96005
21943         * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
21944         * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
21945         to ptx_version_option.
21946         * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
21947         * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
21948         (define_insn "nvptx_vote_ballot"): Use sync variant for
21949         TARGET_PTX_6_3.
21950         * config/nvptx/nvptx.opt (ptx_version): Add enum.
21951         (mptx): Add option.
21952         * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
21954 2021-05-12  Richard Biener  <rguenther@suse.de>
21956         PR tree-optimization/100566
21957         * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
21958         allow_back for all edge queries.
21960 2021-05-12  liuhongt  <hongtao.liu@intel.com>
21962         PR target/99908
21963         * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
21964         splitters for pblendvb of NOT mask register.
21966 2021-05-12  Richard Biener  <rguenther@suse.de>
21968         PR tree-optimization/100519
21969         * tree-ssa-reassoc.c (can_associate_p): Split into...
21970         (can_associate_op_p): ... this
21971         (can_associate_type_p): ... and this.
21972         (is_reassociable_op): Call can_associate_op_p.
21973         (break_up_subtract_bb): Call the appropriate predicates.
21974         (reassociate_bb): Likewise.
21976 2021-05-12  Martin Liska  <mliska@suse.cz>
21978         * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
21979         (run_gcc): Use -flto argument detection for merged
21980         fdecoded_options.
21982 2021-05-12  Martin Liska  <mliska@suse.cz>
21984         * lto-wrapper.c (print_lto_docs_link): New function.
21985         (run_gcc): Print warning about missing job server detection
21986         after we know NR of partitions. Do the same for -flto{,=1}.
21987         * opts.c (get_option_html_page): Support -flto option.
21989 2021-05-12  Martin Liska  <mliska@suse.cz>
21991         * lto-wrapper.c (get_options_from_collect_gcc_options): Change
21992         return type.
21993         (append_option): Remove.
21994         (find_option): Rework to use the vector type.
21995         (remove_option): Remove.
21996         (merge_and_complain): Use vectors for cl_decoded_option data
21997         type arguments.
21998         (append_compiler_options): Likewise.
21999         (append_diag_options): Likewise.
22000         (append_linker_options): Likewise.
22001         (append_offload_options): Likewise.
22002         (compile_offload_image): Likewise.
22003         (compile_images_for_offload_targets): Likewise.
22004         (find_and_merge_options): Likewise.
22005         (run_gcc): Likewise.
22007 2021-05-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22009         PR debug/100515
22010         * dwarf2out.c (dwarf2out_finish): Set
22011         have_multiple_function_sections with multi-range text_section.
22013 2021-05-12  Martin Liska  <mliska@suse.cz>
22015         PR bootstrap/100560
22016         * Makefile.in: Remove version.h from linker command line.
22018 2021-05-12  Richard Biener  <rguenther@suse.de>
22020         PR middle-end/100547
22021         * rtl.h (rtvec_alloc): Make argument size_t.
22022         * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
22024 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
22026         PR middle-end/100508
22027         * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
22028         type, don't reuse DECL_RTL if it has different mode, instead force
22029         creation of a new DEBUG_EXPR.
22031 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
22032             Marc Glisse  <marc.glisse@inria.fr>
22034         PR tree-optimization/94589
22035         * match.pd ((X & Y) == X -> (X & ~Y) == 0,
22036         (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
22038 2021-05-12  Uroš Bizjak  <ubizjak@gmail.com>
22040         PR target/98218
22041         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
22042         * config/i386/mmx.md (MMXMODE124): New mode iterator.
22043         (V2FI): Ditto.
22044         (mmxintvecmode): New mode attribute.
22045         (mmxintvecmodelower): Ditto.
22046         (*mmx_maskcmpv2sf3_comm): New insn pattern.
22047         (*mmx_maskcmpv2sf3): Ditto.
22048         (vec_cmpv2sfv2si): New expander.
22049         (vcond<V2FI:mode>v2si): Ditto.
22050         (mmx_vlendvps): New insn pattern.
22051         (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
22052         (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
22053         (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
22055 2021-05-11  Martin Sebor  <msebor@redhat.com>
22057         PR middle-end/21433
22058         * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
22060 2021-05-11  Richard Biener  <rguenther@suse.de>
22062         * gimple-fold.c (gimple_fold_call): Do not call
22063         maybe_fold_reference on call arguments or the static chain.
22064         (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
22065         inputs.
22067 2021-05-11  Martin Liska  <mliska@suse.cz>
22069         * builtins.def (DEF_HSAIL_BUILTIN): Remove.
22070         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
22071         (DEF_HSAIL_SAT_BUILTIN): Likewise.
22072         (DEF_HSAIL_INTR_BUILTIN): Likewise.
22073         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
22074         * doc/frontends.texi: Remove BRIG.
22075         * doc/install.texi: Likewise.
22076         * doc/invoke.texi: Likewise.
22077         * doc/standards.texi: Likewise.
22078         * brig-builtins.def: Removed.
22079         * brig/ChangeLog: Removed.
22080         * brig/Make-lang.in: Removed.
22081         * brig/brig-builtins.h: Removed.
22082         * brig/brig-c.h: Removed.
22083         * brig/brig-lang.c: Removed.
22084         * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
22085         * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
22086         * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
22087         * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
22088         * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
22089         * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
22090         * brig/brigfrontend/brig-code-entry-handler.h: Removed.
22091         * brig/brigfrontend/brig-comment-handler.cc: Removed.
22092         * brig/brigfrontend/brig-control-handler.cc: Removed.
22093         * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
22094         * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
22095         * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
22096         * brig/brigfrontend/brig-function-handler.cc: Removed.
22097         * brig/brigfrontend/brig-function.cc: Removed.
22098         * brig/brigfrontend/brig-function.h: Removed.
22099         * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
22100         * brig/brigfrontend/brig-label-handler.cc: Removed.
22101         * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
22102         * brig/brigfrontend/brig-machine.c: Removed.
22103         * brig/brigfrontend/brig-machine.h: Removed.
22104         * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
22105         * brig/brigfrontend/brig-module-handler.cc: Removed.
22106         * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
22107         * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
22108         * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
22109         * brig/brigfrontend/brig-to-generic.cc: Removed.
22110         * brig/brigfrontend/brig-to-generic.h: Removed.
22111         * brig/brigfrontend/brig-util.cc: Removed.
22112         * brig/brigfrontend/brig-util.h: Removed.
22113         * brig/brigfrontend/brig-variable-handler.cc: Removed.
22114         * brig/brigfrontend/hsa-brig-format.h: Removed.
22115         * brig/brigfrontend/phsa.h: Removed.
22116         * brig/brigspec.c: Removed.
22117         * brig/config-lang.in: Removed.
22118         * brig/gccbrig.texi: Removed.
22119         * brig/lang-specs.h: Removed.
22120         * brig/lang.opt: Removed.
22122 2021-05-11  Richard Biener  <rguenther@suse.de>
22124         PR ipa/100513
22125         * ipa-param-manipulation.c
22126         (ipa_param_body_adjustments::modify_call_stmt): Avoid
22127         altering SSA_NAME_DEF_STMT by adjusting the calls LHS
22128         via gimple_call_lhs_ptr.
22130 2021-05-11  Alex Coplan  <alex.coplan@arm.com>
22132         PR target/99725
22133         * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
22134         Avoid emitting CFA adjusts on the sp if we have the fp.
22136 2021-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22138         * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
22139         (VMULD): New iterator.
22140         (VCOND): Handle V4HF and V8HF.
22141         (VCONQ): Fix entry for V2SF.
22142         * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
22143         instead of VMUL.  Use a 64-bit vector mode for the indexed operand.
22144         (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
22145         (mul_laneq<mode>3): ...this define_insn.  Use VMUL instead of VDQSF.
22146         Use a 128-bit vector mode for the indexed operand.  Use stype for
22147         the scheduling type.
22149 2021-05-11  Richard Biener  <rguenther@suse.de>
22151         * gimple-fold.c (maybe_fold_reference): Only return
22152         is_gimple_min_invariant values.
22154 2021-05-11  Richard Biener  <rguenther@suse.de>
22156         PR middle-end/100509
22157         * gimple-fold.c (fold_gimple_assign): Only call
22158         get_symbol_constant_value on register type symbols.
22160 2021-05-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
22161             Joe Ramsay   <joe.ramsay@arm.com>
22163         PR target/100419
22164         * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
22165         (__arm_vcmpneq): Remove duplicate definition.
22166         (__arm_vstrwq_scatter_offset_p): Likewise.
22167         (__arm_vmaxq_x): Likewise.
22168         (__arm_vmlsdavaq): Likewise.
22169         (__arm_vmlsdavaxq): Likewise.
22170         (__arm_vmlsdavq_p): Likewise.
22171         (__arm_vmlsdavxq_p): Likewise.
22172         (__arm_vrmlaldavhaq): Likewise.
22173         (__arm_vstrbq_p): Likewise.
22174         (__arm_vstrbq_scatter_offset): Likewise.
22175         (__arm_vstrbq_scatter_offset_p): Likewise.
22176         (__arm_vstrdq_scatter_offset): Likewise.
22177         (__arm_vstrdq_scatter_offset_p): Likewise.
22178         (__arm_vstrdq_scatter_shifted_offset): Likewise.
22179         (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
22181 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
22183         PR middle-end/100471
22184         * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
22185         is 0, bypass the reduction loop including
22186         GOMP_taskgroup_reduction_unregister call.
22188 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
22190         * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
22191         costing_for_scalar.
22192         (rs6000_density_test): Early return if costing_for_scalar is true.
22193         (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
22195 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
22197         * doc/tm.texi: Regenerated.
22198         * target.def (init_cost): Add new parameter costing_for_scalar.
22199         * targhooks.c (default_init_cost): Adjust for new parameter.
22200         * targhooks.h (default_init_cost): Likewise.
22201         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
22202         (vect_compute_single_scalar_iteration_cost): Likewise.
22203         (vect_analyze_loop_2): Likewise.
22204         * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
22205         (vect_bb_vectorization_profitable_p): Likewise.
22206         * tree-vectorizer.h (init_cost): Likewise.
22207         * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
22208         * config/i386/i386.c (ix86_init_cost): Likewise.
22209         * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
22211 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
22213         * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
22214         vect_nonmem and moved into...
22215         (struct rs6000_cost_data): ...here.
22216         (rs6000_init_cost): Use vect_nonmem of cost_data instead.
22217         (rs6000_add_stmt_cost): Likewise.
22218         (rs6000_finish_cost): Likewise.
22220 2021-05-10  Eric Botcazou  <ebotcazou@adacore.com>
22222         * range-op.cc (get_bool_state): Adjust head comment.
22223         (operator_not_equal::op1_range): Fix comment.
22224         (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
22226 2021-05-10  Martin Sebor  <msebor@redhat.com>
22228         PR middle-end/100425
22229         PR middle-end/100510
22230         * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
22231         (pass_walloca::xlimit_certain_p): ...to this.
22232         (pass_walloca::gate): Execute for any kind of handled warning.
22233         (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
22234         warnings when xlimit_certain_p is set.
22236 2021-05-10  Pat Haugen  <pthaugen@linux.ibm.com>
22238         * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
22239         Return ALTIVEC_REGS if that is best_class.
22240         (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
22242 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
22244         * config/arm/arm.h (CPP_SPEC): Remove error message about
22245         -mfloat-abi.
22247 2021-05-10  Martin Jambor  <mjambor@suse.cz>
22249         * ipa-prop.h (IPA_NODE_REF): Removed.
22250         (IPA_NODE_REF_GET_CREATE): Likewise.
22251         (IPA_EDGE_REF): Likewise.
22252         (IPA_EDGE_REF_GET_CREATE): Likewise.
22253         (IS_VALID_JUMP_FUNC_INDEX): Likewise.
22254         * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
22255         use of ipa_node_params_sum.
22256         (ipcp_versionable_function_p): Likewise.
22257         (push_node_to_stack): Likewise.
22258         (pop_node_from_stack): Likewise.
22259         (set_single_call_flag): Replaced two IPA_NODE_REF with one single
22260         direct use of ipa_node_params_sum.
22261         (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
22262         ipa_node_params_sum.
22263         (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
22264         ipa_edge_args_sum.
22265         (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
22266         use of ipa_node_params_sum.
22267         (self_recursively_generated_p): Likewise.
22268         (propagate_scalar_across_jump_function): Likewise.
22269         (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
22270         direct use of ipa_edge_args_sum, moved the lookup after the early
22271         exit.  Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
22272         (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
22273         direct uses of ipa_node_params_sum.
22274         (propagate_vr_across_jump_function): Likewise.
22275         (propagate_aggregate_lattice): Likewise.
22276         (propagate_aggs_across_jump_function): Likewise.
22277         (propagate_constants_across_call): Likewise, also replaced
22278         IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
22279         (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
22280         of ipa_node_params_sum.
22281         (estimate_local_effects): Likewise.
22282         (add_all_node_vals_to_toposort): Likewise.
22283         (propagate_constants_topo): Likewise.
22284         (ipcp_propagate_stage): Likewise.
22285         (ipcp_discover_new_direct_edges): Likewise.
22286         (calls_same_node_or_its_all_contexts_clone_p): Likewise.
22287         (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
22288         (get_info_about_necessary_edges): Likewise.
22289         (want_remove_some_param_p): Likewise.
22290         (create_specialized_node): Likewise.
22291         (self_recursive_pass_through_p): Likewise.
22292         (self_recursive_agg_pass_through_p): Likewise.
22293         (find_more_scalar_values_for_callers_subset): Likewise and also
22294         replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
22295         case replacing two of those with a single query.
22296         (find_more_contexts_for_caller_subset): Likewise for the
22297         ipa_polymorphic_call_context overload.
22298         (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
22299         use of ipa_edge_args_sum.  Replaced IPA_NODE_REF with direct uses of
22300         ipa_node_params_sum.
22301         (find_aggregate_values_for_callers_subset): Likewise, also reusing
22302         results of ipa_edge_args_sum->get.
22303         (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
22304         direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
22305         direct use of ipa_edge_args_sum.
22306         (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
22307         summary query after the early exit and reused the result later.
22308         (decide_about_value): Replaced IPA_NODE_REF with a direct use of
22309         ipa_node_params_sum.
22310         (decide_whether_version_node): Likewise.  Removed re-querying for
22311         summaries after cloning.
22312         (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
22313         ipa_node_params_sum.
22314         (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
22315         some queries.
22316         (identify_dead_nodes): Likewise.
22317         (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
22318         ipa_node_params_sum.
22319         (ipcp_store_vr_results): Likewise.
22320         * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
22321         (ipa_fn_summary_t::duplicate): Likewise.
22322         (analyze_function_body): Likewise.
22323         (estimate_calls_size_and_time): Likewise.
22324         (ipa_cached_call_context::duplicate_from): Likewise.
22325         (ipa_call_context::equal_to): Likewise.
22326         (remap_edge_params): Likewise.
22327         (ipa_merge_fn_summary_after_inlining): Likewise.
22328         (inline_read_section): Likewise.
22329         * ipa-icf.c (sem_function::param_used_p): Likewise.
22330         * ipa-modref.c (compute_parm_map): Likewise.
22331         (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
22332         ipa_edge_args_sum.
22333         (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
22334         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
22335         ipa_edge_args_sum.
22336         * ipa-profile.c (check_argument_count): Likewise.
22337         * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
22338         with a direct use of ipa_node_params_sum.
22339         (ipa_initialize_node_params): Likewise.
22340         (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
22341         direct use of ipa_edge_args_sum and reused the query result.
22342         (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
22343         direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
22344         direct use of ipa_edge_args_sum.
22345         (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
22346         ipa_node_params_sum and reused the result of the query.
22347         (ipa_analyze_node): Likewise.
22348         (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
22349         of ipa_node_params_sum.
22350         (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
22351         direct uses of ipa_edge_args_sum.
22352         (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
22353         direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
22354         direct use of ipa_edge_args_sum.  Removed superficial re-querying the
22355         top edge summary.
22356         (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
22357         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
22358         ipa_edge_args_sum.
22359         (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
22360         direct use of ipa_edge_args_sum.
22361         (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
22362         use of ipa_node_params_sum.
22363         (ipa_print_node_params): Likewise.
22364         (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
22365         direct uses of ipa_edge_args_sum.
22366         (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
22367         ipa_edge_args_sum.
22368         (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
22369         ipa_node_params_sum.
22370         (ipa_prop_write_jump_functions): Likewise.  Move variable node to the
22371         scopes where it is used.
22373 2021-05-10  Uroš Bizjak  <ubizjak@gmail.com>
22375         * config/i386/i386-expand.c (ix86_expand_sse_movcc)
22376         <case E_V2SImode>: Force op_true to register.
22378 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
22380         * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
22381         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
22382         (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
22383         patterns.
22384         (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
22385         (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
22386         (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
22387         (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
22388         (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
22389         (mve_vcmpneq_n_f<mode>): Remove.
22390         * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
22391         (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
22392         (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
22394 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
22396         * config/arm/iterators.md (MVE_COMPARISONS): New.
22397         (mve_cmp_op): New.
22398         (mve_cmp_type): New.
22399         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
22400         mve_vcmp patterns.
22401         (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
22402         (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
22403         (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
22404         (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
22405         (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
22406         (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
22407         (mve_vcmpneq_n_<mode>): Remove.
22409 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
22411         * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
22412         * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
22413         * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
22414         names.
22416 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
22418         * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
22419         (vcmpneq_n_u): Likewise.
22420         (vcmpeqq_u,): Likewise.
22421         (vcmpeqq_n_u): Likewise.
22422         * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
22423         VCMPEQQ_N_U and VCMPNEQ_N_U.
22424         * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
22425         (mve_vcmpeqq_n): Likewise.
22426         (mve_vcmpeqq): Likewise.
22427         (mve_vcmpneq_n): Likewise.
22429 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
22431         * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
22432         the 's' version of the builtin.
22434 2021-05-10  Richard Biener  <rguenther@suse.de>
22436         PR tree-optimization/100492
22437         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
22438         Find nothing when the loop contains an irreducible region.
22440 2021-05-10  Richard Biener  <rguenther@suse.de>
22442         PR middle-end/100464
22443         PR c++/100468
22444         * gimple-fold.c (canonicalize_constructor_val): Do not set
22445         TREE_ADDRESSABLE.
22447 2021-05-10  Richard Biener  <rguenther@suse.de>
22449         PR tree-optimization/100434
22450         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
22451         call LHS.
22452         (dse_optimize_stmt): Handle call LHS by dropping the
22453         LHS or the whole call if it doesn't have other
22454         side-effects.
22455         (pass_dse::execute): Adjust.
22457 2021-05-10  Martin Liska  <mliska@suse.cz>
22459         * Makefile.in: Add missing genversion rule.
22461 2021-05-10  Alex Coplan  <alex.coplan@arm.com>
22463         PR target/99960
22464         * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
22465         vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
22467 2021-05-10  Martin Liska  <mliska@suse.cz>
22469         * builtins.c (is_builtin_name): Use startswith
22470         function instead of strncmp.
22471         * collect2.c (main): Likewise.
22472         (has_lto_section): Likewise.
22473         (scan_libraries): Likewise.
22474         * coverage.c (coverage_checksum_string): Likewise.
22475         (coverage_init): Likewise.
22476         * dwarf2out.c (is_cxx): Likewise.
22477         (gen_compile_unit_die): Likewise.
22478         * gcc-ar.c (main): Likewise.
22479         * gcc.c (init_spec): Likewise.
22480         (read_specs): Likewise.
22481         (execute): Likewise.
22482         (check_live_switch): Likewise.
22483         * genattrtab.c (write_attr_case): Likewise.
22484         (IS_ATTR_GROUP): Likewise.
22485         * gencfn-macros.c (main): Likewise.
22486         * gengtype.c (type_for_name): Likewise.
22487         (gen_rtx_next): Likewise.
22488         (get_file_langdir): Likewise.
22489         (write_local): Likewise.
22490         * genmatch.c (get_operator): Likewise.
22491         (get_operand_type): Likewise.
22492         (expr::gen_transform): Likewise.
22493         * genoutput.c (validate_optab_operands): Likewise.
22494         * incpath.c (add_sysroot_to_chain): Likewise.
22495         * langhooks.c (lang_GNU_C): Likewise.
22496         (lang_GNU_CXX): Likewise.
22497         (lang_GNU_Fortran): Likewise.
22498         (lang_GNU_OBJC): Likewise.
22499         * lto-wrapper.c (run_gcc): Likewise.
22500         * omp-general.c (omp_max_simt_vf): Likewise.
22501         * omp-low.c (omp_runtime_api_call): Likewise.
22502         * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
22503         * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
22504         * real.c (real_from_string): Likewise.
22505         * selftest.c (assert_str_startswith): Likewise.
22506         * timevar.c (timer::validate_phases): Likewise.
22507         * tree.c (get_file_function_name): Likewise.
22508         * ubsan.c (ubsan_use_new_style_p): Likewise.
22509         * varasm.c (default_function_rodata_section): Likewise.
22510         (incorporeal_function_p): Likewise.
22511         (default_section_type_flags): Likewise.
22512         * system.h (startswith): Define startswith.
22514 2021-05-10  Martin Liska  <mliska@suse.cz>
22516         * bitmap.h (class auto_bitmap): Remove
22517         __cplusplus >= 201103.
22518         * config/aarch64/aarch64.c: Likewise.
22519         * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
22520         Likewise.
22521         * sbitmap.h: Likewise.
22523 2021-05-10  Martin Liska  <mliska@suse.cz>
22525         * Makefile.in: Rename gcov-iov to genversion and depend
22526         on version.h (instead of gcov-iov.h).
22527         * gcov-io.h: Include version.h instread of gcov-iov.h.
22528         * gengtype-state.c (read_state_version): Likewise.
22529         * gcov-iov.c: Moved to...
22530         * genversion.c: ...here.
22531         * lto-streamer.h (LTO_major_version): Define it with
22532         GCC_major_version.
22533         * version.c: Removed.
22534         * version.h: Removed.
22536 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
22538         * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
22539         * config/arc/simdext.md (VCT): Add predicates for iterator
22540         elements.
22541         (EMUVEC): Define.
22542         (voptab): Likewise.
22543         (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
22544         (<voptab>v2si3): New patterns.
22545         (neg): Likewise.
22546         (reduc_plus_scal_v4hi): Likewise.
22547         (reduc_plus_scal_v2si): Likewise.
22548         (vec_duplicatev2si): Likewise.
22549         (vec_duplicatev4hi): Likewise.
22551 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
22553         * config/arc/simdext.md: Format and cleanup file.
22555 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
22557         * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
22558         only when munaligned-access option is on.
22559         (movmisalign<mode>): Likewise.
22561 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
22563         * common/config/arc/arc-common.c (arc_handle_option): Remove dot
22564         from string.
22565         * config/arc/arc.c (arc_reorg): Remove underscore from string.
22567 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
22569         * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
22570         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
22571         * config/arc/arc.md (clrsbsi2): Cleanup pattern.
22572         (norm_f): Likewise.
22573         (ffs): Likewise.
22574         (ffs_f): Likewise.
22575         (clzsi2): Use fls instruction when available.
22576         (arc_clzsi2): Likewise.
22578 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
22580         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
22582 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
22584         * doc/extend.texi (__builtin_arc_sr): Swap arguments.
22586 2021-05-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22588         PR middle-end/100467
22589         * toplev.c (compile_file): Call insn_locations_init before
22590         targetm.asm_out.code_end.
22592 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
22594         Revert:
22595         2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
22597         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
22599 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
22600             Andrew Stubbs  <amd@codesourcery.com>
22602         PR target/100418
22603         * builtins.c (try_store_by_multiple_pieces): Use force_operand for
22604         emit_move_insn operands.
22606 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
22608         * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
22609         location for the outgoing edges of an empty block.
22610         * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
22611         type by means of the get_array_descr_info langhook, if it is set and
22612         returns true.  Remove obsolete code dealing with unnamed subtypes.
22614 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22616         * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
22617         (sbr_vector): Renamed from ssa_block_cache.
22618         (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
22619         (ssa_block_ranges::~ssa_block_ranges): Remove.
22620         (sbr_vector::set_bb_range): Use varying and undefined cached values.
22621         (ssa_block_ranges::set_bb_varying): Remove.
22622         (sbr_vector::get_bb_range): Adjust assert.
22623         (sbr_vector::bb_range_p): Adjust assert.
22624         (~block_range_cache): No freeing loop required.
22625         (block_range_cache::get_block_ranges): Remove.
22626         (block_range_cache::set_bb_range): Inline get_block_ranges.
22627         (block_range_cache::set_bb_varying): Remove.
22628         * gimple-range-cache.h (set_bb_varying): Remove prototype.
22629         * value-range.h (irange_allocator::get_memory): New.
22631 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22633         * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
22634         dominator tree is available and requested.
22635         (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
22636         (ranger_cache::fill_block_cache): Don't search dom tree here either.
22637         * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
22639 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22641         * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
22642         only PHI nodes better.
22644 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22646         * gimple-range-edge.h (gimple_outgoing_range): Rename from
22647         outgoing_range.
22648         (gcond_edge_range): Export prototype.
22649         * gimple-range-edge.cc (gcond_edge_range): New.
22650         (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
22651         * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
22653 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22655         * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
22656         default range into a temp and allocate only what is needed.
22658 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22660         * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
22662 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
22664         * gimple-range.h (gimple_range_global): Pick up parameter initial
22665         values, and use-before defined locals are UNDEFINED.
22667 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
22669         * doc/extend.texi (scalar_storage_order): Mention effect on pointer
22670         and vector fields.
22671         * tree.h (reverse_storage_order_for_component_p): Return false if
22672         the type is a pointer.
22674 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
22676         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
22678 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
22680         PR target/98218
22681         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
22682         Handle V8QI, V4HI and V2SI modes.
22683         * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
22684         * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
22685         * config/i386/i386.md (unspec): ... here.
22687 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
22688             Tom de Vries  <tdevries@suse.de>
22690         * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
22691         a truth_value_p reduction variable is nonintegral.
22693 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
22695         PR target/100445
22696         * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
22697         Return false for mode sizes < 16.
22699 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
22701         PR target/100445
22702         * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
22704 2021-05-06  Martin Jambor  <mjambor@suse.cz>
22706         * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
22707         when there is no function summary.
22708         (ipa_sra_summarize_function): produce edge summaries even when
22709         bailing out early.
22711 2021-05-06  Tom Tromey  <tom@tromey.com>
22713         * godump.c (string_hash_eq): Remove.
22714         (go_finish): Use htab_eq_string.
22716 2021-05-06  Tom Tromey  <tom@tromey.com>
22718         * gengtype-state.c (read_state): Use htab_eq_string.
22719         (string_eq): Remove.
22721 2021-05-06  Tom Tromey  <tom@tromey.com>
22723         * gensupport.c (htab_eq_string): Remove.
22725 2021-05-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22727         PR ipa/97937
22728         * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
22729         * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
22730         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
22731         set_ignored_loc callbacks.
22732         * debug.c (do_nothing_debug_hooks): Likewise.
22733         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22734         * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
22735         (in_text_section_p, last_text_label, last_cold_label,
22736         switch_text_ranges, switch_cold_ranges): New data items.
22737         (dwarf2out_note_section_used): Remove.
22738         (dwarf2out_begin_prologue): Set fde->ignored_debug and
22739         in_text_section_p.
22740         (mark_ignored_debug_section): New helper function.
22741         (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
22742         mark_ignored_debug_section.
22743         (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
22744         (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
22745         (size_of_aranges): Adjust formula for multi-part text ranges size.
22746         (output_aranges): Output multi-part text ranges.
22747         (dwarf2out_set_ignored_loc): New callback function.
22748         (dwarf2out_finish): Output multi-part text ranges.
22749         (dwarf2out_c_finalize): Clear new data items.
22750         * final.c (final_start_function_1): Call set_ignored_loc callback.
22751         (final_scan_insn_1): Likewise.
22752         * ggc-page.c (gt_ggc_mx): New helper function.
22753         * stringpool.c (gt_pch_nx): Likewise.
22755 2021-05-06  Richard Biener  <rguenther@suse.de>
22757         * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
22758         (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
22759         (TV_TREE_INTO_SSA): New.
22760         * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
22761         (rewrite_blocks): Likewise.
22762         (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
22764 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
22766         * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
22767         abs_replacement, xor_replacement,
22768         cond_removal_in_popcount_clz_ctz_pattern,
22769         replace_phi_edge_with_variable): Change type of phi argument from
22770         gimple * to gphi *.
22772 2021-05-06  Richard Biener  <rguenther@suse.de>
22774         * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
22775         Output an opt-info message.
22776         (do_split_loop_on_cond): Likewise.
22777         (tree_ssa_split_loops): Update SSA form here.
22779 2021-05-06  Richard Biener  <rguenther@suse.de>
22781         * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
22782         return variable removal.
22784 2021-05-06  Marius Hillenbrand  <mhillen@linux.ibm.com>
22786         * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
22787         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
22788         (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
22789         operand.
22790         * config/s390/s390.c (s390_const_operand_ok): Remove unused
22791         values.
22793 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
22795         PR tree-optimization/94589
22796         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
22797         spaceship_replacement.
22798         (cond_only_block_p, spaceship_replacement): New functions.
22800 2021-05-06  Richard Biener  <rguenther@suse.de>
22802         PR ipa/100373
22803         * tree-emutls.c (gen_emutls_addr): Pass in whether we're
22804         dealing with a debug use and only query existing addresses
22805         if so.
22806         (lower_emutls_1): Avoid splitting out addresses for debug
22807         stmts, reset the debug stmt when we fail to find existing
22808         lowered addresses.
22809         (lower_emutls_phi_arg): Set wi.stmt.
22811 2021-05-06  Christoph Muellner  <cmuellner@gcc.gnu.org>
22813         PR target/100266
22814         * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
22815         * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
22816         (stack_protect_test): Use cbranch helper.
22818 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
22820         PR target/100402
22821         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
22822         always return the establisher frame for __builtin_frame_address (0).
22824 2021-05-05  Ivan Sorokin  <vanyacpp@gmail.com>
22826         PR target/91400
22827         * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
22828         (ix86_cpu_model_var): Likewise.
22829         (ix86_cpu_features2_type_node): Likewise.
22830         (ix86_cpu_features2_var): Likewise.
22831         (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
22832         their types.
22834 2021-05-05  Martin Sebor  <msebor@redhat.com>
22836         * passes.def (pass_warn_printf): Run after SSA.
22838 2021-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22840         * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
22841         * config/arm/predicates.md (minus_one_operand): New predicate.
22843 2021-05-05  Jeff Law  <jlaw@tachyum.com>
22845         * config/avr/avr.md: Remove references to CC_STATUS_INIT.
22847 2021-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
22849         PR rtl-optimization/100263
22850         * postreload.c (move2add_valid_value_p): Ensure register can
22851         change mode.
22853 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
22855         PR rtl-optimization/100411
22856         * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
22857         and beginning of function markers.
22859 2021-05-05  Jeff Law  <jlaw@tachyum.com>
22861         * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
22862         * config/cr16/cr16.c (notice_update_cc): Remove.
22863         * config/cr16/cr16-protos.h (notice_update_cc): Remove.
22865 2021-05-05  Uroš Bizjak  <ubizjak@gmail.com>
22867         PR target/98218
22868         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
22869         Handle V8QI, V4HI and V2SI modes.
22870         * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
22871         (ix86_build_signbit_mask): Ditto.
22872         * config/i386/mmx.md (MMXMODE14): New mode iterator.
22873         (<smaxmin:code><MMXMODE14:mode>3): New expander.
22874         (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
22875         (<umaxmin:code><MMXMODE24:mode>3): New expander.
22876         (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
22877         (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
22878         (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
22879         (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
22880         (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
22881         (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
22883 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
22885         * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
22886         not expand the VALUE_EXPR of variables put in the non-local frame.
22887         * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
22888         to be ignored for debug info, ensure its variable offsets are not.
22890 2021-05-05  Richard Biener  <rguenther@suse.de>
22892         PR tree-optimization/79333
22893         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
22894         Fold stmt following SSA edges.
22896 2021-05-05  Richard Biener  <rguenther@suse.de>
22898         PR middle-end/100394
22899         * calls.c (expand_call): Preserve possibly throwing calls.
22900         * cfgexpand.c (expand_call_stmt): When a call can throw signal
22901         RTL expansion there are side-effects.
22902         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
22903         mark all possibly throwing stmts necessary unless we can elide
22904         dead EH.
22905         * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
22906         -fdelete-dead-exceptions.
22907         * tree.h (DECL_PURE_P): Add note about exceptions.
22909 2021-05-05  Alexandre Oliva  <oliva@adacore.com>
22911         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
22912         unconditional.
22914 2021-05-04  David Edelsohn  <dje.gcc@gmail.com>
22916         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
22917         get_fnname_from_decl for name of thunk.
22918         * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
22919         and ASM_OUTPUT_LABEL.
22920         (rs6000_xcoff_declare_function_name): Use assemble_name and
22921         ASM_OUTPUT_LABEL.
22922         (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
22923         (rs6000_xcoff_encode_section_info): Don't add mapping class
22924         for aliases.  Always add [DS] mapping class to primary
22925         FUNCTION_DECL.
22926         (rs6000_asm_weaken_decl): Don't explicitly add [DS].
22928 2021-05-04  Martin Sebor  <msebor@redhat.com>
22930         PR middle-end/100307
22931         * builtins.c (compute_objsize_r): Clear base0 for pointers.
22933 2021-05-04  Jeff Law  <jlaw@tachyum.com>
22935         * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
22937 2021-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
22939         * caller-save.c: Remove CC0.
22940         * cfgcleanup.c: Remove CC0.
22941         * cfgrtl.c: Remove CC0.
22942         * combine.c: Remove CC0.
22943         * compare-elim.c: Remove CC0.
22944         * conditions.h: Remove CC0.
22945         * config/h8300/h8300.h: Remove CC0.
22946         * config/h8300/h8300-protos.h: Remove CC0.
22947         * config/h8300/peepholes.md: Remove CC0.
22948         * config/i386/x86-tune-sched.c: Remove CC0.
22949         * config/m68k/m68k.c: Remove CC0.
22950         * config/rl78/rl78.c: Remove CC0.
22951         * config/sparc/sparc.c: Remove CC0.
22952         * config/xtensa/xtensa.c: Remove CC0.
22953         (gen_conditional_move):  Use pc_rtx instead of cc0_rtx in a piece of
22954         RTL where that is used as a placeholder only.
22955         * cprop.c: Remove CC0.
22956         * cse.c: Remove CC0.
22957         * cselib.c: Remove CC0.
22958         * df-problems.c: Remove CC0.
22959         * df-scan.c: Remove CC0.
22960         * doc/md.texi: Remove CC0.  Adjust an example.
22961         * doc/rtl.texi: Remove CC0.  Adjust an example.
22962         * doc/tm.texi: Regenerate.
22963         * doc/tm.texi.in: Remove CC0.
22964         * emit-rtl.c: Remove CC0.
22965         * final.c: Remove CC0.
22966         * fwprop.c: Remove CC0.
22967         * gcse-common.c: Remove CC0.
22968         * gcse.c: Remove CC0.
22969         * genattrtab.c: Remove CC0.
22970         * genconfig.c: Remove CC0.
22971         * genemit.c: Remove CC0.
22972         * genextract.c: Remove CC0.
22973         * gengenrtl.c: Remove CC0.
22974         * genrecog.c: Remove CC0.
22975         * haifa-sched.c: Remove CC0.
22976         * ifcvt.c: Remove CC0.
22977         * ira-costs.c: Remove CC0.
22978         * ira.c: Remove CC0.
22979         * jump.c: Remove CC0.
22980         * loop-invariant.c: Remove CC0.
22981         * lra-constraints.c: Remove CC0.
22982         * lra-eliminations.c: Remove CC0.
22983         * optabs.c: Remove CC0.
22984         * postreload-gcse.c: Remove CC0.
22985         * postreload.c: Remove CC0.
22986         * print-rtl.c: Remove CC0.
22987         * read-rtl-function.c: Remove CC0.
22988         * reg-notes.def: Remove CC0.
22989         * reg-stack.c: Remove CC0.
22990         * reginfo.c: Remove CC0.
22991         * regrename.c: Remove CC0.
22992         * reload.c: Remove CC0.
22993         * reload1.c: Remove CC0.
22994         * reorg.c: Remove CC0.
22995         * resource.c: Remove CC0.
22996         * rtl.c: Remove CC0.
22997         * rtl.def: Remove CC0.
22998         * rtl.h: Remove CC0.
22999         * rtlanal.c: Remove CC0.
23000         * sched-deps.c: Remove CC0.
23001         * sched-rgn.c: Remove CC0.
23002         * shrink-wrap.c: Remove CC0.
23003         * simplify-rtx.c: Remove CC0.
23004         * system.h: Remove CC0.  Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
23005         CC_STATUS_MDEP, and CC_STATUS.
23006         * target.def: Remove CC0.
23007         * valtrack.c: Remove CC0.
23008         * var-tracking.c: Remove CC0.
23010 2021-05-04  Richard Biener  <rguenther@suse.de>
23012         PR tree-optimization/100414
23013         * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
23014         info here.
23015         (tree_ssa_phiopt_worker): But unconditionally here.
23017 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
23019         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
23020         && and || with floating-point and complex arguments.
23022 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
23024         * tree-inline.c (insert_debug_decl_map): Delete.
23025         (copy_debug_stmt): Minor tweak.
23026         (setup_one_parameter): Do not use a variable if the value is either
23027         a read-only DECL or a non-addressable local variable in the caller.
23028         In this case, insert the debug-only variable in the map manually.
23029         (expand_call_inline): Do not generate a CLOBBER for these values.
23030         * tree-inline.h (debug_map): Minor tweak.
23032 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
23034         * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
23035         * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
23037 2021-05-04  Richard Biener  <rguenther@suse.de>
23039         PR tree-optimization/100329
23040         * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
23041         asm goto defs.
23042         (insert_stmt_after): Assert we're not running into asm goto.
23044 2021-05-04  Richard Biener  <rguenther@suse.de>
23046         PR tree-optimization/100398
23047         * tree-ssa-dse.c (pass_dse::execute): Preserve control
23048         altering stmts.
23050 2021-05-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23052         * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
23054 2021-05-04  Alexandre Oliva  <oliva@adacore.com>
23056         * builtins.c (try_store_by_multiple_pieces): New.
23057         (expand_builtin_memset_args): Use it.  If target_char_cast
23058         fails, proceed as for non-constant val.  Pass len's ctz to...
23059         * expr.c (clear_storage_hints): ... this.  Try store by
23060         multiple pieces after setmem.
23061         (clear_storage): Adjust.
23062         * expr.h (clear_storage_hints): Likewise.
23063         (try_store_by_multiple_pieces): Declare.
23064         * passes.def: Replace the last copy_prop with ccp.
23066 2021-05-03  Tom de Vries  <tdevries@suse.de>
23068         PR target/100321
23069         * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
23070         reduction.
23072 2021-05-03  Richard Biener  <rguenther@suse.de>
23074         * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
23076 2021-05-03  Richard Biener  <rguenther@suse.de>
23078         * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
23079         (dse_dom_walker): Remove.
23080         (dse_dom_walker::dse_optimize_stmt): Rename...
23081         (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
23082         (dse_dom_walker::before_dom_children): Inline ...
23083         (pass_dse::execute): ... here.  Perform a reverse program
23084         order walk.
23086 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
23088         PR bootstrap/99703
23089         * configure: Regenerated.
23091 2021-05-03  Ilya Leoshkevich  <iii@linux.ibm.com>
23093         PR target/100217
23094         * config/s390/s390.c (s390_hard_fp_reg_p): New function.
23095         (s390_md_asm_adjust): Handle hard registers.
23097 2021-05-03  Jakub Jelinek  <jakub@redhat.com>
23099         PR tree-optimization/100382
23100         * tree-ssa-dse.c: Include tree-eh.h.
23101         (dse_dom_walker::before_dom_children): Don't remove stmts if
23102         stmt_unremovable_because_of_non_call_eh_p is true.
23104 2021-05-02  David Edelsohn  <dje.gcc@gmail.com>
23106         * varasm.c (compute_reloc_for_var): Split out from...
23107         (get_variable_section): Use it.
23108         * output.h (compute_reloc_for_var): Declare.
23109         * config/rs6000/rs6000-protos.h
23110         (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
23111         unsigned int.
23112         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
23113         Don't append storage mapping class to symbol.
23114         (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
23115         Don't convert TLS BSS to common.
23116         (rs6000_xcoff_unique_section): Don't fall back to select_secton.
23117         (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
23118         bss_initializer.
23119         (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
23120         mapping class.
23121         (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
23122         If align is 0 from TLS class, use the same rules as varasm.c
23123         If not common, switch to BSS section manually.
23124         If common, emit appropriate comm or lcomm directive.
23125         (rs6000_xcoff_encode_section_info): Add logic to append all
23126         storage mapping classes.
23127         (rs6000_asm_weaken_decl): Adjust for qualname symbols.
23128         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
23129         rs6000_xcoff_asm_output_aligned_decl_common.
23130         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
23131         rs6000_xcoff_asm_output_aligned_decl_common.
23132         (ASM_OUTPUT_TLS_COMMON): Use
23133         rs6000_xcoff_asm_output_aligned_decl_common.
23135 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
23137         PR target/100375
23138         * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
23139         as first argument of pseudo_node_t constructors.
23141 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
23143         PR target/100336
23144         * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
23146 2021-05-01  Aldy Hernandez  <aldyh@redhat.com>
23148         * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
23149         (gt_pch_nx (int_range<1> *&)): New.
23150         (gt_ggc_mx (int_range<1> *&)): New.
23151         * value-range.h (class irange): Add GTY support for
23152         the base class.
23154 2021-05-01  Geng Qi  <gengqi@linux.alibaba.com>
23156         * doc/options.texi (Negative): Change either or to both and.
23158 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
23160         * config/aarch64/aarch64-simd-builtins.def: Add
23161         float_ml[as][q]_laneq builtin generator macros.
23162         * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
23163         (aarch64_float_mla_laneq<mode>): Define.
23164         (aarch64_float_mls_laneq<mode>): Define.
23165         * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
23166         instead of GCC vector extensions.
23167         (vmlaq_laneq_f32): Likewise.
23168         (vmls_laneq_f32): Likewise.
23169         (vmlsq_laneq_f32): Likewise.
23171 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
23173         * config/aarch64/aarch64-simd-builtins.def: Add
23174         float_ml[as]_lane builtin generator macros.
23175         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
23176         Rename to...
23177         (mul_lane<mode>3): This, and re-order arguments.
23178         (aarch64_float_mla_lane<mode>): Define.
23179         (aarch64_float_mls_lane<mode>): Define.
23180         * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
23181         instead of GCC vector extensions.
23182         (vmlaq_lane_f32): Likewise.
23183         (vmls_lane_f32): Likewise.
23184         (vmlsq_lane_f32): Likewise.
23186 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
23188         * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
23189         builtin generator macros.
23190         * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
23191         Define.
23192         (aarch64_float_mls<mode>): Define.
23193         * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
23194         instead of relying on GCC vector extensions.
23195         (vmla_f64): Likewise.
23196         (vmlaq_f32): Likewise.
23197         (vmlaq_f64): Likewise.
23198         (vmls_f32): Likewise.
23199         (vmls_f64): Likewise.
23200         (vmlsq_f32): Likewise.
23201         (vmlsq_f64): Likewise.
23202         * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
23204 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
23206         * config/aarch64/aarch64-simd-builtins.def: Add
23207         float_ml[as]_n_builtin generator macros.
23208         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
23209         Rename to...
23210         (mul_n<mode>3): This, and re-order arguments.
23211         (aarch64_float_mla_n<mode>): Define.
23212         (aarch64_float_mls_n<mode>): Define.
23213         * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
23214         instead of inline asm.
23215         (vmlaq_n_f32): Likewise.
23216         (vmls_n_f32): Likewise.
23217         (vmlsq_n_f32): Likewise.
23219 2021-04-30  Jonathan Wright  <joanthan.wright@arm.com>
23221         * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
23222         builtin generator macros.
23223         * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
23224         (aarch64_pmull_hiv16qi_insn): Define.
23225         (aarch64_pmull_hiv16qi): Define.
23226         * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
23227         instead of inline asm.
23228         (vmull_p8): Likewise.
23230 2021-04-30  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
23232         * config/avr/avr.md: Adjust peepholes to match and
23233         generate parallels with clobber of REG_CC.
23234         (mov<mode>_insn): Rename to mov<mode>_insn_split.
23235         (*mov<mode>_insn): Rename to mov<mode>_insn.
23237 2021-04-30  David Edelsohn  <dje.gcc@gmail.com>
23239         * varasm.c (use_blocks_for_decl_p): Don't use section anchors
23240         for VAR_DECLs if -fdata-sections enabled.
23242 2021-04-30  Michael Meissner  <meissner@linux.ibm.com>
23244         PR bootstrap/100327
23245         * config/rs6000/rs6000.c
23246         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
23247         (rs6000_libgcc_floating_mode_supported_p): New target hook.
23249 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
23251         * tree-ssa-threadbackward.c (class thread_jumps): Split out code
23252         from here...
23253         (class back_threader_registry): ...to here...
23254         (class back_threader_profitability): ...and here...
23255         (thread_jumps::thread_through_all_blocks): Remove argument.
23256         (back_threader_registry::back_threader_registry): New.
23257         (back_threader_registry::~back_threader_registry): New.
23258         (back_threader_registry::thread_through_all_blocks): New.
23259         (thread_jumps::profitable_jump_thread_path): Move from here...
23260         (back_threader_profitability::profitable_path_p): ...to here.
23261         (thread_jumps::find_taken_edge): New.
23262         (thread_jumps::convert_and_register_current_path): Move...
23263         (back_threader_registry::register_path): ...to here.
23264         (thread_jumps::register_jump_thread_path_if_profitable): Move...
23265         (thread_jumps::maybe_register_path): ...to here.
23266         (thread_jumps::handle_phi): Call find_taken_edge and
23267         maybe_register_path.
23268         (thread_jumps::handle_assignment): Same.
23269         (thread_jumps::fsm_find_control_statement_thread_paths): Remove
23270         tree argument to handle_phi and handle_assignment.
23271         (thread_jumps::find_jump_threads_backwards): Set m_name.  Remove
23272         set of m_speed_p and m_max_threaded_paths.
23273         (pass_thread_jumps::execute): Remove second argument from
23274         find_jump_threads_backwards.
23275         (pass_early_thread_jumps::execute): Same.
23277 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
23279         * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
23280         (class dom_opt_dom_walker): Initialize some class variables.
23281         (pass_dominator::execute): Pass evrp_range_analyzer and
23282         dom_jump_threader_simplifier to dom_opt_dom_walker.
23283         Adjust for some functions moving into classes.
23284         (simplify_stmt_for_jump_threading): Adjust and move to...
23285         (jump_threader_simplifier::simplify): ...here.
23286         (dom_opt_dom_walker::before_dom_children): Adjust for
23287         m_evrp_range_analyzer.
23288         (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
23289         (test_for_singularity): Place in dom_opt_dom_walker class.
23290         (dom_opt_dom_walker::optimize_stmt): The argument
23291         evrp_range_analyzer is now a class field.
23292         * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
23293         (thread_jumps::thread_through_all_blocks): New.
23294         (thread_jumps::convert_and_register_current_path): Use m_registry.
23295         (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
23296         being in the threader class.
23297         (pass_early_thread_jumps::execute): Same.
23298         * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
23299         (jump_threader::jump_threader): ...here.
23300         (threadedge_finalize_values): Move...
23301         (jump_threader::~jump_threader): ...here.
23302         (jump_threader::remove_jump_threads_including): New.
23303         (jump_threader::thread_through_all_blocks): New.
23304         (record_temporary_equivalences_from_phis): Move...
23305         (jump_threader::record_temporary_equivalences_from_phis): ...here.
23306         (record_temporary_equivalences_from_stmts_at_dest): Move...
23307         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
23308         Here...
23309         (simplify_control_stmt_condition_1): Move to jump_threader class.
23310         (simplify_control_stmt_condition): Move...
23311         (jump_threader::simplify_control_stmt_condition): ...here.
23312         (thread_around_empty_blocks): Move...
23313         (jump_threader::thread_around_empty_blocks): ...here.
23314         (thread_through_normal_block): Move...
23315         (jump_threader::thread_through_normal_block): ...here.
23316         (thread_across_edge): Move...
23317         (jump_threader::thread_across_edge): ...here.
23318         (thread_outgoing_edges): Move...
23319         (jump_threader::thread_outgoing_edges): ...here.
23320         * tree-ssa-threadedge.h: Move externally facing functings...
23321         (class jump_threader): ...here...
23322         (class jump_threader_simplifier): ...and here.
23323         * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
23324         (jump_thread_path_allocator::jump_thread_path_allocator): New.
23325         (jump_thread_path_allocator::~jump_thread_path_allocator): New.
23326         (jump_thread_path_allocator::allocate_thread_edge): New.
23327         (jump_thread_path_allocator::allocate_thread_path): New.
23328         (jump_thread_path_registry::jump_thread_path_registry): New.
23329         (jump_thread_path_registry::~jump_thread_path_registry): New.
23330         (jump_thread_path_registry::allocate_thread_edge): New.
23331         (jump_thread_path_registry::allocate_thread_path): New.
23332         (dump_jump_thread_path): Make extern.
23333         (debug (const vec<jump_thread_edge *> &path)): New.
23334         (struct removed_edges): Move to tree-ssa-threadupdate.h.
23335         (struct thread_stats_d): Remove.
23336         (remove_ctrl_stmt_and_useless_edges): Make static.
23337         (lookup_redirection_data): Move...
23338         (jump_thread_path_registry::lookup_redirection_data): ...here.
23339         (ssa_redirect_edges): Make static.
23340         (thread_block_1): Move...
23341         (jump_thread_path_registry::thread_block_1): ...here.
23342         (thread_block): Move...
23343         (jump_thread_path_registry::thread_block): ...here.
23344         (thread_through_loop_header):  Move...
23345         (jump_thread_path_registry::thread_through_loop_header): ...here.
23346         (mark_threaded_blocks): Move...
23347         (jump_thread_path_registry::mark_threaded_blocks): ...here.
23348         (debug_path): Move...
23349         (jump_thread_path_registry::debug_path): ...here.
23350         (debug_all_paths): Move...
23351         (jump_thread_path_registry::dump): ..here.
23352         (rewire_first_differing_edge): Move...
23353         (jump_thread_path_registry::rewire_first_differing_edge): ...here.
23354         (adjust_paths_after_duplication): Move...
23355         (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
23356         (duplicate_thread_path): Move...
23357         (jump_thread_path_registry::duplicate_thread_path): ..here.
23358         (remove_jump_threads_including): Move...
23359         (jump_thread_path_registry::remove_jump_threads_including): ...here.
23360         (thread_through_all_blocks): Move to...
23361         (jump_thread_path_registry::thread_through_all_blocks): ...here.
23362         (delete_jump_thread_path): Remove.
23363         (register_jump_thread): Move...
23364         (jump_thread_path_registry::register_jump_thread): ...here.
23365         * tree-ssa-threadupdate.h: Move externally facing functions...
23366         (class jump_thread_path_allocator): ...here...
23367         (class jump_thread_path_registry): ...and here.
23368         (thread_through_all_blocks): Remove.
23369         (struct removed_edges): New.
23370         (register_jump_thread): Remove.
23371         (remove_jump_threads_including): Remove.
23372         (delete_jump_thread_path): Remove.
23373         (remove_ctrl_stmt_and_useless_edges): Remove.
23374         (free_dom_edge_info): New prototype.
23375         * tree-vrp.c: Remove x_vr_values hack.
23376         (class vrp_jump_threader_simplifier): New.
23377         (vrp_jump_threader_simplifier::simplify): New.
23378         (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
23379         Remove m_dummy_cond.
23380         Instantiate m_simplifier and m_threader.
23381         (vrp_jump_threader::thread_through_all_blocks): New.
23382         (vrp_jump_threader::simplify_stmt): Remove.
23383         (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
23384         Remove x_vr_values hack.
23385         (execute_vrp): Adjust for thread_through_all_blocks being in a
23386         class.
23388 2021-04-30  Christophe Lyon  <christophe.lyon@linaro.org>
23390         * genflags.c (gen_insn): Print failed expansion string.
23392 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
23394         * expr.c (alignment_for_piecewise_move): Call mode_for_size
23395         without limit to MAX_FIXED_MODE_SIZE.
23397 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
23399         PR middle-end/90773
23400         * builtins.c (builtin_memset_gen_str): Don't use return from
23401         simplify_gen_subreg.
23403 2021-04-30  Uroš Bizjak  <ubizjak@gmail.com>
23405         PR target/98060
23406         * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
23407         (*addsi3_carry_zext_0r): Ditto.
23408         (*sub<mode>3_carry_0): Ditto.
23409         (*subsi3_carry_zext_0r): Ditto.
23410         * config/i386/predicates.md (ix86_carry_flag_unset_operator):
23411         New predicate.
23412         * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
23413         Also consider ix86_carry_flag_unset_operator to calculate
23414         the cost of adc/sbb insn.
23416 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
23418         PR rtl-optimization/100225
23419         PR rtl-optimization/84878
23420         * modulo-sched.c (sms_schedule): Use note_stores to skip loops
23421         where we have an instruction which touches (writes) any hard
23422         register from df->regular_block_artificial_uses set.
23423         Allow not-single-set instruction only right before basic block
23424         tail.
23426 2021-04-30  Geng Qi  <gengqi@linux.alibaba.com>
23428         * config/riscv/riscv.opt (march=,mabi=): Negative itself.
23430 2021-04-30  LevyHsu  <admin@levyhsu.com>
23432         * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
23433         * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
23434         * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
23435         (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
23437 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
23439         * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
23441 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
23443         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
23444         (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this.  Enclose in do/while(0).
23445         * config/i386/i386.c: Adjust.
23446         * config/i386/i386.md: Adjust.
23447         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
23448         * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23449         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23450         * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23451         * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23452         * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23453         * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23454         * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23455         * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23456         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23457         (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
23459 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
23461         * config/i386/i386-expand.c (ix86_expand_int_compare):
23462         Swap operands of GTU and LEU comparison to emit carry flag comparison.
23463         * config/i386/i386.md (*add<mode>3_carry_0): Change insn
23464         predicate to allow more combine opportunities with memory operands.
23465         (*sub<mode>3_carry_0): Ditto.
23467 2021-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23469         PR rtl-optimization/100303
23470         * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
23471         boolean that indicates whether the use will only be used in
23472         debug instructions.  Treat it in the same way that existing
23473         cross-EBB debug references would be handled if so.
23474         (function_info::make_uses_available): Likewise.
23475         * rtl-ssa/functions.h (function_info::make_uses_available): Update
23476         prototype accordingly.
23477         (function_info::make_uses_available): Likewise.
23478         * fwprop.c (try_fwprop_subst): Update call accordingly.
23480 2021-04-29  Jeff Law  <jlaw@tachyum.com>
23482         * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
23483         of RTX_CODE guard.
23485 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
23486             Richard Biener  <rguenther@suse.de>
23488         PR target/100312
23489         * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
23490         (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
23491         (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
23492         (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
23493         (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
23494         to PURE_ARGS category.
23495         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
23496         Handle PURE_ARGS category.
23497         * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
23499 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
23501         * configure.ac: Check for the presence of sys/locking.h header and
23502         for whether _LK_LOCK is supported by _locking.
23503         * configure: Regenerate.
23504         * config.in: Likewise.
23505         * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
23506         * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
23507         * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
23509 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
23511         * config/i386/predicates.md (fcmov_comparison_operator):
23512         Do not check for trivial FP comparison operator.
23513         <case GEU, case LTU>: Allow CCGZmode.
23514         <case GTU, case LEU>: Do not allow CCCmode.
23515         (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
23516         (ix86_carry_flag_operator): Match only LTU and UNLT code.
23517         Do not check for trivial FP comparison operator.  Allow CCGZmode.
23519 2021-04-29  Tom de Vries  <tdevries@suse.de>
23521         * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
23522         fd->loop.step by either step or orig_step.
23524 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
23526         * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
23527         (load_got_register): Do the PIC dance here.
23528         (sparc_legitimize_tls_address): Simplify.
23529         (sparc_emit_probe_stack_range): Likewise.
23530         (sparc32_initialize_trampoline): Likewise.
23531         (sparc64_initialize_trampoline): Likewise.
23532         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
23533         (probe_stack_range<P:mode>): Likewise.
23534         (flush<P:mode>): Likewise.
23535         (tgd_hi22<P:mode>): Likewise.
23536         (tgd_lo10<P:mode>): Likewise.
23537         (tgd_add<P:mode>): Likewise.
23538         (tgd_call<P:mode>): Likewise.
23539         (tldm_hi22<P:mode>): Likewise.
23540         (tldm_lo10<P:mode>): Likewise.
23541         (tldm_add<P:mode>): Likewise.
23542         (tldm_call<P:mode>): Likewise.
23543         (tldo_hix22<P:mode>): Likewise.
23544         (tldo_lox10<P:mode>): Likewise.
23545         (tldo_add<P:mode>): Likewise.
23546         (tie_hi22<P:mode>): Likewise.
23547         (tie_lo10<P:mode>): Likewise.
23548         (tie_add<P:mode>): Likewise.
23549         (tle_hix22<P:mode>): Likewise.
23550         (tle_lox10<P:mode>): Likewise.
23551         (stack_protect_setsi): Rename to...
23552         (stack_protect_set32): ...this.
23553         (stack_protect_setdi): Rename to...
23554         (stack_protect_set64): ...this.
23555         (stack_protect_set): Adjust calls to above.
23556         (stack_protect_testsi): Rename to...
23557         (stack_protect_test32): ...this.
23558         (stack_protect_testdi): Rename to...
23559         (stack_protect_test64): ...this.
23560         (stack_protect_test): Adjust calls to above.
23562 2021-04-29  H.J. Lu  <hjl.tools@gmail.com>
23564         PR middle-end/90773
23565         * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
23566         (builtin_strncpy_read_str): Likewise.
23567         (builtin_memset_read_str): Add an argument for the previous RTL
23568         information and generate the new RTL from the previous RTL info.
23569         (builtin_memset_gen_str): Likewise.
23570         * builtins.h (builtin_strncpy_read_str): Update the prototype.
23571         (builtin_memset_read_str): Likewise.
23572         * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
23573         returns true, round up size and alignment to the widest integer
23574         mode for maximum size.
23575         (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
23576         and pass it to m_constfn.
23577         (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
23578         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
23579         initialize m_push.  Initialize m_overlap_op_by_pieces with
23580         targetm.overlap_op_by_pieces_p ().
23581         (op_by_pieces_d::run): Pass the previous RTL information to
23582         pieces_addr::adjust and generate overlapping operations if
23583         m_overlap_op_by_pieces is true.
23584         (PUSHG_P): New.
23585         (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
23586         change.
23587         (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
23588         change.
23589         (can_store_by_pieces): Use by_pieces_constfn on constfun.
23590         (store_by_pieces): Use by_pieces_constfn on constfun.  Updated
23591         for op_by_pieces_d change.
23592         (clear_by_pieces_1): Add a dummy argument.
23593         (clear_by_pieces): Updated for op_by_pieces_d change.
23594         (compare_by_pieces_d::compare_by_pieces_d): Likewise.
23595         (string_cst_read_str): Add a dummy argument.
23596         * expr.h (by_pieces_constfn): Add a dummy argument.
23597         (by_pieces_prev): New.
23598         * target.def (overlap_op_by_pieces_p): New target hook.
23599         * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
23600         * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
23601         * doc/tm.texi: Regenerated.
23603 2021-04-29  Richard Biener  <rguenther@suse.de>
23605         PR tree-optimization/100253
23606         * tree-vect-stmts.c (vectorizable_load): Do not assume
23607         element alignment when DR_MISALIGNMENT is -1.
23608         (vectorizable_store): Likewise.
23610 2021-04-29  Jakub Jelinek  <jakub@redhat.com>
23612         PR target/100302
23613         * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
23614         absu_hwi instead of abs_hwi.
23616 2021-04-29  Richard Biener  <rguenther@suse.de>
23618         PR middle-end/38474
23619         * tree-ssa-structalias.c (add_graph_edge): Avoid direct
23620         forwarding when indirect forwarding through ESCAPED
23621         alread happens.
23623 2021-04-29  Tom de Vries  <tdevries@suse.de>
23625         PR target/100232
23626         * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
23627         (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
23628         (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
23629         (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
23631 2021-04-29  Richard Biener  <rguenther@suse.de>
23633         PR tree-optimization/99912
23634         * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
23635         (dse_dom_walker::todo): Likewise.
23636         (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
23637         caller.
23638         (dse_dom_walker::before_dom_children): Remove trivially
23639         dead SSA defs and schedule CFG cleanup if we removed all
23640         PHIs in a block.
23641         (pass_dse::execute): Get TODO as computed by the DOM walker
23642         and return it.  Wipe dominator info earlier.
23644 2021-04-29  Richard Biener  <rguenther@suse.de>
23646         PR ipa/100308
23647         * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
23648         Track blocks to cleanup EH in new m_need_eh_cleanup.
23649         (ipcp_modif_dom_walker::cleanup_eh): New.
23650         (ipcp_transform_function): Release dominator info before
23651         doing EH cleanup.
23653 2021-04-29  Martin Sebor  <msebor@redhat.com>
23655         PR middle-end/100250
23656         * attribs.c (attr_access::array_as_string): Avoid dereferencing
23657         a pointer when it's null.
23659 2021-04-29  Martin Sebor  <msebor@redhat.com>
23661         * Makefile.in (OBJS): Add ipa-free-lang-data.o.
23662         * ipa-free-lang-data.cc: New file.
23663         * tree.c: Move pass free_lang_data to file above.
23664          (build_array_type_1): Declare extern.
23665         * tree.h (build_array_type_1): Declare.
23667 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23669         * config/aarch64/aarch64-simd-builtins.def: Modify comment to
23670         make consistent with updated RTL pattern.
23671         * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
23672         Implement using ss_truncate and us_truncate rather than
23673         unspecs.
23674         * config/aarch64/iterators.md: Remove redundant unspecs and
23675         iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
23677 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23679         * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
23680         attributes consistent with those defined in arm_neon.h.
23682 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23684         * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
23685         attributes consistent with those defined in arm_neon.h.
23687 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23689         * config/aarch64/aarch64-simd-builtins.def: Add
23690         float_trunc_rodd builtin generator macros.
23691         * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
23692         Define.
23693         (aarch64_float_trunc_rodd_lo_v2sf): Define.
23694         (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
23695         (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
23696         (aarch64_float_trunc_rodd_hi_v4sf): Define.
23697         * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
23698         instead of inline asm.
23699         (vcvtx_high_f32_f64): Likewise.
23700         (vcvtxd_f32_f64): Likewise.
23701         * config/aarch64/iterators.md: Add FCVTXN unspec.
23703 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23705         * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
23706         generator macros.
23707         * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
23708         Define.
23709         * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
23710         instead of inline asm.
23711         (vqtbx1_u8): Likewise.
23712         (vqtbx1_p8): Likewise.
23713         (vqtbx1q_s8): Likewise.
23714         (vqtbx1q_u8): Likewise.
23715         (vqtbx1q_p8): Likewise.
23716         (vtbx2_s8): Likewise.
23717         (vtbx2_u8): Likewise.
23718         (vtbx2_p8): Likewise.
23720 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23722         * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
23723         generator macros.
23724         * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
23725         instead of inline asm.
23726         (vqtbl1_s8): Likewise.
23727         (vqtbl1_u8): Likewise.
23728         (vqtbl1q_p8): Likewise.
23729         (vqtbl1q_s8): Likewise.
23730         (vqtbl1q_u8): Likewise.
23731         (vtbl1_s8): Likewise.
23732         (vtbl1_u8): Likewise.
23733         (vtbl1_p8): Likewise.
23734         (vtbl2_s8): Likewise.
23735         (vtbl2_u8): Likewise.
23736         (vtbl2_p8): Likewise.
23738 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23740         * config/aarch64/aarch64-simd-builtins.def: Add polynomial
23741         ssri_n buitin generator macro.
23742         * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
23743         instead of inline asm.
23744         (vsri_n_p16): Likewise.
23745         (vsri_n_p64): Likewise.
23746         (vsriq_n_p8): Likewise.
23747         (vsriq_n_p16): Likewise.
23748         (vsriq_n_p64): Likewise.
23750 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23752         * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
23753         iterator for polynomial ssli_n builtin generator macro.
23754         * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
23755         instead of inline asm.
23756         (vsli_n_p16): Likewise.
23757         (vsliq_n_p8): Likewise.
23758         (vsliq_n_p16): Likewise.
23759         * config/aarch64/iterators.md: Define VALLP mode iterator.
23761 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23763         * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
23764         iterator to generate [su]adalp RTL builtins.
23765         * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
23766         [su]adalp RTL pattern.
23767         * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
23768         instead of inline asm.
23769         (vpadal_u32): Likewise.
23771 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23773         * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
23774         builtin generator macros.
23775         * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
23776         Define.
23777         * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
23778         instead of inline asm.
23779         (vpaddl_s16): Likewise.
23780         (vpaddl_s32): Likewise.
23781         (vpaddl_u8): Likewise.
23782         (vpaddl_u16): Likewise.
23783         (vpaddl_u32): Likewise.
23784         (vpaddlq_s8): Likewise.
23785         (vpaddlq_s16): Likewise.
23786         (vpaddlq_s32): Likewise.
23787         (vpaddlq_u8): Likewise.
23788         (vpaddlq_u16): Likewise.
23789         (vpaddlq_u32): Liwewise.
23790         * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
23791         appropriate attributes.
23793 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23795         * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
23796         for aarch64_addp<mode> builtin macro generator.
23797         * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
23798         aarch64_addp<mode> RTL pattern.
23799         * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
23800         instead of inline asm.
23801         (vpaddq_s16): Likewise.
23802         (vpaddq_s32): Likewise.
23803         (vpaddq_s64): Likewise.
23804         (vpaddq_u8): Likewise.
23805         (vpaddq_u16): Likewise.
23806         (vpaddq_u32): Likewise.
23807         (vpaddq_u64): Likewise.
23809 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
23811         * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
23812         builtin generator macros.
23813         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
23814         Define.
23815         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
23816         instead of inline asm.
23817         (vqdmulh_n_s32): Likewise.
23818         (vqdmulhq_n_s16): Likewise.
23819         (vqdmulhq_n_s32): Likewise.
23820         (vqrdmulh_n_s16): Likewise.
23821         (vqrdmulh_n_s32): Likewise.
23822         (vqrdmulhq_n_s16): Likewise.
23823         (vqrdmulhq_n_s32): Likewise.
23825 2021-04-28  Tobias Burnus  <tobias@codesourcery.com>
23827         * doc/install.texi (--enable-offload-defaulted): Document.
23829 2021-04-28  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
23831         * config/avr/avr-dimode.md: Turn existing patterns into
23832         define_insn_and_split style patterns where the splitter
23833         adds a clobber of the condition code register.  Drop "cc"
23834         attribute.  Add new patterns to match output of
23835         the splitters.
23836         * config/avr/avr-fixed.md: Likewise.
23837         * config/avr/avr.c (cc_reg_rtx): New.
23838         (avr_parallel_insn_from_insns): Adjust insn count
23839         for removal of set of cc0.
23840         (avr_is_casesi_sequence): Likewise.
23841         (avr_casei_sequence_check_operands): Likewise.
23842         (avr_optimize_casesi): Likewise. Also insert
23843         new insns after jump_insn.
23844         (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
23845         for removal of set of cc0.
23846         (avr_init_expanders): Initialize cc_reg_rtx.
23847         (avr_regno_reg_class): Handle REG_CC.
23848         (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
23849         (avr_notice_update_cc): Remove function.
23850         (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
23851         (compare_condition): Adjust for PARALLEL with
23852         REG_CC clobber.
23853         (out_shift_with_cnt): Likewise.
23854         (ashlhi3_out): Likewise.
23855         (ashrhi3_out): Likewise.
23856         (lshrhi3_out): Likewise.
23857         (avr_class_max_nregs): Return single reg for REG_CC.
23858         (avr_compare_pattern): Check for REG_CC instead
23859         of cc0_rtx.
23860         (avr_reorg_remove_redundant_compare): Likewise.
23861         (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
23862         (avr_hard_regno_nregs): Return single reg for REG_CC.
23863         (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
23864         (avr_md_asm_adjust): Clobber REG_CC.
23865         (TARGET_HARD_REGNO_NREGS): Define.
23866         (TARGET_CLASS_MAX_NREGS): Define.
23867         (TARGET_MD_ASM_ADJUST): Define.
23868         * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
23869         for REG_CC.
23870         (enum reg_class): Add CC_REG class.
23871         (NOTICE_UPDATE_CC): Remove.
23872         (CC_OVERFLOW_UNUSABLE): Remove.
23873         (CC_NO_CARRY): Remove.
23874         * config/avr/avr.md: Turn existing patterns into
23875         define_insn_and_split style patterns where the splitter
23876         adds a clobber of the condition code register.  Drop "cc"
23877         attribute.  Add new patterns to match output of
23878         the splitters.
23879         (sez): Remove unused pattern.
23881 2021-04-28  Richard Earnshaw  <rearnsha@arm.com>
23883         PR target/100311
23884         * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
23885         used in HImode.
23887 2021-04-28  Richard Sandiford  <richard.sandiford@arm.com>
23889         PR target/100305
23890         * config/aarch64/constraints.md (Utq): Require the address to
23891         be valid for both the element mode and for V2DImode.
23893 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
23894             Tobias Burnus  <tobias@codesourcery.com>
23896         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
23897         * gcc.c (process_command): New variable.
23898         (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
23899         set it if -foffload is defaulted.
23900         * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
23901         (compile_offload_image): If OFFLOAD_DEFAULTED and
23902         OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
23903         if corresponding mkoffload can't be found.
23904         (compile_images_for_offload_targets): Likewise.  Free and clear
23905         offload_names if no valid offload is found.
23906         * config.in: Regenerate.
23907         * configure: Regenerate.
23909 2021-04-28  Richard Biener  <rguenther@suse.de>
23911         PR tree-optimization/100292
23912         * tree-vect-generic.c (expand_vector_condition): Do not fold
23913         the comparisons.
23915 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
23917         * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
23918         * config/rs6000/aix64.opt (m64): New.
23919         (m32): New.
23921 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
23923         * config/vax/vax.c (print_operand_address, vax_address_cost_1)
23924         (index_term_p): Handle ASHIFT too.
23926 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
23928         * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
23929         (sync_lock_test_and_set<mode>): Adjust accordingly.
23930         (sync_lock_release<mode>): Likewise.
23932 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
23934         * config/vax/vax-protos.h (adjacent_operands_p): Remove
23935         prototype.
23936         * config/vax/vax.c (adjacent_operands_p): Remove.
23938 2021-04-27  Maciej W. Rozycki  <macro@linux-mips.org>
23940         * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
23941         through to the non-conditional execution case if getting the
23942         condition for conditional execution has failed.
23944 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
23946         PR middle-end/100284
23947         * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
23948         * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
23949         than asserting on it.
23951 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
23953         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
23954         with TARGET_AIX_OS.
23956 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
23958         PR target/94177
23959         * calls.c (precompute_register_parameters): Additionally test
23960         targetm.precompute_tls_p to pre-compute argument.
23961         * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
23962         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
23963         * target.def (precompute_tls_p): New.
23964         * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
23965         * doc/tm.texi: Regenerated.
23967 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
23969         PR target/100200
23970         * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
23971         back to HOST_WIDE_INT.
23973 2021-04-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23975         PR target/100106
23976         * simplify-rtx.c (simplify_context::simplify_subreg): Check the
23977         memory alignment for the outer mode.
23979 2021-04-27  H.J. Lu  <hjl.tools@gmail.com>
23981         PR middle-end/90773
23982         * expr.c (op_by_pieces_d::get_usable_mode): New member function.
23983         (op_by_pieces_d::run): Cange a while loop to a do-while loop.
23985 2021-04-27  Alex Coplan  <alex.coplan@arm.com>
23987         PR target/99977
23988         * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
23989         with negative immediates: ensure we expand cbranchsi4_scratch
23990         correctly and ensure we satisfy its constraints.
23991         * config/arm/sync.md
23992         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
23993         attempt to tie two output operands together with constraints;
23994         collapse two alternatives.
23995         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
23996         * config/arm/thumb1.md (cbranchsi4_neg_late): New.
23998 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
24000         PR target/100200
24001         * config/aarch64/predicates.md (aarch64_sub_immediate,
24002         aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
24003         * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
24004         * config/aarch64/aarch64.c (aarch64_print_operand,
24005         aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
24007 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
24009         PR tree-optimization/100239
24010         * tree-vect-generic.c (lower_vec_perm): Don't accept constant
24011         permutations with all indices from the first zero element as vec_shl.
24013 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
24015         PR rtl-optimization/100254
24016         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
24017         last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
24019 2021-04-27  Richard Biener  <rguenther@suse.de>
24021         PR tree-optimization/99912
24022         * passes.def: Add comment about new TODO_remove_unused_locals.
24023         * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
24024         at start.
24026 2021-04-27  Richard Biener  <rguenther@suse.de>
24028         PR tree-optimization/99912
24029         * passes.def (pass_all_optimizations): Add pass_dse before
24030         the first pass_dce, move the first pass_dse before the
24031         pass_dce following pass_pre.
24033 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
24035         PR tree-optimization/95527
24036         * generic-match-head.c: Include tm.h.
24037         * gimple-match-head.c: Include tm.h.
24038         * match.pd (CLZ == INTEGER_CST): Don't use
24039         #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
24040         if clz == CFN_CLZ.  Add missing val declaration.
24041         (CTZ cmp CST): New simplifications.
24043 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
24045         PR tree-optimization/96696
24046         * expr.c (expand_expr_divmod): New function.
24047         (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
24048         divisions.  Formatting fixes.
24049         <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
24050         cheaper.
24052 2021-04-27  Martin Jambor  <mjambor@suse.cz>
24054         PR ipa/99951
24055         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
24056         If removing a call statement LHS SSA name, release it.
24058 2021-04-27  Richard Earnshaw  <rearnsha@arm.com>
24060         PR target/100236
24061         * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
24062         is valid before including it in the mask.
24064 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
24066         PR target/100270
24067         * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
24068         SVE attributes.
24070 2021-04-27  Richard Biener  <rguenther@suse.de>
24072         PR tree-optimization/100051
24073         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
24074         disambiguator based on access size vs. decl size.
24076 2021-04-27  Richard Biener  <rguenther@suse.de>
24078         PR tree-optimization/100278
24079         * tree-ssa-pre.c (compute_avail): Give up when we cannot
24080         adjust TBAA beacuse of mismatching bases.
24082 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
24084         PR target/99405
24085         * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
24086         For any_rotate define_insn_split and following splitters, use
24087         SWI iterator instead of SWI48.
24089 2021-04-27  Richard Biener  <rguenther@suse.de>
24091         PR tree-optimization/99776
24092         * match.pd (bit_field_ref (ctor)): Relax element extract
24093         type compatibility checks.
24095 2021-04-27  Cui,Lili  <lili.cui@intel.com>
24097         * common/config/i386/i386-common.c (processor_names):
24098         Sync processor_names with processor_type.
24099         * config/i386/i386-options.c (processor_cost_table):
24100         Sync processor_cost_table with processor_type.
24102 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
24104         * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
24105         (irange::set): Call irange_set_1bit_anti_range for handling all
24106         1-bit ranges.  Fall through on ~[MIN,MAX].
24108 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
24110         * value-range.cc (irange::legacy_num_pairs): Remove.
24111         (irange::invert): Change gcc_assert to gcc_checking_assert.
24112         * value-range.h (irange::num_pairs): Adjust for a cached
24113         num_pairs().  Also, rename all gcc_assert's to
24114         gcc_checking_assert's.
24116 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
24118         * value-range.cc (irange::operator=): Set m_kind.
24119         (irange::copy_to_legacy): Handle varying and undefined sources
24120         as a legacy copy since they can be easily copied.
24121         (irange::irange_set): Set m_kind.
24122         (irange::irange_set_anti_range): Same.
24123         (irange::set): Rename normalize_min_max to normalize_kind.
24124         (irange::verify_range): Adjust for multi-ranges having the
24125         m_kind field set.
24126         (irange::irange_union): Set m_kind.
24127         (irange::irange_intersect): Same.
24128         (irange::invert): Same.
24129         * value-range.h (irange::kind): Always return m_kind.
24130         (irange::varying_p): Rename to...
24131         (irange::varying_comptaible_p): ...this.
24132         (irange::undefined_p): Only look at m_kind.
24133         (irange::irange): Always set VR_UNDEFINED if applicable.
24134         (irange::set_undefined): Always set VR_UNDEFINED.
24135         (irange::set_varying): Always set m_kind to VR_VARYING.
24136         (irange::normalize_min_max): Rename to...
24137         (irange::normalize_kind): ...this.
24139 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
24141         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
24142         Adjust for constant_p including varying_p.
24143         * tree-vrp.c (vrp_prop::finalize): Same.
24144         (determine_value_range): Same.
24145         * vr-values.c (vr_values::range_of_expr): Same.
24146         * value-range.cc (irange::symbolic_p): Do not check varying_p.
24147         (irange::constant_p): Same.
24149 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
24151         * value-range.cc (irange::legacy_lower_bound): Replace
24152           !undefined_p check with num_ranges > 0.
24153         (irange::legacy_upper_bound): Same.
24154         * value-range.h (irange::type): Same.
24155         (irange::lower_bound): Same.
24156         (irange::upper_bound): Same.
24158 2021-04-26  Richard Biener  <rguenther@suse.de>
24160         PR tree-optimization/99956
24161         * gimple-loop-interchange.cc (compute_access_stride):
24162         Try instantiating the access in a shallower loop nest
24163         if instantiating failed.
24164         (compute_access_strides): Pass adjustable loop_nest
24165         to compute_access_stride.
24167 2021-04-26  Christophe Lyon  <christophe.lyon@linaro.org>
24169         * doc/sourcebuild.texi (arm_cmse_hw): Document.
24171 2021-04-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24173         * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
24175 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
24176             Nathan Sidwell  <nathan@codesourcery.com>
24177             Tom de Vries  <vries@codesourcery.com>
24178             Julian Brown  <julian@codesourcery.com>
24179             Kwok Cheung Yeung  <kcy@codesourcery.com>
24181         * omp-offload.c (oacc_validate_dims): Implement
24182         '-Wopenacc-parallelism'.
24183         * doc/invoke.texi (-Wopenacc-parallelism): Document.
24185 2021-04-26  Richard Biener  <rguenther@suse.de>
24187         * tree-cfg.h (gimplify_build1): Remove.
24188         (gimplify_build2): Likewise.
24189         (gimplify_build3): Likewise.
24190         * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
24191         (gimplify_build2): Likewise.
24192         (gimplify_build3): Likewise.
24193         * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
24194         Modernize.
24195         (gimplify_build2): Likewise.
24196         (gimplify_build3): Likewise.
24197         (tree_vec_extract): Use resimplify with following SSA edges.
24198         (expand_vector_parallel): Avoid passing NULL size/bitpos
24199         to tree_vec_extract.
24200         * expr.c (store_constructor): Deal with zero-element CTORs.
24201         * match.pd (bit_field_ref <vector CTOR>): Make sure to
24202         produce vector constants when possible.
24204 2021-04-26  Richard Biener  <rguenther@suse.de>
24206         * tree-complex.c: Include gimple-fold.h.
24207         (expand_complex_addition): Use gimple_build.
24208         (expand_complex_multiplication_components): Likewise.
24209         (expand_complex_multiplication): Likewise.
24210         (expand_complex_div_straight): Likewise.
24211         (expand_complex_div_wide): Likewise.
24212         (expand_complex_division): Likewise.
24213         (expand_complex_conjugate): Likewise.
24214         (expand_complex_comparison): Likewise.
24216 2021-04-26  Richard Biener  <rguenther@suse.de>
24218         * tree-ssa-phiopt.c (two_value_replacement): Remove use
24219         of legacy gimplify_buildN API.
24221 2021-04-26  Richard Biener  <rguenther@suse.de>
24223         PR tree-optimization/99473
24224         * tree-ssa-phiopt.c (cond_store_replacement): Handle all
24225         stores.
24227 2021-04-26  Richard Biener  <rguenther@suse.de>
24229         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
24230         Use replace_call_with_value.
24232 2021-04-26  Richard Biener  <rguenther@suse.de>
24234         * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
24235         (update_gimple_call): Likewise.
24236         (update_call_from_tree): Likewise.
24237         * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
24238         (valid_gimple_call_p): Likewise.
24239         (move_ssa_defining_stmt_for_defs): Likewise.
24240         (finish_update_gimple_call): Likewise.
24241         (update_gimple_call): Likewise.
24242         (update_call_from_tree): Likewise.
24243         (propagate_tree_value_into_stmt): Use replace_call_with_value.
24244         * gimple-fold.h (update_gimple_call): Declare.
24245         * gimple-fold.c (valid_gimple_rhs_p): Move here from
24246         tree-ssa-propagate.c.
24247         (update_gimple_call): Likewise.
24248         (valid_gimple_call_p): Likewise.
24249         (finish_update_gimple_call): Likewise, and simplify.
24250         (gimplify_and_update_call_from_tree): Implement
24251         update_call_from_tree functionality, avoid excessive
24252         push/pop_gimplify_context.
24253         (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
24254         (gimple_fold_call): Likewise.
24255         * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
24256         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
24257         (pass_fold_builtins::execute): Likewise.
24258         (optimize_stack_restore): Use replace_call_with_value.
24259         * tree-cfg.c (fold_loop_internal_call): Likewise.
24260         * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
24261         only gimplify_and_update_call_from_tree.
24262         * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
24263         (handle_builtin_strchr): Likewise.
24264         * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
24266 2021-04-26  Jakub Jelinek  <jakub@redhat.com>
24268         PR debug/100255
24269         * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
24270         vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
24271         register keywords.
24273 2021-04-25  liuhongt  <hongtao.liu@intel.com>
24275         PR target/98911
24276         * config/i386/i386-builtin.def (BDESC): Change the icode of
24277         the following builtins to CODE_FOR_nothing.
24278         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
24279         IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
24280         IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
24281         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
24282         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
24283         IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
24284         IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
24285         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
24286         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
24287         * config/i386/sse.md (avx2_eq<mode>3): Deleted.
24288         (sse2_eq<mode>3): Ditto.
24289         (sse4_1_eqv2di3): Ditto.
24290         (sse2_gt<mode>3): Rename to ..
24291         (*sse2_gt<mode>3): .. this.
24293 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
24295         Revert:
24296         2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
24298         PR target/100152
24299         * config/darwin.c (darwin_binds_local_p): Assume that any
24300         public symbol might be interposed for PIC code. Update function
24301         header comment to reflect current Darwin capability.
24303 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
24305         PR target/100152
24306         * config/darwin.c (darwin_binds_local_p): Assume that any
24307         public symbol might be interposed for PIC code. Update function
24308         header comment to reflect current Darwin capability.
24310 2021-04-24  Richard Sandiford  <richard.sandiford@arm.com>
24312         * doc/sourcebuild.texi: Document no-opts and any-opts target
24313         selectors.
24315 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
24317         * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
24319 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
24321         * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
24323 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
24325         PR target/100041
24326         * config/i386/i386-options.c (ix86_option_override_internal):
24327         Error out when -m96bit-long-double is used with 64bit targets.
24328         * config/i386/i386.md (*pushxf_rounded): Remove pattern.
24330 2021-04-23  Martin Liska  <mliska@suse.cz>
24332         * lto-wrapper.c: Remove FIXME about usage of
24333         hardware_concurrency. The function is not on par with
24334         what we have now.
24336 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
24338         PR target/100182
24339         * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
24340         Copy operand 3 to operand 4.  Use sse_reg_operand
24341         as operand 3 predicate.
24342         (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
24343         (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
24344         (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
24345         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
24346         Copy operand 1 to operand 0.
24347         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
24348         (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
24349         (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
24351 2021-04-23  Alex Coplan  <alex.coplan@arm.com>
24353         PR rtl-optimization/100230
24354         * early-remat.c (early_remat::sort_candidates): Use delete[]
24355         instead of delete for array allocated with new[].
24357 2021-04-23  Richard Biener  <rguenther@suse.de>
24359         * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
24360         (capture_info::capture_info): Likewise.
24361         (capture_info::walk_match): Likewise.
24362         (expr::gen_transform): Likewise.
24363         (dt_simplify::gen_1): Likewise.
24364         * gimple-match-head.c (maybe_resimplify_conditional_op):
24365         Remove VEC_COND_EXPR special-casing.
24366         (gimple_simplify): Likewise.
24367         * gimple.c (gimple_could_trap_p_1): Adjust.
24368         * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
24369         to participate in PRE.
24371 2021-04-23  Richard Biener  <rguenther@suse.de>
24373         * cfganal.c (connect_infinite_loops_to_exit): First call
24374         add_noreturn_fake_exit_edges.
24375         * ipa-sra.c (process_scan_results): Do not call the now redundant
24376         add_noreturn_fake_exit_edges.
24377         * predict.c (tree_estimate_probability): Likewise.
24378         (rebuild_frequencies): Likewise.
24379         * store-motion.c (one_store_motion_pass): Likewise.
24381 2021-04-23  Richard Biener  <rguenther@suse.de>
24383         PR tree-optimization/100222
24384         * predict.c (pass_profile::execute): Remove redundant call to
24385         mark_irreducible_loops.
24386         (report_predictor_hitrates): Likewise.
24388 2021-04-23  Richard Biener  <rguenther@suse.de>
24390         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
24391         valid_gimple_rhs_p by instead gimplifying to one.
24393 2021-04-23  Richard Biener  <rguenther@suse.de>
24395         PR tree-optimization/99971
24396         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
24397         Always use TBAA for loads.
24399 2021-04-23  liuhongt  <hongtao.liu@intel.com>
24401         PR target/100093
24402         * config/i386/i386-options.c (ix86_option_override_internal):
24403         Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
24404         when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
24405         by target attribute.
24407 2021-04-23  David Edelsohn  <dje.gcc@gmail.com>
24409         * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
24410         DWARF2_DEBUG.
24411         * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
24413 2021-04-22  David Edelsohn  <dje.gcc@gmail.com>
24415         * config.gcc (powerpc-ibm-aix6.*): Remove.
24416         * config/rs6000/aix61.h: Delete.
24418 2021-04-22  Martin Liska  <mliska@suse.cz>
24420         PR testsuite/100159
24421         PR testsuite/100192
24422         * builtins.c (expand_builtin): Fix typos and missing comments.
24423         * dwarf2out.c (gen_subprogram_die): Likewise.
24424         (gen_struct_or_union_type_die): Likewise.
24426 2021-04-22  Uroš Bizjak  <ubizjak@gmail.com>
24428         PR target/100119
24429         * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
24430         Remove the sign with FE_DOWNWARD, where x - x = -0.0.
24432 2021-04-21  Iain Sandoe  <iain@sandoe.co.uk>
24434         * config/i386/darwin.h (TARGET_64BIT): Remove definition
24435         based on TARGET_ISA_64BIT.
24436         (TARGET_64BIT_P): Remove definition based on
24437         TARGET_ISA_64BIT_P().
24439 2021-04-21  Martin Liska  <mliska@suse.cz>
24441         Revert:
24442         2021-04-21  Martin Liska  <mliska@suse.cz>
24444         * lto-wrapper.c (cpuset_popcount): Remove.
24445         (init_num_threads): Remove and use hardware_concurrency.
24447 2021-04-21  Martin Liska  <mliska@suse.cz>
24449         PR jit/98615
24450         * main.c (main): Call toplev::finalize in CHECKING_P mode.
24451         * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
24452         when incremental LTO linking happens.
24454 2021-04-21  Martin Liska  <mliska@suse.cz>
24456         * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
24457         makeserver cannot be detected, then use -flto=N fallback.
24459 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
24461         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
24462         default to yes for aarch64-linux-gnu.
24463         * configure: Regenerate.
24465 2021-04-21  Martin Liska  <mliska@suse.cz>
24467         * lto-wrapper.c (cpuset_popcount): Remove.
24468         (init_num_threads): Remove and use hardware_concurrency.
24470 2021-04-21  Martin Liska  <mliska@suse.cz>
24472         * config/i386/i386.c: Remove superfluous || TARGET_MACHO
24473         which remains to be '(... || 0)' and clang complains about it.
24474         * dwarf2out.c (AT_vms_delta): Declare conditionally.
24475         (add_AT_vms_delta): Likewise.
24476         * tree.c (fld_simplified_type): Use rather more common pattern
24477         for disabling of something (#if 0).
24478         (get_tree_code_name): Likewise.
24479         (verify_type_variant): Likewise.
24481 2021-04-21  Martin Liska  <mliska@suse.cz>
24483         * config/i386/i386-expand.c (decide_alignment): Use newly named
24484         macro TARGET_CPU_P.
24485         * config/i386/i386.c (ix86_decompose_address): Likewise.
24486         (ix86_address_cost): Likewise.
24487         (ix86_lea_outperforms): Likewise.
24488         (ix86_avoid_lea_for_addr): Likewise.
24489         (ix86_add_stmt_cost): Likewise.
24490         * config/i386/i386.h (TARGET_*): Remove.
24491         (TARGET_CPU_P): New macro.
24492         * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
24493         * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
24494         (swap_top_of_ready_list): Likewise.
24495         (ix86_atom_sched_reorder): Likewise.
24496         * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
24497         * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
24499 2021-04-21  Martin Liska  <mliska@suse.cz>
24501         * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
24502         Define.
24503         (SET_TARGET_NO_SAHF): Likewise.
24504         (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
24505         (SET_TARGET_PREFETCH_SSE): Likewise.
24506         (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
24507         (SET_TARGET_NO_TUNE): Likewise.
24508         (TARGET_EXPLICIT_NO_80387_P): Likewise.
24509         (SET_TARGET_NO_80387): Likewise.
24510         (DEF_PTA): New.
24511         * config/i386/i386.h (TARGET_*): Remove.
24512         * opth-gen.awk: Generate new used macros.
24514 2021-04-21  Martin Liska  <mliska@suse.cz>
24516         * config/i386/i386.h (PTA_*): Remove.
24517         (enum pta_flag): New.
24518         (DEF_PTA): Generate PTA_* values from i386-isa.def.
24519         * config/i386/i386-isa.def: New file.
24521 2021-04-21  Alex Coplan  <alex.coplan@arm.com>
24523         PR target/99988
24524         * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
24525         (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
24526         jump table targets.
24528 2021-04-21  H.J. Lu  <hjl.tools@gmail.com>
24530         * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
24531         x86_64-*-* targets.
24532         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
24533         New.
24534         (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
24535         (ix86_handle_option): Handle -mmwait.
24536         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
24537         Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
24538         __builtin_ia32_monitor and __builtin_ia32_mwait.
24539         * config/i386/i386-options.c (isa2_opts): Add -mmwait.
24540         (ix86_valid_target_attribute_inner_p): Likewise.
24541         (ix86_option_override_internal): Enable mwait/monitor
24542         instructions for -msse3.
24543         * config/i386/i386.h (TARGET_MWAIT): New.
24544         (TARGET_MWAIT_P): Likewise.
24545         * config/i386/i386.opt: Add -mmwait.
24546         * config/i386/mwaitintrin.h: New file.
24547         * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
24548         * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
24549         TARGET_MWAIT.
24550         (@sse3_monitor_<mode>): Likewise.
24551         * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
24552         * doc/extend.texi: Document mwait target attribute.
24553         * doc/invoke.texi: Document -mmwait.
24555 2021-04-21  Martin Liska  <mliska@suse.cz>
24557         * config/i386/i386-options.c (DEF_ENUM): Remove it.
24558         * config/i386/i386-opts.h (DEF_ENUM): Likewise.
24559         * config/i386/stringop.def (DEF_ENUM): Likewise.
24561 2021-04-21  Martin Liska  <mliska@suse.cz>
24563         * tree-cfg.c (gimple_verify_flow_info): Use qD instead
24564         of print_generic_expr.
24566 2021-04-21  Jakub Jelinek  <jakub@redhat.com>
24568         PR rtl-optimization/100148
24569         * cprop.c (constprop_register): Use next_nondebug_insn instead of
24570         NEXT_INSN.
24572 2021-04-21  Martin Liska  <mliska@suse.cz>
24574         PR ipa/98815
24575         * cgraphunit.c (cgraph_node::analyze): Remove duplicate
24576         free_dominance_info calls.
24578 2021-04-21  Richard Biener  <rguenther@suse.de>
24580         * gimple-fold.c (maybe_fold_reference): Remove is_lhs
24581         parameter (and assume it to be false).
24582         (fold_gimple_assign): Adjust, remove all callers of
24583         maybe_fold_reference calling it with is_lhs true.
24584         (gimple_fold_call): Likewise.
24585         (fold_stmt_1): Likewise.
24587 2021-04-21  Richard Biener  <rguenther@suse.de>
24589         * fold-const.c (pedantic_non_lvalue_loc): Remove.
24590         (fold_binary_loc): Adjust.
24591         (fold_ternary_loc): Likewise.
24593 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
24595         PR middle-end/100130
24596         * varasm.c (get_block_for_decl): Make sure that any use of the
24597         retain attribute matches the section's retain flag.
24598         (switch_to_section): Check for retain mismatches even when
24599         changing sections, but do not warn if the given decl is the
24600         section's named.decl.
24601         (output_object_block): Pass the first decl in the block (if any)
24602         to switch_to_section.
24604 2021-04-20  H.J. Lu  <hjl.tools@gmail.com>
24606         * config/i386/i386-c.c (ix86_target_macros_internal): Define
24607         __CRC32__ for -mcrc32.
24608         * config/i386/i386-options.c (ix86_option_override_internal):
24609         Enable crc32 instruction for -msse4.2.
24610         * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
24611         check.
24612         (sse4_2_crc32di): Likewise.
24613         * config/i386/ia32intrin.h: Use crc32 target option for CRC32
24614         intrinsics.
24616 2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>
24618         PR target/100108
24619         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
24620         OPTION_MASK_ISEL.
24622 2021-04-20  Martin Liska  <mliska@suse.cz>
24624         * doc/invoke.texi: Fix typo.
24625         * params.opt: Likewise.
24627 2021-04-20  Martin Liska  <mliska@suse.cz>
24629         * doc/invoke.texi: Document new param.
24631 2021-04-19  Andrew MacLeod  <amacleod@redhat.com>
24633         PR tree-optimization/100081
24634         * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
24635         rather than gori_compute_cache.
24636         * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
24637         (range_def_chain::m_logical_depth): New member.
24638         (range_def_chain::range_def_chain): Initialize m_logical_depth.
24639         (range_def_chain::get_def_chain): Don't build defchains through more
24640         than LOGICAL_LIMIT logical expressions.
24641         * params.opt (param_ranger_logical_depth): New.
24643 2021-04-19  Richard Earnshaw  <rearnsha@arm.com>
24645         PR target/100067
24646         * config/arm/arm.c (arm_configure_build_target): Do not strip
24647         extended FPU/SIMD feature bits from the target ISA when -mfpu
24648         is specified (partial revert of r11-8168).
24650 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
24652         * params.opt (-param=openacc-kernels=): Add.
24653         * omp-oacc-kernels-decompose.cc
24654         (pass_omp_oacc_kernels_decompose::gate): Use it.
24655         * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
24656         (--param): ... here, 'openacc-kernels'.
24658 2021-04-19  Martin Liska  <mliska@suse.cz>
24660         PR c/100143
24661         * gengtype.c (finish_root_table): Align function arguments
24662         in between declaration and definition.
24664 2021-04-19  Eric Botcazou  <ebotcazou@adacore.com>
24666         * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
24667         frames larger than the SEH maximum frame size.
24669 2021-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
24671         PR rtl-optimization/99927
24672         * combine.c (distribute_notes) [REG_UNUSED]: If the register already
24673         is dead, just drop it.
24675 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
24677         PR d/99914
24678         * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
24679         * doc/tm.texi: Regenerate.
24680         * doc/tm.texi.in (D language and ABI): Add @hook for
24681         TARGET_D_TEMPLATES_ALWAYS_COMDAT.
24683 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
24685         * config/darwin-d.c (darwin_d_handle_target_object_format): New
24686         function.
24687         (darwin_d_register_target_info): New function.
24688         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24689         * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
24690         function.
24691         (dragonfly_d_register_target_info): New function.
24692         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24693         * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
24694         function.
24695         (freebsd_d_register_target_info): New function.
24696         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24697         * config/glibc-d.c (glibc_d_handle_target_object_format): New
24698         function.
24699         (glibc_d_register_target_info): New function.
24700         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24701         * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
24702         function.
24703         (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
24704         as handler for objectFormat key.
24705         * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
24706         function.
24707         (winnt_d_register_target_info): New function.
24708         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24709         * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
24710         function.
24711         (netbsd_d_register_target_info): New function.
24712         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24713         * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
24714         function.
24715         (openbsd_d_register_target_info): New function.
24716         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24717         * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
24718         (pa_d_register_target_info): Add pa_d_handle_target_object_format as
24719         handler for objectFormat key.
24720         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
24721         function.
24722         (rs6000_d_register_target_info): Add
24723         rs6000_d_handle_target_object_format as handler for objectFormat key.
24724         * config/sol2-d.c (solaris_d_handle_target_object_format): New
24725         function.
24726         (solaris_d_register_target_info): New function.
24727         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
24729 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
24731         PR target/91710
24732         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
24733         abi_break argument from bool * to unsigned *, store there the pre-GCC 9
24734         alignment.
24735         (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
24736         (aarch64_function_arg_regno_p): Likewise.  Only emit -Wpsabi note if
24737         the old and new alignment after applying MIN/MAX to it is different.
24739 2021-04-16  Tamar Christina  <tamar.christina@arm.com>
24741         PR target/100048
24742         * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
24743         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
24744         TRN optab.
24745         * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
24747 2021-04-16  Bill Schmidt  <wschmidt@linux.ibm.com>
24749         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
24750         this section and its subsections.
24752 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
24754         PR target/100075
24755         * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
24756         define_insn patterns.
24758 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
24760         PR rtl-optimization/98689
24761         * reg-notes.def (UNTYPED_CALL): New note.
24762         * combine.c (distribute_notes): Handle it.
24763         * emit-rtl.c (try_split): Likewise.
24764         * rtlanal.c (rtx_properties::try_to_add_insn): Likewise.  Assume
24765         that calls with the note implicitly set all return value registers.
24766         * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
24767         to untyped_calls.
24769 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
24771         PR rtl-optimization/99596
24772         * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
24773         register accesses for const calls.  Assume that pure functions
24774         can only read from global registers.  Ignore cases in which
24775         the stack pointer has been marked global.
24777 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
24779         PR target/99767
24780         * tree-vect-loop.c (vect_transform_loop): Don't remove just
24781         dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
24782         them by their last argument.
24784 2021-04-15  Martin Liska  <mliska@suse.cz>
24786         * doc/invoke.texi: Other params don't use it, remove it.
24788 2021-04-15  Richard Biener  <rguenther@suse.de>
24790         * gimple-builder.h: Add deprecation note.
24792 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
24794         PR c++/98852
24795         * attribs.h (restrict_type_identity_attributes_to): Declare.
24796         * attribs.c (restrict_type_identity_attributes_to): New function.
24798 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
24800         PR c/98852
24801         * attribs.h (affects_type_identity_attributes): Declare.
24802         * attribs.c (remove_attributes_matching): New function.
24803         (affects_type_identity_attributes): Likewise.
24805 2021-04-15  Jakub Jelinek  <jakub@redhat.com>
24807         PR target/100056
24808         * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
24809         Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
24810         ZERO_EXTEND, SIGN_EXTEND or AND.
24812 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
24814         PR rtl-optimization/99929
24815         * rtl.h (same_vector_encodings_p): New function.
24816         * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
24817         * cselib.c (rtx_equal_for_cselib_1): Likewise.
24818         * jump.c (rtx_renumbered_equal_p): Likewise.
24819         * lra-constraints.c (operands_match_p): Likewise.
24820         * reload.c (operands_match_p): Likewise.
24821         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
24823 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
24825         * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
24826         more information about variable-length CONST_VECTORs.
24828 2021-04-14  Vladimir N. Makarov  <vmakarov@redhat.com>
24830         PR rtl-optimization/100066
24831         * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
24832         ordered modes when choosing splitting mode for hard reg.
24834 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
24836         PR target/99246
24837         * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
24838         New function.
24839         (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
24841 2021-04-14  Andreas Krebbel  <krebbel@linux.ibm.com>
24843         * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
24844         for mask operand types.
24845         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
24846         (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
24847         operand.
24848         (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
24849         immediate operand.
24850         * config/s390/s390.c (s390_const_operand_ok): Check the new
24851         operand types and generate a list of valid values.
24853 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
24855         * doc/tm.texi: Regenerate.
24856         * doc/tm.texi.in (D language and ABI): Add @hook for
24857         TARGET_D_REGISTER_OS_TARGET_INFO.
24859 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
24861         * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
24862         function.
24863         (aarch64_d_register_target_info): New function.
24864         * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
24865         Declare.
24866         * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
24867         Define.
24868         * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
24869         (arm_d_register_target_info): New function.
24870         * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
24871         * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24872         * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
24873         (ix86_d_register_target_info): New function.
24874         * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
24875         * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24876         * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
24877         (mips_d_register_target_info): New function.
24878         * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
24879         * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24880         * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
24881         (pa_d_register_target_info): New function.
24882         * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
24883         * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24884         * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
24885         function.
24886         (riscv_d_register_target_info): New function.
24887         * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
24888         * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24889         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
24890         function.
24891         (rs6000_d_register_target_info): New function.
24892         * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
24893         Declare.
24894         * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24895         * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
24896         (s390_d_register_target_info): New function.
24897         * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
24898         * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24899         * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
24900         function.
24901         (sparc_d_register_target_info): New function.
24902         * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
24903         * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
24904         * doc/tm.texi: Regenerate.
24905         * doc/tm.texi.in (D language and ABI): Add @hook for
24906         TARGET_D_REGISTER_CPU_TARGET_INFO.
24908 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
24910         * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
24911         * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
24912         * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
24913         * doc/tm.texi: Regenerate.
24914         * doc/tm.texi.in (D language and ABI): Add @hook for
24915         TARGET_D_HAS_STDCALL_CONVENTION.
24917 2021-04-14  Richard Biener  <rguenther@suse.de>
24919         * tree-cfg.c (verify_gimple_assign_ternary): Verify that
24920         VEC_COND_EXPRs have a gimple_val condition.
24921         * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
24922         can no longer have a GENERIC condition.
24924 2021-04-14  Richard Earnshaw  <rearnsha@arm.com>
24926         PR target/100067
24927         * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
24928         from the isa_delta when -mfpu has been used.
24929         (arm_options_perform_arch_sanity_checks): It's the architecture that
24930         lacks an FPU not the processor.
24932 2021-04-13  Richard Biener  <rguenther@suse.de>
24934         PR tree-optimization/100053
24935         * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
24936         not use optimistic dominance queries for backedges to validate
24937         predicated values.
24938         (dominated_by_p_w_unex): Add parameter to ignore executable
24939         state on backedges.
24940         (rpo_elim::eliminate_avail): Adjust.
24942 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
24944         PR target/100028
24945         * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
24946         *aarch64_bfxilsi_extrdi): New define_insn patterns.
24948 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
24950         PR target/99648
24951         * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
24952         outermode, return NULL if the result doesn't encode back to the
24953         original byte sequence.
24954         (simplify_gen_subreg): Don't create SUBREGs from constants to
24955         MODE_COMPOSITE_P outermode.
24957 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
24959         PR rtl-optimization/99905
24960         * combine.c (expand_compound_operation): If pos + len > modewidth,
24961         perform the right shift by pos in inner_mode and then convert to mode,
24962         instead of trying to simplify a shift of rtx with inner_mode by pos
24963         as if it was a shift in mode.
24965 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
24967         PR debug/99830
24968         * combine.c (simplify_and_const_int_1): Don't optimize varop
24969         away if it has side-effects.
24971 2021-04-12  Martin Liska  <mliska@suse.cz>
24973         * doc/extend.texi: Escape @smallexample content.
24975 2021-04-12  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
24977         * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
24978           alternative in order to load a DFP zero.
24980 2021-04-12  Martin Liska  <mliska@suse.cz>
24982         * doc/extend.texi: Be more precise in documentation
24983         of symver attribute.
24985 2021-04-12  Martin Liska  <mliska@suse.cz>
24987         PR sanitizer/99877
24988         * gimplify.c (gimplify_expr): Right now, we unpoison all
24989         variables before a goto <dest>. We should not do it if we are
24990         in a omp context.
24992 2021-04-12  Cui,Lili  <lili.cui@intel.com>
24994         * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
24995         rocketlake.
24996         * common/config/i386/i386-common.c (processor_names): Add
24997         rocketlake.
24998         (processor_alias_table): Add rocketlake.
24999         * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
25000         INTEL_COREI7_ROCKETLAKE.
25001         * config.gcc: Add -march=rocketlake.
25002         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25003         rocketlake.
25004         * config/i386/i386-options.c (m_ROCKETLAKE)  : Define.
25005         (processor_cost_table): Add rocketlake cost.
25006         * config/i386/i386.h (ix86_size_cost) : Define
25007         TARGET_ROCKETLAKE.
25008         (processor_type) : Add PROCESSOR_ROCKETLAKE.
25009         (PTA_ROCKETLAKE): Ditto.
25010         * doc/extend.texi: Add rocketlake.
25011         * doc/invoke.texi: Add rocketlake.
25013 2021-04-12  Cui,Lili  <lili.cui@intel.com>
25015         * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
25016         * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
25017         * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
25018         * doc/invoke.texi: Change alderlake ISA list.
25020 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
25022         PR middle-end/98088
25023         * omp-expand.c (expand_oacc_collapse_init): Update condition in
25024         a gcc_assert.
25026 2021-04-10  H.J. Lu  <hjl.tools@gmail.com>
25028         PR target/99744
25029         * config/i386/serializeintrin.h (_serialize): Defined as macro.
25031 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
25033         PR lto/99849
25034         * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
25035         just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
25037 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
25039         PR middle-end/99989
25040         * gimple-ssa-warn-alloca.c
25041         (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
25042         0 with integer precision unconditionally.
25044 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
25046         PR rtl-optimization/98601
25047         * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
25048         not just for BLKmode, but also for VOIDmode.  For STRICT_ALIGNMENT
25049         unaligned_mems handle VOIDmode like BLKmode.
25051 2021-04-10  Jan Hubicka  <hubicka@ucw.cz>
25053         PR lto/99857
25054         * tree.c (free_lang_data_in_decl): Do not release body of
25055         declare_variant_alt.
25057 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
25059         * config/aarch64/aarch64.c (aarch64_option_restore): If the
25060         architecture was specified explicitly and the tuning wasn't,
25061         tune for the architecture rather than the configured default CPU.
25063 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
25065         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
25066         as the temporary register.
25068 2021-04-09  Martin Liska  <mliska@suse.cz>
25070         * doc/extend.texi: Move non-target attributes on the top level.
25072 2021-04-09  Martin Liska  <mliska@suse.cz>
25074         * doc/invoke.texi: Document minimum and maximum value of the
25075         argument for both supported compression algorithms.
25077 2021-04-08  David Edelsohn  <dje.gcc@gmail.com>
25079         * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
25080         TLS BSS before TLS data.
25081         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
25083 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
25085         * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
25087 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
25089         * match.pd: Extend vec_cond folds to handle shifts.
25091 2021-04-08  Maciej W. Rozycki  <macro@orcam.me.uk>
25093         * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
25094         peephole.
25096 2021-04-08  Alex Coplan  <alex.coplan@arm.com>
25098         PR target/99647
25099         * config/arm/iterators.md (MVE_vecs): New.
25100         (V_elem): Also handle V2DF.
25101         * config/arm/mve.md (*mve_mov<mode>): Rename to ...
25102         (*mve_vdup<mode>): ... this. Remove second alternative since
25103         vec_duplicate of const_int is not canonical RTL, and we don't
25104         want to match symbol_refs.
25105         (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
25107 2021-04-08  Xionghu Luo  <luoxhu@linux.ibm.com>
25109         * fold-const.c (fold_single_bit_test): Fix typo.
25110         * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
25111         instead.
25113 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
25115         PR tree-optimization/97513
25116         * tree-vect-slp.c (vect_add_slp_permutation): New function,
25117         split out from...
25118         (vectorizable_slp_permutation): ...here.  Detect cases in which
25119         all VEC_PERM_EXPRs are guaranteed to have the same stepped
25120         permute vector and only generate one permute vector for that case.
25121         Extend that case to handle variable-length vectors.
25123 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
25125         PR tree-optimization/99873
25126         * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
25127         (vect_build_slp_instance): Don't split store groups that could
25128         use IFN_STORE_LANES.
25130 2021-04-07  Jakub Jelinek  <jakub@redhat.com>
25132         PR target/99872
25133         * varasm.c (output_constant_pool_contents): Don't strip name encoding
25134         from XSTR (desc->sym, 0) or from label before passing those to
25135         ASM_OUTPUT_DEF.
25137 2021-04-07  Richard Biener  <rguenther@suse.de>
25139         PR tree-optimization/99954
25140         * tree-loop-distribution.c: Include tree-affine.h.
25141         (generate_memcpy_builtin): Try using tree-affine to prove
25142         non-overlap.
25143         (loop_distribution::classify_builtin_ldst): Always classify
25144         as PKIND_MEMMOVE.
25146 2021-04-07  Richard Biener  <rguenther@suse.de>
25148         PR tree-optimization/99947
25149         * tree-vect-loop.c (vectorizable_induction): Pre-allocate
25150         steps vector to avoid pushing elements from the reallocated
25151         vector.
25153 2021-04-07  Richard Biener  <rguenther@suse.de>
25155         * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
25156         * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
25157         printing...
25158         * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
25159         function.
25160         (debug_vn_reference_ops): New.
25162 2021-04-07  Bin Cheng  <bin.cheng@linux.alibaba.com>
25164         PR tree-optimization/98736
25165         * tree-loop-distribution.c
25166         * (loop_distribution::bb_top_order_init):
25167         Compute RPO with programing order preserved by calling function
25168         rev_post_order_and_mark_dfs_back_seme.
25170 2021-04-06  Vladimir N. Makarov  <vmakarov@redhat.com>
25172         PR target/99781
25173         * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
25174         * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
25175         functions.
25176         (process_bb_lives): Don't update biggest mode of hard reg for
25177         implicit in multi-register group.  Use the new functions for
25178         updating dead_set and unused_set by register notes.
25180 2021-04-06  Xianmiao Qu  <xianmiao_qu@c-sky.com>
25182         * config/csky/csky_pipeline_ck802.md : Use insn reservation name
25183         instead of *.
25185 2021-04-06  H.J. Lu  <hjl.tools@gmail.com>
25187         * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
25188         (skylake_memset): Likewise.
25189         (skylake_cost): Change CLEAR_RATIO to 17.
25190         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
25191         Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
25192         m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
25194 2021-04-06  Richard Biener  <rguenther@suse.de>
25196         PR tree-optimization/99880
25197         * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
25198         set vectorized defs of relevant PHIs.
25200 2021-04-06  Richard Biener  <rguenther@suse.de>
25202         PR tree-optimization/99924
25203         * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
25204         nodes w/o scalar stmts as visited.
25206 2021-04-06  Alex Coplan  <alex.coplan@arm.com>
25208         PR target/99748
25209         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
25210         PCS for [su]fix_optab.
25212 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
25214         * config/darwin.c (machopic_legitimize_pic_address): Check
25215         that the current pic register is one of the hard reg set
25216         before setting liveness.
25218 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
25220         * config/darwin.c (machopic_legitimize_pic_address): Fix
25221         whitespace, remove unused code.
25223 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
25225         PR tree-optimization/99882
25226         * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
25227         pointer type.
25229 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
25231         PR rtl-optimization/99863
25232         * dse.c (replace_read): Drop regs_live argument.  Instead of
25233         regs_live, use store_insn->fixed_regs_live if non-NULL,
25234         otherwise punt if insns sequence clobbers or sets any hard
25235         registers.
25237 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
25239         PR testsuite/98125
25240         * targhooks.h (default_print_patchable_function_entry_1): Declare.
25241         * targhooks.c (default_print_patchable_function_entry_1): New function,
25242         copied from default_print_patchable_function_entry with an added flags
25243         argument.
25244         (default_print_patchable_function_entry): Rewritten into a small
25245         wrapper around default_print_patchable_function_entry_1.
25246         * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
25247         Redefine.
25248         (rs6000_print_patchable_function_entry): New function.
25250 2021-04-02  Eric Botcazou  <ebotcazou@adacore.com>
25252         * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
25254 2021-04-01  Jason Merrill  <jason@redhat.com>
25256         PR c++/98481
25257         * common.opt: Document v15 and v16.
25259 2021-04-01  Richard Biener  <rguenther@suse.de>
25261         PR tree-optimization/99863
25262         * gimplify.c (gimplify_init_constructor): Recompute vector
25263         constructor flags.
25265 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
25267         * doc/extend.texi (symver attribute): Fix up syntax errors
25268         in the examples.
25270 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
25272         PR tree-optimization/96573
25273         * gimple-ssa-store-merging.c (init_symbolic_number): Handle
25274         also pointer types.
25276 2021-04-01  Richard Biener  <rguenther@suse.de>
25278         PR tree-optimization/99856
25279         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
25280         precision to vector element precision.
25282 2021-04-01  Martin Jambor  <mjambor@suse.cz>
25284         PR tree-optimization/97009
25285         * tree-sra.c (access_or_its_child_written): New function.
25286         (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
25287         test.
25289 2021-03-31  Jan Hubicka  <hubicka@ucw.cz>
25291         PR ipa/98265
25292         * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
25294 2021-03-31  Pat Haugen  <pthaugen@linux.ibm.com>
25296         PR target/99133
25297         * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
25298         xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
25299         xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
25300         * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
25301         mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
25302         mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
25303         Likewise.
25304         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
25305         * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
25306         (define_attr "prefixed"): Update initializer.
25308 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
25310         PR debug/99490
25311         * dwarf2out.c (debug_ranges_dwo_section): New variable.
25312         (DW_RANGES_IDX_SKELETON): Define.
25313         (struct dw_ranges): Add begin_entry and end_entry members.
25314         (DEBUG_DWO_RNGLISTS_SECTION): Define.
25315         (add_ranges_num): Adjust r initializer for addition of *_entry
25316         members.
25317         (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
25318         set idx to DW_RANGES_IDX_SKELETON.
25319         (use_distinct_base_address_for_range): New function.
25320         (index_rnglists): Don't set r->idx if it is equal to
25321         DW_RANGES_IDX_SKELETON.  Initialize r->begin_entry and
25322         r->end_entry for -gsplit-dwarf if those will be needed by
25323         output_rnglists.
25324         (output_rnglists): Add DWO argument.  If true, switch to
25325         debug_ranges_dwo_section rather than debug_ranges_section.
25326         Adjust l1/l2 label indexes.  Only output the offset table when
25327         dwo is true and don't include in there the skeleton range
25328         entry if present.  For -gsplit-dwarf, skip ranges that belong
25329         to the other rnglists section.  Change return type from void
25330         to bool and return true if there are any range entries for
25331         the other section.  For dwarf_split_debug_info use
25332         DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
25333         entries instead of DW_RLE_start_end, DW_RLE_start_length and
25334         DW_RLE_base_address.  Use use_distinct_base_address_for_range.
25335         (init_sections_and_labels): Initialize debug_ranges_dwo_section
25336         if -gsplit-dwarf and DWARF >= 5.  Adjust ranges_section_label
25337         and range_base_label indexes.
25338         (dwarf2out_finish): Call index_rnglists earlier before finalizing
25339         .debug_addr.  Never emit DW_AT_rnglists_base attribute.  For
25340         -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
25341         with different dwo arguments.
25342         (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
25344 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
25346         PR tree-optimization/98268
25347         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
25348         recompute_tree_invariant_for_addr_expr after successfully
25349         folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
25351 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
25353         PR tree-optimization/99726
25354         * tree-data-ref.c (create_intersect_range_checks_index): Bail
25355         out if there is more than one access function SCEV for the loop
25356         being versioned.
25358 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
25360         PR rtl-optimization/97141
25361         PR rtl-optimization/98726
25362         * emit-rtl.c (valid_for_const_vector_p): Return true for
25363         CONST_POLY_INT_P.
25364         * rtx-vector-builder.h (rtx_vector_builder::step): Return a
25365         poly_wide_int instead of a wide_int.
25366         (rtx_vector_builder::apply_set): Take a poly_wide_int instead
25367         of a wide_int.
25368         * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
25369         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
25370         false for CONST_VECTORs that cannot be forced to memory.
25371         * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
25372         is too complex to force to memory, build it up from individual
25373         elements instead.
25375 2021-03-31  Jan Hubicka  <jh@suse.cz>
25377         PR lto/99447
25378         * cgraph.c (cgraph_node::release_body): Fix overactive check.
25380 2021-03-31  Christophe Lyon  <christophe.lyon@linaro.org>
25382         PR target/99786
25383         * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
25384         for V4HI and V2SI.
25386 2021-03-31  H.J. Lu  <hjl.tools@gmail.com>
25388         * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
25389         For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
25390         to SImode.
25391         (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
25392         "rep movsb/stosb" only for known sizes.
25393         * config/i386/i386-options.c (processor_cost_table): Use Ice
25394         Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
25395         Rapids and Alder Lake.
25396         * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
25397         * config/i386/x86-tune-costs.h (icelake_memcpy): New.
25398         (icelake_memset): Likewise.
25399         (icelake_cost): Likewise.
25400         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
25401         New.
25403 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
25405         PR target/98119
25406         * config/aarch64/aarch64.c
25407         (aarch64_vectorize_preferred_vector_alignment): Query the size
25408         of the provided SVE vector; do not assume that all SVE vectors
25409         have the same size.
25411 2021-03-31  Jan Hubicka  <jh@suse.cz>
25413         PR lto/99447
25414         * cgraph.c (cgraph_node::release_body): Remove all callers and
25415         references.
25416         * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
25417         * cgraphunit.c (cgraph_node::expand): And here.
25419 2021-03-31  Martin Liska  <mliska@suse.cz>
25421         * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
25422         and one negated condition.
25424 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
25425             Richard Sandiford  <richard.sandiford@arm.com>
25427         PR target/99813
25428         * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
25429         constraints on operands[2] and similarly 0 and rk constraints
25430         on operands[1] corresponding to that.
25432 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
25434         PR bootstrap/98860
25435         * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
25436         linker doesn't support DWARF sections new in DWARF5.
25437         * config/i386/i386-options.c (ix86_option_override_internal): Default
25438         to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
25439         targets.
25440         * config.in: Regenerated.
25441         * configure: Regenerated.
25443 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25445         PR target/99820
25446         * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
25447         available issue_info before using it.
25449 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25451         PR target/99822
25452         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
25453         in operand 1.
25455 2021-03-30  Xionghu Luo  <luoxhu@linux.ibm.com>
25457         PR target/99718
25458         * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
25459         (altivec_lvsl_reg_<mode>): ... this.
25460         (altivec_lvsr_reg): Change to ...
25461         (altivec_lvsr_reg_<mode>): ... this.
25462         * config/rs6000/predicates.md (vec_set_index_operand): New.
25463         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25464         Enable 32bit variable vec_insert for all TARGET_VSX.
25465         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
25466         Enable 32bit variable vec_insert for p9 and above.
25467         (rs6000_expand_vector_set_var_p8): Rename to ...
25468         (rs6000_expand_vector_set_var_p7): ... this.
25469         (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
25470         position.
25471         * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
25472         * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
25473         gen_altivec_lvsr_reg_di.
25475 2021-03-30  H.J. Lu  <hjl.tools@gmail.com>
25477         PR target/99744
25478         * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
25479         (__rdtscp): Likewise.
25481 2021-03-30  Tamar Christina  <tamar.christina@arm.com>
25483         PR tree-optimization/99825
25484         * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
25485         Reject non-mult 2 lanes.
25487 2021-03-30  Richard Earnshaw  <rearnsha@arm.com>
25489         PR target/99773
25490         * config/arm/arm.c (arm_file_start): Fix emission of
25491         Tag_ABI_VFP_args attribute.
25493 2021-03-30  Richard Biener  <rguenther@suse.de>
25495         PR tree-optimization/99824
25496         * stor-layout.c (set_min_and_max_values_for_integral_type):
25497         Assert the precision is within the bounds of
25498         WIDE_INT_MAX_PRECISION.
25499         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
25500         the outermost component ref only to lower the access size
25501         and initialize that from the access type.
25503 2021-03-30  Richard Sandiford  <richard.sandiford@arm.com>
25505         PR target/98136
25506         * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
25507         CONST_INTs to aarch64_expand_mov_immediate when called after RA.
25509 2021-03-30  Mihailo Stojanovic  <mihailo.stojanovic@typhoon-hil.com>
25511         * config/aarch64/aarch64.md
25512         (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
25513         attribute to disambiguate between SIMD and FP variants of the
25514         instruction.
25516 2021-03-29  Jan Hubicka  <hubicka@ucw.cz>
25518         * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
25519         (analyze_ssa_name_flags): Fix typo in comment.
25521 2021-03-29  Alex Coplan  <alex.coplan@arm.com>
25523         PR target/99216
25524         * config/aarch64/aarch64-sve-builtins.cc
25525         (function_builder::add_function): Add placeholder_p argument, use
25526         placeholder decls if this is set.
25527         (function_builder::add_unique_function): Instead of conditionally adding
25528         direct overloads, unconditionally add either a direct overload or a
25529         placeholder.
25530         (function_builder::add_overloaded_function): Set placeholder_p if we're
25531         using C++ overloads. Use the obstack for string storage instead
25532         of relying on the tree nodes.
25533         (function_builder::add_overloaded_functions): Don't return early for
25534         m_direct_overloads: we need to add placeholders.
25535         * config/aarch64/aarch64-sve-builtins.h
25536         (function_builder::add_function): Add placeholder_p argument.
25538 2021-03-29  Richard Biener  <rguenther@suse.de>
25540         PR tree-optimization/99807
25541         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
25542         assert below VEC_PERM handling.
25544 2021-03-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25546         PR target/99037
25547         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
25548         aarch64_simd_or_scalar_imm_zero to match zeroes.  Remove pattern
25549         matching const_int 0.
25550         (move_lo_quad_internal_be_<mode>): Likewise.
25551         (move_lo_quad_<mode>): Update for the above.
25552         * config/aarch64/iterators.md (VQ_2E): Delete.
25554 2021-03-29  Jakub Jelinek  <jakub@redhat.com>
25556         PR tree-optimization/99777
25557         * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
25558         types other than scalar integral types.
25560 2021-03-28  David Edelsohn  <dje.gcc@gmail.com>
25562         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
25563         XCOFF TLS reloc decorations.
25565 2021-03-28  Gerald Pfeifer  <gerald@pfeifer.com>
25567         * doc/analyzer.texi (Analyzer Internals): Update link to
25568         "A Memory Model for Static Analysis of C Programs".
25570 2021-03-26  David Edelsohn  <dje.gcc@gmail.com>
25572         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
25573         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
25574         Declare.
25575         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
25576         (rs6000_special_round_type_align): Recursively check innermost first
25577         field.
25579 2021-03-26  Jakub Jelinek  <jakub@redhat.com>
25581         PR debug/99334
25582         * dwarf2out.h (struct dw_fde_node): Add rule18 member.
25583         * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
25584         assignment with drap_reg active, queue reg save for hfp with offset 0
25585         and flush queued reg saves.  When handling a push with rule18,
25586         defer queueing reg save for hfp and just assert the offset is 0.
25587         (scan_trace): Assert that fde->rule18 is false.
25589 2021-03-26  Vladimir Makarov  <vmakarov@redhat.com>
25591         PR target/99766
25592         * ira-costs.c (record_reg_classes): Put case with
25593         CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
25594         * ira.c (ira_setup_alts): Ditto.
25595         * lra-constraints.c (process_alt_operands): Ditto.
25596         * recog.c (asm_operand_ok): Ditto.
25597         * reload.c (find_reloads): Ditto.
25599 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25601         * config/aarch64/aarch64-protos.h
25602         (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
25603         (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
25604         * config/aarch64/aarch64.c (generic_addrcost_table): Update
25605         accordingly, using the same costs as for post_modify.
25606         (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
25607         (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
25608         (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
25609         (a64fx_addrcost_table): Likewise.
25610         (neoversev1_addrcost_table): New.
25611         (neoversev1_tunings): Use neoversev1_addrcost_table.
25612         (aarch64_address_cost): Use the new post_modify costs for CImode
25613         and XImode.
25615 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25617         * config/aarch64/aarch64.opt
25618         (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
25619         * doc/invoke.texi: Document it.
25620         * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
25621         (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
25622         (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
25623         (aarch64_vec_issue_info): New structures.
25624         (cpu_vector_cost): Write comments above the variables rather
25625         than to the side.
25626         (cpu_vector_cost::issue_info): New member variable.
25627         * config/aarch64/aarch64.c: Include gimple-pretty-print.h
25628         and tree-ssa-loop-niter.h.
25629         (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
25630         (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
25631         (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
25632         (thunderx3t110_vector_cost): Initialize issue_info to null.
25633         (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
25634         (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
25635         (neoversev1_vector_cost): Use them.
25636         (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
25637         (aarch64_vector_costs::saw_sve_only_op): New member variable.
25638         (aarch64_vector_costs::num_vector_iterations): Likewise.
25639         (aarch64_vector_costs::scalar_ops): Likewise.
25640         (aarch64_vector_costs::advsimd_ops): Likewise.
25641         (aarch64_vector_costs::sve_ops): Likewise.
25642         (aarch64_vector_costs::seen_loads): Likewise.
25643         (aarch64_simd_vec_costs_for_flags): New function.
25644         (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
25645         Count the number of predicate operations required by SVE WHILE
25646         instructions.
25647         (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
25648         (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
25649         (aarch64_count_ops): Likewise.
25650         (aarch64_add_stmt_cost): Record whether see an SVE operation
25651         that cannot currently be implementing using Advanced SIMD.
25652         Record issue information about the scalar, Advanced SIMD
25653         and (where relevant) SVE versions of a loop.
25654         (aarch64_vec_op_count::dump): New function.
25655         (aarch64_sve_op_count::dump): Likewise.
25656         (aarch64_estimate_min_cycles_per_iter): Likewise.
25657         (aarch64_adjust_body_cost): If issue information is available,
25658         try to compare the issue rates of the various loop implementations
25659         and increase or decrease the vector body cost accordingly.
25661 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25663         * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
25664         Assume a zero cost for induction phis.
25666 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25668         * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
25669         function.
25670         (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
25671         vector comparisons.
25673 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25675         * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
25676         New function.
25677         (aarch64_add_stmt_cost): Call it.
25679 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25681         * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
25682         New tuning parameter.
25683         * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
25684         (aarch64_estimated_sve_vq): New function.
25685         (aarch64_vector_costs::analyzed_vinfo): New member variable.
25686         (aarch64_vector_costs::is_loop): Likewise.
25687         (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
25688         (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
25689         (aarch64_record_potential_advsimd_unrolling): New function.
25690         (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
25691         (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
25692         aarch64_analyze_bb_vinfo on the first use of a costs structure.
25693         Detect whether we're vectorizing a loop for SVE that might be
25694         completely unrolled if it used Advanced SIMD instead.
25695         (aarch64_adjust_body_cost_for_latency): New function.
25696         (aarch64_finish_cost): Call it.
25698 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25700         * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
25701         (aarch64_init_cost): New function.
25702         (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
25703         the default unsigned[3].
25704         (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
25705         (TARGET_VECTORIZE_INIT_COST): Override.
25706         (TARGET_VECTORIZE_FINISH_COST): Likewise.
25707         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
25709 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25711         * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
25712         (neoversev1_sve_vector_cost): New cost structures.
25713         (neoversev1_vector_cost): Likewise.
25714         (neoversev1_tunings): Use them.  Enable use_new_vector_costs.
25716 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25718         * config/aarch64/aarch64-protos.h
25719         (sve_vec_cost::scatter_store_elt_cost): New member variable.
25720         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
25721         accordingly, taking the cost from the cost of a scalar_store.
25722         (a64fx_sve_vector_cost): Likewise.
25723         (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
25725 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25727         * config/aarch64/aarch64-protos.h
25728         (simd_vec_cost::store_elt_extra_cost): New member variable.
25729         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
25730         accordingly, using the vec_to_scalar cost for the new field.
25731         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
25732         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
25733         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
25734         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
25735         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
25736         (thunderx3t110_advsimd_vector_cost): Likewise.
25737         (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
25739 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25741         * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
25742         (simd_vec_cost::ld3_st3_permute_cost): New member variables.
25743         (simd_vec_cost::ld4_st4_permute_cost): Likewise.
25744         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
25745         accordingly, using zero for the new costs.
25746         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
25747         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
25748         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
25749         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
25750         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
25751         (thunderx3t110_advsimd_vector_cost): Likewise.
25752         (aarch64_ld234_st234_vectors): New function.
25753         (aarch64_adjust_stmt_cost): Likewise.
25754         (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
25755         the new vector costs.
25757 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25759         * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
25760         derived class of simd_vec_cost.  Add information about CLAST[AB]
25761         and FADDA instructions.
25762         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
25763         accordingly, using the vec_to_scalar costs for the new fields.
25764         (a64fx_sve_vector_cost): Likewise.
25765         (aarch64_reduc_type): New function.
25766         (aarch64_sve_in_loop_reduction_latency): Likewise.
25767         (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
25768         Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
25769         that occur in the loop body.
25770         (aarch64_add_stmt_cost): Update call accordingly.
25772 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
25774         * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
25775         New tuning flag.
25776         * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
25777         above the fields rather than to the right.
25778         (simd_vec_cost::reduc_i8_cost): New member variable.
25779         (simd_vec_cost::reduc_i16_cost): Likewise.
25780         (simd_vec_cost::reduc_i32_cost): Likewise.
25781         (simd_vec_cost::reduc_i64_cost): Likewise.
25782         (simd_vec_cost::reduc_f16_cost): Likewise.
25783         (simd_vec_cost::reduc_f32_cost): Likewise.
25784         (simd_vec_cost::reduc_f64_cost): Likewise.
25785         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
25786         accordingly, using the vec_to_scalar_cost for the new fields.
25787         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
25788         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
25789         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
25790         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
25791         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
25792         (thunderx3t110_advsimd_vector_cost): Likewise.
25793         (aarch64_use_new_vector_costs_p): New function.
25794         (aarch64_simd_vec_costs): New function, split out from...
25795         (aarch64_builtin_vectorization_cost): ...here.
25796         (aarch64_is_reduction): New function.
25797         (aarch64_detect_vector_stmt_subtype): Likewise.
25798         (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
25799         using the new vector costs.
25801 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
25803         PR ipa/99466
25804         * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
25805         TLS declarations as public.
25807 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
25809         * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
25810         * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
25811         * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
25812         * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
25813         * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
25814         * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
25815         * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
25816         * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
25817         * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
25819 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
25821         PR d/91595
25822         * config.gcc (*-*-cygwin*): Add winnt-d.o
25823         (*-*-mingw*): Likewise.
25824         * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
25825         * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
25826         * config/i386/t-cygming: Add winnt-d.o.
25827         * config/i386/winnt-d.c: New file.
25829 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
25831         * config/freebsd-d.c: Include memmodel.h.
25833 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
25835         PR d/99691
25836         * config.gcc (*-*-openbsd*): Add openbsd-d.o.
25837         * config/t-openbsd: Add openbsd-d.o.
25838         * config/openbsd-d.c: New file.
25840 2021-03-25  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
25842         PR tree-optimization/96974
25843         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
25844         with graceful exit.
25846 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
25848         Revert:
25849         2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
25851         PR target/98209
25852         PR target/99744
25853         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
25854         always_inline in system headers.
25856 2021-03-25  Kewen Lin  <linkw@linux.ibm.com>
25858         * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
25860 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
25862         PR c++/99565
25863         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
25864         * fold-const.c (operand_compare::operand_equal_p): Don't compare
25865         field offsets if OEP_ADDRESS_OF_SAME_FIELD.
25867 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
25869         PR target/98209
25870         PR target/99744
25871         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
25872         always_inline in system headers.
25874 2021-03-25  Richard Biener  <rguenther@suse.de>
25876         PR tree-optimization/99746
25877         * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
25878         the scalar stmt as patterned.  Instead set up required things
25879         manually.
25881 2021-03-25  Xionghu Luo  <luoxhu@linux.ibm.com>
25883         * config/rs6000/rs6000.c (power8_costs): Change l2 cache
25884         from 256 to 512.
25886 2021-03-24  Martin Liska  <mliska@suse.cz>
25888         PR target/99753
25889         * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
25890         error.
25891         * config/i386/i386-options.c (ix86_option_override_internal):
25892         Add run-time assert.
25894 2021-03-24  Martin Jambor  <mjambor@suse.cz>
25896         PR ipa/99122
25897         * ipa-cp.c (initialize_node_lattices): Mark as bottom all
25898         parameters with unknown type.
25899         (ipacp_value_safe_for_type): New function.
25900         (propagate_vals_across_arith_jfunc): Verify that the constant type
25901         can be used for a type of the formal parameter.
25902         (propagate_vals_across_ancestor): Likewise.
25903         (propagate_scalar_across_jump_function): Likewise.  Pass the type
25904         also to propagate_vals_across_ancestor.
25906 2021-03-24  Christophe Lyon  <christophe.lyon@linaro.org>
25908         PR target/99727
25909         * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
25910         constraint.
25911         (movmisalign<mode>_mve_load): Likewise.
25913 2021-03-24  Jakub Jelinek  <jakub@redhat.com>
25915         PR target/99724
25916         * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
25917         movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
25919 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
25921         * doc/sourcebuild.texi (sysconf): New effective target.
25923 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
25925         * config/i386/predicates.md (reg_or_const_vec_operand): New.
25926         * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
25927         the now *-prefixed insn_and_split, turn the splitter const vec
25928         into an input for the insn, making it an ignored immediate for
25929         non-split cases, and loaded into the scratch register
25930         otherwise.
25932 2021-03-23  Vladimir N. Makarov  <vmakarov@redhat.com>
25934         PR target/99581
25935         * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
25936         Use define_relaxed_memory_constraint for them.
25938 2021-03-23  Iain Sandoe  <iain@sandoe.co.uk>
25940         PR target/99733
25941         * config/host-darwin.c (darwin_gt_pch_use_address): Add a
25942         colon to the diagnostic message.
25944 2021-03-23  Ilya Leoshkevich  <iii@linux.ibm.com>
25946         * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
25947         set_info's uses.
25948         (try_fwprop_subst_note): Use set_info instead of insn_info.
25949         (try_fwprop_subst_pattern): Likewise.
25950         (try_fwprop_subst_notes): Likewise.
25951         (try_fwprop_subst): Likewise.
25952         (forward_propagate_subreg): Likewise.
25953         (forward_propagate_and_simplify): Likewise.
25954         (forward_propagate_into): Likewise.
25955         * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
25956         method.
25957         (set_info::single_nondebug_insn_use): Likewise.
25958         (set_info::single_phi_use): Likewise.
25959         * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
25960         method.
25961         (set_info::single_nondebug_insn_use): Likewise.
25962         (set_info::single_phi_use): Likewise.
25964 2021-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
25966         * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
25968 2021-03-23  Jakub Jelinek  <jakub@redhat.com>
25970         PR target/99540
25971         * config/aarch64/aarch64.c (aarch64_add_offset): Tell
25972         expand_mult to perform an unsigned rather than a signed
25973         multiplication.
25975 2021-03-23  H.J. Lu  <hjl.tools@gmail.com>
25977         PR target/99704
25978         * config/i386/cpuid.h (__cpuid): Add __volatile__.
25979         (__cpuid_count): Likewise.
25981 2021-03-23  Richard Biener  <rguenther@suse.de>
25983         PR tree-optimization/99721
25984         * tree-vect-slp.c (vect_slp_analyze_node_operations):
25985         Make sure we can schedule the node.
25987 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
25989         * config/riscv/riscv.c (riscv_subword): Take endianness into
25990         account when calculating the byte offset.
25992 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
25994         * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
25995         * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
25996         (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
25997         (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
25998         (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
25999         new predicate "subreg_lowpart_operator"
26001 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
26003         * config/riscv/riscv.c (riscv_swap_instruction): New function
26004         to byteswap an SImode rtx containing an instruction.
26005         (riscv_trampoline_init): Byteswap the generated instructions
26006         when needed.
26008 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
26010         * common/config/riscv/riscv-common.c
26011         (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
26012         * config.gcc (riscv32be-*, riscv64be-*): Set
26013         TARGET_BIG_ENDIAN_DEFAULT to 1.
26014         * config/riscv/elf.h (LINK_SPEC): Change -melf* value
26015         depending on default endianness.
26016         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
26017         * config/riscv/linux.h (LINK_SPEC): Likewise.
26018         * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
26019         default endianness.
26020         * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
26022 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
26024         * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
26025         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
26026         * config/riscv/linux.h (LINK_SPEC): Likewise.
26027         * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
26028         -mlittle-endian.
26029         (BYTES_BIG_ENDIAN): Handle big endian.
26030         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
26031         * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
26032         options.
26033         * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
26035 2021-03-23  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
26037         * regcprop.c (find_oldest_value_reg): Ask target whether
26038           different mode is fine for replacement register.
26040 2021-03-23  Aldy Hernandez  <aldyh@redhat.com>
26042         PR tree-optimization/99296
26043         * value-range.cc (irange::irange_set_1bit_anti_range): New.
26044         (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
26045         * value-range.h (irange::irange_set_1bit_anti_range): New.
26047 2021-03-22  Vladimir N. Makarov  <vmakarov@redhat.com>
26049         PR target/99581
26050         * config/aarch64/constraints.md (UtQ): Use
26051         define_relaxed_memory_constraint for it.
26052         * doc/md.texi (define_relaxed_memory_constraint): Describe it.
26053         * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
26054         * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
26055         (have_relaxed_memory_constraints): New static var.
26056         (relaxed_memory_start, relaxed_memory_end): Ditto.
26057         (add_constraint): Add arg is_relaxed_memory.  Check name for
26058         relaxed memory.  Set up is_relaxed_memory in constraint_data and
26059         have_relaxed_memory_constraints.  Adjust calls.
26060         (choose_enum_order): Process relaxed memory.
26061         (write_tm_preds_h): Ditto.
26062         (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
26063         * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
26064         * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
26065         * ira-lives.c (single_reg_class): Use
26066         insn_extra_relaxed_memory_constraint.
26067         * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
26068         * lra-constraints.c (valid_address_p): Use
26069         insn_extra_relaxed_memory_constraint instead of other memory
26070         constraints.
26071         (process_alt_operands): Process CT_RELAXED_MEMORY.
26072         (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
26073         * recog.c (asm_operand_ok, preprocess_constraints): Process
26074         CT_RELAXED_MEMORY.
26075         * reload.c (find_reloads): Ditto.
26076         * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
26077         * stmt.c (parse_input_constraint): Use
26078         insn_extra_relaxed_memory_constraint.
26080 2021-03-22  Segher Boessenkool  <segher@kernel.crashing.org>
26082         PR target/97926
26083         * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
26084         there are no NaNs.
26086 2021-03-22  Alex Coplan  <alex.coplan@arm.com>
26088         PR target/97252
26089         * config/arm/arm-protos.h (neon_make_constant): Add generate
26090         argument to guard emitting insns, default to true.
26091         * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
26092         CONST_VECTORs which neon_make_constant can't handle.
26093         (neon_vdup_constant): Add generate argument, avoid emitting
26094         insns if it's not set.
26095         (neon_make_constant): Plumb new generate argument through.
26096         * config/arm/constraints.md (Ui): New. Use it...
26097         * config/arm/mve.md (*mve_mov<mode>): ... here.
26098         * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
26099         synthesize constants.
26101 2021-03-22  Richard Biener  <rguenther@suse.de>
26103         * debug.h: Add deprecation warning.
26105 2021-03-22  Richard Biener  <rguenther@suse.de>
26107         PR tree-optimization/99694
26108         * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
26109         PHI result.
26111 2021-03-22  Kito Cheng  <kito.cheng@sifive.com>
26113         PR target/99702
26114         * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
26115         after type checking.
26117 2021-03-22  Jakub Jelinek  <jakub@redhat.com>
26119         PR debug/99562
26120         PR debug/66728
26121         * dwarf2out.c (get_full_len): Use get_precision rather than
26122         min_precision.
26123         (add_const_value_attribute): Make sure add_AT_wide argument has
26124         precision prec rather than some very wide one.
26126 2021-03-22  Kewen Lin  <linkw@linux.ibm.com>
26128         * config/rs6000/rs6000.md (*rotldi3_insert_sf,
26129         *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
26130         floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
26131         floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
26132         *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
26133         fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
26134         *round32<mode>2_fprs, *roundu32<mode>2_fprs,
26135         *fix_trunc<mode>si2_internal): Fix empty split condition.
26136         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
26137         vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
26138         *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
26139         *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
26141 2021-03-22  Xionghu Luo  <luoxhu@linux.ibm.com>
26143         PR target/98914
26144         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
26145         Convert idx to DImode.
26146         (rs6000_expand_vector_set_var_p8): Likewise.
26148 2021-03-21  Jakub Jelinek  <jakub@redhat.com>
26150         PR debug/99388
26151         * dwarf2out.c (insert_float): Change return type from void to
26152         unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
26153         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
26154         Adjust callers.
26156 2021-03-20  H.J. Lu  <hjl.tools@gmail.com>
26158         PR target/99679
26159         * config/i386/i386.c (construct_container): Check cfun != NULL
26160         before accessing silent_p.
26162 2021-03-20  Ahamed Husni  <ahamedhusni73@gmail.com>
26164         * asan.c: Fix typos in comments.
26166 2021-03-20  Vladimir N. Makarov  <vmakarov@redhat.com>
26168         PR rtl-optimization/99680
26169         * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
26170         (process_address_1): Check empty constraint before using
26171         CONSTRAINT_LEN.
26173 2021-03-19  Pat Haugen  <pthaugen@linux.ibm.com>
26175         * config/rs6000/rs6000.c (power10_cost): New.
26176         (rs6000_option_override_internal): Set Power10 costs.
26177         (rs6000_issue_rate): Set Power10 issue rate.
26178         * config/rs6000/power10.md: Rewrite for Power10.
26180 2021-03-19  Vladimir N. Makarov  <vmakarov@redhat.com>
26182         PR target/99663
26183         * lra-constraints.c (process_address_1): Don't use unknown
26184         constraint for address constraint.
26186 2021-03-19  Iain Sandoe  <iain@sandoe.co.uk>
26188         PR target/99661
26189         * config.gcc (powerpc-*-darwin8): Delete the reference to
26190         the now removed darwin8.h.
26192 2021-03-19  Olivier Hainque  <hainque@adacore.com>
26194         PR target/99660
26195         * config/vxworksae.h (VX_CPU_PREFIX): Define.
26197 2021-03-19  John David Anglin  <danglin@gcc.gnu.org>
26199         * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
26201 2021-03-19  Tamar Christina  <tamar.christina@arm.com>
26203         PR tree-optimization/99656
26204         * tree-vect-slp-patterns.c (linear_loads_p,
26205         complex_add_pattern::matches, is_eq_or_top,
26206         vect_validate_multiplication, complex_mul_pattern::matches,
26207         complex_fms_pattern::matches): Remove complex_perm_kinds_t.
26208         * tree-vectorizer.h: (complex_load_perm_t): Removed.
26209         (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
26210         complex_load_perm_t.
26212 2021-03-19  H.J. Lu  <hjl.tools@gmail.com>
26214         PR target/99652
26215         * config/i386/i386-options.c (ix86_init_machine_status): Set
26216         silent_p to true.
26217         * config/i386/i386.c (init_cumulative_args): Set silent_p to
26218         false.
26219         (construct_container): Return early for return and argument
26220         errors if silent_p is true.
26221         * config/i386/i386.h (machine_function): Add silent_p.
26223 2021-03-19  Jakub Jelinek  <jakub@redhat.com>
26225         PR target/99593
26226         * config/arm/constraints.md (Ds): New constraint.
26227         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
26228         constraint instead of w,Dm.
26230 2021-03-19  Andrew Stubbs  <ams@codesourcery.com>
26232         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
26233         in error message.
26235 2021-03-19  Eric Botcazou  <ebotcazou@adacore.com>
26237         PR middle-end/99641
26238         * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
26239         array type, do the computation of the current position in sizetype.
26241 2021-03-18  Vladimir N. Makarov  <vmakarov@redhat.com>
26243         PR target/99422
26244         * lra-constraints.c (process_address_1): Use lookup_constraint
26245         only for a single constraint.
26247 2021-03-18  Martin Sebor  <msebor@redhat.com>
26249         PR middle-end/99502
26250         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
26251         (inbounds_memaccess_p): ...to this.  Check the ending offset of
26252         the accessed member.
26254 2021-03-18  Andrew Stubbs  <ams@codesourcery.com>
26256         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
26257           %> quote markers to error messages.
26258         (gcn_goacc_validate_dims): Likewise.
26259         (gcn_conditional_register_usage): Remove exclaimation mark from error
26260         message.
26261         (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
26263 2021-03-18  Jan Hubicka  <hubicka@ucw.cz>
26265         * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
26266         integer divides1.
26268 2021-03-18  Sinan Lin  <sinan@isrc.iscas.ac.cn>
26269             Kito Cheng  <kito.cheng@sifive.com>
26271         * config/riscv/riscv.c (riscv_block_move_straight): Change type
26272         to unsigned HOST_WIDE_INT for parameter and local variable with
26273         HOST_WIDE_INT type.
26274         (riscv_adjust_block_mem): Ditto.
26275         (riscv_block_move_loop): Ditto.
26276         (riscv_expand_block_move): Ditto.
26278 2021-03-18  Nick Clifton  <nickc@redhat.com>
26280         * config/v850/v850.c (construct_restore_jr): Increase static
26281          buffer size.
26282         (construct_save_jarl): Likewise.
26283         * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
26285 2021-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26287         * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
26288         (aarch64_override_options_internal): Use it.
26289         (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
26290         tune_flags.
26292 2021-03-17  Sandra Loosemore  <sandra@codesourcery.com>
26294         * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
26295         error message format issues.
26296         (nios2_option_override): Likewise.
26297         (nios2_expand_fpu_builtin): Likewise.
26298         (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
26299         truncation warning.
26300         (nios2_expand_custom_builtin): More error message format fixes.
26301         (nios2_expand_rdwrctl_builtin): Likewise.
26302         (nios2_expand_rdprs_builtin): Likewise.
26303         (nios2_expand_eni_builtin): Likewise.
26304         (nios2_expand_builtin): Likewise.
26305         (nios2_register_custom_code): Likewise.
26306         (nios2_valid_target_attribute_rec): Likewise.
26307         (nios2_add_insn_asm): Fix uninitialized variable warning.
26309 2021-03-17  Jan Hubicka  <jh@suse.cz>
26311         * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
26312         of gather to match reality.
26313         * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
26315 2021-03-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26317         * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
26318         to compare against CC_REG rather than NE.
26320 2021-03-17  H.J. Lu  <hjl.tools@gmail.com>
26322         PR target/99504
26323         * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
26324         inline assembly statements.
26325         (ix86_print_operand): Update 'P' handling for -fno-plt.
26327 2021-03-17  Tamar Christina  <tamar.christina@arm.com>
26329         PR target/99542
26330         * config/aarch64/aarch64.c
26331         (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
26333 2021-03-16  Segher Boessenkool  <segher@kernel.crashing.org>
26335         PR target/98092
26336         * config/rs6000/predicates.md (branch_comparison_operator): Allow
26337         ordered and unordered for CCFPmode, if flag_finite_math_only.
26339 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
26341         PR target/99600
26342         * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
26343         rather than ASHIFT.
26344         * config/i386/i386.md (mult by 1248 into ashift): New splitter.
26346 2021-03-16  Martin Liska  <mliska@suse.cz>
26348         PR target/99592
26349         * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
26350         cl_optimization_compare function.
26352 2021-03-16  Ilya Leoshkevich  <iii@linux.ibm.com>
26354         * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
26355         as "v".
26357 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
26359         PR target/99563
26360         * config/i386/i386.h (struct machine_function): Add
26361         has_explicit_vzeroupper bitfield.
26362         * config/i386/i386-expand.c (ix86_expand_builtin): Set
26363         cfun->machine->has_explicit_vzeroupper when expanding
26364         IX86_BUILTIN_VZEROUPPER.
26365         * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
26366         Do the mode switching only when TARGET_VZEROUPPER, expensive
26367         optimizations turned on and not optimizing for size.
26368         (pass_insert_vzeroupper::gate): Enable even when
26369         cfun->machine->has_explicit_vzeroupper is set.
26371 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
26373         PR target/99542
26374         * config/aarch64/aarch64.c
26375         (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
26376         definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
26377         instead of DECL_ARGUMENTS.  Ignore types for uniform arguments.
26379 2021-03-15  Richard Biener  <rguenther@suse.de>
26381         PR tree-optimization/98834
26382         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
26383         subsetting by truncating the access size.
26385 2021-03-15  Jan Hubicka  <hubicka@ucw.cz>
26387         * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
26388         * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
26389         of znver2_cost.
26391 2021-03-15  Martin Liska  <mliska@suse.cz>
26393         * spellcheck.c: Add missing comma in initialization.
26395 2021-03-14  Uroš Bizjak  <ubizjak@gmail.com>
26397         * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
26398         alternative 2 and alternative 1 with alternative 3 using
26399         YW register constraint.
26400         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
26401         using YW register constraint.
26402         (*vec_extractv16qi_zext): Ditto.
26403         (*vec_extractv4si): Merge alternatives 4 and 5
26404         using Yw register constraint.
26405         (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
26407 2021-03-13  Martin Sebor  <msebor@redhat.com>
26409         PR tree-optimization/99489
26410         * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
26411         is not a call statement.
26413 2021-03-13  Jakub Jelinek  <jakub@redhat.com>
26415         PR tree-optimization/99544
26416         * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
26417         if for vector types multiplication can't be done in type's mode.
26419 2021-03-12  Eric Botcazou  <ebotcazou@adacore.com>
26421         PR target/99422
26422         * config/sparc/constraints.md (w): Rename to...
26423         (W): ... this and ditch previous implementation.
26424         * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
26425         (*movdf_insn_sp64): Likewise.
26426         (*mov<VM64:mode>_insn_sp64): Likewise.
26427         * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
26428         w with W.
26429         (atomic_compare_and_swap_leon3_1): Likewise.
26430         (*atomic_compare_and_swapdi_v8plus): Likewise.
26431         * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
26432         architecture and add missing address validity check during LRA.
26434 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
26436         PR fortran/98858
26437         * gimplify.c (omp_add_variable): Handle NULL_TREE as size
26438         occuring for assumed-size arrays in use_device_{ptr,addr}.
26440 2021-03-12  Jakub Jelinek  <jakub@redhat.com>
26442         PR target/99321
26443         * config/i386/constraints.md (YW): New internal constraint.
26444         * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
26445         (*<sse2_avx2>_<insn><mode>3<mask_name>,
26446         *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
26447         *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
26448         constraints.
26449         (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
26450         (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
26451         avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
26452         into one, use Yw instead of former x,v.
26453         (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
26454         the last alternative.
26455         (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
26456         <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
26457         *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
26458         <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
26459         into one, use <v_Yw> instead of former x,v.
26460         (avx2_interleave_highv32qi<mask_name>,
26461         vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
26462         constraints.  Add && <mask_avx512bw_condition> to condition.
26463         (avx2_interleave_lowv32qi<mask_name>,
26464         vec_interleave_lowv16qi<mask_name>,
26465         avx2_interleave_highv16hi<mask_name>,
26466         vec_interleave_highv8hi<mask_name>,
26467         avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
26468         avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
26469         avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
26470         avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
26471         *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
26472         Yw instead of v in constraints.
26473         * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
26474         (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
26475         instead of Yv in constraints.
26476         (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
26477         *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
26478         *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
26479         mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
26480         *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
26481         constraints.
26482         (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
26483         *mmx_pextrb_zext): Use YW instead of Yv in constraints.
26484         (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
26485         (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
26486         two, one with just x, another isa avx512vl with v.
26488 2021-03-12  Martin Liska  <mliska@suse.cz>
26490         * doc/invoke.texi: Add missing param documentation.
26492 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
26494         PR analyzer/96374
26495         * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
26496         analyzer/trimmed-graph.o.
26497         * doc/analyzer.texi (Analyzer Paths): Rewrite description of
26498         feasibility checking to reflect new implementation.
26499         * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
26500         option.
26501         * shortest-paths.h (shortest_paths::get_shortest_distance): New.
26503 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
26505         * digraph.cc (selftest::test_shortest_paths): Update
26506         shortest_paths init for new param.  Add test of
26507         SPS_TO_GIVEN_TARGET.
26508         * shortest-paths.h (enum shortest_path_sense): New.
26509         (shortest_paths::shortest_paths): Add "sense" param.
26510         Update for renamings.  Generalize to use "sense" param.
26511         (shortest_paths::get_shortest_path): Rename param.
26512         (shortest_paths::m_sense): New field.
26513         (shortest_paths::m_prev): Rename...
26514         (shortest_paths::m_best_edge): ...to this.
26515         (shortest_paths::get_shortest_path): Update for renamings.
26516         Conditionalize flipping of path on sense of traversal.
26518 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
26520         * digraph.cc (selftest::test_shortest_paths): Add test coverage
26521         for paths from B and C.
26522         * shortest-paths.h (shortest_paths::shortest_paths): Handle
26523         unreachable nodes, rather than asserting.
26525 2021-03-11  David Edelsohn  <dje.gcc@gmail.com>
26527         PR target/99094
26528         * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
26529         xcoff_tbss_section_name.
26530         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
26531         * xcoffout.c (xcoff_tbss_section_name): Delete.
26532         * xcoffout.h (xcoff_tbss_section_name): Delete.
26534 2021-03-11  Richard Biener  <rguenther@suse.de>
26536         PR tree-optimization/99523
26537         * tree-cfg.c (dump_function_to_file): Dump SSA names
26538         w/o identifier to the decls section as well, not only those
26539         without a VAR_DECL.
26541 2021-03-11  Jakub Jelinek  <jakub@redhat.com>
26543         PR ipa/99517
26544         * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
26545         function calls with lhs fail if the lhs don't have compatible types.
26547 2021-03-11  Hans-Peter Nilsson  <hp@axis.com>
26549         * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
26550         Change FRAME_POINTER_REGNUM to correspond to a new faked
26551         register faked_fp, part of GENNONACR_REGS like faked_ap.
26552         (CRIS_FAKED_REGS_CONTENTS): New helper macro.
26553         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
26554         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
26555         (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
26556         * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
26557         register.
26558         (CRIS_REAL_FP_REGNUM): New constant.
26559         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
26560         for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
26561         (cris_initial_elimination_offset): Handle elimination changes
26562         to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
26563         and add one from FRAME_POINTER_REGNUM to
26564         HARD_FRAME_POINTER_REGNUM.
26565         (cris_expand_prologue, cris_expand_epilogue): Emit code for
26566         hard_frame_pointer_rtx instead of frame_pointer_rtx.
26568 2021-03-10  David Edelsohn  <dje.gcc@gmail.com>
26570         PR target/99492
26571         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
26572         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
26574 2021-03-10  Vladimir N. Makarov  <vmakarov@redhat.com>
26576         PR target/99422
26577         * lra-constraints.c (process_address_1): Don't check unknown
26578         constraint, use X for empty constraint.
26580 2021-03-10  Alex Coplan  <alex.coplan@arm.com>
26582         * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
26583         Fix typo in comment describing "is_ha" argument.
26585 2021-03-10  John David Anglin  <danglin@gcc.gnu.org>
26587         * doc/sourcebuild.texi: Document LRA target selector.
26589 2021-03-10  David Malcolm  <dmalcolm@redhat.com>
26591         * doc/ux.texi: Add subsection contrasting interactive versus
26592         batch usage of GCC.
26594 2021-03-10  Joel Hutton  <joel.hutton@arm.com>
26596         PR target/99102
26597         * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
26598         check condition.
26599         (vectorizable_load): Fix gather load mask check condition.
26601 2021-03-10  Richard Biener  <rguenther@suse.de>
26603         PR tree-optimization/99510
26604         * tree.c (check_aligned_type): Check that the candidate
26605         has TYPE_USER_ALIGN set instead of matching with the
26606         original type.
26608 2021-03-10  Eric Botcazou  <ebotcazou@adacore.com>
26610         * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
26611         float and vector integer modes only if the mode is not larger.
26613 2021-03-10  Hans-Peter Nilsson  <hp@axis.com>
26615         * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
26617 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
26619         * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
26620         constraints > 9.
26621         * ira-lives.c (single_reg_class): Ditto.
26623 2021-03-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26625         * config.gcc (aarch64-*-rtems*): Include general rtems.h after
26626         the architecture-specific rtems.h.
26627         (aarch64-*-rtems*): Likewise.
26628         (arm*-*-rtems*): Likewise.
26629         (epiphany-*-rtems*): Likewise.
26630         (riscv*-*-rtems*): Likewise.
26632 2021-03-09  Jakub Jelinek  <jakub@redhat.com>
26634         PR tree-optimization/99305
26635         * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
26636         before integer_all_onesp instead of vice versa.
26638 2021-03-09  Richard Earnshaw  <rearnsha@arm.com>
26640         * common/config/arm/arm-common.c (arm_config_default): Change type
26641         of 'i' to unsigned.
26643 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
26645         PR target/99454
26646         * lra-constraints.c (process_address_1): Process constraint 'g'
26647         separately and digital constraints containing more one digit.
26649 2021-03-09  Nick Clifton  <nickc@redhat.com>
26651         * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
26652         (DWARF"_DEBUGGING_INFO): Define.
26654 2021-03-09  Eric Botcazou  <ebotcazou@adacore.com>
26656         PR c++/90448
26657         * calls.c (initialize_argument_information): When the argument
26658         is passed by reference, do not make a copy in a thunk only if
26659         the argument is already in memory.  Remove redundant test for
26660         the case of callee copy.
26662 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
26664         PR target/99454
26665         * lra-constraints.c (process_address_1): Process 0..9 constraints
26666         in process_address_1.
26668 2021-03-09  Andreas Krebbel  <krebbel@linux.ibm.com>
26670         * config/s390/s390.c (struct s390_processor processor_table):
26671         Binutils name string must not be empty.
26673 2021-03-09  Claudiu Zissulescu  <claziss@synopsys.com>
26675         * config/arc/arc.c (arc_attr_type): Remove function.
26677 2021-03-09  Martin Liska  <mliska@suse.cz>
26679         PR target/99464
26680         * config/i386/i386-options.c (ix86_option_override_internal):
26681         Set isa_flags for OPTS argument and not for the global
26682         global_options.
26684 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
26686         * config/rs6000/predicates.md (ds_form_mem_operand): Check
26687         in correct code.
26689 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
26691         PR target/99070
26692         * config/rs6000/predicates.md (ds_form_mem_operand) New
26693         predicate.
26694         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
26695         ds_form_mem_operand in ld/lwa patterns.
26696         * config/rs6000/fusion.md: Regenerate file.
26698 2021-03-08  Martin Sebor  <msebor@redhat.com>
26700         PR middle-end/98266
26701         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
26702         (array_bounds_checker::check_array_bounds): Call it.
26704 2021-03-08  Martin Sebor  <msebor@redhat.com>
26706         PR middle-end/97631
26707         * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
26708         (handle_builtin_stxncpy_strncat): Rename locals.  Determine
26709         destination size from allocation calls.  Issue a more appropriate
26710         kind of warning.
26711         (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
26712         (handle_builtin_memset): Same.
26714 2021-03-08  Peter Bergner  <bergner@linux.ibm.com>
26716         PR target/98959
26717         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
26718         to ensure we do not have an Altivec style address.
26719         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
26720         an Altivec style address.
26721         (*vsx_le_perm_store_<mode>): Likewise.
26722         (splitters after *vsx_le_perm_store_<mode>): Likewise.
26723         (vsx_load_<mode>): Disable special expander if passed an Altivec
26724         style address.
26725         (vsx_store_<mode>): Likewise.
26727 2021-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26729         PR target/99437
26730         * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
26731         (aarch64_simd_shift_imm_vec_hi): Likewise.
26732         (aarch64_simd_shift_imm_vec_si): Likewise.
26733         (aarch64_simd_shift_imm_vec_di): Likewise.
26734         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
26735         predicate from above.
26736         (aarch64_shrn<mode>_insn_be): Likewise.
26737         (aarch64_rshrn<mode>_insn_le): Likewise.
26738         (aarch64_rshrn<mode>_insn_be): Likewise.
26739         (aarch64_shrn2<mode>_insn_le): Likewise.
26740         (aarch64_shrn2<mode>_insn_be): Likewise.
26741         (aarch64_rshrn2<mode>_insn_le): Likewise.
26742         (aarch64_rshrn2<mode>_insn_be): Likewise.
26744 2021-03-08  Vladimir N. Makarov  <vmakarov@redhat.com>
26746         PR target/99422
26747         * lra-constraints.c (skip_contraint_modifiers): New function.
26748         (process_address_1): Use it before lookup_constraint call.
26750 2021-03-08  Martin Liska  <mliska@suse.cz>
26752         PR target/99463
26753         * config/i386/i386-options.c (ix86_option_override_internal):
26754         Enable UINTR and HRESET for -march that supports it.
26756 2021-03-08  Ilya Leoshkevich  <iii@linux.ibm.com>
26758         * config/s390/s390.c (f_constraint_p): New function.
26759         (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
26760         (TARGET_MD_ASM_ADJUST): Likewise.
26762 2021-03-08  Tobias Burnus  <tobias@codesourcery.com>
26764         PR fortran/97927
26765         * tree-nested.c (convert_local_reference_stmt): Avoid calling
26766         lookup_field_for_decl for Fortran module (= namespace context).
26768 2021-03-08  Andreas Krebbel  <krebbel@linux.ibm.com>
26770         * config/s390/s390.c (s390_expand_vec_compare): Implement <0
26771         comparison with arithmetic right shift.
26772         (s390_expand_vcond): No need for a force_reg anymore.
26773         s390_vec_compare will do it.
26774         * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
26775         immediate operands.
26777 2021-03-07  Jakub Jelinek  <jakub@redhat.com>
26779         PR target/99321
26780         * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
26781         but TARGET_AVX512BW or TARGET_AVX512VL is not set.  Adjust description
26782         and comment.
26783         * config/i386/sse.md (v_Yw): New define_mode_attr.
26784         (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
26785         *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
26786         in constraints.
26787         * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
26788         xYw in constraints.
26790 2021-03-06  Julian Brown  <julian@codesourcery.com>
26792         * tree-pretty-print.c (dump_generic_node): Emit non-generic
26793         address space info for aggregates.
26795 2021-03-06  Hans-Peter Nilsson  <hp@axis.com>
26797         * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
26799 2021-03-05  Jakub Jelinek  <jakub@redhat.com>
26801         PR middle-end/99322
26802         * tree-cfg.c (bb_to_omp_idx): New variable.
26803         (execute_build_cfg): Release the bb_to_omp_idx vector after
26804         cleanup_tree_cfg returns.
26805         (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
26806         for bb_to_omp_idx being a vec<int> instead of pointer to array
26807         of ints.
26808         (make_edges): Remove bb_to_omp_idx local variable, don't pass
26809         it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
26810         vec<int> instead of pointer to array of ints and don't free/release
26811         it at the end.
26812         (remove_bb): When removing a bb and placing forced label somewhere
26813         else, ensure it is put into the same OpenMP region during cfg
26814         pass if possible or to entry successor as fallback.  Unregister
26815         bb from bb_to_omp_idx.
26817 2021-03-05  Vladimir N. Makarov  <vmakarov@redhat.com>
26819         PR target/99378
26820         * lra-constraints.c (process_address_1): Skip decomposing address
26821         for asm insn operand with unknown constraint.
26823 2021-03-05  Martin Jambor  <mjambor@suse.cz>
26825         PR ipa/98078
26826         * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
26827         corresponding speculative edges if we are about to resolve
26828         sepculation.  Make edge direct (and so resolve speculations) before
26829         removing it from call_site_hash.
26830         (cgraph_edge::make_direct): Relax the initial assert to allow calling
26831         the function on speculative direct edges.
26833 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
26835         PR rtl-optimization/99376
26836         * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
26837         of low-order zero bits is too large, set the result to 0 directly.
26839 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
26841         PR middle-end/93235
26842         * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
26843         SUBREG and a SUBREG to op_mode can't be created.
26845 2021-03-04  Alex Coplan  <alex.coplan@arm.com>
26847         PR target/99381
26848         * config/aarch64/aarch64-sve-builtins.cc
26849         (function_resolver::require_vector_type): Handle error_mark_node.
26851 2021-03-04  Ilya Leoshkevich  <iii@linux.ibm.com>
26853         * cfgexpand.c (expand_asm_loc): Pass new parameter.
26854         (expand_asm_stmt): Likewise.
26855         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
26856         parameter.
26857         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
26858         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
26859         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
26860         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
26861         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
26862         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
26863         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
26864         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
26865         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
26866         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
26867         * doc/tm.texi (md_asm_adjust): Likewise.
26868         * target.def (md_asm_adjust): Likewise.
26870 2021-03-04  Richard Biener  <rguenther@suse.de>
26872         PR middle-end/97855
26873         * tree-pretty-print.c: Poison pp_printf.
26874         (dump_decl_name): Avoid use of pp_printf.
26875         (dump_block_node): Likewise.
26876         (dump_generic_node): Likewise.
26878 2021-03-04  Martin Sebor  <msebor@redhat.com>
26880         PR middle-end/96963
26881         PR middle-end/94655
26882         * builtins.c (handle_array_ref): New helper.
26883         (handle_mem_ref): New helper.
26884         (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
26885         into new helper functions.  Correct a workaround for vectorized
26886         assignments.
26888 2021-03-03  Pat Haugen  <pthaugen@linux.ibm.com>
26890         * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
26891         floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
26892         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
26893         *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
26894         attribute for Power10.
26895         * config/rs6000/mma.md (*movoo): Likewise.
26896         * config/rs6000/rs6000.md (define_attr "size"): Add 256.
26897         (define_mode_attr bits): Add DD/TD modes.
26898         * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
26899         store_conditionalpti): Update size attribute for Power10.
26901 2021-03-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26903         PR bootstrap/92002
26904         * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
26905         -Wuninitialized, -Wmaybe-uninitialized.
26906         (wide-int.o-warn): Likewise.
26908 2021-03-03  Richard Earnshaw  <rearnsha@arm.com>
26910         * common/config/arm/arm-common.c: Include configargs.h.
26911         (arm_config_default): New function.
26912         (arm_target_mode): Renamed from arm_target_thumb_only.  Handle
26913         processors that do not support Thumb.  Take into account the
26914         --with-mode configuration setting for selecting the default.
26915         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
26916         (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
26918 2021-03-03  Martin Liska  <mliska@suse.cz>
26920         PR gcov-profile/97461
26921         * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
26923 2021-03-03  Eric Botcazou  <ebotcazou@adacore.com>
26925         PR target/99234
26926         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
26927         point back the hard frame pointer to its default location when the
26928         frame is larger than SEH_MAX_FRAME_SIZE.
26930 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
26932         PR target/99321
26933         * config/i386/predicates.md (logic_operator): New define_predicate.
26934         * config/i386/i386.md (mov + mem using comm arith peephole2):
26935         Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
26936         and the inner mode is [QH]Imode.
26938 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
26940         PR debug/99090
26941         * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
26942         (new_loc_list): Clear end_entry.
26943         (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
26944         if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx.  Fix comment
26945         typo.
26946         (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
26947         initialize also end_entry.
26949 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
26951         PR target/99085
26952         * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
26953         partitions, if in non-layout mode after reorder_blocks also move
26954         affected blocks to ensure a single partition transition.
26956 2021-03-03  Jason Merrill  <jason@redhat.com>
26958         PR c++/96078
26959         * cgraphunit.c (process_function_and_variable_attributes): Don't
26960         warn about flatten on an alias if the target also has it.
26961         * cgraph.h (symtab_node::get_alias_target_tree): New.
26963 2021-03-02  David Edelsohn  <dje.gcc@gmail.com>
26965         * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
26966         period to symbol name.
26967         (tls_get_addr_internal<mode>): Same.
26969 2021-03-02  David Malcolm  <dmalcolm@redhat.com>
26971         PR c/99323
26972         * diagnostic-show-locus.c
26973         (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
26974         column 0.
26976 2021-03-02  Martin Sebor  <msebor@redhat.com>
26978         PR middle-end/99276
26979         * builtins.c (warn_for_access): Remove stray warning text.
26981 2021-03-02  Martin Sebor  <msebor@redhat.com>
26983         PR middle-end/99295
26984         * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
26985         property.
26987 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
26989         PR debug/99319
26990         * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
26991         -gdwarf-5 -gstrict-dwarf.  For -gsplit-dwarf -gdwarf-5 use
26992         DW_MACRO_*_strx instead of DW_MACRO_*_strp.  Handle
26993         DW_MACRO_define_strx and DW_MACRO_undef_strx.
26994         (save_macinfo_strings): Use DW_MACRO_*_str* even with
26995         -gdwarf-5 -gstrict-dwarf.  Handle DW_MACRO_define_strx and
26996         DW_MACRO_undef_strx.
26998 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
27000         * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
27001         builtin signature.
27002         (BT_FN_V8HI_V8HI_UINT): Likewise.
27003         (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
27004         * config/s390/s390-builtins.def (B_NNPA): New macro definition.
27005         (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
27006         New builtin definitions.
27007         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
27008         vector extension version.
27009         * config/s390/s390.c (s390_expand_builtin): Check if builtins are
27010         available with current -march level.
27011         * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
27012         (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
27013         (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
27014         * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
27015         (vec_extend_to_fp32_lo): Likewise.
27016         (vec_round_from_fp32): Likewise.
27017         (vec_convert_to_fp16): Likewise.
27018         (vec_convert_from_fp16): Likewise.
27019         * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
27020         (vclfnls_v8hi): Likewise.
27021         (vcrnfs_v8hi): Likewise.
27022         (vcfn_v8hi): Likewise.
27023         (vcnf_v8hi): Likewise.
27025 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
27027         * common/config/s390/s390-common.c (processor_flags_table): New entry.
27028         * config.gcc: Enable arch14 for --with-arch and --with-tune.
27029         * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
27030         arch14 for unknown CPU models.
27031         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
27032         * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
27033         (s390_get_sched_attrmask): Likewise.
27034         (s390_get_unit_mask): Likewise.
27035         * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
27036         (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
27037         (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
27038         (TARGET_NNPA_P): New macro definitions.
27039         * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
27040         * config/s390/s390.opt: Add PROCESSOR_ARCH14.
27042 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
27044         PR middle-end/95757
27045         * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
27046         condition.  Call register_edge_assert_for_1 for == 0, != 0, == 1 and
27047         != 1 comparisons if name is lhs of a comparison.
27049 2021-03-01  Iain Sandoe  <iain@sandoe.co.uk>
27051         PR target/44107
27052         PR target/48097
27053         * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
27054         * config/darwin.c (darwin_should_restore_cfa_state): New.
27055         * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
27056         * doc/tm.texi: Regenerated.
27057         * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
27058         * dwarf2cfi.c (connect_traces): If the target requests, restore
27059         the CFA expression after a DW_CFA_restore.
27060         * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
27062 2021-03-01  Martin Liska  <mliska@suse.cz>
27064         PR target/99313
27065         * optc-save-gen.awk: Add 4 more exceptions.
27067 2021-03-01  Nathan Sidwell  <nathan@acm.org>
27069         PR c++/99294
27070         * tree.h (TYPE_ALIGN_RAW): New accessor.
27071         (TYPE_ALIGN): Use it.
27073 2021-03-01  Jan Hubicka  <jh@suse.cz>
27075         PR ipa/98338
27076         * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
27078 2021-03-01  Eric Botcazou  <ebotcazou@adacore.com>
27080         PR target/99234
27081         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
27082         point the hard frame pointer to the SSE register save area instead
27083         of the general register save area.  Perform only minimal adjustment
27084         for small frames if it is initially not correctly aligned.
27085         (ix86_expand_prologue): Remove early saves for a SEH target.
27086         * config/i386/winnt.c (struct seh_frame_state): Document constraint.
27088 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
27090         PR c/99304
27091         * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
27092         typo - referneced -> referenced.
27093         * tree.c (component_ref_size): Fix comment typo -
27094         refernce -> reference.
27095         * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
27096         traling -> trailing.
27097         (aliasing_component_refs_p): Fix comment typos -
27098         refernce -> reference and refernece -> reference and
27099         traling -> trailing.
27100         (nonoverlapping_refs_since_match_p): Fix comment typo -
27101         referneces -> references.
27102         * doc/invoke.texi (--param modref-max-bases): Fix a typo -
27103         referneces -> references.
27105 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
27107         * config/host-darwin.c (darwin_gt_pch_use_address): Modify
27108         diagnostic message to avoid use of a contraction and format
27109         warning.
27111 2021-02-27  Jakub Jelinek  <jakub@redhat.com>
27113         PR other/99288
27114         * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
27115         HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
27116         * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
27117         HOST_WIDE_INT_PRINT_DEC in inform format string.  Fix comment
27118         typos.
27120 2021-02-26  Richard Biener  <rguenther@suse.de>
27122         PR middle-end/99281
27123         * expr.c (store_field): For calls with return-slot optimization
27124         and addressable return type expand the store directly.
27126 2021-02-26  Richard Biener  <rguenther@suse.de>
27128         PR c/99275
27129         * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
27131 2021-02-26  Peter Bergner  <bergner@linux.ibm.com>
27133         PR target/99279
27134         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
27135         with an "if" test.
27137 2021-02-26  Aaron Sawdey  <acsawdey@linux.ibm.com>
27139         * config.gcc: Add rs6000-pcrel-opt.o.
27140         * config/rs6000/rs6000-pcrel-opt.c: New file.
27141         * config/rs6000/pcrel-opt.md: New file.
27142         * config/rs6000/predicates.md: Add d_form_memory predicate.
27143         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
27144         * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
27145         * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
27146         pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
27147         and make_pass_pcrel_opt().
27148         * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
27149         (rs6000_option_override_internal): Add pcrel-opt.
27150         (rs6000_delegitimize_address): Support pcrel-opt.
27151         (rs6000_opt_masks): Add pcrel-opt.
27152         (pcrel_opt_valid_mem_p): New function.
27153         (reg_to_non_prefixed): Make global.
27154         (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
27155         (output_pcrel_opt_reloc): New function.
27156         * config/rs6000/rs6000.md (loads_extern_addr): New attr.
27157         (pcrel_extern_addr): Set loads_extern_addr.
27158         Add include for pcrel-opt.md.
27159         * config/rs6000/rs6000.opt: Add -mpcrel-opt.
27160         * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
27161         pcrel-opt.md.
27163 2021-02-26  YunQiang Su  <yunqiang.su@cipunited.com>
27165         PR target/98996
27166         * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
27167         If TARGET_64BIT and dest is SUBREG, we check the width, if it
27168         equal to SImode, we use SImode operation, just like what we are
27169         doing for REG one.
27171 2021-02-26  Marek Polacek  <polacek@redhat.com>
27173         * builtins.c (warn_for_access): Fix typos.
27175 2021-02-25  Iain Sandoe  <iain@sandoe.co.uk>
27177         * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
27178         mark in front of the immediate quantity.
27179         (<optab>_rolsi3_uxtw): Likewise.
27181 2021-02-25  Richard Earnshaw  <rearnsha@arm.com>
27183         PR target/99271
27184         * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
27185         (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
27186         (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
27187         address and disable when the FPCXT is not available.
27188         (nonsecure_call_value_reg_thumb2): Likewise.
27190 2021-02-25  Nathan Sidwell  <nathan@acm.org>
27192         PR c++/99166
27193         * doc/invoke.texi (flang-info-module-cmi): Renamed option.
27195 2021-02-25  Tamar Christina  <tamar.christina@arm.com>
27197         * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
27199 2021-02-25  Richard Biener  <rguenther@suse.de>
27201         PR tree-optimization/99253
27202         * tree-vect-loop.c (check_reduction_path): First compute
27203         code, then verify out-of-loop uses.
27205 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
27207         PR target/95798
27208         * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
27210 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
27212         PR tree-optimization/80635
27213         * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
27214         VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
27215         has mode precision.
27217 2021-02-25  Richard Biener  <rguenther@suse.de>
27219         * tree-vect-slp.c (optimize_load_redistribution_1): Delay
27220         load_map population.
27221         (vect_match_slp_patterns_2): Revert part of last change.
27222         (vect_analyze_slp): Do not interleave optimize_load_redistribution
27223         with pattern detection but do it afterwards.  Dump the
27224         whole SLP graph after pattern recognition and load
27225         redistribution optimization finished.
27227 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
27229         PR fortran/99226
27230         * omp-low.c (struct omp_context): Add teams_nested_p and
27231         nonteams_nested_p members.
27232         (scan_omp_target): Diagnose teams nested inside of target with other
27233         directives strictly nested inside of the same target.
27234         (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
27235         ctx->nonteams_nested_p as needed.
27237 2021-02-24  Vladimir N. Makarov  <vmakarov@redhat.com>
27239         PR inline-asm/99123
27240         * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
27242 2021-02-24  Hans-Peter Nilsson  <hp@axis.com>
27244         * config/cris/cris.c (cris_expand_prologue): Set
27245         current_function_static_stack_size, if flag_stack_usage_info.
27247 2021-02-24  Pat Haugen  <pthaugen@linux.ibm.com>
27249         * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
27250         (rs6000_final_prescan_insn): Adjust.
27251         (rs6000_asm_output_opcode): Likewise.
27253 2021-02-24  Martin Sebor  <msebor@redhat.com>
27255         PR middle-end/97172
27256         * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
27257         from function arguments.
27259 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
27261         PR tree-optimization/99220
27262         * tree-vect-slp.c (optimize_load_redistribution_1): Remove
27263         node from cache when it's about to be deleted.
27265 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
27267         PR tree-optimization/99225
27268         * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
27269         to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
27270         build_int_cst (..., 1).  Formatting fixes.
27272 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
27274         PR tree-optimization/99149
27275         * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
27276         buffer.
27277         (vect_slp_reset_pattern): Remove.
27278         (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
27279         (complex_mul_pattern::build, complex_fma_pattern::build,
27280         complex_fms_pattern::build): Fix ref counts.
27281         * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
27282         when node is being deleted.
27283         (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
27284         (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
27285         stores.
27286         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
27288 2021-02-24  Matthias Klose  <doko@ubuntu.com>
27290         Revert:
27291         2020-12-07  Matthias Klose  <doko@ubuntu.com>
27293         * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
27294         and ENABLE_RTL_FLAG_CHECKING.
27296 2021-02-24  Richard Biener  <rguenther@suse.de>
27298         PR c/99224
27299         * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
27301 2021-02-23  Peter Bergner  <bergner@linux.ibm.com>
27303         * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
27304         (vsx_assemble_pair): ...to this.
27305         (*mma_assemble_pair): Rename from this...
27306         (*vsx_assemble_pair): ...to this.
27307         (mma_disassemble_pair): Rename from this...
27308         (vsx_disassemble_pair): ...to this.
27309         (*mma_disassemble_pair): Rename from this...
27310         (*vsx_disassemble_pair): ...to this.
27311         * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
27312         BU_COMPAT): New macros.
27313         (mma_assemble_pair): Rename from this...
27314         (vsx_assemble_pair): ...to this.
27315         (mma_disassemble_pair): Rename from this...
27316         (vsx_disassemble_pair): ...to this.
27317         (mma_assemble_pair): New compatibility built-in.
27318         (mma_disassemble_pair): Likewise.
27319         * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
27320         (RS6000_BUILTIN_COMPAT): Define.
27321         (bdesc_compat): New.
27322         (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
27323         (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
27324         and VSX_BUILTIN_ASSEMBLE_PAIR.
27325         (rs6000_init_builtins): Register compatibility built-ins.
27326         (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
27327         VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
27328         VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
27329         * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
27330         (__builtin_vsx_assemble_pair): ...to this.
27331         (__builtin_mma_disassemble_pair): Rename from this...
27332         (__builtin_vsx_disassemble_pair): ...to this.
27334 2021-02-23  Martin Liska  <mliska@suse.cz>
27336         PR sanitizer/99168
27337         * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
27338         with different alignment. That leads to an invalid red zone
27339         size allocated in runtime.
27341 2021-02-23  Jakub Jelinek  <jakub@redhat.com>
27343         PR tree-optimization/99204
27344         * fold-const.c (fold_read_from_constant_string): Check that
27345         tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
27347 2021-02-23  Segher Boessenkool  <segher@kernel.crashing.org>
27348             Kewen Lin  <linkw@gcc.gnu.org>
27350         * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
27351         (rotl<mode>3_insert_3): ...this.
27352         (plus_ior_xor): New code_iterator.
27353         (define_split for GPR rl*imi): New splitter.
27354         * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
27355         for integer merging.
27357 2021-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27359         * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
27360         Define.
27361         * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
27362         into a register when the above is enabled.
27363         * config/aarch64/aarch64.c (neoversev1_tunings):
27364         AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
27365         (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
27367 2021-02-22  Hans-Peter Nilsson  <hp@axis.com>
27369         * config/cris/cris.c (cris_print_operand) <'T'>: Change
27370         valid operand from is now an addi mult-value to shift-value.
27371         * config/cris/cris.md (*addi): Change expression of scaled
27372         operand from mult to ashift.
27373         * config/cris/cris.md (*addi_reload): New insn_and_split.
27375 2021-02-22  John David Anglin  <danglin@gcc.gnu.org>
27377         PR target/85074
27378         * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
27379         hook_bool_const_tree_hwi_hwi_const_tree_true.
27380         (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
27382 2021-02-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
27384         PR rtl-optimization/98791
27385         * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
27386         for unordered modes.
27388 2021-02-22  Martin Liska  <mliska@suse.cz>
27390         * tree-inline.c (inline_forbidden_p): Set
27391         inline_forbidden_reason.
27393 2021-02-22  Richard Biener  <rguenther@suse.de>
27395         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
27396         costed subgraph.
27398 2021-02-22  Richard Biener  <rguenther@suse.de>
27400         PR tree-optimization/99165
27401         * gimple-ssa-store-merging.c (pass_store_merging::process_store):
27402         Accumulate changed to ret.
27404 2021-02-21  Uros Bizjak  <ubizjak@gmail.com>
27406         Revert:
27407         2020-12-09  Uroš Bizjak  <ubizjak@gmail.com>
27409         * config/i386/i386.h (REG_ALLOC_ORDER): Remove
27411 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
27413         PR target/99134
27414         * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
27415         pattern.
27416         (trunctf<DFP_ALL:mode>2): Likewise.
27417         (trunctdtf2_vr): Likewise.
27418         (trunctdtf2): Likewise.
27419         (extend<DFP_ALL:mode>tf2_vr): Likewise.
27420         (extend<DFP_ALL:mode>tf2): Likewise.
27421         (extendtftd2_vr): Likewise.
27422         (extendtftd2): Likewise.
27424 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
27426         * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
27427         add memory alternative.
27428         (tf_to_fprx2): New pattern.
27430 2021-02-19  Martin Sebor  <msebor@redhat.com>
27432         PR c/97172
27433         * attribs.c (init_attr_rdwr_indices): Guard vblist use.
27434         (attr_access::free_lang_data): Remove a spurious test.
27436 2021-02-19  Nathan Sidwell  <nathan@acm.org>
27438         * doc/invoke.texi (flang-info-module-read): Document.
27440 2021-02-19  Martin Liska  <mliska@suse.cz>
27442         PR translation/99167
27443         * params.opt: Fix typo.
27445 2021-02-19  Richard Biener  <rguenther@suse.de>
27447         PR middle-end/99122
27448         * tree-inline.c (inline_forbidden_p): Do not inline functions
27449         with VLA arguments or return value.
27451 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
27453         PR target/98998
27454         * config/arm/arm.md (*stack_protect_combined_set_insn,
27455         *stack_protect_combined_test_insn): If force_const_mem result
27456         is not valid general operand, force its address into the destination
27457         register first.
27459 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
27461         PR ipa/99034
27462         * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
27463         pad or non-local label, put FORCED_LABELs from bb b after that label
27464         rather than before it.
27466 2021-02-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
27468         PR target/98657
27469         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
27470         expand_vector_broadcast' to emit the vec_duplicate operand.
27472 2021-02-18  Vladimir N. Makarov  <vmakarov@redhat.com>
27474         PR rtl-optimization/96264
27475         * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
27476         hard regs.
27478 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
27480         PR target/99113
27481         * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
27482         looking up the retain attribute.
27483         (resolve_unique_section): Likewise.
27484         (get_variable_section): Likewise.
27485         (switch_to_section): Likewise.  Warn when a symbol without the
27486         retain attribute and a symbol with the retain attribute are
27487         placed in the section with the same name, instead of the used
27488         attribute.
27489         * doc/extend.texi: Document the "retain" attribute.
27491 2021-02-18  Nathan Sidwell  <nathan@acm.org>
27493         PR c++/99023
27494         * doc/invoke.texi (flang-info-include-translate): Document header
27495         lookup behaviour.
27497 2021-02-18  Richard Biener  <rguenther@suse.de>
27499         PR middle-end/99122
27500         * ipa-fnsummary.c (analyze_function_body): Set
27501         CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
27502         * tree-inline.c (insert_init_debug_bind): Pass NULL for
27503         error_mark_node values.
27504         (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
27505         values.
27506         (setup_one_parameter): Delay force_value_to_type until when
27507         it's needed.
27509 2021-02-18  Hans-Peter Nilsson  <hp@axis.com>
27511         PR tree-optimization/99142
27512         * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
27514 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
27516         * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
27517         wide_int_bitmask::wide_int_bitmask (uint64_t),
27518         wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
27519         wide_int_bitmask::operator ~ () const,
27520         wide_int_bitmask::operator | (wide_int_bitmask) const,
27521         wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
27522         instead of inline.
27523         * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
27524         PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
27525         PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
27526         PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
27527         PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
27528         PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
27529         PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
27530         PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
27531         PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
27532         PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
27533         PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
27534         PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
27535         PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
27536         PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
27537         PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
27538         PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
27539         PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
27540         PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
27541         PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
27542         PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
27543         PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
27544         PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
27545         PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
27546         PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
27548 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
27550         PR middle-end/99109
27551         * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
27552         (build_printable_array_type): ... this.  Add nelts argument.  For
27553         overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead.  If
27554         nelts, call build_array_type_nelts.
27555         (array_bounds_checker::check_mem_ref): Use build_printable_array_type
27556         instead of build_zero_elt_array_type and build_array_type_nelts.
27558 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
27560         PR target/99104
27561         * config/i386/i386.c (distance_non_agu_define): Don't call
27562         extract_insn_cached here.
27563         (ix86_lea_outperforms): Save and restore recog_data around call
27564         to distance_non_agu_define and distance_agu_use.
27565         (ix86_ok_to_clobber_flags): Remove.
27566         (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
27567         (ix86_avoid_lea_for_addr): Likewise.  Adjust function comment.
27568         * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
27569         into define_insn.  Move the splitting to define_peephole2 and
27570         check there using peep2_regno_dead_p if FLAGS_REG is dead.
27572 2021-02-17  Julian Brown  <julian@codesourcery.com>
27574         * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
27575         for non-decls.
27577 2021-02-17  Xi Ruoyao  <xry111@mengyan1223.wang>
27579         PR target/98491
27580         * config/mips/mips.c (mips_symbol_insns): Do not use
27581         MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
27583 2021-02-16  Vladimir N. Makarov  <vmakarov@redhat.com>
27585         PR inline-asm/98096
27586         * stmt.c (resolve_operand_name_1): Take inout operands into account
27587         for access to labels by names.
27588         * doc/extend.texi: Describe counting operands for accessing labels.
27590 2021-02-16  Richard Biener  <rguenther@suse.de>
27592         PR tree-optimization/38474
27593         * tree-ssa-structalias.c (variable_info::address_taken): New.
27594         (new_var_info): Initialize address_taken.
27595         (process_constraint): Set address_taken.
27596         (solve_constraints): Use the new address_taken flag rather
27597         than is_reg_var for sorting variables.
27598         (dump_constraint): Dump the variable number if the name
27599         is just NULL.
27601 2021-02-16  Jakub Jelinek  <jakub@redhat.com>
27603         PR target/99100
27604         * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
27605         multiply by 4096 and for inbranch by 8192.
27606         * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
27607         return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
27609 2021-02-15  Maya Rashish  <coypu@sdf.org>
27611         * config/aarch64/aarch64.c (aarch64_init_builtins):
27612         Call SUBTARGET_INIT_BUILTINS.
27614 2021-02-15  Peter Bergner  <bergner@linux.ibm.com>
27616         PR rtl-optimization/98872
27617         * init-regs.c (initialize_uninitialized_regs): Skip initialization
27618         if CONST0_RTX is NULL.
27620 2021-02-15  Richard Sandiford  <richard.sandiford@arm.com>
27622         PR rtl-optimization/98863
27623         * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
27624         (function_info::build_info): Turn into a declaration, moving the
27625         definition to internals.h.
27626         (function_info::bb_walker): Declare.
27627         (function_info::create_reg_use): Likewise.
27628         (function_info::calculate_potential_phi_regs): Take a build_info
27629         parameter.
27630         (function_info::place_phis, function_info::create_ebbs): Declare.
27631         (function_info::calculate_ebb_live_in_for_debug): Likewise.
27632         (function_info::populate_backedge_phis): Delete.
27633         (function_info::start_block, function_info::end_block): Declare.
27634         (function_info::populate_phi_inputs): Delete.
27635         (function_info::m_potential_phi_regs): Move information to build_info.
27636         * rtl-ssa/internals.h: New file.
27637         (function_info::bb_phi_info): New class.
27638         (function_info::build_info): Moved from functions.h.
27639         Add a constructor and destructor.
27640         (function_info::build_info::ebb_use): Delete.
27641         (function_info::build_info::ebb_def): Likewise.
27642         (function_info::build_info::bb_live_out): Likewise.
27643         (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
27644         (function_info::build_info::potential_phi_regs): Likewise.
27645         (function_info::build_info::potential_phi_regs_for_debug): Likewise.
27646         (function_info::build_info::ebb_def_regs): Likewise.
27647         (function_info::build_info::bb_phis): Likewise.
27648         (function_info::build_info::bb_mem_live_out): Likewise.
27649         (function_info::build_info::bb_to_rpo): Likewise.
27650         (function_info::build_info::def_stack): Likewise.
27651         (function_info::build_info::old_def_stack_limit): Likewise.
27652         * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
27653         Remove the regno argument.  Push the previous definition onto the
27654         definition stack where necessary.
27655         * rtl-ssa/accesses.cc: Include internals.h.
27656         * rtl-ssa/changes.cc: Likewise.
27657         * rtl-ssa/blocks.cc: Likewise.
27658         (function_info::build_info::build_info): Define.
27659         (function_info::build_info::~build_info): Likewise.
27660         (function_info::bb_walker): New class.
27661         (function_info::bb_walker::bb_walker): Define.
27662         (function_info::add_live_out_use): Convert a logarithmic-complexity
27663         test into a linear one.  Allow the same definition to be passed
27664         multiple times.
27665         (function_info::calculate_potential_phi_regs): Moved from
27666         functions.cc.  Take a build_info parameter and store the
27667         information there instead.
27668         (function_info::place_phis): New function.
27669         (function_info::add_entry_block_defs): Update call to record_reg_def.
27670         (function_info::calculate_ebb_live_in_for_debug): New function.
27671         (function_info::add_phi_nodes): Use bb_phis to decide which
27672         registers need phi nodes and initialize ebb_def_regs accordingly.
27673         Do not add degenerate phis here.
27674         (function_info::add_artificial_accesses): Use create_reg_use.
27675         Assert that all definitions are listed in the DF LR sets.
27676         Update call to record_reg_def.
27677         (function_info::record_block_live_out): Record live-out register
27678         values in the phis of successor blocks.  Use the live-out set
27679         when processing the last block in an EBB, instead of always
27680         using the live-in sets of successor blocks.  AND the live sets
27681         with the set of registers that have been defined in the EBB,
27682         rather than with all potential phi registers.  Cope correctly
27683         with branches back to the start of the current EBB.
27684         (function_info::start_block): New function.
27685         (function_info::end_block): Likewise.
27686         (function_info::populate_phi_inputs): Likewise.
27687         (function_info::create_ebbs): Likewise.
27688         (function_info::process_all_blocks): Rewrite into a multi-phase
27689         process.
27690         * rtl-ssa/functions.cc: Include internals.h.
27691         (function_info::calculate_potential_phi_regs): Move to blocks.cc.
27692         (function_info::init_function_data): Remove caller.
27693         * rtl-ssa/insns.cc: Include internals.h
27694         (function_info::create_reg_use): New function.  Lazily any
27695         degenerate phis needed by the linear RPO view.
27696         (function_info::record_use): Use create_reg_use.  When processing
27697         debug uses, use potential_phi_regs and test it before checking
27698         whether the register is live on entry to the current EBB.  Lazily
27699         calculate ebb_live_in_for_debug.
27700         (function_info::record_call_clobbers): Update call to record_reg_def.
27701         (function_info::record_def): Likewise.
27703 2021-02-15  Martin Liska  <mliska@suse.cz>
27705         * toplev.c (init_asm_output): Free output of
27706         gen_command_line_string function.
27707         (process_options): Likewise.
27709 2021-02-15  Martin Liska  <mliska@suse.cz>
27711         * params.opt: Add 2 missing Param keywords.
27713 2021-02-15  Eric Botcazou  <ebotcazou@adacore.com>
27715         * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
27717 2021-02-15  Jakub Jelinek  <jakub@redhat.com>
27719         PR tree-optimization/99079
27720         * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
27721         useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check.  Instead
27722         require both type and TREE_TYPE (@1) to be integral types and either
27723         type having smaller or equal precision, or TREE_TYPE (@1) being
27724         unsigned type, or type being signed type.  If TREE_TYPE (@1)
27725         doesn't have wrapping overflow, perform the subtraction of one in
27726         unsigned type.
27728 2021-02-14  Jan Hubicka  <hubicka@ucw.cz>
27729             Richard Biener  <rguether@suse.de>
27731         PR ipa/97346
27732         * ipa-reference.c (ipa_init): Only conditinally initialize
27733         reference_vars_to_consider.
27734         (propagate): Conditionally deninitialize reference_vars_to_consider.
27735         (ipa_reference_write_optimization_summary): Sanity check that
27736         reference_vars_to_consider is not allocated.
27738 2021-02-13  Levy Hsu  <admin@levyhsu.com>
27740         PR target/97417
27741         * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
27742         extend parameter to get_si_mem_base_reg declaration.
27743         (get_si_mem_base_reg): Add extend parameter.  Set it.
27744         (analyze): Pass extend arg to get_si_mem_base_reg.
27745         (transform): Likewise.  Use it when rewriting mems.
27746         * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
27747         loads and emit sign/zero extending load followed by subreg move.
27749 2021-02-13  Jim Wilson  <jimw@sifive.com>
27751         PR target/97417
27752         * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
27753         exit when !reload_completed.  Only perform check for compressed reg
27754         if reload_completed.
27755         (riscv_rtx_costs): In MEM case, when optimizing for size and
27756         shorten memrefs, if not compressible, then increase cost.
27758 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
27760         PR rtl-optimization/98439
27761         * recog.c (pass_split_before_regstack::gate): Enable even when
27762         pass_split_before_sched2 is enabled if -fselective-scheduling2 is
27763         on.
27765 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
27767         PR target/96166
27768         * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
27769         swap of V2SImode elements in memory into DImode memory rotate by 32.
27771 2021-02-12  Martin Sebor  <msebor@redhat.com>
27773         * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
27775 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
27777         * rtl-ssa/accesses.cc (function_info::make_use_available): Use
27778         m_temp_obstack rather than m_obstack to allocate the temporary use.
27780 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
27782         * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
27783         as read-modify operations.
27785 2021-02-12  Richard Biener  <rguenther@suse.de>
27787         PR middle-end/38474
27788         * ipa-fnsummary.c (unmodified_parm_1): Only walk when
27789         fbi->aa_walk_budget is bigger than zero.  Update
27790         fbi->aa_walk_budget.
27791         (param_change_prob): Likewise.
27792         * ipa-prop.c (detect_type_change_from_memory_writes):
27793         Properly account walk_aliased_vdefs.
27794         (parm_preserved_before_stmt_p): Canonicalize updates.
27795         (parm_ref_data_preserved_p): Likewise.
27796         (parm_ref_data_pass_through_p): Likewise.
27797         (determine_known_aggregate_parts): Account own alias queries.
27799 2021-02-12  Martin Liska  <mliska@suse.cz>
27801         * opts-common.c (decode_cmdline_option): Release werror_arg.
27802         * opts.c (gen_producer_string): Release output of
27803         gen_command_line_string.
27805 2021-02-12  Richard Biener  <rguenther@suse.de>
27807         PR tree-optimization/38474
27808         * params.opt (-param=max-store-chains-to-track=): New param.
27809         (-param=max-stores-to-track=): Likewise.
27810         * doc/invoke.texi (max-store-chains-to-track): Document.
27811         (max-stores-to-track): Likewise.
27812         * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
27813         New.
27814         (pass_store_merging::m_n_stores): Likewise.
27815         (pass_store_merging::terminate_and_process_chain): Update
27816         m_n_stores and m_n_chains.
27817         (pass_store_merging::process_store): Likewise.   Terminate
27818         oldest chains if the number of stores or chains get too large.
27819         (imm_store_chain_info::terminate_and_process_chain): Dump
27820         chain length.
27822 2021-02-11  Eric Botcazou  <ebotcazou@adacore.com>
27824         * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
27825         the cold section, emit a nop before the directive if the previous
27826         active instruction can throw.
27828 2021-02-11  Peter Bergner  <bergner@linux.ibm.com>
27830         PR target/99041
27831         * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
27832         memory addresses that are legal for quad word accesses.
27834 2021-02-11  Andrea Corallo  <andrea.corallo@arm.com>
27836         PR target/98931
27837         * config/arm/thumb2.md (*doloop_end_internal): Generate
27838         alternative sequence to handle long range branches.
27840 2021-02-11  Joel Hutton  <joel.hutton@arm.com>
27842         PR tree-optimization/98772
27843         * optabs-tree.c (supportable_half_widening_operation): New function
27844         to check for supportable V8QI->V8HI widening patterns.
27845         * optabs-tree.h (supportable_half_widening_operation): New function.
27846         * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
27847         to create promotion stmts for V8QI->V8HI widening patterns.
27848         (vectorizable_conversion): Add case for V8QI->V8HI.
27850 2021-02-11  Richard Biener  <rguenther@suse.de>
27852         * sparseset.h (SPARSESET_ELT_BITS): Remove.
27853         (SPARSESET_ELT_TYPE): Use unsigned int.
27854         * fwprop.c: Do not include sparseset.h.
27856 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
27858         PR c++/99035
27859         * varasm.c (declare_weak): For -fsyntax-only, allow even
27860         TREE_ASM_WRITTEN function decls.
27862 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
27864         PR target/99025
27865         * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
27866         <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
27867         <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
27868         <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
27869         calling simplify_gen_subreg on it.
27871 2021-02-10  Martin Liska  <mliska@suse.cz>
27873         * config/nvptx/nvptx.c (nvptx_option_override): Use
27874         flag_patchable_function_entry instead of the removed
27875         function_entry_patch_area_size.
27877 2021-02-10  Martin Liska  <mliska@suse.cz>
27879         PR tree-optimization/99002
27880         PR tree-optimization/99026
27881         * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
27882         leak when adjacent cases are merged.
27883         * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
27884         release_clusters.
27885         (make_pass_lower_switch): Remove trailing whitespace.
27886         * tree-switch-conversion.h (release_clusters): New.
27888 2021-02-10  Richard Biener  <rguenther@suse.de>
27890         PR rtl-optimization/99054
27891         * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
27892         (fixup_partitions): Adjust.
27893         (rtl_verify_edges): Likewise.
27895 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
27897         PR middle-end/99007
27898         * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
27899         temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
27900         calls.
27902 2021-02-10  Richard Biener  <rguenther@suse.de>
27904         PR ipa/99029
27905         * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
27906         for callees.
27908 2021-02-10  Richard Biener  <rguenther@suse.de>
27910         PR tree-optimization/99024
27911         * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
27912         clear loop->aux if it is associated with the destroyed loop_vinfo.
27914 2021-02-10  Martin Liska  <mliska@suse.cz>
27916         PR tree-optimization/99002
27917         * gimple-if-to-switch.cc (find_conditions): Fix memory leak
27918         in the function.
27920 2021-02-10  Martin Liska  <mliska@suse.cz>
27922         PR ipa/99003
27923         * ipa-icf.c (sem_item::add_reference): Fix memory leak when
27924         a reference exists.
27926 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
27928         PR debug/98755
27929         * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
27930         at class scope for DWARF5+.
27932 2021-02-09  Eric Botcazou  <ebotcazou@adacore.com>
27934         PR rtl-optimization/96015
27935         * reorg.c (skip_consecutive_labels): Minor comment tweaks.
27936         (relax_delay_slots): When deleting a jump to the next active
27937         instruction over a barrier, first delete the barrier if the
27938         jump is the only way to reach the target label.
27940 2021-02-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
27942         * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
27943         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
27944         vector multiplies and vect.alu for SSRA.
27945         * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
27946         vect.mul cost field.
27947         * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
27948         * config/arm/arm.c: Likewise.
27950 2021-02-09  Richard Biener  <rguenther@suse.de>
27952         PR tree-optimization/98863
27953         * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
27954         * tree-ssa-sccvn.c (last_pushed_avail): New global.
27955         (rpo_elim::eliminate_push_avail): Chain pushed avails.
27956         (unwind_state::avail_top): Add.
27957         (do_unwind): Rewrite unwinding of avail entries.
27958         (do_rpo_vn): Initialize last_pushed_avail and
27959         avail_top of the undo state.
27961 2021-02-09  Jakub Jelinek  <jakub@redhat.com>
27963         PR middle-end/99004
27964         * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
27965         const char * to char * and free those pointers after use.
27967 2021-02-09  Richard Biener  <rguenther@suse.de>
27969         PR tree-optimization/99017
27970         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
27971         zero vector cost entries.
27973 2021-02-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
27975         PR middle-end/98974
27976         * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
27977         parameter in vectorizable_condition.
27979 2021-02-08  Richard Biener  <rguenther@suse.de>
27981         PR lto/96591
27982         * tree.c (walk_tree_1): Walk VECTOR_CST elements.
27984 2021-02-08  Martin Liska  <mliska@suse.cz>
27986         PR lto/98971
27987         * cfgexpand.c (pass_expand::execute): Parse per-function option
27988         flag_patchable_function_entry and use it.
27989         * common.opt: Remove function_entry_patch_area_size and
27990         function_entry_patch_area_start global variables.
27991         * opts.c (parse_and_check_patch_area): New function.
27992         (common_handle_option): Use it.
27993         * opts.h (parse_and_check_patch_area): New function.
27994         * toplev.c (process_options): Parse and use
27995         function_entry_patch_area_size.
27997 2021-02-08  Martin Sebor  <msebor@redhat.com>
27999         * doc/extend.texi (attribute malloc): Correct typos.
28001 2021-02-05  Nathan Sidwell  <nathan@acm.org>
28003         PR driver/98943
28004         * gcc.c (driver::maybe_run_linker): Check for input file
28005         accessibility if not linking.
28007 2021-02-05  Richard Biener  <rguenther@suse.de>
28009         PR tree-optimization/98855
28010         * tree-vectorizer.h (add_stmt_cost): New overload.
28011         * tree-vect-slp.c (li_cost_vec_cmp): New.
28012         (vect_bb_slp_scalar_cost): Cost individual loop regions
28013         separately.  Account for the scalar instance root stmt.
28015 2021-02-05  Tom de Vries  <tdevries@suse.de>
28017         PR debug/98656
28018         * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
28019         argument.
28020         (bit_test_cluster::emit): Reuse location_t for newly created
28021         gswitch statement.
28022         (switch_decision_tree::try_switch_expansion): Preserve
28023         location_t.
28024         * tree-switch-conversion.h: Change function signatures.
28026 2021-02-05  Jakub Jelinek  <jakub@redhat.com>
28028         PR target/98957
28029         * config/i386/i386-options.c (m_NONE, m_ALL): Define.
28030         * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
28031         X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
28032         (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
28034 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28036         * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
28037         * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
28038         * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
28039         (vget_high_f16): Reimplement using new builtin.
28040         (vget_high_f32): Likewise.
28041         (vget_high_f64): Likewise.
28042         (vget_high_p8): Likewise.
28043         (vget_high_p16): Likewise.
28044         (vget_high_p64): Likewise.
28045         (vget_high_s8): Likewise.
28046         (vget_high_s16): Likewise.
28047         (vget_high_s32): Likewise.
28048         (vget_high_s64): Likewise.
28049         (vget_high_u8): Likewise.
28050         (vget_high_u16): Likewise.
28051         (vget_high_u32): Likewise.
28052         (vget_high_u64): Likewise.
28054 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28056         * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
28057         * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
28058         * config/aarch64/arm_neon.h (__GET_LOW): Delete.
28059         (vget_low_f16): Reimplement using new builtin.
28060         (vget_low_f32): Likewise.
28061         (vget_low_f64): Likewise.
28062         (vget_low_p8): Likewise.
28063         (vget_low_p16): Likewise.
28064         (vget_low_p64): Likewise.
28065         (vget_low_s8): Likewise.
28066         (vget_low_s16): Likewise.
28067         (vget_low_s32): Likewise.
28068         (vget_low_s64): Likewise.
28069         (vget_low_u8): Likewise.
28070         (vget_low_u16): Likewise.
28071         (vget_low_u32): Likewise.
28072         (vget_low_u64): Likewise.
28074 2021-02-05  Kito Cheng  <kito.cheng@sifive.com>
28076         * gcc.c (print_multilib_info): Check all required argument is provided
28077         by default arg.
28079 2021-02-05  liuhongt  <hongtao.liu@intel.com>
28081         PR target/98537
28082         * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
28083         generate integer mask comparison for 128/256-bits vector when
28084         op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
28085         delete redundant !maskcmp condition.
28086         (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
28087         here.
28088         (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
28089         condition directly to if (maskcmp), add extra check for
28090         cmpmode, it should be MODE_INT.
28091         (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
28092         parameters op_true/op_false.
28093         (ix86_use_mask_cmp_p): New.
28095 2021-02-05  liuhongt  <hongtao.liu@intel.com>
28097         PR target/98172
28098         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
28099         Remove m_GENERIC from ~list.
28100         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
28102 2021-02-04  David Malcolm  <dmalcolm@redhat.com>
28104         PR c/97932
28105         * diagnostic-show-locus.c (compatible_locations_p): Require
28106         locations in the same macro map to be either both from the
28107         macro definition, or both from the macro arguments.
28109 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
28111         * config/aarch64/aarch64-simd-builtins.def: Add
28112         [su]mull_hi_lane[q] builtin generator macros.
28113         * config/aarch64/aarch64-simd.md
28114         (aarch64_<su>mull_hi_lane<mode>_insn): Define.
28115         (aarch64_<su>mull_hi_lane<mode>): Define.
28116         (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
28117         (aarch64_<su>mull_hi_laneq<mode>): Define.
28118         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
28119         builtin instead of inline asm.
28120         (vmull_high_lane_s32): Likewise.
28121         (vmull_high_lane_u16): Likewise.
28122         (vmull_high_lane_u32): Likewise.
28123         (vmull_high_laneq_s16): Likewise.
28124         (vmull_high_laneq_s32): Likewise.
28125         (vmull_high_laneq_u16): Likewise.
28126         (vmull_high_laneq_u32): Liekwise.
28128 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
28130         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
28131         builtin generator macros.
28132         * config/aarch64/aarch64-simd.md
28133         (aarch64_<su>mull_hi_n<mode>_insn): Define.
28134         (aarch64_<su>mull_hi_n<mode>): Define.
28135         * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
28136         instead of inline asm.
28137         (vmull_high_n_s32): Likewise.
28138         (vmull_high_n_u16): Likewise.
28139         (vmull_high_n_u32): Likewise.
28141 2021-02-04  Richard Biener  <rguenther@suse.de>
28143         PR tree-optimization/98855
28144         * tree-vect-loop.c (vectorizable_phi): Do not cost
28145         single-argument PHIs.
28146         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
28147         * tree-vect-stmts.c (vectorizable_bswap): Also perform
28148         costing for SLP operation.
28150 2021-02-04  Martin Liska  <mliska@suse.cz>
28152         * doc/extend.texi: Mention -mprefer-vector-width in target
28153         attributes.
28155 2021-02-03  Martin Sebor  <msebor@redhat.com>
28157         PR tree-optimization/98937
28158         * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
28159         Flush pointer_query cache.
28161 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
28163         * config/rs6000/genfusion.pl (gen_2logical): Add missing
28164         fixes based on patch review.
28165         * config/rs6000/fusion.md: Regenerate file.
28167 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
28169         * config/rs6000/t-rs6000: Comment out auto generation of
28170         fusion.md for now.
28172 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
28174         * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
28175         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
28176         (output_file_start): Add gfx908.
28177         * config/gcn/gcn.opt (gpu_type): Add gfx908.
28178         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
28179         (MULTILIB_DIRNAMES): Add gfx908.
28180         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
28181         (main): Recognize gfx908.
28182         * config/gcn/t-omp-device: Add gfx908.
28184 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
28186         * config/aarch64/aarch64-simd-builtins.def: Add
28187         [su]mlsl_hi_lane[q] builtin macro generators.
28188         * config/aarch64/aarch64-simd.md
28189         (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
28190         (aarch64_<su>mlsl_hi_lane<mode>): Define.
28191         (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
28192         (aarch64_<su>mlsl_hi_laneq<mode>): Define.
28193         * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
28194         builtin instead of inline asm.
28195         (vmlsl_high_lane_s32): Likewise.
28196         (vmlsl_high_lane_u16): Likewise.
28197         (vmlsl_high_lane_u32): Likewise.
28198         (vmlsl_high_laneq_s16): Likewise.
28199         (vmlsl_high_laneq_s32): Likewise.
28200         (vmlsl_high_laneq_u16): Likewise.
28201         (vmlsl_high_laneq_u32): Likewise.
28202         (vmlal_high_laneq_u32): Likewise.
28204 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
28206         * config/aarch64/aarch64-simd-builtins.def: Add
28207         [su]mlal_hi_lane[q] builtin generator macros.
28208         * config/aarch64/aarch64-simd.md
28209         (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
28210         (aarch64_<su>mlal_hi_lane<mode>): Define.
28211         (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
28212         (aarch64_<su>mlal_hi_laneq<mode>): Define.
28213         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
28214         builtin instead of inline asm.
28215         (vmlal_high_lane_s32): Likewise.
28216         (vmlal_high_lane_u16): Likewise.
28217         (vmlal_high_lane_u32): Likewise.
28218         (vmlal_high_laneq_s16): Likewise.
28219         (vmlal_high_laneq_s32): Likewise.
28220         (vmlal_high_laneq_u16): Likewise.
28221         (vmlal_high_laneq_u32): Likewise.
28223 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
28225         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
28226         builtin generator macros.
28227         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
28228         Define.
28229         (aarch64_<su>mlsl_hi_n<mode>): Define.
28230         * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
28231         instead of inline asm.
28232         (vmlsl_high_n_s32): Likewise.
28233         (vmlsl_high_n_u16): Likewise.
28234         (vmlsl_high_n_u32): Likewise.
28236 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
28238         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
28239         builtin generator macros.
28240         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
28241         Define.
28242         (aarch64_<su>mlal_hi_n<mode>): Define.
28243         * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
28244         instead of inline asm.
28245         (vmlal_high_n_s32): Likewise.
28246         (vmlal_high_n_u16): Likewise.
28247         (vmlal_high_n_u32): Likewise.
28249 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
28251         * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
28252         generator macros.
28253         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
28254         Rename to...
28255         (aarch64_<su>mlal_hi<mode>_insn): This.
28256         (aarch64_<su>mlal_hi<mode>): Define.
28257         * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
28258         instead of inline asm.
28259         (vmlal_high_s16): Likewise.
28260         (vmlal_high_s32): Likewise.
28261         (vmlal_high_u8): Likewise.
28262         (vmlal_high_u16): Likewise.
28263         (vmlal_high_u32): Likewise.
28265 2021-02-03  Ilya Leoshkevich  <iii@linux.ibm.com>
28267         * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
28268         after calling alter_subreg() on a (mem).
28270 2021-02-03  Martin Liska  <mliska@suse.cz>
28272         PR lto/98912
28273         * lto-streamer-out.c (produce_lto_section): Fill up missing
28274         padding.
28275         * lto-streamer.h (struct lto_section): Add _padding field.
28277 2021-02-03  Richard Biener  <rguenther@suse.de>
28279         * lto-streamer.c (lto_get_section_name): Free temporary
28280         buffer.
28281         * tree-loop-distribution.c
28282         (loop_distribution::merge_dep_scc_partitions): Free edge data.
28284 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
28286         PR middle-end/97487
28287         * ifcvt.c (noce_can_force_operand): New function.
28288         (noce_emit_move_insn): Use it.
28289         (noce_try_sign_mask): Likewise.  Formatting fix.
28291 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
28293         PR middle-end/97971
28294         * lra-constraints.c (process_alt_operands): For inline asm, don't call
28295         fatal_insn, but instead return false.
28297 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
28299         PR tree-optimization/98287
28300         * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
28301         for V1DImode.
28303 2021-02-03  Tamar Christina  <tamar.christina@arm.com>
28305         PR tree-optimization/98928
28306         * tree-vect-loop.c (vect_analyze_loop_2): Change
28307         STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
28308         * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
28309         * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
28310         (class _stmt_vec_info): Add slp_vect_pattern_only_p.
28312 2021-02-02  Richard Biener  <rguenther@suse.de>
28314         * gimple-loop-interchange.cc (prepare_data_references):
28315         Release vectors.
28316         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
28317         * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
28318         * tree-vect-stmts.c (vectorizable_condition): Do not
28319         allocate vectors.
28320         (vectorizable_comparison): Likewise.
28322 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28324         * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
28325         * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
28326         * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
28327         (vrsqrteq_u32): Likewise.
28329 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28331         * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
28332         * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
28333         (aarch64_sqxtun2<mode>_be): Likewise.
28334         (aarch64_sqxtun2<mode>): Likewise.
28335         * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
28336         (vqmovun_high_s32): Likewise.
28337         (vqmovun_high_s64): Likewise.
28338         * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
28340 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28342         * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
28343         AUTO_FP flags.
28344         (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
28346 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28348         * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
28349         fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
28350         fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
28351         ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
28352         fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
28353         fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
28354         fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
28355         fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
28357 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28359         * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
28360         * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
28361         ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
28363 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28365         * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
28366         uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
28368 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28370         * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
28371         vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
28372         vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
28373         ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
28374         udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
28375         ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
28376         ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
28377         ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
28378         NONE builtin flags.
28380 2021-02-02  Jakub Jelinek  <jakub@redhat.com>
28382         PR tree-optimization/98848
28383         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
28384         STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
28386 2021-02-02  Kito Cheng  <kito.cheng@sifive.com>
28388         PR target/98743
28389         * expr.c: Check mode before calling store_expr.
28391 2021-02-02  Christophe Lyon  <christophe.lyon@linaro.org>
28393         * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
28394         (VORNQ): Remove.
28395         * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
28396         instruction using expression ior.
28397         (mve_vornq_u<mode>): New expander.
28398         (mve_vornq_f<mode>): Use ior code instead of unspec.
28399         * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
28401 2021-02-02  Alexandre Oliva  <oliva@adacore.com>
28403         * tree-nested.c (convert_nonlocal_reference_op): Move
28404         current_function_decl restore after re-gimplification.
28405         (convert_local_reference_op): Likewise.
28407 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28409         * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
28410         Define builtins.
28411         * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
28412         Define.
28413         (aarch64_rshrn<mode>_insn_be): Likewise.
28414         (aarch64_rshrn<mode>): Likewise.
28415         (aarch64_rshrn2<mode>_insn_le): Likewise.
28416         (aarch64_rshrn2<mode>_insn_be): Likewise.
28417         (aarch64_rshrn2<mode>): Likewise.
28418         * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
28419         * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
28420         using builtin.
28421         (vrshrn_high_n_s32): Likewise.
28422         (vrshrn_high_n_s64): Likewise.
28423         (vrshrn_high_n_u16): Likewise.
28424         (vrshrn_high_n_u32): Likewise.
28425         (vrshrn_high_n_u64): Likewise.
28426         (vrshrn_n_s16): Likewise.
28427         (vrshrn_n_s32): Likewise.
28428         (vrshrn_n_s64): Likewise.
28429         (vrshrn_n_u16): Likewise.
28430         (vrshrn_n_u32): Likewise.
28431         (vrshrn_n_u64): Likewise.
28433 2021-02-01  Sergei Trofimovich  <siarheit@google.com>
28435         PR tree-optimization/98499
28436         * ipa-modref.c (analyze_ssa_name_flags): treat RVO
28437         conservatively and assume all possible side-effects.
28439 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28441         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
28442         vec_unpacku_hi_): Define builtins.
28443         * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
28444         builtin.
28445         (vmovl_high_s16): Likewise.
28446         (vmovl_high_s32): Likewise.
28447         (vmovl_high_u8): Likewise.
28448         (vmovl_high_u16): Likewise.
28449         (vmovl_high_u32): Likewise.
28451 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28453         * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
28454         Define builtins.
28455         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
28456         pattern.
28457         * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
28458         UNSPEC_UABDL.
28459         * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
28460         builtin.
28461         (vabdl_s16): Likewise.
28462         (vabdl_s32): Likewise.
28463         (vabdl_u8): Likewise.
28464         (vabdl_u16): Likewise.
28465         (vabdl_u32): Likewise.
28466         * config/aarch64/iterators.md (ABDL): New int iterator.
28467         (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
28469 2021-02-01  Martin Sebor  <msebor@redhat.com>
28471         * tree.h (BLOCK_VARS): Add comment.
28472         (BLOCK_SUBBLOCKS): Same.
28473         (BLOCK_SUPERCONTEXT): Same.
28474         (BLOCK_ABSTRACT_ORIGIN): Same.
28475         (inlined_function_outer_scope_p): Same.
28477 2021-02-01  Martin Sebor  <msebor@redhat.com>
28479         PR middle-end/97172
28480         * attribs.c (attr_access::free_lang_data): Define new function.
28481         * attribs.h (attr_access::free_lang_data): Declare new function.
28483 2021-02-01  Richard Biener  <rguenther@suse.de>
28485         * vec.h (auto_vec::auto_vec): Add memory stat parameters
28486         and pass them on.
28487         * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
28489 2021-02-01  Tamar Christina  <tamar.christina@arm.com>
28491         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
28492         aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
28494 2021-02-01  Richard Biener  <rguenther@suse.de>
28496         PR rtl-optimization/98863
28497         * config/i386/i386-features.c (convert_scalars_to_vector):
28498         Set DF_RD_PRUNE_DEAD_DEFS.
28500 2021-01-31  Eric Botcazou  <ebotcazou@adacore.com>
28502         * system.h (SIZE_MAX): Define if not already defined.
28504 2021-01-30  Aaron Sawdey  <acsawdey@linux.ibm.com>
28506         * config/rs6000/genfusion.pl (gen_2logical): New function to
28507         generate patterns for logical-logical fusion.
28508         * config/rs6000/fusion.md: Regenerated patterns.
28509         * config/rs6000/rs6000-cpus.def: Add
28510         OPTION_MASK_P10_FUSION_2LOGICAL.
28511         * config/rs6000/rs6000.c (rs6000_option_override_internal):
28512         Enable logical-logical fusion for p10.
28513         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
28515 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
28517         * config/rs6000/rs6000.opt: Add periods to new AIX options.
28519 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
28521         * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
28522         (mabi=vec-default): New.
28523         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
28524         __EXTABI__ for AIX Vector extended ABI.
28525         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
28526         extabi info.
28527         (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
28528         are non-volatile.
28529         * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
28531 2021-01-30  Jakub Jelinek  <jakub@redhat.com>
28533         * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
28534         DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
28536 2021-01-29  Vladimir N. Makarov  <vmakarov@redhat.com>
28538         PR target/97701
28539         * lra-constraints.c (in_class_p): Don't narrow class only for REG
28540         or MEM.
28542 2021-01-29  Will Schmidt  <will_schmidt@vnet.ibm.com>
28544         * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
28545         clauses for CODE_FOR_vsx_xvcvuxddp_scale and
28546         CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
28548 2021-01-29  Andrew MacLeod  <amacleod@redhat.com>
28550         PR tree-optimization/98866
28551         * gimple-range-gori.h (gori_compute:set_range_invariant): New.
28552         * gimple-range-gori.cc (gori_map::set_range_invariant): New.
28553         (gori_map::m_maybe_invariant): Rename from all_outgoing.
28554         (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
28555         (gori_map::is_export_p): Ditto.
28556         (gori_map::calculate_gori): Ditto.
28557         (gori_compute::set_range_invariant): New.
28558         * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
28559         invariant for pointers evaluating to [1, +INF].
28561 2021-01-29  Richard Biener  <rguenther@suse.de>
28563         PR rtl-optimization/98863
28564         * config/i386/i386-features.c (remove_partial_avx_dependency):
28565         Do not perform DF analysis.
28566         (pass_data_remove_partial_avx_dependency): Remove
28567         TODO_df_finish.
28569 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
28571         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
28572         builtin generator macros.
28573         * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
28574         Define.
28575         * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
28576         instead of inline asm.
28577         (vmull_n_s32): Likewise.
28578         (vmull_n_u16): Likewise.
28579         (vmull_n_u32): Likewise.
28581 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28583         * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
28584         Define builtins.
28585         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
28586         Rename to...
28587         (aarch64_<sur>abdl2<mode>): ... This.
28588         (<sur>sadv16qi): Adjust use of above.
28589         * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
28590         builtin.
28591         (vabdl_high_s16): Likewise.
28592         (vabdl_high_s32): Likewise.
28593         (vabdl_high_u8): Likewise.
28594         (vabdl_high_u16): Likewise.
28595         (vabdl_high_u32): Likewise.
28597 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28599         * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
28600         builtin.
28601         (uabal2): Likewise.
28602         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
28603         pattern.
28604         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
28605         UNSPEC_UABAL2.
28606         * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
28607         builtin.
28608         (vabal_high_s16): Likewise.
28609         (vabal_high_s32): Likewise.
28610         (vabal_high_u8): Likewise.
28611         (vabal_high_u16): Likewise.
28612         (vabal_high_u32): Likewise.
28613         * config/aarch64/iterators.md (ABAL2): New mode iterator.
28614         (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
28616 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28618         * config/aarch64/aarch64-simd-builtins.def (sabal): Define
28619         builtin.
28620         (uabal): Likewise.
28621         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
28622         Rename to...
28623         (aarch64_<sur>abal<mode>): ... This
28624         (<sur>sadv16qi): Adust use of the above.
28625         * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
28626         builtin.
28627         (vabal_s16): Likewise.
28628         (vabal_s32): Likewise.
28629         (vabal_u8): Likewise.
28630         (vabal_u16): Likewise.
28631         (vabal_u32): Likewise.
28633 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28635         * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
28636         Define builtins.
28637         * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
28638         Define.
28639         * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
28640         builtin.
28641         (vaddlv_s16): Likewise.
28642         (vaddlv_u8): Likewise.
28643         (vaddlv_u16): Likewise.
28644         (vaddlvq_s8): Likewise.
28645         (vaddlvq_s16): Likewise.
28646         (vaddlvq_s32): Likewise.
28647         (vaddlvq_u8): Likewise.
28648         (vaddlvq_u16): Likewise.
28649         (vaddlvq_u32): Likewise.
28650         (vaddlv_s32): Likewise.
28651         (vaddlv_u32): Likewise.
28652         * config/aarch64/iterators.md (VDQV_L): New mode iterator.
28653         (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
28654         (Vwstype): New mode attribute.
28655         (Vwsuf): Likewise.
28656         (VWIDE_S): Likewise.
28657         (USADDLV): New int iterator.
28658         (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
28660 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
28662         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
28663         builtin generator macros.
28664         * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
28665         Define.
28666         * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
28667         instead of inline asm.
28668         (vmlsl_lane_s32): Likewise.
28669         (vmlsl_lane_u16): Likewise.
28670         (vmlsl_lane_u32): Likewise.
28671         (vmlsl_laneq_s16): Likewise.
28672         (vmlsl_laneq_s32): Likewise.
28673         (vmlsl_laneq_u16): Likewise.
28674         (vmlsl_laneq_u32): Likewise.
28676 2021-01-29  Richard Biener  <rguenther@suse.de>
28678         * doc/invoke.texi (--param max-gcse-memory): Document unit
28679         of size.
28680         * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
28681         * params.opt (--param max-gcse-memory): Adjust default and
28682         document unit of size.
28684 2021-01-29  Richard Biener  <rguenther@suse.de>
28686         PR rtl-optimization/98863
28687         * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
28688         HOST_WIDE_INT for the memory estimate.
28690 2021-01-29  Bin Cheng  <bin.cheng@linux.alibaba.com>
28691             Richard Biener  <rguenther@suse.de>
28693         PR tree-optimization/97627
28694         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
28695         Do not analyze fake edges.
28697 2021-01-29  Richard Biener  <rguenther@suse.de>
28699         PR rtl-optimization/98144
28700         * df.h (df_mir_bb_info): Add con_visited member.
28701         * df-problems.c (df_mir_alloc): Initialize con_visited,
28702         do not fully populate IN and OUT.
28703         (df_mir_reset): Likewise.
28704         (df_mir_confluence_0): Set con_visited.
28705         (df_mir_confluence_n): Properly handle implicitely
28706         fully populated IN and OUT as designated by con_visited
28707         and update con_visited accordingly.
28709 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
28711         PR target/98849
28712         * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
28713         vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
28714         && !TARGET_REALLY_IWMMXT to conditions.
28716 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
28718         PR debug/98331
28719         * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
28720         a BARRIER.
28722 2021-01-28  Marek Polacek  <polacek@redhat.com>
28724         PR c++/94775
28725         * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
28726         the main variant, maybe reset it in its variants too.
28727         * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
28728         (check_aligned_type): Check if TYPE_USER_ALIGN match.
28730 2021-01-28  Christophe Lyon  <christophe.lyon@linaro.org>
28732         PR target/98730
28733         * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
28734         of constant zero for comparisons.
28736 2021-01-28  Michael Meissner  <meissner@linux.ibm.com>
28738         * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
28739         support for mapping built-in function names for long double
28740         built-in functions if long double is IEEE 128-bit.
28742 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
28744         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
28745         builtin generator macros.
28746         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
28747         Define.
28748         * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
28749         instead of inline asm.
28750         (vmlsl_n_s32): Likewise.
28751         (vmlsl_n_u16): Likewise.
28752         (vmlsl_n_u32): Likewise.
28754 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
28756         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
28757         builtin generator macros.
28758         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
28759         Define.
28760         * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
28761         instead of inline asm.
28762         (vmlal_n_s32): Likewise.
28763         (vmlal_n_u16): Likewise.
28764         (vmlal_n_u32): Likewise.
28766 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28768         * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
28769         builtin.
28770         * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
28771         Define.
28772         (aarch64_shrn2<mode>_insn_be): Likewise.
28773         (aarch64_shrn2<mode>): Likewise.
28774         * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
28775         using builtins.
28776         (vshrn_high_n_s32): Likewise.
28777         (vshrn_high_n_s64): Likewise.
28778         (vshrn_high_n_u16): Likewise.
28779         (vshrn_high_n_u32): Likewise.
28780         (vshrn_high_n_u64): Likewise.
28782 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28784         * config/aarch64/aarch64-simd-builtins.def (shrn): Define
28785         builtin.
28786         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
28787         Define.
28788         (aarch64_shrn<mode>_insn_be): Likewise.
28789         (aarch64_shrn<mode>): Likewise.
28790         * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
28791         builtins.
28792         (vshrn_n_s32): Likewise.
28793         (vshrn_n_s64): Likewise.
28794         (vshrn_n_u16): Likewise.
28795         (vshrn_n_u32): Likewise.
28796         (vshrn_n_u64): Likewise.
28797         * config/aarch64/iterators.md (vn_mode): New mode attribute.
28799 2021-01-28  Richard Biener  <rguenther@suse.de>
28801         PR rtl-optimization/80960
28802         * dse.c (check_mem_read_rtx): Call get_addr on the
28803         offsetted address.
28805 2021-01-28  Xionghu Luo  <luoxhu@linux.ibm.com>
28806             David Edelsohn  <dje.gcc@gmail.com>
28808         PR target/98799
28809         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28810         Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
28811         when -m32.
28812         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
28813         Delete.
28814         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
28815         wrapper call rs6000_expand_vector_set_var for cleanup.  Call
28816         rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
28817         directly.
28818         (rs6000_expand_vector_set_var): Delete.
28819         (rs6000_expand_vector_set_var_p9): Make static.
28820         (rs6000_expand_vector_set_var_p8): Make static.
28822 2021-01-28  Xing GUO  <higuoxing@gmail.com>
28824         * common/config/riscv/riscv-common.c
28825         (riscv_subset_list::parsing_subset_version): Fix -march option parsing
28826         when `p` extension exists.
28828 2021-01-27  Vladimir N. Makarov  <vmakarov@redhat.com>
28830         PR rtl-optimization/97684
28831         * ira.c (ira): Call ira_set_pseudo_classes before
28832         update_equiv_regs when it is necessary.
28834 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
28836         PR target/98853
28837         * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
28838         %w0, %w1 and %2 instead of %0, %1 and %2.
28840 2021-01-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
28842         * config/rs6000/genfusion.pl: New script to generate
28843         define_insn_and_split patterns so combine can arrange fused
28844         instructions next to each other.
28845         * config/rs6000/fusion.md: New file, generated fused instruction
28846         patterns for combine.
28847         * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
28848         (non_update_memory_operand): New predicate.
28849         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
28850         OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
28851         POWERPC_MASKS.
28852         * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
28853         prototype.
28854         * config/rs6000/rs6000.c (rs6000_option_override_internal):
28855         Automatically set OPTION_MASK_P10_FUSION and
28856         OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
28857         (rs600_opt_masks): Allow -mpower10-fusion
28858         in function attributes.
28859         (address_is_non_pfx_d_or_x): New function.
28860         * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
28861         * config/rs6000/rs6000.md: Include fusion.md.
28862         * config/rs6000/rs6000.opt: Add -mpower10-fusion
28863         and -mpower10-fusion-ld-cmpi.
28864         * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
28866 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
28868         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
28869         builtin generator macros.
28870         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
28871         Rename to...
28872         (aarch64_<su>mlal<mode>): This.
28873         * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
28874         instead of inline asm.
28875         (vmlal_s16): Likewise.
28876         (vmlal_s32): Likewise.
28877         (vmlal_u8): Likewise.
28878         (vmlal_u16): Likewise.
28879         (vmlal_u32): Likewise.
28881 2021-01-27  Richard Biener  <rguenther@suse.de>
28883         PR tree-optimization/98854
28884         * tree-vect-slp.c (vect_build_slp_tree_2): Also build
28885         PHIs from scalars when the number of CTORs matches the
28886         number of children.
28888 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
28890         * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
28891         generator macro.
28892         * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
28893         Rename to...
28894         (aarch64_mls_n<mode>): This.
28895         * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
28896         instead of asm.
28897         (vmls_n_s32): Likewise.
28898         (vmls_n_u16): Likewise.
28899         (vmls_n_u32): Likewise.
28900         (vmlsq_n_s16): Likewise.
28901         (vmlsq_n_s32): Likewise.
28902         (vmlsq_n_u16): Likewise.
28903         (vmlsq_n_u32): Likewise.
28905 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
28907         * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
28908         generator macro.
28909         * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
28910         than asm.
28911         (vmls_s16): Likewise.
28912         (vmls_s32): Likewise.
28913         (vmls_u8): Likewise.
28914         (vmls_u16): Likewise.
28915         (vmls_u32): Likewise.
28916         (vmlsq_s8): Likewise.
28917         (vmlsq_s16): Likewise.
28918         (vmlsq_s32): Likewise.
28919         (vmlsq_u8): Likewise.
28920         (vmlsq_u16): Likewise.
28921         (vmlsq_u32): Likewise.
28923 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
28925         * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
28926         generator macro.
28927         * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
28928         Rename to...
28929         (aarch64_mla_n<mode>): This.
28930         * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
28931         instead of asm.
28932         (vmla_n_s32): Likewise.
28933         (vmla_n_u16): Likewise.
28934         (vmla_n_u32): Likewise.
28935         (vmlaq_n_s16): Likewise.
28936         (vmlaq_n_s32): Likewise.
28937         (vmlaq_n_u16): Likewise.
28938         (vmlaq_n_u32): Likewise.
28940 2021-01-27  liuhongt  <hongtao.liu@intel.com>
28942         PR target/98833
28943         * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
28944         (*sse2_eq<mode>3): Ditto.
28946 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
28948         * tree-pass.h (PROP_trees): Rename to ...
28949         (PROP_gimple): ... this.
28950         * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
28951         * passes.c (execute_function_dump, execute_function_todo,
28952         execute_one_ipa_transform_pass, execute_one_pass): Likewise.
28953         * varpool.c (ctor_for_folding): Likewise.
28955 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
28957         PR tree-optimization/97260
28958         * varpool.c: Include tree-pass.h.
28959         (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
28960         non-TREE_SIDE_EFFECTS automatic variables.
28962 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
28964         * doc/cpp.texi (__cplusplus): Document value for -std=c++23
28965         or -std=gnu++23.
28966         * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
28967         * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
28968         (gen_compile_unit_die): Recognise C++23.
28970 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
28972         PR bootstrap/98839
28973         * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
28974         in comparison.
28976 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
28978         PR target/98681
28979         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
28980         Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
28981         and INTVAL (mask).  Add && INTVAL (mask) > 0 condition.
28983 2021-01-26  Richard Biener  <rguenther@suse.de>
28985         * gimple-pretty-print.c (dump_binary_rhs): Handle
28986         VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
28988 2021-01-26  Richard Biener  <rguenther@suse.de>
28990         PR middle-end/98726
28991         * tree.h (vector_cst_int_elt): Remove.
28992         * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
28993         make static.
28995 2021-01-26  Andrew Stubbs  <ams@codesourcery.com>
28997         * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
28998         for V64DFmode min/max reductions.
29000 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
29002         * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
29003         as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
29004         two halves, one with x and the other with const0_rtx, ordered
29005         depending on endianity.
29007 2021-01-26  Alexandre Oliva  <oliva@adacore.com>
29009         * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
29010         temporaries not seen in binding block, and not about to be
29011         added as gimple variables.
29013 2021-01-25  Martin Sebor  <msebor@redhat.com>
29015         PR c++/98646
29016         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
29018 2021-01-25  Martin Liska  <mliska@suse.cz>
29020         * value-prof.c (get_nth_most_common_value): Use %s instead
29021         of %qs string.
29023 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
29025         PR debug/98811
29026         * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
29027         readelf -wi is able to read the emitted .debug_info back.
29028         * configure: Regenerated.
29030 2021-01-25  Martin Liska  <mliska@suse.cz>
29032         PR gcov-profile/98739
29033         * common.opt: Add missing sign symbol.
29034         * value-prof.c (get_nth_most_common_value): Restore handling
29035         of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
29036         PROFILE_REPRODUCIBILITY_MULTITHREADED.
29038 2021-01-25  Richard Biener  <rguenther@suse.de>
29040         PR middle-end/98807
29041         * tree.c (vector_element_bits): Always use precision of
29042         the element type for boolean vectors.
29044 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29046         * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
29047         (ENDFILE_SPEC): Evaluate qnolinkcmds.
29049 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29051         * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
29052         nostartfiles handling since this is already done by
29053         LINK_COMMAND_SPEC.  Evaluate qnolinkcmds.
29054         (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
29055         is already done by LINK_COMMAND_SPEC.
29056         (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
29057         this is already done by LINK_COMMAND_SPEC.  Remove qnolinkcmds
29058         evaluation.
29060 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
29062         PR testsuite/98771
29063         * fold-const-call.c (host_size_t_cst_p): Renamed to ...
29064         (size_t_cst_p): ... this.  Check and store unsigned HOST_WIDE_INT
29065         value rather than host size_t.
29066         (fold_const_call): Change type of s2 from size_t to
29067         unsigned HOST_WIDE_INT.  Use size_t_cst_p instead of
29068         host_size_t_cst_p.  For strncmp calls, pass MIN (s2, SIZE_MAX)
29069         instead of s2 as last argument.
29071 2021-01-25  Tamar Christina  <tamar.christina@arm.com>
29073         * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
29074         VCMLA_OP, VCMUL_OP): New.
29075         * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
29076         * config/arm/neon.md (cmul<conj_op><mode>3): New.
29077         * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
29078         UNSPEC_VCMUL_CONJ): New.
29079         * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
29080         cml<fcmac1><conj_op><mode>4): New.
29082 2021-01-23  Jakub Jelinek  <jakub@redhat.com>
29084         PR testsuite/97301
29085         * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
29087 2021-01-22  Jonathan Wright  <jonathan.wright@arm.com>
29089         * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
29090         generator macro.
29091         * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
29092         than asm.
29093         (vmla_s16): Likewise.
29094         (vmla_s32): Likewise.
29095         (vmla_u8): Likewise.
29096         (vmla_u16): Likewise.
29097         (vmla_u32): Likewise.
29098         (vmlaq_s8): Likewise.
29099         (vmlaq_s16): Likewise.
29100         (vmlaq_s32): Likewise.
29101         (vmlaq_u8): Likewise.
29102         (vmlaq_u16): Likewise.
29103         (vmlaq_u32): Likewise.
29105 2021-01-22  David Malcolm  <dmalcolm@redhat.com>
29107         * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
29108         directive.
29110 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
29112         PR debug/98796
29113         * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
29114         filenames to emit, still emit the required 0 index directory and
29115         filename entries that match DW_AT_comp_dir and DW_AT_name of the
29116         compilation unit.
29118 2021-01-22  Marek Polacek  <polacek@redhat.com>
29120         PR c++/98545
29121         * doc/invoke.texi: Update C++ ABI Version 15 description.
29123 2021-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29125         PR tree-optimization/98766
29126         * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
29127         comparing against type size with param_avoid_fma_max_bits.
29129 2021-01-22  Richard Biener  <rguenther@suse.de>
29131         PR middle-end/98793
29132         * tree.c (vector_element_bits): Key single-bit bool vector on
29133         integer mode rather than not vector mode.
29135 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
29137         PR target/98093
29138         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29139         Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
29140         platforms.
29141         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
29142         to call different path for P8 and P9.
29143         (rs6000_expand_vector_set_var_p9): New function.
29144         (rs6000_expand_vector_set_var_p8): New function.
29146 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
29148         PR target/79251
29149         PR target/98065
29150         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29151         Ajdust variable index vec_insert from address dereference to
29152         ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
29153         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
29154         New declaration.
29155         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
29157 2021-01-22  Martin Liska  <mliska@suse.cz>
29159         PR gcov-profile/98739
29160         * profile.c (compute_value_histograms): Drop time profile for
29161         -fprofile-reproducible=multithreaded.
29163 2021-01-22  Nathan Sidwell  <nathan@acm.org>
29165         * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
29166         existence here.
29168 2021-01-22  Richard Biener  <rguenther@suse.de>
29170         PR middle-end/98773
29171         * tree-data-ref.c (initalize_matrix_A): Revert previous
29172         change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
29174 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
29176         PR tree-optimization/90248
29177         * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
29178         X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
29179         simplifications.
29180         (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
29181         X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
29183 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
29185         PR tree-optimization/98255
29186         * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
29187         extend index - low_bound from sizetype's precision rather than index
29188         precision.
29189         (get_addr_base_and_unit_offset_1): Likewise.
29190         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
29191         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
29193 2021-01-22  Richard Biener  <rguenther@suse.de>
29195         PR tree-optimization/98786
29196         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
29197         adding new uses of abnormals.  Verify we deal with a conditional
29198         conversion.
29200 2021-01-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29202         PR target/98636
29203         * optc-save-gen.awk: Add arm_fp16_format to checked_options.
29205 2021-01-22  liuhongt  <hongtao.liu@intel.com>
29207         PR target/96891
29208         PR target/98348
29209         * config/i386/sse.md (VI_128_256): New mode iterator.
29210         (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
29211          *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
29212          *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
29213         define_insn_and_split to lower avx512 vector comparison to avx
29214         version when dest is vector.
29215         (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
29216         define_insn_and_split for negating the comparison result.
29217         * config/i386/predicates.md (float_vector_all_ones_operand):
29218         New predicate.
29219         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
29220         general NOT operator without UNSPEC_MASKOP.
29222 2021-01-21  Vladimir N. Makarov  <vmakarov@redhat.com>
29224         PR rtl-optimization/98777
29225         * lra-int.h (lra_pmode_pseudo): New extern.
29226         * lra.c (lra_pmode_pseudo): New global.
29227         (lra): Set it up.
29228         * lra-eliminations.c (eliminate_regs_in_insn): Use it.
29230 2021-01-21  Ilya Leoshkevich  <iii@linux.ibm.com>
29232         * fwprop.c (fwprop_propagation::classify_result): Allow
29233         (subreg (mem)) simplifications.
29235 2021-01-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29237         * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
29238         Split into...
29239         (aarch64_sqdmlal<mode>): ... This...
29240         (aarch64_sqdmlsl<mode>): ... And this.
29241         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
29242         (aarch64_sqdmlal_lane<mode>): ... This...
29243         (aarch64_sqdmlsl_lane<mode>): ... And this.
29244         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
29245         (aarch64_sqdmlsl_laneq<mode>): ... This...
29246         (aarch64_sqdmlal_laneq<mode>):  ... And this.
29247         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
29248         (aarch64_sqdmlsl_n<mode>): ... This...
29249         (aarch64_sqdmlal_n<mode>): ... And this.
29250         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
29251         (aarch64_sqdmlal2<mode>_internal): ... This...
29252         (aarch64_sqdmlsl2<mode>_internal): ... And this.
29254 2021-01-21  Christophe Lyon  <christophe.lyon@linaro.org>
29256         * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
29258 2021-01-21  Andrea Corallo  <andrea.corallo@arm.com>
29260         PR target/96372
29261         * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
29263 2021-01-21  liuhongt  <hongtao.liu@intel.com>
29265         PR rtl-optimization/98694
29266         * regcprop.c (copy_value): If SRC had been assigned a mode
29267         narrower than the copy, we can't link DEST into the chain even
29268         they have same hard_regno_nregs(i.e. HImode/SImode in i386
29269         backend).
29271 2021-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29273         * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
29274         Convert to define_insn_and_split.  Split into simple move when moving
29275         bottom element.
29277 2021-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
29279         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
29280         Adjust comment.  Simplify code.
29282 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
29284         PR debug/98765
29285         * dwarf2out.c (reset_indirect_string): Also reset indirect strings
29286         with DW_FORM_line_strp form.
29287         (prune_unused_types_update_strings): Don't add into debug_str_hash
29288         indirect strings with DW_FORM_line_strp form.
29289         (adjust_name_comp_dir): New function.
29290         (dwarf2out_finish): Call it on CU DIEs after resetting
29291         debug_line_str_hash.
29293 2021-01-20  Vladimir N. Makarov  <vmakarov@redhat.com>
29295         PR rtl-optimization/98722
29296         * lra-eliminations.c (eliminate_regs_in_insn): Check that target
29297         has no 3-op add insn to transform insns containing two pluses.
29299 2021-01-20  Richard Biener  <rguenther@suse.de>
29301         * hwint.h (add_hwi): New function.
29302         (mul_hwi): Likewise.
29303         * tree-data-ref.c (initialize_matrix_A): Properly translate
29304         tree constants and avoid HOST_WIDE_INT_MIN.
29305         (lambda_matrix_row_add): Avoid undefined integer overflow
29306         and return true on such overflow.
29307         (lambda_matrix_right_hermite): Handle overflow from
29308         lambda_matrix_row_add gracefully.  Simplify previous fix.
29309         (analyze_subscript_affine_affine): Likewise.
29311 2021-01-20  Eugene Rozenfeld  <erozen@microsoft.com>
29313         PR tree-optimization/96674
29314         * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
29315         x >= y && y != XXX_MIN --> x > y - 1
29317 2021-01-20  Richard Sandiford  <richard.sandiford@arm.com>
29319         PR tree-optimization/98535
29320         * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
29321         If the high and low permutes are the same, remove the high permutes
29322         from the working set and only continue with the low ones.
29324 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
29326         PR tree-optimization/98721
29327         * builtins.c (access_ref::inform_access): Don't assume
29328         SSA_NAME_IDENTIFIER must be non-NULL.  Print messages about
29329         object whenever allocfn is NULL, rather than only when DECL_P
29330         is true.  Use %qE instead of %qD for that.  Formatting fixes.
29332 2021-01-20  Richard Biener  <rguenther@suse.de>
29334         PR tree-optimization/98758
29335         * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
29336         (lambda_matrix_right_hermite): Avoid undefinedness with
29337         signed integer abs and multiplication.
29338         (analyze_subscript_affine_affine): Use lambda_int.
29340 2021-01-20  David Malcolm  <dmalcolm@redhat.com>
29342         PR debug/98751
29343         * dwarf2out.c (output_line_info): Rename static variable
29344         "generation", moving it out of the function to...
29345         (output_line_info_generation): New.
29346         (init_sections_and_labels): Likewise, renaming the variable to...
29347         (init_sections_and_labels_generation): New.
29348         (dwarf2out_c_finalize): Reset the new variables.
29350 2021-01-19  Martin Sebor  <msebor@redhat.com>
29352         PR middle-end/98664
29353         * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
29354         all functions, even if they're not declared artificial or inline.
29355         * tree.c (tree_inlined_location): Use macro expansion location
29356         only if scope traversal fails to expose one.
29358 2021-01-19  Richard Sandiford  <richard.sandiford@arm.com>
29360         PR rtl-optimization/92294
29361         * alias.c (compare_base_symbol_refs): Take an extra parameter
29362         and add the distance between two symbols to it.  Enshrine in
29363         comments that -1 means "either 0 or 1, but we can't tell
29364         which at compile time".
29365         (memrefs_conflict_p): Update call accordingly.
29366         (rtx_equal_for_memref_p): Likewise.  Take the distance between symbols
29367         into account.
29369 2021-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29371         * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
29372         sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
29373         uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
29374         sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
29375         sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
29376         sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
29377         sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
29378         sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
29379         sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
29380         uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
29381         sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
29382         sqmovun): Use NONE flags.
29384 2021-01-19  Richard Biener  <rguenther@suse.de>
29386         PR ipa/98330
29387         * ipa-modref.c (analyze_stmt): Only record a summary for a
29388         direct call.
29390 2021-01-19  Richard Biener  <rguenther@suse.de>
29392         PR middle-end/98638
29393         * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
29395 2021-01-19  Daniel Hellstrom  <daniel@gaisler.com>
29397         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
29398         built-in define __FIX_LEON3FT_TN0018.
29400 2021-01-19  Richard Biener  <rguenther@suse.de>
29402         PR ipa/97673
29403         * tree-inline.c (tree_function_versioning): Set input_location
29404         to UNKNOWN_LOCATION throughout the function.
29406 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
29408         PR fortran/98476
29409         * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
29411 2021-01-19  Martin Jambor  <mjambor@suse.cz>
29413         PR ipa/98690
29414         * ipa-sra.c (ssa_name_only_returned_p): New parameter fun.  Check
29415         whether non-call exceptions allow removal of a statement.
29416         (isra_analyze_call): Pass the appropriate function to
29417         ssa_name_only_returned_p.
29419 2021-01-19  Geng Qi  <gengqi@linux.alibaba.com>
29421         * config/riscv/arch-canonicalize (longext_sort): New function for
29422          sorting 'multi-letter'.
29423         * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
29424         'alts'. The 'arch' may not be the first of 'alts'.
29425         (_expand_combination): Add underline for the 'ext' without '*'.
29426         This is because, a single-letter extension can always be treated well
29427         with a '_' prefix, but it cannot be separated out if it is appended
29428         to a multi-letter.
29430 2021-01-18  Vladimir N. Makarov  <vmakarov@redhat.com>
29432         PR target/97847
29433         * ira.c (ira): Skip abnormal critical edge splitting.
29435 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
29437         PR tree-optimization/98727
29438         * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
29439         second .MUL_OVERFLOW operand for signed multiplication with overflow
29440         checking if the second operand of multiplication is not constant.
29442 2021-01-18  David Edelsohn  <dje.gcc@gmail.com>
29444         * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
29445         defaults to version 4.
29447 2021-01-18  David Malcolm  <dmalcolm@redhat.com>
29449         * attribs.h (fndecl_dealloc_argno): New decl.
29450         * builtins.c (call_dealloc_argno): Split out second half of
29451         function into...
29452         (fndecl_dealloc_argno): New.
29453         * doc/extend.texi (Common Function Attributes): Document the
29454         interaction between the analyzer and the malloc attribute.
29455         * doc/invoke.texi (Static Analyzer Options): Likewise.
29457 2021-01-17  David Edelsohn  <dje.gcc@gmail.com>
29459         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
29460         dwarf_version to 4.
29461         * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
29463 2021-01-17  Martin Jambor  <mjambor@suse.cz>
29465         PR ipa/98222
29466         * cgraph.c (clone_of_p): Check also former_clone_of as we climb
29467         the clone tree.
29469 2021-01-17  Mark Wielaard  <mark@klomp.org>
29471         * common.opt (gdwarf-): Init(5).
29472         * doc/invoke.texi (-gdwarf): Document default to 5.
29474 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
29476         * builtin-types.def
29477         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
29478         to...
29479         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
29480         ...this.  Add extra argument.
29481         * gimplify.c (omp_default_clause): Ensure that event handle is
29482         firstprivate in a task region.
29483         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
29484         (gimplify_adjust_omp_clauses): Likewise.
29485         * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
29486         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
29487         * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
29488         if detach clause specified.  Add detach argument when generating
29489         call to GOMP_task.
29490         * omp-low.c (scan_sharing_clauses): Setup data environment for detach
29491         clause.
29492         (finish_taskreg_scan): Move field for variable containing the event
29493         handle to the front of the struct.
29494         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH.  Fix
29495         ordering.
29496         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
29497         OMP_CLAUSE_DETACH clause.
29498         (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
29499         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
29500         * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
29501         Fix ordering.
29502         (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH.  Fix
29503         ordering.
29504         (walk_tree_1): Handle OMP_CLAUSE_DETACH.
29506 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29508         * config/nios2/t-rtems: Reset all MULTILIB_* variables.  Shorten
29509         multilib directory names.  Use MULTILIB_REQUIRED instead of
29510         MULTILIB_EXCEPTIONS.  Add -mhw-mul -mhw-mulx -mhw-div
29511         -mcustom-fpu-cfg=fph2 multilib.
29513 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29515         * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
29516         (nios2_init_fpu_configs): Provide register values for new
29517         -mcustom-fpu-cfg=fph2 option variant.
29518         * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
29519         variant.
29521 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29523         * config/nios2/nios2.c (nios2_custom_check_insns): Remove
29524         custom instruction warnings.
29526 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
29528         PR tree-optimization/96669
29529         * match.pd ((CST << x) & 1 -> x == 0): New simplification.
29531 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
29533         PR tree-optimization/96271
29534         * passes.def: Pass false argument to first two pass_cd_dce
29535         instances and true to last instance.  Add comment that
29536         last instance rewrites no longer addressed locals.
29537         * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
29538         initialize it.
29539         (pass_cd_dce::set_pass_param): New method.
29540         (pass_cd_dce::execute): Return TODO_update_address_taken from
29541         last cd_dce instance.
29543 2021-01-15  Carl Love  <cel@us.ibm.com>
29545         * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
29546         New defines.
29547         * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
29548         * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
29549         DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
29550         DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
29551         MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
29552         Add builtin define.
29553         (MULH, DIVE, MOD):  Add new BU_P10_OVERLOAD_2 definitions.
29554         * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
29555         VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
29556         New overloaded definitions.
29557         (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
29558         P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
29559         P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
29560         P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
29561         P10V_BUILTIN_MULHU_V4SI]: Add case
29562         statement for builtins.
29563         * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
29564         * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
29565         (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
29566         (vsx_mul_v2di): Add if TARGET_POWER10 statement.
29567         (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
29568         (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
29569         mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
29570         Add define_insn, mode is VIlong.
29571         * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
29572         Add builtin descriptions.
29574 2021-01-15  Eric Botcazou  <ebotcazou@adacore.com>
29576         * final.c (final_start_function_1): Reset force_source_line.
29578 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
29580         PR tree-optimization/96669
29581         * match.pd (((1 << A) & 1) != 0 -> A == 0,
29582         ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
29583         possibly different power of two constants and to right shift too.
29585 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
29587         PR tree-optimization/96681
29588         * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
29589         ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
29590         ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
29591         ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
29593 2021-01-15  Alexandre Oliva  <oliva@adacore.com>
29595         * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
29597 2021-01-15  Tamar Christina  <tamar.christina@arm.com>
29599         * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
29600         cmul<conj_op><mode>3): New.
29601         * config/aarch64/iterators.md (UNSPEC_FCMUL,
29602         UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
29603         UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
29604         FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
29605         sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
29606         (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
29607         (rot_op): Renamed to conj_op.
29608         * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
29609         cmul<conj_op><mode>3): New.
29610         * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
29611         cmul<conj_op><mode>3): New.
29613 2021-01-15  David Malcolm  <dmalcolm@redhat.com>
29615         PR bootstrap/98696
29616         * diagnostic.c
29617         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
29618         Escape the tempfile name when constructing the expected output.
29620 2021-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29622         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
29623         Rename to...
29624         (aarch64_<su>mlsl_hi<mode>): ... This.
29625         (aarch64_<su>mlsl_hi<mode>): Define.
29626         (*aarch64_<su>mlsl<mode): Rename to...
29627         (aarch64_<su>mlsl<mode): ... This.
29628         * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
29629         smlsl_hi, umlsl_hi): Define builtins.
29630         * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
29631         vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
29632         vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
29633         vmlsl_u16, vmlsl_u32): Reimplement with builtins.
29635 2021-01-15  Uroš Bizjak  <ubizjak@gmail.com>
29637         * config/i386/i386-c.c (ix86_target_macros):
29638         Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
29640 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
29642         PR target/88836
29643         * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
29644         * Makefile.in (RTL_SSA_H): New variable.
29645         * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
29646         * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
29647         * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
29648         pass_combine.
29649         * config/aarch64/aarch64-cc-fusion.cc: New file.
29651 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
29653         * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
29654         calling cancel_changes for changes that no longer exist.
29656 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
29658         * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
29659         (function_info::reg_defs): ...this.
29660         * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
29661         (function_info::reg_defs): ...this.
29663 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
29665         PR target/71233
29666         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
29668 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
29670         Revert:
29671         2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
29673         PR target/71233
29674         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
29676 2021-01-15  Richard Biener  <rguenther@suse.de>
29678         PR tree-optimization/96376
29679         * tree-vect-stmts.c (get_load_store_type): Disregard alignment
29680         for VMAT_INVARIANT.
29682 2021-01-15  Martin Liska  <mliska@suse.cz>
29684         * doc/install.texi: Document that some tests need pytest module.
29685         * doc/sourcebuild.texi: Likewise.
29687 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
29689         PR target/71233
29690         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
29692 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
29694         * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
29695         (mve_vshrq_n_u<mode>_imm): Likewise.
29696         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
29697         * config/arm/vec-common.md: ... here.
29699 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
29701         * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
29702         vec-commond.md.
29703         * config/arm/neon.md (vashl<mode>3): Delete.
29704         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
29705         (vasl<mode>3): New expander.
29707 2021-01-15  Richard Biener  <rguenther@suse.de>
29709         PR tree-optimization/98685
29710         * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
29711         of vector extern defs.
29713 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
29715         PR jit/98586
29716         * diagnostic.c (diagnostic_kind_text): Break out this array
29717         from...
29718         (diagnostic_build_prefix): ...here.
29719         (fancy_abort): Detect when diagnostic_initialize has not yet been
29720         called and fall back to a minimal implementation of printing the
29721         ICE, rather than segfaulting in internal_error.
29723 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
29725         * diagnostic.c (diagnostic_initialize): Eliminate
29726         parseable_fixits_p in favor of initializing extra_output_kind from
29727         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
29728         (convert_column_unit): New function, split out from...
29729         (diagnostic_converted_column): ...this.
29730         (print_parseable_fixits): Add "column_unit" and "tabstop" params.
29731         Use them to call convert_column_unit on the column values.
29732         (diagnostic_report_diagnostic): Eliminate conditional on
29733         parseable_fixits_p in favor of a switch statement on
29734         extra_output_kind, passing the appropriate values to the new
29735         params of print_parseable_fixits.
29736         (selftest::test_print_parseable_fixits_none): Update for new
29737         params of print_parseable_fixits.
29738         (selftest::test_print_parseable_fixits_insert): Likewise.
29739         (selftest::test_print_parseable_fixits_remove): Likewise.
29740         (selftest::test_print_parseable_fixits_replace): Likewise.
29741         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
29742         New.
29743         (selftest::diagnostic_c_tests): Call it.
29744         * diagnostic.h (enum diagnostics_extra_output_kind): New.
29745         (diagnostic_context::parseable_fixits_p): Delete field in favor
29746         of...
29747         (diagnostic_context::extra_output_kind): ...this new field.
29748         * doc/invoke.texi (Environment Variables): Add
29749         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
29750         * opts.c (common_handle_option): Update handling of
29751         OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
29752         fields.
29754 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
29756         * tree-vect-slp-patterns.c (class complex_operations_pattern,
29757         complex_operations_pattern::matches,
29758         complex_operations_pattern::recognize,
29759         complex_operations_pattern::build): New.
29760         (slp_patterns): Use it.
29762 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
29764         * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
29765         * optabs.def (cmls_optab, cmls_conj_optab): New.
29766         * doc/md.texi: Document them.
29767         * tree-vect-slp-patterns.c (class complex_fms_pattern,
29768         complex_fms_pattern::matches, complex_fms_pattern::recognize,
29769         complex_fms_pattern::build): New.
29771 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
29773         * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
29774         * optabs.def (cmla_optab, cmla_conj_optab): New.
29775         * doc/md.texi: Document them.
29776         * tree-vect-slp-patterns.c (vect_match_call_p,
29777         class complex_fma_pattern, vect_slp_reset_pattern,
29778         complex_fma_pattern::matches, complex_fma_pattern::recognize,
29779         complex_fma_pattern::build): New.
29781 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
29783         * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
29784         * optabs.def (cmul_optab, cmul_conj_optab): New.
29785         * doc/md.texi: Document them.
29786         * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
29787         vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
29788         vect_build_combine_node, class complex_mul_pattern,
29789         complex_mul_pattern::matches, complex_mul_pattern::recognize,
29790         complex_mul_pattern::build): New.
29792 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
29794         * tree-vect-slp.c (optimize_load_redistribution_1): New.
29795         (optimize_load_redistribution, vect_is_slp_load_node): New.
29796         (vect_match_slp_patterns): Use it.
29798 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
29800         * tree-vect-slp-patterns.c (complex_add_pattern::build):
29801         Elide nodes.
29803 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
29805         * config/gcn/mkoffload.c (main): Create an offload image only in
29806         64-bit configurations.
29808 2021-01-14  H.J. Lu  <hjl.tools@gmail.com>
29810         PR target/98667
29811         * config/i386/i386-options.c (ix86_option_override_internal):
29812         Issue an error for -fcf-protection with CF_BRANCH when compiling
29813         for 32-bit non-TARGET_CMOV targets.
29815 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
29817         PR target/98671
29818         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
29819         Remove declaration and initialization of shadow variable "ret".
29820         (ix86_option_override_internal): Remove delcaration of
29821         shadow variable "i".  Redeclare shadowed variable to unsigned.
29822         * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
29823         * config/i386/i386-builtins.c (get_builtin_code_for_version):
29824         Update for redeclaration.
29825         * config/i386/i386.h (pta_size): Ditto.
29827 2021-01-14  Richard Biener  <rguenther@suse.de>
29829         PR tree-optimization/98674
29830         * tree-data-ref.c (base_supports_access_fn_components_p): New.
29831         (initialize_data_dependence_relation): For two bases without
29832         possible access fns resort to type size equality when determining
29833         shape compatibility.
29835 2021-01-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29837         PR target/66791
29838         * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
29839         <=, >= operators in vcle and vcge intrinsics respectively.
29840         * config/arm/arm_neon_builtins.def: Remove entry for
29841         vcge and vcgeu.
29843 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
29845         PR target/98671
29846         * config/i386/i386-options.c (ix86_function_specific_save):
29847         Remove redundant assignment to opts->x_ix86_branch_cost.
29848         * config/i386/i386.c (ix86_prefetch_sse):
29849         Rename from x86_prefetch_sse.  Update all uses.
29850         * config/i386/i386.h: Update for rename.
29851         * config/i386/i386-options.h: Ditto.
29853 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
29855         PR target/98670
29856         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
29857         *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
29858         Use Bm instead of m for non-avx.  Add isa attribute.
29860 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
29862         PR tree-optimization/96688
29863         * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
29864         ~X can be simplified.
29866 2021-01-14  Richard Sandiford  <richard.sandiford@arm.com>
29868         * tree-vect-stmts.c (vect_model_load_cost): Account for unused
29869         IFN_LOAD_LANES results.
29871 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29873         * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
29874         Define.
29875         (aarch64_xtn<mode>): Likewise.
29876         * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
29877         Define
29878         builtins.
29879         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
29880         builtin.
29881         (vmovl_s16): Likewise.
29882         (vmovl_s32): Likewise.
29883         (vmovl_u8): Likewise.
29884         (vmovl_u16): Likewise.
29885         (vmovl_u32): Likewise.
29886         (vmovn_s16): Likewise.
29887         (vmovn_s32): Likewise.
29888         (vmovn_s64): Likewise.
29889         (vmovn_u16): Likewise.
29890         (vmovn_u32): Likewise.
29891         (vmovn_u64): Likewise.
29893 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29895         * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
29896         Define.
29897         (aarch64_<su>qxtn2<mode>_be): Likewise.
29898         (aarch64_<su>qxtn2<mode>): Likewise.
29899         * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
29900         Define builtins.
29901         * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
29902         (su): Handle ss_truncate and us_truncate.
29903         * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
29904         builtin.
29905         (vqmovn_high_s32): Likewise.
29906         (vqmovn_high_s64): Likewise.
29907         (vqmovn_high_u16): Likewise.
29908         (vqmovn_high_u32): Likewise.
29909         (vqmovn_high_u64): Likewise.
29911 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29913         * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
29914         Define.
29915         (aarch64_xtn2<mode>_be): Likewise.
29916         (aarch64_xtn2<mode>): Likewise.
29917         * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
29918         builtins.
29919         * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
29920         builtins.
29921         (vmovn_high_s32): Likewise.
29922         (vmovn_high_s64): Likewise.
29923         (vmovn_high_u16): Likewise.
29924         (vmovn_high_u32): Likewise.
29925         (vmovn_high_u64): Likewise.
29927 2021-01-13  Stafford Horne  <shorne@gmail.com>
29929         * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
29931 2021-01-13  Stafford Horne  <shorne@gmail.com>
29933         * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
29935 2021-01-13  Stafford Horne  <shorne@gmail.com>
29937         * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
29938           define for __or1k_hard_float__.
29940 2021-01-13  Stafford Horne  <shorne@gmail.com>
29942         * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
29943         (PROFILE_HOOK): Define to call _mcount.
29944         (FUNCTION_PROFILER): Change from abort to no-op.
29946 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
29948         PR tree-optimization/96691
29949         * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
29950         (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
29951         (~D ^ C) or (D ^ C) can be simplified.
29953 2021-01-13  Richard Biener  <rguenther@suse.de>
29955         PR tree-optimization/92645
29956         * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
29957         until after vector lowering.
29959 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
29961         * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
29962         to SVE_I.
29963         (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
29964         (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
29966 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
29968         * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
29969         to SVE_I.
29970         (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
29971         (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
29973 2021-01-13  Richard Biener  <rguenther@suse.de>
29975         PR tree-optimization/92645
29976         * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
29977         BIT_FIELD_REF argument.
29978         (vect_build_slp_tree_2): Record the desired vector type
29979         on the external vector def.
29980         (vectorizable_slp_permutation): Handle required punning
29981         of existing vector defs.
29983 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
29985         * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
29987 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
29989         * config/sh/sh.md (movsf_ie): Remove operands[2] test.
29991 2021-01-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29993         * config.gcc [$target == *-*-gnu*]: Enable
29994         'default_gnu_indirect_function'.
29996 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
29998         PR target/95905
29999         * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
30000         registers before calling targetm.vectorize.vec_perm_const, only after
30001         that.
30002         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
30003         two argument permutation when one operand is zero vector and only
30004         after that force operands into registers.
30005         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
30006         define_insn_and_split pattern.
30007         (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
30008         (*avx512f_zero_extendv16hiv16si2_1): Likewise.
30009         (*avx2_zero_extendv8hiv8si2_1): Likewise.
30010         (*avx512f_zero_extendv8siv8di2_1): Likewise.
30011         (*avx2_zero_extendv4siv4di2_1): Likewise.
30012         * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
30013         into registers.
30014         * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
30015         * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
30016         * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
30017         * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
30018         * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
30019         * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise.  Use std::swap.
30021 2021-01-13  Martin Liska  <mliska@suse.cz>
30023         PR tree-optimization/98455
30024         * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
30025         Record also virtual PHIs.
30026         (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
30027         conditionally.
30029 2021-01-13  Jonathan Wakely  <jwakely@redhat.com>
30031         * doc/invoke.texi (C++ Modules): Fix typos.
30033 2021-01-13  Richard Biener  <rguenther@suse.de>
30035         PR tree-optimization/98640
30036         * tree-ssa-sccvn.c (visit_nary_op): Do not try to
30037         handle plus or minus from a truncated operand to be
30038         sign-extended.
30040 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
30042         PR target/96938
30043         * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
30044         define_insn_and_split patterns.
30045         (splitter after *btr<mode>_2): New splitter.
30047 2021-01-13  Martin Liska  <mliska@suse.cz>
30049         PR ipa/98652
30050         * cgraphunit.c (analyze_functions): Remove dead code.
30052 2021-01-13  Qian Jianhua  <qianjh@cn.fujitsu.com>
30054         * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
30055         * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
30056         (a64fx_regmove_cost, a64fx_vector_cost): New.
30057         (a64fx_tunings): Use the new added cost tables.
30059 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
30061         PR target/95905
30062         * config/i386/predicates.md (pmovzx_parallel): New predicate.
30063         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
30064         define_insn_and_split pattern.
30065         (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
30066         (*sse4_1_zero_extendv2siv2di2_3): Likewise.
30068 2021-01-13  Julian Brown  <julian@codesourcery.com>
30070         * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
30071         to fix v0 register.
30073 2021-01-13  Julian Brown  <julian@codesourcery.com>
30075         * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
30076         on entry to a BB.
30078 2021-01-13  Julian Brown  <julian@codesourcery.com>
30080         * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
30081         for reciprocal-approximation instructions.
30082         (div<mode>3): Use fused multiply-accumulate operations for reciprocal
30083         refinement and division result.
30084         * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
30086 2021-01-13  Julian Brown  <julian@codesourcery.com>
30088         * config/gcn/gcn-valu.md (subdf): Rename to...
30089         (subdf3): This.
30091 2021-01-12  Martin Liska  <mliska@suse.cz>
30093         * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
30095 2021-01-12  Andrea Corallo  <andrea.corallo@arm.com>
30097         * function-abi.h: Fix typo.
30099 2021-01-12  Christophe Lyon  <christophe.lyon@linaro.org>
30101         PR target/97875
30102         PR target/97875
30103         * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
30104         (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
30105         (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
30106         (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
30107         (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
30108         (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
30109         (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
30110         (ARM_HAVE_NEON_V2DI_LDST): Likewise.
30111         (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
30112         (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
30113         (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
30114         (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
30115         (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
30116         (ARM_HAVE_V2DI_LDST): Likewise.
30117         * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
30118         (*movmisalign<mode>_mve_load): New pattern.
30119         * config/arm/neon.md (movmisalign<mode>): Move to ...
30120         * config/arm/vec-common.md: ... here.
30122 2021-01-12  Vladimir N. Makarov  <vmakarov@redhat.com>
30124         PR target/97969
30125         * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
30126         of pattern 'plus (plus (hard reg, const), pseudo)'.
30128 2021-01-12  Richard Biener  <rguenther@suse.de>
30130         PR tree-optimization/98550
30131         * tree-vect-slp.c (vect_record_max_nunits): Check whether
30132         the group size is a multiple of the vector element count.
30133         (vect_build_slp_tree_1): When we need to fail because
30134         the vector type choosen causes unrolling do so lazily
30135         without affecting matches only at the end to guide group splitting.
30137 2021-01-12  Martin Liska  <mliska@suse.cz>
30139         PR c++/97284
30140         * optc-save-gen.awk: Compare also n_target_save vars with
30141         strcmp.
30143 2021-01-12  Martin Liska  <mliska@suse.cz>
30145         * gcov.c (source_info::debug): New.
30146         (print_usage): Add --debug (-D) option.
30147         (process_args): Likewise.
30148         (generate_results): Call src->debug after
30149         accumulate_line_counts.
30150         (read_graph_file): Properly assign id for EXIT_BLOCK.
30151         * profile.c (branch_prob): Dump function body before it is
30152         instrumented.
30154 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
30156         PR tree-optimization/98629
30157         * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
30158         unless returning non-zero.
30160 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
30162         PR tree-optimization/95731
30163         * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
30164         x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
30165         (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
30166         only after optimize_range_tests_var_bound.
30168 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
30170         * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
30171         * configure: Regenerated.
30173 2021-01-12  liuhongt  <hongtao.liu@intel.com>
30175         PR target/98612
30176         * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
30177         Deleted.
30178         * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
30179         dead code.
30181 2021-01-12  Alexandre Oliva  <oliva@adacore.com>
30183         * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
30184         declare.
30185         (auto_end_imm_use_stmt_traverse): New struct.
30186         (FOR_EACH_IMM_USE_STMT): Use it.
30187         (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
30188         along with uses...
30189         * gimple-ssa-strength-reduction.c: ... here, ...
30190         * graphite-scop-detection.c: ... here, ...
30191         * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
30192         * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
30193         * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
30194         * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
30195         * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
30196         * tree-vect-slp.c: ... and here, ...
30197         * doc/tree-ssa.texi: ... and the example here.
30199 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
30201         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
30202         SVE_FULL_I to SVE_I.  Generate an UNSPEC_PRED_X.
30203         (*sdiv_pow2<mode>3): New pattern.
30204         (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
30205         Wrap the ASRD in an UNSPEC_PRED_X.
30206         (*cond_<sve_int_op><mode>_2): Likewise.  Replace the UNSPEC_PRED_X
30207         predicate with a constant PTRUE, if it isn't already.
30208         (*cond_<sve_int_op><mode>_z): Replace with...
30209         (*cond_<sve_int_op><mode>_any): ...this new pattern.
30211 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
30213         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
30214         SVE_FULL_I to SVE_I.
30215         (*cond_bic<mode>_any): Likewise.
30217 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
30219         * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
30220         (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
30221         to SVE_I.
30223 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
30225         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
30226         SVE_FULL_I to SVE_I.
30227         (*aarch64_cond_<su>abd<mode>_2): Likewise.
30228         (*aarch64_cond_<su>abd<mode>_any): Likewise.
30229         (@aarch64_pred_<su>abd<mode>): Likewise.  Use UNSPEC_PRED_X
30230         for the max and min but not for the minus.
30231         (*aarch64_cond_<su>abd<mode>_3): New pattern.
30233 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
30235         * config/aarch64/iterators.md (SVE_24I): New iterator.
30236         * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
30237         SVE_FULL_SDI to SVE_24I.  Use containers rather than elements.
30239 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
30241         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
30242         (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
30243         to SVE_I.
30244         (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
30245         (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
30246         (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
30247         (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
30249 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
30251         * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
30252         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
30253         (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
30254         to SVE_I.
30256 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
30258         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
30259         (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
30260         (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
30262 2021-01-11  Martin Liska  <mliska@suse.cz>
30264         PR jit/98615
30265         * symtab-clones.h (clone_info::release): Release
30266         symtab::m_clones with ggc_delete as it's a GGC memory.
30268 2021-01-11  Matthias Klose  <doko@ubuntu.com>
30270         * Makefile.in (LINK_PROGRESS): Show the link target.
30272 2021-01-11  Richard Biener  <rguenther@suse.de>
30274         PR tree-optimization/91403
30275         * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
30276         single-element interleaving group size at 4096 elements.
30278 2021-01-11  Richard Biener  <rguenther@suse.de>
30280         PR tree-optimization/98526
30281         * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
30282         of the actual reduction op for the regular case.
30283         (vectorizable_reduction): Cost the stmts
30284         vect_transform_reduction produces here.
30286 2021-01-11  Andreas Krebbel  <krebbel@linux.ibm.com>
30288         * tree-ssa-forwprop.c (simplify_vector_constructor): For
30289         big-endian, use UNPACK[_FLOAT]_HI.
30291 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
30293         * tree-vect-slp-patterns.c (class complex_pattern,
30294         class complex_add_pattern): Add parameters to matches.
30295         (complex_add_pattern::build): Free memory.
30296         (complex_add_pattern::matches): Move validation end of match.
30297         (complex_add_pattern::recognize): Likewise.
30299 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
30301         * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
30303 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
30305         * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
30307 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
30309         PR tree-optimization/95867
30310         * tree-ssa-math-opts.h: New header.
30311         * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
30312         (powi_as_mults): No longer static.  Use build_one_cst instead of
30313         build_real.  Formatting fix.
30314         * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
30315         (attempt_builtin_powi): Handle multiplication reassociation without
30316         powi_fndecl using powi_as_mults.
30317         (reassociate_bb): For integral types don't require
30318         -funsafe-math-optimizations to call attempt_builtin_powi.
30320 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
30322         PR tree-optimization/95852
30323         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
30324         mul_stmts parameter type to vec<gimple *> &.  Before cond_stmt
30325         allow in the bb any of the stmts in that vector, div_stmt and
30326         up to 3 cast stmts.
30327         (arith_cast_equal_p): New function.
30328         (arith_overflow_check_p): Add cast_stmt argument, handle signed
30329         multiply overflow checks.
30330         (match_arith_overflow): Adjust caller.  Handle signed multiply
30331         overflow checks.
30333 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
30335         PR tree-optimization/95852
30336         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
30337         (uaddsub_overflow_check_p): Renamed to ...
30338         (arith_overflow_check_p): ... this.  Handle also multiplication
30339         with overflow check.
30340         (match_uaddsub_overflow): Renamed to ...
30341         (match_arith_overflow): ... this.  Add cfg_changed argument.  Handle
30342         also multiplication with overflow check.  Adjust function comment.
30343         (math_opts_dom_walker::after_dom_children): Adjust callers.  Call
30344         match_arith_overflow also for MULT_EXPR.
30346 2021-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30348         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
30349         __builtin_convertvector.
30350         (vmovl_s16): Likewise.
30351         (vmovl_s32): Likewise.
30352         (vmovl_u8): Likewise.
30353         (vmovl_u16): Likewise.
30354         (vmovl_u32): Likewise.
30355         (vmovn_s16): Likewise.
30356         (vmovn_s32): Likewise.
30357         (vmovn_s64): Likewise.
30358         (vmovn_u16): Likewise.
30359         (vmovn_u32): Likewise.
30360         (vmovn_u64): Likewise.
30362 2021-01-11  Martin Liska  <mliska@suse.cz>
30364         * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
30365         (if_chain::is_beneficial): Delete clusters
30366         (find_conditions): Make second argument of conditions_in_bbs a
30367         pointer so that we control over it's lifetime.
30368         (pass_if_to_switch::execute): Delete them.
30370 2021-01-11  Kewen Lin  <linkw@linux.ibm.com>
30372         * ira.c (move_unallocated_pseudos): Check other_reg and skip if
30373         it isn't set.
30375 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
30377         * config/vax/vax.md (cc): Remove mode attribute.
30378         (subst_<cc>, subst_f<cc>): Rename to...
30379         (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
30380         (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
30381         (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
30382         (*branch_<mode>, *branch_<mode>_reversed): Likewise.
30384 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
30386         * config/vax/vax.md (subst_f<cc>): Add mode to operands and
30387         `const_double_zero'.
30389 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
30391         * config/pdp11/pdp11.md (PDPfp): New mode iterator.
30392         (fcc_cc, fcc_ccnz): Use it.  Add mode to `const_double_zero' and
30393         operands.
30395 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
30397         * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
30398         rtx.
30399         * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
30400         with `const_double_zero'.
30401         * doc/rtl.texi (Constant Expression Types): Document it.
30403 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
30405         PR c++/98556
30406         * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
30407         POINTER_DIFF_EXPR to be any integral type.
30409 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
30411         PR rtl-optimization/98603
30412         * function.c (instantiate_virtual_regs_in_insn): For asm goto
30413         with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
30414         if any, set ASM_OPERANDS mode to VOIDmode and change
30415         ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
30417 2021-01-09  Alexandre Oliva  <oliva@gnu.org>
30419         PR debug/97714
30420         * final.c (notice_source_line): Narrow down the condition to
30421         skip a line-0 marker.
30423 2021-01-08  Sergei Trofimovich  <siarheit@google.com>
30425         * ipa-modref.c (merge_call_side_effects): Fix
30426         linebreak split by reordering two print calls.
30428 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
30430         * config/s390/vector.md (*tf_to_fprx2_0): Rename from
30431         "*mov_tf_to_fprx2_0" for consistency, fix constraint.
30432         (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
30433         consistency, fix constraint.
30435 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
30437         * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
30438         callables instead of mask values.
30439         (struct target_flag_set_p): New predicate.
30440         (s390_cpu_cpp_builtins_internal): Define or undefine
30441         __LONG_DOUBLE_VX__ macro.
30443 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
30445         PR target/98482
30446         * config/i386/i386.c (x86_function_profiler): Use R10 and R11
30447         to call mcount in large model with PIC for NO_PROFILE_COUNTERS
30448         targets.
30450 2021-01-08  Richard Biener  <rguenther@suse.de>
30452         * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
30454 2021-01-08  Richard Biener  <rguenther@suse.de>
30456         * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
30457         (vect_build_slp_tree): On cache hit release the matched
30458         scalar stmts vector.
30459         * tree-vect-stmts.c (vectorizable_store): Properly free
30460         vec_oprnds before possibly gathering them again.
30462 2021-01-08  Richard Biener  <rguenther@suse.de>
30464         PR tree-optimization/98544
30465         * tree-vect-slp.c (vect_optimize_slp): Always materialize
30466         permutes at a permute node.
30468 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
30470         PR target/98482
30471         * config/i386/i386.c (x86_function_profiler): Use R10 to call
30472         mcount in large model.  Sorry for large model with PIC.
30474 2021-01-08  Jakub Jelinek  <jakub@redhat.com>
30476         PR target/98585
30477         * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
30478         ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
30479         ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
30480         TargetSave and initialize for variables with enum types.
30481         (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
30482         mstack-protector-guard-symbol=): Add Save.
30483         * config/i386/i386-options.c (ix86_function_specific_save,
30484         ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
30485         x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
30486         x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
30487         x_ix86_veclibabi_type.
30489 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
30491         * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
30492         SVE_FULL_I to SVE_I.
30493         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
30495 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
30497         * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
30498         SVE_FULL_I to SVE_I.
30499         (*cond_uxt<mode>_any): Likewise.
30501 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30503         * config/aarch64/iterators.md (Vwhalf): New iterator.
30504         * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
30505         Rename to...
30506         (aarch64_<sur>adalp<mode>): ... This.  Make more
30507         builtin-friendly.
30508         (<sur>sadv16qi): Adjust callsite of the above.
30509         * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
30510         builtins.
30511         * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
30512         builtins.
30513         (vpadal_s16): Likewise.
30514         (vpadal_u8): Likewise.
30515         (vpadal_u16): Likewise.
30516         (vpadalq_s8): Likewise.
30517         (vpadalq_s16): Likewise.
30518         (vpadalq_s32): Likewise.
30519         (vpadalq_u8): Likewise.
30520         (vpadalq_u16): Likewise.
30521         (vpadalq_u32): Likewise.
30523 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30525         * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
30526         Rename to...
30527         (aarch64_<su>abd<mode>): ... This.
30528         (<sur>sadv16qi): Adjust callsite of the above.
30529         * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
30530         builtins.
30531         * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
30532         builtin.
30533         (vabd_s16): Likewise.
30534         (vabd_s32): Likewise.
30535         (vabd_u8): Likewise.
30536         (vabd_u16): Likewise.
30537         (vabd_u32): Likewise.
30538         (vabdq_s8): Likewise.
30539         (vabdq_s16): Likewise.
30540         (vabdq_s32): Likewise.
30541         (vabdq_u8): Likewise.
30542         (vabdq_u16): Likewise.
30543         (vabdq_u32): Likewise.
30545 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30547         * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
30548         builtins.
30549         * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
30550         (vaba_s16): Likewise.
30551         (vaba_s32): Likewise.
30552         (vaba_u8): Likewise.
30553         (vaba_u16): Likewise.
30554         (vaba_u32): Likewise.
30555         (vabaq_s8): Likewise.
30556         (vabaq_s16): Likewise.
30557         (vabaq_s32): Likewise.
30558         (vabaq_u8): Likewise.
30559         (vabaq_u16): Likewise.
30560         (vabaq_u32): Likewise.
30562 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30564         * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
30565         (aarch64_<su>aba<mode>): ... This.  Handle uaba as well.
30566         Change RTL pattern to match.
30568 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
30570         * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
30571         * config/riscv/riscv-c.c (riscv-subset.h): New.
30572         (INCLUDE_STRING): Define.
30573         (riscv_cpu_cpp_builtins): Add new style architecture extension
30574         test macros.
30575         * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
30576         (riscv_subset_list::end): New.
30577         (riscv_current_subset_list): New.
30579 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
30581         * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
30582         Move to riscv-subset.h.
30583         (struct riscv_subset_t): Ditto.
30584         (class riscv_subset_list): Ditto.
30585         * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
30586         from riscv-common.c.
30587         (struct riscv_subset_t): Ditto.
30588         (class riscv_subset_list): Ditto.
30589         * config/riscv/t-riscv ($(common_out_file)): Add file
30590         dependency.
30592 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
30594         PR target/98567
30595         * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
30596         New define_insn patterns.
30598 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
30600         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
30601         (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
30602         (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
30604 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
30606         PR tree-optimization/98560
30607         * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
30608         * internal-fn.c (vec_cond_mask_direct): Get the data mode from
30609         argument 1.
30610         (vec_cond_direct): Likewise argument 2.
30611         (vec_condu_direct, vec_condeq_direct): Delete.
30612         (expand_vect_cond_optab_fn): Rename to...
30613         (expand_vec_cond_optab_fn): ...this, replacing old macro.
30614         (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
30615         (expand_vect_cond_mask_optab_fn): Rename to...
30616         (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
30617         (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
30618         convert optab.
30619         (direct_vec_cond_optab_supported_p): Likewise.
30620         (direct_vec_condu_optab_supported_p): Delete.
30621         (direct_vec_condeq_optab_supported_p): Delete.
30622         * gimple-isel.cc: Include internal-fn.h.
30623         (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
30624         before using it.
30626 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
30628         PR tree-optimization/98560
30629         * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
30630         IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
30632 2021-01-07  Uroš Bizjak  <ubizjak@gmail.com>
30634         * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
30635         rotate_insn and optab code attributes.
30636         Update all uses to merged code attribute.
30637         * config/i386/sse.md: Update all uses to merged code attribute.
30638         * config/i386/mmx.md: Update all uses to merged code attribute.
30640 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
30642         PR tree-optimization/98568
30643         * gimple-ssa-store-merging.c (bswap_view_convert): New function.
30644         (bswap_replace): Use it.
30646 2021-01-06  Vladimir N. Makarov  <vmakarov@redhat.com>
30648         PR rtl-optimization/97978
30649         * lra-int.h (lra_hard_reg_split_p): New external.
30650         * lra.c (lra_hard_reg_split_p): New global.
30651         (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
30652         * lra-assigns.c (lra_assign): Don't check allocation correctness
30653         after hard reg splitting.
30655 2021-01-06  Martin Sebor  <msebor@redhat.com>
30657         PR c++/98305
30658         * builtins.c (new_delete_mismatch_p): New overload.
30659         (new_delete_mismatch_p (tree, tree)): Call it.
30661 2021-01-06  Alexandre Oliva  <oliva@adacore.com>
30663         * Makefile.in (T_GLIMITS_H): New.
30664         (stmp-int-hdrs): Depend on it, use it.
30665         * config/t-vxworks (T_GLIMITS_H): Override it.
30666         (vxw-glimits.h): New.
30668 2021-01-06  Richard Biener  <rguenther@suse.de>
30670         PR tree-optimization/98513
30671         * value-range.cc (intersect_ranges): Compare the upper bounds
30672         for the expected relation.
30674 2021-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
30676         Revert:
30677         2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
30679         * doc/standards.texi (HSAIL): Remove section.
30681 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30683         * configure: Re-generate.
30685 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30687         * doc/invoke.texi (-std=c++20): Adjust for the publication of
30688         ISO 14882:2020 standard.
30689         * doc/standards.texi: Likewise.
30691 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30693         PR tree-optimization/94802
30694         * expr.h (maybe_optimize_sub_cmp_0): Declare.
30695         * expr.c: Include tree-pretty-print.h and flags.h.
30696         (maybe_optimize_sub_cmp_0): New function.
30697         (do_store_flag): Use it.
30698         * cfgexpand.c (expand_gimple_cond): Likewise.
30700 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
30702         * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
30703         * rtlanal.c (simple_regno_set): Tweak description to clarify the
30704         RMW condition.
30706 2021-01-05  Richard Biener  <rguenther@suse.de>
30708         PR tree-optimization/98516
30709         * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
30710         lanes when materializing on a VEC_PERM node.
30711         (vectorizable_slp_permutation): Dump the permute properly.
30713 2021-01-05  Richard Biener  <rguenther@suse.de>
30715         * tree-vect-slp.c (vect_slp_region): Move debug counter
30716         to cover individual subgraphs.
30718 2021-01-05  Richard Biener  <rguenther@suse.de>
30720         PR tree-optimization/98428
30721         * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
30722         vector lane extracts for loop vectorization.
30724 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30726         PR tree-optimization/98514
30727         * tree-ssa-reassoc.c (bb_rank): Change type from long * to
30728         int64_t *.
30729         (operand_rank): Change type from hash_map<tree, long> to
30730         hash_map<tree, int64_t>.
30731         (phi_rank): Change return type from long to int64_t.
30732         (loop_carried_phi): Change block_rank variable type from long to
30733         int64_t.
30734         (propagate_rank): Change return type, rank parameter type and
30735         op_rank variable type from long to int64_t.
30736         (find_operand_rank): Change return type from long to int64_t
30737         and change slot variable type from long * to int64_t *.
30738         (insert_operand_rank): Change rank parameter type from long to
30739         int64_t.
30740         (get_rank): Change return type and rank variable type from long to
30741         int64_t.  Use PRId64 instead of ld to print the rank.
30742         (init_reassoc): Change rank variable type from long to int64_t
30743         and adjust correspondingly bb_rank and operand_rank initialization.
30745 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30747         PR tree-optimization/96928
30748         * tree-ssa-phiopt.c (xor_replacement): New function.
30749         (tree_ssa_phiopt_worker): Call it.
30751 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30753         PR tree-optimization/96930
30754         * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
30755         from narrower value which has the same type as 1 << B, perform
30756         the right shift on the narrower value followed by extension.
30758 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30760         PR tree-optimization/96239
30761         * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
30762         function.
30763         (get_status_for_store_merging): Don't return BB_INVALID for blocks
30764         with potential bswap optimizable CONSTRUCTORs.
30765         (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
30766         if possible.
30768 2021-01-05  Richard Biener  <rguenther@suse.de>
30770         PR tree-optimization/98381
30771         * tree.c (vector_element_bits): Properly compute bool vector
30772         element size.
30773         * tree-vect-loop.c (vectorizable_live_operation): Properly
30774         compute the last lane bit offset.
30776 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
30778         PR target/98522
30779         * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
30780         Clear the top 64 bytes of the input XMM register.
30781         (sse_cvttps2pi): Ditto.
30783 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
30785         PR target/98521
30786         * config/i386/xopintrin.h (_mm256_cmov_si256): New.
30788 2021-01-05  H.J. Lu  <hjl.tools@gmail.com>
30790         PR target/98495
30791         * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
30792         short first.
30794 2021-01-05  Claudiu Zissulescu  <claziss@synopsys.com>
30796         * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
30797         (umaddsidi4_split): Likewise.
30799 2021-01-05  liuhongt  <hongtao.liu@intel.com>
30801         PR target/98461
30802         * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
30803         define_insn_and_split for zero_extend of subreg HI of pmovskb
30804         result.
30805         (*sse2_pmovskb_zexthisi): Add new combine splitters for
30806         zero_extend of not of subreg HI of pmovskb result.
30808 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
30810         PR target/97269
30811         * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
30812         nested in CONSTs.
30813         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
30814         convert_memory_address to convert symbolic immediates to ptr_mode
30815         before forcing them to memory.
30817 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
30819         PR rtl-optimization/97144
30820         * recog.c (constrain_operands): Initialize matching_operand
30821         for each alternative, rather than only doing it once.
30823 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
30825         PR rtl-optimization/98403
30826         * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
30827         why we don't remove call clobbers.
30828         (function_info::apply_changes_to_insn): Don't attempt to add
30829         call clobbers here.
30831 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
30833         PR tree-optimization/98371
30834         * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
30835         (vect_analyze_loop): If an epilogue loop appears to be cheaper
30836         than the main loop, re-analyze it as a main loop before adopting
30837         it as a main loop.
30839 2021-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30841         PR c++/98316
30842         * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
30843         * aclocal.m4, configure: Regenerate.
30844         * Makefile.in (NETLIBS): Define.
30845         (BACKEND): Remove $(CODYLIB).
30847 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
30849         PR rtl-optimization/98334
30850         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
30851         Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
30853 2021-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30855         * tree-inline.c (expand_call_inline): Restore input_location.
30856         Return result from recursive call.
30858 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
30860         PR tree-optimization/95401
30861         * config/aarch64/aarch64-sve-builtins.cc
30862         (gimple_folder::load_store_cookie): Use bits rather than bytes
30863         for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
30864         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
30865         * tree-vect-stmts.c (vectorizable_store): Likewise.
30866         (vectorizable_load): Likewise.
30868 2021-01-04  Richard Biener  <rguenther@suse.de>
30870         PR tree-optimization/98308
30871         * tree-vect-stmts.c (vectorizable_load): Set invariant mask
30872         SLP vectype.
30874 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
30876         PR tree-optimization/95771
30877         * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
30878         with precision smaller than int's precision and types with precision
30879         twice as large as long long.  Formatting fixes.
30881 2021-01-04  Richard Biener  <rguenther@suse.de>
30883         PR tree-optimization/98464
30884         * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
30885         (vn_valueize_wrapper): ... this.  Temporarily adjust vn_context_bb.
30886         (process_bb): Adjust.
30888 2021-01-04  Matthew Malcomson  <matthew.malcomson@arm.com>
30890         PR other/98437
30891         * doc/invoke.texi (-fsanitize=address): Fix wording describing
30892         clash with -fsanitize=hwaddress.
30894 2021-01-04  Richard Biener  <rguenther@suse.de>
30896         PR tree-optimization/98282
30897         * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
30898         invariants as VN_NARY.
30900 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
30902         PR target/89057
30903         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
30904         aarch64_simd_reg_or_zero for operand 2.  Use the combinez patterns
30905         to handle zero operands.
30907 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
30909         * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
30910         (offset_6bit_unsigned_scaled_p): Fix typo in comment.
30911         (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
30912         [-32, 31].
30914 2021-01-04  Richard Biener  <rguenther@suse.de>
30916         PR tree-optimization/98393
30917         * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
30918         when hitting the limit.
30920 2021-01-04  Richard Biener  <rguenther@suse.de>
30922         PR tree-optimization/98291
30923         * tree-vect-loop.c (vectorizable_reduction): Bypass
30924         associativity check for SLP reductions with VF 1.
30926 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
30928         PR tree-optimization/96782
30929         * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
30931 2021-01-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30933         * collect-utils.c (collect_execute): Check dumppfx.
30934         * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
30935         to collect_execute.
30936         (do_link): Add new parameter atsuffix.
30937         (main): Handle -dumpdir option.  Skip one argument for
30938         -o, -isystem and -B options.
30939         * gcc.c (make_at_file): New helper function.
30940         (close_at_file): Use it.
30942 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30944         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
30945         Amend handling for LD64_VERSION fallback defaults.
30947 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30949         * config.gcc: Compute default version information
30950         from the configured target.  Likewise defaults for
30951         ld64.
30952         * config/darwin10.h: Removed.
30953         * config/darwin12.h: Removed.
30954         * config/darwin9.h: Removed.
30955         * config/rs6000/darwin8.h: Removed.
30957 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30959         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
30961 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30963         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
30964         * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
30966 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30968         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
30969         here...
30970         * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
30972 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30974         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
30975         for the Darwin10 unwinder stub from here ...
30976         * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
30978 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
30980         * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
30981         (ASM_DEBUG_SPEC):Only define if the assembler supports
30982         stabs.
30983         (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
30984         (DARWIN_PREFER_DWARF): Define.
30985         * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
30986         (DARWIN_PREFER_DWARF): Likewise
30987         (DSYMUTIL_SPEC): Likewise.
30988         (COLLECT_RUN_DSYMUTIL): Likewise.
30989         (ASM_DEBUG_SPEC): Likewise.
30990         (ASM_DEBUG_OPTION_SPEC): Likewise.
30992 2021-01-02  Jan Hubicka  <jh@suse.cz>
30994         * cfg.c (free_block): ggc_free bb.
30996 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
30998         * gcc.c (process_command): Update copyright notice dates.
30999         * gcov-dump.c (print_version): Ditto.
31000         * gcov.c (print_version): Ditto.
31001         * gcov-tool.c (print_version): Ditto.
31002         * gengtype.c (create_file): Ditto.
31003         * doc/cpp.texi: Bump @copying's copyright year.
31004         * doc/cppinternals.texi: Ditto.
31005         * doc/gcc.texi: Ditto.
31006         * doc/gccint.texi: Ditto.
31007         * doc/gcov.texi: Ditto.
31008         * doc/install.texi: Ditto.
31009         * doc/invoke.texi: Ditto.
31011 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
31013         * ChangeLog-2020: Rotate ChangeLog.  New file.
31016 Copyright (C) 2021 Free Software Foundation, Inc.
31018 Copying and distribution of this file, with or without modification,
31019 are permitted in any medium without royalty provided the copyright
31020 notice and this notice are preserved.