re PR debug/92664 (Wrong .debug_line section information when compiling stdin input...
[gcc.git] / gcc / ChangeLog
1 2019-11-27 Jakub Jelinek <jakub@redhat.com>
2
3 PR debug/92664
4 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
5
6 2019-11-26 Martin Sebor <msebor@redhat.com>
7
8 PR tree-optimization/92683
9 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
10 inadvertently removed in a previous change. Rename local variable
11 for clarity.
12
13 2019-11-26 Richard Biener <rguenther@suse.de>
14
15 PR middle-end/92669
16 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
17 NULL pre_order.
18
19 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
20
21 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
22
23 2019-11-26 Jakub Jelinek <jakub@redhat.com>
24
25 PR tree-optimization/92644
26 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
27 next to INTEGER_CST checks.
28
29 2019-11-26 Richard Biener <rguenther@suse.de>
30
31 PR tree-optimization/92645
32 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
33 do not build the operation from scalars if the operand is.
34
35 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
36
37 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
38 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
39 definitions.
40
41 2019-11-25 Martin Liska <mliska@suse.cz>
42
43 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
44 up used dump message.
45
46 2019-11-25 Martin Liska <mliska@suse.cz>
47
48 PR bootstrap/92653
49 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
50 too strict checking assert.
51
52 2019-11-25 Joseph Myers <joseph@codesourcery.com>
53
54 PR c/91985
55 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
56 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
57 error_mark_node if corresponding global tree node is NULL.
58 * tree.c (build_common_tree_nodes): Do not initialize
59 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
60 decimal floating-point not supported.
61
62 2019-11-25 Joseph Myers <joseph@codesourcery.com>
63
64 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
65 types.
66
67 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
68
69 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
70 Replace code for non-CONST_INT constants with gcc_unreachable.
71 * config/m68k/m68k.md (cbranchdi): Don't generate individual
72 compare and test.
73 (CMPMODE): New mode_iterator.
74 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
75 cbranch<mode>4.
76 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
77 cstore<mode>4.
78 (cmp<mode>_68881): Remove 'F' constraint from first comparison
79 operand.
80 (bit test insns patterns): Use nonimmediate_operand, not
81 register_operand, for source operands that allow memory in
82 their constraints.
83 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
84 Use register_operand, not nonimmediate_operand, for the
85 destinations.
86 (DBCC): New mode_iterator.
87 (dbcc peepholes): Use it to reduce duplication.
88 (trap): Use const_true_rtx, not const1_rtx.
89 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
90 from m68k_subword_comparison_operand and changed to handle
91 SImode.
92
93 PR target/91851
94 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
95 declaration.
96 (m68k_init_cc): New declaration.
97 (m68k_output_compare_di, m68k_output_compare_si)
98 (m68k_output_compare_hi, m68k_output_compare_qi)
99 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
100 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
101 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
102 m68k_output_branch_float, m68k_output_branch_float_rev):
103 Likewise.
104 (valid_dbcc_comparison_p_2, flags_in_68881)
105 (output_btst): Remove declaration.
106 * config/m68k/m68k.c (INCLDUE_STRING): Define.
107 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
108 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
109 (flags_compare_op0, flags_compare_op1, flags_operand1,
110 flags_operand2, flags_valid): New static variables.
111 (m68k_find_flags_value, m68k_init_cc): New functions.
112 (handle_flags_for_move, m68k_asm_final_postscan_insn,
113 remember_compare_flags): New static functions.
114 (output_dbcc_and_branch): New argument CODE. Use it, and add
115 PLUS and MINUS to the possible codes. All callers changed.
116 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
117 and INSN arguments, add CODE arg. Return the comparison code
118 to use. All callers changed. Use CODE instead of
119 next_insn_tests_no_inequality, and replace cc_status management
120 with changing the return code.
121 (m68k_rtx_costs): Instead of testing for COMPARE, test for
122 RTX_COMPARE or RTX_COMM_COMPARE.
123 (output_move_simode, output_move_qimode): Call
124 handle_flags_for_move.
125 (notice_update_cc): Delete function.
126 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
127 m68k_output_compare_hi, m68k_output_compare_qi,
128 m68k_output_compare_fp, m68k_output_branch_integer,
129 m68k_output_branch_integer_rev, m68k_output_scc,
130 m68k_output_branch_float, m68k_output_branch_float_rev,
131 m68k_output_scc_float): New functions.
132 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
133 once at the start, and set flags_valid and flags_operand1 if the
134 flags are usable.
135 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
136 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
137 definitions.
138 (CC_STATUS_INIT): Define.
139 * config/m68k/m68k.md (flags_valid): New define_attr.
140 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
141 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
142 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
143 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
144 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
145 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
146 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
147 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
148 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
149 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
150 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
151 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
152 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
153 ctrapqi4, conditional_trap): Delete patterns.
154 (cbranchdi4_insn): New pattern.
155 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
156 test high part only. When testing EQ or NE, generate beq0_di
157 and bne0_di patterns directly.
158 (cstoredi4): When testing LT or GE, test high part only.
159 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
160 patterns.
161 (scc0_constraints, cmp1_constraints, cmp2_constraints,
162 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
163 cmp2_cf_predicate): New define_mode_attrs.
164 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
165 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
166 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
167 New patterns.
168 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
169 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
170 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
171 New patterns.
172 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
173 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
174 Likewise.
175 (BTST): New define_mode_iterator.
176 (btst_predicate, btst_constraint, btst_range): New
177 define_mode_attrs.
178 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
179 patterns.
180 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
181 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
182 patterns): Set attr "flags_valid".
183 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
184 management. Set attr "flags_valid".
185 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
186 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
187 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
188 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
189 manual CC_STATUS management.
190 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
191 unnamed strict_lowpart subhi and subqi patterns): Set attr
192 "flags_valid".
193 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
194 Remove code to operate on address regs and assert the case
195 does not occur.
196 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
197 manual CC_STATUS_INIT.
198 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
199 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
200 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
201 one_cmplqi2, unnamed strict_lowpart patterns
202 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
203 one_cmplhi and one_cmplqi): Set attr "flags_valid".
204 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
205 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
206 CC_STATUS_INIT.
207 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
208 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
209 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
210 unnamed strict_low_part patterns for HI and
211 QI versions): Set attr "flags_valid".
212 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
213 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
214 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
215 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
216 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
217 (various unnamed peepholes): Adjust compare/branch sequences
218 for new cbranch patterns.
219 (dbcc peepholes): Likewise, and output the comparison here
220 as well.
221 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
222 (fp_src_operand): Allow constant zero.
223 (address_reg_operand): New predicate.
224
225 * rtl.h (inequality_comparisons_p): Remove declaration.
226 * recog.h (next_insn_tests_no_inequality): Likewise.
227 * rtlanal.c (inequality_comparisons_p): Delete function.
228 * recog.c (next_insn_tests_no_inequality): Likewise.
229
230 2019-11-25 Richard Biener <rguenther@suse.de>
231
232 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
233 (vect_detect_hybrid_slp): Swap lane and instance iteration,
234 properly re-building the visited hash-map for each lane.
235
236 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
237
238 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
239 gcn_md_reorg): Remove unused variables.
240 (gcn_emutls_var_init): Add missing (but unreachable) return
241 to silence warning.
242 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
243 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
244 an uninitialized variable.
245
246 2019-11-25 Martin Jambor <mjambor@suse.cz>
247
248 PR ipa/92109
249 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
250 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
251 (cgraph_materialize_clone): Move removel from clone tree to the
252 the new method and use it instead.
253 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
254 bodies of clones, also remove it from the clone tree.
255
256 2019-11-25 Martin Jambor <mjambor@suse.cz>
257
258 PR ipa/91956
259 * ipa-sra.c (process_isra_node_results): Put the new node to the
260 same comdat group as the original node.
261
262 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
263
264 Build double32 / long-double32 multilibs if needed.
265
266 PR target/92055
267 * config/avr/t-avr:
268 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
269 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
270 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
271 tm_defines and pass to genmultilib.awk.
272 * config/avr/genmultilib.awk: Use these variables to add double32
273 and / or long-double32 multilib(s) as needed.
274 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
275
276 2019-11-25 Richard Biener <rguenther@suse.de>
277
278 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
279 loop body, defaulted to NULL.
280 (single_likely_exit): Add exit vector argument
281 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
282 (number_of_iterations_exit): Likewise.
283 (number_of_iterations_exit_assumptions): Likewise.
284 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
285 if not NULL.
286 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
287 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
288 Compute exit vector around call to single_likely_exit.
289 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
290 loop body to loop_only_exit_p.
291 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
292 caller.
293 (number_of_iterations_exit_assumptions): Get loop body from caller
294 if not NULL.
295 (number_of_iterations_exit): Pass through new loop body arg.
296 (infer_loop_bounds_from_undefined): Get loop body from caller.
297 (estimate_numbers_of_iterations): Compute loop body once.
298
299 2019-11-25 Richard Biener <rguenther@suse.de>
300
301 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
302 auto_bb_flag instead of an sbitmap for visited handling.
303
304 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
305
306 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
307 iterator.
308 (vector_fp_comparison_complex): Likewise.
309 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
310 define_and_split.
311 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
312 Likewise.
313 (vector_lt<mode> for VEC_F): Refactor with
314 vector_fp_comparison_simple.
315 (vector_le<mode> for VEC_F): Likewise.
316 (vector_unge<mode> for VEC_F): Likewise.
317 (vector_unle<mode> for VEC_F): Likewise.
318 (vector_ne<mode> for VEC_F): Likewise.
319 (vector_ungt<mode> for VEC_F): Likewise.
320 (vector_unlt<mode> for VEC_F): Likewise.
321 (vector_ltgt<mode> for VEC_F): Refactor with
322 vector_fp_comparison_complex.
323 (vector_ordered<mode> for VEC_F): Likewise.
324 (vector_uneq<mode> for VEC_F): Likewise.
325 (vector_unordered<mode> for VEC_F): Likewise.
326
327 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
328
329 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
330 COMPARE, representing an overflow detection.
331
332 * combine.c (combine_instructions): Record costs for jumps.
333
334 * combine.c (can_combine_p): Allow autoinc in jumps.
335
336 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
337
338 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
339 * doc/invoke.texi (max-inline-insns-single-O2,
340 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
341 early-inlining-insns-O2): Remove documentation.
342 * ipa-fnsummary.c (analyze_function_body,
343 compute_fn_summary): Use opt_for_fn when accessing parameters.
344 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
345 inline_insns_auto, can_inline_edge_by_limits_p,
346 want_early_inline_function_p, big_speedup_p,
347 want_inline_small_function_p, want_inline_self_recursive_call_p,
348 recursive_inlining, compute_max_insns, inline_small_functions):
349 Likewise.
350 * opts.c (default_options): Add -O3 defaults for
351 OPT__param_early_inlining_insns_,
352 OPT__param_inline_heuristics_hint_percent_,
353 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
354 * params.opt (-param=early-inlining-insns-O2=,
355 -param=inline-heuristics-hint-percent-O2=,
356 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
357 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
358 -param=inline-min-speedup=, -param=inline-unit-growth=,
359 -param=large-function-growth=, -param=large-stack-frame=,
360 -param=large-stack-frame-growth=, -param=large-unit-insns=,
361 -param=max-inline-insns-recursive=,
362 -param=max-inline-insns-recursive-auto=,
363 -param=max-inline-insns-single=,
364 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
365 -param=max-inline-recursive-depth=,
366 -param=max-inline-recursive-depth-auto=,
367 -param=min-inline-recursive-probability=,
368 -param=partial-inlining-entry-probability=,
369 -param=uninlined-function-insns=, -param=uninlined-function-time=,
370 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
371 Optimization.
372
373 2019-11-23 Jakub Jelinek <jakub@redhat.com>
374
375 * ipa-fnsummary.c: Fix comment typos.
376 * ipa-ref.h: Likewise.
377 * ipa-predicate.h: Likewise.
378 * ipa-split.c: Likewise.
379 * ipa-inline-analysis.c: Likewise.
380 * ipa-predicate.c: Likewise.
381 * ipa-devirt.c: Likewise.
382 * ipa-icf.h: Likewise.
383 * profile-count.c: Likewise.
384 * ipa-icf.c: Likewise.
385 (sem_function::equals_wpa): Fix typos in dump messages.
386 * ipa-icf-gimple.h: Fix comment typos.
387 * ipa-inline-transform.c: Likewise.
388 * ipa-polymorphic-call.c: Likewise.
389 * ipa-fnsummary.h: Likewise.
390 * ipa-inline.c: Likewise.
391 (dump_inline_stats): Fix typo in debug dump message.
392 * profile-count.h: Fix comment typos.
393
394 PR target/92615
395 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
396 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
397 register_operand, force x into register before storing it into dest.
398 Formatting fix.
399
400 PR middle-end/83859
401 * doc/extend.texi (attribute access): Fix a typo.
402
403 PR rtl-optimization/92610
404 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
405 cse_cfg_altered is set, even when tem is 0.
406 (rest_of_handle_cse_after_global_opts): Likewise.
407
408 2019-11-22 Jakub Jelinek <jakub@redhat.com>
409
410 PR c++/92458
411 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
412 tree_hash): Move to ...
413 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
414 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
415 types.
416 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
417
418 PR tree-optimization/92618
419 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
420 containing the auto_vec and a tree.
421 (undistribute_bitref_for_vector): Handle the case when element type
422 of vec is not the same as type of the BIT_FIELD_REF. Formatting
423 fixes.
424
425 2019-11-22 Martin Sebor <msebor@redhat.com>
426
427 PR middle-end/83859
428 * attribs.h (struct attr_access): New.
429 * attribs.c (decl_attributes): Add an informational note.
430 * builtins.c (check_access): Make extern. Consistently set no-warning
431 after issuing a warning. Handle calls through function pointers. Set
432 no-warning.
433 * builtins.h (check_access): Declare.
434 * calls.c (rdwr_access_hash): New type.
435 (rdwr_map): Same.
436 (init_attr_rdwr_indices): New function.
437 (maybe_warn_rdwr_sizes): Same.
438 (initialize_argument_information): Call init_attr_rdwr_indices.
439 Call maybe_warn_rdwr_sizes.
440 (get_size_range): Avoid null argument.
441 * doc/extend.texi (attribute access): Document new attribute.
442
443 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
444
445 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
446 (ACC_LDS_SIZE): Define.
447 (OTHER_LDS_SIZE): Define.
448 (LDS_SIZE): Redefine using above.
449 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
450
451 2019-11-22 Martin Sebor <msebor@redhat.com>
452
453 PR middle-end/88226
454 * builtins.c (check_nul_terminated_array): New function.
455 (fold_builtin_0): Remove declaration.
456 (fold_builtin_1): Same.
457 (fold_builtin_2): Same.
458 (fold_builtin_3): Same.
459 (fold_builtin_strpbrk): Add argument.
460 (fold_builtin_strspn): Same.
461 (fold_builtin_strcspn): Same.
462 (expand_builtin_strcat): Call it. Remove unused argument.
463 (expand_builtin_stpncpy): Same.
464 (expand_builtin_strncat): Same.
465 (expand_builtin_strncpy): Same. Adjust indentation.
466 (expand_builtin_strcmp): Same.
467 (expand_builtin_strncmp): Same.
468 (expand_builtin_fork_or_exec): Same.
469 (expand_builtin): Handle more built-ins.
470 (fold_builtin_2): Add argument.
471 (fold_builtin_n): Make static. Add argument.
472 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
473 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
474 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
475 (fold_call_stmt): Pass new argument to fold_builtin_n.
476 * builtins.h: Correct a comment.
477 * gimple-fold.c (gimple_fold_builtin_strchr): Call
478 check_nul_terminated_array.
479 * tree-ssa-strlen.c (handle_builtin_strlen): Call
480 check_nul_terminated_array.
481 (handle_builtin_strchr): Same.
482 (handle_builtin_string_cmp): Same.
483
484 2019-11-22 Martin Sebor <msebor@redhat.com>
485
486 PR tree-optimization/92501
487 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
488 handle unterminated arrays. Rename local variables for clarity.
489
490 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
491
492 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
493 granulated_sgprs according to architecture.
494
495 2019-11-22 Jan Hubicka <jh@suse.cz>
496
497 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
498 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
499 (memory_block_pool::reduce_free_list): ... this one.
500 (memory_block_pool::trim): New static function.
501 * memory-block.h (memory_block_pool::freelist_size): New constant
502 (memory_block_pool::clear_free_list): Rename to ...
503 (memory_block_pool::reduce_free_list): ... this one.
504 (memory_block_pool::trim): Declare.
505
506 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
507
508 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
509 vect_cost_for_stmt.
510 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
511 here rather than...
512 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
513
514 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
515
516 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
517 (bic_cmp0_noout): New pattern.
518 (bic_cmp0): Likewise.
519 (neg_scc_insn): Remove pattern.
520 (not_scc_insn): Likewise.
521
522 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
523
524 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
525
526 2019-11-21 Joseph Myers <joseph@codesourcery.com>
527
528 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
529 pedwarn instead of warning_at for fallthrough not preceding a case
530 or default label.
531
532 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
533
534 PR tree-optimization/92608
535 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
536 of dyn_cast.
537
538 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
539
540 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
541 New predicate.
542 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
543 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
544 special for FP comparisons that need a cror instruction eventually.
545 (rs6000_emit_fp_cror): New function.
546 (rs6000_emit_sCOND): Expand all floating point comparisons to one
547 instruction, for normal FP modes, with HONOR_NANS.
548 (rs6000_emit_cbranch): Reformat.
549 * config/rs6000/rs6000.md (fp_rev): New iterator.
550 (fp_two): New iterator.
551 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
552 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
553 *cbranch_2insn: New define_insn_and_split.
554
555 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
556
557 PR tree-optimization/92526
558 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
559 versioning for alignment if the accesses do not have a consistent
560 mask, rather than asserting that the masks are consistent.
561
562 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
563
564 PR tree-optimization/92595
565 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
566 check.
567 (vectorizable_store, vectorizable_load): Likewise.
568
569 2019-11-21 Jan Hubicka <jh@suse.cz>
570
571 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
572 (resolve_noninline_speculation, inline_small_functions): Avoid
573 redundant updates.
574
575 2019-11-21 Richard Biener <rguenther@suse.de>
576
577 * lra.c (lra_insn_recog_data_pool): New.
578 (free_insn_recog_data): Adjust.
579 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
580 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
581
582 2019-11-21 Richard Biener <rguenther@suse.de>
583
584 PR tree-optimization/92596
585 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
586
587 2019-11-21 Jan Hubicka <jh@suse.cz>
588
589 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
590 ready for some vectors to not be allocated.
591 (evaluate_properties_for_edge): Document better; make
592 known_vals and known_aggs caller allocated; avoid determining
593 values of parameters which are not used.
594 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
595 known_aggs.
596 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
597 (do_estimate_edge_size): Likewise.
598 (do_estimate_edge_hints): Likewise.
599 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
600 values are not known.
601 (ipa_release_agg_values): Add option to not release vector itself.
602 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
603
604 2019-11-21 Richard Biener <rguenther@suse.de>
605
606 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
607 (loop_iterator::to_visit): Use an auto_vec with internal storage.
608 (loop_iterator::loop_iterator): Adjust.
609 * cfganal.c (compute_dominance_frontiers_1): Fold into...
610 (compute_dominance_frontiers): ... this. Hoist invariant
611 get_immediate_dominator call.
612 (compute_idf): Use a work-set instead of a work-list for more
613 optimal iteration order and duplicate avoidance.
614 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
615 the vector all the time, instead pre-allocate the vector only
616 once.
617 (delete_update_ssa): Simplify.
618 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
619
620 2019-11-21 Jakub Jelinek <jakub@redhat.com>
621
622 PR tree-optimization/91355
623 * tree-ssa-sink.c (select_best_block): Use >= rather than >
624 for early_bb scaled count with best_bb count comparison.
625
626 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
627 preffer -> prefer.
628 * ipa-inline.c (edge_badness): Likewise.
629 * lto-streamer.h (class lto_location_cache): Likewise.
630 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
631 gratutious -> gratuitous.
632
633 2019-11-21 Richard Biener <rguenther@suse.de>
634
635 Revert
636 2019-09-17 Richard Biener <rguenther@suse.de>
637
638 PR tree-optimization/91790
639 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
640 use the correct DR for setting up realignment.
641
642 2019-11-21 Richard Biener <rguenther@suse.de>
643
644 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
645 (equiv_class_obstack): New.
646 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
647 (perform_var_substitution): Initialize equiv_class_obstack.
648 (free_var_substitution_info): Free equiv_class_obstack.
649
650 2019-11-20 Jan Hubicka <jh@suse.cz>
651
652 * ipa-inline.c (want_early_inline_function_p): Do not estimate
653 edge growth when callee function is very large.
654 * ipa-inline.h (estimate_min_edge_growth): New.
655
656 2019-11-20 Jan Hubicka <jh@suse.cz>
657
658 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
659 negative time in calls summary; correct roundoff errors
660 leading to negative times.
661 (ipa_merge_fn_summary_after_inlining): Update calls size time table
662 if present.
663 (ipa_update_overall_fn_summary): Add RESET parameter.
664 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
665 * ipa-inline-transform.c (inline_call): Enable incremental updates.
666
667 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
668
669 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
670 def types for two-operation SLP.
671
672 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
673
674 PR testsuite/92366
675 * doc/sourcebuild.texi (vect_char_add): Document.
676
677 2019-11-20 Alexandre Oliva <oliva@adacore.com>
678
679 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
680 * function.c (record_final_call): Record even calls that might
681 have been in the cgraph.
682 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
683 callees.
684
685 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
686
687 * configure.ac: Use https for gcc.gnu.org
688 * configure: Regenerated.
689 * doc/install.texi: Use https for gcc.gnu.org.
690 * doc/sourcebuild.texi: Likewise.
691
692 2019-11-20 Julian Brown <julian@codesourcery.com>
693
694 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
695
696 2019-11-20 Jan Hubicka <jh@suse.cz>
697
698 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
699 parameter and update call_size_time_table.
700 (ipa_fn_summary::max_size_time_table_size): New constant.
701 (estimate_calls_size_and_time_1): Break out from ...
702 (estimate_calls_size_and_time): ... here; implement summary production.
703 (summarize_calls_size_and_time): New function.
704 (ipa_call_context::estimate_size_and_time): Bypass
705 estimate_calls_size_and_time for leaf functions.
706 (ipa_update_overall_fn_summary): Likewise.
707 * ipa-fnsummary.h (call_size_time_table): New.
708 (ipa_fn_summary::account_size_time): Update prototype.
709
710 2019-11-20 Joseph Myers <joseph@codesourcery.com>
711
712 * doc/invoke.texi (-Wc11-c2x-compat): Document.
713
714 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
715
716 PR85678
717 * common.opt (fcommon): Change init to 1.
718 * doc/invoke.texi (-fcommon): Update documentation.
719
720 2019-11-20 Jan Hubicka <jh@suse.cz>
721
722 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
723 to ordinary array.
724
725 2019-11-20 Jan Hubicka <jh@suse.cz>
726
727 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
728 Add allocator parameter.
729 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
730 (fibonacci_heap<K,V>::m_allocator): New.
731 (fibonacci_heap<K,V>::m_own_allocator): New.
732 (fibonacci_heap<K,V>::insert): Use allocator.
733 (fibonacci_heap<K,V>::extract_min): Likewise.
734 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
735 allocator.
736 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
737 on stack.
738 * fibonacci_heap.c: Include alloc-pool
739 (test_empty_heap): Initialize allocator.
740 (test_union): Likewise.
741 * bb-reorder.c: Include alloc-pool.h.
742 * tracer.c: Inlclude alloc-pool.h.
743
744 2019-11-20 Jan Hubicka <jh@suse.cz>
745
746 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
747 Preallocate for 32 entries.
748 (DFS::worklist): Likewise.
749 (DFS::DFS): Do not initialize sccstack and worklist.
750 (DFS::~DFS): Do not release sccstack.
751
752 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
753
754 PR target/92573
755 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
756 Handle UNORDERED if !HONOR_NANS.
757
758 2019-11-20 Jan Hubicka <jh@suse.cz>
759
760 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
761 (edge_badness): ... here.
762 (inline_small_functions): Use monotonicity of badness calculation
763 to avoid redundant updates.
764
765 2019-11-20 Richard Biener <rguenther@suse.de>
766
767 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
768 constructors we are actually analyzing.
769 (vect_slp_check_for_constructors): Do not vectorize uniform
770 constuctors, do not dump here.
771
772 2019-11-20 Richard Biener <rguenther@suse.de>
773
774 PR tree-optimization/92537
775 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
776 vectorization validity check...
777 (vect_slp_analyze_operations): ... here.
778
779 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
780
781 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
782 (make_pass_arc_predicate_delay_insns): Likewise.
783 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
784 method, remove clone.
785 (class pass_arc_predicate_delay_insns): Likewise.
786 (arc_init): Remove registering of ARC specific passes.
787 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
788 * config/arc/arc-passes.def: New file.
789
790 2019-11-20 Jakub Jelinek <jakub@redhat.com>
791
792 PR middle-end/90840
793 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
794 and has a mode that doesn't have corresponding integral type.
795
796 PR target/90867
797 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
798 clear opts->x_ix86_isa_flags{,2} here...
799 (ix86_valid_target_attribute_inner_p): ... but here when seeing
800 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
801
802 PR c/90898
803 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
804 assertion.
805 (insert_clobbers_for_var): Fix a typo in function comment.
806
807 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
808 Jakub Jelinek <jakub@redhat.com>
809
810 PR middle-end/91195
811 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
812 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
813 load.
814
815 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
816
817 Make 0-series device specs work with older versions of avr-gcc.
818
819 PR target/92545
820 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
821 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
822 <*link_pm_base_address>: Don't write spec.
823 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
824
825 2019-11-20 Richard Biener <rguenther@suse.de>
826
827 PR c/92088
828 * builtins.c (compute_objsize): Deal with VLAs.
829
830 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
831
832 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
833 from common code.
834 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
835 call new function.
836 (power9_sched_reorder2): Call new function.
837 (rs6000_sched_reorder2): Likewise.
838
839 2019-11-18 Jan Hubicka <jh@suse.cz>
840
841 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
842 (estimate_calls_size_and_time): Update.
843
844 2019-11-18 Jan Hubicka <jh@suse.cz>
845
846 * ipa-inline.c (inlining_speedup): New function.
847 (edge_badness): Use it.
848
849 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
850 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
851
852 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
853 Mark as not having "likely" version.
854 * config/mips/mips.md (insn_count): The simd_div instruction with
855 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
856 (can_delay): Exclude simd_branch.
857 (defile_delay *): Add simd_branch instructions.
858 They have one regular delay slot.
859
860 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
861
862 Revert:
863 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
864
865 * cse.c (cse_insn): Delete no-op register moves too.
866 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
867 Take a second comparison to control the value for NE.
868 (mask_to_comparison): Handle unsigned comparisons.
869 (simplify_logical_relational_operation): Likewise. Update call
870 to comparison_to_mask. Handle AND if !HONOR_NANs.
871 (simplify_binary_operation_1): Call the above for AND too.
872
873 2019-11-19 Martin Liska <mliska@suse.cz>
874
875 * toplev.c (general_init): Move the call...
876 (toplev::main): ... here as we need init_options_struct
877 being called.
878
879 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
880
881 PR target/79262
882 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
883 vec_to_scalar_cost.
884
885 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
886
887 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
888 (armv7-a): Likewise.
889 (armv7ve): Likewise.
890
891 2019-11-19 Richard Biener <rguenther@suse.de>
892
893 PR tree-optimization/92581
894 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
895 condition reduction chains gather all conditions involved
896 for computing the index reduction vector.
897
898 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
899
900 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
901 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
902 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
903 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
904 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
905 (aarch64_init_memtag_builtins): New.
906 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
907 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
908 (aarch64_expand_builtin_memtag): New.
909 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
910 (AARCH64_BUILTIN_SUBCODE): New macro.
911 (aarch64_resolve_overloaded_memtag): New.
912 (aarch64_resolve_overloaded_builtin_general): New. Call
913 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
914 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
915 __ARM_FEATURE_MEMORY_TAGGING when enabled.
916 (aarch64_resolve_overloaded_builtin): Call
917 aarch64_resolve_overloaded_builtin_general.
918 * config/aarch64/aarch64-protos.h
919 (aarch64_resolve_overloaded_builtin_general): New declaration.
920 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
921 (TARGET_MEMTAG): Likewise.
922 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
923 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
924 (irg, gmi, subp, addg, ldg, stg): New instructions.
925 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
926 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
927 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
928 (__arm_mte_get_tag): Likewise.
929 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
930 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
931 * config/arm/types.md (memtag): New.
932 * doc/invoke.texi (-memtag): Update description.
933
934 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
935
936 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
937 to define __GCC_ASM_FLAG_OUTPUTS__.
938 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
939 (arm_option_params_internal): Swap out targetm.md_asm_adjust
940 depending on TARGET_THUMB1.
941 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
942
943 2019-11-19 Jakub Jelinek <jakub@redhat.com>
944
945 PR target/92549
946 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
947
948 PR middle-end/91450
949 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
950 operand is negative and one non-negative, compare the non-negative
951 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
952 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
953 and s2 == 0, unless one of them is known to be negative. Remove
954 tem2 variable, use tem where tem2 has been used before.
955
956 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
957
958 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
959
960 2019-11-19 Jakub Jelinek <jakub@redhat.com>
961
962 PR tree-optimization/92557
963 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
964 vmode rather than asserting it always is.
965
966 2019-11-19 Richard Biener <rguenther@suse.de>
967
968 PR tree-optimization/92554
969 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
970 for the actual condition stmt and deal with sign-changes.
971
972 2019-11-19 Richard Biener <rguenther@suse.de>
973
974 PR tree-optimization/92555
975 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
976 for non-SLP stmts.
977
978 2019-11-19 Martin Liska <mliska@suse.cz>
979
980 PR bootstrap/92540
981 * config/riscv/riscv.c (riscv_address_insns): Initialize
982 addr in order to remove boostrap -Wmaybe-uninitialized
983 error.
984
985 2019-11-18 Martin Sebor <msebor@redhat.com>
986
987 PR tree-optimization/92493
988 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
989 assignment.
990
991 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
992
993 * cfgloop.c (get_loop_body_in_custom_order): New.
994 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
995 * tree-loop-distribution.c (class loop_distribution): New.
996 (bb_top_order_cmp): Remove.
997 (bb_top_order_cmp_r): New.
998 (create_rdg_vertices): Move into class loop_distribution.
999 (stmts_from_loop): Same as above.
1000 (update_for_merge): Same as above.
1001 (partition_merge_into): Same as above.
1002 (get_data_dependence): Same as above.
1003 (data_dep_in_cycle_p): Same as above.
1004 (update_type_for_merge): Same as above.
1005 (build_rdg_partition_for-vertex): Same as above.
1006 (classify_builtin_ldst): Same as above.
1007 (classify_partition): Same as above.
1008 (share_memory_accesses): Same as above.
1009 (rdg_build_partitions): Same as above.
1010 (pg_add_dependence_edges): Same as above.
1011 (build_partition_graph): Same as above.
1012 (merge_dep_scc_partitions): Same as above.
1013 (break_alias_scc_partitions): Same as above.
1014 (finalize_partitions): Same as above.
1015 (distribute_loop): Same as above.
1016 (bb_top_order_init): New method
1017 (bb_top_order_destroy): New method.
1018 (get_bb_top_order_index_size): New method.
1019 (get_bb_top_order_index_index): New method.
1020 (get_bb_top_order_index_index): New method.
1021 (loop_distribution::execute): New method.
1022 (pass_loop_distribution::execute): Instantiate loop_distribution.
1023
1024 2019-11-18 Jan Hubicka <jh@suse.cz>
1025
1026 PR ipa/92508
1027 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1028 caches.
1029 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1030
1031 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1032
1033 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1034 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1035 * doc/md.texi: Document them.
1036 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1037 internal functions.
1038 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1039 * internal-fn.c (check_ptrs_direct): New macro.
1040 (expand_check_ptrs_optab_fn): Likewise.
1041 (direct_check_ptrs_optab_supported_p): Likewise.
1042 (internal_check_ptrs_fn_supported_p): New fuction.
1043 * tree-data-ref.c: Include internal-fn.h.
1044 (create_ifn_alias_checks): New function.
1045 (create_intersect_range_checks): Use it.
1046 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1047 (optab, cmp_op): Handle it.
1048 (raw_war, unspec): New int attributes.
1049 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1050 constants.
1051 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1052 New predicate.
1053 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1054 expander.
1055 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1056 pattern.
1057
1058 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1059
1060 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1061 empty constructors.
1062
1063 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1064
1065 * cse.c (cse_insn): Delete no-op register moves too.
1066 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1067 Take a second comparison to control the value for NE.
1068 (mask_to_comparison): Handle unsigned comparisons.
1069 (simplify_logical_relational_operation): Likewise. Update call
1070 to comparison_to_mask. Handle AND if !HONOR_NANs.
1071 (simplify_binary_operation_1): Call the above for AND too.
1072
1073 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1074
1075 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1076 splitting the main code out into...
1077 (native_encode_vector_part): ...this new function.
1078 (native_decode_vector_tree): New function.
1079 (fold_view_convert_vector_encoding): Likewise.
1080 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1081 to VECTOR_TYPEs.
1082
1083 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1084
1085 * tree-data-ref.c (create_intersect_range_checks_index): If the
1086 alias pair describes simple WAW and WAR dependencies, just check
1087 whether the first B access overlaps later A accesses.
1088 (create_waw_or_war_checks): New function that performs the same
1089 optimization on addresses.
1090 (create_intersect_range_checks): Call it.
1091
1092 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1093
1094 * lra-constraints.c (valid_address_p): Take the operand and a
1095 constraint as argument. If the operand is a MEM and the constraint
1096 is a memory constraint, check whether the eliminated form of the
1097 MEM already satisfies the constraint.
1098 (process_address_1): Update calls accordingly.
1099
1100 2019-11-18 Tom Tromey <tromey@adacore.com>
1101
1102 * doc/tm.texi: Rebuild.
1103 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1104 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1105
1106 2019-11-18 Richard Biener <rguenther@suse.de>
1107
1108 PR tree-optimization/92516
1109 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1110 argument, hoist bst_map creation/destruction to ...
1111 (vect_analyze_slp): ... here, forming a true graph with
1112 SLP instances being the entries.
1113 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1114 (vect_detect_hybrid_slp): Use one visited set for all
1115 graph entries.
1116 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1117 to hash-sets of slp_tree.
1118 (vect_slp_analyze_operations): Likewise.
1119 (vect_bb_slp_scalar_cost): Remove wrapper.
1120 (vect_bb_vectorization_profitable_p): Use one visited set for
1121 all graph entries.
1122 (vect_schedule_slp_instance): Elide bst_map use.
1123 (vect_schedule_slp): Likewise.
1124
1125 2019-11-18 Richard Biener <rguenther@suse.de>
1126
1127 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1128 was vectorized with just external refs fail.
1129
1130 2019-11-18 Martin Liska <mliska@suse.cz>
1131
1132 PR ipa/92525
1133 * ipa-icf.c (sem_function::init): Unset m_checker
1134 at the end of the function.
1135
1136 2019-11-18 Richard Biener <rguenther@suse.de>
1137
1138 PR tree-optimization/92558
1139 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1140 reducting the width of a reduction vector def update new_phis.
1141
1142 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1143
1144 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1145 and s390*-*-linux-musl* targets.
1146 * configure: Regenerate.
1147
1148 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1149
1150 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1151 (MUSL_DYNAMIC_LINKER64): Define.
1152
1153 2019-11-18 Martin Liska <mliska@suse.cz>
1154
1155 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1156 message for an unknown counter.
1157 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1158 (dbg_cnt_process_opt): Remove unreachable code.
1159
1160 2019-11-18 Martin Liska <mliska@suse.cz>
1161
1162 PR ipa/92529
1163 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1164 Compare LHS types of NOP_EXPR.
1165
1166 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1167
1168 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1169 "initial_pass_name" argument -- by running "*clean_state" pass.
1170 Also free the "initial_pass_name" when done.
1171
1172 2019-11-18 Richard Biener <rguenther@suse.de>
1173
1174 PR rtl-optimization/92462
1175 * alias.c (find_base_term): Restrict the look through ANDs.
1176 (find_base_value): Likewise.
1177
1178 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1179
1180 Add support for AVR devices from the 0-series.
1181
1182 PR target/92545
1183 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1184 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1185 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1186 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1187 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1188 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1189 for spec definitions.
1190 * doc/avr-mmcu.texi: Regenerate.
1191
1192 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1193
1194 PR target/92448
1195 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1196 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1197 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1198 (ix86_reassociation_width): Ditto.
1199 * config/i386/i386-options.c (ix86_option_override_internal):
1200 Replace TARGET_AVX128_OPTIAML with
1201 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1202 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1203 (TARGET_AVX128_OPTIMAL): Deleted.
1204 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1205 DEF_TUNE.
1206
1207 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1208
1209 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1210 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1211 just SI.
1212 (cceq_rev_compare): Rename to...
1213 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1214 just SI.
1215 (define_split for <bd>tf_<mode>): Add SImode first argument to
1216 gen_cceq_ior_compare.
1217
1218 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1219
1220 * common/config/powerpcspe: Delete.
1221
1222 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1223
1224 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1225 output in UNSPEC_WRFFR.
1226
1227 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1228
1229 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1230 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1231
1232 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1233
1234 * tree-data-ref.c (create_intersect_range_checks_index)
1235 (create_intersect_range_checks): Print dump messages.
1236
1237 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1238
1239 * tree-data-ref.c (dump_alias_pair): New function.
1240 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1241
1242 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1243
1244 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1245 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1246 merging data references with different steps.
1247 (create_intersect_range_checks_index): Take a
1248 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1249 Bail out if DR_ALIAS_MIXED_STEPS is set.
1250 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1251 instead of two dr_with_seg_lens. Update call to
1252 create_intersect_range_checks_index.
1253 (create_runtime_alias_checks): Update call accordingly.
1254
1255 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1256
1257 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1258 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1259 (dr_with_seg_len_pair_t::sequencing): New enum.
1260 (dr_with_seg_len_pair_t::flags): New member variable.
1261 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1262 parameter and initialize the flags member variable.
1263 * tree-loop-distribution.c (compute_alias_check_pairs): Update
1264 call accordingly.
1265 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1266 Ensure the two data references in an alias pair are in statement
1267 order, if there is a defined order.
1268 * tree-data-ref.c (prune_runtime_alias_test_list): Use
1269 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1270 swapped the references in a dr_with_seg_len_pair_t. OR together
1271 the flags when merging two dr_with_seg_len_pair_ts. After merging,
1272 try to restore the original dr_with_seg_len order, updating the
1273 flags if that fails.
1274
1275 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1276
1277 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1278 swapping the dr_as based on init values until we've decided
1279 whether to merge them.
1280
1281 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1282
1283 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
1284 two accesses in each dr_with_seg_len_pair_t before trying to
1285 combine separate dr_with_seg_len_pair_ts.
1286 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
1287 that here.
1288 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1289
1290 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1291
1292 * config/aarch64/aarch64-sve.md
1293 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1294 (scatter_store<SVE_24:mode><v_int_container>): ...this.
1295 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1296 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
1297 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1298 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
1299 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
1300 pattern.
1301 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1302 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1303 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1304 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1305
1306 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1307
1308 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
1309 (SVE_4HSI): New mode iterators.
1310 (ANY_EXTEND2): New code iterator.
1311 * config/aarch64/aarch64-sve.md
1312 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
1313 Extend to...
1314 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
1315 ...this, handling extension to partial modes as well as full modes.
1316 Describe the extension as a predicated rather than unpredicated
1317 extension.
1318 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1319 Likewise extend to...
1320 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
1321 ...this, making the same adjustments.
1322 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1323 Likewise extend to...
1324 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
1325 ...this, making the same adjustments.
1326 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1327 Likewise extend to...
1328 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
1329 ...this, making the same adjustments.
1330 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
1331 New pattern.
1332 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
1333 extension predicate.
1334 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1335 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
1336 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
1337 Describe the extension as a predicated rather than unpredicated
1338 extension.
1339 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
1340 Likewise. Canonicalize to a constant extension predicate.
1341 * config/aarch64/aarch64-sve-builtins-base.cc
1342 (svld1_gather_extend_impl::expand): Add an extra predicate for
1343 the extension.
1344 (svldff1_gather_extend_impl::expand): Likewise.
1345
1346 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1347
1348 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
1349 iterators.
1350 * config/aarch64/aarch64-sve.md
1351 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
1352 (gather_load<SVE_24:mode><v_int_container>): ...this.
1353 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
1354 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
1355 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
1356 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
1357 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
1358 New pattern.
1359 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
1360 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
1361 Allow the nominal extension predicate to be different from the
1362 load predicate.
1363 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
1364 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
1365
1366 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1367
1368 * config/aarch64/aarch64-sve.md
1369 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
1370 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
1371 function.
1372 (aarch64_sve_adjust_stmt_cost): Call it.
1373
1374 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1375
1376 * config/aarch64/aarch64-sve.md
1377 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
1378 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1379 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1380 Combine into...
1381 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1382 ...this new pattern, handling extension to partial modes as well
1383 as full modes. Describe the extension as a predicated rather than
1384 unpredicated extension.
1385 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
1386 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
1387 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
1388 Combine into...
1389 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
1390 ...this new pattern, handling extension to partial modes as well
1391 as full modes. Describe the extension as a predicated rather than
1392 unpredicated extension.
1393 * config/aarch64/aarch64-sve-builtins.cc
1394 (function_expander::use_contiguous_load_insn): Add an extra
1395 predicate for extending loads.
1396 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
1397 (aarch64_sve_adjust_stmt_cost): Likewise.
1398 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
1399 the cost of SVE vector stmts.
1400
1401 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1402
1403 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
1404 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
1405 * config/aarch64/aarch64-sve.md
1406 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
1407 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
1408 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
1409 comment. Avoid new narrower_mask ambiguity.
1410 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1411 (*cond_uxt<mode>_2): Update comment.
1412 (*cond_uxt<mode>_any): Likewise.
1413
1414 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1415
1416 * config/aarch64/aarch64-modes.def: Define partial SVE vector
1417 float modes.
1418 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
1419 function.
1420 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
1421 new vector float modes.
1422 (aarch64_sve_container_bits): New function.
1423 (aarch64_sve_pred_mode): Likewise.
1424 (aarch64_get_mask_mode): Use it.
1425 (aarch64_sve_element_int_mode): Handle structure modes and partial
1426 modes.
1427 (aarch64_sve_container_int_mode): New function.
1428 (aarch64_vectorize_related_mode): Return SVE modes when given
1429 SVE modes. Handle partial modes, taking the preferred number
1430 of units from the size of the given mode.
1431 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
1432 in registers.
1433 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
1434 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
1435 (aarch64_split_sve_subreg_move): Use the mode form of
1436 aarch64_sve_pred_mode.
1437 (aarch64_secondary_reload): Handle partial modes in the same way
1438 as full big-endian vectors.
1439 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
1440 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
1441 merging with the Advanced SIMD modes. If two modes have the
1442 same size, try the Advanced SIMD mode first.
1443 (aarch64_simd_valid_immediate): Use the container rather than
1444 the element mode for INDEX constants.
1445 (aarch64_simd_vector_alignment): Make the alignment of partial
1446 SVE vector modes the same as their minimum size.
1447 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
1448 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
1449 (mov<SVE_ALL:mode>): ...this.
1450 (movmisalign<SVE_FULL:mode>): Extend to...
1451 (movmisalign<SVE_ALL:mode>): ...this.
1452 (*aarch64_sve_mov<mode>_le): Rename to...
1453 (*aarch64_sve_mov<mode>_ldr_str): ...this.
1454 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
1455 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
1456 partial modes regardless of endianness.
1457 (aarch64_sve_reload_be): Rename to...
1458 (aarch64_sve_reload_mem): ...this and enable for little-endian.
1459 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
1460 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
1461 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
1462 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
1463 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
1464 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1465 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1466 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
1467 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
1468 (maskload<SVE_FULL:mode><vpred>): Extend to...
1469 (maskload<SVE_ALL:mode><vpred>): ...this.
1470 (maskstore<SVE_FULL:mode><vpred>): Extend to...
1471 (maskstore<SVE_ALL:mode><vpred>): ...this.
1472 (vec_duplicate<SVE_FULL:mode>): Extend to...
1473 (vec_duplicate<SVE_ALL:mode>): ...this.
1474 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
1475 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
1476 (sve_ld1r<SVE_FULL:mode>): Extend to...
1477 (sve_ld1r<SVE_ALL:mode>): ...this.
1478 (vec_series<SVE_FULL_I:mode>): Extend to...
1479 (vec_series<SVE_I:mode>): ...this.
1480 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
1481 (*vec_series<SVE_I:mode>_plus): ...this.
1482 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
1483 new VPRED ambiguity.
1484 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
1485 (add<SVE_FULL_I:mode>3): Extend to...
1486 (add<SVE_I:mode>3): ...this.
1487 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
1488 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
1489 (VPRED, vpred): Likewise.
1490 (Vctype): New iterator.
1491 (vw): Remove SVE modes.
1492
1493 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1494
1495 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
1496 (SVE_PARTIAL_I): ...this.
1497 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1498
1499 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1500
1501 * config/aarch64/iterators.md (SVE_ALL): Rename to...
1502 (SVE_FULL): ...this.
1503 (SVE_I): Rename to...
1504 (SVE_FULL_I): ...this.
1505 (SVE_F): Rename to...
1506 (SVE_FULL_F): ...this.
1507 (SVE_BHSI): Rename to...
1508 (SVE_FULL_BHSI): ...this.
1509 (SVE_HSD): Rename to...
1510 (SVE_FULL_HSD): ...this.
1511 (SVE_HSDI): Rename to...
1512 (SVE_FULL_HSDI): ...this.
1513 (SVE_HSF): Rename to...
1514 (SVE_FULL_HSF): ...this.
1515 (SVE_SD): Rename to...
1516 (SVE_FULL_SD): ...this.
1517 (SVE_SDI): Rename to...
1518 (SVE_FULL_SDI): ...this.
1519 (SVE_SDF): Rename to...
1520 (SVE_FULL_SDF): ...this.
1521 (SVE_S): Rename to...
1522 (SVE_FULL_S): ...this.
1523 (SVE_D): Rename to...
1524 (SVE_FULL_D): ...this.
1525 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
1526 * config/aarch64/aarch64-sve2.md: Likewise.
1527
1528 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1529
1530 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
1531 New option.
1532 * doc/invoke.texi: Document it.
1533 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1534 By default, return VECT_COMPARE_COSTS for SVE.
1535
1536 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1537
1538 * target.h (VECT_COMPARE_COSTS): New constant.
1539 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
1540 * doc/tm.texi: Regenerate.
1541 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
1542 * targhooks.c (default_autovectorize_vector_modes): Likewise.
1543 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
1544 Likewise.
1545 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
1546 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
1547 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
1548 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
1549 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
1550 (_loop_vec_info::vec_inside_cost): New member variables.
1551 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
1552 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
1553 (vect_analyze_loop): When autovectorize_vector_modes returns
1554 VECT_COMPARE_COSTS, try vectorizing the loop with each available
1555 vector mode and picking the one with the lowest cost.
1556 (vect_estimate_min_profitable_iters): Record the computed costs
1557 in the loop_vec_info.
1558
1559 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1560
1561 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
1562 element type rather than an element mode.
1563 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1564 Use get_vectype_for_scalar_type to query the natural types
1565 for a given element type rather than basing everything on
1566 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
1567 query to MAX_FIXED_MODE_SIZE.
1568 (duplicate_and_interleave): Update call accordingly.
1569 * tree-vect-loop.c (vectorizable_reduction): Likewise.
1570
1571 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1572
1573 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
1574 optional maximum nunits.
1575 (get_vectype_for_scalar_type): Likewise. Also declare a form that
1576 takes an slp_tree.
1577 (get_mask_type_for_scalar_type): Take an optional slp_tree.
1578 (vect_get_mask_type_for_stmt): Likewise.
1579 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
1580 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
1581 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
1582 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
1583 to get an assumed vector type for data references.
1584 * tree-vect-slp.c (vect_update_shared_vectype): New function.
1585 (vect_update_all_shared_vectypes): Likewise.
1586 (vect_build_slp_tree_1): Pass the group size to
1587 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
1588 for BB vectorization.
1589 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
1590 before building the vectof from scalars.
1591 (vect_analyze_slp_instance): Pass the group size to
1592 get_vectype_for_scalar_type.
1593 (vect_slp_analyze_node_operations_1): Don't recompute the vector
1594 types for BB vectorization here; just handle the case in which
1595 we deferred the choice for booleans.
1596 (vect_get_constant_vectors): Pass the slp_tree to
1597 get_vectype_for_scalar_type.
1598 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
1599 (vectorizable_call): Likewise.
1600 (vectorizable_simd_clone_call): Likewise.
1601 (vectorizable_conversion): Likewise.
1602 (vectorizable_shift): Likewise.
1603 (vectorizable_operation): Likewise.
1604 (vectorizable_comparison): Likewise.
1605 (vect_is_simple_cond): Take the slp_tree as argument and
1606 pass it to get_vectype_for_scalar_type.
1607 (vectorizable_condition): Update call accordingly.
1608 (get_vectype_for_scalar_type): Take a group_size argument.
1609 For BB vectorization, limit the the vector to that number
1610 of elements. Also define an overload that takes an slp_tree.
1611 (get_mask_type_for_scalar_type): Add an slp_tree argument and
1612 pass it to get_vectype_for_scalar_type.
1613 (vect_get_vector_types_for_stmt): Add a group_size argument
1614 and pass it to get_vectype_for_scalar_type. Don't use the
1615 cached vector type for BB vectorization if a group size is given.
1616 Handle data references in that case.
1617 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
1618 pass it to get_mask_type_for_scalar_type.
1619
1620 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
1621
1622 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
1623 parameter.
1624 (estimate_edge_time): Use it.
1625 * ipa-inline-analysis.c (do_estimate_edge_time): Add
1626 ret_nonspec_time parameter.
1627
1628 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
1629
1630 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
1631
1632 2019-11-15 Nick Clifton <nickc@redhat.com>
1633 Szabolcs Nagy <szabolcs.nagy@arm.com>
1634
1635 PR target/65649
1636 * config/microblaze/microblaze.c (print_operand): Print value as long.
1637
1638 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
1639
1640 * ipa-inline.c (edge_badness, inline_small_functions): Revert
1641 accidental commit.
1642
1643 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1644
1645 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
1646 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
1647
1648 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1649
1650 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
1651 (gcn_conditional_register_usage): Use constants in place of hard-coded
1652 values.
1653 (gcn_hsa_declare_function_name): Set lower bound for number of
1654 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
1655 MAX_NORMAL_VGPR_COUNT.
1656
1657 2019-11-15 Martin Jambor <mjambor@suse.cz>
1658
1659 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
1660 declaration.
1661
1662 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1663
1664 * config/gcn/gcn.c (default_requested_args): New.
1665 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
1666 set with default_requested_args.
1667 (gcn_conditional_register_usage): Limit register usage of non-kernel
1668 functions. Reassign fixed registers if a non-standard set of args is
1669 requested.
1670 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
1671
1672 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
1673
1674 PR ipa/92528
1675 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
1676 aggregate jump function when inlined-to caller has no edge summary.
1677
1678 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1679
1680 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
1681
1682 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1683
1684 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
1685 prologue use of v0.
1686 (print_operand_address): Use v1 for zero vector offset.
1687
1688 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
1689
1690 PR tree-optimization/92515
1691 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
1692 types when converting a vector/scalar shift into a vector/vector one,
1693 using tree_nop_conversion_p instead of useless_type_conversion_p.
1694 Move the conversion code to the transform block.
1695
1696 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1697
1698 * read-rtl-function.c
1699 (function_reader::add_fixup_source_location): Take additional
1700 parameter of a column.
1701 (function_reader::maybe_read_location): Optionally parse column
1702 information and pass to add_fixup_source_location.
1703
1704 2019-11-15 Richard Biener <rguenther@suse.de>
1705
1706 PR tree-optimization/92512
1707 * tree-vect-loop.c (check_reduction_path): Fix operand index
1708 computability check. Add check for second use in COND_EXPRs.
1709
1710 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
1711
1712 PR target/92515
1713 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
1714 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
1715
1716 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
1717
1718 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
1719 register class for VCC_LO and VCC_HI.
1720 (gcn_spill_class): Use SGPR_REGS to spill registers in
1721 VCC_CONDITIONAL_REG.
1722
1723 2019-11-15 Richard Biener <rguenther@suse.de>
1724
1725 PR tree-optimization/92324
1726 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
1727 singedness of SLP reduction epilouge operations. Also reduce
1728 the vector width for SLP reductions before doing elementwise
1729 operations if possible.
1730
1731 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1732
1733 * passes.c (skip_pass): Set epilogue_completed if skipping the
1734 pro_and_epilogue pass.
1735
1736 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
1737
1738 * passes.c (should_skip_pass_p): Always run "dfinish".
1739
1740 2019-11-15 Richard Biener <rguenther@suse.de>
1741
1742 * ipa-inline.c (inline_small_functions): Move assignment
1743 to next before call destroying edge.
1744
1745 2019-11-15 Richard Biener <rguenther@suse.de>
1746
1747 PR tree-optimization/92039
1748 PR tree-optimization/91975
1749 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
1750 previous change, treat invariants consistently as non-constant.
1751 (tree_estimate_loop_size): Ternary ops with just the first op
1752 constant are not optimized away.
1753
1754 2019-11-15 Jakub Jelinek <jakub@redhat.com>
1755
1756 * gimplify.c (gimplify_call_expr): Don't call
1757 omp_resolve_declare_variant after gimplification.
1758 * omp-general.c (omp_context_selector_matches): For isa that might
1759 match in some other function, defer if in declare simd function.
1760 (omp_context_compute_score): Don't look for " score" in construct
1761 trait set. Set *score to -1 if it can't ever match.
1762 (omp_resolve_declare_variant): If any variants need to be deferred,
1763 don't punt immediately, but compute scores of all variants and if
1764 ther eis a score winner that doesn't need to be deferred, return that.
1765
1766 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
1767
1768 * ipa-comdats.c: Fix comments typo.
1769 * ipa-profile.c: Fix comments typo.
1770 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
1771 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
1772 (gimple_gen_ic_func_profiler): Likewise.
1773 (pass_ipa_tree_profile::gate): Fix comments typo.
1774
1775 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
1776
1777 * ipa-inline.c (inline_small_functions): Update iterator of next.
1778
1779 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1780
1781 * lra-spills.c (assign_spill_hard_regs): Check that the spill
1782 register is suitable for the mode.
1783
1784 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
1785
1786 * range-op.h (range_operator::fold_range): Return a bool.
1787 * range-op.cc (range_operator::wi_fold): Assert supported type.
1788 (range_operator::fold_range): Assert supported type and return true.
1789 (operator_equal::fold_range): Return true.
1790 (operator_not_equal::fold_range): Same.
1791 (operator_lt::fold_range): Same.
1792 (operator_le::fold_range): Same.
1793 (operator_gt::fold_range): Same.
1794 (operator_ge::fold_range): Same.
1795 (operator_plus::op1_range): Adjust call to fold_range.
1796 (operator_plus::op2_range): Same.
1797 (operator_minus::op1_range): Same.
1798 (operator_minus::op2_range): Same.
1799 (operator_exact_divide::op1_range): Same.
1800 (operator_lshift::fold_range): Return true and adjust fold_range call.
1801 (operator_rshift::fold_range): Same.
1802 (operator_cast::fold_range): Return true.
1803 (operator_logical_and::fold_range): Same.
1804 (operator_logical_or::fold_range): Same.
1805 (operator_logical_not::fold_range): Same.
1806 (operator_bitwise_not::fold_range): Adjust call to fold_range.
1807 (operator_bitwise_not::op1_range): Same.
1808 (operator_cst::fold_range): Return true.
1809 (operator_identity::fold_range): Return true.
1810 (operator_negate::fold_range): Return true and adjust fold_range call.
1811 (operator_addr_expr::fold_range): Return true.
1812 (operator_addr_expr::op1_range): Adjust call to fold_range.
1813 (range_cast): Same.
1814 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
1815 (range_fold_unary_symbolics_p): Same.
1816
1817 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
1818
1819 PR tree-optimization/92506
1820 * range-op.cc (range_operator::fold_range): Start with range undefined.
1821 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
1822 overflow is varying.
1823
1824 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
1825
1826 * range-op.cc (*operator*::*range): Remove calls to
1827 range_intersect, range_invert, and range_union in favor of calling
1828 the in-place API methods.
1829 (range_tests): Same.
1830 * range.cc (range_intersect): Remove.
1831 (range_union): Remove.
1832 (range_invert): Remove.
1833 * range.h (range_intersect): Remove.
1834 (range_union): Remove.
1835 (range_intersect): Remove.
1836
1837 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
1838
1839 PR rtl-optimization/92430
1840 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
1841 (pass_jump_after_combine::execute): Perform jump threading
1842 unconditionally.
1843
1844 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
1845 Doug Rupp <rupp@adacore.com>
1846 Olivier Hainque <hainque@adacore.com>
1847
1848 * config.gcc: Collapse the arm-vxworks entries into
1849 a single arm-wrs-vxworks7* one, bpabi based. Update
1850 the default cpu from arm8 to armv7-a
1851 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
1852 we always use ARM_UNWIND_INFO.
1853 (DWARF2_UNWIND_INFO): Remove redefinition.
1854 (ARM_TARGET2_DWARF_FORMAT): Likewise.
1855 (VXWORKS_PERSONALITY): Define, to "llvm".
1856 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
1857
1858 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
1859
1860 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
1861 _VX_CPU instead of CPU and handle arm_arch8.
1862
1863 2019-11-14 Doug Rupp <rupp@adacore.com>
1864 Olivier Hainque <hainque@adacore.com>
1865 Jerome Lambourg <lambourg@adacore.com>
1866
1867 * config.gcc: Handle aarch64*-wrs-vxworks7*.
1868 * config/aarch64/aarch64-vxworks.h: New file.
1869 * config/aarch64/t-aarch64-vxworks: New file.
1870
1871 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
1872 Olivier Hainque <hainque@adacore.com>
1873
1874 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
1875 definition, pointless with a VxWorks specific version
1876 of crtstuff.
1877 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
1878 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
1879 New local macros, controlling the addition of vxworks specific
1880 crtstuff objects depending on the EH mechanism and kind of
1881 module being linked.
1882 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
1883
1884 2019-11-06 Pat Bernardi <bernardi@adacore.com>
1885 Jerome Lambourg <lambourg@adacore.com>
1886 Olivier Hainque <hainque@adacore.com>
1887
1888 * config.gcc: Add comment to introduce the TARGET_VXWORKS
1889 common macro definitions, conveying VXWORKS7 or 64bit general
1890 variations. Add a block to set gcc_cv_initfini_array
1891 unconditionally to "yes" for VxWorks7.
1892 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
1893 by default. Update some comments.
1894 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
1895 default, to be added the end of VXWORKS_LIBS_RTP.
1896 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
1897 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
1898 redefine.
1899 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
1900 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
1901 to account for the now available TLS abilities.
1902 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
1903 (VXWORKS_HAVE_TLS): Likewise.
1904
1905 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1906
1907 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
1908 (vect_slp_convert_to_external): Likewise.
1909 (vect_slp_analyze_node_operations): If analysis fails, try building
1910 the node from scalars instead.
1911
1912 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1913
1914 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
1915 between vector types.
1916 * tree-vect-stmts.c (vectorizable_conversion): Extend the
1917 non-widening and non-narrowing path to handle standard
1918 conversion codes, if the target supports them.
1919 * expr.c (convert_move): Try using the extend and truncate optabs
1920 for vectors.
1921 * optabs-tree.c (supportable_convert_operation): Likewise.
1922 * config/aarch64/iterators.md (Vnarroqw): New iterator.
1923 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
1924 (trunc<mode><Vnarrowq>2): New patterns.
1925
1926 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1927
1928 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
1929 require vectype and nunits_vectype to have the same size;
1930 instead assert that nunits_vectype has at least as many
1931 elements as vectype. Don't compute a separate nunits_vectype
1932 if the scalar type is obviously the same as vectype's.
1933 Tweak dump messages.
1934
1935 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1936
1937 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
1938 function.
1939 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
1940 (TARGET_VECTORIZE_RELATED_MODE): Define.
1941
1942 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1943
1944 * tree-vectorizer.h (vec_info::mode_set): New typedef.
1945 (vec_info::used_vector_mode): New member variable.
1946 (vect_chooses_same_modes_p): Declare.
1947 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
1948 chosen vector mode in vec_info::used_vector_mode.
1949 (vect_chooses_same_modes_p): New function.
1950 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
1951 the same vector statements multiple times.
1952 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
1953
1954 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1955
1956 * machmode.h (opt_machine_mode::operator==): New function.
1957 (opt_machine_mode::operator!=): Likewise.
1958 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
1959 (get_related_vectype_for_scalar_type): Delete.
1960 (get_vectype_for_scalar_type_and_size): Declare.
1961 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
1962 whether analysis passed or failed, and with what vector modes.
1963 Use related_vector_mode to check whether trying a particular
1964 vector mode would be redundant with the autodetected mode,
1965 and print a dump message if we decide to skip it.
1966 * tree-vect-loop.c (vect_analyze_loop): Likewise.
1967 (vect_create_epilog_for_reduction): Use
1968 get_related_vectype_for_scalar_type instead of
1969 get_vectype_for_scalar_type_and_size.
1970 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
1971 with...
1972 (get_related_vectype_for_scalar_type): ...this new function.
1973 Take a starting/"prevailing" vector mode rather than a vector size.
1974 Take an optional nunits argument, with the same meaning as for
1975 related_vector_mode. Use related_vector_mode when not
1976 auto-detecting a mode, falling back to mode_for_vector if no
1977 target mode exists.
1978 (get_vectype_for_scalar_type): Update accordingly.
1979 (get_same_sized_vectype): Likewise.
1980 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
1981
1982 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1983
1984 * tree-vect-stmts.c (vectorizable_call): Require the types
1985 to have the same size.
1986
1987 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1988
1989 * tree-vect-stmts.c (vectorizable_call): If an operand is
1990 constant or external, use get_vectype_for_scalar_type
1991 rather than get_same_sized_vectype to get its vector type.
1992 (vectorizable_conversion, vectorizable_shift): Likewise.
1993 (vectorizable_operation): Likewise.
1994
1995 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1996
1997 * tree-vectorizer.h (vec_info::vector_size): Replace with...
1998 (vec_info::vector_mode): ...this new field.
1999 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2000 (vect_analyze_loop, vect_transform_loop): Likewise.
2001 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2002 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2003 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2004 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2005 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2006
2007 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2008
2009 * target.h (vector_sizes, auto_vector_sizes): Delete.
2010 (vector_modes, auto_vector_modes): New typedefs.
2011 * target.def (autovectorize_vector_sizes): Replace with...
2012 (autovectorize_vector_modes): ...this new hook.
2013 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2014 Replace with...
2015 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2016 * doc/tm.texi: Regenerate.
2017 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2018 (default_autovectorize_vector_modes): New function.
2019 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2020 (default_autovectorize_vector_modes): New function.
2021 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2022 of autovectorize_vector_sizes. Use the number of units in the mode
2023 to calculate the maximum VF.
2024 * omp-low.c (omp_clause_aligned_alignment): Use
2025 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2026 Use a loop based on related_mode to iterate through all supported
2027 vector modes for a given scalar mode.
2028 * optabs-query.c (can_vec_mask_load_store_p): Use
2029 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2030 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2031 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2032 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2033 Replace with...
2034 (aarch64_autovectorize_vector_modes): ...this new function.
2035 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2036 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2037 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2038 (arc_autovectorize_vector_modes): ...this new function.
2039 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2040 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2041 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2042 (arm_autovectorize_vector_modes): ...this new function.
2043 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2044 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2045 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2046 (ix86_autovectorize_vector_modes): ...this new function.
2047 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2048 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2049 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2050 (mips_autovectorize_vector_modes): ...this new function.
2051 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2052 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2053
2054 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2055
2056 * tree-vect-stmts.c (vectorizable_shift): Check the number
2057 of vector elements as well as the type mode when deciding
2058 whether an op1_vectype is compatible. Reuse the result of
2059 this check when generating vector statements.
2060
2061 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2062
2063 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2064 targetm.vectorize.preferred_simd_mode returns an integer mode,
2065 use mode_for_vector to decide what the vector type's mode
2066 should actually be. Use build_vector_type_for_mode instead
2067 of build_vector_type.
2068
2069 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2070
2071 * target.def (get_mask_mode): Take a vector mode itself as argument,
2072 instead of properties about the vector mode.
2073 * doc/tm.texi: Regenerate.
2074 * targhooks.h (default_get_mask_mode): Update to reflect new
2075 get_mode_mask interface.
2076 * targhooks.c (default_get_mask_mode): Likewise. Use
2077 related_int_vector_mode.
2078 * optabs-query.c (can_vec_mask_load_store_p): Update call
2079 to get_mask_mode.
2080 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2081 first that the original mode really is a vector.
2082 * tree.c (build_truth_vector_type_for): Likewise.
2083 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2084 get_mode_mask interface.
2085 (aarch64_expand_sve_vcond): Update call accordingly.
2086 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2087 get_mode_mask interface.
2088 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2089
2090 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2091
2092 * tree.h (build_truth_vector_type): Delete.
2093 (build_same_sized_truth_vector_type): Likewise.
2094 * tree.c (build_truth_vector_type): Rename to...
2095 (build_truth_vector_type_for): ...this. Make static and take
2096 a vector type as argument.
2097 (truth_type_for): Update accordingly.
2098 (build_same_sized_truth_vector_type): Delete.
2099 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2100 instead of build_same_sized_truth_vector_type.
2101 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2102 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2103 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2104 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2105 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2106 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2107 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2108 (vectorizable_store, vectorizable_condition): Likewise.
2109 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2110 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2111 build_truth_vector_type.
2112 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2113 Use truth_type_for instead of build_same_sized_truth_vector_type.
2114 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2115
2116 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2117
2118 * tree.h (build_truth_vector_type_for_mode): Declare.
2119 * tree.c (build_truth_vector_type_for_mode): New function,
2120 split out from...
2121 (build_truth_vector_type): ...here.
2122 (build_opaque_vector_type): Fix head comment.
2123 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2124 vec_info parameter.
2125 (vect_halve_mask_nunits): Replace vec_info parameter with the
2126 mode of the new vector.
2127 (vect_double_mask_nunits): Likewise.
2128 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2129 (vect_double_mask_nunits): Likewise.
2130 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2131 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2132 to vect_halve_mask_nunits, getting the required mode from the unpack
2133 patterns.
2134 (vect_set_loop_condition_masked): Update call accordingly.
2135 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2136 parameter and update call to vect_double_mask_nunits.
2137 (vectorizable_conversion): Update call accordingly.
2138 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2139 (vectorizable_call): Update call accordingly.
2140 (supportable_widening_operation): Update call to
2141 vect_halve_mask_nunits.
2142 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2143 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2144
2145 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2146
2147 * machmode.h (mode_for_int_vector): Delete.
2148 (related_int_vector_mode): Declare.
2149 * stor-layout.c (mode_for_int_vector): Delete.
2150 (related_int_vector_mode): New function.
2151 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2152 instead of mode_for_int_vector.
2153 (expand_vec_perm_const): Likewise.
2154 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2155 (aarch64_evpc_sve_tbl): Likewise.
2156 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2157 (s390_expand_vcond): Likewise.
2158
2159 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2160
2161 * target.def (related_mode): New hook.
2162 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2163 * doc/tm.texi: Regenerate.
2164 * targhooks.h (default_vectorize_related_mode): Declare.
2165 * targhooks.c (default_vectorize_related_mode): New function.
2166 * machmode.h (related_vector_mode): Declare.
2167 * stor-layout.c (related_vector_mode): New function.
2168 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2169 * optabs-query.c (qimode_for_vec_perm): Likewise.
2170 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2171 (vectorizable_store, vectorizable_load): Likewise
2172
2173 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2174
2175 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2176 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2177 * config/arm/arm-c.c (arm_cpu_builtins): Define
2178 __GCC_ASM_FLAG_OUTPUTS__.
2179 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2180 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2181 Define __GCC_ASM_FLAG_OUTPUTS__.
2182 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2183 * doc/extend.texi (FlagOutputOperands): Add documentation
2184 for ARM and AArch64.
2185
2186 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2187 * config/arm/predicates.md (nz_comparison_operator): Rename
2188 from noov_comparison_operator.
2189 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2190 (arm_gen_dicompare_reg): Likewise.
2191 (maybe_get_arm_condition_code): Likewise.
2192 (thumb1_final_prescan_insn): Likewise.
2193 (arm_emit_coreregs_64bit_shift): Likewise.
2194 * config/arm/arm.md (addsi3_compare0): Likewise.
2195 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2196 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2197 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2198 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2199 (*mulsi3addsi_compare0_scratch): Likewise.
2200 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2201 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2202 (*zeroextractsi_compare0_scratch): Likewise.
2203 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2204 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2205 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2206 (andsi_not_shiftsi_si_scc): Likewise.
2207 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2208 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2209 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2210 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2211 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2212 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2213 (return_addr_mask, *check_arch2): Likewise.
2214 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2215 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2216 (compare_scc splitters): Likewise.
2217 (movcond_addsi): Likewise.
2218 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2219 (*thumb2_addsi3_compare0_scratch): Likewise.
2220 (*thumb2_mulsi_short_compare0): Likewise.
2221 (*thumb2_mulsi_short_compare0_scratch): Likewise.
2222 (compare peephole2s): Likewise.
2223 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2224 nz_comparison_operator names.
2225 (cbranchsi4_insn): Likewise.
2226
2227 * config/arm/constraints.md (c): Use cc_register predicate.
2228
2229 * config/aarch64/constraints.md (c): New constraint.
2230
2231 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2232
2233 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2234 ipa_merge_fn_summary_after_inlining): Micro optimize.
2235
2236 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2237
2238 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2239
2240 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2241
2242 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2243 (ipa_value_range_from_jfunc): New function.
2244 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2245 known_value_ranges parameter; use it to evalulate conditions.
2246 (evaluate_properties_for_edge): Compute known value ranges.
2247 (ipa_fn_summary_t::duplicate): Update use of
2248 evaluate_conditions_for_known_args.
2249 (estimate_ipcp_clone_size_and_time): Likewise.
2250 (ipa_merge_fn_summary_after_inlining): Likewise.
2251 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2252
2253 2019-11-14 Martin Liska <mliska@suse.cz>
2254
2255 * ipa-inline.c (want_inline_small_function_p): Use
2256 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2257 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2258
2259 2019-11-14 Martin Liska <mliska@suse.cz>
2260
2261 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2262 of a callee to get value of the param.
2263 * ipa-inline.c (inline_insns_auto): Use proper
2264 opt_for_fn.
2265 * opts.c (maybe_default_option): Do not overwrite param
2266 value if optimization level does not match. Note that
2267 params usually have default value set via Init() keyword.
2268 * params.opt: Remove -param=max-inline-insns-auto-O2.
2269 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2270 * doc/invoke.texi: Remove documentation of
2271 max-inline-insns-auto-O2.
2272
2273 2019-11-14 Martin Liska <mliska@suse.cz>
2274
2275 * tree-switch-conversion.c (switch_conversion::switch_conversion):
2276 Do not initialize m_other_count.
2277 (switch_conversion::collect): Do not count m_default_count and
2278 m_other_count as we use frequencies for edges.
2279 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
2280
2281 2019-11-14 Martin Liska <mliska@suse.cz>
2282
2283 PR other/92329
2284 * doc/invoke.texi: Document -fallocation-dce.
2285
2286 2019-11-14 Martin Liska <mliska@suse.cz>
2287
2288 PR target/92389
2289 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
2290 PTA_ICELAKE_CLIENT which is later interited by
2291 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
2292
2293 2019-11-14 Martin Liska <mliska@suse.cz>
2294
2295 * ipa-icf.c (sem_item_optimizer::execute): Save
2296 loaded_symbols.
2297 (sem_item_optimizer::parse_nonsingleton_classes):
2298 Return number of loaded symbols.
2299 (sem_item_optimizer::merge_classes): Print
2300 statistics about totally needed symbols.
2301 * ipa-icf.h (parse_nonsingleton_classes): Change return
2302 type.
2303 (merge_classes): Add one argument.
2304
2305 2019-11-14 Martin Liska <mliska@suse.cz>
2306
2307 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
2308 func_checker::hash_operand by handling of FIELD_DECLs.
2309
2310 2019-11-14 Martin Liska <mliska@suse.cz>
2311
2312 * ipa-icf-gimple.h (func_checker::func_checker): Add
2313 default constructor.
2314 * ipa-icf.c (sem_function::init): Make operand_equal_p
2315 and hash_operand public.
2316 (sem_item::add_expr): Remove.
2317 (sem_item::add_type): Remove.
2318 (sem_function::hash_stmt): Use m_checker for hashing
2319 of GIMPLE statements.
2320 (sem_function::parse): Init with checker.
2321 (sem_variable::parse): Pass NULL as checker.
2322 (sem_item_optimizer::parse_funcs_and_vars):
2323 Pass checker to ::parse function.
2324 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
2325 (sem_variable::parse): New function.
2326 (sem_variable::get_hash): Only return computed hash value.
2327 (sem_variable::init): Initialize hash of a variable.
2328 * ipa-icf.h: Remove add_expr, add_type and add func_checker
2329 to couple of functions as a new argument.
2330
2331 2019-11-14 Martin Liska <mliska@suse.cz>
2332
2333 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
2334 bail out reason.
2335 (func_checker::compare_gimple_assign): Likewise.
2336
2337 2019-11-14 Jakub Jelinek <jakub@redhat.com>
2338
2339 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
2340 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
2341 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
2342
2343 * omp-general.c (omp_context_name_list_prop): New function.
2344 (omp_context_selector_matches): Use it. Return 0 if it returns
2345 NULL.
2346 (omp_context_selector_props_compare): Allow equivalency of an
2347 identifier and a string literal containing no embedded zeros.
2348
2349 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2350
2351 * range-op.cc (RANGE3): Remove.
2352 (range_tests): Remove all selftest that check for multi-ranges.
2353 Put tests in namespace selftest.
2354 * selftest.h: Move range_tests into namespace selftest.
2355 * value-range.h (class value_range): Unfriend range_tests.
2356
2357 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2358
2359 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
2360 normalize_symbolics and normalize_addresses working in place.
2361 (range_fold_unary_symbolics_p): Same.
2362 (range_fold_unary_symbolics_p): Same.
2363 * value-range.cc (num_pairs): Same.
2364 (lower_bound): Same.
2365 (upper_bound): Same.
2366 (contains_p): Same.
2367 (normalize_addresses): Same.
2368 (normalize_symbolics): Same.
2369 * value-range.h (normalize_symbolics): Same.
2370 (normalize_addresses): Same.
2371
2372 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
2373
2374 PR ipa/91682
2375 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
2376 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
2377 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
2378 (ipa_agg_jump_function): Remove member function equal_to.
2379 (ipa_agg_jump_function_p): Remove typedef.
2380 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
2381 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
2382 information for aggregate jump function.
2383 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
2384 record last definition statement.
2385 (load_from_unmodified_param_or_agg): New function.
2386 (ipa_known_agg_contents_list): Add new field type and value, remove
2387 field constant.
2388 (build_agg_jump_func_from_list): Rename parameter const_count to
2389 value_count, build aggregate jump function from ipa_load_agg_data.
2390 (analyze_agg_content_value): New function.
2391 (extract_mem_content): Analyze memory store assignment to prepare
2392 information for aggregate jump function generation.
2393 (determine_known_aggregate_parts): Add new parameter fbi, remove
2394 parameter aa_walk_budeget_p.
2395 (update_jump_functions_after_inlining): Update aggregate jump function.
2396 (ipa_find_agg_cst_for_param): Change type of parameter agg.
2397 (try_make_edge_direct_simple_call): Add new parameter new_root.
2398 (try_make_edge_direct_virtual_call): Add new parameter new_root and
2399 new_root_info.
2400 (update_indirect_edges_after_inlining): Pass new argument to
2401 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
2402 (ipa_write_jump_function): Write aggregate jump function to file.
2403 (ipa_read_jump_function): Read aggregate jump function from file.
2404 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
2405 * ipa-cp.c (ipa_get_jf_arith_result): New function.
2406 (ipa_agg_value_from_node): Likewise.
2407 (ipa_agg_value_set_from_jfunc): Likewise.
2408 (propagate_vals_across_arith_jfunc): Likewise.
2409 (propagate_aggregate_lattice): Likewise.
2410 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
2411 (propagate_vals_across_pass_through): Call
2412 propagate_vals_across_arith_jfunc.
2413 (get_clone_agg_value): Move forward.
2414 (propagate_aggs_across_jump_function): Handle value propagation for
2415 aggregate jump function.
2416 (agg_jmp_p_vec_for_t_vec): Remove.
2417 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
2418 with vec<ipa_agg_value>.
2419 (copy_plats_to_inter, intersect_with_plats): Likewise.
2420 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
2421 (intersect_aggregate_with_edge): Likewise.
2422 (find_aggregate_values_for_callers_subset): Likewise.
2423 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
2424 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
2425 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2426 (gather_context_independent_values): Likewise.
2427 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
2428 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
2429 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2430 (evaluate_properties_for_edge): Likewise.
2431 (estimate_edge_devirt_benefit): Likewise.
2432 (estimate_edge_size_and_time): Likewise.
2433 (estimate_calls_size_and_time): Likewise.
2434 (ipa_call_context::ipa_call_context): Likewise.
2435 (estimate_ipcp_clone_size_and_time): Likewise.
2436 * ipa-fnsummary.h (ipa_call_context): Replace
2437 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2438 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
2439 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
2440 (do_estimate_edge_size): Likewise.
2441 (do_estimate_edge_hints): Likewise.
2442
2443 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2444
2445 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
2446 binary operations.
2447
2448 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2449
2450 * ipa-profile.c (check_argument_count): Check properly that e_info
2451 is non-NULL; do not check descriptors.
2452
2453 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2454
2455 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
2456 check for ipa profiles.
2457
2458 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2459
2460 PR c++/92421
2461 * ipa-prop.c (update_indirect_edges_after_inlining):
2462 Mark parameter as used.
2463 * ipa-inline.c (recursive_inlining): Reset node cache
2464 after inlining.
2465 (inline_small_functions): Remove checking ifdef.
2466 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
2467 cache consistency.
2468
2469 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2470
2471 PR ipa/92498
2472 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
2473 is NULL.
2474 (ipa_profile): Fix reversed test.
2475
2476 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2477
2478 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
2479 (propagate_constants_topo): Fix typo.
2480
2481 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2482
2483 * Makefile.in (OBJS): Add value-range.o.
2484 (GTFILES): Add value-range.h.
2485 * gengtype.c (open_base_files): Add value-range.h to list of
2486 header files.
2487 * tree-vrp.c: Move the following value_range related functions:
2488 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
2489 constant_p, set_undefined, set_varying, may_contain_p,
2490 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
2491 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
2492 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
2493 value_inside_range, ranges_from_anti_range, union_ranges,
2494 intersect_ranges, intersect_helper, union_helper, union_,
2495 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
2496 upper_bound, contains_p, invert, intersect...
2497 * value-range.cc: ...to here.
2498 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
2499 associated inline methods from here...
2500 * value-range.h: ...to here.
2501
2502 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2503
2504 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
2505 instead of asserting its value.
2506
2507 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
2508
2509 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
2510 constructors and set methods so value_range_kind is the last
2511 argument and defaults to VR_RANGE.
2512 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
2513 * ipa-cp.c (propagate_vr_across_jump_function): Same.
2514 * ipa-prop.c (ipa_get_value_range): Same.
2515 (ipa_compute_jump_functions_for_edge): Same.
2516 * range-op.cc (value_range_from_overflowed_bounds): Same.
2517 (operator_cast::op1_range): Same.
2518 (range_tests): Same.
2519 * range.cc (range_nonzero): Same.
2520 * tree-ssanames.c (get_range_info): Same.
2521 * tree-vrp.c (value_range_equiv::set): Same.
2522 (value_range::value_range): Same.
2523 (value_range_equiv::value_range_equiv): Same.
2524 (value_range_equiv::update): Same.
2525 (value_range_equiv::deep_copy): Same.
2526 (value_range_equiv::move): Same.
2527 (value_range_equiv::set_undefined): Same.
2528 (value_range::set): Same.
2529 (value_range::set_nonzero): Same.
2530 (ranges_from_anti_range): Same.
2531 (extract_range_from_plus_minus_expr): Same.
2532 (value_range::intersect_helper): Same.
2533 (value_range_equiv::intersect): Same.
2534 (value_range::union_helper): Same.
2535 (value_range_equiv::union_): Same.
2536 (value_range::normalize_symbolics): Same.
2537 (value_range::invert): Same.
2538 (determine_value_range_1): Same.
2539 * tree-vrp.h (class value_range): Same.
2540 (class value_range_equiv): Same.
2541 * vr-values.c (set_value_range_to_nonnegative): Same.
2542 (set_value_range_to_truthvalue): Same.
2543 (vr_values::update_value_range): Same.
2544 (vr_values::extract_range_for_var_from_comparison_expr): Same.
2545 (vr_values::extract_range_from_binary_expr): Same.
2546 (vr_values::extract_range_from_comparison): Same.
2547 (vr_values::extract_range_basic): Same.
2548 (vr_values::adjust_range_with_scev): Same.
2549 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
2550 (vr_values::extract_range_from_phi_node): Same.
2551
2552 2019-11-13 Ulrich Drepper <drepper@redhat.com>
2553
2554 * tree-dump.c (dequeue_and_dump): Print first tree operand
2555 for VIEW_CONVERT_EXPR.
2556
2557 2019-11-13 Joseph Myers <joseph@codesourcery.com>
2558
2559 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
2560 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
2561 * real.c (get_max_float): Add norm_max argument.
2562 * real.h (get_max_float): Update prototype.
2563 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
2564 get_max_float.
2565
2566 2019-11-13 Martin Liska <mliska@suse.cz>
2567
2568 * dbgcnt.c (test_sorted_dbg_counters): New.
2569 (dbgcnt_c_tests): Likewise.
2570 * selftest-run-tests.c (selftest::run_tests): Likewise.
2571 * selftest.h (dbgcnt_c_tests): Likewise.
2572
2573 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2574 Martin Jambor <mjambor@suse.cz>
2575
2576 PR ipa/92454
2577 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
2578 (identify_dead_nodes): Likewise.
2579
2580 2019-11-13 Martin Liska <mliska@suse.cz>
2581
2582 * ipa-icf.c (sem_function::equals_private): Do not overuse
2583 push/pop_cfun functions.
2584
2585 2019-11-13 Martin Liska <mliska@suse.cz>
2586
2587 * common.opt: Document change of -fdbg-cnt option.
2588 * dbgcnt.c (DEBUG_COUNTER): Remove.
2589 (dbg_cnt_is_enabled): Remove.
2590 (dbg_cnt): Work with new intervals.
2591 (dbg_cnt_set_limit_by_index): Set to new
2592 list of intervals.
2593 (dbg_cnt_set_limit_by_name): Likewise.
2594 (dbg_cnt_process_single_pair): Process new format.
2595 (dbg_cnt_process_opt): Likewise.
2596 (dbg_cnt_list_all_counters): Likewise.
2597 * doc/invoke.texi: Document change of -fdbg-cnt option.
2598 (cmp_tuples): New.
2599
2600 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2601
2602 * ipa-inline.c (ipa_inline): Check that function is defined before
2603 flattening.
2604
2605 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2606 Julian Brown <julian@codesourcery.com>
2607
2608 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
2609 flag_worker_partitioning is not set.
2610 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
2611 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
2612
2613 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
2614
2615 * config/gcn/gcn-run.c (heap_region): New global variable.
2616 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
2617 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
2618 (get_kernarg_region): Move contents to ....
2619 (get_memory_region): .... here.
2620 (get_heap_region): New function.
2621 (init_device): Initialize the heap_region.
2622 (device_malloc): Add region parameter.
2623 (struct kernargs): Move heap ....
2624 (heap): ... to global scope.
2625 (main): Allocate heap separate to kernargs.
2626
2627 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2628
2629 * ipa-prop.c (ipa_print_node_jump_functions,
2630 ipa_print_node_params): Print info about missing summaries.
2631
2632 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2633
2634 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
2635 the cost of generating loop masks.
2636
2637 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2638
2639 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
2640 New function.
2641 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
2642 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2643 (vect_transform_loop): Likewise.
2644 (vect_analyze_loop_costing): Don't take the cost of versioning
2645 into account for the static profitability threshold if it turns
2646 out that no versioning is needed.
2647
2648 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
2649
2650 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
2651 and target_option_default_node to get -fprofile-generate ctors working
2652 right with LTO.
2653
2654 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2655
2656 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
2657 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
2658 (vectorizable_assignment): Don't add a cost for nop conversions.
2659 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
2660 Likewise.
2661 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
2662
2663 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2664
2665 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
2666 number of ncopies as an additional argument.
2667 (vectorizable_conversion): Update call accordingly. Use "modifier"
2668 to check whether a conversion is between vectors with the same
2669 numbers of units.
2670
2671 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
2672
2673 * config/aarch64/aarch64-sve-builtins-functions.h
2674 (unary_count::expand): Use aarch64_sve_int_mode instead of
2675 mode_for_int_vector.
2676
2677 2019-11-13 Martin Liska <mliska@suse.cz>
2678
2679 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
2680
2681 2019-11-13 Martin Liska <mliska@suse.cz>
2682
2683 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
2684 Remove call to finalize_options_struct.
2685
2686 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
2687
2688 PR target/92055
2689 * config/avr/t-avr (avr-mcus): Do not depend on
2690 $(srcdir)/config/avr/t-multilib.
2691
2692 2019-11-13 Richard Biener <rguenther@suse.de>
2693
2694 PR tree-optimization/92473
2695 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
2696 direct optab reduction in the correct type.
2697
2698 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2699
2700 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
2701 hexadecimal literal.
2702
2703 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2704
2705 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
2706 UNORDERED if !HONOR_NANS (DFmode).
2707 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
2708 if !HONOR_NANS (<MODE>mode).
2709
2710 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
2711
2712 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
2713 (ipcp_verify_propagated_values): Likewise.
2714 (propagate_constants_across_call): Likewise.
2715 (propagate_constants_topo): Likewise.
2716 (ipcp_propagate_stage): Likewise.
2717
2718 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
2719
2720 PR ipa/92471
2721 * ipa-profile.c (check_argument_count): Break out from ...;
2722 watch for missing summaries.
2723 (ipa_profile): Here.
2724
2725 2019-11-12 Martin Sebor <msebor@redhat.com>
2726
2727 PR tree-optimization/92412
2728 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
2729 extern variables.
2730
2731 2019-11-12 Martin Sebor <msebor@redhat.com>
2732
2733 PR middle-end/83688
2734 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
2735 (directive::argno): New member.
2736 (format_result::aliases, format_result::alias_count): New data members.
2737 (format_result::append_alias): New member function.
2738 (fmtresult::dst_offset): New data member.
2739 (pass_sprintf_length::call_info::dst_origin): New data member.
2740 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
2741 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
2742 (get_origin_and_offset): Same.
2743 (format_string): Call it.
2744 (format_directive): Call append_alias and set directive argument
2745 number.
2746 (maybe_warn_overlap): New function.
2747 (pass_sprintf_length::compute_format_length): Call it.
2748 (pass_sprintf_length::handle_gimple_call): Initialize new members.
2749 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
2750
2751 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
2752
2753 PR rtl-optimization/92430
2754 * cfgcleanup.c (pass_jump_after_combine::execute): Free
2755 dominance info at the beginning.
2756
2757 2019-11-12 Richard Biener <rguenther@suse.de>
2758
2759 PR tree-optimization/92460
2760 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
2761 expression before gimplifying.
2762
2763 2019-11-12 Richard Biener <rguenther@suse.de>
2764
2765 PR tree-optimization/92461
2766 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
2767 stmt after propagation.
2768
2769 2019-11-12 Martin Liska <mliska@suse.cz>
2770
2771 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
2772 Use SET_OPTION_IF_UNSET.
2773 (ix86_option_override_internal): Likewise.
2774 * opts.c (default_options_optimization): Likewise.
2775 (finish_options): Likewise.
2776 (enable_fdo_optimizations): Likewise.
2777 (common_handle_option): Likewise.
2778
2779 2019-11-12 Martin Liska <mliska@suse.cz>
2780
2781 * common/common-target.def: Remove option_validate_param and
2782 option_default_params.
2783 * common/common-targhooks.c (default_option_validate_param):
2784 Remove.
2785 * common/common-targhooks.h (default_option_validate_param):
2786 Remove.
2787 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
2788 Remove usage of this.
2789 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
2790 (aarch64_option_validate_param): Likewise.
2791 (aarch64_option_default_params): Likewise
2792 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
2793 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2794 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
2795 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2796 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
2797 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2798 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
2799 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2800 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
2801 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
2802 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
2803 guard_size here.
2804 * doc/tm.texi: Remove option_default_params and option_validate_param.
2805 * doc/tm.texi.in: Likewise.
2806
2807 2019-11-12 Martin Liska <mliska@suse.cz>
2808
2809 * common/common-target.def:
2810 Do not mention set_default_param_value
2811 and set_param_value.
2812 * doc/tm.texi: Likewise.
2813
2814 2019-11-12 Martin Liska <mliska@suse.cz>
2815
2816 * common.opt: Remove param_values.
2817 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
2818 Remove finalize_options_struct.
2819 * gcc.c (driver::decode_argv): Do not call global_init_params
2820 and finish_params.
2821 (driver::finalize): Do not call params_c_finalize
2822 and finalize_options_struct.
2823 * opt-suggestions.c (option_proposer::get_completions): Remove
2824 special casing of params.
2825 (option_proposer::find_param_completions): Remove.
2826 (test_completion_partial_match): Update expected output.
2827 * opt-suggestions.h: Remove find_param_completions.
2828 * opts-common.c (add_misspelling_candidates): Add
2829 --param with a space.
2830 * opts.c (handle_param): Remove.
2831 (init_options_struct):. Remove init_options_struct and
2832 similar calls.
2833 (finalize_options_struct): Remove.
2834 (common_handle_option): Use SET_OPTION_IF_UNSET.
2835 * opts.h (finalize_options_struct): Remove.
2836 * toplev.c (general_init): Do not call global_init_params.
2837 (toplev::finalize): Do not call params_c_finalize and
2838 finalize_options_struct.
2839
2840 2019-11-12 Martin Liska <mliska@suse.cz>
2841
2842 * Makefile.in: Remove PARAMS_H and params.list
2843 and params.options.
2844 * params-enum.h: Remove.
2845 * params-list.h: Remove.
2846 * params-options.h: Remove.
2847 * params.c: Remove.
2848 * params.def: Remove.
2849 * params.h: Remove.
2850 * asan.c: Do not include params.h.
2851 * auto-profile.c: Likewise.
2852 * bb-reorder.c: Likewise.
2853 * builtins.c: Likewise.
2854 * cfgcleanup.c: Likewise.
2855 * cfgexpand.c: Likewise.
2856 * cfgloopanal.c: Likewise.
2857 * cgraph.c: Likewise.
2858 * combine.c: Likewise.
2859 * common/config/aarch64/aarch64-common.c: Likewise.
2860 * common/config/gcn/gcn-common.c: Likewise.
2861 * common/config/ia64/ia64-common.c: Likewise.
2862 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
2863 * common/config/rs6000/rs6000-common.c: Likewise.
2864 * common/config/sh/sh-common.c: Likewise.
2865 * config/aarch64/aarch64.c: Likewise.
2866 * config/alpha/alpha.c: Likewise.
2867 * config/arm/arm.c: Likewise.
2868 * config/avr/avr.c: Likewise.
2869 * config/csky/csky.c: Likewise.
2870 * config/i386/i386-builtins.c: Likewise.
2871 * config/i386/i386-expand.c: Likewise.
2872 * config/i386/i386-features.c: Likewise.
2873 * config/i386/i386-options.c: Likewise.
2874 * config/i386/i386.c: Likewise.
2875 * config/ia64/ia64.c: Likewise.
2876 * config/rs6000/rs6000-logue.c: Likewise.
2877 * config/rs6000/rs6000.c: Likewise.
2878 * config/s390/s390.c: Likewise.
2879 * config/sparc/sparc.c: Likewise.
2880 * config/visium/visium.c: Likewise.
2881 * coverage.c: Likewise.
2882 * cprop.c: Likewise.
2883 * cse.c: Likewise.
2884 * cselib.c: Likewise.
2885 * dse.c: Likewise.
2886 * emit-rtl.c: Likewise.
2887 * explow.c: Likewise.
2888 * final.c: Likewise.
2889 * fold-const.c: Likewise.
2890 * gcc.c: Likewise.
2891 * gcse.c: Likewise.
2892 * ggc-common.c: Likewise.
2893 * ggc-page.c: Likewise.
2894 * gimple-loop-interchange.cc: Likewise.
2895 * gimple-loop-jam.c: Likewise.
2896 * gimple-loop-versioning.cc: Likewise.
2897 * gimple-ssa-split-paths.c: Likewise.
2898 * gimple-ssa-sprintf.c: Likewise.
2899 * gimple-ssa-store-merging.c: Likewise.
2900 * gimple-ssa-strength-reduction.c: Likewise.
2901 * gimple-ssa-warn-alloca.c: Likewise.
2902 * gimple-ssa-warn-restrict.c: Likewise.
2903 * graphite-isl-ast-to-gimple.c: Likewise.
2904 * graphite-optimize-isl.c: Likewise.
2905 * graphite-scop-detection.c: Likewise.
2906 * graphite-sese-to-poly.c: Likewise.
2907 * graphite.c: Likewise.
2908 * haifa-sched.c: Likewise.
2909 * hsa-gen.c: Likewise.
2910 * ifcvt.c: Likewise.
2911 * ipa-cp.c: Likewise.
2912 * ipa-fnsummary.c: Likewise.
2913 * ipa-inline-analysis.c: Likewise.
2914 * ipa-inline.c: Likewise.
2915 * ipa-polymorphic-call.c: Likewise.
2916 * ipa-profile.c: Likewise.
2917 * ipa-prop.c: Likewise.
2918 * ipa-split.c: Likewise.
2919 * ipa-sra.c: Likewise.
2920 * ira-build.c: Likewise.
2921 * ira-conflicts.c: Likewise.
2922 * loop-doloop.c: Likewise.
2923 * loop-invariant.c: Likewise.
2924 * loop-unroll.c: Likewise.
2925 * lra-assigns.c: Likewise.
2926 * lra-constraints.c: Likewise.
2927 * modulo-sched.c: Likewise.
2928 * opt-suggestions.c: Likewise.
2929 * opts.c: Likewise.
2930 * postreload-gcse.c: Likewise.
2931 * predict.c: Likewise.
2932 * reload.c: Likewise.
2933 * reorg.c: Likewise.
2934 * resource.c: Likewise.
2935 * sanopt.c: Likewise.
2936 * sched-deps.c: Likewise.
2937 * sched-ebb.c: Likewise.
2938 * sched-rgn.c: Likewise.
2939 * sel-sched-ir.c: Likewise.
2940 * sel-sched.c: Likewise.
2941 * shrink-wrap.c: Likewise.
2942 * stmt.c: Likewise.
2943 * targhooks.c: Likewise.
2944 * toplev.c: Likewise.
2945 * tracer.c: Likewise.
2946 * trans-mem.c: Likewise.
2947 * tree-chrec.c: Likewise.
2948 * tree-data-ref.c: Likewise.
2949 * tree-if-conv.c: Likewise.
2950 * tree-inline.c: Likewise.
2951 * tree-loop-distribution.c: Likewise.
2952 * tree-parloops.c: Likewise.
2953 * tree-predcom.c: Likewise.
2954 * tree-profile.c: Likewise.
2955 * tree-scalar-evolution.c: Likewise.
2956 * tree-sra.c: Likewise.
2957 * tree-ssa-ccp.c: Likewise.
2958 * tree-ssa-dom.c: Likewise.
2959 * tree-ssa-dse.c: Likewise.
2960 * tree-ssa-ifcombine.c: Likewise.
2961 * tree-ssa-loop-ch.c: Likewise.
2962 * tree-ssa-loop-im.c: Likewise.
2963 * tree-ssa-loop-ivcanon.c: Likewise.
2964 * tree-ssa-loop-ivopts.c: Likewise.
2965 * tree-ssa-loop-manip.c: Likewise.
2966 * tree-ssa-loop-niter.c: Likewise.
2967 * tree-ssa-loop-prefetch.c: Likewise.
2968 * tree-ssa-loop-unswitch.c: Likewise.
2969 * tree-ssa-math-opts.c: Likewise.
2970 * tree-ssa-phiopt.c: Likewise.
2971 * tree-ssa-pre.c: Likewise.
2972 * tree-ssa-reassoc.c: Likewise.
2973 * tree-ssa-sccvn.c: Likewise.
2974 * tree-ssa-scopedtables.c: Likewise.
2975 * tree-ssa-sink.c: Likewise.
2976 * tree-ssa-strlen.c: Likewise.
2977 * tree-ssa-structalias.c: Likewise.
2978 * tree-ssa-tail-merge.c: Likewise.
2979 * tree-ssa-threadbackward.c: Likewise.
2980 * tree-ssa-threadedge.c: Likewise.
2981 * tree-ssa-uninit.c: Likewise.
2982 * tree-switch-conversion.c: Likewise.
2983 * tree-vect-data-refs.c: Likewise.
2984 * tree-vect-loop.c: Likewise.
2985 * tree-vect-slp.c: Likewise.
2986 * tree-vrp.c: Likewise.
2987 * tree.c: Likewise.
2988 * value-prof.c: Likewise.
2989 * var-tracking.c: Likewise.
2990
2991 2019-11-12 Martin Liska <mliska@suse.cz>
2992
2993 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
2994 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
2995 macro.
2996 (asan_sanitize_allocas_p): Likewise.
2997 (asan_emit_stack_protection): Likewise.
2998 (asan_protect_global): Likewise.
2999 (instrument_derefs): Likewise.
3000 (instrument_builtin_call): Likewise.
3001 (asan_expand_mark_ifn): Likewise.
3002 * auto-profile.c (auto_profile): Likewise.
3003 * bb-reorder.c (copy_bb_p): Likewise.
3004 (duplicate_computed_gotos): Likewise.
3005 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3006 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3007 (try_crossjump_bb): Likewise.
3008 * cfgexpand.c (defer_stack_allocation): Likewise.
3009 (stack_protect_classify_type): Likewise.
3010 (pass_expand::execute): Likewise.
3011 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3012 (estimate_reg_pressure_cost): Likewise.
3013 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3014 * combine.c (combine_instructions): Likewise.
3015 (record_value_for_reg): Likewise.
3016 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3017 (aarch64_option_default_params): Likewise.
3018 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3019 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3020 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3021 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3022 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3023 (aarch64_allocate_and_probe_stack_space): Likewise.
3024 (aarch64_expand_epilogue): Likewise.
3025 (aarch64_override_options_internal): Likewise.
3026 * config/alpha/alpha.c (alpha_option_override): Likewise.
3027 * config/arm/arm.c (arm_option_override): Likewise.
3028 (arm_valid_target_attribute_p): Likewise.
3029 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3030 * config/i386/i386.c (get_probe_interval): Likewise.
3031 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3032 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3033 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3034 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3035 (get_stack_clash_protection_guard_size): Likewise.
3036 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3037 * config/s390/s390.c (allocate_stack_space): Likewise.
3038 (s390_emit_prologue): Likewise.
3039 (s390_option_override_internal): Likewise.
3040 * config/sparc/sparc.c (sparc_option_override): Likewise.
3041 * config/visium/visium.c (visium_option_override): Likewise.
3042 * coverage.c (get_coverage_counts): Likewise.
3043 (coverage_compute_profile_id): Likewise.
3044 (coverage_begin_function): Likewise.
3045 (coverage_end_function): Likewise.
3046 * cse.c (cse_find_path): Likewise.
3047 (cse_extended_basic_block): Likewise.
3048 (cse_main): Likewise.
3049 * cselib.c (cselib_invalidate_mem): Likewise.
3050 * dse.c (dse_step1): Likewise.
3051 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3052 (get_max_insn_count): Likewise.
3053 (make_debug_insn_raw): Likewise.
3054 (init_emit): Likewise.
3055 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3056 * final.c (compute_alignments): Likewise.
3057 * fold-const.c (fold_range_test): Likewise.
3058 (fold_truth_andor): Likewise.
3059 (tree_single_nonnegative_warnv_p): Likewise.
3060 (integer_valued_real_single_p): Likewise.
3061 * gcse.c (want_to_gcse_p): Likewise.
3062 (prune_insertions_deletions): Likewise.
3063 (hoist_code): Likewise.
3064 (gcse_or_cprop_is_too_expensive): Likewise.
3065 * ggc-common.c: Likewise.
3066 * ggc-page.c (ggc_collect): Likewise.
3067 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3068 (MAX_DATAREFS): Likewise.
3069 (OUTER_STRIDE_RATIO): Likewise.
3070 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3071 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3072 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3073 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3074 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3075 (imm_store_chain_info::output_merged_store): Likewise.
3076 (pass_store_merging::process_store): Likewise.
3077 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3078 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3079 (scop_to_isl_ast): Likewise.
3080 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3081 (optimize_isl): Likewise.
3082 * graphite-scop-detection.c (build_scops): Likewise.
3083 * haifa-sched.c (set_modulo_params): Likewise.
3084 (rank_for_schedule): Likewise.
3085 (model_add_to_worklist): Likewise.
3086 (model_promote_insn): Likewise.
3087 (model_choose_insn): Likewise.
3088 (queue_to_ready): Likewise.
3089 (autopref_multipass_dfa_lookahead_guard): Likewise.
3090 (schedule_block): Likewise.
3091 (sched_init): Likewise.
3092 * hsa-gen.c (init_prologue): Likewise.
3093 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3094 (cond_move_process_if_block): Likewise.
3095 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3096 (merge_agg_lats_step): Likewise.
3097 (devirtualization_time_bonus): Likewise.
3098 (hint_time_bonus): Likewise.
3099 (incorporate_penalties): Likewise.
3100 (good_cloning_opportunity_p): Likewise.
3101 (ipcp_propagate_stage): Likewise.
3102 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3103 (set_switch_stmt_execution_predicate): Likewise.
3104 (analyze_function_body): Likewise.
3105 (compute_fn_summary): Likewise.
3106 * ipa-inline-analysis.c (estimate_growth): Likewise.
3107 * ipa-inline.c (caller_growth_limits): Likewise.
3108 (inline_insns_single): Likewise.
3109 (inline_insns_auto): Likewise.
3110 (can_inline_edge_by_limits_p): Likewise.
3111 (want_early_inline_function_p): Likewise.
3112 (big_speedup_p): Likewise.
3113 (want_inline_small_function_p): Likewise.
3114 (want_inline_self_recursive_call_p): Likewise.
3115 (edge_badness): Likewise.
3116 (recursive_inlining): Likewise.
3117 (compute_max_insns): Likewise.
3118 (early_inliner): Likewise.
3119 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3120 * ipa-profile.c (ipa_profile): Likewise.
3121 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3122 (ipa_analyze_node): Likewise.
3123 (ipcp_transform_function): Likewise.
3124 * ipa-split.c (consider_split): Likewise.
3125 * ipa-sra.c (allocate_access): Likewise.
3126 (process_scan_results): Likewise.
3127 (ipa_sra_summarize_function): Likewise.
3128 (pull_accesses_from_callee): Likewise.
3129 * ira-build.c (loop_compare_func): Likewise.
3130 (mark_loops_for_removal): Likewise.
3131 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3132 * loop-doloop.c (doloop_optimize): Likewise.
3133 * loop-invariant.c (gain_for_invariant): Likewise.
3134 (move_loop_invariants): Likewise.
3135 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3136 (decide_unroll_runtime_iterations): Likewise.
3137 (decide_unroll_stupid): Likewise.
3138 (expand_var_during_unrolling): Likewise.
3139 * lra-assigns.c (spill_for): Likewise.
3140 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3141 * modulo-sched.c (sms_schedule): Likewise.
3142 (DFA_HISTORY): Likewise.
3143 * opts.c (default_options_optimization): Likewise.
3144 (finish_options): Likewise.
3145 (common_handle_option): Likewise.
3146 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3147 (if): Likewise.
3148 * predict.c (get_hot_bb_threshold): Likewise.
3149 (maybe_hot_count_p): Likewise.
3150 (probably_never_executed): Likewise.
3151 (predictable_edge_p): Likewise.
3152 (predict_loops): Likewise.
3153 (expr_expected_value_1): Likewise.
3154 (tree_predict_by_opcode): Likewise.
3155 (handle_missing_profiles): Likewise.
3156 * reload.c (find_equiv_reg): Likewise.
3157 * reorg.c (redundant_insn): Likewise.
3158 * resource.c (mark_target_live_regs): Likewise.
3159 (incr_ticks_for_insn): Likewise.
3160 * sanopt.c (pass_sanopt::execute): Likewise.
3161 * sched-deps.c (sched_analyze_1): Likewise.
3162 (sched_analyze_2): Likewise.
3163 (sched_analyze_insn): Likewise.
3164 (deps_analyze_insn): Likewise.
3165 * sched-ebb.c (schedule_ebbs): Likewise.
3166 * sched-rgn.c (find_single_block_region): Likewise.
3167 (too_large): Likewise.
3168 (haifa_find_rgns): Likewise.
3169 (extend_rgns): Likewise.
3170 (new_ready): Likewise.
3171 (schedule_region): Likewise.
3172 (sched_rgn_init): Likewise.
3173 * sel-sched-ir.c (make_region_from_loop): Likewise.
3174 * sel-sched-ir.h (MAX_WS): Likewise.
3175 * sel-sched.c (process_pipelined_exprs): Likewise.
3176 (sel_setup_region_sched_flags): Likewise.
3177 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3178 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3179 * toplev.c (print_version): Likewise.
3180 (process_options): Likewise.
3181 * tracer.c (tail_duplicate): Likewise.
3182 * trans-mem.c (tm_log_add): Likewise.
3183 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3184 * tree-data-ref.c (split_constant_offset): Likewise.
3185 (compute_all_dependences): Likewise.
3186 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3187 * tree-inline.c (remap_gimple_stmt): Likewise.
3188 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3189 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3190 (create_parallel_loop): Likewise.
3191 * tree-predcom.c (determine_unroll_factor): Likewise.
3192 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3193 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3194 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3195 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3196 (dse_optimize_redundant_stores): Likewise.
3197 (dse_classify_store): Likewise.
3198 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3199 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3200 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3201 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3202 (try_peel_loop): Likewise.
3203 (tree_unroll_loops_completely): Likewise.
3204 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3205 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3206 (MAX_CONSIDERED_GROUPS): Likewise.
3207 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3208 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3209 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3210 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3211 (L1_CACHE_SIZE_BYTES): Likewise.
3212 (L2_CACHE_SIZE_BYTES): Likewise.
3213 (should_issue_prefetch_p): Likewise.
3214 (schedule_prefetches): Likewise.
3215 (determine_unroll_factor): Likewise.
3216 (volume_of_references): Likewise.
3217 (add_subscript_strides): Likewise.
3218 (self_reuse_distance): Likewise.
3219 (mem_ref_count_reasonable_p): Likewise.
3220 (insn_to_prefetch_ratio_too_small_p): Likewise.
3221 (loop_prefetch_arrays): Likewise.
3222 (tree_ssa_prefetch_arrays): Likewise.
3223 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3224 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3225 (convert_mult_to_fma): Likewise.
3226 (math_opts_dom_walker::after_dom_children): Likewise.
3227 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3228 (hoist_adjacent_loads): Likewise.
3229 (gate_hoist_loads): Likewise.
3230 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3231 (compute_partial_antic_aux): Likewise.
3232 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3233 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3234 (vn_reference_lookup): Likewise.
3235 (do_rpo_vn): Likewise.
3236 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3237 * tree-ssa-sink.c (select_best_block): Likewise.
3238 * tree-ssa-strlen.c (new_stridx): Likewise.
3239 (new_addr_stridx): Likewise.
3240 (get_range_strlen_dynamic): Likewise.
3241 (class ssa_name_limit_t): Likewise.
3242 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3243 (create_variable_info_for_1): Likewise.
3244 (init_alias_vars): Likewise.
3245 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3246 (tail_merge_optimize): Likewise.
3247 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3248 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3249 (thread_jumps::find_jump_threads_backwards): Likewise.
3250 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3251 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3252 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3253 (jump_table_cluster::can_be_handled): Likewise.
3254 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3255 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3256 (param_switch_conversion_branch_ratio): Likewise.
3257 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3258 (vect_enhance_data_refs_alignment): Likewise.
3259 (vect_prune_runtime_alias_test_list): Likewise.
3260 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3261 (vect_get_datarefs_in_loop): Likewise.
3262 (vect_analyze_loop): Likewise.
3263 * tree-vect-slp.c (vect_slp_bb): Likewise.
3264 * tree-vectorizer.h: Likewise.
3265 * tree-vrp.c (find_switch_asserts): Likewise.
3266 (vrp_prop::check_mem_ref): Likewise.
3267 * tree.c (wide_int_to_tree_1): Likewise.
3268 (cache_integer_cst): Likewise.
3269 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3270 (reverse_op): Likewise.
3271 (vt_find_locations): Likewise.
3272
3273 2019-11-12 Martin Liska <mliska@suse.cz>
3274
3275 * Makefile.in: Include params.opt.
3276 * flag-types.h (enum parloops_schedule_type): Add
3277 parloops_schedule_type used in params.opt.
3278 * params.opt: New file.
3279
3280 2019-11-12 Martin Liska <mliska@suse.cz>
3281
3282 * common.opt: Remove --param and --param= options.
3283 * opt-functions.awk: Mark CL_PARAMS for options
3284 that have Param keyword.
3285 * opts-common.c (decode_cmdline_options_to_array):
3286 Replace --param key=value with --param=key=value.
3287 * opts.c (print_filtered_help): Remove special
3288 printing of params.
3289 (print_specific_help): Update title for params.
3290 (common_handle_option): Do not handle OPT__param.
3291 opts.h (SET_OPTION_IF_UNSET): New macro.
3292 * doc/options.texi: Document Param keyword.
3293
3294 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
3295 Frederik Harwath <frederik@codesourcery.com>
3296 Thomas Schwinge <thomas@codesourcery.com>
3297
3298 gcc/
3299 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
3300 enumeration constant.
3301 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3302 (is_gimple_omp_offloaded): Likewise.
3303 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
3304 constant. Adjust the value of ORT_NONE accordingly.
3305 (is_gimple_stmt): Handle OACC_SERIAL.
3306 (oacc_default_clause): Handle ORT_ACC_SERIAL.
3307 (gomp_needs_data_present): Likewise.
3308 (gimplify_adjust_omp_clauses): Likewise.
3309 (gimplify_omp_workshare): Handle OACC_SERIAL.
3310 (gimplify_expr): Likewise.
3311 * omp-expand.c (expand_omp_target):
3312 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3313 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
3314 * omp-low.c (is_oacc_parallel): Rename function to...
3315 (is_oacc_parallel_or_serial): ... this.
3316 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
3317 (scan_sharing_clauses): Adjust accordingly.
3318 (scan_omp_for): Likewise.
3319 (lower_oacc_head_mark): Likewise.
3320 (convert_from_firstprivate_int): Likewise.
3321 (lower_omp_target): Likewise.
3322 (check_omp_nesting_restrictions): Handle
3323 GF_OMP_TARGET_KIND_OACC_SERIAL.
3324 (lower_oacc_reductions): Likewise.
3325 (lower_omp_target): Likewise.
3326 * tree.def (OACC_SERIAL): New tree code.
3327 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
3328
3329 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
3330
3331 2019-11-12 Jakub Jelinek <jakub@redhat.com>
3332
3333 PR target/92449
3334 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
3335 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
3336
3337 PR tree-optimization/92452
3338 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
3339 into NULL_TREE, set up_bound to NULL_TREE instead of computing
3340 MINUS_EXPR on it.
3341
3342 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
3343
3344 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
3345 safelen with 0.
3346
3347 2019-11-12 Alan Modra <amodra@gmail.com>
3348
3349 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
3350 element of unspec vec.
3351 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
3352 PC-relative TLS.
3353 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
3354 (tls_gd_pcrel, tls_ld_pcrel): New insns.
3355 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
3356 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
3357
3358 2019-11-12 Alan Modra <amodra@gmail.com>
3359
3360 * config/rs6000/rs6000.opt (mtls-markers): Delete.
3361 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
3362 (IS_NOMARK_TLSGETADDR): Likewise.
3363 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
3364 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
3365 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
3366 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
3367 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
3368 (rs6000_indirect_call_template_1): Likewise.
3369 (rs6000_pltseq_template): Likewise.
3370 (rs6000_opt_vars): Remove "tls-markers" entry.
3371 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
3372 with TARGET_ELF.
3373 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
3374 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
3375 (pltseq_plt_pcrel<mode>): Likewise.
3376 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
3377 (call_value_local64): Likewise.
3378 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
3379 output and length attribute sub-expression.
3380 (call_value_nonlocal_sysv<mode>),
3381 (call_value_nonlocal_sysv_secure<mode>),
3382 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
3383 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
3384 (call_value_indirect_pcrel<mode>): Likewise.
3385 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
3386 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
3387 * configure: Regenerate.
3388 * config.in: Regenerate.
3389
3390 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
3391
3392 * config/rs6000/predicates.md (prefixed_memory): New predicate.
3393 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
3394 address being a prefixed load/store.
3395 (stack_protect_testdi): Deal with either address being a prefixed
3396 load.
3397
3398 2019-11-11 Jakub Jelinek <jakub@redhat.com>
3399
3400 PR bootstrap/92433
3401 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
3402 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
3403 std::swap.
3404
3405 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
3406
3407 PR tree-optimization/92420
3408 * tree-vect-stmts.c (get_negative_load_store_type): Move further
3409 up file.
3410 (get_group_load_store_type): Use it for reversed SLP accesses.
3411
3412 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
3413
3414 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
3415 summary.
3416 (ipcp_transformation_t::duplicate): Break out from ...
3417 (ipa_node_params_t::duplicate): ... here; add copying of agg
3418 replacements.
3419 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
3420 (ipcp_transformation_t): Add duplicate.
3421
3422 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
3423
3424 PR fortran/91828
3425 * doc/install.texi: Document that the minimum MPFR version is
3426 3.1.0.
3427
3428 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3429
3430 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
3431 use new register constraint letters.
3432
3433 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
3434
3435 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
3436 as well, if interesting recover the symbol and re-legitimize the
3437 pic address.
3438
3439 2019-11-11 Martin Liska <mliska@suse.cz>
3440
3441 * dbgcnt.def (DEBUG_COUNTER): Sort counters
3442 alphabetically.
3443
3444 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
3445
3446 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
3447 account when checking if there are enough iterations to vectorize
3448 epilogue.
3449
3450 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
3451 Kwok Cheung Yeung <kcy@codesourcery.com>
3452
3453 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
3454 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
3455 (LANG_HOOKS_DECLS): Rename also here.
3456 * langhooks.h (lang_hooks_for_decls): Rename
3457 omp_is_optional_argument to omp_check_optional_argument; take
3458 additional bool argument.
3459 * omp-general.h (omp_check_optional_argument): Likewise.
3460 * omp-general.h (omp_check_optional_argument): Likewise.
3461 * omp-low.c (lower_omp_target): Update calls; handle absent
3462 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
3463
3464 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
3465
3466 PR target/87833
3467 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
3468 -fPIC and -shared the last to create offload image.
3469
3470 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
3471
3472 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
3473 of 'offset'.
3474
3475 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
3476 (config.status): Use/depend on it.
3477 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
3478 * configure: Regenerate.
3479
3480 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
3481
3482 PR tree-optimization/88760
3483 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
3484 * gcc/common/config/rs6000/rs6000-common.c
3485 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
3486 Turn on -funroll-loops and -munroll-only-small-loops.
3487 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
3488 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3489 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
3490 Turn off -munroll-only-small-loops for explicit -funroll-loops.
3491 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
3492 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
3493
3494 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
3495
3496 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3497 Make scalar_load, vector_load, unaligned_load and
3498 vector_gather_load cost more to conform hardware latency and
3499 insn cost settings.
3500
3501 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
3502
3503 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
3504 (MACHO_SYMBOL_LINKER_VIS_P): New.
3505
3506 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
3507
3508 * lra-spills.c (assign_spill_hard_regs): Do not spill into
3509 registers in eliminable_regset.
3510
3511 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3512
3513 * ipa-inline.c (compute_uninlined_call_time,
3514 compute_inlined_call_time): Take edge frequency as
3515 parameter rather than computing it by itself.
3516 (big_speedup_p, edge_badness): Manually CSE sreal
3517 frequency calculations.
3518
3519 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3520
3521 * profile-count.c (profile_count::to_sreal_scale): Short circuit
3522 case where profiles are same.
3523
3524 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3525
3526 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
3527
3528 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
3529
3530 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
3531 args summaries of inlined edge unless it holds info about
3532 described reference.
3533
3534 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
3535
3536 * config/rs6000/rs6000.md (CC_any): New mode iterator.
3537 (*movcc_internal1): Rename to...
3538 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
3539
3540 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3541
3542 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
3543 (cgraph_node::create_virtual_clone): Copy it.
3544 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
3545 summaries.
3546 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
3547 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
3548 is disabled.
3549 (propagate_constants_across_call): If callee is not analyzed, give up.
3550 (propagate_constants_topo): Lower to bottom latties of all callees of
3551 functions with ipa-cp disabled.
3552 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
3553 (cgraph_edge_brings_value_p): Check for availability first.
3554 (create_specialized_node): Set ipcp_clone.
3555 (ipcp_store_bits_results): Check that info is present.
3556 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
3557 thunks.
3558 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
3559 conservative when callee summary is missing.
3560 (remap_edge_summaries): Lookup call summary only when needed.
3561 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
3562 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
3563 Use get_create.
3564 (ipa_analyze_node): Use get_create.
3565 (propagate_controlled_uses): Do not propagate when function is not
3566 analyzed.
3567 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
3568 (ipa_read_node_info): Use get_create.
3569 * ipa-prop.h (IPA_NODE_REF): Use get.
3570 (IPA_NODE_REF_GET_CREATE): New.
3571
3572 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3573
3574 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
3575 on function symbol.
3576
3577 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3578
3579 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
3580 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3581 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
3582 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
3583
3584 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3585
3586 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
3587 capping the growth cumulated.
3588 (offline_size): Break out from ...
3589 (estimate_growth): ... here.
3590 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
3591 parameters.
3592 (growth_likely_positive): Turn to ...
3593 (growth_positive_p): Re-implement.
3594 * ipa-inline.h (growth_likely_positive): Remove.
3595 (growth_positive_p): Declare.
3596 * ipa-inline.c (want_inline_small_function_p): Use
3597 growth_positive_p.
3598 (want_inline_function_to_all_callers_p): Likewise.
3599
3600 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3601
3602 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
3603 calculation of min_size.
3604 (ipa_update_overall_fn_summary): Likewise.
3605
3606 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
3607
3608 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
3609 estimate_edge_devirt_benefit when not computing hints;
3610 do not compute time when not asked for.
3611 (estimate_calls_size_and_time): Pass NULL hints and time when
3612 these are not computed; do not evaluate hint predicates when these are
3613 not computed.
3614 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
3615 frequency.
3616
3617 2019-11-09 Jakub Jelinek <jakub@redhat.com>
3618
3619 PR tree-optimization/92401
3620 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
3621 if res_op->code is an expression with code length 1.
3622 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
3623 if res_op->code is an expression with code length 2.
3624 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
3625 if res_op->code is an expression with code length 3.
3626
3627 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
3628
3629 * config/darwin.c (machopic_mcount_stub_name): Validate the
3630 symbol stub name when it is created.
3631 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
3632 stub validation.
3633
3634 2019-11-09 Jakub Jelinek <jakub@redhat.com>
3635
3636 * symtab.c: Fix comment typos.
3637 * cgraphunit.c: Likewise.
3638 * cgraph.h: Likewise.
3639 * cgraphclones.c: Likewise.
3640 * cgraph.c: Likewise.
3641 * varpool.c: Likewise.
3642 * tree-ssa-strlen.c: Likewise.
3643 * ipa-sra.c: Likewise.
3644 (scan_expr_access, check_all_callers_for_issues): Fix typo
3645 in a dump message.
3646
3647 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
3648
3649 * config/darwin-protos.h: Add include quard.
3650
3651 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
3652
3653 * range-op.h (range_operator::fold_range): Return result in a
3654 reference parameter instead of by value.
3655 (range_operator::wi_fold): Same.
3656 * range-op.cc (range_operator::wi_fold): Return result in a reference
3657 parameter instead of by value.
3658 (range_operator::fold_range): Same.
3659 (value_range_from_overflowed_bounds): Same.
3660 (value_range_with_overflow): Same
3661 (create_possibly_reversed_range): Same.
3662 (operator_equal::fold_range): Same.
3663 (operator_not_equal::fold_range): Same.
3664 (operator_lt::fold_range): Same.
3665 (operator_le::fold_range): Same.
3666 (operator_gt::fold_range): Same.
3667 (operator_ge::fold_range): Same.
3668 (operator_plus::wi_fold): Same.
3669 (operator_plus::op1_range): Change call to fold_range.
3670 (operator_plus::op2_range): Change call to fold_range.
3671 (operator_minus::wi_fold): Return result via reference parameter.
3672 (operator_minus::op1_range): Change call to fold_range.
3673 (operator_minus::op2_range): Change call to fold_range.
3674 (operator_min::wi_fold): Return result via reference parameter.
3675 (operator_max::wi_fold): Same.
3676 (cross_product_operator::wi_cross_product): Same.
3677 (operator_mult::wi_fold): Same.
3678 (operator_div::wi_fold): Same.
3679 (operator_div op_floor_div): Fix whitespace.
3680 (operator_exact_divide::op1_range): Change call to fold_range.
3681 (operator_lshift::fold_range): Return result via reference parameter.
3682 (operator_lshift::wi_fold): Same.
3683 (operator_rshift::fold_range): Same.
3684 (operator_rshift::wi_fold): Same.
3685 (operator_cast::fold_range): Same.
3686 (operator_cast::op1_range): Change calls to fold_range.
3687 (operator_logical_and::fold_range): Return result via reference.
3688 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
3689 (operator_bitwise_and::wi_fold): Return result via reference.
3690 (operator_logical_or::fold_range): Same.
3691 (operator_bitwise_or::wi_fold): Same.
3692 (operator_bitwise_xor::wi_fold): Same.
3693 (operator_trunc_mod::wi_fold): Same.
3694 (operator_logical_not::fold_range): Same.
3695 (operator_bitwise_not::fold_range): Same.
3696 (operator_bitwise_not::op1_range): Change call to fold_range.
3697 (operator_cst::fold_range): Return result via reference.
3698 (operator_identity::fold_range): Same.
3699 (operator_abs::wi_fold): Same.
3700 (operator_absu::wi_fold): Same.
3701 (operator_negate::fold_range): Same.
3702 (operator_negate::op1_range): Change call to fold_range.
3703 (operator_addr_expr::fold_range): Return result via reference.
3704 (operator_addr_expr::op1_range): Change call to fold_range.
3705 (operator_pointer_plus::wi_fold): Return result via reference.
3706 (operator_pointer_min_max::wi_fold): Same.
3707 (operator_pointer_and::wi_fold): Same.
3708 (operator_pointer_or::wi_fold): Same.
3709 (range_op_handler): Change call to fold_range.
3710 (range_cast): Same.
3711 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
3712 fold_range.
3713 (range_fold_unary_symbolics_p): Same.
3714 (range_fold_binary_expr): Same.
3715 (range_fold_unary_expr): Same.
3716
3717 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3718
3719 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
3720 vector type as an argument rather than reading it from the
3721 stmt_vec_info.
3722 (vect_create_epilog_for_reduction): Update accordingly.
3723 (vectorizable_reduction): Likewise.
3724 (vect_transform_cycle_phi): Likewise.
3725
3726 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
3727
3728 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
3729 the comparison codes that make sense for the mode used, and only the
3730 codes that can be done with a single branch instruction.
3731
3732 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3733
3734 PR tree-optimization/92351
3735 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
3736 peeling the main loop for alignment, make sure to set the misalignment
3737 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
3738
3739 2019-11-08 Richard Biener <rguenther@suse.de>
3740
3741 * dbgcnt.def (ivopts_loop): Add.
3742 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
3743 ivopts_loop before optimizing a loop.
3744
3745 2019-11-08 Richard Biener <rguenther@suse.de>
3746
3747 PR ipa/92409
3748 * tree-inline.c (declare_return_variable): Properly handle
3749 type mismatches for the return slot.
3750
3751 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
3752
3753 PR target/92095
3754 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
3755 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
3756 change.
3757 (got_helper_needed): New static variable.
3758 (output_load_pcrel_sym): New function.
3759 (get_pc_thunk_name): Remove after inlining...
3760 (load_got_register): ...here. Rework the initialization of the GOT
3761 register and of the GOT helper.
3762 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
3763 (sparc_file_end): Test got_helper_needed to decide whether the GOT
3764 helper must be emitted. Use output_asm_insn instead of fprintf.
3765 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
3766 if optimization is enabled.
3767 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
3768 by calling output_load_pcrel_sym.
3769
3770 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3771
3772 * tree-sra.c (create_access): Delay disqualifying the base
3773 for poly_int values until we know we have a base.
3774
3775 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3776
3777 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
3778 for loops with SIMDUID set. Enable epilogue vectorization for loops
3779 with SIMDLEN set after finding a main loop with a VF that matches it.
3780
3781 2019-11-08 Jakub Jelinek <jakub@redhat.com>
3782
3783 PR target/92038
3784 * gimple-ssa-store-merging.c (find_constituent_stores): For return
3785 value only, return non-NULL if there is a single non-clobber
3786 constituent store even if there are constituent clobbers and return
3787 one of clobber constituent stores if all constituent stores are
3788 clobbers.
3789 (split_group): Handle clobbers.
3790 (imm_store_chain_info::output_merged_store): When computing
3791 bzero_first, look after all clobbers at the start. Don't count
3792 clobber stmts in orig_num_stmts, except if the first orig store is
3793 a clobber covering the whole area and split_stores cover the whole
3794 area, consider equal number of stmts ok. Punt if split_stores
3795 contains only ->orig stores and their number plus number of original
3796 clobbers is equal to original number of stmts. For ->orig, look past
3797 clobbers in the constituent stores.
3798 (imm_store_chain_info::output_merged_stores): Don't remove clobber
3799 stmts.
3800 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
3801 rhs.
3802 (store_valid_for_store_merging_p): Allow clobber stmts.
3803 (verify_clear_bit_region_be): Fix up a thinko in function comment.
3804
3805 PR c++/92384
3806 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
3807 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
3808 slot.
3809 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
3810 force creation of a unique data.stack_parm slot.
3811
3812 2019-11-08 Richard Biener <rguenther@suse.de>
3813
3814 * genmatch.c (expr::gen_transform): Use the resimplify
3815 member function instead of hard-coding the gimple_resimplifyN variant.
3816 (dt_simplify::gen_1): Likewise.
3817
3818 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3819
3820 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
3821 POLY_INT_CST.
3822
3823 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3824
3825 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
3826 instead of INTEGER_CST.
3827
3828 2019-11-08 Richard Biener <rguenther@suse.de>
3829
3830 PR tree-optimization/92324
3831 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
3832 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
3833 sign-conversions as necessary.
3834 (vectorizable_reduction): Reject conversions in the chain
3835 that are not sign-conversions, base analysis on a non-converting
3836 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
3837 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
3838 for debug stmts.
3839 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
3840 (STMT_VINFO_REDUC_VECTYPE): Likewise.
3841
3842 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
3843
3844 PR target/92055
3845 * config/avr/avr.opt (-mdouble=, -mlong-double=):
3846 Fix a missing '-' when displaying these options in the
3847 help screen.
3848
3849 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3850
3851 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
3852
3853 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3854
3855 * config/aarch64/aarch64-builtins.c
3856 (aarch64_builtin_vectorized_function): Remove bswap handling.
3857
3858 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3859
3860 * tree-core.h (tree_type_common::indivisible_p): New member variable.
3861 * tree.h (TYPE_INDIVISIBLE_P): New macro.
3862 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3863 Treat the vector types as indivisible.
3864
3865 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
3866
3867 * optabs.def (gather_load_optab, mask_gather_load_optab)
3868 (scatter_store_optab, mask_scatter_store_optab): Turn into
3869 conversion optabs, with the offset mode given explicitly.
3870 * doc/md.texi: Update accordingly.
3871 * config/aarch64/aarch64-sve-builtins-base.cc
3872 (svld1_gather_impl::expand): Likewise.
3873 (svst1_scatter_impl::expand): Likewise.
3874 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
3875 (expand_scatter_store_optab_fn): Likewise.
3876 (direct_gather_load_optab_supported_p): Likewise.
3877 (direct_scatter_store_optab_supported_p): Likewise.
3878 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
3879 to be argument 4.
3880 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
3881 (internal_gather_scatter_fn_supported_p): Replace the offset sign
3882 argument with the offset vector type. Require the two vector
3883 types to have the same number of elements but allow their element
3884 sizes to be different. Treat the optabs as conversion optabs.
3885 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
3886 prototype accordingly.
3887 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
3888 (supports_vec_convert_optab_p): ...this new function.
3889 (supports_vec_gather_load_p): Update accordingly.
3890 (supports_vec_scatter_store_p): Likewise.
3891 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
3892 Replace the offset sign and bits parameters with a scalar type tree.
3893 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
3894 Pass back the offset vector type instead of the scalar element type.
3895 Allow the offset to be wider than the memory elements. Search for
3896 an offset type that the target supports, stopping once we've
3897 reached the maximum of the element size and pointer size.
3898 Update call to internal_gather_scatter_fn_supported_p.
3899 (vect_check_gather_scatter): Update calls accordingly.
3900 When testing a new scale before knowing the final offset type,
3901 check whether the scale is supported for any signed or unsigned
3902 offset type. Check whether the target supports the source and
3903 target types of a conversion before deciding whether to look
3904 through the conversion. Record the chosen offset_vectype.
3905 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
3906 (vect_recog_gather_scatter_pattern): Get the scalar offset type
3907 directly from the gs_info's offset_vectype instead. Pass a zero
3908 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
3909 * tree-vect-stmts.c (check_load_store_masking): Update call to
3910 internal_gather_scatter_fn_supported_p, passing the offset vector
3911 type recorded in the gs_info.
3912 (vect_truncate_gather_scatter_offset): Update call to
3913 vect_check_gather_scatter, leaving it to search for a valid
3914 offset vector type.
3915 (vect_use_strided_gather_scatters_p): Convert the offset to the
3916 element type of the gs_info's offset_vectype.
3917 (vect_get_gather_scatter_ops): Get the offset vector type directly
3918 from the gs_info.
3919 (vect_get_strided_load_store_ops): Likewise.
3920 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
3921 and IFN_MASK_GATHER_LOAD.
3922 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
3923 (gather_load<mode><v_int_equiv>): ...this.
3924 (mask_gather_load<mode>): Rename to...
3925 (mask_gather_load<mode><v_int_equiv>): ...this.
3926 (scatter_store<mode>): Rename to...
3927 (scatter_store<mode><v_int_equiv>): ...this.
3928 (mask_scatter_store<mode>): Rename to...
3929 (mask_scatter_store<mode><v_int_equiv>): ...this.
3930
3931 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
3932
3933 PR target/92132
3934 * config/rs6000/predicates.md
3935 (signed_or_equality_comparison_operator): New predicate.
3936 (unsigned_or_equality_comparison_operator): Likewise.
3937 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
3938 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
3939 * config/rs6000/vector.md
3940 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
3941 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
3942 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
3943 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
3944 vector modes and same-size integer vector modes.
3945 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
3946 (vector_lt<mode> for VEC_F): New expand.
3947 (vector_le<mode> for VEC_F): Likewise.
3948 (vector_ne<mode> for VEC_F): Likewise.
3949 (vector_unge<mode> for VEC_F): Likewise.
3950 (vector_ungt<mode> for VEC_F): Likewise.
3951 (vector_unle<mode> for VEC_F): Likewise.
3952 (vector_unlt<mode> for VEC_F): Likewise.
3953 (vector_uneq<mode>): Expose name.
3954 (vector_ltgt<mode>): Likewise.
3955 (vector_unordered<mode>): Likewise.
3956 (vector_ordered<mode>): Likewise.
3957
3958 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
3959
3960 PR target/92295
3961 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
3962 Enhance ix86_expand_vector_init_concat.
3963
3964 2019-11-08 Joseph Myers <joseph@codesourcery.com>
3965
3966 * doc/invoke.texi (-Wold-style-definition): Document () not being
3967 considered an old-style definition for C2x.
3968
3969 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
3970
3971 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
3972 Enhance comment.
3973 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
3974 insn patterns using ldcw instruction.
3975 (memory_barrier): Remove insn pattern using sync instruction.
3976 * config/pa/pa.opt (coherent-ldcw): New option.
3977 (ordered): New option.
3978
3979 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3980
3981 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
3982 valid conditions.
3983
3984 2019-11-07 Jakub Jelinek <jakub@redhat.com>
3985
3986 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
3987 typo - mistmatch -> mismatch.
3988 * ipa-profile.c (ipa_profile): Likewise.
3989 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
3990 - mistmatch -> mismatch.
3991
3992 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3993
3994 * simplify-rtx.c (comparison_to_mask): New function.
3995 (mask_to_comparison): New function.
3996 (simplify_logical_relational_operation): New function.
3997 (simplify_binary_operation_1): Call
3998 simplify_logical_relational_operation.
3999
4000 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4001
4002 PR other/92090
4003 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4004 modes for integer constants.
4005
4006 2019-11-07 Jan Hubicka <jh@suse.cz>
4007
4008 PR ipa/92406
4009 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4010 summary.
4011
4012 2019-11-07 Jan Hubicka <jh@suse.cz>
4013
4014 * optc-save-gen.awk: Generate cl_target_option_free
4015 and cl_optimization_option_free.
4016 * opth-en.awk: Declare cl_target_option_free
4017 and cl_optimization_option_free.
4018 * tree.c (free_node): Use it.
4019
4020 2019-11-06 Jan Hubicka <jh@suse.cz>
4021
4022 * lto-streamer-in.c: Include alloc-pool.h.
4023 (freeing_string_slot_hasher): Remove.
4024 (string_slot_allocator): New object allocator.
4025 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4026 (file_name_obstack): New obstack.
4027 (canon_file_name): Allocate in obstack and allocator.
4028 (lto_reader_init): Initialize obstack and allocator.
4029 (lto_free_file_name_hash): New function.
4030 * lto-streamer.h (lto_free_file_name_hash): New.
4031
4032 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4033
4034 PR tree-optimization/89134
4035 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4036 * params.def: Add min-loop-cond-split-prob.
4037 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4038 outside checks on loop into the function.
4039 (split_info): New class.
4040 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4041 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4042 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4043 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4044 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4045 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4046 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4047 (split_loop_on_cond): Likewise.
4048 (tree_ssa_split_loops): Add loop split on conditional statement.
4049
4050 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4051
4052 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4053 pattern.
4054
4055 2019-11-07 Richard Biener <rguenther@suse.de>
4056
4057 PR tree-optimization/92405
4058 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4059 restrict lane-reducing ops to single stmt chains.
4060
4061 2019-11-07 Martin Jambor <mjambor@suse.cz>
4062
4063 PR lto/70929
4064 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4065 * cgraph.h (gimple_check_call_matching_types): Remove
4066 * cgraph.c (gimple_check_call_args): Likewise.
4067 (gimple_check_call_matching_types): Likewise.
4068 (symbol_table::create_edge): Do not call
4069 gimple_check_call_matching_types.
4070 (cgraph_edge::make_direct): Likewise.
4071 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4072 * value-prof.h (check_ic_target): Remove.
4073 * value-prof.c (check_ic_target): Remove.
4074 (gimple_ic_transform): Do nat call check_ic_target.
4075 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4076 (afdo_indirect_call): Likewise.
4077 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4078 gimple_check_call_matching_types.
4079 * ipa-inline.c (early_inliner): Likewise.
4080
4081 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4082
4083 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4084 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4085 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4086 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4087 * config/arm/iterators.md (USSAT16): New int_iterator.
4088 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4089 (sup): Likewise.
4090 * config/arm/predicates.md (ssat16_imm): New predicate.
4091 (usat16_imm): Likewise.
4092 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4093
4094 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4095
4096 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4097 New define_insns.
4098 (arm_<simd32_op>): New define_expands.
4099 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4100 __smuad, __smuadx): Define.
4101 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4102 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4103 (SIMD32_BINOP_Q): Likewise.
4104 (simd32_op): Handle the above.
4105 * config/arm/unspecs.md: Define unspecs for the above.
4106
4107 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4108
4109 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4110 * config/arm/arm.md (APSRGE_REGNUM): Define.
4111 (arm_<simd32_op>): New define_insn.
4112 (arm_sel): Likewise.
4113 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4114 (CALL_USED_REGISTERS): Likewise.
4115 (REG_ALLOC_ORDER): Likewise.
4116 (FIRST_PSEUDO_REGISTER): Update value.
4117 (ARM_GE_BITS_READ): Define.
4118 * config/arm/arm.c (arm_conditional_register_usage): Clear
4119 APSRGE_REGNUM from operand_reg_set.
4120 (arm_ge_bits_access): Define.
4121 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4122 ARM_BUIILTIN_sel.
4123 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4124 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4125 FAIL if ARM_GE_BITS_READ.
4126 (*arm_add<mode>3): New define_insn.
4127 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4128 (*arm_sub<mode>3): New define_insn.
4129 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4130 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4131 __usub16): Define.
4132 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4133 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4134 (simd32_op): Handle the above.
4135 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4136 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4137 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4138 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4139
4140 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4141
4142 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4143 (arm_smlabb): New define_expand.
4144 (*maddhisi4tb): Rename to...
4145 (maddhisi4tb): ... This.
4146 (*maddhisi4tt): Rename to...
4147 (maddhisi4tt): ... This.
4148 (arm_smlatb_setq): New define_insn.
4149 (arm_smlatb): New define_expand.
4150 (arm_smlatt_setq): New define_insn.
4151 (arm_smlatt): New define_expand.
4152 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4153 (arm_<smlaw_op>): New define_expand.
4154 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4155 __smlawb, __smlawt): Define.
4156 * config/arm_acle_builtins.def: Define builtins for the above.
4157 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4158 (slaw_op): New int_attribute.
4159 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4160
4161 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4162
4163 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4164 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4165 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4166 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4167 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4168 (ss_op): New code_attr.
4169
4170 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4171
4172 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4173 * config/arm/arm.md (APSRQ_REGNUM): Define.
4174 (add_setq): New define_subst.
4175 (add_clobber_q_name): New define_subst_attr.
4176 (add_clobber_q_pred): Likewise.
4177 (maddhisi4): Change to define_expand. Split into mult and add if
4178 ARM_Q_BIT_READ.
4179 (arm_maddhisi4): New define_insn.
4180 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4181 (*maddhisi4tt): Likewise.
4182 (arm_ssat): New define_expand.
4183 (arm_usat): Likewise.
4184 (arm_get_apsr): New define_insn.
4185 (arm_set_apsr): Likewise.
4186 (arm_saturation_occurred): New define_expand.
4187 (arm_set_saturation): Likewise.
4188 (*satsi_<SAT:code>): Rename to...
4189 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4190 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4191 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4192 (CALL_USED_REGISTERS): Mark apsrq.
4193 (FIRST_PSEUDO_REGISTER): Update value.
4194 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4195 (machine_function): Add q_bit_access.
4196 (ARM_Q_BIT_READ): Define.
4197 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4198 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4199 operand_reg_set.
4200 (arm_q_bit_access): Define.
4201 * config/arm/arm-builtins.c: Include stringpool.h.
4202 (arm_sat_binop_imm_qualifiers,
4203 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4204 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4205 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4206 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4207 SET_SAT_QUALIFIERS): Likewise.
4208 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4209 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4210 Handle 0 argument expander.
4211 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4212 (arm_check_builtin_call): Define.
4213 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4214 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4215 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4216 (arm_q_bit_access): Likewise.
4217 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4218 __saturation_occurred, __set_saturation_occurred): Define.
4219 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4220 saturation_occurred, set_saturation_occurred.
4221 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4222 (UNSPEC_APSR_READ): Likewise.
4223 (VUNSPEC_APSR_WRITE): Likewise.
4224 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4225 (*arm_ssadd<mode>3): New define_insn.
4226 (sssub<mode>3): Convert to define_expand.
4227 (*arm_sssub<mode>3): New define_insn.
4228 (ssmulsa3): Convert to define_expand.
4229 (*arm_ssmulsa3): New define_insn.
4230 (usmulusa3): Convert to define_expand.
4231 (*arm_usmulusa3): New define_insn.
4232 (ssmulha3): FAIL if ARM_Q_BIT_READ.
4233 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4234 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4235
4236 2019-11-07 Martin Liska <mliska@suse.cz>
4237
4238 PR c++/92354
4239 * cgraph.c (delete_function_version): Clear global
4240 variable version_info_node if equal to deleted
4241 function.
4242
4243 2019-11-07 Martin Liska <mliska@suse.cz>
4244
4245 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4246 of CONSTRUCTOR_NO_CLEARING.
4247 (operand_compare::hash_operand): Likewise.
4248
4249 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4250
4251 Support 64-bit double and 64-bit long double configurations.
4252
4253 PR target/92055
4254 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4255 --with-long-double=.
4256 * config/avr/t-multilib: Remove.
4257 * config/avr/t-avr: Output of genmultilib.awk is now fully
4258 dynamically generated and no more part of the repo.
4259 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4260 Pass them down to...
4261 * config/avr/genmultilib.awk: ...here and handle them.
4262 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4263 (-mlong-double=, avr_long_double). New option and var.
4264 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4265 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4266 Set default as requested by --with-double=
4267 (TARGET_HANDLE_OPTION): Define to this...
4268 (avr_handle_option): ...new hook worker.
4269 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4270 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4271 (avr_double_lib): New proto for spec function.
4272 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4273 (DRIVER_SELF_SPECS): Call %:double-lib.
4274 * config/avr/avr.c (avr_option_override): Assert
4275 sizeof(long double) >= sizeof(double) for the target.
4276 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4277 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4278 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
4279 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
4280 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
4281 New built-in define depending on --with-double=, --with-long-double=.
4282 * config/avr/driver-avr.c (avr_double_lib): New spec function.
4283 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
4284 * doc/install.texi (Cross-Compiler-Specific Options)
4285 <--with-double=, --with-long-double=>: Doc.
4286
4287 2019-11-07 Richard Biener <rguenther@suse.de>
4288
4289 * dbgcnt.def (gimple_unroll): New.
4290 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
4291 gimple_unroll debug counter before applying transform.
4292 (try_peel_loop): Likewise.
4293
4294 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
4295
4296 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
4297 frame pointer in multiple registers.
4298 (ira_setup_eliminable_regset): Setup eliminable_regset,
4299 ira_no_alloc_regs and regs_ever_live for frame pointer in
4300 multiple registers.
4301
4302 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
4303
4304 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
4305 V2DI modes.
4306
4307 2019-11-06 Jan Hubicka <jh@suse.cz>
4308
4309 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
4310 allocations.
4311 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
4312 Do not silently ignore summary corruptions.
4313
4314 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4315
4316 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
4317 the epilogue if there are peeled iterations for it to handle.
4318
4319 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4320
4321 * config/arc/arc.c (arc_split_ior): Add asserts.
4322 (arc_split_mov_const): Likewise.
4323 (arc_check_ior_const): Do not match known short immediate values.
4324 * config/arc/arc.md (movsi): Don't split predicated instructions
4325 (iorsi): Likewise.
4326
4327 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4328
4329 * config/arc/arc.opt (mea): Update help string.
4330 * doc/invoke.texi(ARC): Update mea option info.
4331
4332 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
4333
4334 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
4335 (zero_extendqisi2_ac): Likewise.
4336 (zero_extendhisi2_i): Likewise.
4337 (extendqihi2_i): Likewise.
4338 (extendqisi2_ac): Likewise.
4339 (extendhisi2_i): Likewise.
4340
4341 2019-11-06 Richard Biener <rguenther@suse.de>
4342
4343 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
4344 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
4345 Simplify single_defuse_cycle condition.
4346
4347 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4348
4349 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
4350 epilogue loop, make sure that the VF is small enough or that
4351 the epilogue loop can be fully-masked.
4352
4353 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
4354
4355 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
4356 loop when we've finished, rather than returning directly from
4357 the loop. Use a local variable to track whether we're still
4358 searching for the preferred simdlen. Make vect_epilogues
4359 record whether the next iteration should try to treat the
4360 loop as an epilogue.
4361
4362 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
4363
4364 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
4365 __arc_hard_float__, __ARC_HARD_FLOAT__,
4366 __arc_soft_float__, __ARC_SOFT_FLOAT__
4367
4368 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4369
4370 PR tree-optimization/92317
4371 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
4372 update phi's with constant phi arguments.
4373
4374 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
4375 Alexandre Oliva <oliva@adacore.com>
4376
4377 * common.opt (-fcallgraph-info[=]): New option.
4378 * doc/invoke.texi (Developer options): Document it.
4379 * opts.c (common_handle_option): Handle it.
4380 * builtins.c (expand_builtin_alloca): Record allocation if
4381 -fcallgraph-info=da.
4382 * calls.c (expand_call): If -fcallgraph-info, record the call.
4383 (emit_library_call_value_1): Likewise.
4384 * flag-types.h (enum callgraph_info_type): New type.
4385 * explow.c: Include stringpool.h.
4386 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
4387 * function.c (allocate_stack_usage_info): New.
4388 (allocate_struct_function): Call it for -fcallgraph-info.
4389 (prepare_function_start): Call it otherwise.
4390 (record_final_call, record_dynamic_alloc): New.
4391 * function.h (struct callinfo_callee): New.
4392 (CALLEE_FROM_CGRAPH_P): New.
4393 (struct callinfo_dalloc): New.
4394 (struct stack_usage): Add callees and dallocs.
4395 (record_final_call, record_dynamic_alloc): Declare.
4396 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
4397 object if -fcallgraph-info=da.
4398 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
4399 * print-tree.h (print_decl_identifier): Declare.
4400 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
4401 * print-tree.c: Include print-tree.h.
4402 (print_decl_identifier): New function.
4403 * toplev.c: Include print-tree.h.
4404 (callgraph_info_file): New global variable.
4405 (callgraph_info_external_printed): Likewise.
4406 (output_stack_usage): Rename to...
4407 (output_stack_usage_1): ... this. Make it static, add cf
4408 parameter. If -fcallgraph-info=su, print stack usage to cf.
4409 If -fstack-usage, use print_decl_identifier for
4410 pretty-printing.
4411 (INDIRECT_CALL_NAME): New.
4412 (dump_final_node_vcg_start): New.
4413 (dump_final_callee_vcg, dump_final_node_vcg): New.
4414 (output_stack_usage): New.
4415 (lang_dependent_init): Open and start file if
4416 -fcallgraph-info. Allocated callgraph_info_external_printed.
4417 (finalize): If callgraph_info_file is not null, finish it,
4418 close it, and release callgraph_info_external_printed.
4419
4420 2019-11-06 Gergö Barany <gergo@codesourcery.com>
4421 Frederik Harwath <frederik@codesourcery.com>
4422 Thomas Schwinge <thomas@codesourcery.com>
4423
4424 * omp-low.c (struct omp_context): New fields
4425 local_reduction_clauses, outer_reduction_clauses.
4426 (new_omp_context): Initialize these.
4427 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
4428 (scan_omp_for): Check reduction clauses for incorrect nesting.
4429
4430 2019-11-06 Jakub Jelinek <jakub@redhat.com>
4431
4432 PR inline-asm/92352
4433 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
4434 operands with non-memory constraints.
4435
4436 2019-11-05 Martin Sebor <msebor@redhat.com>
4437
4438 PR tree-optimization/92373
4439 * tree.c (component_ref_size): Only consider initializers of objects
4440 of matching struct types.
4441 Return null for instances of interior zero-length arrays.
4442
4443 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
4444
4445 * doc/md.texi (Insn Splitting): Fix combiner documentation.
4446
4447 2019-11-05 Jason Merrill <jason@redhat.com>
4448
4449 PR tree-optimization/91825
4450 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
4451
4452 2019-11-05 Jim Wilson <jimw@sifive.com>
4453
4454 PR middle-end/92263
4455 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
4456 optimize_insn_for_speed_p is true.
4457
4458 2019-11-05 Martin Sebor <msebor@redhat.com>
4459
4460 PR middle-end/92333
4461 PR middle-end/82608
4462 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
4463 size.
4464 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
4465 name and location for a temporary variable.
4466
4467 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4468
4469 * tree-vrp.c (value_range::value_range): Fix whitespace.
4470 (defined_ranges_p): Same.
4471 (range_fold_binary_symbolics_p): Same.
4472 (value_range::intersect_helper): Same.
4473 (value_range::union_helper): Same.
4474 * tree-vrp.h (range_fold_binary_expr): Same.
4475
4476 2019-11-04 Martin Sebor <msebor@redhat.com>
4477
4478 PR middle-end/92341
4479 PR middle-end/82612
4480 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
4481 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
4482 of message printed in a warning for empty arrays.
4483 (vrp_prop::check_mem_ref): Also handle function parameters and
4484 empty arrays.
4485
4486 2019-11-05 Richard Biener <rguenther@suse.de>
4487
4488 PR tree-optimization/92371
4489 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
4490 on the original stmt of live stmts in the chain.
4491 (vectorizable_live_operation): Look at the original stmt when
4492 checking STMT_VINFO_REDUC_DEF.
4493
4494 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4495
4496 * gimple-fold.c, gimple-loop-versioning.cc,
4497 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
4498 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
4499 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
4500 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
4501 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
4502 value_range_equiv, and value_range_base to value_range.
4503
4504 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4505
4506 * expr.c (build_personality_function): Fix generated type to
4507 match actual personality functions.
4508
4509 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
4510
4511 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
4512 enough bytes for the NULL character.
4513
4514 2019-11-05 Richard Biener <rguenther@suse.de>
4515
4516 PR tree-optimization/92280
4517 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
4518 had a single use do not create a new CTOR.
4519 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
4520 BIT_FIELD_REF of a CTOR via GENERIC.
4521
4522 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
4523
4524 * config/s390/s390.c (s390_vector_alignment): Check if the value
4525 fits into uhwi before using it.
4526
4527 2019-11-05 Martin Liska <mliska@suse.cz>
4528
4529 * symbol-summary.h: Use ggc_delete.
4530
4531 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4532
4533 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
4534 Change vec_perm field to 10.
4535
4536 2019-11-05 Arnaud Charlet <charlet@adacore.com>
4537
4538 * doc/install.texi: Further fix syntax for html generation.
4539
4540 2019-11-05 Martin Liska <mliska@suse.cz>
4541
4542 * symbol-summary.h: Rename allocator to m_allocator and
4543 add comment.
4544
4545 2019-11-05 Richard Biener <rguenther@suse.de>
4546
4547 PR tree-optimization/92324
4548 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
4549 all signed or unsigned operations.
4550
4551 2019-11-05 Jan Hubicka <jh@suse.cz>
4552
4553 * hsa-brig.c: Include alloc-pool.h
4554 * hsa-dump.c: Likewise.
4555 * hsa-gen.c: Likewise.
4556 * hse-regalloc.c: Likewise.
4557 * ipa-hsa.c: Likewise.
4558 * ipa-predicate.c: Likewise.
4559 * ipa-reference.c: Likewise.
4560 * ipa-sra.c: Likewise.
4561 * omp-expand.c: Likewise.
4562 * omp-general.c: Likewise.
4563 * omp-low.c: Likewise.
4564 * sumbol-summary.h (function_summary_base): Add allocator.
4565 (function_summary<T *>::function_summary): Update construction.
4566 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
4567 (call_summary_base): Add allcator.
4568 (call_summary<T *>::call_summary): Update construction.
4569 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
4570
4571 2019-11-05 Jakub Jelinek <jakub@redhat.com>
4572
4573 PR tree-optimization/91945
4574 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
4575 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
4576 Formatting fix.
4577
4578 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4579
4580 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
4581 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
4582 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
4583 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
4584 (vrp_set_zero_nonzero_bits): Move to...
4585 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
4586 (vr_values::simplify_bit_ops_using_ranges): Rename
4587 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
4588
4589 2019-11-05 Martin Liska <mliska@suse.cz>
4590
4591 PR c++/92339
4592 * fold-const.c (operand_compare::hash_operand): Remove
4593 FIELD_DECL handling.
4594
4595 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4596
4597 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
4598 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
4599 static.
4600
4601 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
4602
4603 * tree-vrp.c (value_range_base::operator==): Use equal_p to
4604 properly handle symbolics.
4605 (range_compatible_p): Remove.
4606
4607 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
4608
4609 * common.opt (-fabi-version): Document =14.
4610 * doc/invoke.texi (C++ Dialect Options): Likewise.
4611
4612 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4613
4614 * tree-vrp.c (value_range_base::set): Do not special case pointers.
4615
4616 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
4617
4618 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
4619 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4620 gcn_omp_device_kind_arch_isa.
4621 * config/gcn/t-omp-device: New file.
4622 * configure.ac: Support gcn for omp_device_property.
4623 * configure: Regenerate.
4624
4625 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4626
4627 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
4628 (vrp_val_max): Same.
4629 (vrp_val_is_min): Same.
4630 (vrp_val_is_max): Same.
4631 (value_range_base::nonzero_p): Remove last argument to
4632 vrp_val_is_max.
4633 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
4634 (vrp_val_max): Same.
4635 (vrp_val_is_min): Same.
4636 (vrp_val_is_max): Same.
4637 (value_range_base::set_varying): Remove last argument to vrp_val*.
4638 (value_range_base::dump): Same.
4639 (value_range_base::set): Same.
4640 (value_range_base::normalize_symbolics): Same.
4641 (value_range_base::num_pairs): Same.
4642 (value_range_base::lower_bound): Same.
4643 (value_range_base::upper_bound): Same.
4644 (ranges_from_anti_range): Remove handle_pointers argument.
4645 (value_range_base::singleton_p): Remove last argument to
4646 ranges_from_anti_range.
4647
4648 2019-11-04 Jan Hubicka <jh@suse.cz>
4649
4650 * ipa-reference.c (init_function_info): Initialize
4651 info->global.statics_read.
4652
4653 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4654
4655 * tree-vrp.c (value_range_base::invert): Use constructors to build
4656 range.
4657
4658 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4659
4660 * tree-vrp.c (range_int_cst_singleton_p): Remove.
4661 * tree-vrp.h (range_int_cst_singleton_p): Remove.
4662
4663 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4664
4665 * tree-vrp.c (value_range_base::normalize_addresses): Handle
4666 VR_UNDEFINED.
4667
4668 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
4669
4670 * tree-vrp.c (dump_assert_info): New.
4671 (dump_asserts_info): New.
4672
4673 2019-11-04 Jan Hubicka <jh@suse.cz>
4674
4675 * ipa-inline-transform.c: Include ipa-utils.h
4676 (inline_call): Set thunk_expansion flag.
4677 * ipa-utils.h (thunk_expansion): Declare.
4678 * ipa-devirt.c (thunk_expansion): New global var.
4679 (devirt_node_removal_hook): Do not invalidate cache while
4680 doing thunk expansion.
4681
4682 2019-11-04 Tamar Christina <tamar.christina@arm.com>
4683
4684 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
4685
4686 2019-11-04 Martin Sebor <msebor@redhat.com>
4687
4688 PR tree-optimization/92349
4689 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
4690 memebers have constant sizes.
4691
4692 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
4693
4694 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
4695 parameter.
4696 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
4697 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
4698 vect_analyze_loop.
4699
4700 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
4701
4702 * expr.c (store_constructor): Modify to handle single element vectors.
4703 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
4704 constructors.
4705 (vect_slp_check_for_constructors): New function.
4706 (vect_slp_analyze_bb_1): Call new function to check for vector
4707 constructors.
4708 (vectorize_slp_instance_root_stmt): New function.
4709 (vect_schedule_slp): Call new function to vectorize root stmt of vector
4710 constructors.
4711 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
4712
4713 2019-11-04 Richard Biener <rguenther@suse.de>
4714
4715 PR tree-optimization/92345
4716 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
4717 we produced a reduction chain.
4718 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
4719 LOOP_VINFO_REDUCTIONS.
4720
4721 2019-11-04 Jan Hubicka <jh@suse.cz>
4722
4723 * cgraphclones.c (cgraph_node::create_version_clone): Do not
4724 duplicate summaries.
4725 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
4726 first.
4727 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
4728 access call summaries.
4729 (dump_ipa_call_summary): Be ready for missing edge summaries.
4730 (analyze_function_body): Use get instead of get_create to access
4731 edge summary.
4732 (estimate_calls_size_and_time): Do not access summaries of
4733 inlined edges; sanity check they are missing.
4734 (ipa_call_context::estimate_size_and_time): Use get instead
4735 of get_create to access node summary.
4736 (inline_update_callee_summaries): Do not update depth of
4737 inlined edge.
4738 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
4739 growth caches.
4740 (ipa_merge_fn_summary_after_inlining): Use get instead
4741 of get_create.
4742 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
4743 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
4744 fast summary.
4745 (initialize_growth_caches): Update.
4746 (do_estimate_edge_time): Remove redundant copy of context.
4747 (ipa_remove_from_growth_caches): New function.
4748 * ipa-inline.c (flatten_function): Update overall summary
4749 only when optimizing.
4750 (inline_to_all_callers): Update overall summary of function
4751 inlined to.
4752 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
4753 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
4754 to false.
4755
4756 2019-11-04 Richard Biener <rguenther@suse.de>
4757
4758 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
4759 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
4760
4761 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
4762
4763 * ggc-common.c: Include system.h before malloc.h.
4764
4765 2019-11-04 Alexandre Oliva <oliva@adacore.com>
4766
4767 * configure.ac: Pass --enable-obsolete=* and
4768 --enable-option-checking=* down to build configure, and fail
4769 if it fails. AC_SUBST HAVE_AUTO_BUILD.
4770 * configure: Rebuild.
4771 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
4772 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
4773
4774 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4775
4776 * config.in: Regenerate.
4777 * config/msp430/msp430.c (msp430_option_override): Emit an error if
4778 -mtiny-printf is used without GCC being configured with
4779 --enable-newlib-nano-formatted-io.
4780 * config/msp430/msp430.h (LINK_SPEC): Pass
4781 "--wrap puts --wrap printf" when -mtiny-printf is used.
4782 * config/msp430/msp430.opt: Document -mtiny-printf.
4783 * configure: Regenerate.
4784 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
4785 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
4786 --enable-newlib-nano-formatted-io is passed.
4787 * doc/invoke.texi: Document -mtiny-printf.
4788
4789 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4790
4791 * configure: Regenerate.
4792
4793 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4794
4795 * config/msp430/driver-msp430.c
4796 (msp430_get_linker_devices_include_path): New spec function.
4797 * config/msp430/msp430-devices.c (msp430_dirname): New function.
4798 (extract_devices_dir_from_exec_prefix): New function.
4799 (extract_devices_dir_from_collect_gcc): New function.
4800 (msp430_check_env_var_for_devices): New function.
4801 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
4802 (parse_devices_csv): Call msp430_check_env_var_for_devices if
4803 devices.csv was not found using other methods.
4804 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
4805 New prototype.
4806 (msp430_dirname): Likewise.
4807 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
4808 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
4809 msp430_get_linker_devices_include_path.
4810 (TARGET_EXTRA_PRE_INCLUDES): Define.
4811 * doc/invoke.texi: Document new ways of searching for support files.
4812
4813 2019-11-04 Richard Biener <rguenther@suse.de>
4814
4815 PR tree-optimization/92301
4816 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
4817 as required by epilogue generation
4818
4819 2019-11-04 Martin Liska <mliska@suse.cz>
4820
4821 PR ipa/92304
4822 * fold-const.c (operand_compare::hash_operand): Fix field
4823 hashing of CONSTRUCTOR.
4824
4825 2019-11-04 Martin Liska <mliska@suse.cz>
4826
4827 * ggc.h (ggc_delete): New function.
4828 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
4829 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
4830 (ipa_free_all_node_params): Likewise.
4831 * ipa-sra.c (ipa_sra_analysis): Likewise.
4832
4833 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4834
4835 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
4836 set_switch_stmt_execution_predicate, compute_bb_predicates,
4837 will_be_nonconstant_expr_predicate,
4838 phi_result_unknown_predicate,
4839 analyze_function_body): Pass arround params summary.
4840 (ipa_call_context::duplicate_from): New comment;
4841 only duplicate useful values.
4842 (ipa_call_context::equal_to): Only compare useful values.
4843 (remap_edge_summaries): Pass params_summary.
4844 (remap_hint_predicate): Likewise.
4845 (ipa_merge_fn_summary_after_inlining): Likewise.
4846 (inline_read_section): Initialize params summary used flags.
4847 * ipa-predicate.c (predicate::remap_after_inlining): Pass
4848 around param_summary.
4849 (add_condition): Initialized used params summary flags.
4850 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
4851 (inline_param_summary::useless_p): New predicate.
4852 (remap_after_inlining, add_condition): Update prototype
4853 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
4854 move_cost.
4855 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
4856 summaries.
4857 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
4858 (ipa_analyze_virtual_call_uses): Likewise.
4859 (update_indirect_edges_after_inlining): Update param summaries.
4860 (ipa_print_node_params): Print used flags.
4861 (ipa_read_indirect_edge_info): Update param summareis.
4862 * ipa-prop.h (ipa_param_descriptor): Add
4863 used_by_ipa_predicates, used_by_indirect_call
4864 and used_by_polymorphic_call.
4865 (ipa_set_param_used_by_ipa_predicates,
4866 ipa_set_param_used_by_indirect_call,
4867 ipa_set_param_used_by_polymorphic_call,
4868 ipa_is_param_used_by_ipa_predicates,
4869 ipa_is_param_used_by_indirect_call,
4870 ipa_is_param_used_by_polymorphic_call): New inline functions.
4871
4872 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4873
4874 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
4875 member function.
4876 (ipa_call_context::release): Add ALL parameter.
4877 (ipa_call_context::equal_to): New member function.
4878 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
4879 duplicate_form, release, equal_to and exists_p member functoins.
4880 * ipa-inline-analysis.c (node_context_cache_entry): New
4881 class.
4882 (node_context_summary): Likewise.
4883 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
4884 node_context_clear): New static vars.
4885 (initialize_growth_caches): New function.
4886 (free_growth_caches): Also delete node_context_cache; output stats.
4887 (do_estimate_edge_time): Cache contexts.
4888 (reset_node_cache): New function.
4889 * ipa-inline.c (reset_edge_caches): Reset also node cache.
4890 (inline_small_functions): Initialize growth caches.
4891 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
4892 Declare.
4893 * ipa-predicate.h (inline_param_summary::equal_to): New.
4894 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
4895 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
4896 (ipa_agg_jump_function): Implement equal_to member function.
4897
4898 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4899
4900 * ipa-fnsummary.c (inline_read_section): Set vector size
4901 ahead of time.
4902
4903 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4904
4905 * ipa-fnsummary.c (ipa_call_context): New constructor.
4906 (estimate_node_size_and_time): Turn to ...
4907 (ipa_call_context::estimate_size_and_time): ... this one.
4908 (ipa_call_context::release): New.
4909 * ipa-fnsummary.h (ipa_call_context): New class.
4910 (estimate_node_size_and_time): Remove.
4911 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
4912 do_estimate_edge_hints): Update.
4913
4914 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4915
4916 * config.in: Regenerate.
4917 * configure: Regenerate.
4918 * configure.ac: Check for mallinfo.
4919 * ggc-common.c: Include malloc.h if available;
4920 include options.h
4921 (report_heap_memory_use): New functoin.
4922 * ggc-page.c (ggc_grow): Do not print "start".
4923 * ggc.h (report_heap_memory_use): Declare.
4924 * pases.c (execute_one_pass): Report memory after IPA passes.
4925 (ipa_read_summaries_1): Likewise.
4926 (ipa_read_optimization_summaries_1): Likewise.
4927
4928 2019-11-02 Jakub Jelinek <jakub@redhat.com>
4929
4930 * gimplify.h (omp_construct_selector_matches): Change return
4931 type to int, add a new SCORES argument.
4932 * gimplify.c (omp_construct_selector_matches): Likewise. If
4933 SCORES is non-NULL, compute scores of each construct.
4934 * omp-general.h (omp_get_context_selector): Declare.
4935 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
4936 Adjust omp_construct_selector_matches callers.
4937 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
4938 (omp_context_compute_score): New function.
4939 (omp_resolve_declare_variant): Compute scores and decide based on
4940 that.
4941
4942 PR bootstrap/92314
4943 * configure.ac: Don't look for omp-device-properties files from
4944 installed offloading compilers. Instead add tmake_file snippets
4945 for configured offloading targets and use files they generate.
4946 * Makefile.in (install): Don't depend on
4947 install-omp-device-properties.
4948 (install-omp-device-properties): Remove goal.
4949 * config/i386/t-omp-device: New file.
4950 * config/i386/t-intelmic (omp-device-properties): Remove goal.
4951 * config/nvptx/t-omp-device: New file.
4952 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
4953 * configure: Regenerated.
4954
4955 * omp-general.h (omp_context_selector_set_compare): Declare.
4956 * omp-general.c (omp_construct_simd_compare,
4957 omp_context_selector_props_compare, omp_context_selector_set_compare,
4958 omp_context_selector_compare): New functions.
4959 (omp_resolve_declare_variant): Prune variants that are strict subset
4960 of another variant.
4961
4962 2019-11-01 Martin Sebor <msebor@redhat.com>
4963
4964 PR middle-end/91679
4965 PR middle-end/91647
4966 PR middle-end/91463
4967 PR middle-end/92312
4968 * doc/invoke.texi (-Wzero-length-bounds): Document.
4969 * gimple-match-head.c (try_conditional_simplification): Use memcpy
4970 instead of a hand-rolled loop to avoid PR 92323.
4971 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
4972 with initializers.
4973 (vrp_prop::check_mem_ref): Handle declared struct objects.
4974 * tree.c (last_field): New function.
4975 (array_at_struct_end_p): Handle MEM_REF.
4976 (get_initializer_for): New helper.
4977 (component_ref_size): Add argument. Rename locals. Call
4978 get_initializer_for instead of fold_ctor_reference. Correct handling
4979 of flexible array members.
4980 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
4981
4982 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4983
4984 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
4985 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
4986 UNSPEC_VSX_CVSPUXDS): Remove.
4987 (vsx_xvcvspdp): New define_expand, old define_insn split to...
4988 (vsx_xvcvspdp_be): ... this. New. And...
4989 (vsx_xvcvspdp_le): ... this. New.
4990 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
4991 (vsx_xvcv<su>xwdp_be): ... this. New. And...
4992 (vsx_xvcv<su>xwdp_le): ... this. New.
4993 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
4994 (vsx_xvcvsp<su>xds_be): ... this. New. And...
4995 (vsx_xvcvsp<su>xds_le): ... this. New.
4996
4997 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4998
4999 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5000 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5001 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5002 UNSPEC_VSX_XVCVSPSXWS): Remove.
5003 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5004 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5005
5006 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5007
5008 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5009 (UNSPEC_VSX_XVCDPSP): Remove.
5010 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5011 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5012
5013 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5014
5015 * hooks.c (hook_tree_tree_bool_null): New.
5016 * hooks.h (hook_tree_tree_bool_null): Declare.
5017 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5018 (LANG_HOOKS_DECLS): Add it.
5019 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5020 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5021 (lower_omp_target): Handle Fortran array with descriptor in
5022 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5023
5024 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5025
5026 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5027 Assert that the type we store in abi_vector_types is its own
5028 main variant.
5029 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5030
5031 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5032
5033 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5034 from a CONST_INT address when TARGET_THUMB2.
5035
5036 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5037
5038 * config/arm/arm.md (add_not_cin): New insn.
5039 (add_not_shift_cin): Likewise.
5040
5041 2019-10-31 Martin Liska <mliska@suse.cz>
5042
5043 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5044 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5045 and compare_memory_operand.
5046
5047 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5048
5049 * configure.ac: Compute and substitute omp_device_properties and
5050 omp_device_property_deps.
5051 * Makefile.in (generated_files): Add omp-device-properties.h.
5052 (omp-general.o): Depend on omp-device-properties.h.
5053 (omp_device_properties): New make variable.
5054 (omp-device-properties.h, s-omp-device-properties-h,
5055 install-omp-device-properties): New goals.
5056 (install): Depend on install-omp-device-properties for accelerators.
5057 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5058 * target.h (enum omp_device_kind_arch_isa): New enum.
5059 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5060 documentation.
5061 * omp-general.c: Include omp-device-properties.h.
5062 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5063 colon instead of comma.
5064 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5065 functions.
5066 (omp_context_selector_matches): Implement device set arch/isa
5067 selectors, improve device set kind selector handling.
5068 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5069 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5070 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5071 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5072 ix86_omp_device_kind_arch_isa.
5073 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5074 definition from ix86_target_string to file scope.
5075 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5076 to file scope.
5077 (ix86_omp_device_kind_arch_isa): New function.
5078 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5079 isa_opts definitions to file scope.
5080 * config/i386/t-intelmic (omp-device-properties): New goal.
5081 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5082 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5083 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5084 nvptx_omp_device_kind_arch_isa.
5085 * configure: Regenerate.
5086 * doc/tm.texi: Regenerate.
5087
5088 PR middle-end/92231
5089 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5090 DECL_BUILT_IN in comment. Remove redundant ()s around return
5091 argument.
5092 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5093 before calling fndecl_built_in_p.
5094 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5095 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5096 fndecl_built_in_p on it.
5097
5098 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5099
5100 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5101
5102 2019-10-31 Martin Liska <mliska@suse.cz>
5103
5104 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5105 of cgraph_local_info and use local_info_node instead.
5106 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5107 (bfin_function_ok_for_sibcall): Likewise.
5108 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5109 (must_reload_pic_reg_p): Likewise.
5110
5111 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5112
5113 PR c++/90947
5114 * tree.h (type_initializer_zero_p): Remove.
5115 * tree.c (type_initializer_zero_p): Remove.
5116
5117 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5118
5119 * doc/invoke.texi (-Wshadow, -Wshadow=global
5120 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5121
5122 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5123
5124 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5125 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5126 and 'target exit data'.
5127
5128 2019-10-30 Martin Jambor <mjambor@suse.cz>
5129
5130 ipa/92278
5131 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5132 availability comparison.
5133
5134 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5135
5136 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5137 calls to __mspabi_mpy* functions.
5138 * config/msp430/msp430.md (mulhisi3): New define_expand.
5139 (umulhisi3): New define_expand.
5140 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5141 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5142
5143 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5144
5145 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5146 (msp430_check_plus_not_high_mem): New.
5147 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5148 might be in low memory.
5149 Indicate that a 16-bit absolute address is in lower memory.
5150
5151 2019-10-30 Martin Jambor <mjambor@suse.cz>
5152
5153 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5154 ultimate_alias_target.
5155
5156 2019-10-30 Richard Biener <rguenther@suse.de>
5157
5158 PR tree-optimization/92275
5159 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5160 Copy all loop-closed PHIs.
5161
5162 2019-10-30 Martin Liska <mliska@suse.cz>
5163
5164 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5165 const_tree as function argument.
5166 (func_checker::compare_decl): Likewise.
5167 (func_checker::operand_equal_p): Likewise.
5168 (func_checker::compare_variable_decl): Likewise.
5169 (func_checker::parse_labels): Likewise.
5170 * ipa-icf-gimple.h: Likewise.
5171
5172 2019-10-30 Martin Liska <mliska@suse.cz>
5173
5174 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5175 Do not compare alias sets. It's handled by operand_equal_p.
5176
5177 2019-10-30 Martin Liska <mliska@suse.cz>
5178
5179 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5180 initialize m_compare_polymorphic.
5181 (func_checker::compare_decl): Do not compare polymorphic types.
5182 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5183 * ipa-icf.c (sem_function::equals_private): Do not call
5184 compare_polymorphic_p.
5185
5186 2019-10-30 Martin Liska <mliska@suse.cz>
5187
5188 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5189 compare_operand.
5190 (func_checker::compare_memory_operand): Remove.
5191 (func_checker::compare_cst_or_decl): Remove.
5192 (func_checker::operand_equal_valueize): Do not handle
5193 FIELD_DECL.
5194 (func_checker::compare_gimple_call): Call compare_operand.
5195 (func_checker::compare_gimple_assign): Likewise.
5196 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5197 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5198 * ipa-icf.h (icf_handled_component_p): Remove.
5199
5200 2019-10-30 Martin Liska <mliska@suse.cz>
5201
5202 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5203 (func_checker::compare_cst_or_decl): Remove handling
5204 of FIELD_DECL.
5205 (func_checker::compare_operand): Transform to ...
5206 (func_checker::operand_equal_p): ... this.
5207 * ipa-icf-gimple.h (class func_checker): Add
5208 operand_equal_p and hash_operand.
5209 * ipa-icf.c (sem_function::equals_private): Fix
5210 pushing and popping of cfun.
5211
5212 2019-10-30 Martin Liska <mliska@suse.cz>
5213
5214 * fold-const.c (operand_equal_p): Move to ...
5215 (operand_compare::operand_equal_p): ... here.
5216 (operand_compare::verify_hash_value): New.
5217 (add_expr): Move to ...
5218 (operand_compare::hash_operand): ... here.
5219 * fold-const.h (operand_equal_p): Move to the class.
5220 (class operand_compare): New.
5221 * tree.c (add_expr): Remove.
5222
5223 2019-10-30 Martin Liska <mliska@suse.cz>
5224
5225 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5226 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5227
5228 2019-10-30 Martin Liska <mliska@suse.cz>
5229
5230 PR lto/91393
5231 PR lto/88220
5232 * cgraph.c (cgraph_node::get_create): Overwrite node->order
5233 from a first_clone in order to get proper LTO section
5234 in LTO stream.
5235 (cgraph_node::get_untransformed_body):
5236 Use lto_get_section_data where symtab_node::order
5237 must be provided.
5238 * cgraphclones.c (cgraph_node::find_replacement):
5239 Update also symbol order.
5240 * ipa-fnsummary.c (ipa_fn_summary_read):
5241 Use new function lto_get_summary_section_data.
5242 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5243 * ipa-icf.c (sem_item_optimizer::read_summary):
5244 Likewise.
5245 * ipa-prop.c (ipa_prop_read_jump_functions):
5246 Likewise.
5247 (ipcp_read_transformation_summaries): Likewise.
5248 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5249 * lto-cgraph.c (input_node): Add also order_base.
5250 (input_varpool_node): Likewise.
5251 (input_cgraph_1): Assign the order_base.
5252 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5253 * lto-opts.c (lto_write_options): Pass new argument.
5254 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5255 (lto_get_summary_section_data): New.
5256 (lto_get_raw_section_data): Add order argument.
5257 (lto_create_simple_input_block): Likewise.
5258 * lto-section-out.c (lto_destroy_simple_output_block):
5259 Likewise.
5260 * lto-streamer-in.c (lto_input_toplevel_asms):
5261 Use lto_get_summary_section_data.
5262 (lto_input_mode_table): Likewise.
5263 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5264 (lto_output_toplevel_asms): Pass new argument.
5265 (copy_function_or_variable): Likewise.
5266 (produce_lto_section):Likewise.
5267 (produce_symtab): Likewise.
5268 (lto_write_mode_table): Likewise.
5269 (produce_asm_for_decls): Likewise.
5270 * lto-streamer.c (lto_get_section_name): Concat symbol name
5271 and symbol order.
5272 * lto-streamer.h (lto_get_section_data): Add order argument.
5273 (lto_get_summary_section_data): New.
5274 (lto_get_raw_section_data): Add order argument.
5275 (lto_get_section_name): Likewise.
5276 * varpool.c (varpool_node::get_constructor): Pass order argument.
5277
5278 2019-10-30 Jakub Jelinek <jakub@redhat.com>
5279
5280 PR tree-optimization/92262
5281 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
5282 ubase or cbase here.
5283 (remove_unused_ivs): Unshare comp before using it.
5284
5285 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
5286
5287 * ipa-prop.c (update_jump_functions_after_inlining):
5288 Watch for missing summaries.
5289
5290 2019-10-30 Richard Biener <rguenther@suse.de>
5291
5292 PR tree-optimization/65930
5293 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
5294 chains also allow a leading and trailing conversion.
5295 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5296 intermediate reduction chains.
5297 (vect_analyze_slp_instance): Likewise. Build a SLP
5298 node for a trailing conversion manually.
5299
5300 2019-10-30 Martin Liska <mliska@suse.cz>
5301
5302 * cgraph.c (cgraph_node::local_info): Transform to ...
5303 (cgraph_node::local_info_node): ... this.
5304 (cgraph_node::dump): Remove cgraph_local_info and
5305 put its fields directly into cgraph_node.
5306 (cgraph_node::get_availability): Likewise.
5307 (cgraph_node::make_local): Likewise.
5308 (cgraph_node::verify_node): Likewise.
5309 * cgraph.h (struct GTY): Likewise.
5310 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
5311 (duplicate_thunk_for_node): Likewise.
5312 (cgraph_node::create_clone): Likewise.
5313 (cgraph_node::create_virtual_clone): Likewise.
5314 (cgraph_node::create_version_clone): Likewise.
5315 * cgraphunit.c (cgraph_node::reset): Likewise.
5316 (cgraph_node::finalize_function): Likewise.
5317 (cgraph_node::add_new_function): Likewise.
5318 (analyze_functions): Likewise.
5319 * combine.c (setup_incoming_promotions): Likewise.
5320 * config/i386/i386.c (ix86_function_regparm): Likewise.
5321 (ix86_function_sseregparm): Likewise.
5322 (init_cumulative_args): Likewise.
5323 * ipa-cp.c (determine_versionability): Likewise.
5324 (count_callers): Likewise.
5325 (set_single_call_flag): Likewise.
5326 (initialize_node_lattices): Likewise.
5327 (estimate_local_effects): Likewise.
5328 (create_specialized_node): Likewise.
5329 (identify_dead_nodes): Likewise.
5330 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5331 (ipa_fn_summary_generate): Likewise.
5332 * ipa-hsa.c (check_warn_node_versionable): Likewise.
5333 (process_hsa_functions): Likewise.
5334 * ipa-icf.c (set_local): Likewise.
5335 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
5336 * ipa-inline.c (speculation_useful_p): Likewise.
5337 * ipa-profile.c (ipa_propagate_frequency): Likewise.
5338 (ipa_profile): Likewise.
5339 * ipa-split.c (split_function): Likewise.
5340 (execute_split_functions): Likewise.
5341 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
5342 (ipa_sra_ipa_function_checks): Likewise.
5343 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5344 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5345 * lto-cgraph.c (lto_output_node): Likewise.
5346 (input_overwrite_node): Likewise.
5347 * multiple_target.c (expand_target_clones): Likewise.
5348 * omp-simd-clone.c (simd_clone_create): Likewise.
5349 * trans-mem.c (expand_call_tm): Likewise.
5350 (ipa_tm_mayenterirr_function): Likewise.
5351 (ipa_tm_diagnose_tm_safe): Likewise.
5352 (ipa_tm_diagnose_transaction): Likewise.
5353 (ipa_tm_create_version): Likewise.
5354 (ipa_tm_transform_calls_redirect): Likewise.
5355 (ipa_tm_execute): Likewise.
5356 * tree-inline.c (expand_call_inline): Likewise.
5357
5358 2019-10-29 Martin Liska <mliska@suse.cz>
5359
5360 * symbol-summary.h (function_summary): Pass memory location
5361 to underlaying hash_map (or vec).
5362 (V>::fast_function_summary): Likewise.
5363
5364 2019-10-29 Martin Liska <mliska@suse.cz>
5365
5366 * ggc.h (ggc_alloc_no_dtor): New function.
5367 * ipa-fnsummary.c (ipa_free_fn_summary): Call
5368 destructor and ggc_free.
5369 (ipa_free_size_summary): Call delete instead
5370 of release.
5371 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
5372 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
5373 (ipa_free_all_edge_args): Call destructor and ggc_free.
5374 (ipa_free_all_node_params): Likewise.
5375 (ipcp_free_transformation_sum): Likewise.
5376 * ipa-prop.h (ipa_check_create_node_params):
5377 Call new ggc_alloc_no_dtor.
5378 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
5379 (ipa_sra_analysis): Call destructor and ggc_free.
5380 Replace release with delete operator.
5381 * symbol-summary.h (release): Remove ..
5382 (V>::~fast_function_summary): and move logic here.
5383 Likewise for other classes.
5384
5385 2019-10-29 Richard Biener <rguenther@suse.de>
5386
5387 PR tree-optimization/92260
5388 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
5389 lane-reducing ops.
5390
5391 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
5392
5393 PR tree-optimization/88915
5394 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
5395 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
5396 and make the valueize function pointer also take a void pointer.
5397 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
5398 around vn_valueize, to call it without a context.
5399 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
5400 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
5401 (~_loop_vec_info): Release epilogue_vinfos.
5402 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
5403 number of iterations of epilogue.
5404 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
5405 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
5406 versioning threshold needed for main loop.
5407 (vect_analyze_loop): Likewise.
5408 (find_in_mapping): New helper function.
5409 (update_epilogue_loop_vinfo): New function.
5410 (vect_transform_loop): When vectorizing epilogues re-use analysis done
5411 on main loop and call update_epilogue_loop_vinfo to update it.
5412 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
5413 stmts on loop preheader edge.
5414 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
5415 we decided to vectorize epilogues. Update epilogues NITERS and
5416 construct ADVANCE to update epilogues data references where needed.
5417 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
5418 (vect_do_peeling, vect_update_inits_of_drs,
5419 determine_peel_for_niter, vect_analyze_loop): Add or update
5420 declarations.
5421 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
5422 created loop_vec_info's for epilogues when available. Otherwise analyse
5423 epilogue separately.
5424
5425 2019-10-29 Richard Biener <rguenther@suse.de>
5426
5427 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
5428 example.
5429
5430 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5431
5432 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
5433 index for the COND_EXPR from stmt_info rather than reduc_info.
5434
5435 2019-10-29 Richard Biener <rguenther@suse.de>
5436
5437 PR tree-optimization/65930
5438 * tree-vect-loop.c (check_reduction_path): Relax single-use
5439 check allowing out-of-loop uses.
5440 (vect_is_simple_reduction): SLP reduction chains cannot have
5441 intermediate stmts used outside of the loop.
5442 (vect_create_epilog_for_reduction): The adjustment might need
5443 to be converted.
5444 (vectorizable_reduction): Annotate live stmts of the reduction
5445 chain with STMT_VINFO_REDUC_DEF.
5446 * tree-vect-stms.c (process_use): Remove no longer true asserts.
5447
5448 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5449
5450 * calls.c (pass_by_reference): Leave the target to decide whether
5451 POLY_INT_CST-sized arguments should be passed by value or reference,
5452 rather than forcing them to be passed by reference.
5453 (must_pass_in_stack_var_size): Likewise.
5454 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
5455 V31_REGNUM to P15_REGNUM.
5456 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
5457 Take an extra "silent_p" parameter, defaulting to false.
5458 (aarch64_sve::svbool_type_p): Declare.
5459 (aarch64_sve::nvectors_if_data_type): Likewise.
5460 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
5461 (aarch64_frame::reg_offset): Turn into poly_int64s.
5462 (aarch64_frame::save_regs_size): Likewise.
5463 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
5464 (aarch64_frame::sve_callee_adjust): Likewise.
5465 (aarch64_frame::spare_reg_reg): Likewise.
5466 (ARM_PCS_SVE): New arm_pcs value.
5467 (CUMULATIVE_ARGS::aapcs_nprn): New field.
5468 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
5469 (CUMULATIVE_ARGS::silent_p): Likewise.
5470 (BITS_PER_SVE_PRED): New macro.
5471 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
5472 function. Reject aarch64_vector_pcs attributes on SVE functions.
5473 (aarch64_attribute_table): Use the above handler.
5474 (aarch64_sve_abi): New function.
5475 (aarch64_sve_argument_p): Likewise.
5476 (aarch64_returns_value_in_sve_regs_p): Likewise.
5477 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
5478 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
5479 descriptor for them.
5480 (aarch64_simd_decl_p): Delete.
5481 (aarch64_emit_cfi_for_reg_p): New function.
5482 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
5483 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
5484 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
5485 as partly clobbered for the SVE PCS.
5486 (aarch64_function_ok_for_sibcall): Check whether the two functions
5487 use the same ABI, rather than checking specifically for whether
5488 they're aarch64_vector_pcs functions.
5489 (aarch64_pass_by_reference): Raise an error for attempts to pass
5490 SVE arguments when SVE is disabled. Pass SVE arguments by reference
5491 if there are not enough free registers left, or if the argument is
5492 variadic.
5493 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
5494 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
5495 tuples in memory.
5496 (aarch64_layout_arg): Take a function_arg_info rather than
5497 individual properties. Handle SVE predicates, vectors and tuples.
5498 Raise an error if they are passed to unprototyped functions.
5499 (aarch64_function_arg): If the silent_p flag is set, suppress the
5500 usual error about using float registers without TARGET_FLOAT.
5501 (aarch64_init_cumulative_args): Take a silent_p parameter and store
5502 it in the cumulative_args structure. Initialize aapcs_nprn and
5503 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
5504 error about using float registers without TARGET_FLOAT.
5505 If the silent_p flag is not set, also raise an error about
5506 using SVE functions when SVE is disabled.
5507 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
5508 and call it for SVE functions too. Update aapcs_nprn similarly
5509 to the other register counts.
5510 (aarch64_layout_frame): If a big-endian function needs to save
5511 and restore Z8-Z15, search for a spare predicate that it can use.
5512 Store SVE predicates at the bottom of the register save area,
5513 followed by SVE vectors, then followed by the normal slots.
5514 Keep pointing the hard frame pointer at the base of the normal slots,
5515 above the SVE vectors. Update the various frame creation and
5516 tear-down strategies for the new layout, initializing the new
5517 sve_callee_adjust field. Add an additional layout for frames
5518 whose saved registers are all SVE registers.
5519 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
5520 (aarch64_return_address_signing_enabled): Likewise.
5521 (aarch64_push_regs, aarch64_pop_regs): Update calls to
5522 aarch64_reg_save_mode.
5523 (aarch64_adjust_sve_callee_save_base): New function.
5524 (aarch64_add_cfa_expression): Move earlier in file. Take the
5525 saved register as an rtx rather than a register number and use
5526 its mode for the MEM slot.
5527 (aarch64_save_callee_saves): Remove the mode argument and instead
5528 use aarch64_reg_save_mode to get the mode of each save slot.
5529 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
5530 offsets. Allow GP offsets to be saved at a VL-based offset from
5531 the stack, handling this case using the frame pointer if available
5532 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
5533 big-endian SVE functions; use normal moves for other SVE saves.
5534 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
5535 returns true. Add explicit CFA notes when not storing via the
5536 stack pointer. Do not try to pair SVE saves.
5537 (aarch64_restore_callee_saves): Cope with poly_int64 register
5538 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
5539 use normal moves for other SVE restores. Only add CFA restore notes
5540 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
5541 SVE restores.
5542 (aarch64_get_separate_components): Always keep the first SVE save
5543 in the prologue if we need to use it as a stack probe. Don't allow
5544 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
5545 Likewise the spare predicate register that they need. Update the
5546 offset calculation to account for the SVE save area. Use the
5547 appropriate range check for SVE LDR and STR instructions.
5548 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
5549 (aarch64_process_components): Likewise. Update the offset
5550 calculation to account for the SVE save area. Only mark the
5551 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
5552 Do not try to pair SVE saves.
5553 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
5554 reg_offsets. When handling the final allocation, expect the
5555 first SVE register save to be part of the initial allocation
5556 and for it to act as a probe at SP. Account for the SVE callee
5557 save area in the dump information.
5558 (aarch64_expand_prologue): Update the frame diagram. Fold the
5559 SVE callee allocation into the initial allocation if stack clash
5560 protection is enabled. Use new variables to track the offset
5561 of the frame chain (and hard frame pointer) from the current
5562 stack pointer, and likewise the offset of the bottom of the
5563 register save area. Update calls to aarch64_save_callee_saves
5564 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
5565 saving the FP&SIMD registers. Save the predicate registers.
5566 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
5567 into account when setting the stack pointer from the frame pointer,
5568 and when deciding whether we can inherit the initial adjustment
5569 amount from the prologue. Restore the predicate registers after
5570 the vector registers, then apply sve_callee_adjust, then restore
5571 the general registers.
5572 (aarch64_secondary_reload): Don't use secondary SVE reloads
5573 for VNx16BImode.
5574 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
5575 (aarch64_short_vector_p): Return false for SVE types.
5576 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
5577 at the start of the function. Return false for SVE types.
5578 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
5579 functions too.
5580 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
5581 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
5582 to big-endian targets for bytewise moves.
5583 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
5584
5585 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5586 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5587 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5588
5589 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
5590 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
5591 aarch64-sve-builtins-base.o to extra_objs. Add
5592 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
5593 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
5594 (aarch64-sve-builtins-shapes.o): Likewise.
5595 (aarch64-sve-builtins-base.o): New rules.
5596 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
5597 (aarch64_resolve_overloaded_builtin): Likewise.
5598 (aarch64_check_builtin_call): Likewise.
5599 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
5600 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
5601 pragma.
5602 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
5603 (aarch64_svprfop): New enum.
5604 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
5605 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
5606 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
5607 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5608 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
5609 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
5610 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
5611 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
5612 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
5613 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
5614 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
5615 (aarch64_sve::mangle_builtin_type): Likewise.
5616 (aarch64_sve::resolve_overloaded_builtin): Likewise.
5617 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
5618 (aarch64_sve::expand_builtin): Likewise.
5619 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
5620 (aarch64_sve_int_mode): Likewise.
5621 (aarch64_ptrue_all_mode): New function.
5622 (aarch64_convert_sve_data_to_pred): Make public.
5623 (svprfop_token): New function.
5624 (aarch64_output_sve_prefetch): Likewise.
5625 (aarch64_fold_sve_cnt_pat): Likewise.
5626 (aarch64_output_sve_cnt_pat_immediate): Likewise.
5627 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
5628 instead of gen_while_ult.
5629 (aarch64_replace_reg_mode): Make public.
5630 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
5631 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
5632 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
5633 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
5634 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
5635 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
5636 (aarch64_sve_ptrue_svpattern_p): Likewise.
5637 (aarch64_sve_pred_valid_immediate): Check
5638 aarch64_sve_ptrue_svpattern_p.
5639 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
5640 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
5641 functions.
5642 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
5643 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
5644 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
5645 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
5646 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
5647 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
5648 New unspecs.
5649 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
5650 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
5651 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
5652 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
5653 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
5654 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
5655 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
5656 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
5657 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
5658 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
5659 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
5660 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
5661 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
5662 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
5663 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
5664 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
5665 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
5666 (Vesize): Handle partial vector modes.
5667 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
5668 mode attributes.
5669 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
5670 iterators.
5671 (s, paired_extend, inc_dec): New code attributes.
5672 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
5673 (SVE_INT_UNARY): Add UNSPEC_RBIT.
5674 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
5675 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
5676 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
5677 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
5678 UNSPEC_COND_FMULX.
5679 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
5680 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
5681 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
5682 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
5683 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
5684 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
5685 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
5686 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
5687 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
5688 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
5689 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
5690 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
5691 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
5692 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
5693 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
5694 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
5695 UNSPEC_COND_FSCALE.
5696 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
5697 (binqops_op, binqops_op_rev, last_op): New int attributes.
5698 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
5699 (fn, ab): New int attributes.
5700 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
5701 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
5702 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
5703 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
5704 UNSPEC_RBIT.
5705 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
5706 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
5707 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
5708 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
5709 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
5710 UNSPEC_COND_FMULX.
5711 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
5712 (brk_reg_con, brk_reg_opno): New int attributes.
5713 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
5714 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
5715 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
5716 UNSPEC_COND_FMIN.
5717 (max_elem_bits): New int attribute.
5718 (min_elem_bits): Handle UNSPEC_RBIT.
5719 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
5720 TRUNCATE as well as SUBREG.
5721 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
5722 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
5723 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
5724 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
5725 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
5726 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
5727 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
5728 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
5729 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
5730 (aarch64_gather_scale_operand_h): New predicates.
5731 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
5732 (vgd, vgh, vgw, vsQ, vsS): New constraints.
5733 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
5734 (*aarch64_sve_reinterpret<mode>): Allow any source register
5735 instead of requiring an exact match.
5736 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
5737 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
5738 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
5739 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
5740 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
5741 (aarch64_update_ffrt): New patterns.
5742 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
5743 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5744 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5745 (@aarch64_ld<fn>f1<mode>): New patterns.
5746 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
5747 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5748 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5749 (@aarch64_ldnt1<mode>): New patterns.
5750 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
5751 the scalar part of the address.
5752 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
5753 scalar part of the addresse and add an alternative for handling
5754 nonzero offsets.
5755 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
5756 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
5757 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5758 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5759 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
5760 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
5761 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
5762 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
5763 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
5764 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
5765 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
5766 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
5767 (@aarch64_sve_prefetch<mode>): New patterns.
5768 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
5769 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
5770 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
5771 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
5772 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
5773 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
5774 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
5775 (@aarch64_stnt1<mode>): New patterns.
5776 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
5777 the scalar part of the address.
5778 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
5779 the scalar part of the addresse and add an alternative for handling
5780 nonzero offsets.
5781 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
5782 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
5783 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
5784 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
5785 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
5786 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
5787 New patterns.
5788 (vec_duplicate<mode>): Use QI as the mode of the input operand.
5789 (extract_last_<mode>): Generalize to...
5790 (@extract_<LAST:last_op>_<mode>): ...this.
5791 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
5792 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
5793 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
5794 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
5795 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
5796 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
5797 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
5798 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
5799 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
5800 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
5801 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
5802 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
5803 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
5804 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
5805 (*aarch64_adr_uxtw_unspec): Likewise.
5806 (*aarch64_adr_uxtw): Rename to...
5807 (*aarch64_adr_uxtw_and): ...this.
5808 (@aarch64_adr<mode>_shift): New expander.
5809 (*aarch64_adr_shift_sxtw): New pattern.
5810 (aarch64_<su>abd<mode>_3): Rename to...
5811 (@aarch64_pred_<su>abd<mode>): ...this.
5812 (<su>abd<mode>_3): Update accordingly.
5813 (@aarch64_cond_<su>abd<mode>): New expander.
5814 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
5815 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
5816 (*<su>mul<mode>3_highpart): Rename to...
5817 (@aarch64_pred_<optab><mode>): ...this.
5818 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
5819 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
5820 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
5821 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
5822 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
5823 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
5824 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
5825 (*v<ASHIFT:optab><mode>3): Rename to...
5826 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
5827 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
5828 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
5829 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
5830 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
5831 (@cond_asrd<mode>): New expander.
5832 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
5833 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
5834 (*sdiv_pow2<mode>3): Delete.
5835 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
5836 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
5837 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
5838 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
5839 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
5840 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
5841 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
5842 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
5843 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
5844 (*add<SVE_F:mode>3): Rename to...
5845 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
5846 for SVE_STRICT_GP.
5847 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
5848 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
5849 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
5850 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
5851 (*sub<SVE_F:mode>3): Rename to...
5852 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
5853 for SVE_STRICT_GP.
5854 (@aarch64_pred_abd<SVE_F:mode>): New expander.
5855 (*fabd<SVE_F:mode>3): Rename to...
5856 (*aarch64_pred_abd<SVE_F:mode>): ...this.
5857 (@aarch64_cond_abd<SVE_F:mode>): New expander.
5858 (*mul<SVE_F:mode>3): Rename to...
5859 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
5860 for SVE_STRICT_GP.
5861 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
5862 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
5863 to...
5864 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
5865 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
5866 (*<nlogical><PRED_ALL:mode>3): Rename to...
5867 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
5868 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
5869 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
5870 (*<logical_nn><PRED_ALL:mode>3): Rename to...
5871 (aarch64_pred_<logical_nn><mode>_z): ...this.
5872 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
5873 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
5874 (*fma<SVE_I:mode>4): Rename to...
5875 (@aarch64_pred_fma<SVE_I:mode>): ...this.
5876 (*fnma<SVE_I:mode>4): Rename to...
5877 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
5878 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
5879 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
5880 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
5881 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
5882 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
5883 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
5884 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
5885 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
5886 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
5887 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
5888 (@aarch64_sve_tmad<mode>): Likewise.
5889 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
5890 (*aarch64_sel_dup<mode>): Rename to...
5891 (@aarch64_sel_dup<mode>): ...this.
5892 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
5893 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
5894 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
5895 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
5896 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
5897 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
5898 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
5899 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
5900 (*fcm<cmp_op><mode>): Rename to...
5901 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
5902 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5903 (*fcmuo<mode>): Rename to...
5904 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
5905 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5906 (@aarch64_pred_fac<cmp_op><mode>): New expander.
5907 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
5908 (fold_extract_last_<mode>): Generalize to...
5909 (@fold_extract_<last_op>_<mode>): ...this.
5910 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
5911 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
5912 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
5913 DImode result explicit.
5914 (reduc_plus_scal_<mode>): Update accordingly.
5915 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
5916 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
5917 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
5918 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
5919 (*aarch64_sve_tbl<mode>): Rename to...
5920 (@aarch64_sve_tbl<mode>): ...this.
5921 (@aarch64_sve_compact<mode>): New pattern.
5922 (*aarch64_sve_dup_lane<mode>): Rename to...
5923 (@aarch64_sve_dup_lane<mode>): ...this.
5924 (@aarch64_sve_dupq_lane<mode>): New pattern.
5925 (@aarch64_sve_splice<mode>): Likewise.
5926 (aarch64_sve_<perm_insn><mode>): Rename to...
5927 (@aarch64_sve_<perm_insn><mode>): ...this.
5928 (*aarch64_sve_ext<mode>): Rename to...
5929 (@aarch64_sve_ext<mode>): ...this.
5930 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
5931 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
5932 to...
5933 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
5934 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5935 Rename to...
5936 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5937 ...this.
5938 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
5939 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
5940 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
5941 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
5942 to...
5943 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
5944 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
5945 a "@" marker.
5946 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
5947 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
5948 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
5949 pattern.
5950 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
5951 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
5952 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
5953 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
5954 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
5955 "@" marker.
5956 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
5957 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
5958 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
5959 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
5960 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
5961 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
5962 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
5963 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
5964 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
5965 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
5966 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
5967 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
5968 (aarch64_sve_cnt_pat): Likewise.
5969 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5970 (*aarch64_sve_incsi_pat): Likewise.
5971 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5972 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5973 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5974 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5975 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5976 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5977 (*aarch64_sve_decsi_pat): Likewise.
5978 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5979 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5980 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5981 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5982 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5983 (@aarch64_pred_cntp<mode>): Likewise.
5984 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
5985 New expander.
5986 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
5987 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
5988 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5989 New expander.
5990 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5991 New pattern.
5992 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
5993 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
5994 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
5995 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
5996 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
5997 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
5998 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
5999 New expander.
6000 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6001 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6002 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6003 New expander.
6004 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6005 New pattern.
6006 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6007 expander.
6008 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6009 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6010 expander.
6011 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6012 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6013 expander.
6014 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6015 * config/aarch64/arm_sve.h: New file.
6016 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6017 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6018 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6019 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6020 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6021 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6022 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6023 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6024 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6025
6026 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6027
6028 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6029 New pattern.
6030 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6031 SVE modes.
6032
6033 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6034
6035 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6036 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6037 FFRT_REGNUM + 1.
6038 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6039 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6040 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6041 (aarch64_hard_regno_nregs): Handle the new register classes.
6042 (aarch64_hard_regno_mode_ok): Likewise.
6043 (aarch64_regno_regclass): Likewise.
6044 (aarch64_class_max_nregs): Likewise.
6045 (aarch64_register_move_cost): Likewise.
6046 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6047 as general register_operands.
6048
6049 2019-10-29 Martin Liska <mliska@suse.cz>
6050
6051 * ggc-common.c: One can't subtract unsigned types
6052 in compare function.
6053
6054 2019-10-29 Martin Liska <mliska@suse.cz>
6055
6056 * cgraphunit.c (symbol_table::compile): Pass
6057 title as dump_memory_report argument.
6058 * toplev.c (dump_memory_report): New argument.
6059 (finalize): Pass new argument.
6060 * toplev.h (dump_memory_report): Add argument.
6061
6062 2019-10-29 Martin Liska <mliska@suse.cz>
6063
6064 * ggc-common.c: Move Leak to the first column.
6065
6066 2019-10-29 Martin Liska <mliska@suse.cz>
6067
6068 * cgraphunit.c (symbol_table::compile): Remove argument
6069 for dump_memory_report.
6070 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6071 (compare_final): Remove in order to make report
6072 better readable.
6073 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6074 * mem-stats.h (mem_alloc_description::get_list):
6075 Do not pass cmp.
6076 (mem_alloc_description::dump): Likewise here.
6077 * toplev.c (dump_memory_report): Remove final
6078 argument.
6079 (finalize): Likewise.
6080 * toplev.h (dump_memory_report): Remove argument.
6081
6082 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6083
6084 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6085 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6086 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6087 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6088 accept "const".
6089
6090 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6091
6092 * coretypes.h (string_int_pair): New typedef.
6093 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6094 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6095 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6096
6097 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6098
6099 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6100 (simulate_builtin_function_decl): Declare.
6101 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6102 (LANG_HOOKS_INITIALIZER): Include it.
6103 * langhooks.c (add_builtin_function_common): Rename to...
6104 (build_builtin_function): ...this. Add a location parameter and use
6105 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6106 the decl instead.
6107 (add_builtin_function): Update accordingly, passing the returned
6108 decl to the lang hook.
6109 (add_builtin_function_ext_scope): Likewise
6110 (simulate_builtin_function_decl): New function.
6111
6112 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6113
6114 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6115 example, use actual names of supported offload targets.
6116
6117 PR target/92258
6118 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6119
6120 2019-10-28 Martin Sebor <msebor@redhat.com>
6121
6122 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6123 (handle_store): Pass argument to get_addr_stridx.
6124
6125 2019-10-28 Martin Sebor <msebor@redhat.com>
6126
6127 PR tree-optimization/92226
6128 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6129 the offset is in the open range outlined by SI's length.
6130
6131 2019-10-28 Martin Sebor <msebor@redhat.com>
6132
6133 PR c/66970
6134 * doc/cpp.texi (__has_builtin): Document.
6135 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6136
6137 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6138
6139 PR target/82981
6140 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6141 doubleword and low doubleword result of multiplication on
6142 MIPS64R6.
6143
6144 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6145 pure qualifier to the built-in.
6146 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6147 built-ins.
6148 (struct mips_builtin_description): Add is_pure flag.
6149 (mips_init_builtins): Mark built-in as pure if the flag in the
6150 corresponding mips_builtin_description struct is set.
6151
6152 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6153 alternative which covers the floating-point input value. Also
6154 forbid the split of insert.d pattern for floating-point values.
6155
6156 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6157
6158 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6159 * config/riscv/riscv-sr.c: New file.
6160 * config/riscv/riscv.c (riscv_reorg): New function.
6161 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6162 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6163 (riscv_remove_unneeded_save_restore_calls): Declare.
6164 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6165
6166 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6167
6168 PR tree-optimization/92163
6169 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6170 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6171 before calling bitmap_set_bit.
6172 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6173 delete_dead_or_redundant_assignment.
6174 (dse_dom_walker::dse_optimize_stmt): Likewise.
6175 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6176
6177 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6178
6179 PR middle-end/91272
6180 * tree-vect-stmts.c (vectorizable_condition): Support
6181 EXTRACT_LAST_REDUCTION with fully-masked loops.
6182
6183 2019-10-28 Richard Biener <rguenther@suse.de>
6184
6185 PR tree-optimization/92252
6186 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6187 STMT_VINFO_REDUC_IDX when swapping operands.
6188
6189 2019-10-28 Richard Biener <rguenther@suse.de>
6190
6191 PR tree-optimization/92241
6192 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6193 we failed to update the reduction index do not use the pattern
6194 stmts for the reduction chain.
6195 (vectorizable_reduction): When the reduction chain is corrupt,
6196 fail.
6197 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6198 fail to update the reduction chain.
6199
6200 2019-10-28 Richard Biener <rguenther@suse.de>
6201
6202 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6203 STMT_VINFO_REDUC_IDX from the actual stmt.
6204 (vect_transform_reduction): Likewise.
6205 (vectorizable_reduction): Compute the reduction chain length,
6206 do not recompute the reduction operand index. Remove no longer
6207 necessary restriction for condition reduction chains.
6208
6209 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6210
6211 PR target/92225
6212 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6213 condition for V2DImode.
6214
6215 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6216
6217 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6218 Remove %k operand modifier.
6219 (*vec_extractv2df_1_sse): Remove %q operand modifier.
6220
6221 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
6222
6223 PR rtl-optimization/92007
6224 * cfgcleanup.c (thread_jump): Add an assertion that we don't
6225 call it after reload if hot/cold partitioning has been done.
6226 (class pass_postreload_jump): Rename to
6227 pass_jump_after_combine.
6228 (make_pass_postreload_jump): Rename to
6229 make_pass_jump_after_combine.
6230 * passes.def(pass_postreload_jump): Move before reload, rename
6231 to pass_jump_after_combine.
6232 * tree-pass.h (make_pass_postreload_jump): Rename to
6233 make_pass_jump_after_combine.
6234
6235 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
6236
6237 PR ipa/92242
6238 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6239 for missing EDGE_REF
6240 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6241
6242 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6243
6244 PR tree-optimization/88760
6245 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6246 Enable -funroll-loops for -O2 and above.
6247 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6248 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6249 do not turn on web and rngreg implicitly, if the unroller is not
6250 explicitly enabled.
6251
6252 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6253
6254 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6255 jump functions.
6256
6257 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6258
6259 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6260 * cgraph.h (cgraph_node::rtl_info): Likewise.
6261
6262 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6263
6264 * ipa-cp.c (propagate_constants_across_call): If args are not available
6265 just drop everything to varying.
6266 (find_aggregate_values_for_callers_subset): Watch for missing
6267 edge summary.
6268 (find_more_scalar_values_for_callers_subs): Likewise.
6269 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6270 update_jump_functions_after_inlining, propagate_controlled_uses):
6271 Watch for missing summaries.
6272 (ipa_propagate_indirect_call_infos): Remove summary after propagation
6273 is finished.
6274 (ipa_write_node_info): Watch for missing summaries.
6275 (ipa_read_edge_info): Create new ref.
6276 (ipa_edge_args_sum_t): Add remove.
6277 (IPA_EDGE_REF_GET_CREATE): New macro.
6278 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
6279 edge summary.
6280 (remap_edge_change_prob): Likewise.
6281
6282 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6283
6284 * ipa-inline-transform.c (inline_call): update function summaries
6285 after expanidng thunk.
6286
6287 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6288
6289 * ipa-icf.c (sem_function::merge): Update function summaries.
6290 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
6291
6292 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
6293
6294 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
6295 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
6296 operand already has scalar mode.
6297 (iptr): Remove SF/DF.
6298
6299 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
6300
6301 PR target/91289
6302 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
6303 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
6304 this.
6305
6306 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6307
6308 * config/i386/sse.md
6309 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
6310 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
6311 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
6312 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
6313 <sse>_vmmaskcmp<mode>3):
6314 Change predicates from vector_operand to nonimmediate_operand,
6315 constraints xBm to xm, since scalar operations don't need
6316 memory address alignment.
6317 (avx512f_vmcmp<mode>3<round_saeonly_name>,
6318 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
6319 round_saeonly_nimm_predicate with
6320 round_saeonly_nimm_scalar_predicate.
6321 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
6322 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
6323 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
6324 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
6325 avx512f_vmfmadd_<mode>_mask3<round_name>,
6326 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
6327 *avx512f_vmfmsub_<mode>_mask<round_name>,
6328 avx512f_vmfmsub_<mode>_mask3<round_name>,
6329 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
6330 *avx512f_vmfnmadd_<mode>_mask<round_name>,
6331 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
6332 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
6333 *avx512f_vmfnmsub_<mode>_mask<round_name>,
6334 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
6335 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
6336 cvtusi2<ssescalarmodesuffix>32<round_name>,
6337 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
6338 round_nimm_predicate with round_nimm_scalr_predicate.
6339 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
6340 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
6341 avx512er_vmrcp28<mode><round_saeonly_name>,
6342 avx512er_vmrsqrt28<mode><round_saeonly_name>,
6343 ): Replace round_saeonly_nimm_predicate with
6344 round_saeonly_nimm_scalar_predicate.
6345 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
6346 vector_operand with nonimmediate_operand.
6347 * config/i386/subst.md (round_scalar_nimm_predicate,
6348 round_saeonly_scalar_nimm_predicate): Replace
6349 vector_operand with nonimmediate_operand.
6350
6351 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
6352
6353 PR target/89071
6354 * config/i386/i386.md (*rcpsf2_sse): Add
6355 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
6356 (*rsqrtsf2_sse): Ditto.
6357 (*sqrt<mode>2_sse): Ditto.
6358 (sse4_1_round<mode>2): separate constraint vm, add
6359 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
6360 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
6361 by pass rpad.
6362 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
6363 Ditto.
6364 (*sse_vmrsqrtv4sf2): Ditto.
6365 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
6366 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
6367 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
6368 <iptr> pointer size modifier since vround support memory operand.
6369
6370 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
6371
6372 PR target/85969
6373 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
6374 static function.
6375
6376 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6377 Tobias Burnus <tobias@codesourcery.com>
6378
6379 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
6380 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
6381 common block decls.
6382
6383 2019-10-25 Richard Biener <rguenther@suse.de>
6384
6385 PR tree-optimization/92222
6386 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
6387 (_slp_oprnd_info::second_pattern): Likewise.
6388 (_slp_oprnd_info::any_pattern): New.
6389 (vect_create_oprnd_info): Adjust.
6390 (vect_get_and_check_slp_defs): Compute whether any stmt is
6391 in a pattern.
6392 (vect_build_slp_tree_2): Avoid building up a node from scalars
6393 if any of the operand defs, not just the first, is in a pattern.
6394
6395 2019-10-25 Richard Biener <rguenther@suse.de>
6396
6397 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
6398 swapping if we actually have to modify the IL on a shared stmt.
6399 (vect_build_slp_tree_2): Never fail swapping on shared stmts
6400 because we no longer modify the IL.
6401
6402 2019-10-25 Martin Liska <mliska@suse.cz>
6403
6404 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
6405
6406 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
6407
6408 * tree-vect-loop.c (vectorizable_reduction): Restrict the
6409 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
6410 handled by vect_transform_reduction. Allow fully-masked loops
6411 to be used with reduction chains.
6412 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
6413 operations in fully-masked loops.
6414 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
6415 operations in fully-masked loops.
6416
6417 2019-10-25 Richard Biener <rguenther@suse.de>
6418
6419 * tree-vect-loop.c (vectorizable_reduction): Verify
6420 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
6421 correctly.
6422 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
6423 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
6424 stmts.
6425
6426 2019-10-24 Jakub Jelinek <jakub@redhat.com>
6427
6428 * gimplify.h (omp_construct_selector_matches): Declare.
6429 * gimplify.c (struct gimplify_omp_ctx): Add code member.
6430 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
6431 called function if needed for flag_openmp.
6432 (gimplify_scan_omp_clauses): Set ctx->code.
6433 (omp_construct_selector_matches): New function.
6434 * omp-general.h (omp_constructor_traits_to_codes,
6435 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
6436 * omp-general.c (omp_constructor_traits_to_codes,
6437 omp_context_selector_matches, omp_resolve_declare_variant): New
6438 functions.
6439
6440 * config/arc/arc.c (hwloop_optimize): Add missing space in string
6441 literal.
6442 * config/rx/rx.c (rx_print_operand): Likewise.
6443 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6444 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6445 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
6446 Likewise.
6447 * genemit.c (emit_c_code): Likewise.
6448 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
6449
6450 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6451
6452 * symbols-summary.h (fast_function_summary<T *, V>::release,
6453 fast_call_summary<T *, V>::release): Free m_vector.
6454
6455 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6456
6457 * cgraphunit.c (symbol_table::process_new_functions): Call
6458 ipa_free_size_summary.
6459 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
6460 (devirtualization_time_bonus): Update.
6461 (ipcp_propagate_stage): Update.
6462 * ipa-fnsummary.c (ipa_size_summaries): New.
6463 (ipa_fn_summary_alloc): Alloc size summary.
6464 (dump_ipa_call_summary): Update.
6465 (ipa_dump_fn_summary): Update.
6466 (analyze_function_body): Update.
6467 (compute_fn_summary): Likewise.
6468 (ipa_get_stack_frame_offset): New function.
6469 (inline_update_callee_summaries): Do not update frame offsets.
6470 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
6471 remove call and function summary.
6472 (ipa_update_overall_fn_summary): Update.
6473 (inline_read_section): Update.
6474 (ipa_fn_summary_write): Update.
6475 (ipa_free_fn_summary): Do not remove summaries.
6476 (ipa_free_size_summary): New.
6477 (release summary pass): Also run at WPA.
6478 * ipa-fnsummary.h (ipa_size_summary): Declare.
6479 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
6480 estimated_self_stack_size.
6481 (ipa_size_summary_t): New type.
6482 (ipa_size_summaries): Declare.
6483 (ipa_free_size_summary): Declare.
6484 (ipa_get_stack_frame_offset): Declare.
6485 * ipa-icf.c (sem_function::merge): Update.
6486 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
6487 (estimate_growth): Update.
6488 (growth_likely_positive): Update.
6489 (clone_inlined_nodes): Update.
6490 (inline_call): Update.
6491 * ipa-inline.c (caller_growth_limits): Update.
6492 (edge_badness): Update.
6493 (recursive_inlining): Update.
6494 (inline_small_functions): Update.
6495 (inline_to_all_callers_1): Update.
6496 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
6497
6498 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
6499
6500 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
6501 (uavg<mode>3_ceil): ... This.
6502 (altivec_vavgs<VI_char>): Rename to...
6503 (avg<mode>3_ceil): ... This.
6504 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
6505 VAVGUW, VAVGSW): Adjust.
6506
6507 2019-10-24 Nathan Sidwell <nathan@acm.org>
6508
6509 * dumpfile.c (dump_begin): Reorder decls to use RAII.
6510
6511 2019-10-24 Martin Liska <mliska@suse.cz>
6512
6513 * symbol-summary.h (gt_pch_nx): Mark all functions
6514 with gcc_unreachable as we do not expect to be called.
6515
6516 2019-10-24 Richard Biener <rguenther@suse.de>
6517
6518 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
6519 chains try harder with operand swapping and instead of
6520 putting a shifted chain into the reduction operands put
6521 a repetition of the final reduction op there as if we'd
6522 reassociate the expression.
6523
6524 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
6525
6526 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
6527 statics_not_read and statics_not_written to statics_read and
6528 statics_written respectively.
6529 (no_module_statics): New static var.
6530 (ipa_reference_get_not_read_global): Rename to ...
6531 (ipa_reference_get_read_global): ... this.
6532 (ipa_reference_get_not_written_global): Rename to ...
6533 (ipa_reference_get_written_global): ... this.
6534 (dump_static_vars_set_to_file): Dump no_module_statics.
6535 (copy_static_var_set): Add for propagation parameter.
6536 (ipa_init): Initialize no_module_statics.
6537 (ipa_ref_opt_summary_t::duplicate): Update.
6538 (ipa_ref_opt_summary_t::remove): Update.
6539 (propagate): Update.
6540 (write_node_summary_p): Look correctly for bitmap differences.
6541 (ipa_reference_write_optimization_summary): Update.
6542 (ipa_reference_read_optimization_summary): Update.
6543 * ipa-reference.h
6544 (ipa_reference_get_not_read_global): Rename to ...
6545 (ipa_reference_get_read_global): ... this.
6546 (ipa_reference_get_not_written_global): Rename to ...
6547 (ipa_reference_get_written_global): ... this.
6548 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
6549 (call_may_clobber_ref_p_1): Update.
6550
6551 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6552
6553 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
6554 and add comment.
6555 (msp430_hard_regno_nregs_with_padding): Remove.
6556
6557 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6558
6559 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
6560 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
6561 shift amount is between 1 and 4.
6562 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
6563 is between 1 and 4.
6564
6565 2019-10-24 Richard Biener <rguenther@suse.de>
6566
6567 PR tree-optimization/92205
6568 * tree-vect-loop.c (vectorizable_reduction): Restrict
6569 search for alternate vectype_in to lane-reducing patterns
6570 we support.
6571
6572 2019-10-24 Richard Biener <rguenther@suse.de>
6573
6574 PR tree-optimization/92203
6575 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
6576 Skip eliminating conversion stmts inserted by insertion.
6577
6578 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
6579
6580 * config/s390/s390.c (s390_get_thread_pointer): Use
6581 gen_get_thread_pointer.
6582 (s390_expand_split_stack_prologue): Likewise.
6583 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
6584 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
6585 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
6586 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
6587 parameterized name.
6588
6589 2019-10-24 Richard Biener <rguenther@suse.de>
6590
6591 * tree-vect-slp.c (vect_analyze_slp): When reduction group
6592 SLP discovery fails try to handle the reduction as part
6593 of SLP reduction discovery.
6594
6595 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
6596
6597 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
6598 declaration.
6599 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
6600 attribute if it exists, rather than the insn size. If we use the
6601 insn size, adjust the size to remove the extra size that prefixed
6602 instructions take.
6603 (rs6000_adjust_insn_length): New function.
6604 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
6605 update the instruction sized if prefixed instructions are used.
6606 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
6607 (non_prefixed_length attribute): Delete.
6608 (num_insns attribute): New insn attribute to return the number of
6609 instructions.
6610 (max_prefixed_insns attribute): New insn attribute to return the
6611 maximum number of prefixed instructions in an insn.
6612 (length attribute): Do not adjust for prefix instructions here,
6613 punt to ADJUST_INSN_LENGTH.
6614 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
6615 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
6616 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
6617 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
6618 max_prefixed_insns and num_insns.
6619
6620 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
6621 (movtd_64bit_nodm): Reformat.
6622 (mov<mode>_32bit): Reformat.
6623 (mov<mode>_softfloat): Reformat.
6624 (FMOVE128_GPR splitter): Reformat.
6625 (DIFD splitter): Reformat.
6626 (TI2 splitter): Reformat.
6627 * config/rs6000/predicates.md (lwa_operand): If the bottom two
6628 bits of the offset for the memory address are non-zero, use PLWA
6629 if prefixed instructions are available.
6630
6631 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6632
6633 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
6634
6635 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6636
6637 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
6638 previous patch.
6639
6640 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6641
6642 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
6643 (cmp_symbol_files): New.
6644 (lto_output): Copy sections in file order.
6645 * lto-streamer.h (lto_file_decl_data): Add field order.
6646
6647 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6648
6649 * ipa-reference.h (ipa_reference_var_uid): Move offline.
6650 * ipa-reference.c (reference_vars_map_t): new type.
6651 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
6652 (ipa_reference_var_uid): Implement.
6653 (varpool_node_hooks): New static var.
6654 (varpool_removal_hook): New function.
6655 (is_improper): Do not check bitmap for id==-1
6656 (get_static_name): Update.
6657 (ipa_init): Initialize new datastructures.
6658 (analyze_function): Do not recompute ids.
6659 (propagate): Free reference_vars_to_consider.
6660 (stream_out_bitmap): Update.
6661 (ipa_reference_read_optimization_summary): Update.
6662
6663 2019-10-23 qing zhao <qing.zhao@oracle.com>
6664
6665 PR gcov-profile/91971
6666 * coverage.c (coverage_init): Mangle the full path of filename when
6667 filename is a absolute path.
6668
6669 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6670
6671 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
6672 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
6673 (msp430_has_hwmult): New.
6674 (msp430_output_labelref):
6675 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
6676 * config/msp430/msp430.md (mulhisi3): Likewise.
6677 (umulhisi3): Likewise.
6678 (mulsidi3): Likewise.
6679 (umulsidi3): Likewise.
6680
6681 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
6682
6683 PR ipa/92074
6684 * params.def (inline-heuristics-hint-percent): Set to 600.
6685
6686 2019-10-23 Richard Biener <rguenther@suse.de>
6687
6688 PR tree-optimization/65930
6689 * tree-vect-loop.c (check_reduction_path): Allow conversions
6690 that only change the sign.
6691 (vectorizable_reduction): Relax latch def stmts we handle further.
6692
6693 2019-10-23 Jakub Jelinek <jakub@redhat.com>
6694
6695 PR debug/90231
6696 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
6697 (remove_unused_ivs): Use it instead of get_computation_at. When
6698 choosing best candidate, only consider candidates where
6699 get_debug_computation_at actually returns non-NULL.
6700
6701 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
6702
6703 PR tree-optimization/92131
6704 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
6705 range would be symbolic, drop to varying for any explicit overflow
6706 in the constant part or if neither range is a singleton.
6707
6708 2019-10-23 Martin Liska <mliska@suse.cz>
6709
6710 PR middle-end/81669
6711 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
6712 Initialize m_data.
6713
6714 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
6715
6716 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
6717 int_mode_for_mode rather than mode_for_int_vector for scalars.
6718
6719 2019-10-23 Richard Biener <rguenther@suse.de>
6720
6721 PR tree-optimization/92179
6722 * tree-vect-stmts.c (vectorizable_shift): For shift args
6723 that are all the same remove type restriction in the SLP case.
6724 Adjust SLP code to handle converting of the shift arg to
6725 only apply in case the modes are different.
6726
6727 2019-10-23 Martin Liska <mliska@suse.cz>
6728
6729 PR ipa/91969
6730 * ipa-inline.c (recursive_inlining): Do not print
6731 when curr->count is not initialized.
6732
6733 2019-10-23 Richard Biener <rguenther@suse.de>
6734
6735 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
6736 op from scalars in case there's a constant operand in its
6737 definition.
6738
6739 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
6740
6741 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
6742 against out of range max skip or log values.
6743
6744 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
6745
6746 * cgraph.c (dump_graphviz): Change name to dump_name
6747
6748 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
6749
6750 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
6751 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
6752 subtraction from a carry operation.
6753
6754 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
6755
6756 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
6757
6758 2019-10-22 Richard Biener <rguenther@suse.de>
6759
6760 PR tree-optimization/92173
6761 * tree-vect-loop.c (vectorizable_reduction): If
6762 vect_transform_reduction cannot handle code-generation try without
6763 the single-def-use-cycle optimization. Pass optab_vector to
6764 optab_for_tree_code to get vector shifts as that's what we'd
6765 generate.
6766
6767 2019-10-22 Michael Matz <matz@suse.de>
6768
6769 PR middle-end/90796
6770 * gimple-loop-jam.c (any_access_function_variant_p): New function.
6771 (adjust_unroll_factor): Use it to constrain safety, new parameter.
6772 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
6773
6774 2019-10-22 Richard Biener <rguenther@suse.de>
6775
6776 PR tree-optimization/92173
6777 * tree-vect-loop.c (vectorizable_reduction): If
6778 vect_transform_reduction cannot handle code-generation try without
6779 the single-def-use-cycle optimization. Pass optab_vector to
6780 optab_for_tree_code to get vector shifts as that's what we'd
6781 generate.
6782
6783 2019-10-22 Martin Liska <mliska@suse.cz>
6784
6785 * diagnostic-format-json.cc (json_from_expanded_location):
6786 Use json::integer_number.
6787 * gcov.c (output_intermediate_json_line): Use new
6788 json::integer_number.
6789 (output_json_intermediate_file): Likewise.
6790 * json.cc (number::print): Move to ...
6791 (float_number::print): ... this.
6792 (integer_number::print): New.
6793 (test_writing_numbers): Move to ...
6794 (test_writing_float_numbers): ... this.
6795 (test_writing_integer_numbers): New.
6796 (json_cc_tests): Register test_writing_integer_numbers.
6797 * json.h (class value): Add forward declaration
6798 for float_number and integer_number.
6799 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
6800 (class number): Move to ...
6801 (class float_number): ... this.
6802 (class integer_number): New.
6803 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
6804 Use json::integer_number.
6805 (optrecord_json_writer::location_to_json): Likewise.
6806 (optrecord_json_writer::profile_count_to_json): Likewise.
6807 (optrecord_json_writer::pass_to_json): Likewise.
6808
6809 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
6810
6811 * tree-vect-slp.c (vect_slp_bb_region): Check whether
6812 autodetected_vector_size rather than vector_size is zero.
6813 * tree-vect-loop.c (vect_analyze_loop): Likewise.
6814 Set autodetected_vector_size immediately after calling
6815 vect_analyze_loop_2. Check for a fatal error before advancing
6816 next_size.
6817
6818 2019-10-21 Jason Merrill <jason@redhat.com>
6819
6820 * lock-and-run.sh: Check for process existence rather than timeout.
6821
6822 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6823
6824 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
6825 widening multiplication.
6826
6827 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
6828
6829 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
6830 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
6831 type attribute.
6832 (subsi3_carryin_shift): Separate into register and constant controlled
6833 alternatives. Use shift_amount_operand for operand 4. Set shift
6834 attribute and simplify type attribute.
6835 (subsi3_carryin_shift_alt): Likewise.
6836 (rsbsi3_carryin_shift): Likewise.
6837 (rsbsi3_carryin_shift_alt): Likewise.
6838 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
6839 and register controlled shifts into distinct alternatives.
6840 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
6841 (andsi_not_shiftsi_si_scc): Likewise.
6842 (arm_cmpsi_negshiftsi_si): Likewise.
6843 (not_shiftsi): Remove redundant M constraint from alternative 1.
6844 (not_shiftsi_compare0): Likewise.
6845 (arm_cmpsi_insn): Remove redundant alternative 2.
6846 (cmpsi_shift_swp): Likewise.
6847 (sub_shiftsi): Likewise.
6848 (sub_shiftsi_compare0_scratch): Likewise.
6849 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
6850 (thumb2_cmpsi_neg_shiftsi): Likewise.
6851
6852 2019-10-21 Richard Biener <rguenther@suse.de>
6853
6854 PR tree-optimization/92162
6855 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
6856 STMT_VINFO_REDUC_IDX in reduc_info.
6857 * tree-vect-stmts.c (vectorizable_condition): Likewise.
6858
6859 2019-10-21 Richard Biener <rguenther@suse.de>
6860
6861 * tree-vectorizer.h (_slp_tree::ops): New member.
6862 (SLP_TREE_SCALAR_OPS): New.
6863 (vect_get_slp_defs): Adjust prototype.
6864 * tree-vect-slp.c (vect_free_slp_tree): Release
6865 SLP_TREE_SCALAR_OPS.
6866 (vect_create_new_slp_node): Initialize it. New overload for
6867 initializing by an operands array.
6868 (_slp_oprnd_info::ops): New member.
6869 (vect_create_oprnd_info): Initialize it.
6870 (vect_free_oprnd_info): Release it.
6871 (vect_get_and_check_slp_defs): Populate the operands array.
6872 Do not swap operands in the IL when not necessary.
6873 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
6874 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
6875 swap operands in the operands array. Do not swap operands in
6876 the IL.
6877 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
6878 (vect_gather_slp_loads): Fix.
6879 (vect_detect_hybrid_slp_stmts): Likewise.
6880 (vect_slp_analyze_node_operations_1): Search for a internal
6881 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
6882 (vect_slp_analyze_node_operations): Skip ops-only stmts for
6883 the def-type push/pop dance.
6884 (vect_get_constant_vectors): Compute number_of_vectors here.
6885 Use SLP_TREE_SCALAR_OPS and simplify greatly.
6886 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
6887 (vect_get_slp_defs): Simplify greatly.
6888 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
6889 (vect_transform_reduction): Likewise.
6890 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
6891 (vectorizable_call): Likewise.
6892 (vectorizable_operation): Likewise.
6893 (vectorizable_load): Likewise.
6894 (vectorizable_condition): Likewise.
6895 (vectorizable_comparison): Likewise.
6896
6897 2019-10-21 Richard Biener <rguenther@suse.de>
6898
6899 PR tree-optimization/92161
6900 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
6901 for reductions.
6902
6903 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6904
6905 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
6906 (aarch64_rndr): New define_insn.
6907 (aarch64_rndrrs): Likewise.
6908 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
6909 (TARGET_RNG): Likewise.
6910 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
6911 argument.
6912 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
6913 Add fourth argument in prototype.
6914 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
6915 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
6916 (aarch64_init_rng_builtins): Define.
6917 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
6918 (aarch64_expand_rng_builtin): Define.
6919 (aarch64_general_expand_builtin): Use IGNORE argument, handle
6920 RNG builtins.
6921 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6922 __ARM_FEATURE_RNG when TARGET_RNG.
6923 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
6924
6925 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
6926
6927 * tree-vect-stmts (ensure_base_align): Only change alignment if new
6928 alignment is more restrictive.
6929
6930 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6931
6932 * tree-vectorizer.h (vec_info::vector_size): New member variable.
6933 (vect_update_max_nunits): Update comment.
6934 (current_vector_size): Delete.
6935 * tree-vect-stmts.c (current_vector_size): Likewise.
6936 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
6937 of current_vector_size.
6938 (get_mask_type_for_scalar_type): Likewise.
6939 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
6940 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
6941 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
6942 (vect_double_mask_nunits, vect_transform_loop): Likewise.
6943 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6944 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
6945
6946 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6947
6948 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
6949 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
6950 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
6951 accordingly.
6952
6953 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6954
6955 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
6956 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
6957 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
6958 call accordingly.
6959 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
6960
6961 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6962
6963 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
6964 a loop_vec_info.
6965 (vect_set_loop_condition_masked): Update call accordingly.
6966
6967 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6968
6969 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
6970 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
6971 (simple_integer_narrowing): Update call accordingly.
6972 (vectorizable_conversion): Likewise.
6973
6974 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6975
6976 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
6977 (vectorizable_call): Update call accordingly.
6978
6979 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6980
6981 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
6982 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6983 (duplicate_and_interleave): Update call accordingly.
6984 * tree-vect-loop.c (vectorizable_reduction): Likewise.
6985
6986 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6987
6988 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
6989 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
6990 (vect_get_constant_vectors): Update call accordingly.
6991 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
6992
6993 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6994
6995 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
6996 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
6997 (vect_prologue_cost_for_slp_op): Update call accordingly.
6998 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
6999 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7000 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7001 (get_mask_type_for_scalar_type): Likewise.
7002 (vect_get_vector_types_for_stmt): Likewise.
7003 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7004 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7005 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7006 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7007 (vect_split_statement, vect_convert_input): Likewise.
7008 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7009 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7010 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7011 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7012 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7013 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7014 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7015 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7016 (vect_recog_mask_conversion_pattern): Likewise.
7017 (vect_add_conversion_to_pattern): Likewise.
7018 (vect_recog_gather_scatter_pattern): Likewise.
7019 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7020 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7021
7022 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7023
7024 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7025 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7026 (vect_check_load_store_mask): Update call accordingly.
7027 (vect_get_mask_type_for_stmt): Likewise.
7028 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7029 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7030 (vect_convert_mask_for_vectype): Likewise.
7031
7032 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7033
7034 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7035 a vec_info.
7036 (vect_recog_dot_prod_pattern): Update call accordingly.
7037 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7038 (vect_recog_widen_sum_pattern): Likewise.
7039
7040 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7041
7042 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7043 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7044 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7045 accordingly.
7046
7047 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7048
7049 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7050 get_vectype_for_scalar_type_and_size instead of
7051 get_vectype_for_scalar_type.
7052
7053 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7054
7055 * common.opt (-fcommon): Fix description.
7056
7057 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7058
7059 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7060 * config/i386/i386.c (ix86_pre_reload_split): New function.
7061 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7062 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7063 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7064 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7065 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7066 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7067 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7068 *<shift_insn><dwi>3_doubleword_mask,
7069 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7070 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7071 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7072 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7073 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7074 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7075 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7076 *avx2_<code>v8qiv8si2<mask_name>_2,
7077 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7078 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7079 *avx512f_<code>v8qiv8di2<mask_name>_2,
7080 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7081 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7082 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7083 sse4_2_pcmpistr): Likewise.
7084
7085 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7086
7087 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7088 now defaults to https.
7089
7090 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7091
7092 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7093 skip non-zero array accesses.
7094
7095 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7096
7097 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7098 and return a boolean success value. Move the allocation and
7099 initialization of the bb_vec_info to...
7100 (vect_slp_bb_region): ...here. Update call accordingly.
7101 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7102 than in vect_slp_analyze_bb_1.
7103
7104 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7105
7106 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7107 when processing the given datarefs for the first time and
7108 check_datarefs subsequently.
7109 (vect_slp_bb_region): New function, split out of...
7110 (vect_slp_bb): ...here. Don't recompute the region bounds and
7111 dataref sets when retrying with a different vector size.
7112
7113 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7114 Uroš Bizjak <ubizjak@gmail.com>
7115
7116 PR target/92140
7117 * config/i386/predicates.md (int_nonimmediate_operand): New special
7118 predicate.
7119 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7120 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7121 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7122 define_insn_and_split patterns.
7123
7124 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7125
7126 * config/rs6000/rs6000.md: Delete out--of-date comment about
7127 special-casing integer loads.
7128
7129 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7130
7131 * escaped_string.h (escaped_string): New header.
7132 * tree.c (escaped_string): Remove escaped_string class.
7133
7134 2019-10-18 Martin Sebor <msebor@redhat.com>
7135
7136 PR tree-optimization/92157
7137 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7138 compute_string_length to return a negative result.
7139
7140 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7141
7142 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7143 (negvsi3, negvdi3): Delete.
7144 (negdi2_compare): Delete.
7145
7146 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7147
7148 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7149 operations.
7150 (subdi3_compare1): Delete pattern.
7151 (subvsi3_borrow): New insn pattern.
7152 (subvsi3_borrow_imm): Likewise.
7153
7154 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7155
7156 * config/arm/arm.md (subv<mode>4): Delete.
7157 (subvdi4): New expander pattern.
7158 (subvsi4): Likewise. Handle some immediate values.
7159 (subvsi3_intmin): New insn pattern.
7160 (subvsi3): Likewise.
7161 (subvsi3_imm1): Likewise.
7162 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7163 idioms.
7164
7165 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7166
7167 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7168 incoming operands. Early split the calculation into SImode
7169 operations.
7170 (usubvsi3_borrow): New insn pattern.
7171 (usubvsi3_borrow_imm): Likewise.
7172
7173 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7174
7175 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7176 (usubvsi4): New pattern. Allow some immediate values for inputs.
7177 (usubvdi4): New pattern.
7178
7179 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7180
7181 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7182 or second operand of the PLUS inside a DImode equality test to be
7183 sign-extend when selecting CC_Vmode.
7184 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7185 instructions.
7186 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7187 expand patterns.
7188 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7189 (addsi3_cin_vout_0): Likewise.
7190 (adddi3_compareV): Delete.
7191
7192 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7193
7194 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7195 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7196 to transform this back into the summation version when that leads
7197 to smaller code.
7198
7199 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7200
7201 * config/arm/arm.md (addv<mode>4): Delete.
7202 (addvsi4): New pattern. Handle immediate values that the architecture
7203 supports.
7204 (addvdi4): New pattern.
7205 (addsi3_compareV): Rename to ...
7206 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7207 and use COMPARE rather than NE.
7208 (addsi3_compareV_imm): New pattern.
7209 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7210 a signed-overflow check.
7211
7212 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7213
7214 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7215 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7216 CC_ADCmode.
7217 (maybe_get_arm_condition_code): Handle CC_ADCmode.
7218 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7219 with overflow.
7220 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7221 expand patterns.
7222 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7223 (addsi3_cin_cout_imm_insn): Likewise.
7224 (adddi3_compareC): Delete insn.
7225 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7226
7227 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7228
7229 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7230 * (uaddv<mode>4): Delete expansion pattern.
7231 (uaddvsi4): New pattern.
7232 (uaddvdi4): Likewise.
7233 (addsi3_compareC): Delete pattern, change callers to use
7234 addsi3_compare_op1.
7235 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
7236 reduce the number of alternatives and re-work type attribute handling.
7237 (addsi3_compare_op2): Clean up constraints to reduce the number of
7238 alternatives and re-work type attribute handling.
7239 (compare_addsi2_op0): Likewise.
7240 (compare_addsi2_op1): Likewise.
7241
7242 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7243
7244 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7245 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7246 for DImode operands.
7247 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7248 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7249 CC_NCVmode.
7250 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7251 (arm_cmpdi_unsigned): Delete.
7252
7253 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7254
7255 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7256 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7257 unchanged only if that will be cheaper.
7258 (arm_select_cc_mode): Recognize a swapped comparison that will
7259 be regenerated using RSBS or RSCS. Relax restriction on selecting
7260 CC_RSBmode.
7261 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7262 a constant.
7263 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7264 is CC_RSBmode.
7265 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7266 as CCmode.
7267 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
7268 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
7269
7270 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7271
7272 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7273 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7274 need these modes.
7275 (arm_gen_dicompare_reg): New code to early expand the sub-operations
7276 of EQ, NE, LT, GE, LTU and GEU.
7277 * config/arm/iterators.md (CC_EXTEND): New code attribute.
7278 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
7279 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
7280 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
7281 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
7282
7283 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7284
7285 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
7286 operand 2.
7287 (cstoredi4): Similarly, but for operand 3.
7288 * config/arm/arm.c (arm_canoncialize_comparison): Allow
7289 canonicalization of unsigned compares with a constant on Arm.
7290 Prefer using const+1 and adjusting the comparison over swapping the
7291 operands whenever the original constant was not valid.
7292 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
7293 register here.
7294 (arm_validize_comparison): Do not force invalid DImode operands to
7295 registers here.
7296
7297 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7298
7299 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
7300 return CC_Zmode if comparing against a constant where one word is
7301 zero.
7302 (arm_gen_compare_reg): Split DImode handling to ...
7303 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
7304 against simple constants.
7305 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
7306
7307 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7308
7309 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
7310 (rsbsi3_carryin_shift_alt): Likewise.
7311
7312 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7313
7314 * config/arm/arm.md (negscc_borrow): New pattern.
7315 (mov_negscc): Don't split if the insn would match negscc_borrow.
7316 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
7317 (thumb2_mov_negscc_strict_it): Likewise.
7318
7319 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7320
7321 * config/arm/arm.c (arm_insn_cost): New function.
7322 (TARGET_INSN_COST): Override default definition.
7323
7324 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7325
7326 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7327 borrow operations.
7328
7329 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7330
7331 * config/arm/arm.c (strip_carry_operation): New function.
7332 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
7333 for SImode.
7334
7335 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7336
7337 * config/arm/predicates.md (arm_carry_operation): New special
7338 predicate.
7339 * config/arm/iterators.md (LTUGEU): Delete iterator.
7340 (cnb): Delete code attribute.
7341 (optab): Delete ltu and geu elements.
7342 * config/arm/arm.md (addsi3_carryin): Renamed from
7343 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
7344 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
7345 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
7346 (addsi3_carryin_clobercc): Similarly.
7347 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
7348 Thumb2 state.
7349
7350 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7351
7352 * config/arm/arm.md (arm_subdi3): Delete insn.
7353 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
7354
7355 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7356
7357 * config/arm/arm-modes.def (CC_RSB): New CC mode.
7358 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
7359 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
7360 return CC_RSBmode.
7361 (maybe_get_arm_condition_code): Handle CC_RSBmode.
7362 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
7363 expand.
7364 (subdi3): Rewrite to early-expand the sub-operations.
7365 (rsb_im_compare): New pattern.
7366 (negdi2): Delete.
7367 (negdi2_insn): Delete.
7368 (arm_negsi2): Correct type attribute to alu_imm.
7369 (negsi2_0compare): New insn pattern.
7370 (negsi2_carryin): New insn pattern.
7371
7372 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7373
7374 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
7375 operand 2.
7376
7377 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7378
7379 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
7380 to match canonical form.
7381
7382 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7383
7384 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
7385 (extend<mode>di2): Likewise.
7386
7387 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7388
7389 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
7390 * config/arm/arm.c (arm_decompose_di_binop): New function.
7391 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
7392 If not generating Thumb-1 code, decompose the operation into 32-bit
7393 pieces.
7394 * add0si_carryin_<optab>: New pattern.
7395
7396 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7397
7398 * arm.md (adddi3): Only accept register operands.
7399 (arm_adddi3): Convert to simple insn with no split. Do not accept
7400 constants.
7401 (adddi_sesidi_di): Delete patern.
7402 (adddi_zesidi_di): Likewise.
7403 (uaddv<mode>4): Use LTU as condition for branch.
7404 (adddi3_compareV): Convert to simple insn with no split.
7405 (addsi3_compareV_upper): Delete pattern.
7406 (adddi3_compareC): Convert to simple insn with no split. Correct
7407 flags setting expression.
7408 (addsi3_compareC_upper): Delete pattern.
7409 (addsi3_compareC): Correct flags setting expression.
7410 (subdi3_compare1): Convert to simple insn with no split.
7411 (subsi3_carryin_compare): Delete pattern.
7412 (arm_subdi3): Convert to simple insn with no split.
7413 (subdi_zesidi): Delete pattern.
7414 (subdi_di_sesidi): Delete pattern.
7415 (subdi_zesidi_di): Delete pattern.
7416 (subdi_sesidi_di): Delete pattern.
7417 (subdi_zesidi_zesidi): Delete pattern.
7418 (negvdi3): Use s_register_operand.
7419 (negdi2_compare): Convert to simple insn with no split.
7420 (negdi2_insn): Likewise.
7421 (negsi2_carryin_compare): Delete pattern.
7422 (negdi_zero_extendsidi): Delete pattern.
7423 (arm_cmpdi_insn): Convert to simple insn with no split.
7424 (negdi2): Don't call gen_negdi2_neon.
7425 * config/arm/neon.md (adddi3_neon): Delete pattern.
7426 (subdi3_neon): Delete pattern.
7427 (negdi2_neon): Delete pattern.
7428 (splits for negdi2_neon): Delete splits.
7429
7430 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7431
7432 PR middle-end/92153
7433 * ggc-page.c (release_pages): Read g->alloc_size before free rather
7434 than after it.
7435
7436 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
7437
7438 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
7439 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
7440 new multilib variants and new mappings.
7441
7442 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7443
7444 PR target/86040
7445 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
7446
7447 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7448 Richard Sandiford <richard.sandiford@arm.com>
7449
7450 PR target/86753
7451 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
7452 and define hashmap traits for it.
7453 (loop_vec_info::scalar_cond_masked_set): New member.
7454 (vect_record_loop_mask): Adjust prototype.
7455 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
7456 Implement method.
7457 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
7458 vect_record_loop_mask.
7459 (vectorizable_live_operation): Likewise.
7460 (vect_record_loop_mask): New param scalar_mask. Add entry
7461 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
7462 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
7463 Pass it as last arg to vect_record_loop_mask.
7464 (vectorizable_call): Pass scalar_mask as last arg to
7465 vect_record_loop_mask.
7466 (vectorizable_store): Likewise.
7467 (vectorizable_load): Likewise.
7468 (vectorizable_condition): Check if another part of vectorized code
7469 applies loop_mask to condition or to it's inverse, and if yes,
7470 apply loop_mask to result of vector comparison.
7471
7472 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
7473
7474 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
7475
7476 2019-10-18 Jakub Jelinek <jakub@redhat.com>
7477
7478 PR tree-optimization/92056
7479 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
7480 before calling compute_builtin_object_size.
7481
7482 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
7483
7484 PR target/65342
7485 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
7486 (movdi_low_st): Delete.
7487 * config/rs6000/rs6000.c
7488 (darwin_rs6000_legitimate_lo_sum_const_p): New.
7489 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
7490 * config/rs6000/rs6000.md (movsi_low): Delete.
7491
7492 2019-10-17 Jason Merrill <jason@redhat.com>
7493
7494 * gimplify.h (get_initialized_tmp_var): Add default argument to
7495 post_p.
7496 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
7497 NULL post_p argument.
7498 * targhooks (std_gimplify_va_arg_expr): Likewise.
7499
7500 2019-10-17 Richard Biener <rguenther@suse.de>
7501
7502 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
7503 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
7504 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
7505 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
7506 * tree-vect-loop.c (vect_is_simple_reduction): Set
7507 STMT_VINFO_REDUC_CODE.
7508 (vectorizable_reduction): Remove dead and redundant code, use
7509 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
7510
7511 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
7512
7513 Fix breakage introduced by r276985.
7514
7515 * config/avr/avr.c (avr_option_override): Remove set of
7516 PARAM_ALLOW_STORE_DATA_RACES.
7517 * common/config/avr/avr-common.c (avr_option_optimization_table)
7518 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
7519
7520 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
7521
7522 * config/i386/i386.h (processor_costs): Add clear_ratio.
7523 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
7524 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
7525 of 6 and move_ratio in all cost models.
7526
7527 2019-10-17 Richard Biener <rguenther@suse.de>
7528
7529 * tree-vect-loop.c (check_reduction_path): Compute reduction
7530 operation here.
7531 (vect_is_simple_reduction): Remove special-case of single-stmt
7532 reduction path detection.
7533
7534 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
7535
7536 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
7537
7538 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
7539
7540 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
7541 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
7542 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
7543 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
7544 New combine patterns.
7545 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
7546 above.
7547 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
7548
7549 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
7550
7551 * tree-vrp.c (value_range_base::dump): Display +INF for both
7552 pointers and integers when appropriate.
7553
7554 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7555
7556 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
7557 when to use versioning threshold.
7558
7559 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7560
7561 * tree-vect-loop.c (determine_peel_for_niter): New function contained
7562 outlined code from ...
7563 (vect_analyze_loop_2): ... here.
7564
7565 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
7566
7567 * tree-vect-loop.c (vect_transform_loop): Move code from here...
7568 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
7569 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
7570
7571 2019-10-17 Richard Biener <rguenther@suse.de>
7572
7573 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
7574 (vect_is_simple_reduction): Move all validity checks ...
7575 (vectorizable_reduction): ... here. Compute whether we
7576 need a fold-left reduction here.
7577 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
7578 both overloads, check needs_fold_left_reduction_p directly.
7579 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
7580
7581 2019-10-17 Richard Biener <rguenther@suse.de>
7582
7583 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
7584 TARGET_MEM_REF creation.
7585
7586 2019-10-17 Richard Biener <rguenther@suse.de>
7587
7588 PR tree-optimization/92129
7589 * tree-vect-loop.c (vectorizable_reduction): Also fail
7590 on GIMPLE_SINGLE_RHS.
7591
7592 2019-10-17 Jakub Jelinek <jakub@redhat.com>
7593
7594 PR tree-optimization/92056
7595 * tree-object-size.c (cond_expr_object_size): Return early if then_
7596 processing resulted in unknown size.
7597
7598 PR tree-optimization/92115
7599 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
7600 temporary if it could trap.
7601
7602 2019-10-17 Richard Biener <rguenther@suse.de>
7603
7604 PR debug/91887
7605 * dwarf2out.c (gen_formal_parameter_die): Also try to match
7606 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
7607
7608 2019-10-16 Jakub Jelinek <jakub@redhat.com>
7609
7610 * tree-ssa-strlen.c (maybe_invalidate): Use
7611 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
7612
7613 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
7614 Jim Wilson <jimw@sifive.com>
7615
7616 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
7617 regs to SIBCALL_REGS.
7618 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
7619 passing regs to SIBCALL_REGS.
7620
7621 2019-10-16 Martin Sebor <msebor@redhat.com>
7622
7623 PR tree-optimization/83821
7624 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
7625 the length of a string when available.
7626 (handle_builtin_memset) Add argument.
7627 (handle_store, strlen_check_and_optimize_call): Same.
7628 (check_and_optimize_stmt): Same. Pass it to callees.
7629
7630 2019-10-16 Martin Sebor <msebor@redhat.com>
7631
7632 PR tree-optimization/91996
7633 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
7634 information.
7635 (compare_nonzero_chars): Add an overload.
7636 (count_nonzero_bytes): Add an argument. Call overload above.
7637 Handle non-constant lengths in some range.
7638 (handle_store): Add an argument.
7639 (check_and_optimize_stmt): Pass an argument to handle_store.
7640
7641 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
7642
7643 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
7644
7645 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7646
7647 * config/mips/mips.c (mips_expand_builtin_insn): Force the
7648 operands which correspond to the same input-output register to
7649 have the same pseudo assigned to them.
7650
7651 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
7652
7653 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
7654
7655 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
7656
7657 * config/aarch64/aarch64.c (aarch64_classify_symbol):
7658 Apply reasonable limit to symbol offsets.
7659
7660 2019-10-16 Richard Biener <rguenther@suse.de>
7661
7662 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
7663 (vect_is_simple_reduction): Delay checking to
7664 vectorizable_reduction and relax the checking.
7665 (vectorizable_reduction): Check we have a simple use. Check
7666 for bogus condition reductions.
7667 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
7668 are looking at the last stmt in a pattern sequence when
7669 filling in backedge PHI values.
7670
7671 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
7672 Jiufu Guo <guojiufu@linux.ibm.com>
7673
7674 PR target/70010
7675 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
7676 the callee explicitly disables some isa_flags the caller is using.
7677
7678 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7679
7680 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
7681
7682 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7683
7684 * genmodes.c (mode_data::order): New field.
7685 (blank_mode): Update accordingly.
7686 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
7687 (make_vector_modes): Likewise.
7688 (VECTOR_MODES): Update use accordingly.
7689 (cmp_modes): Sort by the new order field ahead of sorting by size.
7690 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
7691 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
7692 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
7693 (aarch64_classify_vector_mode): Handle the new partial modes.
7694 (aarch64_vl_bytes): New function.
7695 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
7696 when counting the number of registers in an SVE mode.
7697 (aarch64_class_max_nregs): Likewise.
7698 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
7699 in registers yet.
7700 (aarch64_classify_address): Treat partial vectors analogously
7701 to full vectors.
7702 (aarch64_print_address_internal): Consolidate the printing of
7703 MUL VL addresses, using aarch64_vl_bytes as the number of
7704 bytes represented by "VL".
7705 (aarch64_vector_mode_supported_p): Reject partial vector modes.
7706
7707 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7708
7709 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
7710 rather than known_lt when choosing frame layouts.
7711
7712 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7713
7714 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
7715 that all the adjustments add up to the full frame size.
7716 Use crtl->outgoing_args_size directly as the final adjustment
7717 where appropriate.
7718
7719 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7720
7721 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
7722 "frame" reference instead of always referring directly to
7723 "cfun->machine->frame".
7724
7725 2019-10-16 Richard Biener <rguenther@suse.de>
7726
7727 PR tree-optimization/92119
7728 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
7729 against missing bswap lhs.
7730
7731 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
7732
7733 PR middle-end/92033
7734 * poly-int.h (constant_lower_bound_with_limit): New function.
7735 (constant_upper_bound_with_limit): Likewise.
7736 * doc/poly-int.texi: Document them.
7737 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
7738 into the worst-case INTEGER_CST bounds.
7739
7740 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
7741
7742 PR ipa/91088
7743 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
7744 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
7745 * ipa-predicat.h (struct expr_eval_op): New struct.
7746 (expr_eval_ops): New typedef.
7747 (struct condition): Add type and param_ops fields, remove size field.
7748 (add_condition): Replace size parameter with type parameter, add
7749 param_ops parameter.
7750 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
7751 (predicate::add_clause): Add comparisons on type and param_ops.
7752 (dump_condition): Add debug dump for param_ops.
7753 (remap_after_inlining): Adjust call arguments to add_condition.
7754 (add_condition): Replace size parameter with type parameter, add
7755 param_ops parameter. Unshare constant value used in conditions.
7756 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
7757 parameter expressions using param_ops.
7758 (decompose_param_expr): New function.
7759 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
7760 to replace call to unmodified_parm_or_parm_agg_item.
7761 (set_switch_stmt_execution_predicate): Likewise.
7762 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
7763 with type.
7764 (inline_read_section): Read param_ops from summary stream.
7765 (ipa_fn_summary_write): Write param_ops to summary stream.
7766
7767 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
7768
7769 PR rtl-optimization/92107
7770 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
7771 expression written.
7772
7773 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
7774
7775 * config/darwin.c: Update description of fix and continue.
7776
7777 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
7778
7779 * config/darwin.c (darwin_binds_local_p): Update to call
7780 default_binds_local_p_3 () directly. amend comments.
7781
7782 2019-10-15 Richard Biener <rguenther@suse.de>
7783
7784 * lto-streamer-out.c (lto_variably_modified_type_p): New.
7785 (tree_is_indexable): Use it.
7786 * tree-streamer-out.c (pack_ts_type_common_value_fields):
7787 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
7788 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
7789
7790 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7791
7792 * config/msp430/msp430.md (zero_extendqipsi2): New.
7793 (zero_extendqisi2): Optimize case where src register and base dst
7794 register are the same.
7795 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
7796 (zero_extendpsisi2): Optimize r->m case.
7797 Add unnamed insn patterns to catch insns combine searches for when
7798 optimizing pointer manipulation.
7799
7800 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7801
7802 * config/msp430/msp430.md: Group zero_extend* insns together.
7803
7804 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7805
7806 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
7807 constraint.
7808 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
7809 POST_INC.
7810 (msp430_subreg): Likewise.
7811 (msp430_split_addsi): Likewise.
7812 (msp430_print_operand_addr): Likewise.
7813 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
7814 (USE_STORE_POST_INCREMENT): Define.
7815 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
7816 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
7817 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
7818 (msp430_general_dst_operand): New.
7819 (msp430_general_dst_nonv_operand): New.
7820 (msp430_nonsubreg_operand): Remove.
7821 (msp430_nonsubreg_dst_operand): New.
7822 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
7823 of defunct msp430_nonsubreg_operand.
7824 (msp430_nonsubregnonpostinc_or_imm_operand): New.
7825
7826 2019-10-15 Richard Biener <rguenther@suse.de>
7827
7828 PR tree-optimization/91929
7829 * tree-ssa-pre.c (pre_expr_d::loc): New member.
7830 (get_or_alloc_expr_for_name): Initialize it.
7831 (get_or_alloc_expr_for_constant): Likewise.
7832 (phi_translate_1): Copy it.
7833 (create_expression_by_pieces): Use the original location
7834 of the expression for the inserted stmt.
7835 (compute_avail): Record the location of the stmt for the
7836 expressions created.
7837
7838 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
7839
7840 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
7841 before using tree_to_uhwi.
7842
7843 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
7844
7845 * config/s390/s390.md: Run %a0:DI splitters only after reload.
7846
7847 2019-10-15 Richard Biener <rguenther@suse.de>
7848
7849 PR tree-optimization/92094
7850 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
7851 do not adjust the reduction definition def type.
7852 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
7853 defines the latch argument of the PHI.
7854
7855 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
7856
7857 PR target/92035
7858 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
7859 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
7860 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
7861 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
7862 _mm_maskz_roundscale_round_sd): New intrinsics.
7863 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
7864 __builtin_ia32_rndscales?_mask_round builtins instead of
7865 __builtin_ia32_rndscales?_round.
7866 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
7867 __builtin_ia32_rndscalesd_round): Remove.
7868 (__builtin_ia32_rndscaless_mask_round,
7869 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
7870 * config/i386/sse.md
7871 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
7872 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
7873 ... this, adjust and add subst atrributes to make it maskable.
7874
7875 2019-10-15 Richard Biener <rguenther@suse.de>
7876
7877 PR middle-end/92046
7878 * common.opt (fallow-store-data-races): New.
7879 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
7880 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
7881 * doc/invoke.texi (fallow-store-data-races): Document.
7882 (--param allow-store-data-races): Remove docs.
7883 * opts.c (default_options_table): Enable -fallow-store-data-races
7884 at -Ofast.
7885 (default_options_optimization): Do not enable --param
7886 allow-store-data-races at -Ofast.
7887 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
7888 instead of PARAM_ALLOW_STORE_DATA_RACES.
7889 * tree-ssa-loop-im.c (execute_sm): Likewise.
7890
7891 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7892
7893 PR tree-optimization/92085
7894 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
7895 instead of calling it unconditionally after
7896 delete_dead_or_redundant_assignment and fix indentation.
7897
7898 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7899
7900 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
7901 TARGET_VFP_DOUBLE.
7902 (*fmsub<SDF:mode>4): Likewise.
7903 *fnmsub<SDF:mode>4): Likewise.
7904 (*fnmadd<SDF:mode>4): Likewise.
7905
7906 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
7907
7908 * doc/tree-ssa.texi: Update renamed macro name.
7909
7910 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7911
7912 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
7913 vector constants.
7914
7915 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
7916
7917 * config/darwin.c: Use unsigned ints for the picbase label
7918 counters, initialise the vars explicitly.
7919 (update_pic_label_number_if_needed): Move a variable declaration
7920 to where it's needed.
7921 (machopic_output_function_base_name): Use a more strict checking
7922 assert, and and unsigned int for the picbase label counter.
7923 (machopic_get_function_picbase): Likewise.
7924
7925 2019-10-14 Richard Biener <rguenther@suse.de>
7926
7927 PR middle-end/92046
7928 * dse.c (scan_insn): Use param max_active_local_stores.
7929 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
7930 based on optimization level.
7931 * loop-invariant.c (move_loop_invariants): Adjust
7932 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
7933 * opts.c (default_options_optimization): Do not adjust
7934 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
7935 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
7936
7937 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7938
7939 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
7940
7941 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7942
7943 * config/arm/arm.c (arm_option_override): Don't override sched
7944 pressure algorithm.
7945
7946 2019-10-14 Richard Biener <rguenther@suse.de>
7947
7948 PR tree-optimization/92069
7949 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
7950 cycles do not set vect_nested_cycle on the latch definition.
7951
7952 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
7953
7954 * function-abi.h (expr_callee_abi): Declare.
7955 * function-abi.cc (expr_callee_abi): New function.
7956
7957 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
7958
7959 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
7960 into [1,MAX].
7961 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
7962 non-zero being represented as [1,MAX].
7963
7964 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7965
7966 * tree-sra.c (dump_access): Add missing braces.
7967
7968 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7969
7970 * config/darwin.c (machopic_indirection_name): Rework the
7971 function to emit linker-visible symbols only for indirections
7972 in the data section. Clean up the code and update comments.
7973
7974 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7975
7976 * config/darwin.c (machopic_indirect_data_reference): Remove
7977 redundant code.
7978
7979 2019-10-13 Nathan Sidwell <nathan@acm.org>
7980
7981 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
7982
7983 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7984
7985 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
7986 c99_runtime.
7987
7988 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
7989
7990 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
7991 so non-virutal are before virutals.
7992 (output_function): Avoid body modifications.
7993
7994 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
7995
7996 * config/pa/pa.c (pa_output_call): Load descriptor address to register
7997 %r22. Load function address before global pointer.
7998 (pa_attr_length_indirect_call): Adjust length of inline versions of
7999 $$dyncall.
8000 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8001 before normal cases. Update inline $$dyncall sequences to preserve
8002 function descriptor address in register %r22.
8003 (TRAMPOLINE_CODE_SIZE): Adjust.
8004 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8005 register %r22 contains trampoline address.
8006 (pa_trampoline_init): Adjust offsets.
8007 (pa_trampoline_adjust_address): Likewise.
8008 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8009
8010 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8011
8012 PR target/67183
8013 * config/darwin.c (machopic_indirection): New field to flag
8014 non-lazy-symbol-pointers in the data section.
8015 (machopic_indirection_name): Compute if an indirection should
8016 appear in the data section.
8017 (machopic_output_data_section_indirection): New callback split
8018 from machopic_output_indirection.
8019 (machopic_output_stub_indirection): Likewise.
8020 (machopic_output_indirection): Retain the code for non-lazy
8021 symbol pointers in their regular section.
8022 (machopic_finish): Use the new callbacks to order the indirection
8023 output.
8024
8025 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8026
8027 * config/darwin-protos.h (machopic_finish): Delete.
8028 * config/darwin.c (machopic_finish): Make static.
8029
8030 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8031
8032 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8033 sections when building kernel extension code.
8034
8035 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8036
8037 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8038 later standard."
8039
8040 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8041
8042 * config/pa/pa.c (pa_option_override): Remove trailing comma
8043 from warning.
8044
8045 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8046
8047 PR middle-end/92063
8048 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8049 <case VEC_COND_EXPR>: Return false with *handled = false.
8050 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8051 recursing on the first operand.
8052 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8053 instead of tree_could_trap_p.
8054 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8055
8056 2019-10-11 Jim Wilson <jimw@sifive.com>
8057
8058 PR rtl-optimization/91860
8059 * combine.c (subst): If new_rtx is a constant, also check for
8060 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8061
8062 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8063
8064 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8065 INTVAL when calling store_bit_field.
8066
8067 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8068
8069 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8070 size.
8071
8072 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8073
8074 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8075 vectorizable_live_operation.
8076 (vectorizable_live_operation): Adjust parameters.
8077 * tree-vect-stmts.c (vect_init_vector,
8078 vect_gen_widened_results_half): Fix typo in function comment.
8079 (can_vectorize_live_stmts): Adjust function comment.
8080 Adjust parameters. Adjust call to vectorizable_live_operation.
8081 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8082 (vect_transform_stmt): Adjust function comment. Adjust call to
8083 can_vectorize_live_stmts.
8084 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8085
8086 2019-10-11 Richard Biener <rguenther@suse.de>
8087
8088 PR tree-optimization/90883
8089 PR tree-optimization/91091
8090 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8091 alias-sets both for recording VN table entries and continuing
8092 walking after translating through copies. Handle same-sized
8093 reads from SSA names by returning the plain SSA name.
8094 (eliminate_dom_walker::eliminate_stmt): Properly handle
8095 non-size precision stores in redundant store elimination.
8096
8097 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8098
8099 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8100 (ggc_collect): Dump later to not interfere with release_page dump.
8101 (ggc_trim): New function.
8102 * ggc-none.c (ggc_trim): New.
8103 * ggc.h (ggc_trim): Declare.
8104
8105 2019-10-11 Richard Biener <rguenther@suse.de>
8106
8107 PR tree-optimization/92066
8108 PR tree-optimization/92046
8109 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8110 Fix bogus cost model check.
8111
8112 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8113
8114 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8115 (LANG_HOOKS_DECLS): Add it.
8116 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8117 update comment for omp_is_optional_argument.
8118 * omp-general.c (omp_is_allocatable_or_ptr): New.
8119 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8120 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8121 Fortran's optional arguments and allocatable/pointer scalars
8122 with use_device_addr.
8123
8124 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8125
8126 PR target/77918
8127 * config/s390/2827.md: Add new opcodes.
8128 * config/s390/2964.md: Likewise.
8129 * config/s390/3906.md: Likewise.
8130 * config/s390/8561.md: Likewise.
8131 * config/s390/s390-builtins.def (s390_vfchesb): Use
8132 the new vec_cmpgev4sf_quiet_nocc.
8133 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8134 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8135 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8136 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8137 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8138 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8139 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8140 * config/s390/s390-modes.def (CCSFPS): New mode.
8141 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8142 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8143 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8144 (s390_expand_vec_compare): Use non-signaling patterns where
8145 necessary.
8146 (s390_reverse_condition): Support CCSFPS.
8147 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8148 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8149 (asm_fcmp_op): Likewise.
8150 (*smaxv2df3_vx): Use pattern for quiet comparison.
8151 (*sminv2df3_vx): Likewise.
8152 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8153 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8154 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8155 (vec_cmplt<mode>_quiet_nocc): New expander.
8156 (vec_cmpge<mode>_quiet_nocc): New pattern.
8157 (vec_cmple<mode>_quiet_nocc): New expander.
8158 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8159 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8160 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8161 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8162 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8163 (vec_cmpungt<mode>): New expander.
8164 (vec_cmpunge<mode>): Likewise.
8165 (vec_cmpuneq<mode>): Use quiet patterns.
8166 (vec_cmpltgt<mode>): Allow only on z14+.
8167 (vec_cmpordered<mode>): Use quiet patterns.
8168 (vec_cmpunordered<mode>): Likewise.
8169 (VEC_CMP_EXPAND): Add ungt and unge.
8170
8171 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8172
8173 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8174 parameter.
8175 * lto-streamer-out.c: Include tree-dfa.h.
8176 (output_cfg): Do not use cfun.
8177 (lto_prepare_function_for_streaming): New.
8178 (output_function): Do not push cfun; do not initialize loop optimizer.
8179 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8180 * passes.c (ipa_write_summaries): Use it.
8181 (ipa_write_optimization_summaries): Do not modify bodies.
8182 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8183 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8184 * tree-ssa-dse.c (pass_dse::execute): Update use of
8185 renumber_gimple_stmt_uids.
8186 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8187
8188 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8189
8190 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8191 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8192
8193 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8194
8195 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8196 macros.
8197 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8198 Also define DFP macros for these conditions.
8199 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8200 DEC128_SUBNORMAL_MIN): Do not define.
8201 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8202 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8203
8204 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8205 Sandra Loosemore <sandra@codesourcery.com>
8206
8207 PR middle-end/26241
8208 * doc/lto.texi (IPA): Reference to the IPA passes.
8209 * doc/passes.texi (Pass manager): Add node IPA passes and
8210 description for each IPA pass.
8211
8212 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8213
8214 * ipa-reference.c: Do not include splay-tree.h
8215 (reference_vars_to_consider): Turn to hash map.
8216 (get_static_name, ipa_init, analyze_function, propagate,
8217 stream_out_bitmap, ipa_reference_write_optimization_summary,
8218 ipa_reference_write_optimization_summary): Update.
8219
8220 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8221
8222 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8223
8224 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
8225
8226 * config/darwin.c: Lookup Objective C metadata and force indirection
8227 for IVAR refs.
8228
8229 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
8230
8231 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8232 addresses.
8233 (mem_operand_gpr): Add check for prefixed addresses.
8234 (mem_operand_ds_form): Add check for prefixed addresses.
8235 (rs6000_legitimate_offset_address_p): If we support prefixed
8236 addresses, check for a 34-bit offset instead of 16-bit.
8237 (rs6000_legitimate_address_p): Add check for prefixed addresses.
8238 Do not allow load/store with update if the address is prefixed.
8239 (rs6000_mode_dependent_address): If we support prefixed
8240 addresses, check for a 34-bit offset instead of 16-bit.
8241
8242 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8243
8244 PR target/77918
8245 * config/s390/vector.md (vcond_comparison_operator): New
8246 predicate.
8247 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8248
8249 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8250
8251 PR 87488
8252 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8253 -D.
8254 * configure.ac (--with-documentation-root-url): New option.
8255 * configure: Regenerate.
8256 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8257 option URL, add it as a new string field of the diagnostic option.
8258 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8259 (print_option_information): If get_option_url is non-NULL, call
8260 it, and if the result is non-NULL, potentially emit an escape
8261 sequence to markup the option text with the resulting URL.
8262 * diagnostic.h (diagnostic_context::get_option_url): New callback.
8263 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8264 example of JSON output.
8265 * opts-diagnostic.h (get_option_url): New decl.
8266 * opts.c (get_option_url): New function.
8267 * toplev.c (general_init): Initialize the get_option_url callback.
8268
8269 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8270
8271 PR 87488
8272 * common.opt (fdiagnostics-urls=): New option.
8273 (diagnostic-url.h): Add SourceInclude.
8274 (diagnostic_url_rule): New enum.
8275 * diagnostic-color.c: Include "diagnostic-url.h".
8276 (diagnostic_urls_enabled_p): New function.
8277 * diagnostic-url.h: New file.
8278 * diagnostic.c: Include "diagnostic-url.h".
8279 (diagnostic_urls_init): New function.
8280 * diagnostic.h (diagnostic_urls_init): New decl.
8281 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8282 -fdiagnostics-urls to the list.
8283 (-fdiagnostics-urls): New option.
8284 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
8285 (driver::global_initializations): Call diagnostic_urls_init.
8286 * opts-global.c (init_options_once): Likewise.
8287 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
8288 * pretty-print.c (pretty_printer::pretty_printer): Initialize
8289 show_urls.
8290 (pp_begin_url): New function.
8291 (pp_end_url): New function.
8292 (selftest::test_urls): New selftest.
8293 (selftest::pretty_print_c_tests): Call it.
8294 * pretty-print.h (pretty_printer::show_urls): New field.
8295 (pp_begin_url): New decl.
8296 (pp_end_url): New decl.
8297
8298 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
8299
8300 PR target/92022
8301 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
8302
8303 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
8304
8305 PR target/88630
8306 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
8307 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
8308 also for TARGET_FPU_SH4_300.
8309 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
8310 TARGET_SH4_300.
8311 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
8312 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
8313 (*negsf2_i): Split into ...
8314 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
8315 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
8316 (**abssf2_i): Split into ...
8317 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
8318 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
8319 (*negdf2_i): Split into ...
8320 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
8321 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
8322 (**abssf2_i): Split into ...
8323 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
8324
8325 2019-10-10 Richard Biener <rguenther@suse.de>
8326
8327 PR middle-end/92046
8328 * opts.c (finish_options): Do not influence global --params
8329 from options that are adjustable per function.
8330 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8331 Apply --param adjustment based on active cost-model.
8332 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
8333 further store-sinking when vectorization or if-conversion
8334 are not enabled.
8335
8336 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8337
8338 PR middle-end/92037
8339 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
8340 rather than ggc_alloc_cleared to alloc symbol table.
8341 * toplev.c (general_init): Likewise.
8342 * cgraph.h (symbol_table): Explicitly construct every field.
8343
8344 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8345
8346 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
8347 (PF_Z15): ... this.
8348 * config.gcc: Add z15 as option for --with-arch and --with-tune
8349 configure switches.
8350 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
8351 error reporting for unsupported builtins.
8352 * config/s390/s390-opts.h (enum processor_type): Rename
8353 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
8354 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
8355 * config/s390/driver-native.c (s390_host_detect_local_cpu):
8356 Likewise.
8357 * config/s390/s390-builtins.def: Likewise.
8358 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
8359 (s390_expand_builtin): Add missing check for unsupported builtins.
8360 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
8361 (s390_rtx_costs): Likewise.
8362 (s390_get_sched_attrmask): Rename arch13 to z15.
8363 (s390_get_unit_mask): Likewise.
8364 (s390_is_fpd): Likewise.
8365 (s390_is_fxd): Likewise.
8366 * config/s390/s390.h (enum processor_flags): Likewise.
8367 * config/s390/s390.md: Likewise.
8368 * config/s390/vector.md: Likewise.
8369 * config/s390/vx-builtins.md: Likewise.
8370 * config/s390/s390.opt: Add z15 to processor_type value.
8371
8372 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
8373
8374 PR target/91035
8375 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
8376 prototype.
8377 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
8378 ("split_stack_data", "split_stack_call")
8379 ("split_stack_call_<mode>", "split_stack_cond_call")
8380 ("split_stack_cond_call_<mode>"): Remove.
8381 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
8382 insn definition.
8383 * config/s390/s390.c (s390_output_split_stack_data): New function.
8384 (s390_expand_split_stack_prologue): Use the merged expander.
8385
8386 2019-10-09 Martin Sebor <msebor@redhat.com>
8387
8388 PR tree-optimization/90879
8389 * builtins.c (check_access): Avoid using maxbound when null.
8390 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
8391 * doc/invoke.texi (-Wstring-compare): Document new warning option.
8392 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
8393 conditional.
8394 (get_range_strlen): Overwrite initial maxbound when non-null.
8395 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
8396 changes.
8397 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
8398 (used_only_for_zero_equality): New function.
8399 (handle_builtin_memcmp): Call it.
8400 (determine_min_objsize): Return an integer instead of tree.
8401 (get_len_or_size, strxcmp_eqz_result): New functions.
8402 (maybe_warn_pointless_strcmp): New function.
8403 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
8404 between a longer string and a smaller array.
8405 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
8406
8407 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8408
8409 * config/darwin.c (darwin_override_options): Make the check for
8410 Objective-C ABI version more specific for 64bit code.
8411
8412 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
8413
8414 * config/darwin.c (machopic_indirect_data_reference): Set flag to
8415 indicate that the new symbol is an indirection.
8416 (machopic_indirect_call_target): Likewise.
8417 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
8418 (MACHO_SYMBOL_INDIRECTION_P): New.
8419 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
8420
8421 2019-10-08 Jason Merrill <jason@redhat.com>
8422
8423 * doc/invoke.texi: Document -fconcepts-ts.
8424
8425 2019-10-09 Richard Biener <rguenther@suse.de>
8426
8427 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
8428 allow stmts other than GIMPLE_ASSIGN in nested cycles.
8429
8430 2019-10-08 Richard Biener <rguenther@suse.de>
8431
8432 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
8433 (_stmt_vec_info::force_single_cycle): Likewise.
8434 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
8435 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
8436 * tree-vect-loop.c (vectorizable_reduction): Set
8437 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
8438 (vect_transform_reduction): Use them to remove redundant code.
8439 (vect_transform_cycle_phi): Likewise.
8440
8441 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
8442
8443 PR tree-optimization/90836
8444 * match.pd (popcount): New pattern.
8445
8446 2019-10-08 Martin Sebor <msebor@redhat.com>
8447
8448 PR middle-end/92026
8449 PR middle-end/92014
8450 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
8451 again once nbytes has been set. Set the access size when not yet set.
8452
8453 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8454
8455 * config/darwin.c (machopic_select_section): Remove dead code for
8456 old Objective-C section selection method, replace with unreachable.
8457
8458 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
8459
8460 * config/darwin.c (machopic_indirect_data_reference): Check for
8461 required indirections before making direct access to defined
8462 values.
8463 (machopic_output_indirection): Place the indirected pointes for
8464 required indirections into the non-lazy symbol pointers section.
8465 (darwin_encode_section_info):
8466 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
8467 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
8468
8469 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
8470
8471 PR target/91994
8472 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
8473 instead of ALL_SSE_REG to check if function call preserves some
8474 256-bit SSE registers.
8475
8476 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8477
8478 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
8479 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
8480 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
8481
8482 2019-10-08 Richard Biener <rguenther@suse.de>
8483
8484 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
8485 (_stmt_vec_info::is_reduc_info): Add.
8486 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
8487 (vectorizable_condition): Remove.
8488 (vectorizable_shift): Likewise.
8489 (vectorizable_reduction): Adjust.
8490 (info_for_reduction): New.
8491 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
8492 (vect_analyze_scalar_cycles_1): ... here.
8493 (vect_analyze_loop_operations): Adjust.
8494 (needs_fold_left_reduction_p): Simplify for single caller.
8495 (vect_is_simple_reduction): Likewise. Remove stmt restriction
8496 for nested cycles not part of double reductions.
8497 (vect_model_reduction_cost): Pass in the reduction type.
8498 (info_for_reduction): New function.
8499 (vect_create_epilog_for_reduction): Use it, access reduction
8500 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
8501 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8502 (vectorize_fold_left_reduction): Remove pointless assert.
8503 (vectorizable_reduction): Analyze the full reduction when
8504 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
8505 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
8506 stmt code-generation to vectorizable_* in most cases. Verify
8507 code-generation only for cases handled by
8508 vect_transform_reductuon.
8509 (vect_transform_reduction): Use info_for_reduction to get at
8510 reduction meta. Simplify.
8511 (vect_transform_cycle_phi): Likewise.
8512 (vectorizable_live_operation): Likewise.
8513 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
8514 at the PHI node for STMT_VINFO_REDUC_TYPE.
8515 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
8516 longer necessary code.
8517 * tree-vect-stmts.c (vectorizable_shift): Make static again.
8518 (vectorizable_condition): Likewise. Get at reduction related
8519 info via info_for_reduction.
8520 (vect_analyze_stmt): Adjust.
8521 (vect_transform_stmt): Likewise.
8522 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8523 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
8524
8525 2019-10-08 Joseph Myers <joseph@codesourcery.com>
8526
8527 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
8528 -fno-fp-int-builtin-inexact default for C2X.
8529
8530 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8531 Richard Biener <rguenther@suse.de>
8532
8533 PR tree-optimization/91532
8534 * tree-if-conv.c: Include tree-ssa-dse.h.
8535 (ifcvt_local_dce): Change param from bb to loop,
8536 and call dse_classify_store.
8537 (tree_if_conversion): Pass loop instead of loop->header as arg
8538 to ifcvt_local_dce.
8539 * tree-ssa-dse.c: Include tree-ssa-dse.h.
8540 (delete_dead_or_redundant_assignment): Remove static qualifier from
8541 declaration, and add prototype in tree-ssa-dse.h.
8542 (dse_store_status): Move to tree-ssa-dse.h.
8543 (dse_classify_store): Remove static qualifier and add new tree param
8544 stop_at_vuse, and add prototype in tree-ssa-dse.h.
8545 * tree-ssa-dse.h: New header.
8546
8547 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8548
8549 * config/darwin.c (machopic_output_indirection): Don't put
8550 hidden symbol indirections into the .data section, use the
8551 non-lazy symbol pointers section as normal.
8552 (darwin_encode_section_info): Record if a symbol is hidden.
8553 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
8554 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
8555
8556 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
8557
8558 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
8559 predicates instead of accessing bits directly.
8560 (machopic_indirect_call_target): Likewise.
8561 (machopic_output_indirection): Likewise.
8562 (darwin_encode_section_info): Improve description. Use renamed
8563 symbol flags. Use predicate macros for variables and functions.
8564 * config/darwin.h:
8565 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
8566 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
8567 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
8568 (MACHO_SYMBOL_VARIABLE_P): New.
8569 (MACHO_SYMBOL_DEFINED_P):New.
8570 (MACHO_SYMBOL_STATIC_P): New.
8571 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
8572 (SYMBOL_FLAG_SUBT_DEP): New.
8573 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
8574
8575 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8576
8577 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
8578 (msp430_expand_epilogue): Likewise.
8579 * config/msp430/predicates.md: Likewise.
8580 * config/msp430/msp430.md: Likewise.
8581 Replace blocks of 8 spaces with tabs.
8582
8583 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8584
8585 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
8586 * config/msp430/msp430.c (msp430_split_addsi): New.
8587 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
8588 a block of C code for splitting addsi.
8589
8590 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
8591
8592 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
8593 ix86_expand_rounddf_32): Reorder functions.
8594 * config/i386/i386-protos.h: Update.
8595
8596 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8597
8598 * config.in: Regenerate.
8599 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
8600 Add new "Yx" constraint.
8601 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
8602 function.
8603 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
8604 prototype.
8605 * config/msp430/msp430.c (msp430_option_override): Allow the lower
8606 code/data region to be selected in the small memory model.
8607 (msp430_section_attr): Don't warn if the "section" and "lower"
8608 attributes are used together.
8609 (msp430_handle_generic_attribute): Likewise.
8610 (msp430_var_in_low_mem): New function.
8611 (TARGET_ENCODE_SECTION_INFO): Define.
8612 (msp430_encode_section_info): New function.
8613 (gen_prefix): Return early in the small memory model.
8614 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
8615 ".lower" prefix if -m{code,data}-region=lower have been passed.
8616 (msp430_output_aligned_decl_common): Emit common symbols when
8617 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
8618 set.
8619 (TARGET_ASM_FILE_END): Define.
8620 (msp430_file_end): New function.
8621 (msp430_do_not_relax_short_jumps): Allow relaxation when
8622 function will be in the lower region.
8623 (msp430_op_not_in_high_mem): New function.
8624 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
8625 the 'X' operand selector.
8626 Clarify comment for 'x' operand selector.
8627 * config/msp430/msp430.h (LINK_SPEC): Propagate
8628 -m{code,data}-region to the linker via spec function
8629 msp430_propagate_region_opt.
8630 (msp430_propagate_region_opt): New prototype.
8631 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
8632 (SYMBOL_FLAG_LOW_MEM): Define.
8633 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
8634 selector.
8635 (zero_extendqihi2): Fix operand number used by "%X" selector.
8636 (zero_extendqisi2): Likewise.
8637 (zero_extendhisi2): Likewise.
8638 (movqi): Use "Yx" constraint in place of "%X" operand selector.
8639 (movhi): Likewise.
8640 (addqi3): Likewise.
8641 (addhi3): Likewise.
8642 (addsi3): Likewise.
8643 (addhi3_cy): Likewise.
8644 (addchi4_cy): Likewise.
8645 (subqi3): Likewise.
8646 (subhi3): Likewise.
8647 (subsi3): Likewise.
8648 (bic<mode>3): Likewise.
8649 (and<mode>3): Likewise.
8650 (ior<mode>3): Likewise.
8651 (xor<mode>3): Likewise.
8652 (slli_1): Add missing "%X" operand selector.
8653 (slll_1): Likewise.
8654 (slll_2): Likewise.
8655 (srai_1): Likewise.
8656 (sral_1): Likewise.
8657 (sral_2): Likewise.
8658 (srli_1): Likewise.
8659 (srll_1): Likewise.
8660 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
8661 selector.
8662 (cbranchhi4_real): Likewise.
8663 (cbranchqi4_reversed): Likewise.
8664 (cbranchhi4_reversed): Likewise.
8665 (*bitbranch<mode>4): Likewise.
8666 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
8667 * config/msp430/msp430.opt (mcode-region=): Set default to
8668 MSP430_REGION_LOWER. Improve docstring.
8669 (mdata-region=): Likewise.
8670 (muse-lower-region-prefix): New option.
8671 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
8672 mdata-region=none multilib.
8673 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
8674 mdata-region=none multilib.
8675 MULTILIB_EXCEPTIONS: Remove.
8676 MULTILIB_REQUIRED: Define.
8677 * configure: Regenerate.
8678 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
8679 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
8680 * doc/extend.texi: Clarify comment for {upper,lower,either}
8681 function attributes.
8682 Add separate description for "lower" variable attribute.
8683
8684 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
8685
8686 PR target/77918
8687 * optabs-tree.c (vcond_icode_p): New function.
8688 (vcond_eq_icode_p): Likewise.
8689 (expand_vec_cond_expr_p): Use vcond_icode_p and
8690 vcond_eq_icode_p.
8691 * optabs.c (can_vcond_compare_p): New function.
8692 * optabs.h (can_vcond_compare_p): Likewise.
8693
8694 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
8695
8696 PR target/77918
8697 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
8698 caller passes a non-trapping condition.
8699 (is_gimple_condexpr): Allow trapping conditions.
8700 (is_gimple_condexpr_1): New helper function.
8701 (is_gimple_condexpr_for_cond): New function, acts like old
8702 is_gimple_condexpr.
8703 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
8704 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
8705 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
8706 * gimplify.c (gimplify_cond_expr): Use
8707 is_gimple_condexpr_for_cond.
8708 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
8709 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
8710 VEC_COND_EXPR.
8711 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
8712 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
8713 is_gimple_condexpr_for_cond, remove pointless tmp check
8714 (forward_propagate_into_cond): Remove pointless tmp check.
8715
8716 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
8717
8718 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
8719 match that of other gsi_next_* functions. Adjust the comment.
8720 (gsi_start_nonvirtual_phis): New function.
8721 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
8722 gsi_next_nonvirtual_phi accordingly. (No functional change.)
8723
8724 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
8725
8726 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
8727 setjmp situation here. Fix a verb's ending: "the exact variables or
8728 elements for which there are warnings depends" -> "... depend".
8729
8730 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8731
8732 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
8733
8734 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8735
8736 * ipa-prop.c (ipa_vr::nonzero_p): New.
8737 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
8738 non-zero range.
8739 * ipa-prop.h (class ipa_vr): Add nonzero_p.
8740 * tree-vrp.c (range_has_numeric_bounds_p): New.
8741 (range_int_cst_p): Use range_has_numeric_bounds_p.
8742 (get_range_op_handler): New.
8743 (supported_types_p): New.
8744 (defined_ranges_p): New.
8745 (drop_undefines_to_varying): New.
8746 (range_fold_binary_symbolics_p): New.
8747 (range_fold_unary_symbolics_p): New.
8748 (range_fold_unary_expr): Extract out into above functions.
8749 (range_fold_binary_expr): Same.
8750 (value_range_base::normalize_addresses): New.
8751 (value_range_base::normalize_symbolics): Normalize addresses.
8752 * tree-vrp.h (class value_range_base): Add normalize_addresses.
8753
8754 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
8755
8756 * tree-vrp.c (value_range_base::singleton_p): Use
8757 value_range_base::num_pairs instead of vrp_val_is* to check
8758 if a range has one sub-range.
8759
8760 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8761
8762 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
8763 DEF is not a true earlyclobber but is tied to a specific input
8764 operand, and so is effectively earlyclobber wrt inputs that have
8765 different values.
8766 (make_early_clobber_and_input_conflicts): Pass this case to the above.
8767
8768 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8769
8770 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
8771 (pod_mode): Mark operators likewise.
8772 (scalar_int_mode): Mark non-default constructors and
8773 operators with CONSTEXPR.
8774 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
8775 (fixed_size_mode): Likewise.
8776
8777 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
8778
8779 PR target/91994
8780 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
8781 and wrap the unspec_volatile in a parallel.
8782 (*avx_vzeroupper): New define_insn. Use a match_parallel around
8783 the unspec_volatile.
8784 * config/i386/predicates.md (vzeroupper_pattern): Expect the
8785 unspec_volatile to be wrapped in a parallel.
8786 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
8787 (ix86_add_reg_usage_to_vzerouppers): New functions.
8788 (rest_of_handle_insert_vzeroupper): Use them to add register
8789 usage information to the vzeroupper instructions.
8790
8791 2019-10-07 Richard Biener <rguenther@suse.de>
8792
8793 PR tree-optimization/91975
8794 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
8795 handle invariants.
8796
8797 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
8798
8799 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
8800 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
8801
8802 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
8803
8804 * config/darwin.c (darwin_override_options): Adjust objective-c
8805 ABI version error messages to avoid punctuation and contracted
8806 negations.
8807
8808 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
8809
8810 * ipa-inline.c: Fix type; compute size rather than self_size
8811 for size of caller function.
8812
8813 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
8814
8815 PR target/59888
8816 * config/darwin.c (darwin_rodata_section): Add relocation flag,
8817 choose const_data section for constants with relocations.
8818 (machopic_select_section): Pass relocation flag to
8819 darwin_rodata_section ().
8820
8821 2019-10-05 Jakub Jelinek <jakub@redhat.com>
8822
8823 PR tree-optimization/91734
8824 * generic-match-head.c: Include fold-const-call.h.
8825 * match.pd (sqrt(x) cmp c): Check the boundary value and
8826 in case inexact computation of c*c affects comparison of the boundary,
8827 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
8828 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
8829 for -frounding-math. For c2, try the next smaller or larger floating
8830 point constant depending on comparison code and if it has the same
8831 sqrt as c2, use it instead of c2.
8832
8833 2019-10-04 Martin Sebor <msebor@redhat.com>
8834
8835 PR middle-end/91977
8836 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
8837 MEM_REF right operand. Avoid failing for MEM_REF assignments from
8838 uninitialized objects.
8839
8840 2019-10-04 Martin Sebor <msebor@redhat.com>
8841
8842 * builtins.c (compute_objsize): Add an argument.
8843 * tree-object-size.c (addr_object_size): Same.
8844 (compute_builtin_object_size): Same.
8845 * tree-object-size.h (compute_builtin_object): Same.
8846
8847 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
8848
8849 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
8850
8851 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
8852
8853 * match.pd (sinh (x) / cosh (x)): New simplification rule.
8854
8855 2019-10-04 Martin Jambor <mjambor@suse.cz>
8856
8857 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
8858 fntype when switching to calling memcpy instead of memset.
8859
8860 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8861
8862 * hash-table.h (hash_table::empty_slow): Don't assign
8863 size_t values to int variables.
8864
8865 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8866
8867 * expr.c (convert_mode_scalar): Remove shadowing local var.
8868 (emit_block_move): Rename local vars.
8869 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
8870 (emit_push_insn): Rename local vars.
8871 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
8872 shadowing local vars.
8873 (store_constructor): Remove shadowing local vars. Rename local var.
8874 (store_field, expand_cond_expr_using_cmove,
8875 expand_expr_real_2): Remove shadowing local vars.
8876 (expand_expr_real_1,
8877 do_store_flag): Remove shadowing local vars. Rename local vars.
8878
8879 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8880
8881 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
8882
8883 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8884
8885 * genmatch.c (commutate): Rename local var.
8886 (lower_cond): Reuse local var.
8887 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
8888 dt_operand::gen, dt_operand::gen_gimple_expr,
8889 dt_simplify::gen): Add a param. Rename generated vars.
8890 (decision_tree::insert_operand,
8891 (capture_info::walk_match, capture_info::walk_result,
8892 capture_info::walk_c_expr): Rename local vars.
8893 (expr::gen_transform): Rename generated vars.
8894 Use snprintf. Rename local vars.
8895 (capture::gen_transform, dt_operand::get_name,
8896 dt_operand::gen_opname): Rename generated vars.
8897 (write_predicate): Adjust call to gen_kids.
8898 (parser::get_internal_capture_id): Rename generated vars.
8899 (parser::parse_expr): Rename local vars.
8900 (parser::parse_if): Remove local var.
8901 (parser::parse_pattern, add_operator): Rename local vars.
8902
8903 2019-10-04 Joseph Myers <joseph@codesourcery.com>
8904
8905 * builtins.def (DEF_C2X_BUILTIN): New macro.
8906 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
8907 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
8908 (strndup): Use DEF_C2X_BUILTIN.
8909 * coretypes.h (enum function_class): Add function_c2x_misc.
8910
8911 2019-10-04 Maya Rashish <coypu@sdf.org>
8912
8913 * ira-color.c (update_costs_from_allocno): Call
8914 ira_init_register_move_cost_if_necessary.
8915
8916 2019-10-04 Jeff Law <law@redhat.com>
8917
8918 * config/h8300/h8300.md (cpymemsi): Disable.
8919 (movmd, movmd_internal_<mode>, movstr, movsd):
8920 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
8921 (movmd splitter, movsd splitter): Likewise.
8922
8923 * range-op.cc (range_tests): Avoid two tests when ints and
8924 shorts are the same size.
8925
8926 2019-10-04 Richard Biener <rguenther@suse.de>
8927
8928 PR lto/91968
8929 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
8930 BLOCK_VARS.
8931
8932 2019-10-04 Richard Biener <rguenther@suse.de>
8933
8934 PR tree-optimization/91982
8935 * tree-vect-loop.c (vectorizable_live_operation): Also guard
8936 against EXTRACT_LAST_REDUCTION.
8937 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
8938
8939 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
8940
8941 * range-op.o (value_range_from_overflowed_bounds): Rename from
8942 adjust_overflow_bound.
8943 (value_range_with_overflow): Rename from
8944 create_range_with_overflow.
8945 (create_possibly_reversed_range): Adjusted for above renames.
8946 (operator_*::wi_fold): Same.
8947 (cross_product_operator::wi_cross_productor): Same.
8948
8949 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8950
8951 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
8952 -Wshadow=compatible-local): Fix description.
8953 Add an example where -Wshadow=compatible-local does not
8954 warn.
8955
8956 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
8957
8958 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
8959
8960 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
8961 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
8962
8963 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8964
8965 * expr.c (emit_block_move_hints): Slightly cleaner fix to
8966 can_move_by_pieces issue.
8967
8968 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
8969
8970 PR target/87243
8971 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
8972 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
8973 is available and the user has not set one on the command line.
8974
8975 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
8976
8977 PR target/91769
8978 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
8979 instead of REGNO equality check on addr.reg.
8980
8981 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
8982
8983 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
8984 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
8985 * doc/invoke.texi (inline-heuristics-hint-percent,
8986 inline-heuristics-hint-percent-O2): Document.
8987 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
8988 hint attribute.
8989 (can_inline_edge_by_limits_p): Use it.
8990
8991 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
8992
8993 * config/arm/arm.c (arm_print_value): Use real_to_decimal
8994 to print CONST_DOUBLEs.
8995
8996 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
8997
8998 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
8999 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9000 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9001
9002 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9003
9004 * Makefile.in (OBJS): Add range.o and range-op.o.
9005 Remove wide-int-range.o.
9006 * function-tests.c (test_ranges): New.
9007 (function_tests_c_tests): Call test_ranges.
9008 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9009 range_fold_unary_expr instead of extract_range_from_unary_expr.
9010 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9011 * range-op.cc: New file.
9012 * range-op.h: New file.
9013 * range.cc: New file.
9014 * range.h: New file.
9015 * selftest.h (range_tests): New prototype.
9016 * ssa.h: Include range.h.
9017 * tree-vrp.c (value_range_base::value_range_base): New
9018 constructors.
9019 (value_range_base::singleton_p): Do not call
9020 ranges_from_anti_range until sure we will need to.
9021 (value_range_base::type): Rename gcc_assert to
9022 gcc_checking_assert.
9023 (vrp_val_is_max): New argument.
9024 (vrp_val_is_min): Same.
9025 (wide_int_range_set_zero_nonzero_bits): Move from
9026 wide-int-range.cc.
9027 (extract_range_into_wide_ints): Remove.
9028 (extract_range_from_multiplicative_op): Remove.
9029 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9030 from extract_range_from_binary_expr.
9031 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9032 from extract_range_from_binary_expr.
9033 (extract_range_from_binary_expr): Remove.
9034 (normalize_for_range_ops): New.
9035 (range_fold_binary_expr): New.
9036 (range_fold_unary_expr): New.
9037 (value_range_base::num_pairs): New.
9038 (value_range_base::lower_bound): New.
9039 (value_range_base::upper_bound): New.
9040 (value_range_base::upper_bound): New.
9041 (value_range_base::contains_p): New.
9042 (value_range_base::invert): New.
9043 (value_range_base::union_): New.
9044 (value_range_base::intersect): New.
9045 (range_compatible_p): New.
9046 (value_range_base::operator==): New.
9047 (determine_value_range_1): Call range_fold_*expr instead of
9048 extract_range_from_*expr.
9049 * tree-vrp.h (class value_range_base): Add new constructors.
9050 Add methods for union_, intersect, operator==, contains_p,
9051 num_pairs, lower_bound, upper_bound, invert.
9052 (vrp_val_is_min): Add handle_pointers argument.
9053 (vrp_val_is_max): Same.
9054 (extract_range_from_unary_expr): Remove.
9055 (extract_range_from_binary_expr): Remove.
9056 (range_fold_unary_expr): New.
9057 (range_fold_binary_expr): New.
9058 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9059 range_fold_binary_expr instead of extract_range_from_binary_expr.
9060 (vr_values::extract_range_basic): Same.
9061 (vr_values::extract_range_from_unary_expr): Call
9062 range_fold_unary_expr instead of extract_range_from_unary_expr.
9063 * wide-int-range.cc: Remove.
9064 * wide-int-range.h: Remove.
9065
9066 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9067
9068 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9069 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9070 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9071 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9072 macro.
9073
9074 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9075
9076 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9077 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9078 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9079 * glimits.h: Likewise.
9080
9081 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9082
9083 PR rtl-optimization/91976
9084 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9085 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9086 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9087
9088 2019-10-02 Martin Sebor <msebor@redhat.com>
9089
9090 PR tree-optimization/80936
9091 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9092
9093 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9094
9095 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9096 instead of reg_class_contents[ALL_REGS].
9097
9098 2019-09-30 Jason Merrill <jason@redhat.com>
9099
9100 Add some hash_map_safe_* functions like vec_safe_*.
9101 * hash-map.h (default_hash_map_size): New variable.
9102 (create_ggc): Use it as default argument.
9103 (hash_map_maybe_create, hash_map_safe_get)
9104 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9105
9106 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9107
9108 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9109 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9110 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9111 (can_inline_edge_by_limits_p): Use it.
9112 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9113 (want_inline_small_function_p): Use O2 bounds.
9114 (edge_badness): LIkewise.
9115 * opts.c (default_options): Add OPT_finline_functions.
9116 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9117 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9118 New parameters.
9119 * doc/invoke.texi (-finline-functions): Update documentation.
9120 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9121 inline-min-speedup-O2): Document.
9122 (early-inlining-insns-O2): Simplify docs.
9123
9124 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9125
9126 PR rtl-optimization/87047
9127 * ifcvt.c (average_cost): New static function. Use it...
9128 (noce_process_if_block): ... here.
9129
9130 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9131
9132 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9133 * config/rs6000/rs6000-string.c (expand_block_move): Add
9134 might_overlap parm.
9135 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9136 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9137
9138 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9139
9140 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9141 (expand_builtin_memcpy): Use might_overlap parm.
9142 (expand_builtin_mempcpy_args): Use might_overlap parm.
9143 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9144 (expand_builtin_memory_copy_args): Add might_overlap parm.
9145 * expr.c (emit_block_move_via_cpymem): Rename to
9146 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9147 or movmem optab as appropriate.
9148 (emit_block_move_hints): Add might_overlap parm, do the right
9149 thing for might_overlap==true.
9150 * expr.h (emit_block_move_hints): Update prototype.
9151
9152 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9153
9154 * tree-eh.h (unsplit_eh_edges): Declare.
9155 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9156 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9157 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9158 (struct store_immediate_info): Add lp_nr field.
9159 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9160 initialize lp_nr with it.
9161 (struct merged_store_group): Add lp_nr and only_constants fields.
9162 (merged_store_group::merged_store_group): Initialize them.
9163 (merged_store_group::can_be_merged_into): Deal with them.
9164 (pass_store_merging): Rename terminate_and_release_chain into
9165 terminate_and_process_chain.
9166 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9167 renaming and remove useless assertions.
9168 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9169 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9170 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9171 instead of always recomputing it and compare lp_nr.
9172 (imm_store_chain_info::output_merged_store): If the group is in an
9173 active EH region, register new stores if they can throw. Moreover,
9174 if the insertion has created new basic blocks, adjust the PHI nodes
9175 of the post landing pad.
9176 (imm_store_chain_info::output_merged_stores): If the original stores
9177 are in an active EH region, deregister them.
9178 (lhs_valid_for_store_merging_p): Prettify.
9179 (adjust_bit_pos): New function extracted from...
9180 (mem_valid_for_store_merging): ...here. Use it for the base address
9181 and also for the offset if it is the addition of a constant.
9182 (lp_nr_for_store): New function.
9183 (pass_store_merging::process_store): Change return type to bool.
9184 Call lp_nr_for_store to initialize the store info. Propagate the
9185 return status of various called functions to the return value.
9186 (store_valid_for_store_merging_p): New predicate.
9187 (enum basic_block_status): New enumeration.
9188 (get_status_for_store_merging): New function.
9189 (pass_store_merging::execute): If the function can throw and catch
9190 non-call exceptions, unsplit the EH edges on entry and clean up the
9191 CFG on exit if something changed. Call get_status_for_store_merging
9192 for every basic block and keep the chains open across basic blocks
9193 when possible. Terminate and process open chains at the end, if any.
9194
9195 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9196
9197 * reginfo.c (globalize_reg): Fix shadowed variable in
9198 function_abis walk.
9199
9200 2019-10-02 Martin Jambor <mjambor@suse.cz>
9201
9202 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9203 do not compute some stuff when set.
9204 (cgraph_node::create_edge): Likewise.
9205 (cgraph_node::create_indirect_edge): Renamed last parameter to
9206 coning_p and flipped its meaning, don't even calculate
9207 inline_failed when set.
9208 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9209 (symbol_table::::create_edge): Likewise.
9210 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9211 the default value.
9212 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9213 call graph edge creating functions.
9214
9215 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9216
9217 PR c++/91222
9218 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9219 namespace types.
9220
9221 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
9222
9223 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9224
9225 2019-10-02 Richard Biener <rguenther@suse.de>
9226
9227 * tree-vectorizer.h (vect_transform_reduction): Declare.
9228 * tree-vect-stmts.c (vect_transform_stmt): Use it.
9229 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9230 stmt transform to ...
9231 (vect_transform_reduction): ... this.
9232
9233 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
9234
9235 * omp-low.c (lower_omp_target): Dereference optional argument
9236 to work with the right pointer.
9237
9238 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
9239
9240 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9241 false.
9242 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9243 * langhooks.h (omp_is_optional_argument): New hook.
9244 * omp-general.c (omp_is_optional_argument): New.
9245 * omp-general.h (omp_is_optional_argument): New declaration.
9246 * omp-low.c (lower_omp_target): Create temporary for received value
9247 and take the address for new_var if the original variable was a
9248 DECL_BY_REFERENCE. Use size of referenced object when a
9249 pass-by-reference optional argument used as argument to firstprivate.
9250
9251 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9252
9253 PR tree-optimization/91940
9254 * tree-vect-patterns.c: Include tree-vector-builder.h and
9255 vec-perm-indices.h.
9256 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9257 unpromoting the argument back to uint16_t, or by converting into a
9258 rotate, or into shifts plus ior.
9259
9260 2019-10-02 Richard Biener <rguenther@suse.de>
9261
9262 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9263 New.
9264 (vect_transform_cycle_phi): Declare.
9265 * tree-vect-stmts.c (vect_transform_stmt): Call
9266 vect_transform_cycle_phi.
9267 * tree-vect-loop.c (vectorizable_reduction): Split out
9268 PHI transformation stage to ...
9269 (vect_transform_cycle_phi): ... here.
9270
9271 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9272
9273 PR middle-end/91957
9274 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9275 eliminable registers.
9276 (make_hard_regno_live): Likewise, and don't make them live.
9277
9278 2019-10-01 David Malcolm <dmalcolm@redhat.com>
9279
9280 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
9281 Call pp_emit_prefix.
9282 (layout::print_source_line): Likewise.
9283 (layout::start_annotation_line): Likewise.
9284 (diagnostic_show_locus): Remove call to temporarily clear the
9285 prefix.
9286 (selftest::test_one_liner_fixit_remove): Add test coverage for the
9287 interaction of pp_set_prefix with rulers and fix-it hints.
9288 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
9289 prefix when calling diagnostic_show_locus, rather than destroying
9290 it afterwards.
9291 (print_parseable_fixits): Temporarily clear prefix.
9292 * pretty-print.c (pp_format): Save and restore line_length, rather
9293 than assuming it is zero.
9294 (pp_output_formatted_text): Remove assertion that line_length is
9295 zero.
9296
9297 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9298
9299 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
9300 Rename to ...
9301 (nonoverlapping_refs_since_match_p): ... this; handle also
9302 ARRAY_REFs.
9303 (alias_stats): Update stats.
9304 (dump_alias_stats): Likewise.
9305 (cheap_array_ref_low_bound): New function.
9306 (aliasing_matching_component_refs_p): Add partial_overlap
9307 argument;
9308 pass it to nonoverlapping_refs_since_match_p.
9309 (aliasing_component_refs_walk): Update call of
9310 aliasing_matching_component_refs_p
9311 (nonoverlapping_array_refs_p): New function.
9312 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
9313 indirect_refs_may_alias_p): Update calls of
9314 nonoverlapping_refs_since_match_p.
9315
9316 2019-10-01 Maya Rashish <coypu@sdf.org>
9317
9318 PR target/85401
9319 * ira-color.c (allocno_copy_cost_saving): Call
9320 ira_init_register_move_cost_if_necessary.
9321
9322 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
9323
9324 * Makefile.in (gnat_install_lib): New variable.
9325 * configure.ac: Substitute it.
9326 * configure: Regenerate.
9327
9328 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9329
9330 PR lto/91222
9331 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
9332 is matched with non-C++ type
9333
9334 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9335
9336 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
9337 after local CSE.
9338
9339 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9340
9341 * doc/invoke.texi (early-inlining-insns-O2): Document.
9342 (early-inlining-insns): Update.
9343 * params.def (early-inlining-insns-O2): New bound.
9344 (early-inlining-insns): Update docs.
9345 * ipa-inline.c (want_early_inline_function_p): Use new bound.
9346
9347 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
9348
9349 PR target/88562
9350 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
9351 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
9352 a memory access insn.
9353
9354 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
9355
9356 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
9357 vpmsumd.
9358
9359 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9360
9361 PR target/77918
9362 * config/s390/s390.c (s390_expand_vec_compare): Use
9363 gen_vec_cmpordered and gen_vec_cmpunordered.
9364 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
9365 vec_unordered): Delete.
9366 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
9367 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
9368 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
9369 (vec_cmp<code>): Generic dispatcher.
9370
9371 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
9372
9373 PR target/77918
9374 * config/s390/vector.md (V_HW): Add V1TI in order to make
9375 vcond$a$b generate vcondv1tiv1tf.
9376
9377 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9378
9379 PR rtl-optimization/91948
9380 * ira-build.c (ira_create_allocno): Initialize
9381 ALLOCNO_CROSSED_CALLS_ABIS.
9382 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
9383 than regno to ira_need_caller_save_p.
9384
9385 2019-10-01 Alexandre Oliva <oliva@adacore.com>
9386
9387 * config/i386/i386-options.c
9388 (ix86_recompute_optlev_based_flags): New, moved out of...
9389 (ix86_option_override_internal): ... this. Call it.
9390 (ix86_override_options_after_change): Call it here too.
9391
9392 PR debug/91507
9393 * dwarf2out.c (override_type_for_decl_p): New.
9394 (gen_variable_die): Use it.
9395
9396 2019-10-01 Richard Biener <rguenther@suse.de>
9397
9398 * tree-vect-loop.c (vectorizable_reduction): Move variables
9399 to where they are used.
9400
9401 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9402
9403 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
9404 (build_def_use): Use PC instead of CC0 in a comment.
9405
9406 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9407
9408 * rtl.def (CLOBBER_HIGH): Delete.
9409 * doc/rtl.texi (clobber_high): Remove documentation.
9410 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
9411 (reg_is_clobbered_by_clobber_high): Delete.
9412 (gen_hard_reg_clobber_high): Likewise.
9413 * alias.c (record_set): Remove CLOBBER_HIGH handling.
9414 * cfgexpand.c (expand_gimple_stmt): Likewise.
9415 * combine-stack-adj.c (single_set_for_csa): Likewise.
9416 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
9417 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
9418 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
9419 * cse.c (invalidate_reg): Remove clobber_high parameter.
9420 (invalidate): Update call accordingly.
9421 (canonicalize_insn): Remove CLOBBER_HIGH handling.
9422 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
9423 (count_reg_usage, insn_live_p): Likewise.
9424 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
9425 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
9426 (cselib_invalidate_rtx_note_stores): Update call accordingly.
9427 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
9428 (cselib_invalidate_regno, cselib_process_insn): Likewise.
9429 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
9430 (mark_nonreg_stores_2): Likewise.
9431 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
9432 (df_get_call_refs): Likewise.
9433 * dwarf2out.c (mem_loc_descriptor): Likewise.
9434 * emit-rtl.c (verify_rtx_sharing): Likewise.
9435 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
9436 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
9437 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
9438 * genemit.c (gen_exp, gen_insn): Likewise.
9439 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
9440 * haifa-sched.c (haifa_classify_rtx): Likewise.
9441 * ira-build.c (create_insn_allocnos): Likewise.
9442 * ira-costs.c (scan_one_insn): Likewise.
9443 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
9444 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
9445 * jump.c (mark_jump_label_1): Likewise.
9446 * lra-int.h (lra_insn_reg::clobber_high): Delete.
9447 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
9448 handling.
9449 (mark_not_eliminable): Likewise.
9450 * lra-lives.c (process_bb_lives): Likewise.
9451 * lra.c (new_insn_reg): Remove clobber_high parameter.
9452 (collect_non_operand_hard_regs): Likewise. Update call to new
9453 insn_reg. Remove CLOBBER_HIGH handling.
9454 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
9455 to collect_non_operand_hard_regs.
9456 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
9457 Update call to new_insn_reg.
9458 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
9459 * postreload.c (reload_cse_simplify, reload_combine_note_use)
9460 (move2add_note_store): Likewise.
9461 * print-rtl.c (print_pattern): Likewise.
9462 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
9463 (if_test_bypass_p): Likewise.
9464 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
9465 * reginfo.c (reg_scan_mark_refs): Likewise.
9466 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
9467 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
9468 (forget_old_reloads_1): Likewise.
9469 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
9470 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
9471 (dbr_schedule): Likewise.
9472 * resource.c (update_live_status, mark_referenced_resources)
9473 (mark_set_resources): Likewise.
9474 * rtl.c (copy_rtx): Likewise.
9475 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
9476 (note_pattern_stores): Likewise.
9477 (reg_is_clobbered_by_clobber_high): Delete.
9478 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
9479 CLOBBER_HIGH handling.
9480
9481 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9482
9483 PR target/91452
9484 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
9485 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
9486 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9487 Handle ARM_PCS_TLSDESC.
9488 (aarch64_tlsdesc_abi_id): New function.
9489 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
9490 rtx instead of a list of clobbers and clobber_highs.
9491 (tlsdesc_small_<mode>): Update accordingly.
9492
9493 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9494
9495 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
9496 extra callee_abi argument.
9497 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
9498 Insert a CALLEE_ABI unspec into the call pattern as the second
9499 element in the PARALLEL.
9500 (aarch64_simd_call_p): Delete.
9501 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
9502 the new CALLEE_ABI element of the PARALLEL.
9503 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
9504 from the function type, if given.
9505 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
9506 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
9507 when passed the function_arg_info end marker.
9508 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
9509 final argument of gen_sibcall.
9510 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
9511 (call): Make operand 2 a const_int_operand and pass it to expand_call.
9512 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
9513 pattern.
9514 (call_value): Likewise operand 3.
9515 (sibcall): Likewise operand 2. Place the unspec before rather than
9516 after the return.
9517 (sibcall_value): Likewise operand 3.
9518 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
9519 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
9520 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
9521 constraint strings.
9522 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
9523
9524 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
9525
9526 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
9527 choose_hard_reg_mode.
9528 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9529
9530 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9531
9532 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
9533 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
9534 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
9535
9536 2019-09-30 David Malcolm <dmalcolm@redhat.com>
9537
9538 * diagnostic-show-locus.c (line_label::line_label): Initialize
9539 m_has_vbar.
9540 (line_label::comparator): Reverse the sort order by m_state_idx,
9541 so that when the list is walked backwards the labels appear in
9542 order of insertion into the rich_location.
9543 (line_label::m_has_vbar): New field.
9544 (layout::print_any_labels): When dealing with multiple labels at
9545 the same line and column, only print vertical bars for the one
9546 with the highest label_line.
9547 (selftest::test_one_liner_labels): Update test for multiple labels
9548 to expect the labels to be in the order of insertion into the
9549 rich_location. Add a test for many such labels, where the column
9550 numbers are out-of-order relative to the insertion order.
9551
9552 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9553
9554 * config/i386/i386.h (ix86_frame::expensive_p): New field.
9555 (ix86_frame::expensive_count): Likewise.
9556 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
9557 of use_fast_prologue_epilogue robust against incidental changes
9558 in function size.
9559
9560 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9561
9562 PR target/77918
9563 * config/s390/vector.md (vec_unordered<mode>): Call
9564 gen_vec_ordered<mode>.
9565
9566 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
9567
9568 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
9569 New pattern for ASRD.
9570 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
9571 * internal-fn.def (IFN_DIV_POW2): New internal function.
9572 * optabs.def (sdiv_pow2_optab): New optab.
9573 * tree-vect-patterns.c (vect_recog_divmod_pattern):
9574 Modify pattern to support new operation.
9575 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
9576 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
9577 Document new target selector.
9578
9579 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9580
9581 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
9582 to test whether we're compiling a vector PCS function and to test
9583 whether the function needs to save a particular register.
9584 Remove the vector PCS handling of df_set_regs_ever_live.
9585 (aarch64_components_for_bb): Use crtl->abi to test whether
9586 the function needs to save a particular register.
9587 (aarch64_process_components): Use crtl->abi to test whether
9588 we're compiling a vector PCS function.
9589 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
9590 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
9591
9592 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9593
9594 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
9595 Delete.
9596 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
9597 whether the block calls a function that clobbers more registers
9598 than the current function is allowed to.
9599 (aarch64_use_simple_return_insn_p): Delete.
9600 * config/aarch64/aarch64.md (simple_return): Remove condition.
9601
9602 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9603
9604 * function-abi.h (function_abi_aggregator): New class.
9605 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
9606 function.
9607 * ira.c (update_equiv_regs_prescan): New function. Call
9608 set_paradoxical_subreg here rather than...
9609 (update_equiv_regs): ...here.
9610 (ira): Call update_equiv_regs_prescan.
9611
9612 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9613
9614 * hard-reg-set.h (regs_invalidated_by_call): Only define if
9615 IN_TARGET_CODE.
9616 (call_used_or_fixed_regs): Likewise.
9617 (call_used_or_fixed_reg_p): Likewise.
9618 * reginfo.c (regs_invalidated_by_call): New macro.
9619
9620 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9621
9622 * shrink-wrap.c: Include function-abi.h.
9623 (requires_stack_frame_p): Use crtl->abi to test whether the
9624 current function can use a register without saving it first.
9625
9626 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9627
9628 * sel-sched-ir.h (_def::crosses_call): Replace with...
9629 (_def::crossed_call_abis): ..this new field.
9630 (def_list_add): Take a mask of ABIs instead of a crosses_call
9631 boolean.
9632 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
9633 of _def accordingly.
9634 * sel-sched.c: Include function-abi.h.
9635 (hard_regs_data::regs_for_call_clobbered): Delete.
9636 (reg_rename::crosses_call): Replace with...
9637 (reg_rename::crossed_call_abis): ...this new field.
9638 (fur_static_params::crosses_call): Replace with...
9639 (fur_static_params::crossed_call_abis): ...this new field.
9640 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
9641 (init_hard_regs_data): Use crtl->abi to test which registers the
9642 current function would need to save before it uses them.
9643 (mark_unavailable_hard_regs): Update handling of call-clobbered
9644 registers, using call_clobbers_in_region to find out which registers
9645 might be call-clobbered (but without taking -fipa-ra into account
9646 for now). Remove separate handling of partially call-clobbered
9647 registers.
9648 (verify_target_availability): Use crossed_call_abis instead of
9649 crosses_call.
9650 (get_spec_check_type_for_insn, find_used_regs): Likewise.
9651 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
9652
9653 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9654
9655 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
9656 function to test whether a register is fully or partly clobbered.
9657
9658 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9659
9660 * rtlanal.c: Include function-abi.h.
9661 (reg_set_p): Use insn_callee_abi to get the ABI of the called
9662 function and clobbers_reg_p to test whether the register
9663 is call-clobbered.
9664 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
9665 to get the ABI of the called function and full_reg_clobbers to
9666 get the set of fully call-clobbered registers. Warn about the
9667 pitfalls of using this mode.
9668
9669 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9670
9671 * reload.c: Include function-abi.h.
9672 (find_equiv_reg): Use clobbers_reg_p to test whether either
9673 of the equivalent registers is clobbered by a call.
9674 * reload1.c: Include function-abi.h.
9675 (reg_reloaded_call_part_clobbered): Delete.
9676 (reload): Use crtl->abi to test which registers would need
9677 saving in the prologue before use.
9678 (find_reg): Likewise.
9679 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
9680 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
9681 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
9682
9683 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9684
9685 * regrename.h (du_head::call_clobber_mask): New field.
9686 (du_head::need_caller_save_reg): Replace with...
9687 (du_head::call_abis): ...this new field.
9688 * regrename.c: Include function-abi.h.
9689 (call_clobbered_in_chain_p): New function.
9690 (check_new_reg_p): Use crtl->abi when deciding whether a register
9691 is free for use after RA. Use call_clobbered_in_chain_p to test
9692 whether a candidate register would be clobbered by a call.
9693 (find_rename_reg): Don't add call-clobber conflicts here.
9694 (rename_chains): Check call_abis instead of need_caller_save_reg.
9695 (merge_chains): Update for changes to du_head.
9696 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
9697 target. Record the ABI identifier in call_abis and the set of
9698 fully or partially clobbered registers in call_clobber_mask.
9699 Add fully-clobbered registers to hard_conflicts here rather
9700 than in find_rename_reg.
9701 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
9702 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
9703 * config/aarch64/falkor-tag-collision-avoidance.c: Include
9704 function-abi.h.
9705 * config/c6x/c6x.c: Likewise.
9706
9707 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9708
9709 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
9710 mode of the register when deciding whether it is no longer
9711 available after a call.
9712
9713 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9714
9715 * recog.c: Include function-abi.h.
9716 (peep2_find_free_register): Use crtl->abi when deciding whether
9717 a register is free for use after RA.
9718
9719 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9720
9721 * postreload-gcse.c: Include regs.h and function-abi.h.
9722 (record_opr_changes): Use insn_callee_abi to get the ABI of the
9723 call insn target. Conservatively assume that partially-clobbered
9724 registers are altered.
9725
9726 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9727
9728 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
9729 when deciding whether a register is free for use after RA.
9730 (reload_combine): Remove unnecessary use of fixed_reg_set.
9731 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
9732 call insn target. Use reg_mode when testing whether a register
9733 is no longer available.
9734
9735 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9736
9737 * target.def (return_call_with_max_clobbers): Delete.
9738 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
9739 * doc/tm.texi: Regenerate.
9740 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
9741 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
9742 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
9743 (lra_reg::call_insn): Delete.
9744 * lra.c: Include function-abi.h.
9745 (initialize_lra_reg_info_element): Don't initialize the fields above.
9746 (lra): Use crtl->abi to test whether the current function needs to
9747 save a register in the prologue. Remove special pre-inheritance
9748 lra_create_live_ranges pass for flag_ipa_ra.
9749 * lra-assigns.c: Include function-abi.h
9750 (find_hard_regno_for_1): Use crtl->abi to test whether the current
9751 function needs to save a register in the prologue.
9752 (lra_assign): Assert that registers aren't allocated to a
9753 conflicting register, rather than checking only for overlaps
9754 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
9755 and for registers that are not live across a call.
9756 * lra-constraints.c (last_call_for_abi): New variable.
9757 (full_and_partial_call_clobbers): Likewise.
9758 (setup_next_usage_insn): Remove the register from
9759 full_and_partial_call_clobbers.
9760 (need_for_call_save_p): Use call_clobbered_in_region_p to test
9761 whether the register needs a caller save.
9762 (need_for_split_p): Use full_and_partial_reg_clobbers instead
9763 of call_used_or_fixed_regs.
9764 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
9765 full_and_partial_call_clobbers.
9766 * lra-lives.c (check_pseudos_live_through_calls): Replace
9767 last_call_used_reg_set and call_insn arguments with an abi argument.
9768 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
9769 as the set of conflicting registers.
9770 (calls_have_same_clobbers_p): Delete.
9771 (process_bb_lives): Track the ABI of the last call instead of an
9772 insn/HARD_REG_SET pair. Update calls to
9773 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
9774 the set of registers that could be clobbered by an EH edge.
9775 Include partially-clobbered as well as fully-clobbered registers.
9776 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
9777 * lra-remat.c: Include function-abi.h.
9778 (call_used_regs_arr_len, call_used_regs_arr): Delete.
9779 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
9780 registers and bitmap_view to combine them into dead_regs.
9781 (call_used_input_regno_present_p): Take a function_abi argument
9782 and use it to test whether a register is call-clobbered.
9783 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
9784 call insn target. Update tje call to call_used_input_regno_present_p.
9785 (do_remat): Likewise.
9786 (lra_remat): Remove the initialization of call_used_regs_arr_len
9787 and call_used_regs_arr.
9788
9789 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9790
9791 * loop-iv.c: Include regs.h and function-abi.h.
9792 (simplify_using_initial_values): Use insn_callee_abi to get the
9793 ABI of the call insn target. Conservatively assume that
9794 partially-clobbered registers are altered.
9795
9796 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9797
9798 * function-abi.h (call_clobbers_in_region): Declare.
9799 (call_clobbered_in_region_p): New function.
9800 * function-abi.cc (call_clobbers_in_region): Likewise.
9801 * ira-int.h: Include function-abi.h.
9802 (ira_allocno::crossed_calls_abis): New field.
9803 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
9804 (ira_need_caller_save_regs): New function.
9805 (ira_need_caller_save_p): Likewise.
9806 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
9807 of call_used_or_fixed_regs.
9808 (do_reload): Use crtl->abi to test whether the current function
9809 needs to save a register in the prologue. Count registers that
9810 need to be saved rather than registers that don't.
9811 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
9812 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9813 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
9814 (propagate_some_info_from_allocno): Likewise.
9815 (copy_info_to_removed_store_destinations): Likewise.
9816 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
9817 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
9818 (ira_build): Use ira_need_caller_save_regs instead of
9819 call_used_or_fixed_regs.
9820 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
9821 whether the current function would need to save a register
9822 before using it.
9823 (calculate_spill_cost): Likewise.
9824 (allocno_reload_assign): Use ira_need_caller_save_regs and
9825 ira_need_caller_save_p instead of call_used_or_fixed_regs.
9826 * ira-conflicts.c (ira_build_conflicts): Use
9827 ira_need_caller_save_regs rather than call_used_or_fixed_regs
9828 as the set of call-clobbered registers. Remove the
9829 call_used_or_fixed_regs mask from the calculation of
9830 temp_hard_reg_set and mask its use instead. Remove special
9831 handling of partially-clobbered registers.
9832 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
9833 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
9834 calculate the set of conflicting registers for calls that
9835 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
9836 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
9837 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9838 Use eh_edge_abi to calculate the set of registers that could
9839 be clobbered by an EH edge. Include partially-clobbered as
9840 well as fully-clobbered registers.
9841
9842 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9843
9844 * haifa-sched.c: Include function-abi.h.
9845 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
9846 the function would need to save a register before using it.
9847
9848 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9849
9850 * gcse.c: Include function-abi.h.
9851 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
9852 the call insn target. Invalidate partially call-clobbered
9853 registers as well as fully call-clobbered ones.
9854
9855 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9856
9857 * function.c (aggregate_value_p): Work out which ABI the
9858 function is using before testing which registers are at least
9859 partly preserved by a call.
9860
9861 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9862
9863 * early-remat.c: Include regs.h and function-abi.h.
9864 (early_remat::maybe_add_candidate): Don't check for call-clobbered
9865 registers here.
9866 (early_remat::restrict_remat_for_unavail_regs): New function.
9867 (early_remat::restrict_remat_for_call): Likewise.
9868 (early_remat::process_block): Before calling emit_remat_insns
9869 for a previous call in the block, invalidate any candidates
9870 that would clobber call-preserved registers.
9871 (early_remat::emit_remat_insns_for_block): Likewise for the
9872 final call in a block. Do the same thing for live-in registers
9873 when calling emit_remat_insns at the head of a block.
9874
9875 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9876
9877 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
9878 whether the current function needs to save at least part of a
9879 register before using it.
9880 (df_get_exit_block_use_set): Likewise for epilogue restores.
9881
9882 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9883
9884 * df-problems.c: Include regs.h and function-abi.h.
9885 (df_rd_problem_data): Rename sparse_invalidated_by_call to
9886 sparse_invalidated_by_eh and dense_invalidated_by_call to
9887 dense_invalidated_by_eh.
9888 (df_print_bb_index): Update accordingly.
9889 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
9890 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
9891 that are clobbered by an EH edge. Clobber partially-clobbered
9892 registers as well as fully-clobbered ones.
9893 (df_md_confluence_n): Likewise.
9894 (df_rd_local_compute): Likewise. Update for changes to
9895 df_rd_problem_data.
9896 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
9897 of registers that are clobbered by an EH edge. Includde partially-
9898 clobbered registers as well as fully-clobbered ones.
9899
9900 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9901
9902 * cselib.c (cselib_process_insn): If we know what mode a
9903 register was set in, check whether it is clobbered in that
9904 mode by a call. Only fall back to reg_raw_mode if that fails.
9905
9906 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9907
9908 * cse.c: Include regs.h and function-abi.h.
9909 (invalidate_for_call): Take the call insn as an argument.
9910 Use insn_callee_abi to get the ABI of the call and invalidate
9911 partially clobbered registers as well as fully clobbered ones.
9912 (cse_insn): Update call accordingly.
9913
9914 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9915
9916 * combine.c: Include function-abi.h.
9917 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
9918 of the target of call insns. Invalidate partially-clobbered
9919 registers as well as fully-clobbered ones.
9920
9921 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9922
9923 * cfgloopanal.c: Include regs.h and function-abi.h.
9924 (init_set_costs): Use default_function_abi to test whether
9925 a general register is call-clobbered.
9926
9927 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9928
9929 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
9930 instead of the call-clobbered sets.
9931
9932 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9933
9934 * caller-save.c (setup_save_areas): Remove redundant |s of
9935 fixed_reg_set.
9936 (save_call_clobbered_regs): Likewise. Use the call ABI rather
9937 than call_used_or_fixed_regs to decide whether a REG_RETURNED
9938 value is useful.
9939
9940 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9941
9942 * rtl.h (predefined_function_abi): Declare.
9943 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9944 instead of a boolean call_save flag.
9945 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
9946 accordingly.
9947 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9948 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9949 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
9950 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9951 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9952 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
9953 * reginfo.c (init_reg_modes_target): Likewise.
9954 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9955 instead of a boolean call_save flag.
9956 * targhooks.c: Include function-abi.h.
9957 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
9958 using eh_edge_abi to choose the mode.
9959
9960 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9961
9962 * target.def (hard_regno_call_part_clobbered): Take an ABI
9963 identifier instead of an rtx_insn.
9964 * doc/tm.texi: Regenerate.
9965 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
9966 (hook_bool_uint_uint_mode_false): New function.
9967 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
9968 (hook_bool_uint_uint_mode_false): New function.
9969 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9970 Take an ABI identifier instead of an rtx_insn.
9971 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
9972 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
9973 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
9974 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
9975 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
9976 Likewise.
9977 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
9978 * cselib.c: Include function-abi.h.
9979 (cselib_process_insn): Update call to
9980 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9981 to get the appropriate ABI identifier.
9982 * function-abi.cc (predefined_function_abi::initialize): Update call
9983 to targetm.hard_regno_call_part_clobbered.
9984 * ira-conflicts.c (ira_build_conflicts): Likewise.
9985 * ira-costs.c (ira_tune_allocno_costs): Likewise.
9986 * lra-constraints.c: Include function-abi.h.
9987 (need_for_call_save_p): Update call to
9988 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9989 to get the appropriate ABI identifier.
9990 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9991 * regcprop.c (copyprop_hardreg_forward_1): Update call
9992 to targetm.hard_regno_call_part_clobbered.
9993 * reginfo.c (choose_hard_reg_mode): Likewise.
9994 * regrename.c (check_new_reg_p): Likewise.
9995 * reload.c (find_equiv_reg): Likewise.
9996 * reload1.c (emit_reload_insns): Likewise.
9997 * sched-deps.c: Include function-abi.h.
9998 (deps_analyze_insn): Update call to
9999 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10000 to get the appropriate ABI identifier.
10001 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10002 call to targetm.hard_regno_call_part_clobbered.
10003 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10004
10005 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10006
10007 * config/i386/i386.c: Include function-abi.h.
10008 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10009 if they preserve some 256-bit or 512-bit SSE registers.
10010
10011 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10012
10013 * target.def (insn_callee_abi): New hook.
10014 (remove_extra_call_preserved_regs): Delete.
10015 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10016 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10017 * doc/tm.texi: Regenerate.
10018 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10019 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10020 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10021 insn argument.
10022 (aarch64_remove_extra_call_preserved_regs): Delete.
10023 (aarch64_insn_callee_abi): New function.
10024 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10025 (TARGET_INSN_CALLEE_ABI): New macro.
10026 * rtl.h (get_call_fndecl): Declare.
10027 (cgraph_rtl_info): Fix formatting. Tweak comment for
10028 function_used_regs. Remove function_used_regs_valid.
10029 * rtlanal.c (get_call_fndecl): Moved from final.c
10030 * function-abi.h (insn_callee_abi): Declare.
10031 (target_function_abi_info): Mention insn_callee_abi.
10032 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10033 way to get_call_reg_set_usage did.
10034 (insn_callee_abi): New function.
10035 * regs.h (get_call_reg_set_usage): Delete.
10036 * final.c: Include function-abi.h.
10037 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10038 function_used_regs before the main loop rather than afterwards.
10039 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10040 if function_used_regs ends up not being useful.
10041 (get_call_fndecl): Move to rtlanal.c
10042 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10043 * caller-save.c: Include function-abi.h.
10044 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10045 instead of get_call_reg_set_usage.
10046 * cfgcleanup.c: Include function-abi.h.
10047 (old_insns_match_p): Use insn_callee_abi instead of
10048 get_call_reg_set_usage.
10049 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10050 a tree.
10051 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10052 function_used_regs.
10053 * df-scan.c: Include function-abi.h.
10054 (df_get_call_refs): Use insn_callee_abi instead of
10055 get_call_reg_set_usage.
10056 * ira-lives.c: Include function-abi.h.
10057 (process_bb_node_lives): Use insn_callee_abi instead of
10058 get_call_reg_set_usage.
10059 * lra-lives.c: Include function-abi.h.
10060 (process_bb_lives): Use insn_callee_abi instead of
10061 get_call_reg_set_usage.
10062 * postreload.c: Include function-abi.h.
10063 (reload_combine): Use insn_callee_abi instead of
10064 get_call_reg_set_usage.
10065 * regcprop.c: Include function-abi.h.
10066 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10067 get_call_reg_set_usage.
10068 * resource.c: Include function-abi.h.
10069 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10070 instead of get_call_reg_set_usage.
10071 * var-tracking.c: Include function-abi.h.
10072 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10073 get_call_reg_set_usage.
10074
10075 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10076
10077 * target.def (fntype_abi): New target hook.
10078 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10079 * doc/tm.texi: Regenerate.
10080 * target.h (predefined_function_abi): Declare.
10081 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10082 if defined.
10083 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10084 * config/aarch64/aarch64.c: Include function-abi.h.
10085 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10086 (TARGET_FNTYPE_ABI): Define.
10087
10088 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10089
10090 * Makefile.in (OBJS): Add function-abi.o.
10091 (GTFILES): Add function-abi.h.
10092 * function-abi.cc: New file.
10093 * function-abi.h: Likewise.
10094 * emit-rtl.h (rtl_data::abi): New field.
10095 * function.c: Include function-abi.h.
10096 (prepare_function_start): Initialize crtl->abi.
10097 * read-rtl-function.c: Include regs.h and function-abi.h.
10098 (read_rtl_function_body): Initialize crtl->abi.
10099 (read_rtl_function_body_from_file_range): Likewise.
10100 * reginfo.c: Include function-abi.h.
10101 (init_reg_sets_1): Initialize default_function_abi.
10102 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10103 when making a register global.
10104 * target-globals.h (this_target_function_abi_info): Declare.
10105 (target_globals::function_abi_info): New field.
10106 (restore_target_globals): Copy it.
10107 * target-globals.c: Include function-abi.h.
10108 (default_target_globals): Initialize the function_abi_info field.
10109 (target_globals): Allocate it.
10110 (save_target_globals): Free it.
10111
10112 2019-09-30 Nick Clifton <nickc@redhat.com>
10113
10114 PR target/85978
10115 * config/frv/frv.c (frv_register_move_cost): Add break statements
10116 to avoid falling through to the wrong cases. Tidy code.
10117
10118 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10119
10120 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10121 For multi-registers modes, test how big each register part is.
10122
10123 2019-09-30 Nick Clifton <nickc@redhat.com>
10124
10125 PR target/59205
10126 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10127 (TARGET_ASM_SELECT_SECTION): Remove definition.
10128 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10129
10130 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10131
10132 * emit-rtl.c (init_raw_REG): New function.
10133 (gen_raw_REG): Use init_raw_REG.
10134 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10135 macros.
10136 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10137 * rtl.h (rtx_init): New function.
10138 (rtx_alloca): New function.
10139 (init_raw_REG): New function.
10140 (alloca_raw_REG): New macro.
10141
10142 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10143
10144 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10145 (pcrel_local_address): Replace pcrel_address predicate, use the
10146 new function address_to_insn_form.
10147 (pcrel_external_address): Replace with new implementation using
10148 address_to_insn_form..
10149 (prefixed_mem_operand): Delete predicate which is now unused.
10150 (pcrel_external_mem_operand): Delete predicate which is now
10151 unused.
10152 * config/rs6000/rs6000-protos.h (enum insn_form): New
10153 enumeration.
10154 (enum non_prefixed_form): New enumeration.
10155 (address_to_insn_form): New declaration.
10156 (prefixed_load_p): New declaration.
10157 (prefixed_store_p): New declaration.
10158 (prefixed_paddi_p): New declaration.
10159 (rs6000_asm_output_opcode): New declaration.
10160 (rs6000_final_prescan_insn): Move declaration and update calling
10161 signature.
10162 (address_is_prefixed): New helper inline function.
10163 * config/rs6000/rs6000.c(print_operand_address): Check for either
10164 PC-relative local symbols or PC-relative external symbols.
10165 (rs6000_emit_move): Support loading PC-relative addresses.
10166 (mode_supports_prefixed_address_p): Delete, no longer used.
10167 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10168 (address_to_insn_form): New function to decode an address format.
10169 (reg_to_non_prefixed): New function to identify what the
10170 non-prefixed memory instruction format is for a register.
10171 (prefixed_load_p): New function to identify prefixed loads.
10172 (prefixed_store_p): New function to identify prefixed stores.
10173 (prefixed_paddi_p): New function to identify prefixed load
10174 immediates.
10175 (next_insn_prefixed_p): New static state variable.
10176 (rs6000_final_prescan_insn): New function to determine if an insn
10177 uses a prefixed instruction.
10178 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10179 prefixed instruction.
10180 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10181 (ASM_OUTPUT_OPCODE): New target hook.
10182 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10183 prefixed instructions.
10184 (prefixed_length): New insn attribute for the size of prefixed
10185 instructions.
10186 (non_prefixed_length): New insn attribute for the size of
10187 non-prefixed instructions.
10188 (pcrel_local_addr): New insn to load up a local PC-relative
10189 address.
10190 (pcrel_extern_addr): New insn to load up an external PC-relative
10191 address.
10192 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10193 GPR and loading a 128-bit floating point type to a GPR.
10194
10195 2019-09-30 Richard Biener <rguenther@suse.de>
10196
10197 * gimple.c (gimple_get_lhs): For PHIs return the result.
10198 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10199 SLP instance as argument.
10200 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10201 double-reduction PHIs with vectorizable_lc_phi.
10202 (vect_analyze_loop_operations): Adjust.
10203 (vect_create_epilog_for_reduction): Remove all code not dealing
10204 with reduction LC PHI or epilogue generation.
10205 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10206 for live stmts of reductions.
10207 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10208 do not handle defs that are not vect_internal_def.
10209 (can_vectorize_live_stmts): Adjust.
10210 (vect_analyze_stmt): When the vectorized stmt defined a value
10211 used on backedges adjust the backedge uses of vectorized PHIs.
10212
10213 2019-09-30 Martin Jambor <mjambor@suse.cz>
10214
10215 PR ipa/91853
10216 * tree-inline.c (force_value_to_type): New function.
10217 (setup_one_parameter): Use force_value_to_type to convert type.
10218 * tree-inline.c (force_value_to_type): Declare.
10219 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10220 with register type mismatches.
10221
10222 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
10223
10224 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10225 32-bit PowerPC.
10226 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10227 * config/rs6000/t-freebsd64: Make use of the above define and build
10228 the 32-bit libraries with secure-plt.
10229
10230 2019-09-30 Jakub Jelinek <jakub@redhat.com>
10231
10232 PR target/91931
10233 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10234 gen_int_mode instead of GEN_INT.
10235
10236 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
10237
10238 * config/darwin.c (gen_macho_low): Amend to include the mode
10239 argument.
10240 (machopic_indirect_data_reference): Amend gen_macho_low call
10241 to include mode argument
10242 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10243 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10244 the macho_high expander and two define_insn entries.
10245
10246 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10247
10248 PR bootstrap/90543
10249 * optc-save-gen.awk: Fix up printing string option differences.
10250
10251 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10252
10253 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10254 vec_perm cost to 1 for non-Power7 VSX architectures.
10255
10256 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10257
10258 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10259 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10260 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10261
10262 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
10263
10264 * config/darwin.c (gen_macho_high): Amend to include the mode
10265 argument.
10266 (machopic_indirect_data_reference): Amend gen_macho_high call
10267 to include mode argument.
10268 (machopic_legitimize_pic_address): Likewise.
10269 * config/rs6000/rs6000.c (rs6000_legitimize_address):
10270 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10271 the macho_high expander and two define_insn entries.
10272
10273 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10274
10275 PR target/86805
10276 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10277
10278 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10279
10280 PR target/80672
10281 * config/sh/sh.c (parse_validate_atomic_model_option): Use
10282 std::string::compare instead of std::string::find.
10283
10284 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
10285
10286 * configure: Regenerate.
10287
10288 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10289
10290 PR middle-end/91920
10291 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
10292 variables as shared.
10293
10294 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
10295
10296 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
10297 replaces the expander and two define_insn entries.
10298 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
10299 call.
10300 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
10301
10302 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10303
10304 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
10305 (fibonacci_heap::nodes): Likewise.
10306 (fibonacci_heap::min_key): Likewise.
10307 (fibonacci_heap::min): Likewise.
10308
10309 2019-09-27 David Malcolm <dmalcolm@redhat.com>
10310
10311 * cgraph.c (cgraph_node::get_fun): Make const.
10312 * cgraph.h (cgraph_node::get_fun): Likewise.
10313
10314 2019-09-27 Jakub Jelinek <jakub@redhat.com>
10315
10316 PR target/91919
10317 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
10318 of SImode MULT.
10319
10320 2019-09-27 Richard Biener <rguenther@suse.de>
10321
10322 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
10323 (STMT_VINFO_REDUC_FN): Likewise.
10324 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10325 STMT_VINFO_REDUC_FN.
10326 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
10327 for condition reductions.
10328 (vect_create_epilog_for_reduction): Compute all required state
10329 from the stmt to be vectorized.
10330 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
10331 invocation and remove then dead code. For single def-use chains
10332 record only a single vector stmt.
10333
10334 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10335
10336 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
10337 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
10338 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
10339 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
10340 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
10341 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
10342 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
10343 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
10344 (aarch64_general_builtin_rsqrt): Declare.
10345 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
10346 New function.
10347 (aarch64_mangle_builtin_type): Rename to...
10348 (aarch64_general_mangle_builtin_type): ...this.
10349 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
10350 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
10351 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
10352 aarch64_general_add_builtin instead of add_builtin_function.
10353 (aarch64_init_builtins): Rename to...
10354 (aarch64_general_init_builtins): ...this. Use
10355 aarch64_general_add_builtin instead of add_builtin_function.
10356 (aarch64_builtin_decl): Rename to...
10357 (aarch64_general_builtin_decl): ...this and remove the unused
10358 arguments.
10359 (aarch64_expand_builtin): Rename to...
10360 (aarch64_general_expand_builtin): ...this and remove the unused
10361 arguments.
10362 (aarch64_builtin_rsqrt): Rename to...
10363 (aarch64_general_builtin_rsqrt): ...this.
10364 (aarch64_fold_builtin): Rename to...
10365 (aarch64_general_fold_builtin): ...this. Take the function subcode
10366 and return type as arguments. Remove the "ignored" argument.
10367 (aarch64_gimple_fold_builtin): Rename to...
10368 (aarch64_general_gimple_fold_builtin): ...this. Take the function
10369 subcode and gcall as arguments, and return the new function call.
10370 * config/aarch64/aarch64.c (aarch64_init_builtins)
10371 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
10372 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
10373 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
10374 instead of aarch64_builtin_rsqrt.
10375 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
10376 instead of aarch64_mangle_builtin_type.
10377
10378 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10379
10380 * target.def (check_builtin_call): New target hook.
10381 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
10382 * doc/tm.texi: Regenerate.
10383
10384 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
10385
10386 PR tree-optimization/91909
10387 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
10388 reduc_index parameter. When handling COND_REDUCTION, make sure
10389 that the reduction phi operand is in the correct arm of the
10390 VEC_COND_EXPR.
10391 (vectorizable_reduction): Pass reduc_index to the above.
10392
10393 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
10394
10395 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
10396 New combine pattern.
10397
10398 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
10399
10400 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
10401 loop instruction into new basic block before the loop when basic
10402 block that precedes the loop is empty.
10403
10404 2019-09-26 Jakub Jelinek <jakub@redhat.com>
10405
10406 * function.c (gimplify_parameters): Use build_clobber function.
10407 * tree-ssa.c (execute_update_addresses_taken): Likewise.
10408 * tree-inline.c (expand_call_inline): Likewise.
10409 * tree-sra.c (clobber_subtree): Likewise.
10410 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
10411 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
10412 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
10413 lower_omp_target): Likewise.
10414 * omp-expand.c (expand_omp_for_generic): Likewise.
10415 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
10416
10417 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
10418
10419 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
10420 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
10421 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
10422 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
10423 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
10424 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
10425 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
10426 LD_ELEMREV_V16QI): Use the PURE attribute.
10427
10428 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
10429
10430 * config/rs6000/darwin.md: Replace the expanders for
10431 load_macho_picbase and reload_macho_picbase with use of '@'
10432 and <mode> in their respective define_insns.
10433 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
10434 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
10435 Pmode to gen_load_macho_picbase.
10436 * config/rs6000/rs6000.md: Likewise.
10437
10438 2019-09-25 Richard Biener <rguenther@suse.de>
10439
10440 PR tree-optimization/91896
10441 * tree-vect-loop.c (vectorizable_reduction): The single
10442 def-use cycle optimization cannot apply when there's more
10443 than one pattern stmt involved.
10444
10445 2019-09-26 Richard Biener <rguenther@suse.de>
10446
10447 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
10448 loop-closed PHIs that are vect_internal_def.
10449 (vect_create_epilog_for_reduction): Exit early for nested cycles.
10450 Simplify.
10451 (vectorizable_lc_phi): New.
10452 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
10453 (vect_transform_stmt): Likewise.
10454 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
10455 (vectorizable_lc_phi): Declare.
10456
10457 2019-09-26 Richard Biener <rguenther@suse.de>
10458
10459 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
10460 vectorizable_reduction for vect_double_reduction_def.
10461 (vect_transform_loop): Likewise.
10462 (vect_create_epilog_for_reduction): Move double-reduction
10463 PHI creation and preheader argument setting of PHIs ...
10464 (vectorizable_reduction): ... here. Also process
10465 vect_double_reduction_def PHIs, creating the vectorized
10466 PHI nodes, remembering the scalar adjustment computed for
10467 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
10468 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
10469 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
10470 Initialize STMT_VINFO_REDUC_CODE.
10471 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
10472 (_stmt_vec_info::reduc_code): Likewise.
10473 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
10474 (STMT_VINFO_REDUC_CODE): Likewise.
10475
10476 2019-09-26 Matt Turner <mattst88@gmail.com>
10477
10478 PR driver/69471
10479 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
10480 (mtune=): Add Negative(mtune=).
10481 (mcpu=): Add Negative(mcpu=).
10482 * config/arm/arm.opt: Likewise.
10483
10484 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10485
10486 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10487 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
10488 Define.
10489 * config/arm/arm_acle.h: Define builtins for the above.
10490 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
10491 (simd32_op): Handle the above.
10492 * config/arm/unspecs.md: Define unspecs for the above.
10493
10494 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10495
10496 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
10497 (arm_<sup>xtb16): Likewise.
10498 (arm_usada8): Likewise.
10499 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
10500 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
10501 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
10502 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
10503 __sxtb16, __uxtab16, __uxtb16): Define.
10504 * config/arm/arm_acle_builtins.def: Define builtins for the above.
10505 * config/arm/unspecs.md: Define unspecs for the above.
10506 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
10507 (USXTB16): Likewise.
10508 (simd32_op): New int_attribute.
10509 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
10510 * doc/sourcebuild.exp (arm_simd32_ok): Document.
10511
10512 2019-09-26 Martin Jambor <mjambor@suse.cz>
10513
10514 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
10515 internal_error.
10516
10517 2019-09-26 Martin Jambor <mjambor@suse.cz>
10518
10519 * ipa-sra.c (process_scan_results): Fix continue condition.
10520
10521 2019-09-26 Martin Liska <mliska@suse.cz>
10522
10523 PR tree-optimization/91885
10524 * tree-vectorizer.c (try_vectorize_loop_1): Add
10525 TODO_update_ssa_only_virtuals similarly to what slp pass does.
10526
10527 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
10528
10529 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
10530 aarch64_plus_immediate rather than aarch64_uimm12_shift
10531 to test for valid PLUS immediates.
10532
10533 2019-09-25 Martin Jambor <mjambor@suse.cz>
10534
10535 * tree-sra.c (no_accesses_p): Remove.
10536 (no_accesses_representant): Likewise.
10537
10538 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10539
10540 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
10541 consistenly.
10542 (vaba_s16): Likewise.
10543 (vaba_s32): Likewise.
10544 (vaba_u8): Likewise.
10545 (vaba_u16): Likewise.
10546 (vaba_u32): Likewise.
10547 (vabal_high_s8): Likewise.
10548 (vabal_high_s16): Likewise.
10549 (vabal_high_s32): Likewise.
10550 (vabal_high_u8): Likewise.
10551 (vabal_high_u16): Likewise.
10552 (vabal_high_u32): Likewise.
10553 (vabal_s8): Likewise.
10554 (vabal_s16): Likewise.
10555 (vabal_s32): Likewise.
10556 (vabal_u8): Likewise.
10557 (vabal_u16): Likewise.
10558 (vabal_u32): Likewise.
10559 (vabaq_s8): Likewise.
10560 (vabaq_s16): Likewise.
10561 (vabaq_s32): Likewise.
10562 (vabaq_u8): Likewise.
10563 (vabaq_u16): Likewise.
10564 (vabaq_u32): Likewise.
10565 (vabd_s8): Likewise.
10566 (vabd_s16): Likewise.
10567 (vabd_s32): Likewise.
10568 (vabd_u8): Likewise.
10569 (vabd_u16): Likewise.
10570 (vabd_u32): Likewise.
10571 (vabdl_high_s8): Likewise.
10572 (vabdl_high_s16): Likewise.
10573 (vabdl_high_s32): Likewise.
10574 (vabdl_high_u8): Likewise.
10575 (vabdl_high_u16): Likewise.
10576 (vabdl_high_u32): Likewise.
10577 (vabdl_s8): Likewise.
10578 (vabdl_s16): Likewise.
10579 (vabdl_s32): Likewise.
10580 (vabdl_u8): Likewise.
10581 (vabdl_u16): Likewise.
10582 (vabdl_u32): Likewise.
10583 (vabdq_s8): Likewise.
10584 (vabdq_s16): Likewise.
10585 (vabdq_s32): Likewise.
10586 (vabdq_u8): Likewise.
10587 (vabdq_u16): Likewise.
10588 (vabdq_u32): Likewise.
10589 (vaddlv_s8): Likewise.
10590 (vaddlv_s16): Likewise.
10591 (vaddlv_u8): Likewise.
10592 (vaddlv_u16): Likewise.
10593 (vaddlvq_s8): Likewise.
10594 (vaddlvq_s16): Likewise.
10595 (vaddlvq_s32): Likewise.
10596 (vaddlvq_u8): Likewise.
10597 (vaddlvq_u16): Likewise.
10598 (vaddlvq_u32): Likewise.
10599 (vcvtx_f32_f64): Likewise.
10600 (vcvtx_high_f32_f64): Likewise.
10601 (vcvtxd_f32_f64): Likewise.
10602 (vmla_n_f32): Likewise.
10603 (vmla_n_s16): Likewise.
10604 (vmla_n_s32): Likewise.
10605 (vmla_n_u16): Likewise.
10606 (vmla_n_u32): Likewise.
10607 (vmla_s8): Likewise.
10608 (vmla_s16): Likewise.
10609 (vmla_s32): Likewise.
10610 (vmla_u8): Likewise.
10611 (vmla_u16): Likewise.
10612 (vmla_u32): Likewise.
10613 (vmlal_high_n_s16): Likewise.
10614 (vmlal_high_n_s32): Likewise.
10615 (vmlal_high_n_u16): Likewise.
10616 (vmlal_high_n_u32): Likewise.
10617 (vmlal_high_s8): Likewise.
10618 (vmlal_high_s16): Likewise.
10619 (vmlal_high_s32): Likewise.
10620 (vmlal_high_u8): Likewise.
10621 (vmlal_high_u16): Likewise.
10622 (vmlal_high_u32): Likewise.
10623 (vmlal_n_s16): Likewise.
10624 (vmlal_n_s32): Likewise.
10625 (vmlal_n_u16): Likewise.
10626 (vmlal_n_u32): Likewise.
10627 (vmlal_s8): Likewise.
10628 (vmlal_s16): Likewise.
10629 (vmlal_s32): Likewise.
10630 (vmlal_u8): Likewise.
10631 (vmlal_u16): Likewise.
10632 (vmlal_u32): Likewise.
10633 (vmlaq_n_f32): Likewise.
10634 (vmlaq_n_s16): Likewise.
10635 (vmlaq_n_s32): Likewise.
10636 (vmlaq_n_u16): Likewise.
10637 (vmlaq_n_u32): Likewise.
10638 (vmlaq_s8): Likewise.
10639 (vmlaq_s16): Likewise.
10640 (vmlaq_s32): Likewise.
10641 (vmlaq_u8): Likewise.
10642 (vmlaq_u16): Likewise.
10643 (vmlaq_u32): Likewise.
10644 (vmls_n_f32): Likewise.
10645 (vmls_n_s16): Likewise.
10646 (vmls_n_s32): Likewise.
10647 (vmls_n_u16): Likewise.
10648 (vmls_n_u32): Likewise.
10649 (vmls_s8): Likewise.
10650 (vmls_s16): Likewise.
10651 (vmls_s32): Likewise.
10652 (vmls_u8): Likewise.
10653 (vmls_u16): Likewise.
10654 (vmls_u32): Likewise.
10655 (vmlsl_high_n_s16): Likewise.
10656 (vmlsl_high_n_s32): Likewise.
10657 (vmlsl_high_n_u16): Likewise.
10658 (vmlsl_high_n_u32): Likewise.
10659 (vmlsl_high_s8): Likewise.
10660 (vmlsl_high_s16): Likewise.
10661 (vmlsl_high_s32): Likewise.
10662 (vmlsl_high_u8): Likewise.
10663 (vmlsl_high_u16): Likewise.
10664 (vmlsl_high_u32): Likewise.
10665 (vmlsl_n_s16): Likewise.
10666 (vmlsl_n_s32): Likewise.
10667 (vmlsl_n_u16): Likewise.
10668 (vmlsl_n_u32): Likewise.
10669 (vmlsl_s8): Likewise.
10670 (vmlsl_s16): Likewise.
10671 (vmlsl_s32): Likewise.
10672 (vmlsl_u8): Likewise.
10673 (vmlsl_u16): Likewise.
10674 (vmlsl_u32): Likewise.
10675 (vmlsq_n_f32): Likewise.
10676 (vmlsq_n_s16): Likewise.
10677 (vmlsq_n_s32): Likewise.
10678 (vmlsq_n_u16): Likewise.
10679 (vmlsq_n_u32): Likewise.
10680 (vmlsq_s8): Likewise.
10681 (vmlsq_s16): Likewise.
10682 (vmlsq_s32): Likewise.
10683 (vmlsq_u8): Likewise.
10684 (vmlsq_u16): Likewise.
10685 (vmlsq_u32): Likewise.
10686 (vmovl_high_s8): Likewise.
10687 (vmovl_high_s16): Likewise.
10688 (vmovl_high_s32): Likewise.
10689 (vmovl_high_u8): Likewise.
10690 (vmovl_high_u16): Likewise.
10691 (vmovl_high_u32): Likewise.
10692 (vmovl_s8): Likewise.
10693 (vmovl_s16): Likewise.
10694 (vmovl_s32): Likewise.
10695 (vmovl_u8): Likewise.
10696 (vmovl_u16): Likewise.
10697 (vmovl_u32): Likewise.
10698 (vmovn_high_s16): Likewise.
10699 (vmovn_high_s32): Likewise.
10700 (vmovn_high_s64): Likewise.
10701 (vmovn_high_u16): Likewise.
10702 (vmovn_high_u32): Likewise.
10703 (vmovn_high_u64): Likewise.
10704 (vmovn_s16): Likewise.
10705 (vmovn_s32): Likewise.
10706 (vmovn_s64): Likewise.
10707 (vmovn_u16): Likewise.
10708 (vmovn_u32): Likewise.
10709 (vmovn_u64): Likewise.
10710 (vmull_high_n_s16): Likewise.
10711 (vmull_high_n_s32): Likewise.
10712 (vmull_high_n_u16): Likewise.
10713 (vmull_high_n_u32): Likewise.
10714 (vmull_high_p8): Likewise.
10715 (vmull_high_s8): Likewise.
10716 (vmull_high_s16): Likewise.
10717 (vmull_high_s32): Likewise.
10718 (vmull_high_u8): Likewise.
10719 (vmull_high_u16): Likewise.
10720 (vmull_high_u32): Likewise.
10721 (vmull_n_s16): Likewise.
10722 (vmull_n_s32): Likewise.
10723 (vmull_n_u16): Likewise.
10724 (vmull_n_u32): Likewise.
10725 (vmull_p8): Likewise.
10726 (vmull_s8): Likewise.
10727 (vmull_s16): Likewise.
10728 (vmull_s32): Likewise.
10729 (vmull_u8): Likewise.
10730 (vmull_u16): Likewise.
10731 (vmull_u32): Likewise.
10732 (vpadal_s8): Likewise.
10733 (vpadal_s16): Likewise.
10734 (vpadal_s32): Likewise.
10735 (vpadal_u8): Likewise.
10736 (vpadal_u16): Likewise.
10737 (vpadal_u32): Likewise.
10738 (vpadalq_s8): Likewise.
10739 (vpadalq_s16): Likewise.
10740 (vpadalq_s32): Likewise.
10741 (vpadalq_u8): Likewise.
10742 (vpadalq_u16): Likewise.
10743 (vpadalq_u32): Likewise.
10744 (vpaddl_s8): Likewise.
10745 (vpaddl_s16): Likewise.
10746 (vpaddl_s32): Likewise.
10747 (vpaddl_u8): Likewise.
10748 (vpaddl_u16): Likewise.
10749 (vpaddl_u32): Likewise.
10750 (vpaddlq_s8): Likewise.
10751 (vpaddlq_s16): Likewise.
10752 (vpaddlq_s32): Likewise.
10753 (vpaddlq_u8): Likewise.
10754 (vpaddlq_u16): Likewise.
10755 (vpaddlq_u32): Likewise.
10756 (vpaddq_s8): Likewise.
10757 (vpaddq_s16): Likewise.
10758 (vpaddq_s32): Likewise.
10759 (vpaddq_s64): Likewise.
10760 (vpaddq_u8): Likewise.
10761 (vpaddq_u16): Likewise.
10762 (vpaddq_u32): Likewise.
10763 (vpaddq_u64): Likewise.
10764 (vqdmulh_n_s16): Likewise.
10765 (vqdmulh_n_s32): Likewise.
10766 (vqdmulhq_n_s16): Likewise.
10767 (vqdmulhq_n_s32): Likewise.
10768 (vqmovn_high_s16): Likewise.
10769 (vqmovn_high_s32): Likewise.
10770 (vqmovn_high_s64): Likewise.
10771 (vqmovn_high_u16): Likewise.
10772 (vqmovn_high_u32): Likewise.
10773 (vqmovn_high_u64): Likewise.
10774 (vqmovun_high_s16): Likewise.
10775 (vqmovun_high_s32): Likewise.
10776 (vqmovun_high_s64): Likewise.
10777 (vqrdmulh_n_s16): Likewise.
10778 (vqrdmulh_n_s32): Likewise.
10779 (vqrdmulhq_n_s16): Likewise.
10780 (vqrdmulhq_n_s32): Likewise.
10781 (vrsqrte_u32): Likewise.
10782 (vrsqrteq_u32): Likewise.
10783 (vtst_p8): Likewise.
10784 (vtst_p16): Likewise.
10785 (vtst_p64): Likewise.
10786 (vtstq_p8): Likewise.
10787 (vtstq_p16): Likewise.
10788 (vtstq_p64): Likewise.
10789 (vaddlv_s32): Likewise.
10790 (vaddlv_u32): Likewise.
10791 (vqtbl1_p8): Likewise.
10792 (vqtbl1_s8): Likewise.
10793 (vqtbl1_u8): Likewise.
10794 (vqtbl1q_p8): Likewise.
10795 (vqtbl1q_s8): Likewise.
10796 (vqtbl1q_u8): Likewise.
10797 (vqtbx1_s8): Likewise.
10798 (vqtbx1_u8): Likewise.
10799 (vqtbx1_p8): Likewise.
10800 (vqtbx1q_s8): Likewise.
10801 (vqtbx1q_u8): Likewise.
10802 (vqtbx1q_p8): Likewise.
10803 (vtbl1_s8): Likewise.
10804 (vtbl1_u8): Likewise.
10805 (vtbl1_p8): Likewise.
10806 (vtbl2_s8): Likewise.
10807 (vtbl2_u8): Likewise.
10808 (vtbl2_p8): Likewise.
10809 (vtbl3_s8): Likewise.
10810 (vtbl3_u8): Likewise.
10811 (vtbl3_p8): Likewise.
10812 (vtbl4_s8): Likewise.
10813 (vtbl4_u8): Likewise.
10814 (vtbl4_p8): Likewise.
10815 (vtbx2_s8): Likewise.
10816 (vtbx2_u8): Likewise.
10817 (vtbx2_p8): Likewise.
10818 (vld1_f32): Likewise.
10819 (vld1_f64): Likewise.
10820 (vld1_p8): Likewise.
10821 (vld1_p16): Likewise.
10822 (vld1_p64): Likewise.
10823 (vld1_s8): Likewise.
10824 (vld1_s16): Likewise.
10825 (vld1_s32): Likewise.
10826 (vld1_s64): Likewise.
10827 (vld1_u8): Likewise.
10828 (vld1_u16): Likewise.
10829 (vld1_u32): Likewise.
10830 (vld1_u64): Likewise.
10831 (vld1q_f32): Likewise.
10832 (vld1q_f64): Likewise.
10833 (vld1q_p8): Likewise.
10834 (vld1q_p16): Likewise.
10835 (vld1q_p64): Likewise.
10836 (vld1q_s8): Likewise.
10837 (vld1q_s16): Likewise.
10838 (vld1q_s32): Likewise.
10839 (vld1q_s64): Likewise.
10840 (vld1q_u8): Likewise.
10841 (vld1q_u16): Likewise.
10842 (vld1q_u32): Likewise.
10843 (vld1q_u64): Likewise.
10844 (vpmax_s8): Likewise.
10845 (vpmax_s16): Likewise.
10846 (vpmax_s32): Likewise.
10847 (vpmax_u8): Likewise.
10848 (vpmax_u16): Likewise.
10849 (vpmax_u32): Likewise.
10850 (vpmaxq_s8): Likewise.
10851 (vpmaxq_s16): Likewise.
10852 (vpmaxq_s32): Likewise.
10853 (vpmaxq_u8): Likewise.
10854 (vpmaxq_u16): Likewise.
10855 (vpmaxq_u32): Likewise.
10856 (vpmax_f32): Likewise.
10857 (vpmaxq_f32): Likewise.
10858 (vpmaxq_f64): Likewise.
10859 (vpmaxqd_f64): Likewise.
10860 (vpmaxs_f32): Likewise.
10861 (vpmaxnm_f32): Likewise.
10862 (vpmaxnmq_f32): Likewise.
10863 (vpmaxnmq_f64): Likewise.
10864 (vpmaxnmqd_f64): Likewise.
10865 (vpmaxnms_f32): Likewise.
10866 (vpmin_s8): Likewise.
10867 (vpmin_s16): Likewise.
10868 (vpmin_s32): Likewise.
10869 (vpmin_u8): Likewise.
10870 (vpmin_u16): Likewise.
10871 (vpmin_u32): Likewise.
10872 (vpminq_s8): Likewise.
10873 (vpminq_s16): Likewise.
10874 (vpminq_s32): Likewise.
10875 (vpminq_u8): Likewise.
10876 (vpminq_u16): Likewise.
10877 (vpminq_u32): Likewise.
10878 (vpmin_f32): Likewise.
10879 (vpminq_f32): Likewise.
10880 (vpminq_f64): Likewise.
10881 (vpminqd_f64): Likewise.
10882 (vpmins_f32): Likewise.
10883 (vpminnm_f32): Likewise.
10884 (vpminnmq_f32): Likewise.
10885 (vpminnmq_f64): Likewise.
10886 (vpminnmqd_f64): Likewise.
10887 (vpminnms_f32): Likewise.
10888 (vmla_f32): Likewise.
10889 (vmlaq_f32): Likewise.
10890 (vmlaq_f64): Likewise.
10891 (vmls_f32): Likewise.
10892 (vmlsq_f32): Likewise.
10893 (vmlsq_f64): Likewise.
10894 (vqtbl2_s8): Likewise.
10895 (vqtbl2_u8): Likewise.
10896 (vqtbl2_p8): Likewise.
10897 (vqtbl2q_s8): Likewise.
10898 (vqtbl2q_u8): Likewise.
10899 (vqtbl2q_p8): Likewise.
10900 (vqtbl3_s8): Likewise.
10901 (vqtbl3_u8): Likewise.
10902 (vqtbl3_p8): Likewise.
10903 (vqtbl3q_s8): Likewise.
10904 (vqtbl3q_u8): Likewise.
10905 (vqtbl3q_p8): Likewise.
10906 (vqtbl4_s8): Likewise.
10907 (vqtbl4_u8): Likewise.
10908 (vqtbl4_p8): Likewise.
10909 (vqtbl4q_s8): Likewise.
10910 (vqtbl4q_u8): Likewise.
10911 (vqtbl4q_p8): Likewise.
10912 (vqtbx2_s8): Likewise.
10913 (vqtbx2_u8): Likewise.
10914 (vqtbx2_p8): Likewise.
10915 (vqtbx2q_s8): Likewise.
10916 (vqtbx2q_u8): Likewise.
10917 (vqtbx2q_p8): Likewise.
10918 (vqtbx3_s8): Likewise.
10919 (vqtbx3_u8): Likewise.
10920 (vqtbx3_p8): Likewise.
10921 (vqtbx3q_s8): Likewise.
10922 (vqtbx3q_u8): Likewise.
10923 (vqtbx3q_p8): Likewise.
10924 (vqtbx4_s8): Likewise.
10925 (vqtbx4_u8): Likewise.
10926 (vqtbx4_p8): Likewise.
10927 (vqtbx4q_s8): Likewise.
10928 (vqtbx4q_u8): Likewise.
10929 (vqtbx4q_p8): Likewise.
10930 (vrev16_p8): Likewise.
10931 (vrev16_s8): Likewise.
10932 (vrev16_u8): Likewise.
10933 (vrev16q_p8): Likewise.
10934 (vrev16q_s8): Likewise.
10935 (vrev16q_u8): Likewise.
10936 (vrev32_p8): Likewise.
10937 (vrev32_p16): Likewise.
10938 (vrev32_s8): Likewise.
10939 (vrev32_s16): Likewise.
10940 (vrev32_u8): Likewise.
10941 (vrev32_u16): Likewise.
10942 (vrev32q_p8): Likewise.
10943 (vrev32q_p16): Likewise.
10944 (vrev32q_s8): Likewise.
10945 (vrev32q_s16): Likewise.
10946 (vrev32q_u8): Likewise.
10947 (vrev32q_u16): Likewise.
10948 (vrev64_f32): Likewise.
10949 (vrev64_p8): Likewise.
10950 (vrev64_p16): Likewise.
10951 (vrev64_s8): Likewise.
10952 (vrev64_s16): Likewise.
10953 (vrev64_s32): Likewise.
10954 (vrev64_u8): Likewise.
10955 (vrev64_u16): Likewise.
10956 (vrev64_u32): Likewise.
10957 (vrev64q_f32): Likewise.
10958 (vrev64q_p8): Likewise.
10959 (vrev64q_p16): Likewise.
10960 (vrev64q_s8): Likewise.
10961 (vrev64q_s16): Likewise.
10962 (vrev64q_s32): Likewise.
10963 (vrev64q_u8): Likewise.
10964 (vrev64q_u16): Likewise.
10965 (vrev64q_u32): Likewise.
10966 (vsha1cq_u32): Likewise.
10967 (vsha1mq_u32): Likewise.
10968 (vsha1pq_u32): Likewise.
10969 (vsha1h_u32): Likewise.
10970 (vsha1su0q_u32): Likewise.
10971 (vsha1su1q_u32): Likewise.
10972 (vsha256hq_u32): Likewise.
10973 (vsha256h2q_u32): Likewise.
10974 (vsha256su0q_u32): Likewise.
10975 (vsha256su1q_u32): Likewise.
10976 (vmull_p64): Likewise.
10977 (vmull_high_p64): Likewise.
10978 (vsqrt_f32): Likewise.
10979 (vsqrtq_f32): Likewise.
10980 (vsqrt_f64): Likewise.
10981 (vsqrtq_f64): Likewise.
10982 (vst1_f32): Likewise.
10983 (vst1_f64): Likewise.
10984 (vst1_p8): Likewise.
10985 (vst1_p16): Likewise.
10986 (vst1_p64): Likewise.
10987 (vst1_s8): Likewise.
10988 (vst1_s16): Likewise.
10989 (vst1_s32): Likewise.
10990 (vst1_s64): Likewise.
10991 (vst1_u8): Likewise.
10992 (vst1_u16): Likewise.
10993 (vst1_u32): Likewise.
10994 (vst1_u64): Likewise.
10995 (vst1q_f32): Likewise.
10996 (vst1q_f64): Likewise.
10997 (vst1q_p8): Likewise.
10998 (vst1q_p16): Likewise.
10999 (vst1q_p64): Likewise.
11000 (vst1q_s8): Likewise.
11001 (vst1q_s16): Likewise.
11002 (vst1q_s32): Likewise.
11003 (vst1q_s64): Likewise.
11004 (vst1q_u8): Likewise.
11005 (vst1q_u16): Likewise.
11006 (vst1q_u32): Likewise.
11007 (vst1q_u64): Likewise.
11008 (vst1_s64_x2): Likewise.
11009 (vst1_u64_x2): Likewise.
11010 (vst1_f64_x2): Likewise.
11011 (vst1_s8_x2): Likewise.
11012 (vst1_p8_x2): Likewise.
11013 (vst1_s16_x2): Likewise.
11014 (vst1_p16_x2): Likewise.
11015 (vst1_s32_x2): Likewise.
11016 (vst1_u8_x2): Likewise.
11017 (vst1_u16_x2): Likewise.
11018 (vst1_u32_x2): Likewise.
11019 (vst1_f16_x2): Likewise.
11020 (vst1_f32_x2): Likewise.
11021 (vst1_p64_x2): Likewise.
11022 (vst1q_s8_x2): Likewise.
11023 (vst1q_p8_x2): Likewise.
11024 (vst1q_s16_x2): Likewise.
11025 (vst1q_p16_x2): Likewise.
11026 (vst1q_s32_x2): Likewise.
11027 (vst1q_s64_x2): Likewise.
11028 (vst1q_u8_x2): Likewise.
11029 (vst1q_u16_x2): Likewise.
11030 (vst1q_u32_x2): Likewise.
11031 (vst1q_u64_x2): Likewise.
11032 (vst1q_f16_x2): Likewise.
11033 (vst1q_f32_x2): Likewise.
11034 (vst1q_f64_x2): Likewise.
11035 (vst1q_p64_x2): Likewise.
11036 (vst1_s64_x3): Likewise.
11037 (vst1_u64_x3): Likewise.
11038 (vst1_f64_x3): Likewise.
11039 (vst1_s8_x3): Likewise.
11040 (vst1_p8_x3): Likewise.
11041 (vst1_s16_x3): Likewise.
11042 (vst1_p16_x3): Likewise.
11043 (vst1_s32_x3): Likewise.
11044 (vst1_u8_x3): Likewise.
11045 (vst1_u16_x3): Likewise.
11046 (vst1_u32_x3): Likewise.
11047 (vst1_f16_x3): Likewise.
11048 (vst1_f32_x3): Likewise.
11049 (vst1_p64_x3): Likewise.
11050 (vst1q_s8_x3): Likewise.
11051 (vst1q_p8_x3): Likewise.
11052 (vst1q_s16_x3): Likewise.
11053 (vst1q_p16_x3): Likewise.
11054 (vst1q_s32_x3): Likewise.
11055 (vst1q_s64_x3): Likewise.
11056 (vst1q_u8_x3): Likewise.
11057 (vst1q_u16_x3): Likewise.
11058 (vst1q_u32_x3): Likewise.
11059 (vst1q_u64_x3): Likewise.
11060 (vst1q_f16_x3): Likewise.
11061 (vst1q_f32_x3): Likewise.
11062 (vst1q_f64_x3): Likewise.
11063 (vst1q_p64_x3): Likewise.
11064 (vst2_s64): Likewise.
11065 (vst2_u64): Likewise.
11066 (vst2_f64): Likewise.
11067 (vst2_s8): Likewise.
11068 (vst2_p8): Likewise.
11069 (vst2_s16): Likewise.
11070 (vst2_p16): Likewise.
11071 (vst2_s32): Likewise.
11072 (vst2_u8): Likewise.
11073 (vst2_u16): Likewise.
11074 (vst2_u32): Likewise.
11075 (vst2_f16): Likewise.
11076 (vst2_f32): Likewise.
11077 (vst2_p64): Likewise.
11078 (vst2q_s8): Likewise.
11079 (vst2q_p8): Likewise.
11080 (vst2q_s16): Likewise.
11081 (vst2q_p16): Likewise.
11082 (vst2q_s32): Likewise.
11083 (vst2q_s64): Likewise.
11084 (vst2q_u8): Likewise.
11085 (vst2q_u16): Likewise.
11086 (vst2q_u32): Likewise.
11087 (vst2q_u64): Likewise.
11088 (vst2q_f16): Likewise.
11089 (vst2q_f32): Likewise.
11090 (vst2q_f64): Likewise.
11091 (vst2q_p64): Likewise.
11092 (vst3_s64): Likewise.
11093 (vst3_u64): Likewise.
11094 (vst3_f64): Likewise.
11095 (vst3_s8): Likewise.
11096 (vst3_p8): Likewise.
11097 (vst3_s16): Likewise.
11098 (vst3_p16): Likewise.
11099 (vst3_s32): Likewise.
11100 (vst3_u8): Likewise.
11101 (vst3_u16): Likewise.
11102 (vst3_u32): Likewise.
11103 (vst3_f16): Likewise.
11104 (vst3_f32): Likewise.
11105 (vst3_p64): Likewise.
11106 (vst3q_s8): Likewise.
11107 (vst3q_p8): Likewise.
11108 (vst3q_s16): Likewise.
11109 (vst3q_p16): Likewise.
11110 (vst3q_s32): Likewise.
11111 (vst3q_s64): Likewise.
11112 (vst3q_u8): Likewise.
11113 (vst3q_u16): Likewise.
11114 (vst3q_u32): Likewise.
11115 (vst3q_u64): Likewise.
11116 (vst3q_f16): Likewise.
11117 (vst3q_f32): Likewise.
11118 (vst3q_f64): Likewise.
11119 (vst3q_p64): Likewise.
11120 (vst4_s64): Likewise.
11121 (vst4_u64): Likewise.
11122 (vst4_f64): Likewise.
11123 (vst4_s8): Likewise.
11124 (vst4_p8): Likewise.
11125 (vst4_s16): Likewise.
11126 (vst4_p16): Likewise.
11127 (vst4_s32): Likewise.
11128 (vst4_u8): Likewise.
11129 (vst4_u16): Likewise.
11130 (vst4_u32): Likewise.
11131 (vst4_f16): Likewise.
11132 (vst4_f32): Likewise.
11133 (vst4_p64): Likewise.
11134 (vst4q_s8): Likewise.
11135 (vst4q_p8): Likewise.
11136 (vst4q_s16): Likewise.
11137 (vst4q_p16): Likewise.
11138 (vst4q_s32): Likewise.
11139 (vst4q_s64): Likewise.
11140 (vst4q_u8): Likewise.
11141 (vst4q_u16): Likewise.
11142 (vst4q_u32): Likewise.
11143 (vst4q_u64): Likewise.
11144 (vst4q_f16): Likewise.
11145 (vst4q_f32): Likewise.
11146 (vst4q_f64): Likewise.
11147 (vst4q_p64): Likewise.
11148 (vtbx4_s8): Likewise.
11149 (vtbx4_u8): Likewise.
11150 (vtbx4_p8): Likewise.
11151 (vtrn_f32): Likewise.
11152 (vtrn_p8): Likewise.
11153 (vtrn_p16): Likewise.
11154 (vtrn_s8): Likewise.
11155 (vtrn_s16): Likewise.
11156 (vtrn_s32): Likewise.
11157 (vtrn_u8): Likewise.
11158 (vtrn_u16): Likewise.
11159 (vtrn_u32): Likewise.
11160 (vtrnq_f32): Likewise.
11161 (vtrnq_p8): Likewise.
11162 (vtrnq_p16): Likewise.
11163 (vtrnq_s8): Likewise.
11164 (vtrnq_s16): Likewise.
11165 (vtrnq_s32): Likewise.
11166 (vtrnq_u8): Likewise.
11167 (vtrnq_u16): Likewise.
11168 (vtrnq_u32): Likewise.
11169 (vrsqrte_f16): Likewise.
11170 (vrsqrteq_f16): Likewise.
11171 (vsqrt_f16): Likewise.
11172 (vsqrtq_f16): Likewise.
11173 (vabd_f16): Likewise.
11174 (vabdq_f16): Likewise.
11175 (vpadd_f16): Likewise.
11176 (vpaddq_f16): Likewise.
11177 (vpmax_f16): Likewise.
11178 (vpmaxq_f16): Likewise.
11179 (vpmaxnm_f16): Likewise.
11180 (vpmaxnmq_f16): Likewise.
11181 (vpmin_f16): Likewise.
11182 (vpminq_f16): Likewise.
11183 (vpminnm_f16): Likewise.
11184 (vpminnmq_f16): Likewise.
11185 (vrsqrts_f16): Likewise.
11186 (vrsqrtsq_f16): Likewise.
11187
11188 2019-09-25 Richard Biener <rguenther@suse.de>
11189
11190 PR tree-optimization/91896
11191 * tree-vect-loop.c (vectorizable_reduction): The single
11192 def-use cycle optimization cannot apply when there's more
11193 than one pattern stmt involved.
11194
11195 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11196
11197 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11198 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11199 (reload_macho_picbase_<mode>): Likewise.
11200
11201 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11202
11203 * config/rs6000/rs6000.md: Move darwin.md include until
11204 after the definition of the mode iterators.
11205
11206 2019-09-23 Martin Sebor <msebor@redhat.com>
11207
11208 PR tree-optimization/91570
11209 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11210 non-constant minlen, maxlen and maxbound.
11211
11212 2019-09-24 Richard Biener <rguenther@suse.de>
11213
11214 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11215 Rename to...
11216 (_stmt_vec_info::cond_reduc_code): ... this.
11217 (_stmt_vec_info::induc_cond_initial_val): Add.
11218 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11219 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11220 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11221 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11222 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11223 the reduction code.
11224 (vect_create_epilog_for_reduction): Drop special
11225 induction condition reduction params, pass in reduction code
11226 and simplify.
11227 (vectorizable_reduction): Perform condition reduction kind
11228 selection only at analysis time. Adjust passing on state.
11229
11230 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11231
11232 * config/aarch64/aarch64.md (mov<mode>): Don't call
11233 aarch64_split_dimode_const_store on volatile MEM.
11234
11235 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
11236
11237 * config/aarch64/aarch64-option-extensions.def (fp16fml):
11238 Update hwcap string for fp16fml.
11239
11240 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11241
11242 PR middle-end/91866
11243 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11244 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11245
11246 2019-09-24 Martin Liska <mliska@suse.cz>
11247
11248 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11249 instead of if-elseif-elseif-...
11250 * gimple-expr.c (extract_ops_from_tree): Likewise.
11251 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11252 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11253
11254 2019-09-24 Martin Jambor <mjambor@suse.cz>
11255
11256 PR ipa/91831
11257 * ipa-param-manipulation.c (carry_over_param): Make a method of
11258 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11259 in case of a context mismatch.
11260 (ipa_param_body_adjustments::common_initialization): Adjust call to
11261 carry_over_param.
11262 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11263 private method carry_over_param.
11264
11265 2019-09-24 Martin Jambor <mjambor@suse.cz>
11266
11267 PR ipa/91832
11268 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
11269
11270 2019-09-24 Richard Biener <rguenther@suse.de>
11271
11272 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11273 base.
11274
11275 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11276
11277 * config/arm/t-arm (arm-builtins.o): Add dependency on
11278 arm_acle_builtins.def.
11279
11280 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11281
11282 PR target/91823
11283 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
11284 canonical CONST_INTs. Use gen_rtvec.
11285
11286 2019-09-23 Richard Biener <rguenther@suse.de>
11287
11288 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
11289 avoid adjusting by + 0 or * 1.
11290 (vect_create_epilog_for_reduction): Get reduction code only
11291 when necessary. Deal with adjustment_def only when necessary.
11292
11293 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
11294
11295 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
11296 memmodel index.
11297
11298 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11299
11300 PR ipa/91835
11301 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
11302 "ipa-sra".
11303
11304 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
11305
11306 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
11307 code. Merge code blocks with common conditionals. Use declared
11308 macro instead of a magic number for PIC level.
11309
11310 2019-09-21 Martin Sebor <msebor@redhat.com>
11311
11312 PR middle-end/91830
11313 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
11314 Simplify computation of the offset of the referenced subobject.
11315
11316 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
11317
11318 * config/darwin.c (machopic_legitimize_pic_address): Check
11319 for lra not reload.
11320
11321 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11322
11323 * ira-conflicts.c (can_use_same_reg_p): New function.
11324 (process_reg_shuffles): Take an insn parameter. Ignore cases
11325 in which input operand op_num could seemingly never be allocated
11326 to the same register as the destination.
11327 (add_insn_allocno_copies): Update call to process_reg_shuffles.
11328
11329 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
11330
11331 * simplify-rtx.c (neg_const_int): Replace with...
11332 (neg_poly_int_rtx): ...this new function.
11333 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
11334 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
11335 (simplify_plus_minus): Likewise for constant terms here.
11336
11337 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
11338
11339 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
11340 HOST_WIDE_PRINT_UNSIGNED.
11341
11342 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
11343
11344 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
11345 character.
11346
11347 2019-09-20 Maya Rashish <coypu@sdf.org>
11348
11349 PR target/86811
11350 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
11351 Define to speculation_safe_value_not_needed.
11352
11353 2019-09-20 Richard Biener <rguenther@suse.de>
11354 Uros Bizjak <ubizjak@gmail.com>
11355
11356 PR target/91814
11357 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
11358 previous change.
11359 (general_scalar_chain::convert_op): Force not suitable memory
11360 operands to a register.
11361
11362 2019-09-20 Richard Biener <rguenther@suse.de>
11363
11364 PR tree-optimization/91821
11365 * tree-vect-loop.c (check_reduction_path): Check we can compute
11366 reduc_idx.
11367 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
11368 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
11369 operands in canonical order.
11370 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11371 STMT_VINFO_REDUC_IDX.
11372 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
11373 (STMT_VINFO_REDUC_IDX): Likewise.
11374
11375 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
11376
11377 PR target/91269
11378 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11379
11380 2019-09-20 Richard Biener <rguenther@suse.de>
11381
11382 PR tree-optimization/91822
11383 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
11384 parameter.
11385 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
11386 for reduc_index in nested cycles, adjust vectorizable_condition
11387 calls.
11388 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
11389 parameter.
11390 (vect_analyze_stmt): Adjust.
11391 (vect_transform_stmt): Likewise.
11392
11393 2019-09-20 Richard Biener <rguenther@suse.de>
11394
11395 PR target/91767
11396 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
11397 Ensure there's a sequence point between allocating the new register
11398 and passing a reference to a reg via regno_reg_rtx.
11399
11400 2019-09-20 Martin Jambor <mjambor@suse.cz>
11401
11402 * coretypes.h (cgraph_edge): Declare.
11403 * ipa-param-manipulation.c: Rewrite.
11404 * ipa-param-manipulation.h: Likewise.
11405 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
11406 (OBJS): Added ipa-sra.o.
11407 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
11408 and ref_p, added fields param_adjustments and performed_splits.
11409 (struct cgraph_clone_info): Remove ags_to_skip and
11410 combined_args_to_skip, new field param_adjustments.
11411 (cgraph_node::create_clone): Changed parameters to use
11412 ipa_param_adjustments.
11413 (cgraph_node::create_virtual_clone): Likewise.
11414 (cgraph_node::create_virtual_clone_with_body): Likewise.
11415 (tree_function_versioning): Likewise.
11416 (cgraph_build_function_type_skip_args): Removed.
11417 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
11418 using ipa_param_adjustments.
11419 (clone_of_p): Likewise.
11420 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
11421 (build_function_decl_skip_args): Likewise.
11422 (duplicate_thunk_for_node): Adjust parameters using
11423 ipa_param_body_adjustments, copy param_adjustments instead of
11424 args_to_skip.
11425 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
11426 (cgraph_node::create_virtual_clone): Likewise.
11427 (cgraph_node::create_version_clone_with_body): Likewise.
11428 (cgraph_materialize_clone): Likewise.
11429 (symbol_table::materialize_all_clones): Likewise.
11430 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
11431 ipa_replace_map check.
11432 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
11433 (initialize_node_lattices): Make aware that some parameters might have
11434 already been removed.
11435 (want_remove_some_param_p): New function.
11436 (create_specialized_node): Convert to using ipa_param_adjustments and
11437 deal with possibly pre-existing adjustments.
11438 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
11439 (output_node_opt_summary): Do not stream removed fields. Stream
11440 parameter adjustments instead of argumetns to skip.
11441 (input_node_opt_summary): Likewise.
11442 (input_node_opt_summary): Likewise.
11443 * lto-section-in.c (lto_section_name): Added ipa-sra section.
11444 * lto-streamer.h (lto_section_type): Likewise.
11445 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
11446 param_body_adjs.
11447 (copy_decl_to_var): Declare.
11448 * tree-inline.c (update_clone_info): Do not remap old_tree.
11449 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
11450 statements, walk all extra generated statements and remap their
11451 operands.
11452 (redirect_all_calls): Add killed SSA names to a hash set.
11453 (remap_ssa_name): Do not remap killed SSA names.
11454 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
11455 half of functionality moved to ipa_param_body_adjustments.
11456 (copy_decl_to_var): Make exported.
11457 (copy_body): Destroy killed_new_ssa_names hash set.
11458 (expand_call_inline): Remap performed splits.
11459 (update_clone_info): Likewise.
11460 (tree_function_versioning): Simplify tree_map processing. Updated to
11461 accept ipa_param_adjustments and use ipa_param_body_adjustments.
11462 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
11463 for the new interface.
11464 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
11465 (simd_clone_compute_base_data_type): Likewise.
11466 (simd_clone_init_simd_arrays): Adjust for the new interface.
11467 (simd_clone_adjust_argument_types): Likewise.
11468 (struct modify_stmt_info): Likewise.
11469 (ipa_simd_modify_stmt_ops): Likewise.
11470 (ipa_simd_modify_function_body): Likewise.
11471 (simd_clone_adjust): Likewise.
11472 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
11473 (type_internals_preclude_sra_p): Make public.
11474 * tree-sra.h: New file.
11475 * ipa-inline-transform.c (save_inline_function_body): Update to
11476 refelct new tree_function_versioning signature.
11477 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
11478 ipa_param_adjustments to get current parameter indices.
11479 (ipcp_modif_dom_walker::before_dom_children): Likewise.
11480 (ipcp_update_bits): Likewise.
11481 (ipcp_update_vr): Likewise.
11482 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
11483 * ipa-sra.c: New file.
11484 * multiple_target.c (create_target_clone): Update to reflet new type
11485 of create_version_clone_with_body.
11486 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
11487 tree_function_versioning.
11488 (modify_function): Update to reflect new type of
11489 tree_function_versioning.
11490 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
11491 * passes.def: Remove old IPA-SRA and add new one.
11492 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
11493 (make_pass_ipa_sra): Declare.
11494 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
11495 ipa_sra_retvalues.
11496 * doc/invoke.texi (ipa-sra-max-replacements): New.
11497
11498 2019-09-19 Martin Sebor <msebor@redhat.com>
11499
11500 PR middle-end/91631
11501 * builtins.c (component_size): Correct trailing array computation,
11502 rename to component_ref_size and move...
11503 (compute_objsize): Adjust.
11504 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
11505 (builtin_access::strict): Do not consider memmove.
11506 (builtin_access::write_off): New function.
11507 (builtin_memref::builtin_memref): Initialize refsize.
11508 (builtin_memref::set_base_and_offset): Adjust refoff and compute
11509 refsize.
11510 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
11511 Handle refsize.
11512 (builtin_access::builtin_access): Initialize dstoff to destination
11513 refeence offset here instead of in maybe_diag_overlap. Adjust
11514 referencess even to unrelated objects. Adjust sizrange of bounded
11515 string functions to reflect bound. For strcat, adjust destination
11516 sizrange by that of source.
11517 (builtin_access::strcat_overlap): Adjust offsets and sizes
11518 to reflect the increase in destination sizrange above.
11519 (builtin_access::overlap): Do not set dstoff here but instead
11520 in builtin_access::builtin_access.
11521 (check_bounds_or_overlap): Use builtin_access::write_off.
11522 (maybe_diag_access_bounds): Add argument. Add informational notes.
11523 (dump_builtin_memref, dump_builtin_access): New functions.
11524 * tree.c (component_ref_size): ...to here.
11525 * tree.h (component_ref_size): Declare.
11526 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
11527 nul in the size of the source string.
11528
11529 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
11530
11531 PR c/67224
11532 * doc/cpp.texi: Document support for extended characters in
11533 identifiers.
11534 * doc/cppopts.texi: Likewise.
11535
11536 2019-09-19 Richard Biener <rguenther@suse.de>
11537
11538 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
11539 (check_reduction_path): New overload having the path as result.
11540 (vect_is_simple_reduction): From the detected reduction
11541 path build a SLP reduction chain if possible.
11542
11543 2019-09-19 Richard Biener <rguenther@suse.de>
11544
11545 PR target/91814
11546 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
11547 Force operand to a register if it isn't nonimmediate_operand.
11548
11549 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
11550
11551 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
11552 * config/arm/iterators.md (optab): Add and, ior, xor entries.
11553 (logical_op): Remove code attribute.
11554 (logical_OP): Likewise.
11555
11556 2019-09-19 Martin Liska <mliska@suse.cz>
11557
11558 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
11559 Use proper casting.
11560
11561 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
11562
11563 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
11564 registers with %R.
11565
11566 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
11567 for NE comparison of TImode values.
11568 (aarch64_emit_load_exclusive): Add support for TImode.
11569 (aarch64_emit_store_exclusive): Likewise.
11570 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
11571 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
11572 Change iterator from ALLI to ALLI_TI.
11573 (@atomic_compare_and_swap<JUST_TI>): New.
11574 (@atomic_compare_and_swap<JUST_TI>_lse): New.
11575 (aarch64_load_exclusive_pair): New.
11576 (aarch64_store_exclusive_pair): New.
11577 * config/aarch64/iterators.md (JUST_TI): New.
11578
11579 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
11580 strong_zero_p for aarch64_track_speculation; unify some code paths;
11581 use aarch64_gen_compare_reg instead of open-coding.
11582
11583 * config/aarch64/aarch64.opt (-moutline-atomics): New.
11584 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
11585 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
11586 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
11587 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
11588 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
11589 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
11590 (atomic_<atomic_op><ALLI>): Likewise.
11591 (atomic_fetch_<atomic_op><ALLI>): Likewise.
11592 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
11593 * doc/invoke.texi: Document -moutline-atomics.
11594
11595 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
11596
11597 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
11598 trivial predicate for condition branch.
11599 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
11600 for switch case.
11601 (compute_bb_predicates): Update predicate based on post-dominating
11602 relationship.
11603 (analyze_function_body): Calculate post-dominating information.
11604
11605 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11606
11607 * tree-vectorizer.h (vectorizable_condition): Take an int
11608 reduction index instead of a boolean flag.
11609 * tree-vect-stmts.c (vectorizable_condition): Likewise.
11610 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
11611 reductions if the reduction accumulator is the "then" rather
11612 than the "else" value.
11613 (vect_analyze_stmt): Update call accordingly.
11614 (vect_transform_stmt): Likewise.
11615 * tree-vect-loop.c (vectorizable_reduction): Likewise,
11616 asserting that the index is > 0.
11617
11618 2019-09-19 Martin Liska <mliska@suse.cz>
11619
11620 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
11621 (sort_congruence_classes_by_decl_uid): Likewise.
11622 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
11623 easier sorting.
11624 (sem_item_optimizer::merge_classes): Likewise.
11625
11626 2019-09-19 Richard Biener <rguenther@suse.de>
11627
11628 PR tree-optimization/91812
11629 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
11630 volatile loads.
11631
11632 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
11633
11634 * defaults.h (TARGET_UNIT): New macro.
11635 (target_unit): New type.
11636 * rtl.h (native_encode_rtx, native_decode_rtx)
11637 (native_decode_vector_rtx, subreg_size_lsb): Declare.
11638 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
11639 * rtlanal.c (subreg_lsb_1): Delete.
11640 (subreg_size_lsb): New function.
11641 * simplify-rtx.c: Include rtx-vector-builder.h
11642 (simplify_immed_subreg): Delete.
11643 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
11644 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
11645 functions.
11646 (simplify_subreg): Use them.
11647 (test_vector_subregs_modes, test_vector_subregs_repeating)
11648 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
11649 (test_vector_subregs): New functions.
11650 (test_vector_ops): Call test_vector_subregs for integer vector
11651 modes with at least 2 elements.
11652
11653 2019-09-19 Richard Biener <rguenther@suse.de>
11654
11655 * tree-parloops.c (parloops_is_slp_reduction): Do not set
11656 LOOP_VINFO_OPERANDS_SWAPPED.
11657 (parloops_is_simple_reduction): Likewise.
11658 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
11659 initialize operands_swapped.
11660 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
11661 (vect_is_slp_reduction): Do not swap operands.
11662 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
11663 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
11664
11665 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
11666
11667 PR target/87007
11668 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
11669 Add avx_partial_xmm_update.
11670
11671 2019-09-18 Jim Wilson <jimw@sifive.com>
11672
11673 PR target/91683
11674 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
11675 (riscv_move_integer): Likewise.
11676 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
11677 riscv_move_integer arg.
11678 (riscv_legitimize_move): Likewise.
11679 (riscv_force_temporary): New parameter in_splitter. Don't call
11680 force_reg if true.
11681 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
11682 arg.
11683 (riscv_add_offset): Likewise.
11684 (riscv_split_symbol): New parameter in_splitter. Pass to
11685 riscv_force_temporary.
11686 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
11687 arg.
11688 (riscv_move_integer): New parameter in_splitter. New local
11689 can_create_psuedo. Don't call riscv_split_integer or force_reg when
11690 in_splitter TRUE.
11691 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
11692 riscv_split_symbol, and riscv_force_temporary args.
11693 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
11694 riscv_move_integer arg.
11695 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
11696
11697 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
11698
11699 PR target/90878
11700 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
11701 hard register store cost to 6.
11702
11703 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
11704
11705 PR target/91446
11706 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
11707 pseudo register store cost from 3 to 6 to make it the same as
11708 QImode and HImode.
11709
11710 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11711
11712 PR target/91738
11713 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
11714 (one_cmpldi2): Likewise.
11715 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
11716 of the constant parts is simple.
11717 * config/arm/iterators.md (LOGICAL): Add new code iterator.
11718 (logical_op): Add new code attribute.
11719 (logical_OP): Likewise.
11720 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
11721 (arm_iordi_operand): Add predicate.
11722 (arm_xordi_operand): Add predicate.
11723
11724 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11725
11726 * config/arm/arm.md (maddsidi4): Remove expander.
11727 (mulsidi3adddi): Remove pattern.
11728 (mulsidi3adddi_v6): Likewise.
11729 (mulsidi3_nov6): Likewise.
11730 (mulsidi3_v6): Likewise.
11731 (umulsidi3): Remove expander.
11732 (umulsidi3_nov6): Remove pattern.
11733 (umulsidi3_v6): Likewise.
11734 (umulsidi3adddi): Likewise.
11735 (umulsidi3adddi_v6): Likewise.
11736 (<Us>mulsidi3): Add combined expander.
11737 (<Us>maddsidi4): Likewise.
11738 (<US>mull): Add combined umull and smull pattern.
11739 (<US>mlal): Likewise.
11740 * config/arm/iterators.md (Us): Add new iterator.
11741
11742 2019-09-18 Richard Biener <rguenther@suse.de>
11743
11744 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
11745 swapping.
11746 (vectorize_fold_left_reduction): Remove assert.
11747 (vectorizable_reduction): Also expect COND_EXPR non-reduction
11748 operand in position 2. Remove assert.
11749
11750 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11751
11752 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
11753 (smulsi3_highpart_nov6): Remove pattern.
11754 (smulsi3_highpart_v6): Likewise.
11755 (umulsi3_highpart): Likewise.
11756 (umulsi3_highpart_nov6): Likewise.
11757 (umulsi3_highpart_v6): Likewise.
11758 (<US>mull_high): Add new combined multiply pattern.
11759
11760 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
11761
11762 * config/arm/arm.md (arm_mulsi3): Remove pattern.
11763 (arm_mulsi3_v6): Likewise.
11764 (mulsi3addsi_v6): Likewise.
11765 (mulsi3subsi): Likewise.
11766 (mul): Add new multiply pattern.
11767 (mla): Likewise.
11768 (mls): Likewise.
11769
11770 2019-09-18 Richard Biener <rguenther@suse.de>
11771
11772 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
11773 (parloops_valid_reduction_input_p): Copy from
11774 valid_reduction_input_p.
11775 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
11776 (parloops_needs_fold_left_reduction_p): Copy from
11777 needs_fold_left_reduction_p.
11778 (parloops_is_simple_reduction): Copy from
11779 vect_is_simple_reduction.
11780 (parloops_force_simple_reduction): Copy from
11781 vect_force_simple_reduction.
11782 (gather_scalar_reductions): Adjust.
11783 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
11784 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
11785
11786 2019-09-18 Richard Biener <rguenther@suse.de>
11787
11788 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
11789 * tree-vect-loop.c (get_initial_def_for_reduction): Make
11790 static.
11791 (vect_create_epilog_for_reduction): Remove dead code.
11792
11793 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11794
11795 * varasm.c (assemble_real): Generate canonical const_ints.
11796
11797 2019-09-18 Richard Biener <rguenther@suse.de>
11798
11799 PR lto/91763
11800 * lto-streamer-in.c (input_eh_regions): Move EH init to
11801 lto_materialize_function.
11802 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
11803 Likewise.
11804
11805 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11806
11807 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
11808 are INTEGER_CSTs.
11809
11810 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11811
11812 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
11813 of checking specifically for INTEGER_CST.
11814
11815 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11816
11817 * stor-layout.c (compute_record_mode): Operate on poly_uint64
11818 sizes instead of uhwi sizes.
11819
11820 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
11821
11822 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
11823 (add_const_value_attribute): Handle CONST_POLY_INT.
11824
11825 2019-09-18 Martin Liska <mliska@suse.cz>
11826
11827 * dbgcnt.def (store_merging): New counter.
11828 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
11829 Use it in store merging.
11830
11831 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11832
11833 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
11834 function.
11835 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
11836 * config/arm/arm.c (arm_sched_variable_issue): New function.
11837 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
11838
11839 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11840
11841 * config/arm/types.md (no_reservation): New reservation.
11842 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
11843 no_insn here.
11844 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
11845 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
11846 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
11847 * config/arm/arm1020e.md (1020alu_op): Likewise.
11848 * config/arm/arm1026ejs.md (alu_op): Likewise.
11849 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11850 * config/arm/arm926ejs.md (9_alu_op): Likewise.
11851 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11852 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
11853 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11854 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11855 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
11856 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
11857 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11858 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11859 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11860 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
11861 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
11862 * config/arm/fa526.md (526_alu_op): Likewise.
11863 * config/arm/fa606te.md (606te_alu_op): Likewise.
11864 * config/arm/fa626te.md (626te_alu_op): Likewise.
11865 * config/arm/fa726te.md (726te_alu_op): Likewise.
11866 * config/arm/xgene1.md (xgene1_nop): Likewise.
11867
11868 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11869
11870 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
11871 "no_insn" to "branch".
11872
11873 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11874
11875 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
11876
11877 2019-09-17 Richard Biener <rguenther@suse.de>
11878
11879 PR debug/91772
11880 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
11881 was missing generate locations only once.
11882
11883 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
11884
11885 PR ipa/91089
11886 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
11887 option.
11888 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
11889 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
11890 for switch default case using range analysis information.
11891
11892 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
11893
11894 PR target/91749
11895 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
11896 mode attributed is supported by FDPIC.
11897
11898 2019-09-17 Richard Biener <rguenther@suse.de>
11899
11900 PR tree-optimization/91790
11901 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
11902 use the correct DR for setting up realignment.
11903
11904 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
11905
11906 PR target/91719
11907 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
11908 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
11909 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
11910 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
11911
11912 2019-09-16 Jason Merrill <jason@redhat.com>
11913
11914 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
11915
11916 2019-09-16 Martin Liska <mliska@suse.cz>
11917
11918 * gimple-fold.c (or_comparisons_1): Remove rules moved
11919 to ...
11920 * match.pd: ... here.
11921
11922 2019-09-16 Martin Liska <mliska@suse.cz>
11923
11924 * gimple-fold.c (or_comparisons_1): Remove rules
11925 moved to ...
11926 * match.pd: ... here.
11927
11928 2019-09-16 Martin Liska <mliska@suse.cz>
11929
11930 * genmatch.c (dt_node::append_simplify): Do not print
11931 warning when we have duplicate patterns belonging
11932 to a same simplify rule.
11933 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
11934 (maybe_fold_comparisons_from_match_pd): Handle
11935 tcc_comparison as a results.
11936 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
11937
11938 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11939 Qi Feng <ffengqi@linux.ibm.com>
11940
11941 PR middle-end/88784
11942 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
11943 (x > y && x == XXX_MIN): Optimize into 'false'.
11944 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
11945 (x < y && x != XXX_MAX): Optimize into 'x < y'.
11946 (x < y && x == XXX_MAX): Optimize into 'false'.
11947 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
11948 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
11949 (x <= y || x != XXX_MIN): Optimize into 'true'.
11950 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
11951 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
11952 (x >= y || x != XXX_MAX): Optimize into 'true'.
11953 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
11954
11955 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11956 Martin Liska <mliska@suse.cz>
11957
11958 * gimple-fold.c (and_comparisons_1): Add type as first
11959 argument.
11960 (and_var_with_comparison): Likewise.
11961 (and_var_with_comparison_1): Likewise.
11962 (or_comparisons_1): Likewise.
11963 (or_var_with_comparison): Likewise.
11964 (or_var_with_comparison_1): Likewise.
11965 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
11966 (maybe_fold_or_comparisons): Likewise.
11967 (maybe_fold_comparisons_from_match_pd): New.
11968 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
11969 (maybe_fold_or_comparisons): Likewise.
11970 * gimple.c (gimple_size): Make it public and add num_ops argument.
11971 (gimple_init): New function.
11972 (gimple_alloc): Call gimple_init.
11973 * gimple.h (gimple_size): New.
11974 (gimple_init): Likewise.
11975 * tree-if-conv.c (fold_or_predicates): Pass type.
11976 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
11977 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
11978 (optimize_vec_cond_expr): Likewise.
11979 (ovce_extract_ops): Return type of conditional expression.
11980 * tree-ssanames.c (init_ssa_name_imm_use): New.
11981 (make_ssa_name_fn): Use init_ssa_name_imm_use.
11982 * tree-ssanames.h (init_ssa_name_imm_use): New.
11983
11984 2019-09-16 Richard Biener <rguenther@suse.de>
11985
11986 PR tree-optimization/91756
11987 PR tree-optimization/87132
11988 * tree-ssa-alias.h (enum translate_flags): New.
11989 (get_continuation_for_phi): Use it instead of simple bool flag.
11990 (walk_non_aliased_vuses): Likewise.
11991 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11992 (get_continuation_for_phi): When looking across backedges only
11993 disallow valueization.
11994 (walk_non_aliased_vuses): Adjust.
11995 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
11996 if requested.
11997
11998 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
11999
12000 PR middle-end/80791
12001 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12002 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12003 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12004 * target.def (have_count_reg_decr_p): New hook.
12005 (doloop_cost_for_generic): Likewise.
12006 (doloop_cost_for_address): Likewise.
12007 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12008 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12009 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12010 * doc/tm.texi: Regenerate.
12011 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12012 addend.
12013 (record_group): Init doloop_p.
12014 (add_candidate_1): Add optional argument doloop, change the handlings
12015 accordingly.
12016 (add_candidate): Likewise.
12017 (generic_predict_doloop_p): Update attribute.
12018 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12019 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12020 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12021 MIN_EXPR.
12022 (get_computation_cost): Update for doloop IV cand extra cost.
12023 (determine_group_iv_cost_cond): Update for doloop IV cand.
12024 (determine_iv_cost): Likewise.
12025 (ivopts_estimate_reg_pressure): Likewise.
12026 (may_eliminate_iv): Update handlings for doloop IV cand.
12027 (add_iv_candidate_for_doloop): New function.
12028 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12029 (iv_ca_set_no_cp): Update for doloop IV cand.
12030 (iv_ca_set_cp): Likewise.
12031 (iv_ca_dump): Dump register cost.
12032 (find_doloop_use): New function.
12033 (analyze_and_mark_doloop_use): Likewise.
12034 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12035
12036 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12037
12038 PR middle-end/91708
12039 * cse.c (cse_insn): Do not replace anything with a
12040 MEM.
12041
12042 2019-09-13 Ian Lance Taylor <iant@golang.org>
12043
12044 * doc/invoke.texi (Optimize Options): Fix typo.
12045
12046 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12047
12048 PR tree-optimization/89386
12049 * config/i386/sse.md (smulhrs<mode>3): New expander.
12050 (smulhrsv4hi3): Ditto.
12051
12052 2019-09-12 Richard Biener <rguenther@suse.de>
12053
12054 PR tree-optimization/91750
12055 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12056 in the type of the evolution.
12057
12058 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12059
12060 PR tree-optimization/89386
12061 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12062 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12063 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12064 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12065 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12066 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12067 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12068 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12069 (su, r): Handle the unspecs above.
12070 (bt): New int attribute.
12071 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12072 * internal-fn.c (first_commutative_argument): Commutativity info for
12073 above.
12074 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12075 (umulhrs_optab): New optabs.
12076 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12077 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12078 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12079 function.
12080 (vect_vect_recog_func_ptrs): Add it.
12081
12082 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12083
12084 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12085 code.
12086
12087 2019-09-11 Nathan Sidwell <nathan@acm.org>
12088
12089 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12090 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12091
12092 2019-09-11 Richard Biener <rguenther@suse.de>
12093
12094 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12095 * lto-wrapper.c (merge_and_complain): Pick up -g.
12096 (append_compiler_options): Likewise.
12097 (run_gcc): Re-instantiate handling -g0 at link-time.
12098 * doc/invoke.texi (flto): Document debug info generation.
12099
12100 2019-09-11 Richard Biener <rguenther@suse.de>
12101
12102 PR tree-optimization/90387
12103 * vr-values.c (vr_values::extract_range_basic): After inlining
12104 simplify non-constant __builtin_constant_p to false.
12105
12106 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12107
12108 PR rtl-optimization/89795
12109 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12110 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12111
12112 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12113
12114 PR tree-optimization/91723
12115 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12116 instead of pointer equality when checking if argument vectypes are
12117 the same.
12118
12119 PR middle-end/91725
12120 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12121 of get_nonzero_bits, only call it for integral types.
12122
12123 2019-09-11 Richard Biener <rguenther@suse.de>
12124
12125 Revert
12126 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12127
12128 * match.pd: Add flag_unsafe_math_optimizations check
12129 before deciding on the widest type in a binary math operation.
12130
12131 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12132
12133 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12134 and CALL_REALLY_USED_REGISTERS must be defined, and that
12135 CALL_REALLY_USED_REGISTERS is preferred.
12136 * doc/tm.texi: Regenerate.
12137 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12138 (call_really_used_regs): Likewise.
12139 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12140 CALL_REALLY_USED_REGISTERS are defined.
12141 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12142 initial value if defined.
12143 (initial_call_really_used_regs): Delete.
12144 (saved_call_really_used_regs): Likewise.
12145 (CALL_REALLY_USED_REGNO_P): Likewise.
12146 (init_reg_sets): Remove handling of call_really_used_regs.
12147 (save_register_info, restore_register_info, globalize_reg): Likewise.
12148 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12149 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12150 outside operand_reg_set.
12151 (fix_register): Don't change call_used_regs if
12152 CALL_REALLY_USED_REGISTERS is defined.
12153 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12154 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12155 instead of call_really_used_regs.
12156 (csky_conditional_register_usage): Remove the old handling of
12157 call_used_regs and change the handling of call_really_used_regs
12158 to use call_used_regs instead.
12159 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12160 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12161 making a register fixed.
12162 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12163 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12164 instead of call_really_used_regs.
12165 (m32r_conditional_register_usage): Don't set call_used_regs when
12166 making a register fixed.
12167 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12168 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12169 instead of call_really_used_regs.
12170 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12171 (mips_cfun_call_saved_reg_p): Likewise.
12172 (mips_swap_registers): Remove the old handling of call_used_regs
12173 and change the handling of call_really_used_regs to use call_used_regs
12174 instead.
12175 (mips_conditional_register_usage): Likewise.
12176 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12177 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12178 instead of call_really_used_regs.
12179 (mn10300_get_live_callee_saved_regs): Likewise.
12180 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12181 (mn10300_conditional_register_usage): Don't set call_used_regs when
12182 making a register fixed.
12183 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12184 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12185 Remove the old handling of call_used_regs and change the handling
12186 of call_really_used_regs to use call_used_regs instead.
12187 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12188 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12189 instead of call_really_used_regs.
12190 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12191 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12192 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12193 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12194 (s390_conditional_register_usage): Remove the old handling of
12195 call_used_regs and change the handling of call_really_used_regs
12196 to use call_used_regs instead.
12197 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12198 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12199 (sh_fix_range, reg_unused_after): Likewise.
12200 (sh_conditional_register_usage): Remove the old handling of
12201 call_used_regs and change the handling of call_really_used_regs
12202 to use call_used_regs instead.
12203 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12204 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12205 call_used_regs when making a register fixed.
12206 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12207 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12208 call_used_regs when making a register fixed.
12209 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12210 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12211 set call_used_regs when making a register fixed.
12212 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12213 * config/visium/visium.c (visium_conditional_register_usage): Remove
12214 the old handling of call_used_regs and change the handling of
12215 call_really_used_regs to use call_used_regs instead.
12216
12217 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12218
12219 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12220 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12221 * reginfo.c (call_used_regs): New macro.
12222
12223 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12224
12225 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12226 fixed_regs test.
12227 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12228 (bpf_expand_epilogue): Likewise.
12229 * config/c6x/c6x.c (c6x_save_reg): Likewise.
12230 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12231 (ft32_expand_epilogue): Likewise.
12232 * config/i386/i386.c (ix86_save_reg): Likewise.
12233 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12234 (moxie_expand_epilogue): Likewise.
12235 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12236 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12237 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12238
12239 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12240
12241 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12242 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12243 instead of testing call_used_regs directly.
12244 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12245 (aarch64_components_for_bb): Likewise.
12246 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12247 * config/arc/arc.c (arc_must_save_register): Likewise.
12248 (arc_epilogue_uses): Likewise.
12249 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12250 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12251 (arm_compute_save_reg0_reg12_mask): Likewise.
12252 (arm_compute_save_core_reg_mask): Likewise.
12253 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12254 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12255 (cmse_nonsecure_entry_clear_before_return): Likewise.
12256 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12257 (arm_expand_epilogue): Likewise.
12258 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12259 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12260 (_reg_unused_after): Likewise.
12261 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12262 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12263 (add_to_reg, hwloop_optimize): Likewise.
12264 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12265 (bpf_expand_epilogue): Likewise.
12266 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12267 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
12268 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
12269 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12270 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12271 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12272 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12273 * config/frv/frv.c (frv_stack_info): Likewise.
12274 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12275 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12276 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12277 (move_callee_saved_registers): Likewise.
12278 * config/h8300/h8300.c (byte_reg): Likewise.
12279 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
12280 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
12281 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
12282 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
12283 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
12284 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
12285 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
12286 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
12287 * config/m32c/m32c.c (need_to_save): Likewise.
12288 * config/m68k/m68k.c (m68k_save_reg): Likewise.
12289 * config/mcore/mcore.c (calc_live_regs): Likewise.
12290 * config/microblaze/microblaze.c (microblaze_must_save_register):
12291 Likewise.
12292 * config/mmix/mmix.c (mmix_local_regno): Likewise.
12293 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
12294 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
12295 (mmix_expand_epilogue): Likewise.
12296 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
12297 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
12298 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
12299 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
12300 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
12301 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
12302 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
12303 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
12304 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
12305 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
12306 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
12307 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
12308 * config/rl78/rl78.c (need_to_save): Likewise.
12309 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
12310 (rs6000_stack_info, generate_set_vrsave): Likewise.
12311 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
12312 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
12313 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12314 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12315 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
12316 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
12317 (save_local_or_in_reg_p): Likewise.
12318 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
12319 (xstormy16_epilogue_uses): Likewise.
12320 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12321 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12322 * config/v850/v850.c (compute_register_save_size): Likewise.
12323 * config/vax/vax.c (vax_expand_prologue): Likewise.
12324 * config/visium/visium.c (visium_save_reg_p): Likewise.
12325 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12326 * cselib.c (cselib_process_insn): Likewise.
12327 * df-scan.c (df_get_entry_block_def_set): Likewise.
12328 * function.c (aggregate_value_p): Likewise.
12329 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
12330 * ira-lives.c (process_bb_node_lives): Likewise.
12331 * ira.c (do_reload): Likewise.
12332 * lra-lives.c (process_bb_lives): Likewise.
12333 * lra-remat.c (lra_remat): Likewise.
12334 * lra.c (lra): Likewise.
12335 * postreload.c (reload_combine_recognize_pattern): Likewise.
12336 (reload_cse_move2add): Likewise.
12337 * recog.c (peep2_find_free_register): Likewise.
12338 * regrename.c (check_new_reg_p): Likewise.
12339 * reload.c (find_equiv_reg): Likewise.
12340 * reload1.c (reload, find_reg): Likewise.
12341 * sel-sched.c (init_hard_regs_data): Likewise.
12342
12343 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12344
12345 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
12346 regs_invalidated_by_call & ~fixed_reg_set instead of
12347 call_used_or_fixed_regs & ~fixed_reg_set.
12348 * config/sh/sh.c (output_stack_adjust): Likewise.
12349
12350 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12351
12352 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
12353 (call_used_reg_set): Delete.
12354 (call_used_or_fixed_regs): New macro.
12355 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
12356 of call_used_reg_set.
12357 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
12358 instead of call_used_regs.
12359 (save_call_clobbered_regs): Likewise.
12360 * cfgcleanup.c (old_insns_match_p): Likewise.
12361 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
12362 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12363 Likewise.
12364 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12365 * config/sh/sh.c (output_stack_adjust): Likewise.
12366 * final.c (collect_fn_hard_reg_usage): Likewise.
12367 * ira-build.c (ira_build): Likewise.
12368 * ira-color.c (calculate_saved_nregs): Likewise.
12369 (allocno_reload_assign, calculate_spill_cost): Likewise.
12370 * ira-conflicts.c (ira_build_conflicts): Likewise.
12371 * ira-costs.c (ira_tune_allocno_costs): Likewise.
12372 * ira-lives.c (process_bb_node_lives): Likewise.
12373 * ira.c (setup_reg_renumber): Likewise.
12374 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
12375 * lra-constraints.c (need_for_call_save_p): Likewise.
12376 (need_for_split_p, inherit_in_ebb): Likewise.
12377 * lra-lives.c (process_bb_lives): Likewise.
12378 * lra-remat.c (call_used_input_regno_present_p): Likewise.
12379 * postreload.c (reload_combine): Likewise.
12380 * regrename.c (find_rename_reg): Likewise.
12381 * reload1.c (reload_as_needed): Likewise.
12382 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12383 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12384 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12385
12386 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12387
12388 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
12389 (no_caller_save_reg_set): Delete.
12390 * caller-save.c (init_caller_save): Don't initialize it.
12391 * ira-conflicts.c (ira_build_conflicts): Calculate
12392 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
12393
12394 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12395
12396 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
12397 (target_hard_regs::x_savable_regs): New field.
12398 (call_fixed_reg_set): Delete.
12399 (savable_regs): New macro,
12400 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
12401 (init_reg_sets_1): Likewise. Initialize savable_regs.
12402 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
12403 for all registers. Set savable_regs instead of call_fixed_reg_set.
12404 (setup_save_areas, save_call_clobbered_regs): Replace uses of
12405 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
12406 * config/sh/sh.c (output_stack_adjust): Likewise.
12407
12408 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12409
12410 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
12411 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
12412 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
12413
12414 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12415
12416 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
12417 * rtlanal.c (get_call_rtx_from): Likewise.
12418 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
12419 than the pattern to get_call_rtx_from.
12420 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
12421 an rtx_insn * instead of an rtx.
12422 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
12423
12424 2019-09-10 Martin Liska <mliska@suse.cz>
12425
12426 * common.opt: Use newly added WarnRemoved.
12427 * config/aarch64/aarch64.opt: Likewise.
12428 * config/arm/arm.opt: Likewise.
12429 * config/i386/i386.opt: Likewise.
12430 * config/ia64/ia64.opt: Likewise.
12431 * config/rs6000/rs6000.opt: Likewise.
12432 * doc/options.texi: Document WarnRemoved properly.
12433 * dwarf2out.c (gen_producer_string): Handle renamed
12434 OPT_SPECIAL_warn_removed.
12435 * lto-opts.c (lto_write_options): Likewise.
12436 * lto-wrapper.c (merge_and_complain): Likewise.
12437 * opts-common.c (decode_cmdline_option): Likewise.
12438 (prune_options): Likewise.
12439 (read_cmdline_option): Likewise.
12440 (control_warning_option): Likewise.
12441 * opts.c (print_filtered_help): Likewise.
12442 * optc-gen.awk: Parse for WarnRemoved and make usage
12443 of Deprecated an error.
12444 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
12445
12446 2019-09-10 Arnaud Charlet <charlet@adacore.com>
12447
12448 * doc/install.texi: Fix syntax for html generation.
12449
12450 2019-09-10 Jakub Jelinek <jakub@redhat.com>
12451
12452 PR middle-end/91680
12453 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
12454 the shift type to type.
12455
12456 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12457
12458 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
12459 FDPIC mode.
12460 (stack_protect_combined_test_insn): Likewise.
12461
12462 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12463 Mickaël Guêné <mickael.guene@st.com>
12464
12465 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
12466 * config/arm/arm.md (FDPIC_REGNUM): New constant.
12467 (load_tp_soft_fdpic): New pattern.
12468 (load_tp_soft): Disable in FDPIC mode.
12469
12470 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12471 Mickaël Guêné <mickael.guene@st.com>
12472
12473 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
12474 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
12475 (arm_call_tls_get_addr): Add FDPIC support.
12476 (legitimize_tls_address): Likewise.
12477 (arm_emit_tls_decoration): Likewise.
12478
12479 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12480 Mickaël Guêné <mickael.guene@st.com>
12481
12482 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
12483 support.
12484 (arm_trampoline_init): Likewise.
12485 (arm_trampoline_adjust_address): Likewise.
12486 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
12487
12488 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12489 Mickaël Guêné <mickael.guene@st.com>
12490
12491 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
12492 (legitimize_pic_address): Enforce binding rules on function
12493 pointers in FDPIC mode.
12494 (arm_assemble_integer): Likewise.
12495
12496 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12497 Mickaël Guêné <mickael.guene@st.com>
12498
12499 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
12500 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
12501 FDPIC.
12502
12503 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12504 Mickaël Guêné <mickael.guene@st.com>
12505
12506 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
12507 field.
12508
12509 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12510 Mickaël Guêné <mickael.guene@st.com>
12511
12512 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
12513 in FDPIC mode.
12514 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
12515 new function.
12516 * config/arm/arm.c (arm_option_override): Define pic register to
12517 FDPIC_REGNUM.
12518 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
12519 have no decl or go through PLT.
12520 (calculate_pic_address_constant): New function.
12521 (legitimize_pic_address): Call calculate_pic_address_constant.
12522 (arm_load_pic_register): Handle TARGET_FDPIC.
12523 (arm_is_segment_info_known): New function.
12524 (arm_pic_static_addr): Add support for FDPIC.
12525 (arm_load_function_descriptor): New function.
12526 (arm_emit_call_insn): Add support for FDPIC.
12527 (arm_assemble_integer): Add support for FDPIC.
12528 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
12529 Define. (FDPIC_REGNUM): New define.
12530 * config/arm/arm.md (call): Add support for FDPIC.
12531 (call_value): Likewise.
12532 (restore_pic_register_after_call): New pattern.
12533 (untyped_call): Disable if FDPIC.
12534 (untyped_return): Likewise.
12535 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
12536
12537 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12538 Mickaël Guêné <mickael.guene@st.com>
12539
12540 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
12541 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
12542 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
12543 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
12544 (CC1_SPEC): Use FDPIC_CC1_SPEC.
12545 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
12546 * config/arm/uclinuxfdpiceabi.h: New file.
12547
12548 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12549
12550 * config.gcc: Handle *-*-uclinuxfdpiceabi.
12551
12552 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
12553 Mickaël Guêné <mickael.guene@st.com>
12554
12555 * config/arm/arm.opt: Add -mfdpic option.
12556 * doc/invoke.texi: Add documentation for -mfdpic.
12557
12558 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12559
12560 * expmed.c (extract_bit_field): Update function comment
12561 regarding alt_rtl.
12562 * expr.c (expand_expr_real): Update function comment
12563 regarding alt_rtl.
12564 (expand_misaligned_mem_ref): New helper function.
12565 (expand_expr_real_2): Use expand_misaligned_mem_ref.
12566 Remove duplicate assignment to "base" at case MEM_REF.
12567 Remove a shadowed variable "unsignedp" at case VCE.
12568
12569 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12570
12571 * regset.h (regs_invalidated_by_call_regset): Delete.
12572 (fixed_reg_set_regset): Likewise.
12573 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
12574 (fixed_reg_set_regset, persistent_obstack): Likewise.
12575 (init_reg_sets_1, globalize_reg): Update accordingly.
12576 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
12577 instead of a bitmap.
12578 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
12579 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
12580 instead of regs_invalidated_by_call_regset.
12581 (df_lr_confluence_n, df_md_confluence_n): Likewise.
12582 * df-scan.c (df_scan_start_dump): Likewise.
12583 * dse.c (copy_fixed_regs): Likewise.
12584 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
12585
12586 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12587
12588 * array-traits.h: New file.
12589 * coretypes.h (array_traits, bitmap_view): New types.
12590 * bitmap.h: Include "array-traits.h"
12591 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12592 (base_bitmap_view, bitmap_view): New classes.
12593 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
12594 * hard-reg-set.h: Include array-traits.h.
12595 (array_traits<HARD_REG_SET>): New struct.
12596 * regset.h (IOR_REG_SET_HRS): New macro.
12597 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
12598 rather than iterating over each hard register.
12599 * sched-deps.c (sched_analyze_insn): Likewise.
12600 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
12601
12602 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12603
12604 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
12605 instead of a HARD_REG_SET *.
12606 * ira-build.c (ior_hard_reg_conflicts): Likewise.
12607 (ira_build): Update call accordingly.
12608 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
12609
12610 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12611
12612 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
12613 (HARD_REG_SET::operator!=): Likewise.
12614 (hard_reg_set_equal_p): Delete.
12615 * cfgcleanup.c (old_insns_match_p): Use == instead of
12616 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
12617 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
12618 (add_allocno_hard_regs_to_forest): Likewise.
12619 (setup_allocno_available_regs_num): Likewise.
12620 * ira.c (setup_pressure_classes): Likewise.
12621 (setup_allocno_and_important_classes): Likewise.
12622 (setup_reg_class_relations): Likewise.
12623 * lra-lives.c (process_bb_lives): Likewise.
12624 * reg-stack.c (change_stack, convert_regs_1): Likewise.
12625
12626 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12627
12628 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
12629 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
12630 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
12631 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
12632 Likewise.
12633 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
12634 * ira.c (setup_reg_renumber): Likewise.
12635 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12636 * regrename.c (regrename_find_superclass): Likewise.
12637 * reload1.c (find_reg): Likewise.
12638
12639 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12640
12641 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
12642 * caller-save.c (setup_save_areas): Use "&~" instead of
12643 AND_COMPL_HARD_REG_SET.
12644 (save_call_clobbered_regs): Likewise.
12645 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
12646 Likewise.
12647 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12648 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12649 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
12650 * config/mips/mips.c (mips_class_max_nregs): Likewise.
12651 (mips_conditional_register_usage): Likewise.
12652 * config/sh/sh.c (output_stack_adjust): Likewise.
12653 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
12654 (setup_profitable_hard_regs): Likewise.
12655 (get_conflict_and_start_profitable_regs): Likewise.
12656 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12657 (ira_build_conflicts): Likewise.
12658 * ira-costs.c (restrict_cost_classes): Likewise.
12659 (setup_regno_cost_classes_by_aclass): Likewise.
12660 * ira-lives.c (process_bb_node_lives): Likewise.
12661 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
12662 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
12663 (setup_allocno_and_important_classes, setup_class_translate_array)
12664 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
12665 Likewise.
12666 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12667 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
12668 (process_alt_operands, inherit_in_ebb): Likewise.
12669 * lra-eliminations.c (update_reg_eliminate): Likewise.
12670 * lra-lives.c (process_bb_lives): Likewise.
12671 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
12672 * resource.c (find_dead_or_set_registers): Likewise.
12673 (mark_target_live_regs): Likewise.
12674 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
12675 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12676 (implicit_clobber_conflict_p): Likewise.
12677 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12678 (try_shrink_wrapping): Likewise.
12679
12680 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12681
12682 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
12683 (HARD_REG_SET::operator|=): Likewise.
12684 (IOR_HARD_REG_SET): Delete.
12685 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
12686 IOR_HARD_REG_SET.
12687 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
12688 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
12689 * final.c (collect_fn_hard_reg_usage): Likewise.
12690 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
12691 * ira-build.c (merge_hard_reg_conflicts): Likewise.
12692 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
12693 (propagate_some_info_from_allocno): Likewise.
12694 (copy_info_to_removed_store_destinations): Likewise.
12695 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
12696 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
12697 (fast_allocation): Likewise.
12698 * ira-conflicts.c (ira_build_conflicts): Likewise.
12699 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
12700 (process_bb_node_lives): Likewise.
12701 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
12702 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12703 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12704 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
12705 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
12706 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
12707 (process_bb_lives): Likewise.
12708 * lra-spills.c (assign_spill_hard_regs): Likewise.
12709 * postreload.c (reload_combine): Likewise.
12710 * reginfo.c (init_reg_sets_1): Likewise.
12711 * regrename.c (merge_overlapping_regs, find_rename_reg)
12712 (merge_chains): Likewise.
12713 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
12714 (find_reload_regs, finish_spills, choose_reload_regs_init)
12715 (emit_reload_insns): Likewise.
12716 * reorg.c (redundant_insn): Likewise.
12717 * resource.c (find_dead_or_set_registers, mark_set_resources)
12718 (mark_target_live_regs): Likewise.
12719 * rtlanal.c (find_all_hard_reg_sets): Likewise.
12720 * sched-deps.c (sched_analyze_insn): Likewise.
12721 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12722 (find_best_reg_for_expr): Likewise.
12723 * shrink-wrap.c (try_shrink_wrapping): Likewise.
12724
12725 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12726
12727 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
12728 (HARD_REG_SET::operator&): Likewise.
12729 (AND_HARD_REG_SET): Delete.
12730 * caller-save.c (setup_save_areas): Use "&" instead of
12731 AND_HARD_REG_SET.
12732 (save_call_clobbered_regs): Likewise.
12733 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12734 * config/m32c/m32c.c (reduce_class): Likewise.
12735 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12736 * final.c (get_call_reg_set_usage): Likewise.
12737 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
12738 (setup_left_conflict_sizes_p): Likewise.
12739 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12740 (ira_build_conflicts): Likewise.
12741 * ira-costs.c (restrict_cost_classes): Likewise.
12742 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
12743 (setup_reg_class_relations): Likewise.
12744 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
12745 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
12746 * resource.c (find_dead_or_set_registers): Likewise.
12747 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12748
12749 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12750
12751 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
12752 (COMPL_HARD_REG_SET): Delete.
12753 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
12754 of COMPL_HARD_REG_SET.
12755 (try_rename_operands): Likewise.
12756 * config/sh/sh.c (push_regs): Likewise.
12757 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12758 * lra-constraints.c (contains_reg_p): Likewise.
12759 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
12760
12761 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12762
12763 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
12764 * caller-save.c (save_call_clobbered_regs): Use assignment instead
12765 of COPY_HARD_REG_SET.
12766 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
12767 (epiphany_conditional_register_usage): Likewise.
12768 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
12769 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12770 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12771 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
12772 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
12773 * config/mips/mips.c (mips_class_max_nregs): Likewise.
12774 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
12775 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
12776 * config/sh/sh.c (output_stack_adjust): Likewise.
12777 * final.c (collect_fn_hard_reg_usage): Likewise.
12778 (get_call_reg_set_usage): Likewise.
12779 * ira-build.c (ira_create_object, remove_low_level_allocnos)
12780 (ira_flattening): Likewise.
12781 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
12782 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
12783 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
12784 (ira_reassign_pseudos): Likewise.
12785 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12786 (ira_build_conflicts): Likewise.
12787 * ira-costs.c (restrict_cost_classes): Likewise.
12788 (setup_regno_cost_classes_by_aclass): Likewise.
12789 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
12790 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
12791 (setup_stack_reg_pressure_class, setup_pressure_classes)
12792 (setup_allocno_and_important_classes, setup_class_translate_array)
12793 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
12794 (ira_setup_eliminable_regset): Likewise.
12795 * lra-assigns.c (find_hard_regno_for_1): Likewise.
12796 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
12797 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
12798 (process_alt_operands, inherit_in_ebb): Likewise.
12799 * lra-lives.c (process_bb_lives): Likewise.
12800 * lra-spills.c (assign_spill_hard_regs): Likewise.
12801 * lra.c (lra): Likewise.
12802 * mode-switching.c (new_seginfo): Likewise.
12803 * postreload.c (reload_combine): Likewise.
12804 * reg-stack.c (straighten_stack): Likewise.
12805 * reginfo.c (save_register_info, restore_register_info): Likewise.
12806 (init_reg_sets_1, record_subregs_of_mode): Likewise
12807 * regrename.c (create_new_chain, rename_chains): Likewise.
12808 * reload1.c (order_regs_for_reload, find_reg): Likewise.
12809 (find_reload_regs): Likewise.
12810 * resource.c (find_dead_or_set_registers): Likewise.
12811 (mark_target_live_regs): Likewise.
12812 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12813
12814 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12815
12816 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
12817 (note_pattern_stores): Declare.
12818 (note_stores): Take an rtx_insn *.
12819 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
12820 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
12821 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
12822 (note_stores): Take an rtx_insn * as argument and process
12823 CALL_INSN_FUNCTION_USAGE. Rename old function to...
12824 (note_pattern_stores): ...this.
12825 (find_first_parameter_load): Pass the insn rather than
12826 its pattern to note_stores.
12827 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
12828 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
12829 (insert_one_insn): Likewise.
12830 * combine.c (combine_instructions): Likewise.
12831 (likely_spilled_retval_p): Likewise.
12832 (try_combine): Use note_pattern_stores instead of note_stores.
12833 (record_dead_and_set_regs): Pass the insn rather than its pattern
12834 to note_stores.
12835 (reg_dead_at_p): Likewise.
12836 * config/bfin/bfin.c (workaround_speculation): Likewise.
12837 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
12838 rather than an rtx.
12839 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
12840 instead of note_stores.
12841 (frv_optimize_membar_local): Pass the insn rather than its pattern
12842 to note_stores.
12843 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
12844 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
12845 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
12846 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
12847 (mips_reorg_process_insns): Likewise.
12848 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
12849 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
12850 rather than rtxes.
12851 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
12852 its pattern to note_stores.
12853 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
12854 of note_stores.
12855 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
12856 the insn to note_stores.
12857 (prescan_insns_for_dce): Update call accordingly.
12858 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
12859 to note_stores.
12860 * df-problems.c (can_move_insns_across): Likewise.
12861 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
12862 * function.c (assign_parm_setup_reg): Likewise.
12863 * gcse-common.c (record_last_mem_set_info_common): Likewise.
12864 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
12865 (single_set_gcse): Likewise.
12866 * ira.c (validate_equiv_mem): Likewise.
12867 (update_equiv_regs): Use note_pattern_stores rather than note_stores
12868 for no_equiv.
12869 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
12870 pattern to note_stores.
12871 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12872 * loop-iv.c (simplify_using_initial_values): Likewise.
12873 * mode-switching.c (optimize_mode_switching): Likewise.
12874 * optabs.c (emit_libcall_block_1): Likewise.
12875 (expand_atomic_compare_and_swap): Likewise.
12876 * postreload-gcse.c (load_killed_in_block_p): Likewise.
12877 (record_opr_changes): Likewise. Remove explicit handling of
12878 CALL_INSN_FUNCTION_USAGE.
12879 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
12880 * regcprop.c (kill_clobbered_values): Likewise.
12881 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
12882 to note_stores.
12883 * regrename.c (build_def_use): Likewise.
12884 * reload1.c (reload): Use note_pattern_stores instead of note_stores
12885 for mark_not_eliminable.
12886 (reload_as_needed): Pass the insn rather than its pattern
12887 to note_stores.
12888 (emit_output_reload_insns): Likewise.
12889 * resource.c (mark_target_live_regs): Likewise.
12890 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12891 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
12892 instead of note_stores.
12893 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
12894 its pattern to note_stores.
12895 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
12896 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
12897
12898 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12899
12900 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
12901 than a #define. Use a structure rather than an array as the
12902 fallback definition. Remove special cases for low array sizes.
12903 (const_hard_reg_set): New typedef.
12904 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
12905 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
12906 (hard_reg_set_empty_p): Likewise.
12907 (SET_HARD_REG_BIT): Use a function rather than a macro to
12908 handle the case in which HARD_REG_SET is a structure.
12909 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
12910 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
12911 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
12912 (IOR_COMPL_HARD_REG_SET): Likewise.
12913 (hard_reg_set_iterator::pset): Constify the pointer target.
12914 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
12915 of a "const HARD_REG_SET". Update the handling of non-integer
12916 HARD_REG_SETs.
12917 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
12918 * reload.h: Likewise.
12919 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
12920 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
12921 of a "const HARD_REG_SET".
12922 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
12923 (range_in_hard_reg_set_p): Likewise.
12924 * ira-costs.c (restrict_cost_classes): Likewise.
12925 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
12926 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12927 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
12928 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
12929 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
12930 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
12931 take an unsigned int and open-code the HARD_REG_SET operations.
12932
12933 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12934
12935 * Makefile.in (OBJS): Remove bt-load.o.
12936 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
12937 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12938 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
12939 document that the option no longer does anything.
12940 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12941 * target.def (branch_target_register_class): Delete.
12942 (branch_target_register_callee_saved): Likewise.
12943 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12944 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
12945 * doc/tm.texi: Regenerate.
12946 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
12947 (make_pass_branch_target_load_optimize2): Likewise.
12948 * passes.def (pass_branch_target_load_optimize1): Likewise.
12949 (pass_branch_target_load_optimize2): Likewise.
12950 * targhooks.h (default_branch_target_register_class): Likewise.
12951 * targhooks.c (default_branch_target_register_class): Likewise.
12952 * opt-suggestions.c (test_completion_valid_options): Remove
12953 -fbtr-bb-exclusive from the list of test options.
12954 * bt-load.c: Remove.
12955
12956 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12957
12958 * match.pd: Add flag_unsafe_math_optimizations check
12959 before deciding on the widest type in a binary math operation.
12960
12961 2019-09-09 Martin Liska <mliska@suse.cz>
12962
12963 * config/i386/i386.opt: Update comment of removed
12964 options that are preserved only for backward
12965 compatibility.
12966
12967 2019-09-09 Jakub Jelinek <jakub@redhat.com>
12968
12969 PR target/87853
12970 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
12971 instead of __v16qs.
12972
12973 PR target/91704
12974 * config/i386/avxintrin.h (__v32qs): New typedef.
12975 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
12976 instead of __v32qi.
12977
12978 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12979
12980 * doc/invoke.texi (Option Summary): Cover eBPF.
12981 (eBPF Options): New section.
12982 * doc/extend.texi (BPF Built-in Functions): Likewise.
12983 (BPF Kernel Helpers): Likewise.
12984
12985 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12986
12987 * config.gcc: Support for bpf-*-* targets.
12988 * common/config/bpf/bpf-common.c: New file.
12989 * config/bpf/t-bpf: Likewise.
12990 * config/bpf/predicates.md: Likewise.
12991 * config/bpf/constraints.md: Likewise.
12992 * config/bpf/bpf.opt: Likewise.
12993 * config/bpf/bpf.md: Likewise.
12994 * config/bpf/bpf.h: Likewise.
12995 * config/bpf/bpf.c: Likewise.
12996 * config/bpf/bpf-protos.h: Likewise.
12997 * config/bpf/bpf-opts.h: Likewise.
12998 * config/bpf/bpf-helpers.h: Likewise.
12999 * config/bpf/bpf-helpers.def: Likewise.
13000
13001 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13002
13003 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13004 indirect_calls.
13005
13006 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13007
13008 * opt-functions.awk (integer_range_info): Make sure values are in
13009 numeric context before operating with them.
13010
13011 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13012
13013 * genemit.c (gen_split): Print the filename and line number where the
13014 splitter (or peephole2) was defined, to the dump file.
13015
13016 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13017
13018 PR tree-optimization/91665
13019 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13020 incompatible with the type of PHI result.
13021
13022 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13023
13024 PR target/91684
13025 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13026 gen_unaligned_storedi for 4-byte aligned addresses.
13027
13028 2019-09-06 Jim Wilson <jimw@sifive.com>
13029
13030 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13031 change.
13032
13033 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13034
13035 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13036
13037 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13038
13039 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13040 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13041
13042 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13043
13044 PR target/91654
13045 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13046 cost of SSE->integer and integer->SSE moves from 2 to 6.
13047 (core_cost): Ditto.
13048
13049 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13050
13051 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13052 before testing TYPE_TRANSPARENT_AGGR.
13053 * calls.c (initialize_argument_information, load_register_parameters):
13054 Likewise.
13055
13056 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13057
13058 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13059 high regs.
13060 (cmp_ior): Likewise.
13061
13062 2019-09-06 Martin Liska <mliska@suse.cz>
13063
13064 * doc/match-and-simplify.texi: Separate tuples with ;.
13065
13066 2019-09-06 Martin Liska <mliska@suse.cz>
13067
13068 PR c++/91125
13069 * Makefile.in: Remove tlink.o.
13070 * collect2.c (do_link): New function isolated
13071 from do_tlink.
13072 (main): Use.
13073 * collect2.h (do_tlink): Remove declaration of do_tlink.
13074 * doc/extend.texi: Remove documentation of -frepo.
13075 * doc/invoke.texi: Likewise.
13076 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13077 * tlink.c: Remove.
13078
13079 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13080 Jim Wilson <jimw@sifive.com>
13081
13082 PR target/91635
13083 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13084 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13085 paradoxical_subreg_p (operands[0]).
13086 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13087 use as intermediate value.
13088
13089 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13090
13091 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13092 (sync_compare_and_swap<mode>_insn): Likewise.
13093
13094 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13095
13096 PR middle-end/91615
13097 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13098 without movmisalign optab.
13099
13100 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13101
13102 PR middle-end/91001
13103 PR middle-end/91105
13104 PR middle-end/91106
13105 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13106 types, use type of their first field instead of type of
13107 args[i].tree_value.
13108
13109 2019-09-05 Richard Biener <rguenther@suse.de>
13110
13111 PR rtl-optimization/91656
13112 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13113 of early out.
13114
13115 2019-09-05 Richard Biener <rguenther@suse.de>
13116
13117 PR middle-end/90501
13118 * tree-inline.c (declare_return_variable): Mark the return
13119 slot as addressable after building an address of it.
13120
13121 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13122
13123 * doc/install.texi: Update and clarify requirements to build GNAT.
13124
13125 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13126
13127 PR middle-end/91577
13128 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13129 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13130 call to be in memory.
13131 (pass_expand::execute): Call discover_nonconstant_array_refs before
13132 setting currently_expanding_to_rtl.
13133
13134 2019-09-04 Caroline Tice <cmtice@google.com>
13135
13136 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13137 specified together.
13138
13139 2019-09-04 Marek Polacek <polacek@redhat.com>
13140
13141 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13142
13143 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13144
13145 PR target/32413
13146 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13147 for QI and HImode moves between SSE and general registers.
13148
13149 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13150
13151 PR c/78736
13152 * doc/invoke.texi: Document -Wenum-conversion.
13153
13154 2019-09-04 Richard Biener <rguenther@suse.de>
13155
13156 PR rtl-optimization/36262
13157 * postreload-gcse.c: Include intl.h and gcse.h.
13158 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13159 to avoid linear list walk.
13160 (record_last_mem_set_info): Gate off if not computing transparentness.
13161 (get_bb_avail_insn): If transparentness isn't computed give up
13162 early.
13163 (gcse_after_reload_main): Skip compute_transp and extended PRE
13164 if gcse_or_cprop_is_too_expensive says so.
13165
13166 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13167
13168 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13169 noinit section.
13170 (msp430_select_section): Handle decls with the "noinit" attribute with
13171 default_elf_select_section.
13172 Handle SECCAT_RODATA_MERGE_* section types with
13173 default_elf_select_section.
13174 Add comments about handling of unsupported section types.
13175 (msp430_section_type_flags): Remove handling of the noinit section.
13176
13177 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13178
13179 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13180 conflicting msp430-specific attributes.
13181 (msp430_section_attr): Likewise.
13182 Add warnings about conflicts with generic "noinit" and "section"
13183 attributes.
13184 Fix grammar in -mlarge error message.
13185 (msp430_data_attr): Rename to msp430_persist_attr.
13186 Add warnings about conflicts with generic "noinit" and "section"
13187 attributes.
13188 Add warning for when variable is not initialized.
13189 Chain conditionals which prevent the attribute being added.
13190 (ATTR_EXCL): New helper.
13191 (attr_reent_exclusions): New exclusion table.
13192 (attr_naked_exclusions): Likewise.
13193 (attr_crit_exclusions): Likewise.
13194 (attr_lower_exclusions): Likewise.
13195 (attr_upper_exclusions): Likewise.
13196 (attr_either_exclusions): Likewise.
13197 (attr_persist_exclusions): Likewise.
13198 (msp430_attribute_table): Update with exclusion rules.
13199 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13200 has a section.
13201
13202 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13203
13204 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13205 (msp430_handle_generic_attribute): New function.
13206 * doc/tm.texi: Regenerate.
13207 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13208 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13209 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13210 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13211
13212 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13213
13214 PR tree-optimization/91504
13215 * match.pd: Add ((~a & b) ^a) --> (a | b).
13216
13217 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13218
13219 PR target/91604
13220 * config/i386/i386-expand.c (split_double_mode): If there is more than
13221 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13222 already split matching MEM operand instead of calling adjust_address
13223 again.
13224
13225 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
13226
13227 * config.gcc: Obsolete spu target. Remove references to spu.
13228 * configure.ac: Remove references to spu.
13229 * configure: Regenerate.
13230 * config/spu/: Remove directory.
13231 * common/config/spu/: Remove directory.
13232
13233 * doc/extend.texi: Remove references to spu.
13234 * doc/invoke.texi: Likewise.
13235 * doc/md.texi: Likewise.
13236 * doc/sourcebuild.texi: Likewise.
13237
13238 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13239
13240 PR middle-end/91603
13241 PR middle-end/91612
13242 PR middle-end/91613
13243 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13244 and SSA_NAME referring to CONSTANT_P correctly.
13245
13246 2019-09-03 Richard Biener <rguenther@suse.de>
13247
13248 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13249 (vn_nary_op_insert): Likewise.
13250 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13251 (vn_nary_op_lookup): Likewise.
13252 (vn_nary_op_insert): Likewise.
13253
13254 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13255
13256 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13257 (*op0, 1) instead of XEXP (*op1, 0).
13258
13259 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13260
13261 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13262 (aarch64_fjcvtzs): New define_insn.
13263 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13264 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13265 Add AARCH64_JSCVT.
13266 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13267 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
13268 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13269 __ARM_FEATURE_JCVT where appropriate.
13270 * config/aarch64/arm_acle.h (__jcvt): Define.
13271
13272 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13273
13274 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13275 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13276 (aarch64_<frintnzs_op><mode>): New define_insn.
13277 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13278 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13279 __ARM_FEATURE_FRINT when appropriate.
13280 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
13281 frint32x, frint64z, frint64x.
13282 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
13283 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
13284 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
13285 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
13286 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
13287 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
13288 * config/aarch64/iterators.md (VSFDF): Define.
13289 (FRINTNZX): Likewise.
13290 (frintnzs_op): Likewise.
13291
13292 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
13293
13294 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
13295 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
13296 Cortex-A34.
13297 * config/aarch64/aarch64-tune.md: Regenerated.
13298 * doc/invoke.texi: Document the new processors.
13299
13300 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13301
13302 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
13303 string.
13304 (ssbs): Likewise.
13305 (sve2): Likewise.
13306 (sve2-sm4): Likewise.
13307 (sveaes): Likewise.
13308 (svesha3): Likewise.
13309 (svebitperm): Likewise.
13310
13311 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13312 Richard Biener <rguenther@suse.de>
13313
13314 PR tree-optimization/91597
13315 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
13316 BIT_AND_EXPR optimization for pointers, even if both operand
13317 ranges don't include NULL, the result can be NULL.
13318
13319 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13320
13321 PR middle-end/91605
13322 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
13323 (non_mem_decl_p): ...this.
13324 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
13325 (expand_assignment): Call mem_ref_referes_to_non_mem_p
13326 unconditionally as before.
13327
13328 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13329
13330 PR target/91323
13331 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
13332 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
13333 * tree.def (LTGT_EXPR): Likewise.
13334 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
13335
13336 2019-09-02 Jakub Jelinek <jakub@redhat.com>
13337
13338 PR go/91617
13339 * fold-const.c (range_check_type): For enumeral and boolean
13340 type, pass 1 to type_for_size langhook instead of
13341 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
13342 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
13343 (build_range_check): Don't call unsigned_type_for for pointer types.
13344 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
13345 range_check_type result.
13346
13347 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
13348
13349 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
13350 (replace_ref): Do not replace a chain of only two candidates which are
13351 valid memory references.
13352
13353 2019-09-02 Martin Liska <mliska@suse.cz>
13354
13355 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
13356 Bail out when we'll end up with the same number of clusters as
13357 at the beginning.
13358 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
13359 (jump_table_cluster::can_be_handled): Remove the guard
13360 as it's already handled in ::is_enabled. Allocate output
13361 after early bail out.
13362
13363 2019-09-02 Martin Liska <mliska@suse.cz>
13364
13365 PR gcov-profile/91601
13366 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
13367 (path_contains_zero_or_negative_cycle_arc): ... this and handle
13368 also negative edges.
13369 (circuit): Handle also negative edges as they can happen
13370 in some situations.
13371
13372 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
13373
13374 PR target/91472
13375 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
13376 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
13377 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
13378
13379 2019-09-01 Jakub Jelinek <jakub@redhat.com>
13380
13381 PR middle-end/91623
13382 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
13383 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
13384 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
13385 zero vector.
13386
13387 PR lto/91572
13388 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
13389 GIMPLE_ASM TREE_LIST operands.
13390
13391 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
13392
13393 * doc/generic.texi (Unary and Binary Expressions): Mark up
13394 an instance of TYPE_MIN.
13395
13396 2019-08-31 Stafford Horne <shorne@gmail.com>
13397
13398 * config/or1k/constraints.md (t): New constraint.
13399 * config/or1k/or1k.h (GOT_REGS): New register class.
13400 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
13401
13402 2019-08-30 Jim Wilson <jimw@sifive.com>
13403
13404 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
13405 and -fpic and -mplt then disable -msave-restore and warn.
13406
13407 2019-08-30 Martin Sebor <msebor@redhat.com>
13408
13409 PR middle-end/91599
13410 * tree-ssa-strlen.c (handle_store): Use a fallback location if
13411 the statement doesn't have one.
13412 * gimple-pretty-print.c (percent_G_format): Same.
13413
13414 PR middle-end/91584
13415 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
13416 before using them to validate MEM_REF offset.
13417
13418 2019-08-30 Marek Polacek <polacek@redhat.com>
13419
13420 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
13421
13422 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
13423
13424 * config/arm/arm.md (unaligned_loaddi,
13425 unaligned_storedi): New unspec insn patterns.
13426 * config/arm/neon.md (unaligned_storev8qi): Likewise.
13427 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
13428 and unaligned_storedi for 4-byte aligned memory.
13429 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
13430 4-byte aligned memory.
13431
13432 2019-08-30 Martin Jambor <mjambor@suse.cz>
13433
13434 tree-optimization/91579
13435 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
13436 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
13437 appropriate.
13438 (arg_needs_copy_p): Removed.
13439 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
13440 arg_needs_copy_p.
13441 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
13442
13443 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13444
13445 * config/i386/i386-features.c
13446 (general_scalar_chain::compute_convert_gain):
13447 Correct cost for double-word shifts.
13448 (general_scalar_to_vector_candidate_p): Reject count operands
13449 greater or equal to mode bitsize.
13450
13451 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
13452
13453 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13454 for moves between SSE and non-general registers and between
13455 mask and non-general registers.
13456 (ix86_register_move_cost): Remove stalled comment.
13457
13458 2019-08-29 Richard Biener <rguenther@suse.de>
13459
13460 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13461 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
13462
13463 2019-08-29 Richard Biener <rguenther@suse.de>
13464
13465 PR bootstrap/91580
13466 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
13467 Do not emit scalar copies for debug-insns, instead replace
13468 their uses with the reg copy used in the chain or reset them
13469 if there is a reaching definition outside of the chain as well.
13470
13471 2019-08-29 Jakub Jelinek <jakub@redhat.com>
13472
13473 PR target/91560
13474 * config/i386/i386-expand.c (expand_vec_perm_movs,
13475 expand_vec_perm_blend, expand_vec_perm_vpermil,
13476 expand_vec_perm_pshufb, expand_vec_perm_1,
13477 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
13478 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
13479 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
13480 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
13481 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
13482 comments - replace ix86_expand_vec_perm_builtin_1 with
13483 ix86_expand_vec_perm_const_1.
13484 (expand_vec_perm2_vperm2f128_vblend): New function.
13485 (ix86_expand_vec_perm_const_1): New forward declaration. Call
13486 expand_vec_perm2_vperm2f128_vblend as last resort.
13487 (canonicalize_perm): Formatting fix.
13488
13489 PR tree-optimization/91351
13490 * tree-cfg.c (generate_range_test): Use range_check_type instead of
13491 unsigned_type_for.
13492 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
13493 range_check_type returns NULL.
13494 * tree-switch-conversion.c (switch_conversion::build_one_array):
13495 Use range_check_type instead of unsigned_type_for, don't perform
13496 linear opt if it returns NULL.
13497 (bit_test_cluster::find_bit_tests): Formatting fix.
13498 (bit_test_cluster::emit): Use range_check_type instead of
13499 unsigned_type_for.
13500 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
13501 returns NULL.
13502
13503 2019-08-29 Richard Biener <rguenther@suse.de>
13504
13505 PR tree-optimization/91568
13506 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
13507 (vect_update_max_nunits): Add overload for poly_uint64.
13508 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
13509 (vect_build_slp_tree): Record max_nunits into the subtree
13510 and merge it upwards.
13511 (vect_print_slp_tree): Print max_nunits.
13512
13513 2019-08-28 Marek Polacek <polacek@redhat.com>
13514
13515 Implement P1152R4: Deprecating some uses of volatile.
13516 PR c++/91361
13517 * doc/invoke.texi: Document -Wvolatile.
13518
13519 2019-08-28 Marek Polacek <polacek@redhat.com>
13520
13521 PR c++/91360 - Implement C++20 P1143R2: constinit.
13522 * doc/invoke.texi: Document -Wc++20-compat.
13523
13524 2019-08-28 Martin Sebor <msebor@redhat.com>
13525
13526 PR tree-optimization/91457
13527 * builtins.c (component_size): New function.
13528 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
13529 * builtins.h (compute_objsize): Add argument.
13530 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
13531 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
13532 (vrp_prop::check_mem_ref): Same.
13533 (vrp_prop::search_for_addr_array): Set no-warning bit.
13534 (check_array_bounds): Same.
13535
13536 2019-08-28 Martin Sebor <msebor@redhat.com>
13537
13538 PR driver/80545
13539 * opts-common.c (option_enabled): Correct checking for language
13540 options.
13541
13542 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
13543
13544 * config/i386/i386.c (ix86_register_move_cost): Do not
13545 limit the cost of moves to/from XMM register to minimum 8.
13546
13547 2019-08-28 Martin Jambor <mjambor@suse.cz>
13548
13549 PR ipa/91468
13550 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
13551 checking assert a normal assert to test it really is redundant.
13552 * ipa-prop.c (compute_complex_assign_jump_func): Removed
13553 redundant test.
13554 (update_jump_functions_after_inlining): Removed combining unary
13555 arithmetic operations with an ancestor jump function.
13556 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
13557 instead of t.
13558
13559 2019-08-28 Richard Biener <rguenther@suse.de>
13560
13561 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
13562 add the MD problem.
13563
13564 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13565 Richard Biener <rguenther@suse.de>
13566
13567 * expr.c (expand_assignment): Handle misaligned DECLs.
13568 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
13569 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
13570 too.
13571 (assign_parm_setup_stack): Allocate properly aligned stack slots.
13572 * varasm.c (build_constant_desc): Align constants of misaligned types.
13573 * config/arm/predicates.md (aligned_operand): New predicate.
13574 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
13575 aligned_operand to check restrictions on memory addresses.
13576 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
13577 * config/arm/vec-common.md (mov<VALL>): Likewise.
13578
13579 2019-08-28 Jakub Jelinek <jakub@redhat.com>
13580
13581 PR libgomp/91530
13582 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
13583 V_128 iterator instead of VI_128.
13584
13585 2019-08-28 Martin Liska <mliska@suse.cz>
13586
13587 PR tree-optimization/90970
13588 * builtins.c (check_access): Remove assignment to maxread
13589 as it hasn't been used since when it was introduced in r255755.
13590
13591 2019-08-27 Martin Sebor <msebor@redhat.com>
13592
13593 PR tree-optimization/91567
13594 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
13595 of unknown strings.
13596 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
13597 to PTRDIFF_MAX - 2.
13598
13599 2019-08-27 Jeff Law <law@redhat.com>
13600
13601 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
13602 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
13603
13604 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
13605
13606 PR target/91528
13607 * config/i386/i386-features.c (convert_scalars_to_vector):
13608 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
13609 crtl->stack_realign_processed. Update crtl->drap_reg by calling
13610 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
13611 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
13612
13613 2019-08-27 Richard Biener <rguenther@suse.de>
13614
13615 * config/i386/i386-features.h
13616 (general_scalar_chain::~general_scalar_chain): Add.
13617 (general_scalar_chain::insns_conv): New bitmap.
13618 (general_scalar_chain::n_sse_to_integer): New.
13619 (general_scalar_chain::n_integer_to_sse): Likewise.
13620 (general_scalar_chain::make_vector_copies): Adjust signature.
13621 * config/i386/i386-features.c
13622 (general_scalar_chain::general_scalar_chain): Outline,
13623 initialize new members.
13624 (general_scalar_chain::~general_scalar_chain): New.
13625 (general_scalar_chain::mark_dual_mode_def): Record insns
13626 we need to insert conversions at and count them.
13627 (general_scalar_chain::compute_convert_gain): Account
13628 for conversion instructions at chain boundary.
13629 (general_scalar_chain::make_vector_copies): Generate a single
13630 copy for a def by a specific insn.
13631 (general_scalar_chain::convert_registers): First populate
13632 defs_map, then make copies at out-of chain insns.
13633
13634 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
13635
13636 * config/arm/arm.md (stack_protect_set_insn): Add security-related
13637 comment.
13638 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
13639
13640 2019-08-27 Martin Liska <mliska@suse.cz>
13641
13642 * cgraph.c (cgraph_node::remove): Remove dead assignment before
13643 loop.
13644 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
13645 Enclose in anonymous namespace.
13646 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
13647 hard_register initialization in braces.
13648 * tree-vrp.h (value_range_base::supports_type_p): Return false
13649 for function with boolean return type.
13650
13651 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
13652
13653 * config/i386/i386.c (emit_i387_cw_initialization)
13654 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
13655
13656 2019-08-26 Martin Sebor <msebor@redhat.com>
13657
13658 PR c++/83431
13659 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
13660 (sprintf_dom_walker): Remove class.
13661 (get_int_range): Make argument const.
13662 (directive::fmtfunc, directive::set_precision): Same.
13663 (format_none): Same.
13664 (build_intmax_type_nodes): Same.
13665 (adjust_range_for_overflow): Same.
13666 (format_floating): Same.
13667 (format_character): Same.
13668 (format_string): Same.
13669 (format_plain): Same.
13670 (get_int_range): Cast away constness.
13671 (format_integer): Same.
13672 (get_string_length): Call get_range_strlen_dynamic. Handle
13673 null lendata.maxbound.
13674 (should_warn_p): Adjust argument scope qualifier.
13675 (maybe_warn): Same.
13676 (format_directive): Same.
13677 (parse_directive): Same.
13678 (is_call_safe): Same.
13679 (try_substitute_return_value): Same.
13680 (sprintf_dom_walker::handle_printf_call): Rename...
13681 (handle_printf_call): ...to this. Initialize target to host charmap
13682 here instead of in pass_sprintf_length::execute.
13683 (struct call_info): Make global.
13684 (sprintf_dom_walker::compute_format_length): Make global.
13685 (sprintf_dom_walker::handle_gimple_call): Same.
13686 * passes.def (pass_sprintf_length): Replace with pass_strlen.
13687 * print-rtl.c (print_pattern): Reduce the number of spaces to
13688 avoid -Wformat-truncation.
13689 * tree-pass.h (make_pass_warn_printf): New function.
13690 * tree-ssa-strlen.c (strlen_optimize): New variable.
13691 (get_string_length): Add comments.
13692 (get_range_strlen_dynamic): New function.
13693 (check_and_optimize_call): New function.
13694 (handle_integral_assign): New function.
13695 (strlen_check_and_optimize_stmt): Factor code out into
13696 strlen_check_and_optimize_call and handle_integral_assign.
13697 (strlen_dom_walker::evrp): New member.
13698 (strlen_dom_walker::before_dom_children): Use evrp member.
13699 (strlen_dom_walker::after_dom_children): Use evrp member.
13700 (printf_strlen_execute): New function.
13701 (pass_strlen::gate): Update to handle printf calls.
13702 (dump_strlen_info): New function.
13703 (pass_data_warn_printf): New variable.
13704 (pass_warn_printf): New class.
13705 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
13706 (handle_printf_call): Same.
13707 * tree-vrp.c (value_range_base::type): Adjust assertion.
13708 * vr-values.c (vr_values::update_value_range): Use type of the first
13709 argument rather than the second.
13710
13711 2019-08-26 Richard Biener <rguenther@suse.de>
13712
13713 * config/i386/i386-features.c (general_remove_non_convertible_regs):
13714 Remove.
13715 (convert_scalars_to_vector): Do not call it.
13716
13717 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
13718 Uros Bizjak <ubizjak@gmail.com>
13719
13720 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
13721 CASE_MATHFN_FLOATN for roundeven.
13722 * config/i386/i386.c (ix86_i387_mode_needed): Add case
13723 I387_ROUNDEVEN.
13724 (ix86_mode_needed): Likewise.
13725 (ix86_mode_after): Likewise.
13726 (ix86_mode_entry): Likewise.
13727 (ix86_mode_exit): Likewise.
13728 (ix86_emit_mode_set): Likewise.
13729 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
13730 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
13731 (ix86_entity): Add I387_ROUNDEVEN.
13732 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
13733 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
13734 (define_int_iterator): Likewise.
13735 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
13736 (define_constant): Define ROUND_ROUNDEVEN mode.
13737 (define_attr): Add roundeven mode for i387_cw.
13738 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
13739 * internal-fn.def (ROUNDEVEN): New builtin function.
13740 * optabs.def (roundeven_optab): New optab.
13741
13742 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
13743
13744 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
13745 for ROUNDEVEN.
13746 * builtins.def: Added function definitions for roundeven function
13747 variants.
13748 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
13749 function call. Adjust condition for floor, ceil, trunc and round.
13750 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
13751 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
13752 (integer_valued_real_call_p): Added case for roundeven function.
13753 * real.c (is_even): New function. Returns true if real number is even,
13754 otherwise returns false.
13755 (is_halfway_below): New function. Returns true if real number is
13756 halfway between two integers, else return false.
13757 (real_roundeven): New function. Round real number to nearest integer,
13758 rounding halfway cases towards even.
13759 * real.h (real_value): Added descriptive comments. Added function
13760 declaration for roundeven function.
13761 * doc/extend.texi (Other Builtins): List roundeven variants among
13762 functions which can be handled as builtins.
13763
13764 2019-08-26 Richard Biener <rguenther@suse.de>
13765
13766 PR target/91522
13767 PR target/91527
13768 * config/i386/i386-features.h (general_scalar_chain::defs_map):
13769 New member.
13770 (general_scalar_chain::replace_with_subreg): Remove.
13771 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
13772 (general_scalar_chain::convert_reg): Adjust signature.
13773 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
13774 iterate over all defs of a reg.
13775 (general_scalar_chain::replace_with_subreg): Remove.
13776 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
13777 (general_scalar_chain::make_vector_copies): Populate defs_map,
13778 place copy only after defs that are used as vectors in the chain.
13779 (general_scalar_chain::convert_reg): Emit a copy for a specific
13780 def in a specific instruction.
13781 (general_scalar_chain::convert_op): All reg uses are converted here.
13782 (general_scalar_chain::convert_insn): Emit copies for scalar
13783 uses of defs here. Replace uses with the copies we created.
13784 Replace and convert the def. Adjust REG_DEAD notes, remove
13785 REG_EQUIV/EQUAL notes.
13786 (general_scalar_chain::convert_registers): Only handle copies
13787 into the chain here.
13788
13789 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
13790
13791 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
13792
13793 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
13794
13795 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
13796 Add nop_convert case.
13797 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
13798 Fold all statements if requested.
13799 * tree-ssa-propagate.h (class substitute_and_fold_engine):
13800 Allow to fold all statements.
13801 * tree-vrp.c (class vrp_folder):
13802 Let substitute_and_fold_engine fold all statements.
13803
13804 2019-08-26 Richard Biener <rguenther@suse.de>
13805
13806 PR tree-optimization/91526
13807 * passes.def: Note that after late FRE we do TODO_update_address_taken.
13808 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
13809 TODO_update_address_taken.
13810
13811 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
13812
13813 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
13814 __STDC_HOSTED__.
13815
13816 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
13817
13818 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
13819 machine mode for unspec_volatile operand.
13820
13821 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13822
13823 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
13824 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
13825 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
13826 (prefer_neon_for_64bits): Remove.
13827 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
13828 (tune_params): Remove PREF_NEON_64_FALSE uses.
13829 (arm_option_override): Remove prefer_neon selection code.
13830 (arm_print_tune_info): Remove prefer_neon_for_64bits.
13831 * config/arm/arm-protos.h (tune_params): Remove
13832 prefer_neon_for_64bits.
13833 (prefer_neon_for_64bits): Remove.
13834
13835 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
13836
13837 PR pch/61250
13838 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
13839 and issue any diagnostics needed before collecting the pre-PCH
13840 state.
13841
13842 2019-08-23 Jakub Jelinek <jakub@redhat.com>
13843
13844 PR middle-end/91283
13845 * common.opt (fexcess-precision=): Add Optimization flag. Use
13846 flag_excess_precision variable instead of
13847 flag_excess_precision_cmdline.
13848 * flags.h (class target_flag_state): Remove x_flag_excess_precision
13849 member.
13850 (flag_excess_precision): Don't define.
13851 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
13852 flag_excess_precision_cmdline. Remove comment.
13853 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
13854 and x_flag_excess_precision instead of
13855 frontend_set_flag_excess_precision_cmdline and
13856 x_flag_excess_precision_cmdline.
13857 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
13858 x_flag_excess_precision_cmdline.
13859 * toplev.c (init_excess_precision): Remove.
13860 (lang_dependent_init_target): Don't call it.
13861
13862 2019-08-23 Martin Liska <mliska@suse.cz>
13863
13864 * lto-wrapper.c (run_gcc): When setting jobserver
13865 set also parallel to 1. This was done so before r273908.
13866
13867 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
13868
13869 * config/arm/arm-cpus.in (cortex-m35p): New entry.
13870 (cortex-a76ae): Likewise.
13871 (cortex-a77): Likewise
13872 * config/arm/arm-tables.opt: Regenerate.
13873 * config/arm/arm-tune.md: Likewise.
13874 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
13875 cortex-a77 CPU options.
13876
13877 2019-08-23 Martin Liska <mliska@suse.cz>
13878
13879 * profile.c (instrument_values): Do not set
13880 0 as last argument.
13881 * tree-profile.c (gimple_gen_interval_profiler): Remove
13882 last argument.
13883 (gimple_gen_pow2_profiler): Likewise.
13884 (gimple_gen_topn_values_profiler): Likewise.
13885 (gimple_gen_ic_profiler): Likewise.
13886 (gimple_gen_time_profiler): Likewise.
13887 (gimple_gen_average_profiler): Likewise.
13888 (gimple_gen_ior_profiler): Likewise.
13889 * value-prof.c (dump_histogram_value): Use default
13890 in switch statement instead of HIST_TYPE_MAX.
13891 (stream_in_histogram_value): Likewise.
13892 (gimple_duplicate_stmt_histograms): Do not
13893 use NULL for implicitly set arguments.
13894 (gimple_divmod_values_to_profile): Do not use
13895 reserve+quick_push.
13896 (gimple_indirect_call_to_profile): Likewise.
13897 (gimple_find_values_to_profile): Use implicit
13898 function call arguments.
13899 * value-prof.h (gimple_alloc_histogram_value):
13900 Set default values.
13901 (gimple_gen_interval_profiler): Remove last argument.
13902 (gimple_gen_pow2_profiler): Likewise.
13903 (gimple_gen_topn_values_profiler): Likewise.
13904 (gimple_gen_ic_profiler): Likewise.
13905 (gimple_gen_time_profiler): Likewise.
13906 (gimple_gen_average_profiler): Likewise.
13907 (gimple_gen_ior_profiler): Likewise.
13908
13909 2019-08-22 Martin Sebor <msebor@redhat.com>
13910
13911 PR middle-end/91490
13912 * builtins.c (c_strlen): Rename argument and introduce new local.
13913 Set no-warning bit on original argument.
13914 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
13915 Fold empty and zero constructors into empty strings.
13916 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
13917 for missing initializers.
13918 * tree.c (build_string_literal): Handle optional argument.
13919 * tree.h (build_string_literal): Add defaulted argument.
13920 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
13921 no-warning bit on original expression.
13922
13923 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13924
13925 PR target/91481
13926 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13927 and UNSPEC_DARN_RAW.
13928 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
13929 UNSPECV_DARN_RAW.
13930 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
13931 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
13932 (darn): Use an unspec_volatile, and UNSPECV_DARN.
13933
13934 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13935
13936 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13937 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
13938 * config/rs6000/rs6000.md (unspec): ... here.
13939 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
13940 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13941 cmpeqb, *cmpeqb_internal): Delete, move to...
13942 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
13943 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13944 cmpeqb, *cmpeqb_internal): ... here.
13945
13946 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13947
13948 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
13949 intrinsics if __ARM_FP.
13950 Use __ARM_FEATURE_CRC32 ifdef guard.
13951
13952 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13953
13954 * config/arm/arm.md (neon_for_64bits): Remove.
13955 (avoid_neon_for_64bits): Remove.
13956 (arm_adddi3): Always split early.
13957 (arm_subdi3): Always split early.
13958 (negdi2): Remove Neon expansion.
13959 (split zero_extend): Split before reload.
13960 (split sign_extend): Split before reload.
13961
13962 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13963
13964 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
13965 (qhs_extenddi_cstr): Likewise.
13966 * config/arm/arm.md (ashldi3): Always expand early.
13967 (ashlsi3): Likewise.
13968 (ashrsi3): Likewise.
13969 (zero_extend<mode>di2): Remove Neon variants.
13970 (extend<mode>di2): Likewise.
13971 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
13972 (signed_shift_di3_neon): Likewise.
13973 (unsigned_shift_di3_neon): Likewise.
13974 (ashrdi3_neon_imm_noclobber): Likewise.
13975 (lshrdi3_neon_imm_noclobber): Likewise.
13976 (<shift>di3_neon): Likewise.
13977 (split extend): Remove DI extend split patterns.
13978
13979 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13980
13981 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
13982 (split not): Add DImode not splitter.
13983 (anddi3): Remove pattern.
13984 (anddi3_insn): Likewise.
13985 (anddi_zesidi_di): Likewise.
13986 (anddi_sesdi_di): Likewise.
13987 (anddi_notdi_di): Likewise.
13988 (anddi_notzesidi_di): Likewise.
13989 (anddi_notsesidi_di): Likewise.
13990 (iordi3): Likewise.
13991 (iordi3_insn): Likewise.
13992 (iordi_zesidi_di): Likewise.
13993 (iordi_sesidi_di): Likewise.
13994 (xordi3): Likewise.
13995 (xordi3_insn): Likewise.
13996 (xordi_sesidi_di): Likewise.
13997 (xordi_zesidi_di): Likewise.
13998 (one_cmpldi2): Likewise.
13999 (one_cmpldi2_insn): Likewise.
14000 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14001 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14002 alternative.
14003 (iwmmxt_xordi3): Likewise.
14004 (iwmmxt_anddi3): Likewise.
14005 * config/arm/neon.md (orndi3_neon): Remove pattern.
14006 (anddi_notdi_di): Likewise.
14007 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14008 (arm_iordi_operand_neon): Likewise.
14009 (arm_xordi_operand_neon): Likewise.
14010 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14011 (iordi_notzesidi_di): Likewise.
14012 (iordi_notdi_zesidi): Likewise.
14013 (iordi_notsesidi_di): Likewise.
14014
14015 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14016
14017 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14018 insn.
14019 (iorsi3_compare0_scratch): Likewise.
14020
14021 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14022
14023 * config/aarch64/aarch64-simd-builtins.def:
14024 (ld1x4): New.
14025 (st1x4): Likewise.
14026 * config/aarch64/aarch64-simd.md:
14027 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14028 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14029 (aarch64_ld1_x4_<mode>): Likewise.
14030 (aarch64_st1_x4_<mode>): Likewise.
14031 * config/aarch64/arm_neon.h:
14032 (vld1_s8_x4): New function.
14033 (vld1q_s8_x4): Likewise.
14034 (vld1_s16_x4): Likewise.
14035 (vld1q_s16_x4): Likewise.
14036 (vld1_s32_x4): Likewise.
14037 (vld1q_s32_x4): Likewise.
14038 (vld1_u8_x4): Likewise.
14039 (vld1q_u8_x4): Likewise.
14040 (vld1_u16_x4): Likewise.
14041 (vld1q_u16_x4): Likewise.
14042 (vld1_u32_x4): Likewise.
14043 (vld1q_u32_x4): Likewise.
14044 (vld1_f16_x4): Likewise.
14045 (vld1q_f16_x4): Likewise.
14046 (vld1_f32_x4): Likewise.
14047 (vld1q_f32_x4): Likewise.
14048 (vld1_p8_x4): Likewise.
14049 (vld1q_p8_x4): Likewise.
14050 (vld1_p16_x4): Likewise.
14051 (vld1q_p16_x4): Likewise.
14052 (vld1_s64_x4): Likewise.
14053 (vld1_u64_x4): Likewise.
14054 (vld1_p64_x4): Likewise.
14055 (vld1q_s64_x4): Likewise.
14056 (vld1q_u64_x4): Likewise.
14057 (vld1q_p64_x4): Likewise.
14058 (vld1_f64_x4): Likewise.
14059 (vld1q_f64_x4): Likewise.
14060 (vst1_s8_x4): Likewise.
14061 (vst1q_s8_x4): Likewise.
14062 (vst1_s16_x4): Likewise.
14063 (vst1q_s16_x4): Likewise.
14064 (vst1_s32_x4): Likewise.
14065 (vst1q_s32_x4): Likewise.
14066 (vst1_u8_x4): Likewise.
14067 (vst1q_u8_x4): Likewise.
14068 (vst1_u16_x4): Likewise.
14069 (vst1q_u16_x4): Likewise.
14070 (vst1_u32_x4): Likewise.
14071 (vst1q_u32_x4): Likewise.
14072 (vst1_f16_x4): Likewise.
14073 (vst1q_f16_x4): Likewise.
14074 (vst1_f32_x4): Likewise.
14075 (vst1q_f32_x4): Likewise.
14076 (vst1_p8_x4): Likewise.
14077 (vst1q_p8_x4): Likewise.
14078 (vst1_p16_x4): Likewise.
14079 (vst1q_p16_x4): Likewise.
14080 (vst1_s64_x4): Likewise.
14081 (vst1_u64_x4): Likewise.
14082 (vst1_p64_x4): Likewise.
14083 (vst1q_s64_x4): Likewise.
14084 (vst1q_u64_x4): Likewise.
14085 (vst1q_p64_x4): Likewise.
14086 (vst1_f64_x4): Likewise.
14087 (vst1q_f64_x4): Likewise.
14088
14089 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14090
14091 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14092
14093 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14094 Richard Sandiford <richard.sandiford@arm.com>
14095
14096 PR target/88839
14097 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14098 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14099
14100 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14101
14102 PR target/90724
14103 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14104 in reg if it fails aarch64_plus_operand predicate.
14105
14106 2019-08-21 Richard Biener <rguenther@suse.de>
14107
14108 PR tree-optimization/91482
14109 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14110 BUILT_IN_ASSUME_ALIGNED calls.
14111
14112 2019-08-21 Richard Biener <rguenther@suse.de>
14113
14114 PR target/91498
14115 PR target/91503
14116 * config/i386/i386-features.c
14117 (general_scalar_chain::make_vector_copies): Copy stack temporary
14118 rtx when using it multiple times.
14119 (general_scalar_chain::convert_reg): Likewise.
14120
14121 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14122
14123 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14124
14125 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14126
14127 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14128 catch more redundant zero initialization cases.
14129 (dse_dom_walker::dse_optimize_stmt): Likewise.
14130
14131 2019-08-20 Richard Biener <rguenther@suse.de>
14132
14133 PR lto/91307
14134 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14135 by collect2 when targetm.have_ctors_dtors which avoids dragging
14136 in temporary filenames from LTO input objects.
14137
14138 2019-08-20 Richard Biener <rguenther@suse.de>
14139
14140 PR tree-optimization/37242
14141 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14142 to (T)a + (T)b if we know that a + b does not overflow.
14143
14144 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14145
14146 PR rtl-optimization/91347
14147 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14148 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14149
14150 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14151
14152 * calls.h (function_arg_info): Add a pass_by_reference field,
14153 defaulting to false.
14154 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14155 when applying pass-by-reference semantics.
14156 (initialize_argument_information): Likewise.
14157 (emit_library_call_value_1): Likewise.
14158 * function.c (assign_parm_data_one): Remove passed_pointer field.
14159 (assign_parm_find_data_types): Don't set it.
14160 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14161 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14162 arg.pass_by_reference instead of passed_pointer.
14163
14164 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14165
14166 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14167 into a single function_arg_info, updating its fields when we
14168 apply pass-by-reference and promotion semantics. Use the
14169 function_arg_info to track the mode rather than keeping it in
14170 a separate local variable.
14171 (initialize_argument_information): Likewise. Base the final
14172 arg_to_skip on this new function_arg_info rather than creating
14173 a new one from scratch.
14174
14175 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14176
14177 * function.c (assign_parm_data_one): Replace passed_type,
14178 promoted_mode and named_arg with a function_arg_info field.
14179 (assign_parm_find_data_types): Remove local variables and
14180 assign directly to "data". Make data->passed_mode shadow
14181 data->arg.mode until promotion, then assign the promoted
14182 mode to data->arg.mode.
14183 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14184 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14185 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14186 (assign_parm_setup_block, assign_parm_setup_reg)
14187 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14188 arg.mode instead of promoted_mode, arg.type instead of passed_type
14189 and arg.named instead of named_arg. Use data->arg for
14190 function_arg_info structures that had the field values passed_type,
14191 promoted_mode and named_arg. Base other function_arg_infos on
14192 data->arg, changing the necessary properties.
14193
14194 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14195
14196 * calls.h (apply_pass_by_reference_rules): Declare.
14197 * calls.c (apply_pass_by_reference_rules): New function.
14198 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14199 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14200 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14201 * function.c (assign_parm_find_data_types): Likewise.
14202 * var-tracking.c (prepare_call_arguments): Likewise.
14203
14204 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14205
14206 * target.def (must_pass_in_stack): Take a function_arg_info instead
14207 of a mode and a type.
14208 * doc/tm.texi: Regenerate.
14209 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14210 instead of a mode and a type.
14211 (must_pass_in_stack_var_size_or_pad): Likewise.
14212 * calls.c (must_pass_in_stack_var_size): Likewise.
14213 (must_pass_in_stack_var_size_or_pad): Likewise.
14214 (initialize_argument_information): Update call to
14215 targetm.calls.must_pass_in_stack.
14216 (must_pass_va_arg_on_stack): Likewise.
14217 * function.c (assign_parm_find_entry_rtl): Likewise.
14218 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14219 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14220 (alpha_function_arg_advance): Likewise.
14221 * config/cr16/cr16.c (cr16_function_arg): Likewise.
14222 (cr16_function_arg_advance): Likewise.
14223 * config/cris/cris.c (cris_pass_by_reference): Likewise.
14224 (cris_arg_partial_bytes): Likewise.
14225 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14226 * config/lm32/lm32.c (lm32_function_arg): Likewise.
14227 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14228 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14229 * config/mips/mips.c (mips_pass_by_reference): Likewise.
14230 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14231 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14232 * config/sh/sh.c (sh_pass_by_reference): Likewise.
14233 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14234 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14235 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14236 instead of a mode and a type.
14237 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14238 (fr30_num_arg_regs): Likewise.
14239 (fr30_setup_incoming_varargs): Update calls accordingly.
14240 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14241 (fr30_function_arg_advance): Likewise.
14242 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14243 instead of a mode and a type.
14244 * config/gcn/gcn.c (num_arg_regs): Likewise.
14245 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14246 num_arg_regs and targetm.calls.must_pass_in_stack.
14247 (gcn_arg_partial_bytes): Likewise.
14248 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14249 function_arg_info instead of a mode and a type.
14250 (classify_argument): Update call accordingly.
14251 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14252 function_arg_info instead of a mode and a type.
14253 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14254 Likewise.
14255 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14256 (rs6000_parm_needs_stack): Update call accordingly.
14257 (setup_incoming_varargs): Likewise.
14258
14259 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14260
14261 * target.def (callee_copies): Take a function_arg_info instead
14262 of a mode, type and named flag.
14263 * doc/tm.texi: Regenerate.
14264 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14265 instead of a mode, type and named flag.
14266 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14267 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14268 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14269 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14270 instead of a mode, type and named flag.
14271 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14272 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14273 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14274 * calls.h (reference_callee_copied): Take a function_arg_info
14275 instead of a mode, type and named flag.
14276 * calls.c (reference_callee_copied): Likewise.
14277 (initialize_argument_information): Update call accordingly.
14278 (emit_library_call_value_1): Likewise.
14279 * function.c (gimplify_parameters): Likewise.
14280 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
14281 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
14282 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
14283 * config/c6x/c6x.c (c6x_callee_copies): Delete.
14284 (TARGET_CALLEE_COPIES): Define to
14285 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14286 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
14287 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14288 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14289 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
14290 instead of a mode, type and named flag.
14291 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
14292 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14293 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14294 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
14295 * config/msp430/msp430.c (msp430_callee_copies): Delete.
14296 (TARGET_CALLEE_COPIES): Define to
14297 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
14298 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
14299 instead of a mode, type and named flag.
14300 * config/sh/sh.c (sh_callee_copies): Likewise.
14301 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
14302 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
14303 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
14304
14305 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14306
14307 * target.def (function_arg_advance): Take a function_arg_info instead
14308 of a mode, type and named flag.
14309 * doc/tm.texi: Regenerate.
14310 * targhooks.h (default_function_arg_advance): Take a function_arg_info
14311 instead of a mode, type and named flag.
14312 * targhooks.c (default_function_arg_advance): Likewise.
14313 * calls.c (initialize_argument_information): Update call to
14314 targetm.calls.function_arg_advance.
14315 (emit_library_call_value_1): Likewise.
14316 * dse.c (get_call_args): Likewise.
14317 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14318 * function.c (assign_parms, gimplify_parameters): Likewise.
14319 * var-tracking.c (prepare_call_arguments): Likewise.
14320 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
14321 function_arg_info instead of a mode, type and named flag.
14322 (aarch64_setup_incoming_varargs): Update call accordingly.
14323 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
14324 function_arg_info instead of a mode, type and named flag.
14325 (alpha_setup_incoming_varargs): Update call accordingly.
14326 * config/arc/arc.c (arc_function_arg_advance): Take a
14327 function_arg_info instead of a mode, type and named flag.
14328 (arc_setup_incoming_varargs): Update call accordingly.
14329 * config/arm/arm.c (arm_function_arg_advance): Take a
14330 function_arg_info instead of a mode, type and named flag.
14331 (cmse_func_args_or_return_in_stack): Update call accordingly.
14332 (arm_function_ok_for_sibcall): Likewise.
14333 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14334 * config/avr/avr.c (avr_function_arg_advance): Take a
14335 function_arg_info instead of a mode, type and named flag.
14336 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
14337 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
14338 (c6x_call_saved_register_used): Update call accordingly.
14339 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
14340 function_arg_info instead of a mode, type and named flag.
14341 * config/cris/cris.c (cris_function_arg_advance): Likewise.
14342 * config/csky/csky.c (csky_function_arg_advance): Likewise.
14343 (csky_setup_incoming_varargs): Update call accordingly.
14344 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
14345 function_arg_info instead of a mode, type and named flag.
14346 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
14347 * config/frv/frv.c (frv_function_arg_advance): Likewise.
14348 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
14349 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
14350 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
14351 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
14352 (ix86_setup_incoming_varargs): Update call accordingly.
14353 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
14354 function_arg_info instead of a mode, type and named flag.
14355 (ia64_setup_incoming_varargs): Update call accordingly.
14356 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
14357 function_arg_info instead of a mode, type and named flag.
14358 (iq2000_expand_prologue): Update call accordingly.
14359 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
14360 function_arg_info instead of a mode, type and named flag.
14361 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
14362 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
14363 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
14364 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
14365 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
14366 Likewise.
14367 (microblaze_expand_prologue): Update call accordingly.
14368 * config/mips/mips.c (mips_function_arg_advance): Take a
14369 function_arg_info instead of a mode, type and named flag.
14370 (mips_setup_incoming_varargs): Update call accordingly.
14371 (mips_output_args_xfer): Likewise.
14372 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
14373 function_arg_info instead of a mode, type and named flag.
14374 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
14375 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
14376 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
14377 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
14378 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
14379 (nios2_setup_incoming_varargs): Update call accordingly.
14380 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
14381 function_arg_info instead of a mode, type and named flag.
14382 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
14383 * config/pa/pa.c (pa_function_arg_advance): Likewise.
14384 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
14385 * config/pru/pru.c (pru_function_arg_advance): Likewise.
14386 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
14387 (riscv_setup_incoming_varargs): Update call accordingly.
14388 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
14389 function_arg_info instead of a mode, type and named flag.
14390 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
14391 Likewise.
14392 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
14393 (rs6000_parm_needs_stack): Update call accordingly.
14394 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
14395 instead of a mode, type and named flag.
14396 * config/s390/s390.c (s390_function_arg_advance): Likewise.
14397 (s390_call_saved_register_used): Update call accordingly.
14398 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
14399 instead of a mode, type and named flag.
14400 (sh_output_mi_thunk): Update call accordingly.
14401 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
14402 function_arg_info instead of a mode, type and named flag.
14403 * config/spu/spu.c (spu_function_arg_advance): Likewise.
14404 (spu_setup_incoming_varargs): Update call accordingly.
14405 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
14406 function_arg_info instead of a mode, type and named flag.
14407 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
14408 (tilegx_setup_incoming_varargs): Update call accordingly.
14409 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
14410 function_arg_info instead of a mode, type and named flag.
14411 (tilegx_setup_incoming_varargs): Update call accordingly.
14412 * config/v850/v850.c (v850_function_arg_advance): Take a
14413 function_arg_info instead of a mode, type and named flag.
14414 * config/vax/vax.c (vax_function_arg_advance): Likewise.
14415 * config/visium/visium.c (visium_function_arg_advance): Likewise.
14416 (visium_setup_incoming_varargs): Update call accordingly.
14417 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
14418 function_arg_info instead of a mode, type and named flag.
14419
14420 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14421
14422 * target.def (function_arg, function_incoming_arg): Take a
14423 function_arg_info instead of a mode, tree and named flag.
14424 * doc/tm.texi: Regenerate.
14425 * targhooks.h (default_function_arg): Take a function_arg_info
14426 instead of a mode, tree and named flag.
14427 (default_function_incoming_arg): Likewise.
14428 * targhooks.c (default_function_arg): Likewise.
14429 (default_function_incoming_arg): Likewise.
14430 * calls.h (function_arg_info::end_marker_p): New function.
14431 (function_arg_info::end_marker): Likewise.
14432 * calls.c (prepare_call_address, initialize_argument_information)
14433 (expand_call, emit_library_call_value_1): Update calls to
14434 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
14435 * dse.c: Include calls.h.
14436 (get_call_args): Update call to targetm.calls.function_arg.
14437 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14438 * var-tracking.c (prepare_call_arguments): Likewise.
14439 * function.c (assign_parm_find_entry_rtl): Update call to
14440 targetm.calls.function_incoming_arg.
14441 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
14442 function_arg_info instead of a mode, tree and named flag.
14443 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14444 * config/arc/arc.c (arc_function_arg): Likewise.
14445 * config/arm/arm.c (arm_function_arg): Likewise.
14446 (cmse_func_args_or_return_in_stack): Update call accordingly.
14447 (arm_function_ok_for_sibcall): Likewise.
14448 (cmse_nonsecure_call_clear_caller_saved): Likewise.
14449 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
14450 instead of a mode, tree and named flag.
14451 * config/bfin/bfin.c (bfin_function_arg): Likewise.
14452 * config/c6x/c6x.c (c6x_function_arg): Likewise.
14453 (c6x_call_saved_register_used): Update call accordingly.
14454 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
14455 instead of a mode, tree and named flag.
14456 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
14457 (cris_function_arg_1): Likewise.
14458 * config/csky/csky.c (csky_function_arg): Likewise.
14459 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
14460 * config/fr30/fr30.c (fr30_function_arg): Likewise.
14461 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
14462 (frv_function_arg_1): Likewise.
14463 * config/ft32/ft32.c (ft32_function_arg): Likewise.
14464 * config/gcn/gcn.c (gcn_function_arg): Likewise.
14465 * config/h8300/h8300.c (h8300_function_arg): Likewise.
14466 * config/i386/i386.c (ix86_function_arg): Likewise.
14467 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
14468 (ia64_function_arg_1): Likewise.
14469 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
14470 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
14471 accordingly.
14472 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
14473 instead of a mode, tree and named flag.
14474 * config/m32c/m32c.c (m32c_function_arg): Likewise.
14475 * config/m32r/m32r.c (m32r_function_arg): Likewise.
14476 * config/m68k/m68k.c (m68k_function_arg): Likewise.
14477 * config/mcore/mcore.c (mcore_function_arg): Likewise.
14478 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
14479 (microblaze_expand_prologue): Update call accordingly.
14480 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
14481 instead of a mode, tree and named flag.
14482 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
14483 (mmix_function_arg_1): Likewise.
14484 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
14485 * config/moxie/moxie.c (moxie_function_arg): Likewise.
14486 * config/msp430/msp430.c (msp430_function_arg): Likewise.
14487 * config/nds32/nds32.c (nds32_function_arg): Likewise.
14488 * config/nios2/nios2.c (nios2_function_arg): Likewise.
14489 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
14490 (nvptx_function_incoming_arg): Likewise.
14491 * config/or1k/or1k.c (or1k_function_arg): Likewise.
14492 * config/pa/pa.c (pa_function_arg): Likewise.
14493 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
14494 * config/pru/pru.c (pru_function_arg): Likewise.
14495 * config/riscv/riscv.c (riscv_function_arg): Likewise.
14496 * config/rl78/rl78.c (rl78_function_arg): Likewise.
14497 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
14498 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
14499 (rs6000_parm_needs_stack): Update call accordingly.
14500 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
14501 instead of a mode, tree and named flag.
14502 * config/s390/s390.c (s390_function_arg): Likewise.
14503 (s390_call_saved_register_used): Update call accordingly.
14504 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
14505 instead of a mode, tree and named flag.
14506 (sh_output_mi_thunk): Update call accordingly.
14507 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
14508 (sparc_function_incoming_arg): Take a function_arg_info instead of
14509 a mode, tree and named flag.
14510 * config/spu/spu.c (spu_function_arg): Likewise.
14511 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14512 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
14513 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
14514 * config/v850/v850.c (v850_function_arg): Likewise.
14515 * config/vax/vax.c (vax_function_arg): Likewise.
14516 * config/visium/visium.c (visium_function_arg): Likewise.
14517 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
14518 (xtensa_function_incoming_arg): Likewise.
14519
14520 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14521
14522 * target.def (setup_incoming_varargs): Take a function_arg_info
14523 instead of a mode and tree.
14524 * doc/tm.texi: Regenerate.
14525 * targhooks.h (default_setup_incoming_varargs): Take a
14526 function_arg_info instead of a mode and tree.
14527 * targhooks.c (default_setup_incoming_varargs): Likewise.
14528 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
14529 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
14530 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14531 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
14532 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
14533 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
14534 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
14535 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
14536 Likewise.
14537 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
14538 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
14539 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
14540 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
14541 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
14542 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
14543 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14544 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14545 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
14546 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
14547 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
14548 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
14549 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
14550 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
14551 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
14552 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
14553 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
14554 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
14555 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
14556 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
14557 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
14558 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
14559 * function.c (assign_parms_setup_varargs): Update call to
14560 targetm.calls.setup_incoming_varargs.
14561
14562 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14563
14564 * target.def (pass_by_reference): Take a function_arg_info instead
14565 of a mode, type and named flag.
14566 * doc/tm.texi: Regenerate.
14567 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
14568 accordingly.
14569 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
14570 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
14571 function_arg_info instead of a mode, type and named flag.
14572 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
14573 * calls.h (pass_by_reference): Take a function_arg_info instead of a
14574 mode, type and named flag.
14575 * calls.c (pass_by_reference): Likewise.
14576 (pass_va_arg_by_reference): Update call accordingly.
14577 (initialize_argument_information): Likewise.
14578 (emit_library_call_value_1): Likewise.
14579 * function.c (assign_parm_find_data_types): Likewise.
14580 * var-tracking.c (prepare_call_arguments): Likewise.
14581 * stor-layout.c: Include calls.h.
14582 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
14583 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
14584 function_arg_info instead of a mode, type and named flag.
14585 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
14586 * config/arc/arc.c (arc_pass_by_reference): Likewise.
14587 * config/arm/arm.c (arm_pass_by_reference): Likewise.
14588 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
14589 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
14590 (c6x_call_saved_register_used): Update call to pass_by_reference.
14591 * config/cris/cris.c (cris_pass_by_reference): Take a
14592 function_arg_info instead of a mode, type and named flag.
14593 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
14594 function_arg_info instead of a mode, type and named flag.
14595 (epiphany_arg_partial_bytes): Update call accordingly.
14596 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
14597 function_arg_info instead of a mode, type and named flag.
14598 (ft32_arg_partial_bytes): Update call accordingly.
14599 * config/i386/i386.c (ix86_pass_by_reference): Take a
14600 function_arg_info instead of a mode, type and named flag.
14601 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14602 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
14603 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
14604 (m32r_return_in_memory): Update call accordingly.
14605 * config/mips/mips.c (mips_pass_by_reference): Take a
14606 function_arg_info instead of a mode, type and named flag.
14607 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
14608 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
14609 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
14610 (moxie_arg_partial_bytes): Update call accordingly.
14611 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
14612 function_arg_info instead of a mode, type and named flag.
14613 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
14614 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
14615 * config/pa/pa.c (pa_pass_by_reference): Likewise.
14616 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
14617 (riscv_return_in_memory): Update call accordingly.
14618 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
14619 function_arg_info instead of a mode, type and named flag.
14620 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
14621 (rs6000_parm_needs_stack): Update call to pass_by_reference.
14622 * config/s390/s390.c (s390_pass_by_reference): Take a
14623 function_arg_info instead of a mode, type and named flag.
14624 (s390_call_saved_register_used): Update call accordingly.
14625 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
14626 instead of a mode, type and named flag.
14627 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
14628 * config/spu/spu.c (spu_pass_by_reference): Likewise.
14629 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
14630 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
14631 * config/v850/v850.c (v850_pass_by_reference): Likewise.
14632 * config/visium/visium.c (visium_pass_by_reference): Likewise.
14633
14634 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14635
14636 * target.def (arg_partial_bytes): Take a function_arg_info instead
14637 of a mode, type and named flag.
14638 * doc/tm.texi: Regenerate.
14639 * target.h (function_arg_info): Declare.
14640 * calls.h (function_arg_info): New class.
14641 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
14642 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
14643 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
14644 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
14645 * calls.c (initialize_argument_information): Update call to
14646 targetm.calls.partial_bytes.
14647 (emit_library_call_value_1): Likewise.
14648 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14649 * function.c (assign_parm_find_entry_rtl): Likewise.
14650 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
14651 function_arg_info instead of a mode, type and named flag.
14652 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
14653 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
14654 (cmse_func_args_or_return_in_stack): Update accordingly.
14655 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
14656 function_arg_info instead of a mode, type and named flag.
14657 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
14658 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
14659 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
14660 * config/fr30/fr30.c: Include calls.h.
14661 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
14662 type and named flag.
14663 * config/frv/frv.c: Include calls.h.
14664 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
14665 type and named flag.
14666 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
14667 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
14668 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
14669 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
14670 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
14671 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
14672 * config/microblaze/microblaze.c (function_arg_partial_bytes):
14673 Likewise.
14674 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
14675 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
14676 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
14677 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
14678 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
14679 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
14680 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
14681 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
14682 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
14683 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
14684 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
14685 (rs6000_parm_needs_stack): Update call accordingly.
14686 * config/sh/sh.c (sh_arg_partial_bytes): Take a
14687 function_arg_info instead of a mode, type and named flag.
14688 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
14689 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
14690
14691 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14692
14693 * calls.h (must_pass_va_arg_in_stack): Declare.
14694 * calls.c (must_pass_va_arg_in_stack): New function.
14695 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
14696 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
14697 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
14698 Likewise.
14699 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14700
14701 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14702
14703 * calls.h (pass_va_arg_by_reference): Declare.
14704 * calls.c (pass_va_arg_by_reference): New function.
14705 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
14706 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
14707 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
14708 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
14709 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14710 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
14711 (mips_gimplify_va_arg_expr): Likewise.
14712 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
14713 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14714 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
14715 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
14716 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
14717 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
14718 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
14719 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
14720 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
14721 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14722 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
14723
14724 2019-08-20 Richard Biener <rguenther@suse.de>
14725
14726 PR target/91498
14727 * config/i386/i386-features.c (general_scalar_chain::convert_op):
14728 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
14729 (convert_scalars_to_vector): Add timode_p parameter and use it
14730 to guard TImode-only operation.
14731 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
14732 (pass_stv::execute): Pass down timode_p.
14733
14734 2019-08-20 Lili Cui <lili.cui@intel.com>
14735
14736 * common/config/i386/i386-common.c
14737 (processor_names): Add tigerlake and cooperlake.
14738 (processor_alias_table): Add tigerlake and cooperlake.
14739 * config.gcc: Add -march=tigerlake and cooperlake.
14740 * config/i386/driver-i386.c
14741 (host_detect_local_cpu): Detect tigerlake and cooperlake.
14742 Add "has_avx" to classify processor.
14743 * config/i386/i386-builtins.c (processor_model) :
14744 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
14745 (arch_names_table): Add tigerlake and cooperlake.
14746 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
14747 and PROCESSOR_COOPERLAKE.
14748 * config/i386/i386-c.c
14749 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
14750 * config/i386/i386-options.c
14751 (m_TIGERLAKE): Define.
14752 (m_COOPERLAKE): Ditto.
14753 (m_CORE_AVX512): Ditto.
14754 (processor_cost_table): Add cascadelake.
14755 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
14756 * config/i386/i386.h
14757 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
14758 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
14759 (PTA_MOVDIRI): Ditto.
14760 (PTA_MOVDIR64B): Ditto.
14761 (PTA_COOPERLAKE): Ditto.
14762 (PTA_TIGERLAKE): Ditto.
14763 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
14764 * doc/extend.texi: Add tigerlake and cooperlake.
14765 * doc/invoke.texi: Add tigerlake and cooperlake.
14766
14767 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
14768
14769 * doc/install.texi (Specific, alpha): Remove note to use
14770 binutils 2.11.2 or later.
14771
14772 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14773
14774 PR middle-end/89544
14775 * function.c (assign_parm_find_stack_rtl): Use larger alignment
14776 when possible.
14777
14778 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
14779
14780 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
14781 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
14782 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
14783 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
14784 * config/aarch64/constraints.md (Dt): New constraint
14785 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
14786
14787 2019-08-19 Richard Biener <rguenther@suse.de>
14788
14789 PR tree-optimization/91403
14790 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
14791 cases we can handle with tail-recursion...
14792 (follow_ssa_edge_expr): ... here. Do so.
14793
14794 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
14795
14796 PR target/91441
14797 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
14798 implemented for -fsanitize=kernel-address, and merge check logic
14799 with -fsanitize=address.
14800
14801 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
14802
14803 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
14804 for cpu and machine. Factor 64/32b builtins.
14805
14806 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
14807
14808 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
14809 gone, point to sourceforge.net.
14810
14811 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
14812
14813 * doc/ux.texi (User Experience Guidelines): Update reference.
14814
14815 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
14816
14817 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
14818 not LGPL".
14819
14820 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
14821
14822 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
14823 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
14824
14825 2019-08-16 Martin Sebor <msebor@redhat.com>
14826
14827 * tree.def (TYPE_SIZE): Clarify.
14828 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
14829
14830 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
14831
14832 PR tree-optimization/91109
14833 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
14834 * lra.c (lra): Use lra_need_for_scratch_reg_p.
14835 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
14836
14837 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
14838
14839 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
14840 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
14841 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
14842 (uavg<mode>3_ceil): New expander.
14843 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
14844 mode iterator when creating CONST1_RTX.
14845 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
14846 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
14847 mode iterator for const1_operand predicate.
14848
14849 2019-08-16 Richard Biener <rguenther@suse.de>
14850
14851 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
14852 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
14853 follow_ssa_edge.
14854 (follow_ssa_edge_in_condition_phi_branch): Likewise.
14855 (analyze_evolution_in_loop): Likewise.
14856 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
14857 (follow_ssa_edge_expr): ... here. Refactor code.
14858
14859 2019-08-16 Richard Biener <rguenther@suse.de>
14860
14861 PR target/91469
14862 * config/i386/i386-features.c
14863 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
14864
14865 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14866
14867 PR other/91255
14868 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
14869 only if subst_name matches curr_attr string.
14870
14871 2019-08-16 Richard Biener <rguenther@suse.de>
14872
14873 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
14874 stmt at gsi_p, instead replace it with a NOP removed later.
14875 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
14876 that became dead because of that.
14877
14878 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
14879
14880 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
14881 for which we can't represent a range.
14882 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
14883 set_varying.
14884 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
14885 Set VR_UNDEFINED if type is not supported.
14886 * tree-ssanames.c (get_range_info): Pass type to set_varying.
14887 * tree-vrp.c (value_range_base::check): Assert that a varying has
14888 min/max set.
14889 (value_range_base::equal_p): Early bail for undefines.
14890 (value_range_base::set_varying): Accept a type.
14891 (value_range::set_varying): Same.
14892 (value_range_base::type): VARYING can have a type, while UNDEFINE
14893 is typeless.
14894 (value_range_base::dump): Print type for VARYING nodes.
14895 (value_range_base::set): Add type to VARYING.
14896 (extract_range_from_multiplicative_op): Pass type to set_varying.
14897 (extract_range_from_binary_expr): Same.
14898 (value_range_base::intersect_helper): Same.
14899 (value_range_base::union_helper): Same.
14900 (value_range_base::normalize_symbolics): Same.
14901 (determine_value_range_1): Same.
14902 * tree-vrp.h (class value_range_base): Add type to set_varying.
14903 Add prototype for dump(void).
14904 Add prototype for supports_type_p.
14905 (class value_range): Add type to set_varying.
14906 Add prototype for dump(void).
14907 * vr-values.c (set_value_range_to_truthvalue): Pass type to
14908 set_varying.
14909 (vr_values::get_lattice_entry): Set varying even if propagation
14910 finished.
14911 Pass type to set_varying.
14912 (vr_values::get_value_range): Remove vr_const_varying.
14913 Reallocate the lattice if needed.
14914 (vr_values::update_value_range): Pass type to set_varying.
14915 (vr_values::extract_range_for_var_from_comparison_expr): Same.
14916 (vr_values::extract_range_from_binary_expr): Same.
14917 (vr_values::extract_range_from_unary_expr): Same.
14918 (vr_values::extract_range_from_cond_expr): Same.
14919 (vr_values::check_for_binary_op_overflow): Same.
14920 (vr_values::extract_range_basic): Same.
14921 (vr_values::extract_range_from_assignment): Same.
14922 (vr_values::vr_values): Increase size of num_vr_values.
14923 (vr_values::extract_range_from_phi_node): Pass type to
14924 set_varying.
14925
14926 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
14927
14928 PR target/90878
14929 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
14930 for costs of hard register moves.
14931 (ix86_register_move_cost): Likewise.
14932 * config/i386/i386.h (processor_costs): Move costs of hard
14933 register moves to hard_register. Add int_load, int_store,
14934 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14935 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
14936 for costs of RTL expressions.
14937 * config/i386/x86-tune-costs.h: Move costs of hard register
14938 moves to hard_register. Duplicate int_load, int_store,
14939 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14940 sse_load, sse_store for costs of RTL expressions.
14941
14942 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14943
14944 * target.def (setup_incoming_vararg_bounds): Remove.
14945 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
14946 * doc/tm.texi: Regenerate.
14947 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
14948 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
14949 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14950 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
14951
14952 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14953
14954 MSP430: Fix lines over 80 characters long in
14955 config/msp430/*.{c,h} files
14956
14957 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
14958 specifier in string.
14959 (msp430_select_hwmult_lib): Split line more than 80 characters long.
14960 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
14961 redundant old comment.
14962 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
14963 Split line more than 80 characters long.
14964 * config/msp430/msp430.c (msp430_option_override): Likewise.
14965 (msp430_return_in_memory): Likewise.
14966 (msp430_gimplify_va_arg_expr): Likewise.
14967 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
14968 (msp430_legitimate_constant): Likewise.
14969 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
14970 (msp430_attr): Likewise.
14971 (msp430_data_attr): Likewise.
14972 (msp430_start_function): Likewise.
14973 (gen_prefix): Likewise.
14974 (msp430_init_sections): Likewise.
14975 (msp430_select_section): Likewise.
14976 (msp430_function_section): Likewise.
14977 (msp430_unique_section): Likewise.
14978 (msp430_output_aligned_decl_common): Likewise.
14979 (msp430_do_not_relax_short_jumps): Likewise.
14980 (msp430_init_builtins): Likewise.
14981 (msp430_expand_delay_cycles): Likewise.
14982 (msp430_expand_prologue): Likewise.
14983 (msp430_expand_epilogue): Likewise.
14984 (msp430_expand_helper): Likewise.
14985 (msp430_split_movsi): Likewise.
14986 (msp430_print_operand): Likewise.
14987 (msp430_return_addr_rtx): Likewise.
14988 (msp430x_extendhisi): Likewise.
14989 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
14990 (ASM_SPEC): Likewise.
14991 Remove very obvious comments.
14992 (LIB_SPEC): Split line more than 80 characters long.
14993 (EH_RETURN_HANDLER_RTX): Likewise.
14994 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
14995
14996 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14997
14998 MSP430: Fix whitespace errors and incorrect indentation in
14999 config/msp430/*.{c,h} files
15000
15001 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15002 (msp430_select_hwmult_lib): Likewise.
15003 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15004 (msp430_extract_mcu_data): Likewise.
15005 (struct t_msp430_mcu_data): Likewise.
15006 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15007 before left square bracket.
15008 (msp430_option_override): Fix indentation.
15009 (msp430_hard_regno_nregs_with_padding): Likewise.
15010 (msp430_initial_elimination_offset): Likewise.
15011 (msp430_special_register_convention_p): Remove whitespace before left
15012 square bracket and after exclamation mark.
15013 (msp430_evaluate_arg): Likewise.
15014 (msp430_callee_copies): Fix indentation.
15015 (msp430_gimplify_va_arg_expr): Likewise.
15016 (msp430_function_arg_advance): Remove whitespace before left square
15017 bracket.
15018 (reg_ok_for_addr): Likewise.
15019 (msp430_preserve_reg_p): Likewise.
15020 (msp430_compute_frame_info): Likewise.
15021 (msp430_asm_output_addr_const_extra): Add space between function name
15022 and open parenthesis.
15023 (has_section_name): Fix indentation.
15024 (msp430_attr): Remove trailing whitespace.
15025 (msp430_section_attr): Likewise.
15026 (msp430_data_attr): Likewise.
15027 (struct msp430_attribute_table): Fix comment and whitespace.
15028 (msp430_start_function): Remove whitespace before left square bracket.
15029 Add space between function name and open parenthesis.
15030 (msp430_select_section): Remove trailing whitespace.
15031 (msp430_section_type_flags): Remove trailing whitespace.
15032 (msp430_unique_section): Remove space before closing parenthesis.
15033 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15034 (msp430_builtins): Remove whitespace before left square bracket.
15035 (msp430_init_builtins): Fix indentation.
15036 (msp430_expand_prologue): Remove whitespace before left square bracket.
15037 Remove space before closing parenthesis.
15038 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15039 (msp430_split_movsi): Remove space before closing parenthesis.
15040 (helper_function_name_mappings): Fix indentation.
15041 (msp430_use_f5_series_hwmult): Fix whitespace.
15042 (use_32bit_hwmult): Likewise.
15043 (msp430_no_hwmult): Likewise.
15044 (msp430_output_labelref): Remove whitespace before left square bracket.
15045 (msp430_print_operand_raw): Likewise.
15046 (msp430_print_operand_addr): Likewise.
15047 (msp430_print_operand): Add two spaces after '.' in comment.
15048 Fix trailing whitespace.
15049 (msp430x_extendhisi): Fix indentation.
15050 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15051 tab.
15052 (PC_REGNUM): Likewise.
15053 (STACK_POINTER_REGNUM): Likewise.
15054 (CC_REGNUM): Likewise.
15055
15056 2019-08-15 Richard Biener <rguenther@suse.de>
15057
15058 PR target/91454
15059 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15060 helper.
15061 (general_scalar_chain::make_vector_copies): Use it.
15062
15063 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15064
15065 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15066
15067 2019-08-15 Martin Liska <mliska@suse.cz>
15068
15069 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15070 operators with no arguments.
15071 (eliminate_unnecessary_stmts): Likewise here.
15072
15073 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15074
15075 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15076 <case COMPARE>: Revert 2019-08-14 change.
15077 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15078 for (TARGET_64BIT || mode != DImode).
15079
15080 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15081
15082 * tree-vrp.c (value_range_base::set): Merge in code from
15083 value_range_base::set_and_canonicalize.
15084 Enforce canonicalization at set time.
15085 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15086 (value_range_base::set_undefined): Inline call to set().
15087 (value_range_base::set_varying): Same.
15088 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15089 (vrp_val_max): New argument handle_pointers.
15090 (vrp_val_min): Same.
15091 (ranges_from_anti_range): Same.
15092 (extract_range_into_wide_ints): Use tree argument instead of sign
15093 and precision.
15094 (extract_range_from_multiplicative_op): Take in tree type instead
15095 of precision and sign. Adapt function for canonicalized ranges.
15096 (extract_range_from_binary_expr): Pass type to
15097 extract_range_from_multiplicative_op.
15098 Adapt for canonicalized ranges.
15099 (extract_range_from_unary_expr): Same.
15100 (value_range_base::intersect_helper): Adjust for canonicalized
15101 ranges.
15102 (value_range_base::union_helper): Same.
15103 (value_range_base::normalize_symbolics): New.
15104 * tree-vrp.h (class value_range_base): Remove
15105 set_and_canonicalize.
15106 New prototype for normalize_symbolics.
15107 (class value_range): Remove set_and_canonicalize.
15108 (vrp_val_min): Adjust prototype.
15109 (vrp_val_max): Same.
15110 * vr-values.c
15111 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15112 instead of set_and_canonicalize.
15113
15114 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15115
15116 PR middle-end/91444
15117 * tree-vect-stmts.c (vectorizable_call): Check that the function
15118 is a BUILT_IN_MD function before passing it to
15119 targetm.vectorize.builtin_md_vectorized_function.
15120
15121 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15122
15123 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15124 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15125 (aarch64_select_early_remat_modes): Use it.
15126
15127 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15128
15129 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15130 16 for SVE predicates even if they are fixed-length.
15131
15132 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15133
15134 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15135 operand order match the MOV /Z alias.
15136
15137 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15138
15139 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15140 the vector pattern as an aarch64_svpattern argument. Update the
15141 overloaded caller accordingly.
15142 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15143 (aarch64_output_sve_vector_inc_dec): Likewise.
15144
15145 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15146
15147 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15148 multiplication case, try to compute VG * (lowest set bit) directly
15149 rather than always basing the multiplication on VG. Use
15150 expand_mult for the multiplication if we can.
15151
15152 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15153
15154 * config/aarch64/aarch64-protos.h
15155 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15156 (aarch64_sve_inc_dec_immediate_p): Rename to...
15157 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15158 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15159 (aarch64_output_sve_scalar_inc_dec): Declare.
15160 (aarch64_output_sve_inc_dec_immediate): Rename to...
15161 (aarch64_output_sve_vector_inc_dec): ...this.
15162 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15163 (aarch64_output_sve_scalar_inc_dec): New functions.
15164 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15165 arguments. Only handle true ADDVL and ADDPL instructions;
15166 don't emit an INC or DEC.
15167 (aarch64_sve_inc_dec_immediate_p): Rename to...
15168 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15169 (aarch64_output_sve_inc_dec_immediate): Rename to...
15170 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15171 aarch64_sve_vector_inc_dec_immediate_p.
15172 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15173 (aarch64_sve_plus_immediate): New predicates.
15174 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15175 rather than aarch64_sve_addvl_addpl_immediate.
15176 (aarch64_sve_inc_dec_immediate): Rename to...
15177 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15178 aarch64_sve_vector_inc_dec_immediate_p.
15179 (aarch64_sve_add_operand): Update accordingly.
15180 * config/aarch64/constraints.md (Uai): New constraint.
15181 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15182 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15183 operand into a register if it satisfies aarch64_sve_plus_immediate.
15184 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15185 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15186 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15187 aarch64_output_sve_vector_inc_dec instead of
15188 aarch64_output_sve_inc_dec_immediate.
15189
15190 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15191
15192 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15193 (UNSPEC_REVW): New constants.
15194 (elem_bits): New mode attribute.
15195 (SVE_INT_UNARY): New int iterator.
15196 (optab): Handle UNSPEC_REV[BHW].
15197 (sve_int_op): New int attribute.
15198 (min_elem_bits): Handle VNx16QI and the predicate modes.
15199 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15200 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15201 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15202 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15203 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15204 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15205 unspecs based on the total width of the reversed data.
15206 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15207 reinterpret followed by a subreg on big-endian targets.
15208
15209 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15210 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15211
15212 * config/aarch64/aarch64-sve.md
15213 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15214 alternatives in which one of the inputs is in the same register
15215 as the output.
15216
15217 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15218
15219 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15220 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15221
15222 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15223
15224 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15225 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
15226
15227 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15228 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15229
15230 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15231 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15232 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15233
15234 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15235 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15236
15237 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15238 Add an alternative that uses reversed shifts.
15239
15240 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15241
15242 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15243 struct.
15244
15245 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15246
15247 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15248 a commutativity marker.
15249
15250 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15251 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15252
15253 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15254 (aarch64_prepare_sve_cond_int_fma): Declare.
15255 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15256 (aarch64_prepare_sve_int_fma): New functions.
15257 (aarch64_prepare_sve_cond_int_fma): Likewise.
15258 * config/aarch64/aarch64-sve.md
15259 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15260 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15261 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15262 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15263 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15264 (*madd<mode>): Rename to...
15265 (*fma<mode>4): ...this.
15266 (*msub<mode>): Rename to...
15267 (*fnma<mode>4): ...this.
15268
15269 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15270 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15271
15272 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15273 Print 2.0 naturally.
15274 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15275 * config/aarch64/predicates.md
15276 (aarch64_sve_float_negated_arith_immediate): New predicate,
15277 renamed from aarch64_sve_float_arith_with_sub_immediate.
15278 (aarch64_sve_float_arith_with_sub_immediate): Test for both
15279 positive and negative constants.
15280 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
15281 or an aarch64_sve_float_arith_with_sub_immediate.
15282 * config/aarch64/constraints.md (vsN): Use
15283 aarch64_sve_float_negated_arith_immediate.
15284 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
15285 iterator.
15286 (sve_pred_fp_rhs2_immediate): New int attribute.
15287 * config/aarch64/aarch64-sve.md
15288 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
15289 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
15290 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
15291 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
15292 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
15293 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
15294
15295 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15296 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15297
15298 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
15299 (*aarch64_cond_abd<SVE_F:mode>_3)
15300 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
15301
15302 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15303 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15304
15305 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
15306 (*aarch64_cond_<su>abd<mode>_any): New patterns.
15307
15308 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15309 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15310
15311 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
15312 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
15313 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
15314 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
15315 optabs.
15316 * optabs.h (create_convert_operand_from): Expand comment.
15317 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
15318 when mapping scalar rtxes to vector operands.
15319 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
15320 ashiftrt and lshiftrt.
15321 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
15322 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
15323 (*cond_<optab><mode>_any_const): New patterns.
15324
15325 2019-08-15 Martin Liska <mliska@suse.cz>
15326
15327 PR ipa/91438
15328 * cgraph.c (cgraph_node::remove): When setting
15329 n->origin = NULL for all nested functions, reset
15330 also next_nested.
15331
15332 2019-08-15 Martin Liska <mliska@suse.cz>
15333
15334 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
15335 and next_nested.
15336
15337 2019-08-15 Martin Liska <mliska@suse.cz>
15338
15339 PR ipa/91404
15340 * passes.c (order): Remove.
15341 (uid_hash_t): Likewise).
15342 (remove_cgraph_node_from_order): Remove from set
15343 of pointers (cgraph_node *).
15344 (insert_cgraph_node_to_order): New.
15345 (duplicate_cgraph_node_to_order): New.
15346 (do_per_function_toporder): Register all 3 cgraph hooks.
15347 Skip removed_nodes now as we know about all of them.
15348
15349 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
15350
15351 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
15352 <case E_V8QImode>: Use vector_set path for
15353 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15354 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
15355 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15356
15357 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15358
15359 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
15360
15361 2019-08-14 Martin Sebor <msebor@redhat.com>
15362
15363 PR tree-optimization/91294
15364 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
15365 source length as exact.
15366
15367 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
15368
15369 * doc/extend.texi: Add "noinit" attribute documentation.
15370 * doc/sourcebuild.texi: Add noinit effective target documentation.
15371 * varasm.c (default_section_type_flags): Add support for "noinit"
15372 section.
15373 (default_elf_select_section): Add support for "noinit" attribute.
15374 * config/msp430/msp430.c (msp430_attribute_table): Remove
15375 "noinit" entry.
15376
15377 2019-08-14 Richard Biener <rguenther@suse.de>
15378 Uroš Bizjak <ubizjak@gmail.com>
15379
15380 PR target/91154
15381 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
15382 mode arguments.
15383 (scalar_chain::smode): New member.
15384 (scalar_chain::vmode): Likewise.
15385 (dimode_scalar_chain): Rename to...
15386 (general_scalar_chain): ... this.
15387 (general_scalar_chain::general_scalar_chain): Take mode arguments.
15388 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
15389 base with TImode and V1TImode.
15390 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
15391 (general_scalar_chain::vector_const_cost): Adjust for SImode
15392 chains.
15393 (general_scalar_chain::compute_convert_gain): Likewise. Add
15394 {S,U}{MIN,MAX} support.
15395 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
15396 (general_scalar_chain::make_vector_copies): Likewise. Handle
15397 non-DImode chains appropriately.
15398 (general_scalar_chain::convert_reg): Likewise.
15399 (general_scalar_chain::convert_op): Likewise.
15400 (general_scalar_chain::convert_insn): Likewise. Add
15401 fatal_insn_not_found if the result is not recognized.
15402 (convertible_comparison_p): Pass in the scalar mode and use that.
15403 (general_scalar_to_vector_candidate_p): Likewise. Rename from
15404 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
15405 (scalar_to_vector_candidate_p): Remove by inlining into single
15406 caller.
15407 (general_remove_non_convertible_regs): Rename from
15408 dimode_remove_non_convertible_regs.
15409 (remove_non_convertible_regs): Remove by inlining into single caller.
15410 (convert_scalars_to_vector): Handle SImode and DImode chains
15411 in addition to TImode chains.
15412 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
15413 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
15414 (*<maxmin>di3_doubleword): Likewise.
15415
15416 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15417 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15418
15419 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
15420 (*cond_bic<mode>_any): New patterns.
15421
15422 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15423
15424 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
15425 take the equivalent mask, as well as a bit count.
15426 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
15427 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
15428 (aarch64_sve_pred_and_operand): New predicates.
15429 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
15430 code attribute.
15431 * config/aarch64/aarch64-sve.md
15432 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
15433 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
15434
15435 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15436
15437 * config/aarch64/aarch64-sve.md
15438 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15439 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
15440 New patterns.
15441
15442 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15443 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15444
15445 * config/aarch64/aarch64-sve.md
15446 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
15447 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
15448
15449 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15450 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15451
15452 * config/aarch64/aarch64-sve.md
15453 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
15454 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
15455
15456 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15457
15458 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
15459 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
15460 New pattern.
15461
15462 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15463 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15464
15465 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
15466
15467 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15468 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15469
15470 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
15471 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
15472 (aarch64_print_operand): Add support for %I.
15473 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
15474 Bitcast floating-point constants to the corresponding integer constant.
15475 (aarch64_float_const_representable_p): Handle vectors as well
15476 as scalars.
15477 (aarch64_expand_sve_vcond): Make sure that the operands are valid
15478 for the new vcond_mask_<mode><vpred> expander.
15479 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
15480 test aarch64_float_const_representable_p.
15481 (aarch64_sve_reg_or_dup_imm): New predicate.
15482 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
15483 gen_vcond_mask_<mode><vpred> instead of
15484 gen_aarch64_sve_dup<mode>_const.
15485 (vcond_mask_<mode><vpred>): Turn into a define_expand that
15486 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
15487 for operands 1 and 2 respectively. Force operand 2 into a
15488 register if operand 1 is a register. Fold old define_insn...
15489 (aarch64_sve_dup<mode>_const): ...and this define_insn...
15490 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
15491 floating-point constants that can be moved as integers. Add
15492 alternatives for MOV /M and FMOV /M.
15493 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
15494 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
15495 1 and 2 respectively.
15496 * config/aarch64/constraints.md (Ufc): Handle vectors as well
15497 as scalars.
15498 (vss): New constraint.
15499
15500 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15501
15502 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
15503 (aarch64_sve_float_maxmin_operand): New predicates.
15504 * config/aarch64/constraints.md (vsB): New constraint.
15505 (vsM): Fix typo.
15506 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
15507 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
15508 UNSPEC_COND_FMINNM.
15509 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
15510 Use aarch64_sve_float_maxmin_operand for operand 2.
15511 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
15512 Add alternatives for the constant forms.
15513
15514 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15515
15516 * config/aarch64/constraints.md (vsb): New constraint.
15517 (vsm): Generalize description.
15518 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
15519 iterator.
15520 (sve_imm_con): Handle smax, smin, umax and umin.
15521 (sve_imm_prefix): New code attribute.
15522 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
15523 (aarch64_sve_vsb_operand): New predicates.
15524 (aarch64_sve_mul_immediate): Rename to...
15525 (aarch64_sve_vsm_immediate): ...this.
15526 (aarch64_sve_mul_operand): Rename to...
15527 (aarch64_sve_vsm_operand): ...this.
15528 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
15529 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
15530 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
15531 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
15532 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
15533 add movprfx support for the immediate alternatives.
15534 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
15535 of the above.
15536 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
15537 for operand 3.
15538
15539 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15540
15541 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
15542 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
15543 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
15544
15545 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15546
15547 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
15548 (optab, sve_int_op): Handle them.
15549 * config/aarch64/aarch64-sve.md: Expand comment.
15550
15551 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15552
15553 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
15554 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
15555 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
15556
15557 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15558
15559 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
15560 (aarch64_expand_sve_const_pred_trn): New functions.
15561 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
15562 use the above functions when the parameter is true.
15563 (aarch64_expand_sve_const_pred): Update call accordingly.
15564 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
15565 Rename to...
15566 (@aarch64_sve_<perm_insn><mode>): ...this.
15567
15568 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15569
15570 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
15571 Declare.
15572 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
15573 (aarch64_sve_emit_int_cmp): New functions.
15574 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
15575 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
15576 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
15577 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
15578 (UNSPEC_PRED_Z): New unspec.
15579 (set_clobber_cc_nzc): Delete.
15580 * config/aarch64/aarch64-sve.md: Add a block comment about
15581 UNSPEC_PRED_Z.
15582 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
15583 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
15584 the old pattern with that name. Use UNSPEC_PRED_Z instead of
15585 UNSPEC_MERGE_PTRUE.
15586 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
15587 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
15588 check for compatible predicates.
15589 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
15590 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
15591 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
15592 comparisons above.
15593
15594 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15595
15596 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
15597 * config/aarch64/aarch64-sve.md: Add a section describing it.
15598 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
15599 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
15600 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
15601 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
15602 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
15603 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
15604 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
15605 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
15606 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
15607 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
15608 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
15609 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
15610 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
15611 (aarch64_evpc_rev_local): Update accordingly.
15612
15613 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15614
15615 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
15616 iterators.
15617 (SVE_BHSI, SVE_SDI): Tweak comment.
15618 (SVE_HSDI): Likewise. Fix definition.
15619 (SVE_SDF): New mode iterator.
15620 (elem_bits): New mode attribute.
15621 (SVE_COND_FCVT): New int iterator.
15622 * config/aarch64/aarch64-sve.md
15623 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
15624 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
15625 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
15626 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
15627 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
15628 ...these new patterns.
15629 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
15630 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
15631 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
15632 Merge into...
15633 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
15634 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
15635 ...these new patterns.
15636 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
15637 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
15638 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
15639 ...this new pattern.
15640 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
15641 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
15642 ...this new pattern.
15643 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
15644
15645 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15646
15647 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
15648 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
15649 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
15650 unspecs.
15651 (optab, su): Handle them.
15652 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
15653 * config/aarch64/aarch64-sve.md
15654 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
15655 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
15656 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
15657 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
15658 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
15659 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
15660 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
15661 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
15662 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
15663 FIXUORS.
15664 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
15665 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
15666 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
15667 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
15668 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
15669 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
15670 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
15671 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
15672 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
15673 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
15674 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
15675 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
15676 of UNSPEC_FLOAT_CONVERT.
15677 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
15678 aarch64_sve_extend<mode><Vwide>2.
15679
15680 2019-08-14 Richard Biener <rguenther@suse.de>
15681
15682 PR target/91154
15683 * config/i386/i386-features.c
15684 (dimode_scalar_chain::compute_convert_gain): Compute and dump
15685 individual instruction gain. Fix reg-reg copy GRP cost. Use
15686 ix86_cost->sse_op for vector instruction costs.
15687
15688 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15689
15690 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
15691 (cmp_op): Handle it.
15692 (SVE_COND_FP_CMP): Rename to...
15693 (SVE_COND_FP_CMP_I0): ...this.
15694 (SVE_FP_CMP): Remove.
15695 * config/aarch64/aarch64-sve.md
15696 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
15697 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
15698 using unspecs to represent the comparison.
15699 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
15700 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
15701 accordingly.
15702 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
15703 (aarch64_unspec_cond_code): Move after integer code. Handle
15704 UNORDERED.
15705 (aarch64_emit_sve_predicated_cond): Replace with...
15706 (aarch64_emit_sve_fp_cond): ...this new function.
15707 (aarch64_emit_sve_or_conds): Replace with...
15708 (aarch64_emit_sve_or_fp_conds): ...this new function.
15709 (aarch64_emit_sve_inverted_cond): Replace with...
15710 (aarch64_emit_sve_invert_fp_cond): ...this new function.
15711 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
15712
15713 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15714
15715 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
15716 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
15717 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
15718 SVE_HSD instead of SVE_SD.
15719
15720 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15721 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15722
15723 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
15724 iterator.
15725 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
15726 attributes.
15727 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
15728 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
15729 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
15730 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
15731 (*div<SVE_F:mode>3): Generalize to...
15732 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
15733
15734 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15735 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15736
15737 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
15738 constants.
15739 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
15740 predicate.
15741 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
15742 Declare.
15743 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
15744 function.
15745 * config/aarch64/aarch64-sve.md: Add a block comment about the
15746 handling of predicated FP operations.
15747 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
15748 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
15749 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
15750 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
15751 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
15752 operand.
15753 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
15754 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
15755 operand.
15756 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
15757 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
15758 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
15759 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
15760 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
15761 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
15762 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
15763 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
15764 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
15765 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
15766 strictness operands. Use aarch64_sve_pred_dominates_p to check
15767 whether the predicate on the conditional operation is suitable
15768 for merging. Split patterns into the canonical equal-predicate form.
15769 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
15770 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
15771
15772 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15773 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15774
15775 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
15776 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
15777 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
15778 rtx codes.
15779 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
15780 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
15781 unspecs.
15782
15783 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15784 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15785
15786 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
15787 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
15788 actually has, rather than relying on REG_EQUAL notes.
15789 Make the insn operand order match the SVE operand order.
15790 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
15791 the SVE operand order.
15792
15793 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15794
15795 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
15796 (aarch64_emit_set_immediate): Likewise.
15797 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
15798 (aarch64_pfalse_reg): Likewise.
15799 (aarch64_convert_sve_data_to_pred): New function.
15800 (aarch64_sve_move_pred_via_while): Take an optional target register
15801 and the required register mode.
15802 (aarch64_expand_sve_const_pred_1): New function.
15803 (aarch64_expand_sve_const_pred): Likewise.
15804 (aarch64_expand_mov_immediate): Build an all-true predicate
15805 if the significant bits of the immediate are all true. Use
15806 aarch64_expand_sve_const_pred for all compile-time predicate constants.
15807 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
15808 before register allocation.
15809 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
15810 a VNx16BI PTRUE when splitting the memory alternative.
15811 (vec_duplicate<mode>): Update accordingly.
15812 (*pred_cmp<cmp_op><mode>): Rename to...
15813 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
15814
15815 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
15816
15817 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
15818 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
15819 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
15820 (UNSPEC_PTEST): New unspec.
15821 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
15822 * config/aarch64/iterators.md (data_bytes): New mode attribute.
15823 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
15824 * config/aarch64/aarch64-sve.md: Add a new section describing the
15825 handling of UNSPEC_PTEST.
15826 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
15827 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
15828 (ptest_ptrue<mode>): Replace with...
15829 (aarch64_ptest<mode>): ...this new pattern.
15830 (cbranch<mode>4): Update after above changes.
15831 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
15832 UNSPEC_PTEST_PTRUE.
15833 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
15834 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
15835 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
15836
15837 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
15838
15839 PR lto/91287
15840 * builtins.c (builtin_with_linkage_p): New function.
15841 * builtins.h (builtin_with_linkage_p): New function.
15842 * symtab.c (write_symbol): Remove redundant assert.
15843 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
15844 Remove FIXME and use builtin_with_linkage_p.
15845
15846 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15847
15848 PR middle-end/91421
15849 * tree-core.h (function_decl::function_code): Change type to
15850 unsigned int.
15851 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
15852 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
15853 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
15854 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
15855 is BUILT_IN_NORMAL.
15856 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
15857 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
15858 (fndecl_built_in_p): Change the type of the "name" argument to
15859 unsigned int.
15860 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
15861 after check for DECL_BUILT_IN_CLASS.
15862 * cgraphclones.c (build_function_decl_skip_args): Use
15863 set_decl_built_in_function.
15864 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
15865 * ipa-split.c (split_function): Likewise.
15866 * langhooks.c (add_builtin_function_common): Likewise.
15867 * omp-simd-clone.c (simd_clone_create): Likewise.
15868 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15869 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
15870 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
15871 DECL_FUNCTION_CODE.
15872 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
15873 instead of DECL_FUNCTION_CODE.
15874 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
15875 instead of DECL_FUNCTION_CODE.
15876 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15877 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
15878 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
15879 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
15880 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
15881 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
15882 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
15883 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
15884 (alpha_gimple_fold_builtin): Likewise.
15885 * config/arc/arc.c (arc_expand_builtin): Likewise.
15886 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
15887 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
15888 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
15889 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
15890 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
15891 * config/frv/frv.c (frv_expand_builtin): Likewise.
15892 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
15893 (gcn_expand_builtin): Likewise.
15894 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
15895 (fold_builtin_cpu): Likewise.
15896 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
15897 * config/i386/i386.c (ix86_fold_builtin): Likewise.
15898 (ix86_gimple_fold_builtin): Likewise.
15899 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
15900 (ia64_expand_builtin): Likewise.
15901 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
15902 * config/mips/mips.c (mips_expand_builtin): Likewise.
15903 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
15904 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15905 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
15906 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
15907 * config/pa/pa.c (pa_expand_builtin): Likewise.
15908 * config/pru/pru.c (pru_expand_builtin): Likewise.
15909 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
15910 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15911 Likewise.
15912 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
15913 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
15914 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
15915 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
15916 (rs6000_builtin_reciprocal): Likewise.
15917 * config/rx/rx.c (rx_expand_builtin): Likewise.
15918 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15919 * config/s390/s390.c (s390_expand_builtin): Likewise.
15920 * config/sh/sh.c (sh_expand_builtin): Likewise.
15921 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
15922 (sparc_fold_builtin): Likewise.
15923 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
15924 * config/spu/spu.c (spu_expand_builtin): Likewise.
15925 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
15926 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
15927 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
15928 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
15929 (xtensa_expand_builtin): Likewise.
15930
15931 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15932
15933 PR middle-end/91421
15934 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
15935 before the DECL_FUNCTION_CODE.
15936 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
15937 to check for a BUILT_IN_ALLOCA call.
15938 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
15939 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
15940 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
15941 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15942 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
15943 for BUILT_IN_NORMAL functions.
15944 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
15945 test for BUILT_IN_TM_ABORT.
15946 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
15947 to check for a BUILT_IN_STACK_RESTORE call.
15948 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
15949 * tree-ssa-threadedge.c
15950 (record_temporary_equivalences_from_stmts_at_dest): Check for a
15951 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
15952 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
15953 test for a BUILT_IN_NORMAL call instead of a negative test for
15954 an internal function call.
15955
15956 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15957
15958 * tree.h (build_vector_a_then_b): Declare.
15959 * tree.c (build_vector_a_then_b): New function.
15960 * fold-const-call.c (fold_while_ult): Likewise.
15961 (fold_const_call): Use it to handle IFN_WHILE_ULT.
15962 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
15963 (aarch64_svpattern): New enum.
15964 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
15965 constants through aarch64_expand_mov_immediate.
15966 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
15967 than general_operand as the predicate for operand 1.
15968 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
15969 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
15970 insn_type.
15971 (simd_immediate_info::simd_immediate_info): New overload that
15972 takes a scalar_int_mode and an svpattern.
15973 (simd_immediate_info::u): Add a "pattern" field.
15974 (svpattern_token): New function.
15975 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
15976 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
15977 (aarch64_sve_move_pred_via_while): New functions.
15978 (aarch64_expand_mov_immediate): Try using
15979 aarch64_sve_move_pred_via_while for predicates that contain N ones
15980 followed by M zeros but that do not correspond to a VLnnn pattern.
15981 (aarch64_sve_pred_valid_immediate): New function.
15982 (aarch64_simd_valid_immediate): Use it instead of dealing directly
15983 with PTRUE and PFALSE.
15984 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
15985 forms.
15986
15987 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
15988
15989 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
15990 flag.
15991 (darwin_override_options): Likewise.
15992 * config/darwin.h: Likewise.
15993 * config/darwin.opt: Likewise.
15994 * config/i386/i386.c (output_pic_addr_const): Likewise.
15995 * config/rs6000/darwin.h: Likewise.
15996 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
15997 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
15998 ... this TARGET_MACHO_SYMBOL_STUBS.
15999 (FUNCTION_PROFILER):Likewise.
16000 * config/i386/i386.h: Likewise.
16001
16002 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16003
16004 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16005 <case E_V2SImode>: Use vec_extr path for
16006 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16007 <case E_V8QImode>: Ditto.
16008 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16009 Use SWI48 mode iterator. Use %k to output operand 0.
16010 (*mmx_pextrw): New insn pattern.
16011 (*mmx_pextrb): Ditto.
16012 (*mmx_pextrb_zext): Ditto.
16013
16014 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16015
16016 * target.def (libc_has_function, libc_has_fast_function): Improve
16017 documentation strings.
16018 * doc/tm.texi: Regenerate.
16019
16020 2019-08-13 Caroline Tice <cmtice@google.com>
16021
16022 PR other/91396
16023 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16024 vtv_end.o or vtv_end_preinit.o files if !static.
16025
16026 2019-08-13 Olivier Hainque <hainque@adacore.com>
16027
16028 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16029
16030 2019-08-13 Olivier Hainque <hainque@adacore.com>
16031
16032 * rtlanal.c (tablejump_casesi_pattern): New function, to
16033 determine if a tablejump insn is a casesi dispatcher. Extracted
16034 from patch_jump_insn.
16035 * rtl.h (tablejump_casesi_pattern): Declare.
16036 * cfgrtl.c (patch_jump_insn): Use it.
16037 * dwarf2cfi.c (create_trace_edges): Use it.
16038
16039 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16040
16041 PR target/81800
16042 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16043 operand is larger than a long int.
16044
16045 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16046
16047 * machmode.h (opt_mode::else_mode): New function.
16048 (opt_mode::else_blk): Use it.
16049 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16050 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16051 (aarch64_gen_stepped_int_parallel): Likewise.
16052 (aarch64_stepped_int_parallel_p): Likewise.
16053 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16054 argument.
16055 * config/aarch64/aarch64.c
16056 (aarch64_expand_sve_widened_duplicate): Delete.
16057 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16058 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16059 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16060 argument. Use early returns in the !CONST_INT_P handling.
16061 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16062 than handling some inline.
16063 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16064 from...
16065 (aarch64_simd_container_mode): ...here.
16066 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16067 (aarch64_sve_ld1rq_operand_p): New functions.
16068 * config/aarch64/predicates.md (descending_int_parallel)
16069 (aarch64_sve_ld1rq_operand): New predicates.
16070 * config/aarch64/constraints.md (UtQ): New constraint.
16071 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16072 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16073 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16074 (@aarch64_sve_reinterpret<mode>): New expander.
16075 (*aarch64_sve_reinterpret<mode>): New pattern.
16076 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16077 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16078 (*sve_ld1rq<Vesize>): Replace with...
16079 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16080
16081 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16082
16083 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16084 16:12.
16085
16086 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16087
16088 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16089 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16090 (msp430_check_path_for_devices): New.
16091 (parse_devices_csv_1): New.
16092 (parse_devices_csv): New.
16093 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16094 MCU data in devices.csv before using the hard-coded data.
16095 Warn if devices.csv isn't found and the MCU wasn't found in the
16096 hard-coded data either.
16097 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16098 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16099 Search for devices.csv on -I and -L paths.
16100 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16101 msp430_set_driver_var.
16102 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16103 -mdevices-csv-loc=.
16104 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16105 searched for devices.csv.
16106 (mwarn-devices-csv): Document option.
16107
16108 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16109
16110 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16111 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16112 Use a single Dn alternative instead of separate Dz and Dm
16113 alternatives. Use aarch64_output_sve_move_immediate.
16114 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16115 function.
16116 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16117 for predicates too.
16118 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16119 (aarch64_output_ptrue): Delete.
16120
16121 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16122
16123 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16124 INDEX.
16125 (simd_immediate_info::value, simd_immediate_info::step)
16126 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16127 with...
16128 (simd_immediate_info::u): ...this new union.
16129 (simd_immediate_info::simd_immediate_info): Update accordingly.
16130 (aarch64_output_simd_mov_immediate): Likewise.
16131 (aarch64_output_sve_mov_immediate): Likewise.
16132
16133 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16134
16135 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16136 extra_gcc_objs.
16137 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16138 (msp430_select_cpu): New spec function.
16139 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16140 MCU data.
16141 * config/msp430/msp430-devices.c: New file.
16142 * config/msp430/msp430-devices.h: New file.
16143 * config/msp430/msp430.c: Remove msp430_mcu_data.
16144 (msp430_option_override): Use msp430_extract_mcu_data to extract
16145 MCU data.
16146 (msp430_use_f5_series_hwmult): Likewise.
16147 (use_32bit_hwmult): Likewise.
16148 (msp430_no_hwmult): Likewise.
16149 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16150 assembler.
16151 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16152 and -mcpu option.
16153 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16154 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16155 Remove hard-coded MCU multilib data.
16156
16157 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16158
16159 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16160 based on the mode instead of testing properties of it.
16161
16162 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16163
16164 * doc/md.texi: Document the x and y constraints for AArch64.
16165 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16166 (FP_LO8_REGS): New reg_class.
16167 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16168 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16169 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16170 * config/aarch64/predicates.md (aarch64_simd_register): Use
16171 FP_REGNUM_P instead of checking the classes manually.
16172 * config/aarch64/constraints.md (y): New constraint.
16173
16174 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16175
16176 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16177 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16178 * config/aarch64/aarch64-simd.md
16179 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16180 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16181 from the asm template.
16182 * config/aarch64/aarch64-sve.md
16183 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16184 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16185 from the asm template.
16186 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16187 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16188 from the asm template.
16189 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16190
16191 2019-08-13 Martin Liska <mliska@suse.cz>
16192
16193 * value-prof.c (gimple_ic_transform): Add new line.
16194 Print details with MSG_NOTE.
16195
16196 2019-08-13 Martin Liska <mliska@suse.cz>
16197
16198 * doc/invoke.texi: Document automatic detection of jobserver.
16199 * lto-wrapper.c (run_gcc): Detect jobserver always.
16200
16201 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16202
16203 * config/i386/i386-expand.c (ix86_expand_vector_set)
16204 <case E_V2SImode>: Use vec_merge path for
16205 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16206 <case E_V8QImode>: Ditto.
16207 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16208 (*mmx_pinsrb): Ditto.
16209
16210 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16211
16212 PR target/83250
16213 PR target/91340
16214 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16215 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16216 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16217 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16218 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16219
16220 2019-08-12 Richard Biener <rguenther@suse.de>
16221
16222 PR lto/91375
16223 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16224 flag_devirtualize.
16225
16226 2019-08-12 Richard Biener <rguenther@suse.de>
16227
16228 PR driver/91130
16229 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16230 lang_mask option, always use CL_DRIVER.
16231 (get_options_from_collect_gcc_options): Adjust.
16232 (find_and_merge_options): Likewise.
16233 (run_gcc): Likewise.
16234
16235 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16236
16237 * ipa-predicate.c (add_condition): Restore inverted test.
16238
16239 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16240
16241 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16242 (enum omp_clause_device_type_kind): New enum.
16243 (struct tree_omp_clause): Add subcode.device_type_kind.
16244 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16245 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16246 for device_type clause.
16247 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16248 * tree-pretty-print.c (dump_omp_clause): Likewise.
16249
16250 PR target/91408
16251 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16252 vector_operand.
16253
16254 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16255
16256 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16257 handling spilled pseudos.
16258
16259 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16260
16261 PR target/91386
16262 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16263 to preserve the contents of the original insns.
16264
16265 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16266
16267 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
16268 (addsi3_compare_op2): Likewise.
16269
16270 2019-08-09 Martin Liska <mliska@suse.cz>
16271
16272 * alias.c (alias_ptr_types_compatible_p): Strengten
16273 type comparison in LTO mode.
16274
16275 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
16276
16277 PR middle-end/90313
16278 * tree-tailcall.c (find_tail_calls): Reject calls that might
16279 read from an escaped RESULT_DECL.
16280
16281 2019-08-09 Martin Liska <mliska@suse.cz>
16282
16283 * doc/invoke.texi: Document the option value.
16284 * lto-wrapper.c (run_gcc): Set auto_parallel
16285 only with -flto=auto.
16286
16287 2019-08-09 Martin Liska <mliska@suse.cz>
16288
16289 * opts.c (common_handle_option): Error for an invalid argument
16290 to -flto=.
16291
16292 2019-08-09 Martin Liska <mliska@suse.cz>
16293
16294 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
16295 use dump_printf to report optimization.
16296 (sem_variable::merge): Likwise.
16297 (sem_item_optimizer::merge_classes): Use dump_printf to report
16298 ICF hits.
16299
16300 2019-08-09 Martin Liska <mliska@suse.cz>
16301
16302 * value-prof.c (gimple_divmod_fixed_value_transform):
16303 Use dump_printf_loc.
16304 (gimple_mod_pow2_value_transform): Likewise.
16305 (gimple_mod_subtract_transform): Likewise.
16306 (init_node_map): Likewise.
16307 (gimple_ic_transform): Likewise.
16308 (gimple_stringops_transform): Likewise.
16309
16310 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
16311
16312 * doc/extend.texi: Add const qualifier to ld intrinsics.
16313
16314 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16315
16316 * config/rs6000/dfp.md (D64_D128): Rename to ...
16317 (DDTD): ... this, throughout.
16318 (dfp_suffix): Rename to ...
16319 (q): ... this, throughout.
16320
16321 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
16322
16323 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
16324 (dfp_suffix): Ditto.
16325 (adddd3, addtd3): Merge to ...
16326 (add<mode>3 for D64_D128): ... this.
16327 (subdd3, subtd3): Merge to ...
16328 (sub<mode>3 for D64_D128): ... this.
16329 (muldd3, multd3): Merge to ...
16330 (mul<mode>3 for D64_D128): ... this.
16331 (divdd3, divtd3): Merge to ...
16332 (div<mode>3 for D64_D128): ... this.
16333 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
16334 (*cmp<mode>_internal1 for D64_D128): ... this.
16335 (ftruncdd2, ftrunctd2): Merge to ...
16336 (ftrunc<mode>2 for D64_D128): ... this.
16337 (fixdddi2, fixtddi2): Merge to ...
16338 (fix<mode>di2 for D64_D128): ... this.
16339
16340 2019-08-08 Jim Wilson <jimw@sifive.com>
16341
16342 PR target/91229
16343 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
16344 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
16345 Pass into recursive call.
16346 (riscv_flatten_aggregate_argument): New arg. Pass to
16347 riscv_flatten_aggregate_field.
16348 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
16349 riscv_flatten_aggregate_argument twice, with false and true as last
16350 arg. Process result twice. Compare results and warn if different.
16351 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
16352
16353 2019-08-08 Martin Liska <mliska@suse.cz>
16354
16355 PR bootstrap/91352
16356 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
16357 * lto-wrapper.c (jobserver_active_p): Likewise.
16358
16359 2019-08-08 Martin Liska <mliska@suse.cz>
16360
16361 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
16362 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
16363 (create_version_clone_with_body): Likewise.
16364
16365 2019-08-08 Jakub Jelinek <jakub@redhat.com>
16366
16367 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
16368 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
16369 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
16370 GOVD_EXPLICIT flags.
16371 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
16372 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
16373 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
16374 call install_var_field with mask 11 instead of 3.
16375 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
16376 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
16377
16378 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16379
16380 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
16381 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
16382
16383 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16384
16385 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
16386 MOVPRFX alternatives. Make the GPR alternatives more expensive
16387 than the FPR ones.
16388
16389 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16390
16391 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
16392 Disparage the GPR alternative relative to the FPR one.
16393 Fix handling of 8-bit and 16-bit FPR values.
16394
16395 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16396
16397 * config/aarch64/iterators.md (BITWISEV): Delete.
16398 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
16399 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
16400 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16401 UNSPEC_FMINNMV, UNSPEC_FMINV.
16402 (bit_reduc_op): Delete.
16403 (sve_int_op): New int attribute.
16404 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
16405 UNSPEC_FMINNMV, UNSPEC_FMINV.
16406 * config/aarch64/aarch64-sve.md
16407 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16408 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
16409 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
16410 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
16411 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
16412 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
16413 new patterns.
16414 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
16415 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
16416 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
16417 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
16418 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
16419 new patterns.
16420
16421 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16422
16423 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
16424 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
16425 (fms<mode>4, *fms<mode>4): Replace with...
16426 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16427 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
16428 Use unspecs instead of rtx codes.
16429 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
16430 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
16431
16432 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16433
16434 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
16435 int iterator.
16436 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
16437 * config/aarch64/aarch64-sve.md
16438 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
16439 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
16440 use a single unspec for the rhs.
16441 (*<su><maxmin><mode>3): Delete.
16442 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
16443
16444 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16445
16446 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
16447 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
16448 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
16449 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
16450 (optab, sve_fp_op): Handle them.
16451 (SVE_FP_UNARY): Delete.
16452 (optab): Remove sqrt entry.
16453 (sve_fp_op): Remove neg, abs and sqrt entries.
16454 (SVE_COND_FP_UNARY): New int iterator.
16455 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
16456 (*<frint_pattern><mode>2): Delete.
16457 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16458 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16459 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
16460 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
16461
16462 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16463
16464 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
16465
16466 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16467
16468 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
16469 (UNSPEC_COND_FADD): ...this.
16470 (UNSPEC_COND_SUB): Rename to...
16471 (UNSPEC_COND_FSUB): ...this.
16472 (UNSPEC_COND_MUL): Rename to...
16473 (UNSPEC_COND_FMUL): ...this.
16474 (UNSPEC_COND_DIV): Rename to...
16475 (UNSPEC_COND_FDIV): ...this.
16476 (UNSPEC_COND_MAX): Rename to...
16477 (UNSPEC_COND_FMAXNM): ...this.
16478 (UNSPEC_COND_MIN): Rename to...
16479 (UNSPEC_COND_FMINNM): ...this.
16480 (UNSPEC_COND_LT): Rename to...
16481 (UNSPEC_COND_FCMLT): ...this.
16482 (UNSPEC_COND_LE): Rename to...
16483 (UNSPEC_COND_FCMLE): ...this.
16484 (UNSPEC_COND_EQ): Rename to...
16485 (UNSPEC_COND_FCMEQ): ...this.
16486 (UNSPEC_COND_NE): Rename to...
16487 (UNSPEC_COND_FCMNE): ...this.
16488 (UNSPEC_COND_GE): Rename to...
16489 (UNSPEC_COND_FCMGE): ...this.
16490 (UNSPEC_COND_GT): Rename to...
16491 (UNSPEC_COND_FCMGT): ...this.
16492 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
16493 (sve_fp_op_rev): Update accordingly.
16494 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
16495
16496 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16497
16498 * config/aarch64/aarch64-sve.md: Reorganize contents and add
16499 banner comments.
16500 * config/aarch64/check-sve-md.awk: New file.
16501 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
16502 (insn-conditions.md): Depend on it.
16503
16504 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
16505
16506 PR target/91385
16507 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
16508 (*negsi2_cmpz_zext): Ditto.
16509
16510 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16511
16512 * config/aarch64/iterators.md (commutative): Remove.
16513
16514 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
16515
16516 PR driver/91130
16517 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
16518 processing COLLECT_GCC_OPTIONS.
16519 (run_gcc): Likewise.
16520
16521 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
16522
16523 PR tree-optimization/91109
16524 * lra-remat.c (update_scratch_ops): Remove assignment of the
16525 hard register.
16526
16527 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
16528
16529 * data-streamer.h (streamer_write_poly_uint64): Declare.
16530 (streamer_read_poly_uint64): Likewise.
16531 * data-streamer-in.c (streamer_read_poly_uint64): New function.
16532 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
16533 * ipa-predicate.h (condition::size): Turn into a poly_int64.
16534 (add_condition): Take a poly_int64 size.
16535 * ipa-predicate.c (add_condition): Likewise.
16536 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
16537 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
16538 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
16539 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
16540 condition::size as a poly_int64.
16541 (unmodified_parm_1): Take a poly_int64 size pointer.
16542 (unmodified_parm): Likewise.
16543 (unmodified_parm_or_parm_agg_item): Likewise.
16544 (set_cond_stmt_execution_predicate): Update accordingly.
16545 (set_switch_stmt_execution_predicate): Likewise.
16546 (will_be_nonconstant_expr_predicate): Likewise.
16547 (will_be_nonconstant_predicate): Likewise.
16548 (inline_read_section): Stream condition::size as a poly_int.
16549 (ipa_fn_summary_write): Likewise.
16550
16551 2019-08-07 Martin Liska <mliska@suse.cz>
16552
16553 * fold-const.c (twoval_comparison_p): Replace int
16554 with bool as a return type.
16555 (simple_operand_p): Likewise.
16556 (operand_equal_p): Replace int with bool as a return type.
16557 * fold-const.h (operand_equal_p): Likewise.
16558
16559 2019-08-07 Jakub Jelinek <jakub@redhat.com>
16560
16561 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
16562 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
16563 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16564 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
16565 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
16566 * tree-pretty-print.c (dump_omp_clause): Likewise.
16567 * tree-nested.c (convert_nonlocal_omp_clauses,
16568 convert_local_omp_clauses): Likewise.
16569 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16570 Likewise.
16571 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
16572 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
16573 clause with array or reference to array types, no matter what type
16574 except for reference it has.
16575
16576 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
16577
16578 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
16579
16580 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
16581
16582 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
16583 (arch_canonicalize): Support rv32g and rv64g and fix error
16584 handling.
16585
16586 2019-08-06 Martin Liska <mliska@suse.cz>
16587
16588 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
16589 and DECL_IS_OPERATOR_DELETE_P.
16590
16591 2019-08-06 Jakub Jelinek <jakub@redhat.com>
16592
16593 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
16594 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
16595 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
16596 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
16597 (gimplify_omp_for): Don't do C++ random access iterator clause
16598 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
16599 don't predetermine the artificial iterator in case of C++ random
16600 access iterators as lastprivate, but private. For OMP_LOOP, force
16601 bind expr around simd body and force for_pre_body before the
16602 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
16603 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
16604 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
16605 diff var of C++ random access iterators. Handle
16606 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
16607 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
16608 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
16609 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
16610 * omp-low.c (lower_rec_input_clauses): For
16611 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
16612 variables instead of default constructing them.
16613 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
16614 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
16615 is_taskloop_ctx check from the assert to the guarding condition.
16616
16617 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
16618
16619 * config/riscv/multilib-generator: (canonical_order): New.
16620 (arch_canonicalize): Dito.
16621 Apply arch_canonicalize for alts.
16622
16623 2019-08-05 Martin Sebor <msebor@redhat.com>
16624
16625 * doc/extend.texi (Common Variable Attributes): Document alias
16626 attribute.
16627
16628 2019-08-05 Marek Polacek <polacek@redhat.com>
16629
16630 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
16631 * doc/invoke.texi: Document -Wcomma-subscript.
16632
16633 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16634
16635 * tree-core.h (tree_function_decl): Make function_code an
16636 independent field. Group the remaining bitfields into bytes
16637 and move decl_type so that it contines to be at a byte boundary.
16638 Leave 12 bits for future expansion.
16639
16640 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16641
16642 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
16643 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
16644 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
16645 IFN_MASK_STORE.
16646
16647 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
16648
16649 * gimple.h (gimple_move_vops): Declare.
16650 * gimple.c (gimple_move_vops): New function
16651 * gimple-fold.c (replace_call_with_call_and_fold)
16652 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
16653 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
16654 (gimple_fold_call): Use it.
16655 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
16656 * tree-call-cdce.c (use_internal_fn): Likewise.
16657 * tree-if-conv.c (predicate_load_or_store): Likewise.
16658 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
16659 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
16660 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
16661 (update_call_from_tree): Likewise.
16662 * tree-vect-stmts.c (vectorizable_load): Likewise.
16663 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
16664
16665 2019-08-05 Martin Liska <mliska@suse.cz>
16666
16667 PR c++/91334
16668 * tree-ssa-dce.c (propagate_necessity): Handle new operators
16669 with not arguments.
16670 (eliminate_unnecessary_stmts): Likewise.
16671
16672 2019-08-05 Richard Biener <rguenther@suse.de>
16673
16674 PR middle-end/91169
16675 * fold-const.c (get_array_ctor_element_at_index): Create
16676 offset_ints according to the sign of the index type and treat
16677 that as signed if it is obviously so.
16678
16679 2019-08-05 Jakub Jelinek <jakub@redhat.com>
16680
16681 PR target/91341
16682 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
16683 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
16684 _mm256_storeu2_m128i): New function.
16685
16686 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
16687
16688 * config/riscv/riscv.c (riscv_promote_function_mode): New.
16689 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
16690
16691 2019-08-05 Alan Modra <amodra@gmail.com>
16692
16693 PR target/91349
16694 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
16695 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
16696
16697 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
16698
16699 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
16700 bug that was fixed in Tcl 8.6.1.
16701
16702 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
16703
16704 * config/rs6000/future.md: New file.
16705 * config/rs6000/rs6000.md: Include future.md.
16706 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
16707
16708 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
16709
16710 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
16711 check to use targetm.slow_unaligned_access instead.
16712
16713 * function.c (assign_param_data_one): Remove unused data members.
16714
16715 2019-08-02 Steve Ellcey <sellcey@marvell.com>
16716
16717 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
16718 build_distinct_type_copy.
16719 (simd_clone_adjust_argument_types): Ditto.
16720 (simd_clone_adjust): Call build_distinct_type_copy here.
16721 (expand_simd_clones): Ditto.
16722
16723 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
16724
16725 PR target/91201
16726 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
16727
16728 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
16729
16730 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
16731 from 'const void *'.
16732 (sort_locs_in_loop_postorder_cmp): Likewise.
16733
16734 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
16735
16736 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
16737 (hot-bb-count-ws-permille): Likewise.
16738 (hot-bb-frequency-fraction): Likewise.
16739 (unlikely-bb-count-fraction): Likewise.
16740 * params.def (hot-bb-count-fraction): Rework description.
16741 (hot-bb-count-ws-permille): Likewise.
16742 (hot-bb-frequency-fraction): Likewise.
16743 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
16744 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
16745
16746 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
16747
16748 PR target/91323
16749 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
16750 Return false.
16751
16752 2019-08-02 Richard Biener <rguenther@suse.de>
16753
16754 * vec.h (vec::sort): Add gcc_qsort_r support.
16755 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
16756 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
16757 to gcc_qsort_r style callback.
16758 (sort_locs_in_loop_postorder_cmp): Likewise.
16759 (analyze_memory_references): Use gcc_sort_r interfaces.
16760 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
16761
16762 2019-08-02 Martin Liska <mliska@suse.cz>
16763
16764 PR lto/91313
16765 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
16766 to detect working job server.
16767 (driver::detect_jobserver): Test whether jobserver
16768 is active from GCC driver. That will prevent situation where
16769 GCC is invoked from a LD plugin and the linker already uses
16770 file descriptors suggested by make. That leads to a wrong
16771 detection.
16772 * gcc.h (driver): Add detect_jobserver.
16773 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
16774 not scanning for --jobserver-auth prefix.
16775
16776 2019-08-02 Jakub Jelinek <jakub@redhat.com>
16777
16778 PR tree-optimization/91201
16779 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
16780 V16QImode extraction without sse4.1 try to use V4SImode lowpart
16781 extraction.
16782
16783 2019-08-01 Martin Sebor <msebor@redhat.com>
16784
16785 PR c++/90947
16786 * tree.c (type_initializer_zero_p): Define.
16787 * tree.h (type_initializer_zero_p): New function.
16788
16789 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
16790
16791 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
16792
16793 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
16794
16795 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
16796 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
16797 * predict.c (maybe_hot_count_p): Likewise.
16798 (maybe_hot_bb_p): Tweak comment.
16799 (maybe_hot_edge_p): Likewise.
16800 (probably_never_executed): Likewise. Minor tweak.
16801 (probably_never_executed_bb_p): Likewise.
16802 (unlikely_executed_edge_p): Likewise.
16803 (probably_never_executed_edge_p): Likewise.
16804 (optimize_function_for_size_p): Likewise.
16805 (optimize_function_for_speed_p): Likewise.
16806 (function_optimization_type): Likewise.
16807 (optimize_bb_for_size_p): Likewise.
16808 (optimize_bb_for_speed_p): Likewise.
16809 (bb_optimization_type): Likewise.
16810 (optimize_edge_for_size_p): Likewise.
16811 (optimize_edge_for_speed_p): Likewise.
16812 (optimize_insn_for_size_p): Likewise.
16813 (optimize_insn_for_speed_p): Likewise.
16814 (optimize_loop_for_size_p): Likewise.
16815 (optimize_loop_for_speed_p): Likewise.
16816 (optimize_loop_nest_for_speed_p): Likewise.
16817 (optimize_loop_nest_for_size_p): Likewise.
16818 (predictable_edge_p): Likewise.
16819 (handle_missing_profiles): Minor tweak.
16820
16821 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
16822
16823 * config/rs6000/predicates.md (pcrel_external_address): Update
16824 comment.
16825
16826 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
16827
16828 PR target/85693
16829 * config/i386/mmx.md (usadv8qi): New expander.
16830
16831 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
16832
16833 PR c++/90590
16834 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
16835 with reserved names that are in a system header.
16836
16837 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
16838
16839 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
16840 (*vec_extractv2si_0_zext_sse4): New insn pattern.
16841 (*vec_extractv2si_0_zext): Ditto.
16842 (*vec_extractv2si_1): Add (rm,x) alternative.
16843 (*vec_extractv2si_1_zext): New insn pattern.
16844 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
16845 insn constraint.
16846
16847 2019-08-01 Richard Biener <rguenther@suse.de>
16848
16849 * domwalk.c (bb_postorder): Remove static variable.
16850 (cmp_bb_postorder): Adjust.
16851 (sort_bbs_postorder): Adjust and use gcc_sort_r.
16852 (dom_walker::walk): Adjust.
16853
16854 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
16855
16856 * sort.cc (sort_r_ctx): New struct.
16857 (reorder23): Make templated on context type.
16858 (reorder45): Ditto.
16859 (cmp1): Ditto. Adjust signature.
16860 (netsort): Ditto.
16861 (mergesort): Ditto.
16862 [CHECKING_P] (cmp2to3): New static function. Use it...
16863 (gcc_qsort) [CHECKING_P]: ...here.
16864 (gcc_sort_r): New function.
16865 * system.h (sort_r_cmp_fn): New function typedef.
16866 (qsort_chk): Adjust signature.
16867 (gcc_sort_r): Declare.
16868 * vec.c (qsort_chk_error): Adjust.
16869 (qsort_chk): Adjust.
16870
16871 2019-08-01 Richard Biener <rguenther@suse.de>
16872
16873 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
16874 (compute_antic): Localize it here.
16875
16876 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
16877
16878 * common/config/riscv/riscv-common.c: Check -march string ends
16879 with null.
16880
16881 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
16882
16883 * ipa-devirt.c (type_warning_cmp): Make static.
16884 (decl_warning_cmp): Ditto.
16885
16886 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
16887
16888 PR target/91050
16889 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
16890 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
16891 use of deleted rs6000_dejagnu_cpu_index variable.
16892 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
16893 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16894 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
16895 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
16896 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
16897 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16898
16899 2019-07-31 Richard Biener <rguenther@suse.de>
16900
16901 PR tree-optimization/91280
16902 * tree-ssa-structalias.c (get_constraint_for_component_ref):
16903 Decompose MEM_REF manually for offset handling.
16904
16905 2019-07-31 Richard Biener <rguenther@suse.de>
16906
16907 PR tree-optimization/91293
16908 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
16909 of reduction stmts.
16910
16911 2019-07-31 Matt Thomas <matt@3am-software.com>
16912 Nick Hudson <nick@nthcliff.demon.co.uk>
16913 Matthew Green <mrg@eterna.com.au>
16914 Maya Rashish <coypu@sdf.org>
16915
16916 * config.gcc (hppa*-*-netbsd*): New target.
16917 * config/pa/pa-netbsd.h: New file.
16918 * config/pa/pa32-netbsd.h: New file.
16919
16920 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16921
16922 PR tree-optimization/91201
16923 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
16924
16925 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
16926
16927 * config/gcn/gcn-valu.md
16928 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
16929 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
16930 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
16931 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
16932 struct ilist. Add nops for delayeduse insns.
16933 * config/gcn/gcn.md (delayeduse): New attribute.
16934 (*movbi): Remove s_waitcnt from stores.
16935 (*mov<mode>_insn): Likewise.
16936 (*movti_insn): Likewise. Add delayeduse attribute.
16937 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
16938 (atomic_store<mode>): Remove or adjust s_waitcnt.
16939
16940 2019-07-31 Richard Biener <rguenther@suse.de>
16941
16942 * vr-values.h (vr_values::swap_vr_value): New.
16943 (vr_values::free_value_range): likewise.
16944 * vr-values.c (vr_values::swap_vr_value): Implement.
16945 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
16946 Do not return a range or take a var.
16947 (evrp_range_analyzer::stack): Change back to recording a non-const
16948 value_range *.
16949 * gimple-ssa-evrp-analyze.c
16950 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
16951 value-range.
16952 (evrp_range_analyzer::pop_to_marker): Adjust.
16953 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
16954 (evrp_range_analyzer::pop_value_range): Likewise. Free the
16955 no longer needed value-range.
16956
16957 2019-07-31 Martin Liska <mliska@suse.cz>
16958
16959 * tree-ssa-dce.c (propagate_necessity): Delete operator can
16960 have size and (or) alignment as 2nd and later arguments.
16961 Mark all of them as necessary.
16962
16963 2019-07-31 Richard Biener <rguenther@suse.de>
16964
16965 PR tree-optimization/91178
16966 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
16967 Use tail-recursion.
16968
16969 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16970
16971 PR tree-optimization/91201
16972 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
16973 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
16974 TARGET_AVX512F.
16975 (reduc_plus_scal_<mode>): Improve formatting by introducing
16976 a temporary.
16977
16978 2019-07-31 Sudakshina Das <sudi.das@arm.com>
16979
16980 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
16981 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
16982 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
16983 (aarch64_init_tme_builtins): New.
16984 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
16985 (aarch64_expand_builtin_tme): New.
16986 (aarch64_expand_builtin): Handle TME builtins.
16987 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
16988 __ARM_FEATURE_TME when enabled.
16989 * config/aarch64/aarch64-option-extensions.def: Add "tme".
16990 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
16991 (TARGET_TME): New.
16992 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
16993 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
16994 UNSPECV_TCANCEL.
16995 (tstart, ttest, tcommit, tcancel): New instructions.
16996 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
16997 (__tcancel, __ttest): New.
16998 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
16999 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17000 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17001 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17002 * config/arm/types.md: Add new tme type attr.
17003 * doc/invoke.texi: Document "tme".
17004
17005 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17006
17007 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17008 warn_unused_result attribute.
17009 (cmse_check_address_range): Add warn_unused_result attribute.
17010
17011 2019-07-31 Richard Biener <rguenther@suse.de>
17012
17013 PR tree-optimization/91257
17014 * tree-vrp.c (union_ranges): Unify equality and less tests
17015 by using compare_values. Re-order cheap tests first.
17016
17017 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17018
17019 PR middle-end/91301
17020 * gimplify.c (gimplify_omp_for): If for class iterator on
17021 distribute parallel for there is no data sharing clause
17022 on inner_for_stmt, look for private clause on combined
17023 parallel too and if found, move it to inner_for_stmt.
17024
17025 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17026
17027 * lra-int.h (lra_operand_data): Remove early_clobber field.
17028 (lra_insn_reg): Likewise.
17029 * lra.c (debug_operand_data): Update accordingly.
17030 (setup_operand_alternative): Likewise.
17031 (new_insn_reg): Likewise. Remove early_clobber parameter.
17032 (collect_non_operand_hard_regs): Update call accordingly.
17033 Don't assign to lra_insn_reg::early_clobber.
17034 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17035 and update calls to new_insn_reg.
17036 (lra_update_insn_regno_info): Update calls accordingly.
17037 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17038 alternative number as a parameter and test whether the operand
17039 is earlyclobbered in that particular alternative.
17040 (process_alt_operands): Update call accordingly. Use per-alternative
17041 checks for earyclobber here too.
17042 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17043 against zero for IRA_UNKNOWN_ALT.
17044
17045 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17046
17047 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17048
17049 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17050
17051 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17052 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17053
17054 2019-07-30 Martin Liska <mliska@suse.cz>
17055
17056 PR ipa/89330
17057 * cgraph.c (cgraph_edge::make_direct): Use
17058 edge->indirect_unknown_callee as edge->resolve_speculation can
17059 deallocate edge which is this pointer.
17060
17061 2019-07-30 Richard Biener <rguenther@suse.de>
17062
17063 PR tree-optimization/91257
17064 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17065
17066 2019-07-30 Martin Liska <mliska@suse.cz>
17067
17068 * doc/invoke.texi: Document new behavior.
17069 * lto-wrapper.c (cpuset_popcount): New function
17070 is a copy of libgomp/config/linux/proc.c.
17071 (init_num_threads): Likewise.
17072 (run_gcc): Automatically detect core count for -flto.
17073 (jobserver_active_p): New function.
17074
17075 2019-07-30 Richard Biener <rguenther@suse.de>
17076
17077 PR tree-optimization/91257
17078 * bitmap.h (bitmap_ior_into_and_free): Declare.
17079 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17080 whether to add the unliked element to the freelist.
17081 (bitmap_list_insert_element_after): Add defaulted param for
17082 an already allocated element.
17083 (bitmap_ior_into_and_free): New function.
17084 * tree-ssa-structalias.c (condense_visit): Reduce the
17085 ponts-to and edge bitmaps of the SCC members in a
17086 logarithmic fashion rather than all to one.
17087
17088 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17089
17090 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17091 parameter. When nonnull, make sure that the addition or subtraction
17092 has the same condition.
17093 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17094 for CFN_COND_MUL too.
17095
17096 2019-07-30 Richard Biener <rguenther@suse.de>
17097
17098 PR tree-optimization/91291
17099 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17100 constant values.
17101
17102 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17103
17104 PR middle-end/91216
17105 * omp-low.c (global_nonaddressable_vars): New variable.
17106 (use_pointer_for_field): For global decls, if they are non-addressable,
17107 remember it in the global_nonaddressable_vars bitmap, if they are
17108 addressable and in the global_nonaddressable_vars bitmap, ignore their
17109 TREE_ADDRESSABLE bit.
17110 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17111 vars in global_nonaddressable_vars bitmap.
17112 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17113
17114 PR target/91150
17115 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17116 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17117 comparison to unsigned HOST_WIDE_INT before shifting it left.
17118
17119 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17120
17121 * config/i386/i386.md (movstrict<mode>): Use register_operand
17122 predicate for operand 0. Add expander condition. Assert that
17123 operand 0 is a SUBREG RTX.
17124 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17125 Update operand constraints and insn condition.
17126 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17127 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17128 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17129 Update operand 0 constraints.
17130 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17131
17132 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17133
17134 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17135 when -m{code,data}-region are used without -mlarge.
17136 * config/msp430/msp430.c (msp430_option_override): Error when a
17137 non-default code or data region is used without -mlarge.
17138 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17139 attributes when they are used without -mlarge.
17140
17141 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17142
17143 PR target/70320
17144 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17145
17146 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17147
17148 PR middle-end/91242
17149 * wide-int.h (generic_wide_int::sext_elt): New function.
17150 * inchash.h (hash::add_wide_int): Use it instead of elt.
17151
17152 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17153
17154 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17155 CODE_FOR_arm_##.
17156 * config/arm/arm.md (<crc_variant>): Rename to...
17157 (arm_<crc_variant>): ... This.
17158 (<cdp>): Rename to...
17159 (arm_<cdp>): ... This.
17160 (<ldc>): Rename to...
17161 (arm_<ldc>): ... This.
17162 (<stc>): Rename to...
17163 (arm_<stc>): ... This.
17164 (<mcr>): Rename to...
17165 (arm_<mcr>): ... This.
17166 (<mrc>): Rename to...
17167 (arm_<mrc>): ... This.
17168 (<mcrr>): Rename to...
17169 (arm_<mcrr>): ... This.
17170 (<mrrc>): Rename to...
17171 (arm_<mrrc>): ... This.
17172
17173 2019-07-29 Richard Biener <rguenther@suse.de>
17174
17175 PR tree-optimization/91257
17176 * tree-ssa-sccvn.h (struct vn_avail): New.
17177 (struct vn_ssa_aux): Add avail member.
17178 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17179 member, add m_avail_freelist one.
17180 (rpo_elim::~rpo_elim): Remove.
17181 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17182 data structure.
17183 (rpo_elim::eliminate_push_avail): Likewise.
17184 (do_unwind): Likewise.
17185 (do_rpo_vn): Likewise.
17186
17187 2019-07-29 Richard Biener <rguenther@suse.de>
17188
17189 PR tree-optimization/91257
17190 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17191 most cases, instead call compare_values which handles the
17192 symbolic ranges we handle specially.
17193 (compare_values_warnv): Do not call operand_less_p but open-code
17194 the effective fold calls. Avoid converting so much.
17195
17196 2019-07-29 Martin Liska <mliska@suse.cz>
17197
17198 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17199 remove LHS of operator new call. It's handled latter.
17200
17201 2019-07-29 Richard Biener <rguenther@suse.de>
17202
17203 PR tree-optimization/91267
17204 * vr-values.c (vr_values::update_value_range): Add early return
17205 for effectively VARYING lattice entry.
17206
17207 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17208
17209 PR debug/86638
17210 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17211 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17212 necessary if keep_all_vdefs_p is true.
17213 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17214 that keep_all_vdefs_p is false.
17215 (mark_all_reaching_defs_necessary): Likewise.
17216 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17217
17218 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17219
17220 * common.opt (Og): Change the initial value of flag_dse to 0.
17221 * opts.c (default_options_table): Move OPT_ftree_dse from
17222 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
17223 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
17224 entry before the OPT_ftree_sra entry.
17225 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17226 of flags disabled by Og.
17227
17228 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17229
17230 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17231 variables for -Og.
17232
17233 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17234
17235 * doc/sourcebuild.texi (check-function-bodies): Document.
17236
17237 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17238
17239 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17240 VEC_DUPLICATE of a fixed-length vector even if the result
17241 is variable-length. Likewise fold a duplicate of a
17242 variable-length vector if the variable-length vector is
17243 itself a duplicate of a fixed-length sequence.
17244 (test_vector_ops_duplicate): Test more cases.
17245
17246 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17247
17248 * vector-builder.h (vector_builder): Add a shape template parameter.
17249 (vector_builder::new_unary_operation): New function, generalizing
17250 the old tree_vector_builder function.
17251 (vector_builder::new_binary_operation): Likewise.
17252 (vector_builder::binary_encoded_nelts): Likewise.
17253 * int-vector-builder.h (int_vector_builder): Update template
17254 parameters to vector_builder.
17255 (int_vector_builder::shape_nelts): New function.
17256 * rtx-vector-builder.h (rtx_vector_builder): Update template
17257 parameters to vector_builder.
17258 (rtx_vector_builder::shape_nelts): New function.
17259 (rtx_vector_builder::nelts_of): Likewise.
17260 (rtx_vector_builder::npatterns_of): Likewise.
17261 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17262 * tree-vector-builder.h (tree_vector_builder): Update template
17263 parameters to vector_builder.
17264 (tree_vector_builder::shape_nelts): New function.
17265 (tree_vector_builder::nelts_of): Likewise.
17266 (tree_vector_builder::npatterns_of): Likewise.
17267 (tree_vector_builder::nelts_per_pattern_of): Likewise.
17268 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
17269 (tree_vector_builder::new_binary_operation): Delete.
17270 (tree_vector_builder::binary_encoded_nelts): Likewise.
17271 * simplify-rtx.c: Include rtx-vector-builder.h.
17272 (distributes_over_addition_p): New function.
17273 (simplify_const_unary_operation)
17274 (simplify_const_binary_operation): Generalize handling of vector
17275 constants to include variable-length vectors.
17276 (test_vector_ops_series): Add more tests.
17277
17278 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
17279
17280 PR lto/91222
17281 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
17282 than INDENTIFIER_POINTER.
17283
17284 2019-07-28 Martin Liska <mliska@suse.cz>
17285
17286 PR ipa/89330
17287 * cgraph.c (symbol_table::create_edge): Always allocate
17288 a cgraph_edge.
17289 (symbol_table::free_edge): Store summary_id to
17290 edge_released_summary_ids if != -1;
17291 * cgraph.h (NEXT_FREE_NODE): Remove.
17292 (SET_NEXT_FREE_NODE): Likewise.
17293 (NEXT_FREE_EDGE): Likewise.
17294 (symbol_table::release_symbol): Store summary_id to
17295 cgraph_released_summary_ids if != -1;
17296 (symbol_table::allocate_cgraph_symbol): Always allocate
17297 a cgraph_node.
17298
17299 2019-07-28 Alan Modra <amodra@gmail.com>
17300
17301 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
17302 gen_sibcall.
17303
17304 2019-07-28 Alan Modra <amodra@gmail.com>
17305
17306 PR target/91135
17307 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
17308 define.
17309 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
17310 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
17311 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
17312
17313 2019-07-28 Alan Modra <amodra@gmail.com>
17314
17315 PR target/91050
17316 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
17317 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
17318 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
17319 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
17320 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
17321 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
17322 in asm_default spec.
17323 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
17324 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
17325
17326 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
17327
17328 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
17329
17330 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17331
17332 PR target/89517
17333 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
17334 * config/aarch64/aarch64-option-extensions.def: Add new comments
17335 and restore easier to read options.
17336
17337 2019-07-26 Tamar Christina <tamar.christina@arm.com>
17338
17339 * convert.c (convert_to_real_1): Move part of conversion code...
17340 * match.pd: ...To here.
17341
17342 2019-07-26 Martin Jambor <mjambor@suse.cz>
17343
17344 PR ipa/89330
17345 * ipa-inline-transform.c (check_speculations_1): New function.
17346 (push_all_edges_in_set_to_vec): Likewise.
17347 (check_speculations): Use check_speculations_1, new parameter
17348 new_edges.
17349 (inline_call): Pass new_edges to check_speculations.
17350 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
17351 NULL.
17352 (speculation_useful_p): Early return true if edge is inlined, remove
17353 later checks for inline_failed.
17354
17355 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
17356
17357 PR rtl-optimization/91223
17358 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
17359 matching with INOUT operand.
17360
17361 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17362
17363 * stmt.c (expand_case): Try to narrow the index type if it's larger
17364 than a word. Tidy up.
17365
17366 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
17367
17368 * cif-code.def (NEVER_CALL): New code.
17369 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
17370 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
17371
17372 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
17373
17374 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
17375 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17376
17377 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17378
17379 * ipa-devirt.c (add_type_duplicate): Fix return value.
17380
17381 2019-07-25 Richard Biener <rguenther@suse.de>
17382
17383 * tree-vrp.c (extract_range_from_multiplicative_op): Add
17384 type parameter and use it instead of guessing expression
17385 type from the first operand.
17386 (extract_range_from_binary_expr): Pass expr_type down.
17387
17388 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17389
17390 * config/arm/arm.md (SATrev): Change to code attribute.
17391 (*satsi_<SAT:code>): Adjust for the above.
17392 (*satsi_<SAT:code>_shift): Likewise.
17393
17394 2019-07-25 Richard Biener <rguenther@suse.de>
17395
17396 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
17397 Make value_range * temporary const.
17398 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
17399 Likewise.
17400 (evrp_range_analyzer::record_ranges_from_): Likewise.
17401 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
17402 deal with having recorded a const one.
17403 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
17404 Return a const value_range *.
17405 (evrp_range_analyzer::pop_value_range): Likewise.
17406 (evrp_range_analyzer::stack): Record const value_range *s.
17407 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
17408 Adjust.
17409 * gimple-ssa-sprintf.c (get_int_range): Likewise.
17410 (format_integer): Likewise.
17411 (sprintf_dom_walker::handle_gimple_call): Likewise.
17412 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
17413 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
17414 (vrp_prop::get_value_range): Adjust.
17415 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
17416 modifying the lattice in-place.
17417 (vrp_prop::visit_stmt): Likewise.
17418 * vr-values.c (vr_values::get_lattice_entry): New private method.
17419 (vr_values::get_value_range): Wrap it and return a const
17420 value_range *.
17421 (vr_values::set_def_to_varying): New.
17422 (vr_values::set_defs_to_varying): Use it.
17423 (vr_values::update_value_range): Likewise.
17424 (vr_values::vrp_stmt_computes_nonzero): Adjust.
17425 (values::op_with_constant_singleton_va): Likewise.
17426 (vr_values::extract_range_for_var_from_co): Likewise.
17427 (vr_values::extract_range_from_ssa_name): Likewise.
17428 (vr_values::extract_range_from_cond_expr): Likewise.
17429 (vr_values::extract_range_basic): Likewise.
17430 (compare_ranges): Take const value_range *, adjust.
17431 (compare_range_with_value): Likewise.
17432 (vrp_valueize): Adjust.
17433 (vrp_valueize_1): Likewise.
17434 (vr_values::get_vr_for_comparison): Return a const value_range *.
17435 (vr_values::compare_name_with_value): Adjust.
17436 (vr_values::compare_names): Likewise.
17437 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17438 Likewise.
17439 (vr_values::vrp_evaluate_conditional): Likewise.
17440 (find_case_label_ranges): Take a const value_range *.
17441 (vr_values::vrp_visit_switch_stmt): Adjust.
17442 (vr_values::extract_range_from_phi_node): Likewise.
17443 (vr_values::simplify_div_or_mod_using_ran): Likewise.
17444 (vr_values::simplify_abs_using_ranges): Likewise.
17445 (test_for_singularity): Take a const value_range *.
17446 (range_fits_type_p): Likewise.
17447 (vr_values::simplify_cond_using_ranges_1): Adjust.
17448 (vr_values::simplify_cond_using_ranges_2): Likewise.
17449 (vr_values::simplify_switch_using_ranges): Likewise.
17450 (vr_values::simplify_float_conversion_usi): Likewise.
17451 (vr_values::two_valued_val_range_p): Likewise.
17452 * vr-values.h (vr_values::get_value_range): Return a const
17453 value_range *.
17454 (vr_values::set_def_to_varying): New.
17455 (vr_values::get_lattice_entry): New private method.
17456 (vr_values::get_vr_for_comparison): Return a const value_range *.
17457
17458 2019-07-25 Martin Liska <mliska@suse.cz>
17459 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
17460
17461 PR c++/23383
17462 * common.opt: Add -fallocation-dce
17463 * gimple.c (gimple_call_operator_delete_p): New.
17464 * gimple.h (gimple_call_operator_delete_p): Likewise.
17465 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
17466 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
17467 DECL_IS_OPERATOR_DELETE_P.
17468 (mark_all_reaching_defs_necessary_1): Likewise.
17469 (propagate_necessity): Likewise.
17470 (eliminate_unnecessary_stmts): Handle
17471 gimple_call_operator_delete_p.
17472 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
17473 Add packing of OPERATOR_DELETE.
17474 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
17475 Similarly here.
17476 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
17477 (DECL_SET_IS_OPERATOR_DELETE): New.
17478 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
17479
17480 2019-07-25 Martin Liska <mliska@suse.cz>
17481
17482 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
17483 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
17484 * coverage.c (coverage_begin_function): Likewise.
17485 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
17486 * gimple.c (gimple_call_nonnull_result_p): Likewise.
17487 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
17488 (sem_item::hash_referenced_symbol_properties): Likewise.
17489 * lto-streamer-out.c (hash_tree): Likewise.
17490 * predict.c (expr_expected_value_1): Likewise.
17491 * tree-inline.c (expand_call_inline): Likewise.
17492 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17493 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17494 * tree-core.h (enum function_decl_type): New enum.
17495 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
17496 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
17497 (set_function_decl_type): Likewise.
17498 (DECL_IS_OPERATOR_NEW_P): New.
17499 (DECL_SET_IS_OPERATOR_NEW): Likewise.
17500 (DECL_LAMBDA_FUNCTION): Likewise.
17501 (DECL_LAMBDA_FUNCTION_P): Likewise.
17502 (DECL_IS_OPERATOR_NEW): Remove.
17503 (DECL_SET_LAMBDA_FUNCTION): Likewise.
17504
17505 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
17506
17507 * ipa-profile.c (get_most_common_single_value): Use
17508 get_nth_most_common_value.
17509 * profile.c (sort_hist_value): New function.
17510 (compute_value_histograms): Call sort_hist_value to sort the
17511 values after loading from disk.
17512 * value-prof.c (get_most_common_single_value): Rename to ...
17513 get_nth_most_common_value. Add input params n, return
17514 the n_th value and count.
17515 (gimple_divmod_fixed_value_transform): Use
17516 get_nth_most_common_value.
17517 (gimple_ic_transform): Likewise.
17518 (gimple_stringops_transform): Likewise.
17519 * value-prof.h (get_most_common_single_value): Add input params
17520 n, default to 0.
17521
17522 2019-07-25 Richard Biener <rguenther@suse.de>
17523
17524 PR tree-optimization/91236
17525 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17526 size of CONSTRUCTOR write. Fix buffer size we pass to
17527 native_encode_expr.
17528
17529 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17530
17531 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
17532 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
17533 r273773.
17534
17535 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17536
17537 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
17538 explicitly disabled with --disable-initfini-array.
17539
17540 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17541
17542 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
17543 if-exists.
17544
17545 2019-07-24 Martin Sebor <msebor@redhat.com>
17546
17547 PR tree-optimization/91183
17548 PR tree-optimization/86688
17549 * builtins.c (compute_objsize): Handle MEM_REF.
17550 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
17551 (get_min_string_length): Remove.
17552 (count_nonzero_bytes): New function.
17553 (handle_char_store): Rename...
17554 (handle_store): to this. Handle multibyte stores via integer types.
17555 (strlen_check_and_optimize_stmt): Adjust conditional and the called
17556 function name.
17557
17558 2019-07-24 Martin Sebor <msebor@redhat.com>
17559
17560 PR driver/80545
17561 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
17562 (diagnostic_report_diagnostic): Same.
17563 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
17564 (diagnostic_context::lang_mask): New data member.
17565 * ipa-pure-const.c (suggest_attribute): Use
17566 lang_hooks.option_lang_mask ().
17567 * opts-common.c (option_enabled): Handle new argument.
17568 (get_option_state): Pass an additional argument.
17569 * opts.c (print_filtered_help): Print supported languages for
17570 unsupported options. Adjust printing of current state.
17571 * opts.h (option_enabled): Add argument.
17572 * toplev.c (print_switch_values): Use lang_mask.
17573 (general_init): Set global_dc->lang_mask.
17574
17575 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17576
17577 PR bootstrap/87030
17578 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
17579
17580 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
17581
17582 * cgraphunit.c (symbol_table::compile): Start and stop
17583 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
17584 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
17585
17586 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
17587
17588 * gimplify.c (flag_instrument_functions_exclude_p): Include
17589 namespace/class information in the printable name.
17590 * opts.c (add_comma_separated_to_vector): Add NUL terminator
17591 to tokens entered into the vector.
17592
17593 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
17594
17595 * tree-nested.c (build_simple_mem_ref_notrap): New function.
17596 (get_static_chain): Call it instead of build_simple_mem_ref.
17597 (get_frame_field): Likewise.
17598 (get_nonlocal_debug_decl): Likewise.
17599 (convert_nonlocal_reference_op): Likewise.
17600
17601 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
17602
17603 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
17604 declaration.
17605 (arc_compute_frame_size): Millicode is disabled when compiling
17606 ISR.
17607 (arc_return_address_register): Likewise.
17608 (arc_compute_function_type): Likewise.
17609 (arc_compute_frame_size): Likewise.
17610 (secondary_reload_info): Likewise.
17611 (arc_get_unalign): Likewise.
17612 (arc_can_use_return_insn): Declare.
17613 * config/arc/arc.c (AUX_LP_START): Define
17614 (AUX_LP_END): Likewise.
17615 (arc_frame_info): Update gmask member to 64-bit datum.
17616 (GMASK_LEN): Update.
17617 (arc_compute_function_type): Make it static, move it forward.
17618 (arc_must_save_register): Update, consider the extra regs.
17619 (arc_compute_millicode_save_restore_regs): Update to use the 64
17620 bit gmask.
17621 (arc_compute_frame_size): Likewise.
17622 (arc_enter_leave_p): Likewise.
17623 (arc_save_callee_saves): Likewise.
17624 (arc_restore_callee_saves): Likewise.
17625 (arc_save_callee_enter): Likewise.
17626 (arc_restore_callee_leave): Likewise.
17627 (arc_save_callee_milli): Likewise.
17628 (arc_restore_callee_milli): Likewise.
17629 (arc_expand_prologue): Add new interrupt handling.
17630 (arc_return_address_register): Make it static, move it forward.
17631 (arc_expand_epilogue): Add new interrupt handling.
17632 (arc_get_unalign): Delete.
17633 (arc_epilogue_uses): Make sure we do not remove the extra
17634 saved/restored registers when interrupt.
17635 (arc_can_use_return_insn): New function.
17636 (push_reg): Likewise.
17637 (pop_reg): Likewise.
17638 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
17639 procedures.
17640 (arc_restore_callee_saves): Likewise, but restoring.
17641 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
17642 (R33_REG): Likewise.
17643 (R34_REG): Likewise.
17644 (R35_REG): Likewise.
17645 (R36_REG): Likewise.
17646 (R37_REG): Likewise.
17647 (R38_REG): Likewise.
17648 (R39_REG): Likewise.
17649 (R45_REG): Likewise.
17650 (R46_REG): Likewise.
17651 (R47_REG): Likewise.
17652 (R48_REG): Likewise.
17653 (R49_REG): Likewise.
17654 (R50_REG): Likewise.
17655 (R51_REG): Likewise.
17656 (R52_REG): Likewise.
17657 (R53_REG): Likewise.
17658 (R54_REG): Likewise.
17659 (R55_REG): Likewise.
17660 (R56_REG): Likewise.
17661 (R58_REG): Likewise.
17662 (type): Add rtie attribute.
17663 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
17664 (movsi_insn): Accept moves to lp_count.
17665 (rtie): Update pattern.
17666 (simple_return): Simplify it, don't use this pattern as a return
17667 from an interrupt.
17668 (arc600_rtie): New pattern.
17669 (p_return_i): Clean up.
17670 (return): Likewise.
17671 * config/arc/builtins.def (rtie): Only available for non ARC6xx
17672 family CPUs.
17673 * config/arc/predicates.md (move_src_operand): Consider lp_count
17674 as a register.
17675
17676 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
17677
17678 * config/s390/predicates.md (addv_const_operand): New predicate.
17679 * config/s390/s390-modes.def (CCO): New condition code mode.
17680 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
17681 (s390_branch_condition_mask): Likewise.
17682 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
17683 ("mulv<mode>4"): New expanders.
17684 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
17685 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
17686 pattern definitions.
17687
17688 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17689
17690 PR middle-end/91166
17691 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
17692 (define_predicates): Add entry for uniform_vector_p.
17693 (vec_same_elem_p): New match pattern.
17694
17695 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
17696
17697 PR bootstrap/87030
17698 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
17699 * config/i386/darwin32-biarch.h .. to here.
17700 * config/i386/darwin64-biarch.h: Adjust comments.
17701 * config/rs6000/darwin32-biarch.h: Likewise.
17702 * config/rs6000/darwin64-biarch.h: Likewise.
17703 * config.gcc: Missed commit from r273746
17704 (*-*-darwin*): Don't include CPU t-darwin here.
17705 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
17706 an error message if i686-darwin configuration is attempted for
17707 Darwin >= 18.
17708
17709 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
17710
17711 PR bootstrap/87030
17712 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
17713 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
17714 an error message if i686-darwin configuration is attempted for
17715 Darwin >= 18.
17716 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
17717 (powerpc-*-darwin*): Use biarch files where needed.
17718 (powerpc64-*-darwin*): Likewise.
17719 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
17720 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
17721 arch case.
17722 * config/i386/darwin32-biarch.h: New.
17723 * config/i386/darwin64.h: Rename.
17724 * config/i386/darwin64-biarch.h: To this.
17725 * config/i386/t-darwin: Rename.
17726 * config/i386/t-darwin32-biarch: To this.
17727 * config/i386/t-darwin64: Rename.
17728 * config/i386/t-darwin64-biarch: To this.
17729 * config/rs6000/darwin32-biarch.h: New.
17730 * config/rs6000/darwin64.h: Rename.
17731 * config/rs6000/darwin64-biarch.h: To this.
17732 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
17733 arch case.
17734 * config/rs6000/t-darwin8: Rename.
17735 * config/rs6000/t-darwin32-biarch: To this.
17736 * config/rs6000/t-darwin64 Rename.
17737 * config/rs6000/t-darwin64-biarch: To this.
17738
17739 2019-07-23 Martin Sebor <msebor@redhat.com>
17740
17741 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
17742
17743 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
17744
17745 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
17746 (rh): New alias for it.
17747
17748 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
17749
17750 * gdbhooks.py: Pass replace=True to
17751 gdb.printing.register_pretty_printer.
17752
17753 2019-07-23 Richard Biener <rguenther@suse.de>
17754
17755 PR debug/91231
17756 * lto-streamer-in.c (input_function): Drop inline-entry markers
17757 that ended up with an unknown location block.
17758
17759 2019-07-23 Richard Biener <rguenther@suse.de>
17760
17761 PR tree-optimization/83518
17762 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
17763 init from a constant even when partial defs are already recorded.
17764
17765 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17766
17767 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
17768 * config/i386/znver1.md: Enable patterns for znver2 and add store
17769 variants which use extra AGU unit.
17770
17771 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17772
17773 * config/i386/i386-options.c (ix86_option_override_internal): Default
17774 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
17775 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
17776 for ZNVER2.
17777
17778 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
17779
17780 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
17781 (znver2_costs): Update 256 bit SSE costs and multiplication.
17782
17783 2019-07-23 Jan Beulich <jbeulich@suse.com>
17784
17785 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
17786 Require only AVX512F.
17787 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
17788 alternative expanding to vpternlog.
17789
17790 2019-07-23 Martin Liska <mliska@suse.cz>
17791
17792 * dwarf2out.c (gen_producer_string): Canonize -flto=N
17793 to -flto in dwarf producer string.
17794
17795 2019-07-23 Richard Biener <rguenther@suse.de>
17796
17797 * tree-cfg.c (label_for_bb): Remove global var.
17798 (main_block_label): Take label_for_bb as argument.
17799 (cleanup_dead_labels_eh): Likewise, adjust.
17800 (cleanup_dead_labels): Adjust.
17801
17802 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
17803
17804 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
17805 Configurations): Add documentation for __builtin_mtfsf.
17806
17807 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
17808
17809 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
17810 * config/riscv/riscv.c (riscv_constant_alignment): Use
17811 riscv_align_data_type.
17812 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
17813 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
17814 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
17815 * config/riscv/riscv.opt (malign-data): New.
17816 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
17817
17818 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
17819
17820 * cgraph.c (dump_graphviz): New function.
17821 * cgraph.h (dump_graphviz): New function.
17822 * symtab.c (dump_graphviz): New function.
17823
17824 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
17825
17826 * config/aarch64/aarch64-simd.md
17827 (*aarch64_simd_sra<mode>): New.
17828 * config/aarch64/iterators.md
17829 (SHIFTRT): New iterator.
17830 (sra_op): New attribute.
17831
17832 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17833
17834 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
17835 callee-saved regs R4->R10 in an interrupt function that calls another
17836 function.
17837
17838 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
17839
17840 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
17841 (_mm_blendv_epi8): New.
17842
17843 2019-07-22 Richard Biener <rguenther@suse.de>
17844
17845 PR tree-optimization/91221
17846 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
17847 restrict partial-def handling of empty constructors and
17848 memset to refs with known offset.
17849
17850 2019-07-22 Jan Beulich <jbeulich@suse.com>
17851
17852 * config/i386/sse.md (ternlogsuffix): New.
17853 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
17854 AVX512F is in use.
17855 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
17856
17857 2019-07-22 Martin Liska <mliska@suse.cz>
17858
17859 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
17860 comment.
17861 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
17862
17863 2019-07-22 Martin Liska <mliska@suse.cz>
17864
17865 * lto-section-in.c (lto_get_section_data):
17866 Use new function get_compression.
17867 * lto-streamer-out.c (produce_lto_section): Use
17868 set_compression to encode compression algorithm.
17869 * lto-streamer.h (struct lto_section): Do not
17870 use bitfields in the format.
17871
17872 2019-07-22 Martin Liska <mliska@suse.cz>
17873
17874 PR driver/91172
17875 * opts-common.c (decode_cmdline_option): Decode
17876 argument of -Werror and check it for a wrong language.
17877 * opts-global.c (complain_wrong_lang): Remove such case.
17878
17879 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
17880
17881 * config/arc/arc.c (prepare_move_operands): Always use an
17882 intermediate register when storing a TLS symbols.
17883
17884 2019-07-22 Stafford Horne <shorne@gmail.com>
17885
17886 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
17887 force_reg.
17888
17889 2019-07-22 Stafford Horne <shorne@gmail.com>
17890
17891 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
17892 and munordered-float validations.
17893 * config/or1k/constraints.md (d): New register constraint.
17894 * config/or1k/predicates.md (fp_comparison_operator): New.
17895 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
17896 operands.
17897 (or1k_expand_compare): Normalize unordered comparisons.
17898 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
17899 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
17900 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
17901 * config/or1k/or1k.md (type): Add fpu.
17902 (fpu): New instruction reservation.
17903 (F, f, fr, fi, FI, FOP, fop): New.
17904 (<fop><F:mode>3): New ALU instruction definition.
17905 (float<fi><F:mode>2): New conversion instruction definition.
17906 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
17907 (fpcmpcc): New code iterator.
17908 (*sf_fp_insn): New instruction definition.
17909 (cstore<F:mode>4): New expand definition.
17910 (cbranch<F:mode>4): New expand definition.
17911 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
17912 munordered-float): New options.
17913 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
17914 munordered-float.
17915
17916 2019-07-22 Stafford Horne <shorne@gmail.com>
17917
17918 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
17919 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
17920 documenation to be more clear.
17921 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
17922 more clear.
17923 * config/or1k/or1k.opt (mrori): New option.
17924 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
17925 msfimm, mshftimm): Rewrite documentation to be more clear.
17926 * config/or1k/or1k.md (insn_support): Add ror and rori.
17927 (enabled): Add conditions for ror and rori.
17928 (rotrsi3): Replace condition for shftimm with ror and rori.
17929
17930 2019-07-22 Stafford Horne <shorne@gmail.com>
17931
17932 PR target/90363
17933 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
17934 (extend<mode>si2): Update predicate.
17935 * config/or1k/predicates.md (volatile_mem_operand): New.
17936 (reg_or_mem_operand): New.
17937
17938 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
17939
17940 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
17941 * config/rs6000/rs6000-call.c: ... to here.
17942
17943 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17944
17945 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
17946 memory.
17947
17948 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17949
17950 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
17951
17952 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17953
17954 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
17955
17956 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17957
17958 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
17959 (any_memory_operand): New predicate.
17960 (reg_or_mem_operand): Use it.
17961
17962 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17963
17964 PR target/91204
17965 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
17966
17967 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
17968
17969 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
17970 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
17971
17972 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17973
17974 * tree.def (OMP_LOOP): New tree code.
17975 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
17976 (enum omp_clause_bind_kind): New enum.
17977 (struct tree_omp_clause): Add subcode.bind_kind.
17978 * tree.h (OMP_LOOP_CHECK): Rename to ...
17979 (OMP_LOOPING_CHECK): ... this.
17980 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
17981 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
17982 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
17983 (OMP_CLAUSE_BIND_KIND): Define.
17984 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17985 bind clause entries.
17986 (walk_tree_1): Handle OMP_CLAUSE_BIND.
17987 * tree-pretty-print.c (dump_omp_clause): Likewise.
17988 (dump_generic_node): Handle OMP_LOOP.
17989 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
17990 (in_omp_construct): New variable.
17991 (is_gimple_stmt): Handle OMP_LOOP.
17992 (gimplify_scan_omp_clauses): For lastprivate don't set
17993 check_non_private if code == OMP_LOOP. For reduction clause
17994 on OMP_LOOP combined with parallel or teams propagate as shared
17995 on the combined construct. Handle OMP_CLAUSE_BIND.
17996 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
17997 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
17998 for constructs from a loop construct to gimplify_scan_omp_clauses.
17999 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18000 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18001 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18002 to match the implicit ORT_TARGET construct around whole body.
18003 Temporarily clear in_omp_construct when processing body.
18004 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18005 etc. temporarily set in_omp_construct when processing body.
18006 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18007 * omp-low.c (struct omp_context): Add loop_p.
18008 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18009 in that the original var might be private.
18010 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18011 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18012 addition of loop construct.
18013 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18014
18015 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18016 lastprivate non-addressable iterator of a collapse(1) simd.
18017
18018 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18019
18020 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18021 as in rs6000.c.
18022
18023 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18024
18025 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18026 refer to default conditions. Warn for the 'y' spec which is ignored
18027 by current linkers.
18028
18029 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18030
18031 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18032 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18033 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18034 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18035 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18036 init_cumulative_args, rs6000_promote_function_mode,
18037 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18038 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18039 rs6000_function_arg_boundary, rs6000_parm_offset,
18040 rs6000_parm_start, rs6000_arg_size,
18041 rs6000_darwin64_record_arg_advance_flush,
18042 rs6000_darwin64_record_arg_advance_recurse,
18043 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18044 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18045 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18046 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18047 rs6000_finish_function_arg, rs6000_function_arg,
18048 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18049 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18050 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18051 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18052 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18053 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18054 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18055 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18056 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18057 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18058 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18059 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18060 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18061 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18062 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18063 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18064 get_element_number, altivec_expand_vec_set_builtin,
18065 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18066 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18067 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18068 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18069 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18070 rs6000_expand_builtin, rs6000_vector_type,
18071 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18072 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18073 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18074 to rs6000-call.c.
18075 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18076 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18077 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18078 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18079 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18080 init_cumulative_args, rs6000_promote_function_mode,
18081 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18082 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18083 rs6000_function_arg_boundary, rs6000_parm_offset,
18084 rs6000_parm_start, rs6000_arg_size,
18085 rs6000_darwin64_record_arg_advance_flush,
18086 rs6000_darwin64_record_arg_advance_recurse,
18087 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18088 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18089 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18090 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18091 rs6000_finish_function_arg, rs6000_function_arg,
18092 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18093 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18094 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18095 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18096 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18097 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18098 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18099 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18100 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18101 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18102 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18103 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18104 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18105 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18106 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18107 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18108 get_element_number, altivec_expand_vec_set_builtin,
18109 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18110 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18111 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18112 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18113 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18114 rs6000_expand_builtin, rs6000_vector_type,
18115 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18116 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18117 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18118 to here from rs6000.c.
18119 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18120 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18121 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18122 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18123 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18124 rs6000_return_in_memory, rs6000_return_in_msb,
18125 rs6000_pass_by_reference, setup_incoming_varargs,
18126 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18127 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18128 rs6000_function_arg_padding, rs6000_function_arg,
18129 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18130 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18131 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18132 rs6000_passes_long_double, rs6000_passes_vector,
18133 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18134 altivec_builtin_mask_for_load) Add declarations.
18135 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18136 * config/config.gcc: Add new source file rs6000-call.c to garbage
18137 collector and extra_objs.
18138
18139 2019-07-19 Jeff Law <law@redhat.com>
18140
18141 PR tree-optimization/86061
18142 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18143 strncpy. Drop some trivial dead code.
18144 (maybe_trim_memstar_call): Handle strncpy.
18145
18146 2019-07-19 Richard Biener <rguenther@suse.de>
18147
18148 PR tree-optimization/91211
18149 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18150 memset encoding size.
18151
18152 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18153
18154 PR target/91204
18155 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18156
18157 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18158
18159 PR ipa/91194
18160 * ipa-inline.c (recursive_inlining): Fix limits check.
18161
18162 2019-07-19 Richard Biener <rguenther@suse.de>
18163
18164 PR tree-optimization/91200
18165 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18166 no PHI nodes in middle-bb.
18167
18168 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18169
18170 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18171 to +sve-bitperm.
18172 * config/aarch64/aarch64-option-extensions.def: Likewise.
18173
18174 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18175
18176 PR middle-end/91190
18177 * function.c (insert_temp_slot_address): Store into the hash table
18178 a copy of address to avoid RTL sharing issues.
18179
18180 2019-07-19 Richard Biener <rguenther@suse.de>
18181
18182 PR tree-optimization/91207
18183 Revert
18184 2019-07-17 Richard Biener <rguenther@suse.de>
18185
18186 PR tree-optimization/91178
18187 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18188 loads with a gap larger than the vector size always use
18189 VMAT_STRIDED_SLP.
18190 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18191 avoid loading vectors that are only contained in the gap
18192 and thus are not needed.
18193
18194 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18195
18196 * config/i386/i386.md (*addqi_2_slp): Remove.
18197 (*<code>qi_2_slp): Ditto.
18198
18199 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18200
18201 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18202 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18203 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18204 Rename function from rs6000_prefixed_address.
18205 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18206 TARGET_HAS_TOC.
18207 (TARGET_TOC): Likewise.
18208 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18209 rs6000.h.
18210 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18211 TARGET_HAS_TOC.
18212 (TARGET_TOC): Likewise.
18213 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18214 rs6000.h.
18215 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18216 TARGET_HAS_TOC.
18217 (TARGET_TOC): Likewise.
18218 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18219 check to require -mcmodel=medium for pc-relative addressing.
18220 (create_TOC_reference): Add assertion for TARGET_TOC.
18221 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18222 TARGET_NO_TOC.
18223 (rs6000_emit_move): Likewise.
18224 (TOC_alias_set): Rename TOC alias set static variable from 'set'
18225 to 'TOC_alias_set'.
18226 (get_TOC_alias_set): Likewise.
18227 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18228 TARGET_NO_TOC.
18229 (rs6000_can_eliminate): Likewise.
18230 (rs6000_prefixed_address_mode_p): Rename function from
18231 rs6000_prefixed_address.
18232 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18233 TARGET_HAS_TOC and not pc-relative.
18234 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18235 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18236 TARGET_HAS_TOC.
18237 (TARGET_TOC): Likewise.
18238 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18239 rs6000.h.
18240
18241 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18242
18243 PR target/91188
18244 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18245 for operand 0. Do not use (match_dup) to match operand 1 with
18246 operand 0. Add check in insn constraint that either input operand
18247 matches operand 0. Use SWI12 mode iterator to also handle
18248 HImode operands.
18249 (*and<mode>_1_slp): Ditto.
18250 (*<code>qi_1_slp): Ditto.
18251 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18252 Do not use (match_dup) to match operand 1 with operand 0. Add
18253 check in insn constraint that operand 1 matches operand 0.
18254 Use SWI12 mode iterator to also handle HImode operands.
18255 (*ashl<mode>3_1_slp): Ditto.
18256 (*<shift_insn><mode>3_1_slp): Ditto.
18257 (*<rotate_insn><mode>3_1_slp): Ditto.
18258
18259 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18260
18261 * config/arm/arm-builtins.c
18262 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18263 (arm_expand_unop_builtin): Likewise.
18264 * config/arm/crypto.md
18265 (crypto_sha1h): Convert from define_insn to define_expand.
18266 (crypto_<crypto_pattern>): Likewise.
18267 (crypto_sha1h_lb): New define_insn.
18268 (crypto_<crypto_pattern>_lb): Likewise.
18269
18270 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18271
18272 PR target/90317
18273 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18274 (vsha1cq_u32): Likewise.
18275 (vsha1pq_u32): Likewise.
18276 (vsha1mq_u32): Likewise.
18277 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
18278 vec select.
18279 (crypto_sha1c): Correct vec select.
18280 (crypto_sha1m): Likewise.
18281 (crypto_sha1p): Likewise.
18282
18283 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
18284
18285 * config/arm/predicates.md (arm_borrow_operation): New predicate.
18286 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
18287 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
18288 (subdi_zesidi_zesidi): Likewise.
18289 (negdi2_compare, negdi2_insn): Likewise.
18290 (negdi_extensidi): Likewise.
18291 (negdi_zero_extendsidi): Likewise.
18292 (arm_cmpdi_insn): Likewise.
18293 (subsi3_carryin): Use arm_borrow_operation.
18294 (subsi3_carryin_const): Likewise.
18295 (subsi3_carryin_const0): Likewise.
18296 (subsi3_carryin_compare): Likewise.
18297 (subsi3_carryin_compare_const): Likewise.
18298 (subsi3_carryin_compare_const0): Likewise.
18299 (subsi3_carryin_shift): Likewise.
18300 (rsbsi3_carryin_shift): Likewise.
18301 (negsi2_carryin_compare): Likewise.
18302
18303 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
18304
18305 PR tree-optimization/91137
18306 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
18307 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
18308 Init, use and fini the above new field.
18309 (determine_base_object_1): New function.
18310 (determine_base_object): Reimplement using walk_tree.
18311
18312 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
18313
18314 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
18315 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
18316 CLEANUP_FORCE_FAST_DCE is set.
18317 * ifcvt.c (rest_of_handle_if_conversion): Pass
18318 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
18319 if-conversion succeeded.
18320
18321 2019-07-18 Richard Biener <rguenther@suse.de>
18322
18323 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
18324 branches to make code less indented.
18325
18326 2019-07-17 Alexandre Oliva <oliva@adacore.com>
18327
18328 PR middle-end/81824
18329 * attribs.c (decls_mismatched_attributes): Simplify the logic
18330 that avoids duplicates and false positives.
18331
18332 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
18333
18334 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
18335 data into data section when generating PIC code.
18336 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
18337 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
18338 generating code for SOM targets earlier than HP-UX 11. Otherwise,
18339 return 2 for SOM and 0 for other targets.
18340
18341 2019-07-17 Jeff Law <law@redhat.com>
18342
18343 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
18344 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
18345 avoid unexpected switch statement fallthru.
18346
18347 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18348
18349 * config/i386/i386.md (*add<dwi>3_doubleword):
18350 Remove redundant constraints.
18351 (*add<mode>_1): Ditto.
18352 (*addhi_1): Ditto.
18353 (*addqi_1): Ditto.
18354 (*addqi_1_slp): Ditto.
18355 (*add<mode>_2): Ditto.
18356 (*addv<mode>4): Ditto.
18357 (*sub<dwi>3_doubleword): Ditto.
18358 (*sub<mode>_1): Ditto.
18359 (*subqi_1_slp): Ditto.
18360 (*sub<mode>_2): Ditto.
18361 (*subv<mode>4): Ditto.
18362 (*sub<mode>_3): Ditto.
18363 (@add<mode>3_carry): Ditto.
18364 (@sub<mode>3_carry): Ditto.
18365 (*add<mode>3_cc_overflow_1): Ditto.
18366 (*add<mode>3_zext_cc_overflow_2): Ditto.
18367 (*anddi_1): Ditto.
18368 (*and<mode>_1): Ditto.
18369 (*andqi_1): Ditto.
18370 (*andqi_1_slp): Ditto.
18371 (*anddi_2): Ditto.
18372 (*andqi_2_maybe_si): Ditto.
18373 (*and<mode>_2): Ditto.
18374 (*andqi_2_slp): Ditto.
18375 (*<code><mode>_1): Ditto.
18376 (*<code>qi_1): Ditto.
18377 (*<code>qi_1_slp): Ditto.
18378 (*<code><mode>_2): Ditto.
18379 (*<code>qi_2_slp): Ditto.
18380
18381 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
18382
18383 * alias.c (record_component_aliases): Do not simplify pointed-to
18384 types of ODR types.
18385
18386 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
18387
18388 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
18389 partial reg stall on alternative 2.
18390
18391 2019-07-17 Richard Biener <rguenther@suse.de>
18392
18393 PR tree-optimization/91178
18394 * tree-ssa.c (release_defs_bitset): Iterate from higher to
18395 lower SSA names to avoid quadratic behavior in the common case.
18396 * tree-data-ref.c (split_constant_offset): Add limit argument
18397 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18398 (split_constant_offset_1): Add limit argument and use it to
18399 limit SSA def walking. Optimize the common plus/minus case.
18400
18401 2019-07-17 Richard Biener <rguenther@suse.de>
18402
18403 PR tree-optimization/91178
18404 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18405 loads with a gap larger than the vector size always use
18406 VMAT_STRIDED_SLP.
18407 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18408 avoid loading vectors that are only contained in the gap
18409 and thus are not needed.
18410
18411 2019-07-17 Richard Biener <rguenther@suse.de>
18412
18413 PR tree-optimization/91180
18414 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
18415 computation for memset partial defs.
18416
18417 2019-07-17 Jakub Jelinek <jakub@redhat.com>
18418
18419 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
18420 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
18421 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
18422 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
18423 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
18424 * omp-grid.c (grid_process_grid_body,
18425 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
18426 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
18427 == GF_OMP_FOR_KIND_SIMD.
18428 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
18429 check_omp_nesting_restrictions, scan_omp_1_stmt,
18430 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
18431 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
18432 omp_find_scan): Likewise.
18433 * omp-expand.c (expand_omp_for): Likewise.
18434 * omp-general.c (omp_extract_for_data): Likewise.
18435
18436 PR tree-optimization/91157
18437 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
18438 a vector boolean with scalar mode.
18439 (expand_vector_condition): Handle first operand being a vector boolean
18440 with scalar mode.
18441 (expand_vector_operations_1): For comparisons, don't bail out early
18442 if the return type is vector boolean with scalar mode, but comparison
18443 operand type is not.
18444
18445 2019-07-17 Richard Biener <rguenther@suse.de>
18446
18447 PR tree-optimization/91181
18448 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
18449 IFN_LOADs as calls.
18450
18451 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
18452
18453 * config/i386/i386.md (*testdi_1): Match CCZmode for
18454 constants that might have the SImode sign bit set.
18455 (*testqi_1_maybe_si): Remove "!" constraint modifier.
18456 Use correct constraints for pentium pairing.
18457 (*test<mode>_1): Ditto.
18458
18459 2019-07-16 Jeff Law <law@redhat.com>
18460
18461 PR rtl-optimization/91173
18462 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
18463 SSA_NAME with a constant value, fold its value into the offset
18464 and clear the base before calling gen_addr_rtx.
18465
18466 2019-07-16 Jakub Jelinek <jakub@redhat.com>
18467
18468 PR rtl-optimization/91164
18469 * dse.c (rest_of_handle_dse): If dead edges have been purged,
18470 invalidate dominance info.
18471
18472 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18473
18474 * read-md.h (md_reader::record_potential_iterator_use): Add a
18475 file_location parameter.
18476 * read-rtl.c (attribute_use::loc): New field.
18477 (map_attr_string): Take a file_location parameter. Report cases
18478 in which attributes map to multiple distinct values.
18479 (apply_attribute_uses): Update call accordingly.
18480 (md_reader::handle_overloaded_name): Likewise.
18481 (md_reader::apply_iterator_to_string): Likewise. Skip empty
18482 nonnull strings.
18483 (record_attribute_use): Take a file_location parameter.
18484 Initialize attribute_use::loc.
18485 (md_reader::record_potential_iterator_use): Take a file_location
18486 parameter. Update call to record_attribute_use.
18487 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
18488 (rtx_reader::read_rtx_code): Likewise.
18489 (rtx_reader::read_rtx_operand): Likewise. Record a location
18490 for implicitly-expanded empty strings.
18491
18492 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18493
18494 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
18495 Use file_location instead of separate fields.
18496 (md_reader::set_md_ptr_loc): Take a file_location instead of a
18497 separate filename and line number.
18498 * read-md.c (ptr_loc): As above.
18499 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
18500 (md_reader::fprint_md_ptr_loc): Likewise.
18501 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
18502 instead of a separate filename and line number.
18503 (md_reader::read_string): Update call accordingly.
18504
18505 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18506
18507 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
18508 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
18509 leaving the choice between SFDF and P implicit.
18510 (*mov<mode>_update2): Likewise.
18511 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
18512 rather than leaving the choice betweem IBM128 and GPR implicit.
18513 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
18514 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
18515 QHSI implicit.
18516 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
18517 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
18518 * config/rs6000/vsx.md
18519 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
18520 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
18521 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
18522 and VSX_EXTRACT_I implicit.
18523
18524 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
18525
18526 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
18527 Explicitly use <MOVEP1:MODE> for the mode attribute.
18528
18529 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
18530
18531 PR bootstrap/91176
18532 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
18533
18534 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
18535
18536 PR target/91050
18537 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
18538 .machine directive.
18539
18540 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
18541
18542 * config/i386/i386.md (@test<mode>_ccno_1):
18543 Rename from test<mode>_ccno_1.
18544 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
18545 (*testqi_1_maybe_si): Remove modrm attribute.
18546 (*test<mode>_1): Ditto.
18547 * config/i386/i386-expand.c (ix86_split_idivmod): Use
18548 gen_test_ccno_1 and gen_extend_insn.
18549
18550 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
18551
18552 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
18553 to 0.
18554
18555 2019-07-15 Richard Biener <rguenther@suse.de>
18556
18557 PR middle-end/91162
18558 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
18559 node make sure to replace all uses with something valid.
18560
18561 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
18562
18563 PR tree-optimization/88497
18564 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
18565 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
18566 function undistribute_bitref_for_vector.
18567 (undistribute_bitref_for_vector): New function.
18568 (cleanup_vinfo_map): Likewise.
18569 (sort_by_mach_mode): Likewise.
18570
18571 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
18572
18573 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
18574 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
18575 and testdi_ccno_1 using SWI48 mode attribute.
18576 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
18577 x86_64_szext_general_operand.
18578 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
18579 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
18580 instead of genera_operand mode attribute.
18581
18582 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
18583
18584 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
18585 fopen and fclose to their respective types.
18586 (DotFn.invoke): Ditto.
18587
18588 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
18589
18590 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
18591 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
18592 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
18593 (array_index_predicate): Remove.
18594 (analyze_function_body): Account cost for variable ofsetted array
18595 indexing.
18596 (estimate_node_size_and_time): Do not compute array index hint.
18597 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
18598 (inline_read_section): Do not read array index hint.
18599 (ipa_fn_summary_write): Do not write array index hint.
18600 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
18601 * ipa-cp.c (hint_time_bonus): Remove.
18602 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
18603 (ipa_fnsummary): Remove array_index.
18604 * ipa-inline.c (want_inline_small_function_p): Do not use
18605 array_index.
18606 (edge_badness): Likewise.
18607 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
18608
18609 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
18610
18611 PR target/91148
18612 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
18613 superfluous "builtin function" phrasing.
18614
18615 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
18616
18617 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
18618 Break out from ...
18619 (aliasing_component_refs_walk): Break out from ...
18620 (aliasing_component_refs_p): ... here.
18621
18622 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
18623
18624 PR target/91148
18625 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
18626 "builtin function" phrasing.
18627
18628 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18629
18630 PR target/90723
18631 * recog.h (temporary_volatile_ok): New class.
18632 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
18633 volatile_ok temporarily to true using temporary_volatile_ok.
18634 * expr.c (emit_block_move_via_cpymem): Likewise.
18635 * optabs.c (maybe_legitimize_operand): Likewise.
18636
18637 2019-07-13 Jakub Jelinek <jakub@redhat.com>
18638
18639 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
18640 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
18641 uses inside of order(concurrent) constructs.
18642 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
18643 OMP_CLAUSE_ORDER is seen.
18644 * omp-low.c (struct omp_context): Add order_concurrent member.
18645 (scan_sharing_clauses): Set ctx->order_concurrent if
18646 OMP_CLAUSE_ORDER is seen.
18647 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
18648 of simd order(concurrent). Diagnose constructs not allowed inside of
18649 for order(concurrent).
18650 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
18651 complaining about static double setjmp (double); or class static
18652 methods or non-global namespace setjmps.
18653 (omp_runtime_api_call): New function.
18654 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
18655 order(concurrent) loops.
18656
18657 2019-07-12 Martin Sebor <msebor@redhat.com>
18658
18659 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
18660 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
18661 * tree-vrp.c (vrp_prop::check_mem_ref): Use
18662 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
18663
18664 2019-07-12 Jan Hubicka <jh@suse.cz>
18665
18666 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
18667 (indirect_refs_may_alias_p): ... here.
18668 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
18669 mem refs in the access paths.
18670
18671 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
18672
18673 PR tree-optimization/89430
18674 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
18675 store elimination for local variable without address escape.
18676
18677 2019-07-12 Jeff Law <law@redhat.com>
18678
18679 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
18680 for the ".far" section.
18681
18682 2019-07-12 Richard Biener <rguenther@suse.de>
18683
18684 PR tree-optimization/91145
18685 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
18686 chain check.
18687
18688 2019-07-12 Alexandre Oliva <oliva@adacore.com>
18689
18690 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
18691 rather than this_state as the lowering context for the ELSE
18692 seq in a GIMPLE_EH_ELSE.
18693
18694 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18695
18696 * vector-builder.h (vector_builder::elt): Allow already-supplied
18697 elements to be read back before building is complete.
18698
18699 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
18700
18701 PR rtl-optimization/91136
18702 * df-core.c (ACCESSING REFS): Fix typos in comment.
18703 * resource.c (mark_target_live_reg): Add artificial defs that occur at
18704 the beginning of the block to the initial set of live registers.
18705
18706 2019-07-12 Richard Biener <rguenther@suse.de>
18707
18708 * fold-const.h (get_array_ctor_element_at_index): Adjust.
18709 * fold-const.c (get_array_ctor_element_at_index): Add
18710 ctor_idx output parameter informing the caller where in
18711 the constructor the element was (not) found. Add early exit
18712 for when the ctor is sorted.
18713 * gimple-fold.c (fold_array_ctor_reference): Support constant
18714 folding across multiple array elements.
18715
18716 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
18717
18718 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
18719 doesn't have location, set the current location to the function's end.
18720
18721 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18722
18723 * config/aarch64/aarch64.md (*compare_condjump<mode>)
18724 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
18725 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
18726 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
18727 * config/aarch64/aarch64-simd.md
18728 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
18729 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
18730 * config/aarch64/aarch64-sve.md
18731 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
18732 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
18733
18734 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
18735
18736 * doc/md.texi: Document that @ patterns can have different
18737 numbers of operands.
18738 * genemit.c (handle_overloaded_gen): Handle this case.
18739 * genopinit.c (handle_overloaded_gen): Likewise.
18740 * gensupport.c (replace_operands_with_dups): Iterate over
18741 the new rtx's format rather than the old one's.
18742
18743 2019-07-12 Jakub Jelinek <jakub@redhat.com>
18744
18745 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
18746 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18747 order clause entries.
18748 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
18749 * tree-pretty-print.c (dump_omp_clause): Likewise.
18750 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18751 Likewise.
18752 * omp-low.c (scan_sharing_clauses): Likewise.
18753 * tree-nested.c (convert_nonlocal_omp_clauses,
18754 convert_local_omp_clauses): Likewise.
18755
18756 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
18757
18758 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
18759 fallthrough target of current basic block isn't the placed
18760 right next.
18761
18762 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
18763
18764 PR target/90980
18765 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
18766 (_mm512_storeu_epi64): Likewise.
18767 (_mm512_loadu_epi32): Likewise.
18768 (_mm512_storeu_epi32): Likewise.
18769 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
18770 (_mm_storeu_epi64): Likewise.
18771 (_mm256_storeu_epi32): Likewise.
18772 (_mm_storeu_epi32): Likewise.
18773
18774 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
18775
18776 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
18777
18778 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
18779
18780 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
18781 Handle Modula-2.
18782
18783 2019-07-11 Jakub Jelinek <jakub@redhat.com>
18784
18785 PR target/91124
18786 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
18787 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
18788 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
18789 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
18790 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
18791 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
18792 define_insns.
18793 (ufix_truncv2dfv2si2<mask_name>): Change into ...
18794 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
18795 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
18796 define_insns.
18797 (sse2_cvttpd2dq<mask_name>): Change into ...
18798 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
18799 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
18800 (*sse2_cvtpd2dq<mask_name>): Change into ...
18801 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
18802 Add "C" constraint to const0_operand.
18803 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
18804 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
18805 changes.
18806
18807 PR target/91124
18808 * config/i386/i386-builtin-types.def
18809 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
18810 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
18811 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
18812 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
18813 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
18814 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
18815 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
18816 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
18817 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
18818 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
18819 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
18820 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
18821 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
18822 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
18823 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
18824 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
18825 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
18826 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
18827 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
18828 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
18829 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
18830 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
18831 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
18832 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
18833 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
18834 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
18835 __builtin_ia32_vpdpbusd_v4si_maskz,
18836 __builtin_ia32_vpdpbusds_v16si_mask,
18837 __builtin_ia32_vpdpbusds_v16si_maskz,
18838 __builtin_ia32_vpdpbusds_v8si_mask,
18839 __builtin_ia32_vpdpbusds_v8si_maskz,
18840 __builtin_ia32_vpdpbusds_v4si_mask,
18841 __builtin_ia32_vpdpbusds_v4si_maskz,
18842 __builtin_ia32_vpdpwssd_v16si_mask,
18843 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
18844 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
18845 __builtin_ia32_vpdpwssd_v4si_maskz,
18846 __builtin_ia32_vpdpwssds_v16si_mask,
18847 __builtin_ia32_vpdpwssds_v16si_maskz,
18848 __builtin_ia32_vpdpwssds_v8si_mask,
18849 __builtin_ia32_vpdpwssds_v8si_maskz,
18850 __builtin_ia32_vpdpwssds_v4si_mask,
18851 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
18852 suffixed types rather than *_INT.
18853 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
18854 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
18855 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
18856 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
18857 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
18858 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
18859
18860 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
18861
18862 * tree-vrp.c (intersect_ranges): If we know the intersection is
18863 empty, there is no need to conservatively add anything else to
18864 the set.
18865
18866 2019-07-11 Richard Biener <rguenther@suse.de>
18867
18868 PR middle-end/91131
18869 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
18870 when the object is volatile and we have not cleared it even though
18871 there are no nonzero elements.
18872
18873 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
18874
18875 * config/rs6000/predicates.md (cint34_operand): Update
18876 SIGNED_34BIT_OFFSET_P call.
18877 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
18878 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
18879 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
18880 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
18881 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
18882 argument.
18883 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
18884 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
18885 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
18886 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
18887 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
18888
18889 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
18890
18891 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
18892 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
18893 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
18894 (DEF_MIN_OSX_VERSION): New.
18895
18896 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18897
18898 * fold-const.c (fold_relational_const): Fix folding of
18899 vector-to-scalar NE_EXPRs.
18900 (test_vector_folding): Add more tests.
18901
18902 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18903
18904 PR target/91060
18905 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
18906 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
18907 (vec_setv2di_internal): Reexpress as...
18908 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
18909 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
18910 rather than gen_neon_vset_lane<mode>.
18911
18912 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
18913
18914 PR target/91102
18915 * lra-constraints.c (process_alt_operands): Don't match user
18916 defined regs only if they are early clobbers.
18917
18918 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
18919
18920 * wide-int.h (wi::lshift): Reject negative values for the fast path.
18921
18922 2019-07-10 Richard Biener <rguenther@suse.de>
18923
18924 PR tree-optimization/91126
18925 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
18926 native encoding offset for BYTES_BIG_ENDIAN.
18927 (vn_reference_lookup_3): Likewise.
18928
18929 2019-07-10 Richard Biener <rguenther@suse.de>
18930
18931 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
18932 LHS whenever possible.
18933
18934 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
18935
18936 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
18937 from ...; work also on duplicated types.
18938 (nonoverlapping_component_refs_since_match): ... here
18939 (ncr_type_uid): Break out from ...
18940 (ncr_compar): ... here; look for TYPE_UID of canonical type if
18941 available.
18942 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
18943 the types and nonoverlapping_component_refs_p_1 to disambiguate.
18944
18945 2019-07-09 Martin Sebor <msebor@redhat.com>
18946
18947 PR tree-optimization/90989
18948 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
18949 optimization to just single character stores.
18950
18951 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
18952
18953 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
18954 Swap operands only once.
18955
18956 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18957
18958 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
18959 for both call instructions.
18960
18961 2019-07-09 John Darrington <john@darrington.wattle.id.au>
18962
18963 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
18964 rather than GET_MODE_BITSIZE to better handle partial integer modes.
18965
18966 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
18967
18968 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
18969 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
18970 function from rs6000-logue.c back to rs6000.c.
18971 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
18972
18973 2019-07-09 Martin Sebor <msebor@redhat.com>
18974
18975 PR c++/61339
18976 * auto-profile.c: Change class-key of PODs to struct and others
18977 to class.
18978 * basic-block.h: Same.
18979 * bitmap.c (bitmap_alloc): Same.
18980 * bitmap.h: Same.
18981 * builtins.c (expand_builtin_prefetch): Same.
18982 (expand_builtin_interclass_mathfn): Same.
18983 (expand_builtin_strlen): Same.
18984 (expand_builtin_mempcpy_args): Same.
18985 (expand_cmpstr): Same.
18986 (expand_builtin___clear_cache): Same.
18987 (expand_ifn_atomic_bit_test_and): Same.
18988 (expand_builtin_thread_pointer): Same.
18989 (expand_builtin_set_thread_pointer): Same.
18990 * caller-save.c (setup_save_areas): Same.
18991 (replace_reg_with_saved_mem): Same.
18992 (insert_restore): Same.
18993 (insert_save): Same.
18994 (add_used_regs): Same.
18995 * cfg.c (get_bb_copy): Same.
18996 (set_loop_copy): Same.
18997 * cfg.h: Same.
18998 * cfganal.h: Same.
18999 * cfgexpand.c (alloc_stack_frame_space): Same.
19000 (add_stack_var): Same.
19001 (add_stack_var_conflict): Same.
19002 (add_scope_conflicts_1): Same.
19003 (update_alias_info_with_stack_vars): Same.
19004 (expand_used_vars): Same.
19005 * cfghooks.c (redirect_edge_and_branch_force): Same.
19006 (delete_basic_block): Same.
19007 (split_edge): Same.
19008 (make_forwarder_block): Same.
19009 (force_nonfallthru): Same.
19010 (duplicate_block): Same.
19011 (lv_flush_pending_stmts): Same.
19012 * cfghooks.h: Same.
19013 * cfgloop.c (flow_loops_cfg_dump): Same.
19014 (flow_loop_nested_p): Same.
19015 (superloop_at_depth): Same.
19016 (get_loop_latch_edges): Same.
19017 (flow_loop_dump): Same.
19018 (flow_loops_dump): Same.
19019 (flow_loops_free): Same.
19020 (flow_loop_nodes_find): Same.
19021 (establish_preds): Same.
19022 (flow_loop_tree_node_add): Same.
19023 (flow_loop_tree_node_remove): Same.
19024 (flow_loops_find): Same.
19025 (find_subloop_latch_edge_by_profile): Same.
19026 (find_subloop_latch_edge_by_ivs): Same.
19027 (mfb_redirect_edges_in_set): Same.
19028 (form_subloop): Same.
19029 (merge_latch_edges): Same.
19030 (disambiguate_multiple_latches): Same.
19031 (disambiguate_loops_with_multiple_latches): Same.
19032 (flow_bb_inside_loop_p): Same.
19033 (glb_enum_p): Same.
19034 (get_loop_body_with_size): Same.
19035 (get_loop_body): Same.
19036 (fill_sons_in_loop): Same.
19037 (get_loop_body_in_dom_order): Same.
19038 (get_loop_body_in_custom_order): Same.
19039 (release_recorded_exits): Same.
19040 (get_loop_exit_edges): Same.
19041 (num_loop_branches): Same.
19042 (remove_bb_from_loops): Same.
19043 (find_common_loop): Same.
19044 (delete_loop): Same.
19045 (cancel_loop): Same.
19046 (verify_loop_structure): Same.
19047 (loop_preheader_edge): Same.
19048 (loop_exit_edge_p): Same.
19049 (single_exit): Same.
19050 (loop_exits_to_bb_p): Same.
19051 (loop_exits_from_bb_p): Same.
19052 (get_loop_location): Same.
19053 (record_niter_bound): Same.
19054 (get_estimated_loop_iterations_int): Same.
19055 (max_stmt_executions_int): Same.
19056 (likely_max_stmt_executions_int): Same.
19057 (get_estimated_loop_iterations): Same.
19058 (get_max_loop_iterations): Same.
19059 (get_max_loop_iterations_int): Same.
19060 (get_likely_max_loop_iterations): Same.
19061 * cfgloop.h (simple_loop_desc): Same.
19062 (get_loop): Same.
19063 (loop_depth): Same.
19064 (loop_outer): Same.
19065 (loop_iterator::next): Same.
19066 (loop_outermost): Same.
19067 * cfgloopanal.c (mark_irreducible_loops): Same.
19068 (num_loop_insns): Same.
19069 (average_num_loop_insns): Same.
19070 (expected_loop_iterations_unbounded): Same.
19071 (expected_loop_iterations): Same.
19072 (mark_loop_exit_edges): Same.
19073 (single_likely_exit): Same.
19074 * cfgloopmanip.c (fix_bb_placement): Same.
19075 (fix_bb_placements): Same.
19076 (remove_path): Same.
19077 (place_new_loop): Same.
19078 (add_loop): Same.
19079 (scale_loop_frequencies): Same.
19080 (scale_loop_profile): Same.
19081 (create_empty_if_region_on_edge): Same.
19082 (create_empty_loop_on_edge): Same.
19083 (loopify): Same.
19084 (unloop): Same.
19085 (fix_loop_placements): Same.
19086 (copy_loop_info): Same.
19087 (duplicate_loop): Same.
19088 (duplicate_subloops): Same.
19089 (loop_redirect_edge): Same.
19090 (can_duplicate_loop_p): Same.
19091 (duplicate_loop_to_header_edge): Same.
19092 (mfb_keep_just): Same.
19093 (has_preds_from_loop): Same.
19094 (create_preheader): Same.
19095 (create_preheaders): Same.
19096 (lv_adjust_loop_entry_edge): Same.
19097 (loop_version): Same.
19098 * cfgloopmanip.h: Same.
19099 * cgraph.h: Same.
19100 * cgraphbuild.c: Same.
19101 * combine.c (make_extraction): Same.
19102 * config/i386/i386-features.c: Same.
19103 * config/i386/i386-features.h: Same.
19104 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19105 (ix86_emit_outlined_ms2sysv_restore): Same.
19106 (ix86_noce_conversion_profitable_p): Same.
19107 (ix86_init_cost): Same.
19108 (ix86_simd_clone_usable): Same.
19109 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19110 Wstruct-not-pod.
19111 * coretypes.h: Same.
19112 * data-streamer-in.c (string_for_index): Change class-key of PODs
19113 to struct and others to class.
19114 (streamer_read_indexed_string): Same.
19115 (streamer_read_string): Same.
19116 (bp_unpack_indexed_string): Same.
19117 (bp_unpack_string): Same.
19118 (streamer_read_uhwi): Same.
19119 (streamer_read_hwi): Same.
19120 (streamer_read_gcov_count): Same.
19121 (streamer_read_wide_int): Same.
19122 * data-streamer.h (streamer_write_bitpack): Same.
19123 (bp_unpack_value): Same.
19124 (streamer_write_char_stream): Same.
19125 (streamer_write_hwi_in_range): Same.
19126 (streamer_write_record_start): Same.
19127 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19128 (add_cross_iteration_register_deps): Same.
19129 (build_intra_loop_deps): Same.
19130 * df-core.c (df_analyze): Same.
19131 (loop_post_order_compute): Same.
19132 (loop_inverted_post_order_compute): Same.
19133 * df-problems.c (df_rd_alloc): Same.
19134 (df_rd_simulate_one_insn): Same.
19135 (df_rd_local_compute): Same.
19136 (df_rd_init_solution): Same.
19137 (df_rd_confluence_n): Same.
19138 (df_rd_transfer_function): Same.
19139 (df_rd_free): Same.
19140 (df_rd_dump_defs_set): Same.
19141 (df_rd_top_dump): Same.
19142 (df_lr_alloc): Same.
19143 (df_lr_reset): Same.
19144 (df_lr_local_compute): Same.
19145 (df_lr_init): Same.
19146 (df_lr_confluence_n): Same.
19147 (df_lr_free): Same.
19148 (df_lr_top_dump): Same.
19149 (df_lr_verify_transfer_functions): Same.
19150 (df_live_alloc): Same.
19151 (df_live_reset): Same.
19152 (df_live_init): Same.
19153 (df_live_confluence_n): Same.
19154 (df_live_finalize): Same.
19155 (df_live_free): Same.
19156 (df_live_top_dump): Same.
19157 (df_live_verify_transfer_functions): Same.
19158 (df_mir_alloc): Same.
19159 (df_mir_reset): Same.
19160 (df_mir_init): Same.
19161 (df_mir_confluence_n): Same.
19162 (df_mir_free): Same.
19163 (df_mir_top_dump): Same.
19164 (df_word_lr_alloc): Same.
19165 (df_word_lr_reset): Same.
19166 (df_word_lr_init): Same.
19167 (df_word_lr_confluence_n): Same.
19168 (df_word_lr_free): Same.
19169 (df_word_lr_top_dump): Same.
19170 (df_md_alloc): Same.
19171 (df_md_simulate_one_insn): Same.
19172 (df_md_reset): Same.
19173 (df_md_init): Same.
19174 (df_md_free): Same.
19175 (df_md_top_dump): Same.
19176 * df-scan.c (df_insn_delete): Same.
19177 (df_insn_rescan): Same.
19178 (df_notes_rescan): Same.
19179 (df_sort_and_compress_mws): Same.
19180 (df_install_mws): Same.
19181 (df_refs_add_to_chains): Same.
19182 (df_ref_create_structure): Same.
19183 (df_ref_record): Same.
19184 (df_def_record_1): Same.
19185 (df_find_hard_reg_defs): Same.
19186 (df_uses_record): Same.
19187 (df_get_conditional_uses): Same.
19188 (df_get_call_refs): Same.
19189 (df_recompute_luids): Same.
19190 (df_get_entry_block_def_set): Same.
19191 (df_entry_block_defs_collect): Same.
19192 (df_get_exit_block_use_set): Same.
19193 (df_exit_block_uses_collect): Same.
19194 (df_mws_verify): Same.
19195 (df_bb_verify): Same.
19196 * df.h (df_scan_get_bb_info): Same.
19197 * doc/tm.texi: Same.
19198 * dse.c (record_store): Same.
19199 * dumpfile.h: Same.
19200 * emit-rtl.c (const_fixed_hasher::equal): Same.
19201 (set_mem_attributes_minus_bitpos): Same.
19202 (change_address): Same.
19203 (adjust_address_1): Same.
19204 (offset_address): Same.
19205 * emit-rtl.h: Same.
19206 * except.c (dw2_build_landing_pads): Same.
19207 (sjlj_emit_dispatch_table): Same.
19208 * explow.c (allocate_dynamic_stack_space): Same.
19209 (emit_stack_probe): Same.
19210 (probe_stack_range): Same.
19211 * expmed.c (store_bit_field_using_insv): Same.
19212 (store_bit_field_1): Same.
19213 (store_integral_bit_field): Same.
19214 (extract_bit_field_using_extv): Same.
19215 (extract_bit_field_1): Same.
19216 (emit_cstore): Same.
19217 * expr.c (emit_block_move_via_cpymem): Same.
19218 (expand_cmpstrn_or_cmpmem): Same.
19219 (set_storage_via_setmem): Same.
19220 (emit_single_push_insn_1): Same.
19221 (expand_assignment): Same.
19222 (store_constructor): Same.
19223 (expand_expr_real_2): Same.
19224 (expand_expr_real_1): Same.
19225 (try_casesi): Same.
19226 * flags.h: Same.
19227 * function.c (try_fit_stack_local): Same.
19228 (assign_stack_local_1): Same.
19229 (assign_stack_local): Same.
19230 (cut_slot_from_list): Same.
19231 (insert_slot_to_list): Same.
19232 (max_slot_level): Same.
19233 (move_slot_to_level): Same.
19234 (temp_address_hasher::equal): Same.
19235 (remove_unused_temp_slot_addresses): Same.
19236 (assign_temp): Same.
19237 (combine_temp_slots): Same.
19238 (update_temp_slot_address): Same.
19239 (preserve_temp_slots): Same.
19240 * function.h: Same.
19241 * fwprop.c: Same.
19242 * gcc-rich-location.h: Same.
19243 * gcov.c: Same.
19244 * genattrtab.c (check_attr_test): Same.
19245 (check_attr_value): Same.
19246 (convert_set_attr_alternative): Same.
19247 (convert_set_attr): Same.
19248 (check_defs): Same.
19249 (copy_boolean): Same.
19250 (get_attr_value): Same.
19251 (expand_delays): Same.
19252 (make_length_attrs): Same.
19253 (min_fn): Same.
19254 (make_alternative_compare): Same.
19255 (simplify_test_exp): Same.
19256 (tests_attr_p): Same.
19257 (get_attr_order): Same.
19258 (clear_struct_flag): Same.
19259 (gen_attr): Same.
19260 (compares_alternatives_p): Same.
19261 (gen_insn): Same.
19262 (gen_delay): Same.
19263 (find_attrs_to_cache): Same.
19264 (write_test_expr): Same.
19265 (walk_attr_value): Same.
19266 (write_attr_get): Same.
19267 (eliminate_known_true): Same.
19268 (write_insn_cases): Same.
19269 (write_attr_case): Same.
19270 (write_attr_valueq): Same.
19271 (write_attr_value): Same.
19272 (write_dummy_eligible_delay): Same.
19273 (next_comma_elt): Same.
19274 (find_attr): Same.
19275 (make_internal_attr): Same.
19276 (copy_rtx_unchanging): Same.
19277 (gen_insn_reserv): Same.
19278 (check_tune_attr): Same.
19279 (make_automaton_attrs): Same.
19280 (handle_arg): Same.
19281 * genextract.c (gen_insn): Same.
19282 (VEC_char_to_string): Same.
19283 * genmatch.c (print_operand): Same.
19284 (lower): Same.
19285 (parser::parse_operation): Same.
19286 (parser::parse_capture): Same.
19287 (parser::parse_c_expr): Same.
19288 (parser::parse_simplify): Same.
19289 (main): Same.
19290 * genoutput.c (output_operand_data): Same.
19291 (output_get_insn_name): Same.
19292 (compare_operands): Same.
19293 (place_operands): Same.
19294 (process_template): Same.
19295 (validate_insn_alternatives): Same.
19296 (validate_insn_operands): Same.
19297 (gen_expand): Same.
19298 (note_constraint): Same.
19299 * genpreds.c (write_one_predicate_function): Same.
19300 (add_constraint): Same.
19301 (process_define_register_constraint): Same.
19302 (write_lookup_constraint_1): Same.
19303 (write_lookup_constraint_array): Same.
19304 (write_insn_constraint_len): Same.
19305 (write_reg_class_for_constraint_1): Same.
19306 (write_constraint_satisfied_p_array): Same.
19307 * genrecog.c (optimize_subroutine_group): Same.
19308 * gensupport.c (process_define_predicate): Same.
19309 (queue_pattern): Same.
19310 (remove_from_queue): Same.
19311 (process_rtx): Same.
19312 (is_predicable): Same.
19313 (change_subst_attribute): Same.
19314 (subst_pattern_match): Same.
19315 (alter_constraints): Same.
19316 (alter_attrs_for_insn): Same.
19317 (shift_output_template): Same.
19318 (alter_output_for_subst_insn): Same.
19319 (process_one_cond_exec): Same.
19320 (subst_dup): Same.
19321 (process_define_cond_exec): Same.
19322 (mnemonic_htab_callback): Same.
19323 (gen_mnemonic_attr): Same.
19324 (read_md_rtx): Same.
19325 * ggc-page.c: Same.
19326 * gimple-loop-interchange.cc (dump_reduction): Same.
19327 (dump_induction): Same.
19328 (loop_cand::~loop_cand): Same.
19329 (free_data_refs_with_aux): Same.
19330 (tree_loop_interchange::interchange_loops): Same.
19331 (tree_loop_interchange::map_inductions_to_loop): Same.
19332 (tree_loop_interchange::move_code_to_inner_loop): Same.
19333 (compute_access_stride): Same.
19334 (compute_access_strides): Same.
19335 (proper_loop_form_for_interchange): Same.
19336 (tree_loop_interchange_compute_ddrs): Same.
19337 (prune_datarefs_not_in_loop): Same.
19338 (prepare_data_references): Same.
19339 (pass_linterchange::execute): Same.
19340 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
19341 (unroll_jam_possible_p): Same.
19342 (fuse_loops): Same.
19343 (adjust_unroll_factor): Same.
19344 (tree_loop_unroll_and_jam): Same.
19345 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
19346 (loop_versioning::expensive_stmt_p): Same.
19347 (loop_versioning::version_for_unity): Same.
19348 (loop_versioning::dump_inner_likelihood): Same.
19349 (loop_versioning::find_per_loop_multiplication): Same.
19350 (loop_versioning::analyze_term_using_scevs): Same.
19351 (loop_versioning::record_address_fragment): Same.
19352 (loop_versioning::analyze_expr): Same.
19353 (loop_versioning::analyze_blocks): Same.
19354 (loop_versioning::prune_conditions): Same.
19355 (loop_versioning::merge_loop_info): Same.
19356 (loop_versioning::add_loop_to_queue): Same.
19357 (loop_versioning::decide_whether_loop_is_versionable): Same.
19358 (loop_versioning::make_versioning_decisions): Same.
19359 (loop_versioning::implement_versioning_decisions): Same.
19360 * gimple-ssa-evrp-analyze.c
19361 (evrp_range_analyzer::record_ranges_from_phis): Same.
19362 * gimple-ssa-store-merging.c (split_store::split_store): Same.
19363 (count_multiple_uses): Same.
19364 (split_group): Same.
19365 (imm_store_chain_info::output_merged_store): Same.
19366 (pass_store_merging::process_store): Same.
19367 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
19368 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
19369 (is_max): Same.
19370 (alloca_call_type): Same.
19371 (pass_walloca::execute): Same.
19372 * gimple-streamer-in.c (input_phi): Same.
19373 (input_gimple_stmt): Same.
19374 * gimple-streamer.h: Same.
19375 * godump.c (go_force_record_alignment): Same.
19376 (go_format_type): Same.
19377 (go_output_type): Same.
19378 (go_output_fndecl): Same.
19379 (go_output_typedef): Same.
19380 (keyword_hash_init): Same.
19381 (find_dummy_types): Same.
19382 * graph.c (draw_cfg_nodes_no_loops): Same.
19383 (draw_cfg_nodes_for_loop): Same.
19384 * hard-reg-set.h (hard_reg_set_iter_next): Same.
19385 * hsa-brig.c: Same.
19386 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
19387 * hsa-dump.c (dump_hsa_cfun): Same.
19388 * hsa-gen.c (gen_function_def_parameters): Same.
19389 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
19390 * input.c (dump_line_table_statistics): Same.
19391 (test_lexer): Same.
19392 * input.h: Same.
19393 * internal-fn.c (get_multi_vector_move): Same.
19394 (expand_load_lanes_optab_fn): Same.
19395 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
19396 (expand_GOMP_SIMT_EXIT): Same.
19397 (expand_GOMP_SIMT_LAST_LANE): Same.
19398 (expand_GOMP_SIMT_ORDERED_PRED): Same.
19399 (expand_GOMP_SIMT_VOTE_ANY): Same.
19400 (expand_GOMP_SIMT_XCHG_BFLY): Same.
19401 (expand_GOMP_SIMT_XCHG_IDX): Same.
19402 (expand_addsub_overflow): Same.
19403 (expand_neg_overflow): Same.
19404 (expand_mul_overflow): Same.
19405 (expand_call_mem_ref): Same.
19406 (expand_mask_load_optab_fn): Same.
19407 (expand_scatter_store_optab_fn): Same.
19408 (expand_gather_load_optab_fn): Same.
19409 * ipa-cp.c (ipa_get_parm_lattices): Same.
19410 (print_all_lattices): Same.
19411 (ignore_edge_p): Same.
19412 (build_toporder_info): Same.
19413 (free_toporder_info): Same.
19414 (push_node_to_stack): Same.
19415 (ipcp_lattice<valtype>::set_contains_variable): Same.
19416 (set_agg_lats_to_bottom): Same.
19417 (ipcp_bits_lattice::meet_with): Same.
19418 (set_single_call_flag): Same.
19419 (initialize_node_lattices): Same.
19420 (ipa_get_jf_ancestor_result): Same.
19421 (ipcp_verify_propagated_values): Same.
19422 (propagate_scalar_across_jump_function): Same.
19423 (propagate_context_across_jump_function): Same.
19424 (propagate_bits_across_jump_function): Same.
19425 (ipa_vr_operation_and_type_effects): Same.
19426 (propagate_vr_across_jump_function): Same.
19427 (set_check_aggs_by_ref): Same.
19428 (set_chain_of_aglats_contains_variable): Same.
19429 (merge_aggregate_lattices): Same.
19430 (agg_pass_through_permissible_p): Same.
19431 (propagate_aggs_across_jump_function): Same.
19432 (call_passes_through_thunk_p): Same.
19433 (propagate_constants_across_call): Same.
19434 (devirtualization_time_bonus): Same.
19435 (good_cloning_opportunity_p): Same.
19436 (context_independent_aggregate_values): Same.
19437 (gather_context_independent_values): Same.
19438 (perform_estimation_of_a_value): Same.
19439 (estimate_local_effects): Same.
19440 (value_topo_info<valtype>::add_val): Same.
19441 (add_all_node_vals_to_toposort): Same.
19442 (value_topo_info<valtype>::propagate_effects): Same.
19443 (ipcp_propagate_stage): Same.
19444 (ipcp_discover_new_direct_edges): Same.
19445 (same_node_or_its_all_contexts_clone_p): Same.
19446 (cgraph_edge_brings_value_p): Same.
19447 (gather_edges_for_value): Same.
19448 (create_specialized_node): Same.
19449 (find_more_scalar_values_for_callers_subset): Same.
19450 (find_more_contexts_for_caller_subset): Same.
19451 (copy_plats_to_inter): Same.
19452 (intersect_aggregates_with_edge): Same.
19453 (find_aggregate_values_for_callers_subset): Same.
19454 (cgraph_edge_brings_all_agg_vals_for_node): Same.
19455 (decide_about_value): Same.
19456 (decide_whether_version_node): Same.
19457 (spread_undeadness): Same.
19458 (identify_dead_nodes): Same.
19459 (ipcp_store_vr_results): Same.
19460 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
19461 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
19462 (redirect_to_unreachable): Same.
19463 (edge_set_predicate): Same.
19464 (evaluate_conditions_for_known_args): Same.
19465 (evaluate_properties_for_edge): Same.
19466 (ipa_fn_summary_t::duplicate): Same.
19467 (ipa_call_summary_t::duplicate): Same.
19468 (dump_ipa_call_summary): Same.
19469 (ipa_dump_fn_summary): Same.
19470 (eliminated_by_inlining_prob): Same.
19471 (set_cond_stmt_execution_predicate): Same.
19472 (set_switch_stmt_execution_predicate): Same.
19473 (compute_bb_predicates): Same.
19474 (will_be_nonconstant_expr_predicate): Same.
19475 (phi_result_unknown_predicate): Same.
19476 (analyze_function_body): Same.
19477 (compute_fn_summary): Same.
19478 (estimate_edge_devirt_benefit): Same.
19479 (estimate_edge_size_and_time): Same.
19480 (estimate_calls_size_and_time): Same.
19481 (estimate_node_size_and_time): Same.
19482 (remap_edge_change_prob): Same.
19483 (remap_edge_summaries): Same.
19484 (ipa_merge_fn_summary_after_inlining): Same.
19485 (ipa_fn_summary_generate): Same.
19486 (inline_read_section): Same.
19487 (ipa_fn_summary_read): Same.
19488 (ipa_fn_summary_write): Same.
19489 * ipa-fnsummary.h: Same.
19490 * ipa-hsa.c (ipa_hsa_read_section): Same.
19491 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
19492 * ipa-icf.c (sem_function::param_used_p): Same.
19493 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
19494 * ipa-inline.c (edge_badness): Same.
19495 (inline_small_functions): Same.
19496 * ipa-polymorphic-call.c
19497 (ipa_polymorphic_call_context::stream_out): Same.
19498 * ipa-predicate.c (predicate::remap_after_duplication): Same.
19499 (predicate::remap_after_inlining): Same.
19500 (predicate::stream_out): Same.
19501 * ipa-predicate.h: Same.
19502 * ipa-profile.c (ipa_profile_read_summary): Same.
19503 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
19504 (count_formal_params): Same.
19505 (ipa_dump_param): Same.
19506 (ipa_alloc_node_params): Same.
19507 (ipa_print_node_jump_functions_for_edge): Same.
19508 (ipa_print_node_jump_functions): Same.
19509 (ipa_load_from_parm_agg): Same.
19510 (get_ancestor_addr_info): Same.
19511 (ipa_compute_jump_functions_for_edge): Same.
19512 (ipa_analyze_virtual_call_uses): Same.
19513 (ipa_analyze_stmt_uses): Same.
19514 (ipa_analyze_params_uses_in_bb): Same.
19515 (update_jump_functions_after_inlining): Same.
19516 (try_decrement_rdesc_refcount): Same.
19517 (ipa_impossible_devirt_target): Same.
19518 (update_indirect_edges_after_inlining): Same.
19519 (combine_controlled_uses_counters): Same.
19520 (ipa_edge_args_sum_t::duplicate): Same.
19521 (ipa_write_jump_function): Same.
19522 (ipa_write_indirect_edge_info): Same.
19523 (ipa_write_node_info): Same.
19524 (ipa_read_edge_info): Same.
19525 (ipa_prop_read_section): Same.
19526 (read_replacements_section): Same.
19527 * ipa-prop.h (ipa_get_param_count): Same.
19528 (ipa_get_param): Same.
19529 (ipa_get_type): Same.
19530 (ipa_get_param_move_cost): Same.
19531 (ipa_set_param_used): Same.
19532 (ipa_get_controlled_uses): Same.
19533 (ipa_set_controlled_uses): Same.
19534 (ipa_get_cs_argument_count): Same.
19535 * ipa-pure-const.c (analyze_function): Same.
19536 (pure_const_read_summary): Same.
19537 * ipa-ref.h: Same.
19538 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
19539 * ipa-split.c (test_nonssa_use): Same.
19540 (dump_split_point): Same.
19541 (dominated_by_forbidden): Same.
19542 (split_part_set_ssa_name_p): Same.
19543 (find_split_points): Same.
19544 * ira-build.c (finish_loop_tree_nodes): Same.
19545 (low_pressure_loop_node_p): Same.
19546 * ira-color.c (ira_reuse_stack_slot): Same.
19547 * ira-int.h: Same.
19548 * ira.c (setup_reg_equiv): Same.
19549 (print_insn_chain): Same.
19550 (ira): Same.
19551 * loop-doloop.c (doloop_condition_get): Same.
19552 (add_test): Same.
19553 (record_reg_sets): Same.
19554 (doloop_optimize): Same.
19555 * loop-init.c (loop_optimizer_init): Same.
19556 (fix_loop_structure): Same.
19557 * loop-invariant.c (merge_identical_invariants): Same.
19558 (compute_always_reached): Same.
19559 (find_exits): Same.
19560 (may_assign_reg_p): Same.
19561 (find_invariants_bb): Same.
19562 (find_invariants_body): Same.
19563 (replace_uses): Same.
19564 (can_move_invariant_reg): Same.
19565 (free_inv_motion_data): Same.
19566 (move_single_loop_invariants): Same.
19567 (change_pressure): Same.
19568 (mark_ref_regs): Same.
19569 (calculate_loop_reg_pressure): Same.
19570 * loop-iv.c (biv_entry_hasher::equal): Same.
19571 (iv_extend_to_rtx_code): Same.
19572 (check_iv_ref_table_size): Same.
19573 (clear_iv_info): Same.
19574 (latch_dominating_def): Same.
19575 (iv_get_reaching_def): Same.
19576 (iv_constant): Same.
19577 (iv_subreg): Same.
19578 (iv_extend): Same.
19579 (iv_neg): Same.
19580 (iv_add): Same.
19581 (iv_mult): Same.
19582 (get_biv_step): Same.
19583 (record_iv): Same.
19584 (analyzed_for_bivness_p): Same.
19585 (record_biv): Same.
19586 (iv_analyze_biv): Same.
19587 (iv_analyze_expr): Same.
19588 (iv_analyze_def): Same.
19589 (iv_analyze_op): Same.
19590 (iv_analyze): Same.
19591 (iv_analyze_result): Same.
19592 (biv_p): Same.
19593 (eliminate_implied_conditions): Same.
19594 (simplify_using_initial_values): Same.
19595 (shorten_into_mode): Same.
19596 (canonicalize_iv_subregs): Same.
19597 (determine_max_iter): Same.
19598 (check_simple_exit): Same.
19599 (find_simple_exit): Same.
19600 (get_simple_loop_desc): Same.
19601 * loop-unroll.c (report_unroll): Same.
19602 (decide_unrolling): Same.
19603 (unroll_loops): Same.
19604 (loop_exit_at_end_p): Same.
19605 (decide_unroll_constant_iterations): Same.
19606 (unroll_loop_constant_iterations): Same.
19607 (compare_and_jump_seq): Same.
19608 (unroll_loop_runtime_iterations): Same.
19609 (decide_unroll_stupid): Same.
19610 (unroll_loop_stupid): Same.
19611 (referenced_in_one_insn_in_loop_p): Same.
19612 (reset_debug_uses_in_loop): Same.
19613 (analyze_iv_to_split_insn): Same.
19614 * lra-eliminations.c (lra_debug_elim_table): Same.
19615 (setup_can_eliminate): Same.
19616 (form_sum): Same.
19617 (lra_get_elimination_hard_regno): Same.
19618 (lra_eliminate_regs_1): Same.
19619 (eliminate_regs_in_insn): Same.
19620 (update_reg_eliminate): Same.
19621 (init_elimination): Same.
19622 (lra_eliminate): Same.
19623 * lra-int.h: Same.
19624 * lra-lives.c (initiate_live_solver): Same.
19625 * lra-remat.c (create_remat_bb_data): Same.
19626 * lra-spills.c (lra_spill): Same.
19627 * lra.c (lra_set_insn_recog_data): Same.
19628 (lra_set_used_insn_alternative_by_uid): Same.
19629 (init_reg_info): Same.
19630 (expand_reg_info): Same.
19631 * lto-cgraph.c (output_symtab): Same.
19632 (read_identifier): Same.
19633 (get_alias_symbol): Same.
19634 (input_node): Same.
19635 (input_varpool_node): Same.
19636 (input_ref): Same.
19637 (input_edge): Same.
19638 (input_cgraph_1): Same.
19639 (input_refs): Same.
19640 (input_symtab): Same.
19641 (input_offload_tables): Same.
19642 (output_cgraph_opt_summary): Same.
19643 (input_edge_opt_summary): Same.
19644 (input_cgraph_opt_section): Same.
19645 * lto-section-in.c (lto_free_raw_section_data): Same.
19646 (lto_create_simple_input_block): Same.
19647 (lto_free_function_in_decl_state_for_node): Same.
19648 * lto-streamer-in.c (lto_tag_check_set): Same.
19649 (lto_location_cache::revert_location_cache): Same.
19650 (lto_location_cache::input_location): Same.
19651 (lto_input_location): Same.
19652 (stream_input_location_now): Same.
19653 (lto_input_tree_ref): Same.
19654 (lto_input_eh_catch_list): Same.
19655 (input_eh_region): Same.
19656 (lto_init_eh): Same.
19657 (make_new_block): Same.
19658 (input_cfg): Same.
19659 (fixup_call_stmt_edges): Same.
19660 (input_struct_function_base): Same.
19661 (input_function): Same.
19662 (lto_read_body_or_constructor): Same.
19663 (lto_read_tree_1): Same.
19664 (lto_read_tree): Same.
19665 (lto_input_scc): Same.
19666 (lto_input_tree_1): Same.
19667 (lto_input_toplevel_asms): Same.
19668 (lto_input_mode_table): Same.
19669 (lto_reader_init): Same.
19670 (lto_data_in_create): Same.
19671 * lto-streamer-out.c (output_cfg): Same.
19672 * lto-streamer.h: Same.
19673 * modulo-sched.c (duplicate_insns_of_cycles): Same.
19674 (generate_prolog_epilog): Same.
19675 (mark_loop_unsched): Same.
19676 (dump_insn_location): Same.
19677 (loop_canon_p): Same.
19678 (sms_schedule): Same.
19679 * omp-expand.c (expand_omp_for_ordered_loops): Same.
19680 (expand_omp_for_generic): Same.
19681 (expand_omp_for_static_nochunk): Same.
19682 (expand_omp_for_static_chunk): Same.
19683 (expand_omp_simd): Same.
19684 (expand_omp_taskloop_for_inner): Same.
19685 (expand_oacc_for): Same.
19686 (expand_omp_atomic_pipeline): Same.
19687 (mark_loops_in_oacc_kernels_region): Same.
19688 * omp-offload.c (oacc_xform_loop): Same.
19689 * omp-simd-clone.c (simd_clone_adjust): Same.
19690 * optabs-query.c (get_traditional_extraction_insn): Same.
19691 * optabs.c (expand_vector_broadcast): Same.
19692 (expand_binop_directly): Same.
19693 (expand_twoval_unop): Same.
19694 (expand_twoval_binop): Same.
19695 (expand_unop_direct): Same.
19696 (emit_indirect_jump): Same.
19697 (emit_conditional_move): Same.
19698 (emit_conditional_neg_or_complement): Same.
19699 (emit_conditional_add): Same.
19700 (vector_compare_rtx): Same.
19701 (expand_vec_perm_1): Same.
19702 (expand_vec_perm_const): Same.
19703 (expand_vec_cond_expr): Same.
19704 (expand_vec_series_expr): Same.
19705 (maybe_emit_atomic_exchange): Same.
19706 (maybe_emit_sync_lock_test_and_set): Same.
19707 (expand_atomic_compare_and_swap): Same.
19708 (expand_atomic_load): Same.
19709 (expand_atomic_store): Same.
19710 (maybe_emit_op): Same.
19711 (valid_multiword_target_p): Same.
19712 (create_integer_operand): Same.
19713 (maybe_legitimize_operand_same_code): Same.
19714 (maybe_legitimize_operand): Same.
19715 (create_convert_operand_from_type): Same.
19716 (can_reuse_operands_p): Same.
19717 (maybe_legitimize_operands): Same.
19718 (maybe_gen_insn): Same.
19719 (maybe_expand_insn): Same.
19720 (maybe_expand_jump_insn): Same.
19721 (expand_insn): Same.
19722 * optabs.h (create_expand_operand): Same.
19723 (create_fixed_operand): Same.
19724 (create_output_operand): Same.
19725 (create_input_operand): Same.
19726 (create_convert_operand_to): Same.
19727 (create_convert_operand_from): Same.
19728 * optinfo.h: Same.
19729 * poly-int.h: Same.
19730 * predict.c (optimize_insn_for_speed_p): Same.
19731 (optimize_loop_for_size_p): Same.
19732 (optimize_loop_for_speed_p): Same.
19733 (optimize_loop_nest_for_speed_p): Same.
19734 (get_base_value): Same.
19735 (predicted_by_loop_heuristics_p): Same.
19736 (predict_extra_loop_exits): Same.
19737 (predict_loops): Same.
19738 (predict_paths_for_bb): Same.
19739 (predict_paths_leading_to): Same.
19740 (propagate_freq): Same.
19741 (pass_profile::execute): Same.
19742 * predict.h: Same.
19743 * profile-count.c (profile_count::differs_from_p): Same.
19744 (profile_probability::differs_lot_from_p): Same.
19745 * profile-count.h: Same.
19746 * profile.c (branch_prob): Same.
19747 * regrename.c (free_chain_data): Same.
19748 (mark_conflict): Same.
19749 (create_new_chain): Same.
19750 (merge_overlapping_regs): Same.
19751 (init_rename_info): Same.
19752 (merge_chains): Same.
19753 (regrename_analyze): Same.
19754 (regrename_do_replace): Same.
19755 (scan_rtx_reg): Same.
19756 (record_out_operands): Same.
19757 (build_def_use): Same.
19758 * regrename.h: Same.
19759 * reload.h: Same.
19760 * reload1.c (init_reload): Same.
19761 (maybe_fix_stack_asms): Same.
19762 (copy_reloads): Same.
19763 (count_pseudo): Same.
19764 (count_spilled_pseudo): Same.
19765 (find_reg): Same.
19766 (find_reload_regs): Same.
19767 (select_reload_regs): Same.
19768 (spill_hard_reg): Same.
19769 (fixup_eh_region_note): Same.
19770 (set_reload_reg): Same.
19771 (allocate_reload_reg): Same.
19772 (compute_reload_subreg_offset): Same.
19773 (reload_adjust_reg_for_icode): Same.
19774 (emit_input_reload_insns): Same.
19775 (emit_output_reload_insns): Same.
19776 (do_input_reload): Same.
19777 (inherit_piecemeal_p): Same.
19778 * rtl.h: Same.
19779 * sanopt.c (maybe_get_dominating_check): Same.
19780 (maybe_optimize_ubsan_ptr_ifn): Same.
19781 (can_remove_asan_check): Same.
19782 (maybe_optimize_asan_check_ifn): Same.
19783 (sanopt_optimize_walker): Same.
19784 * sched-deps.c (add_dependence_list): Same.
19785 (chain_to_prev_insn): Same.
19786 (add_insn_mem_dependence): Same.
19787 (create_insn_reg_set): Same.
19788 (maybe_extend_reg_info_p): Same.
19789 (sched_analyze_reg): Same.
19790 (sched_analyze_1): Same.
19791 (get_implicit_reg_pending_clobbers): Same.
19792 (chain_to_prev_insn_p): Same.
19793 (deps_analyze_insn): Same.
19794 (deps_start_bb): Same.
19795 (sched_free_deps): Same.
19796 (init_deps): Same.
19797 (init_deps_reg_last): Same.
19798 (free_deps): Same.
19799 * sched-ebb.c: Same.
19800 * sched-int.h: Same.
19801 * sched-rgn.c (add_branch_dependences): Same.
19802 (concat_insn_mem_list): Same.
19803 (deps_join): Same.
19804 (sched_rgn_compute_dependencies): Same.
19805 * sel-sched-ir.c (reset_target_context): Same.
19806 (copy_deps_context): Same.
19807 (init_id_from_df): Same.
19808 (has_dependence_p): Same.
19809 (change_loops_latches): Same.
19810 (bb_top_order_comparator): Same.
19811 (make_region_from_loop_preheader): Same.
19812 (sel_init_pipelining): Same.
19813 (get_loop_nest_for_rgn): Same.
19814 (make_regions_from_the_rest): Same.
19815 (sel_is_loop_preheader_p): Same.
19816 * sel-sched-ir.h (inner_loop_header_p): Same.
19817 (get_all_loop_exits): Same.
19818 * selftest.h: Same.
19819 * sese.c (sese_build_liveouts): Same.
19820 (sese_insert_phis_for_liveouts): Same.
19821 * sese.h (defined_in_sese_p): Same.
19822 * sreal.c (sreal::stream_out): Same.
19823 * sreal.h: Same.
19824 * streamer-hooks.h: Same.
19825 * target-globals.c (save_target_globals): Same.
19826 * target-globals.h: Same.
19827 * target.def: Same.
19828 * target.h: Same.
19829 * targhooks.c (default_has_ifunc_p): Same.
19830 (default_empty_mask_is_expensive): Same.
19831 (default_init_cost): Same.
19832 * targhooks.h: Same.
19833 * toplev.c: Same.
19834 * tree-affine.c (aff_combination_mult): Same.
19835 (aff_combination_expand): Same.
19836 (aff_combination_constant_multiple_p): Same.
19837 * tree-affine.h: Same.
19838 * tree-cfg.c (build_gimple_cfg): Same.
19839 (replace_loop_annotate_in_block): Same.
19840 (replace_uses_by): Same.
19841 (remove_bb): Same.
19842 (dump_cfg_stats): Same.
19843 (gimple_duplicate_sese_region): Same.
19844 (gimple_duplicate_sese_tail): Same.
19845 (move_block_to_fn): Same.
19846 (replace_block_vars_by_duplicates): Same.
19847 (move_sese_region_to_fn): Same.
19848 (print_loops_bb): Same.
19849 (print_loop): Same.
19850 (print_loops): Same.
19851 (debug): Same.
19852 (debug_loops): Same.
19853 * tree-cfg.h: Same.
19854 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
19855 (chrec_fold_multiply_poly_poly): Same.
19856 (chrec_evaluate): Same.
19857 (chrec_component_in_loop_num): Same.
19858 (reset_evolution_in_loop): Same.
19859 (is_multivariate_chrec): Same.
19860 (chrec_contains_symbols): Same.
19861 (nb_vars_in_chrec): Same.
19862 (chrec_convert_1): Same.
19863 (chrec_convert_aggressive): Same.
19864 * tree-chrec.h: Same.
19865 * tree-core.h: Same.
19866 * tree-data-ref.c (dump_data_dependence_relation): Same.
19867 (canonicalize_base_object_address): Same.
19868 (data_ref_compare_tree): Same.
19869 (prune_runtime_alias_test_list): Same.
19870 (get_segment_min_max): Same.
19871 (create_intersect_range_checks): Same.
19872 (conflict_fn_no_dependence): Same.
19873 (object_address_invariant_in_loop_p): Same.
19874 (analyze_ziv_subscript): Same.
19875 (analyze_siv_subscript_cst_affine): Same.
19876 (analyze_miv_subscript): Same.
19877 (analyze_overlapping_iterations): Same.
19878 (build_classic_dist_vector_1): Same.
19879 (add_other_self_distances): Same.
19880 (same_access_functions): Same.
19881 (build_classic_dir_vector): Same.
19882 (subscript_dependence_tester_1): Same.
19883 (subscript_dependence_tester): Same.
19884 (access_functions_are_affine_or_constant_p): Same.
19885 (get_references_in_stmt): Same.
19886 (loop_nest_has_data_refs): Same.
19887 (graphite_find_data_references_in_stmt): Same.
19888 (find_data_references_in_bb): Same.
19889 (get_base_for_alignment): Same.
19890 (find_loop_nest_1): Same.
19891 (find_loop_nest): Same.
19892 * tree-data-ref.h (dr_alignment): Same.
19893 (ddr_dependence_level): Same.
19894 * tree-if-conv.c (fold_build_cond_expr): Same.
19895 (add_to_predicate_list): Same.
19896 (add_to_dst_predicate_list): Same.
19897 (phi_convertible_by_degenerating_args): Same.
19898 (idx_within_array_bound): Same.
19899 (all_preds_critical_p): Same.
19900 (pred_blocks_visited_p): Same.
19901 (predicate_bbs): Same.
19902 (build_region): Same.
19903 (if_convertible_loop_p_1): Same.
19904 (is_cond_scalar_reduction): Same.
19905 (predicate_scalar_phi): Same.
19906 (remove_conditions_and_labels): Same.
19907 (combine_blocks): Same.
19908 (version_loop_for_if_conversion): Same.
19909 (versionable_outer_loop_p): Same.
19910 (ifcvt_local_dce): Same.
19911 (tree_if_conversion): Same.
19912 (pass_if_conversion::gate): Same.
19913 * tree-if-conv.h: Same.
19914 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
19915 * tree-loop-distribution.c (bb_top_order_cmp): Same.
19916 (free_rdg): Same.
19917 (stmt_has_scalar_dependences_outside_loop): Same.
19918 (copy_loop_before): Same.
19919 (create_bb_after_loop): Same.
19920 (const_with_all_bytes_same): Same.
19921 (generate_memset_builtin): Same.
19922 (generate_memcpy_builtin): Same.
19923 (destroy_loop): Same.
19924 (build_rdg_partition_for_vertex): Same.
19925 (compute_access_range): Same.
19926 (data_ref_segment_size): Same.
19927 (latch_dominated_by_data_ref): Same.
19928 (compute_alias_check_pairs): Same.
19929 (fuse_memset_builtins): Same.
19930 (finalize_partitions): Same.
19931 (find_seed_stmts_for_distribution): Same.
19932 (prepare_perfect_loop_nest): Same.
19933 * tree-parloops.c (lambda_transform_legal_p): Same.
19934 (loop_parallel_p): Same.
19935 (reduc_stmt_res): Same.
19936 (add_field_for_name): Same.
19937 (create_call_for_reduction_1): Same.
19938 (replace_uses_in_bb_by): Same.
19939 (transform_to_exit_first_loop_alt): Same.
19940 (try_transform_to_exit_first_loop_alt): Same.
19941 (transform_to_exit_first_loop): Same.
19942 (num_phis): Same.
19943 (gen_parallel_loop): Same.
19944 (gather_scalar_reductions): Same.
19945 (get_omp_data_i_param): Same.
19946 (try_create_reduction_list): Same.
19947 (oacc_entry_exit_single_gang): Same.
19948 (parallelize_loops): Same.
19949 * tree-pass.h: Same.
19950 * tree-predcom.c (determine_offset): Same.
19951 (last_always_executed_block): Same.
19952 (split_data_refs_to_components): Same.
19953 (suitable_component_p): Same.
19954 (valid_initializer_p): Same.
19955 (find_looparound_phi): Same.
19956 (insert_looparound_copy): Same.
19957 (add_looparound_copies): Same.
19958 (determine_roots_comp): Same.
19959 (predcom_tmp_var): Same.
19960 (initialize_root_vars): Same.
19961 (initialize_root_vars_store_elim_1): Same.
19962 (initialize_root_vars_store_elim_2): Same.
19963 (finalize_eliminated_stores): Same.
19964 (initialize_root_vars_lm): Same.
19965 (remove_stmt): Same.
19966 (determine_unroll_factor): Same.
19967 (execute_pred_commoning_cbck): Same.
19968 (base_names_in_chain_on): Same.
19969 (combine_chains): Same.
19970 (pcom_stmt_dominates_stmt_p): Same.
19971 (try_combine_chains): Same.
19972 (prepare_initializers_chain_store_elim): Same.
19973 (prepare_initializers_chain): Same.
19974 (prepare_initializers): Same.
19975 (prepare_finalizers_chain): Same.
19976 (prepare_finalizers): Same.
19977 (insert_init_seqs): Same.
19978 * tree-scalar-evolution.c (loop_phi_node_p): Same.
19979 (compute_overall_effect_of_inner_loop): Same.
19980 (add_to_evolution_1): Same.
19981 (add_to_evolution): Same.
19982 (follow_ssa_edge_binary): Same.
19983 (follow_ssa_edge_expr): Same.
19984 (backedge_phi_arg_p): Same.
19985 (follow_ssa_edge_in_condition_phi_branch): Same.
19986 (follow_ssa_edge_in_condition_phi): Same.
19987 (follow_ssa_edge_inner_loop_phi): Same.
19988 (follow_ssa_edge): Same.
19989 (analyze_evolution_in_loop): Same.
19990 (analyze_initial_condition): Same.
19991 (interpret_loop_phi): Same.
19992 (interpret_condition_phi): Same.
19993 (interpret_rhs_expr): Same.
19994 (interpret_expr): Same.
19995 (interpret_gimple_assign): Same.
19996 (analyze_scalar_evolution_1): Same.
19997 (analyze_scalar_evolution): Same.
19998 (analyze_scalar_evolution_for_address_of): Same.
19999 (get_instantiated_value_entry): Same.
20000 (loop_closed_phi_def): Same.
20001 (instantiate_scev_name): Same.
20002 (instantiate_scev_poly): Same.
20003 (instantiate_scev_binary): Same.
20004 (instantiate_scev_convert): Same.
20005 (instantiate_scev_not): Same.
20006 (instantiate_scev_r): Same.
20007 (instantiate_scev): Same.
20008 (resolve_mixers): Same.
20009 (initialize_scalar_evolutions_analyzer): Same.
20010 (scev_reset_htab): Same.
20011 (scev_reset): Same.
20012 (derive_simple_iv_with_niters): Same.
20013 (simple_iv_with_niters): Same.
20014 (expression_expensive_p): Same.
20015 (final_value_replacement_loop): Same.
20016 * tree-scalar-evolution.h (block_before_loop): Same.
20017 * tree-ssa-address.h: Same.
20018 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20019 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20020 (record_edge_info): Same.
20021 * tree-ssa-live.c (var_map_base_fini): Same.
20022 (remove_unused_locals): Same.
20023 * tree-ssa-live.h: Same.
20024 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20025 (pass_ch_vect::execute): Same.
20026 (pass_ch::process_loop_p): Same.
20027 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20028 (movement_possibility): Same.
20029 (outermost_invariant_loop): Same.
20030 (stmt_cost): Same.
20031 (determine_max_movement): Same.
20032 (invariantness_dom_walker::before_dom_children): Same.
20033 (move_computations): Same.
20034 (may_move_till): Same.
20035 (force_move_till_op): Same.
20036 (force_move_till): Same.
20037 (memref_free): Same.
20038 (record_mem_ref_loc): Same.
20039 (set_ref_stored_in_loop): Same.
20040 (mark_ref_stored): Same.
20041 (sort_bbs_in_loop_postorder_cmp): Same.
20042 (sort_locs_in_loop_postorder_cmp): Same.
20043 (analyze_memory_references): Same.
20044 (mem_refs_may_alias_p): Same.
20045 (find_ref_loc_in_loop_cmp): Same.
20046 (rewrite_mem_ref_loc::operator): Same.
20047 (first_mem_ref_loc_1::operator): Same.
20048 (sm_set_flag_if_changed::operator): Same.
20049 (execute_sm_if_changed_flag_set): Same.
20050 (execute_sm): Same.
20051 (hoist_memory_references): Same.
20052 (ref_always_accessed::operator): Same.
20053 (refs_independent_p): Same.
20054 (record_dep_loop): Same.
20055 (ref_indep_loop_p_1): Same.
20056 (ref_indep_loop_p): Same.
20057 (can_sm_ref_p): Same.
20058 (find_refs_for_sm): Same.
20059 (loop_suitable_for_sm): Same.
20060 (store_motion_loop): Same.
20061 (store_motion): Same.
20062 (fill_always_executed_in): Same.
20063 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20064 (estimated_unrolled_size): Same.
20065 (loop_edge_to_cancel): Same.
20066 (remove_exits_and_undefined_stmts): Same.
20067 (remove_redundant_iv_tests): Same.
20068 (unloop_loops): Same.
20069 (estimated_peeled_sequence_size): Same.
20070 (try_peel_loop): Same.
20071 (canonicalize_loop_induction_variables): Same.
20072 (canonicalize_induction_variables): Same.
20073 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20074 (name_info): Same.
20075 (stmt_after_inc_pos): Same.
20076 (contains_abnormal_ssa_name_p): Same.
20077 (niter_for_exit): Same.
20078 (find_bivs): Same.
20079 (mark_bivs): Same.
20080 (find_givs_in_bb): Same.
20081 (find_induction_variables): Same.
20082 (find_interesting_uses_cond): Same.
20083 (outermost_invariant_loop_for_expr): Same.
20084 (idx_find_step): Same.
20085 (add_candidate_1): Same.
20086 (add_iv_candidate_derived_from_uses): Same.
20087 (alloc_use_cost_map): Same.
20088 (prepare_decl_rtl): Same.
20089 (generic_predict_doloop_p): Same.
20090 (computation_cost): Same.
20091 (determine_common_wider_type): Same.
20092 (get_computation_aff_1): Same.
20093 (get_use_type): Same.
20094 (determine_group_iv_cost_address): Same.
20095 (iv_period): Same.
20096 (difference_cannot_overflow_p): Same.
20097 (may_eliminate_iv): Same.
20098 (determine_set_costs): Same.
20099 (cheaper_cost_pair): Same.
20100 (compare_cost_pair): Same.
20101 (iv_ca_cand_for_group): Same.
20102 (iv_ca_recount_cost): Same.
20103 (iv_ca_set_remove_invs): Same.
20104 (iv_ca_set_no_cp): Same.
20105 (iv_ca_set_add_invs): Same.
20106 (iv_ca_set_cp): Same.
20107 (iv_ca_add_group): Same.
20108 (iv_ca_cost): Same.
20109 (iv_ca_compare_deps): Same.
20110 (iv_ca_delta_reverse): Same.
20111 (iv_ca_delta_commit): Same.
20112 (iv_ca_cand_used_p): Same.
20113 (iv_ca_delta_free): Same.
20114 (iv_ca_new): Same.
20115 (iv_ca_free): Same.
20116 (iv_ca_dump): Same.
20117 (iv_ca_extend): Same.
20118 (iv_ca_narrow): Same.
20119 (iv_ca_prune): Same.
20120 (cheaper_cost_with_cand): Same.
20121 (iv_ca_replace): Same.
20122 (try_add_cand_for): Same.
20123 (get_initial_solution): Same.
20124 (try_improve_iv_set): Same.
20125 (find_optimal_iv_set_1): Same.
20126 (create_new_iv): Same.
20127 (rewrite_use_compare): Same.
20128 (remove_unused_ivs): Same.
20129 (determine_scaling_factor): Same.
20130 * tree-ssa-loop-ivopts.h: Same.
20131 * tree-ssa-loop-manip.c (create_iv): Same.
20132 (compute_live_loop_exits): Same.
20133 (add_exit_phi): Same.
20134 (add_exit_phis): Same.
20135 (find_uses_to_rename_use): Same.
20136 (find_uses_to_rename_def): Same.
20137 (find_uses_to_rename_in_loop): Same.
20138 (rewrite_into_loop_closed_ssa): Same.
20139 (check_loop_closed_ssa_bb): Same.
20140 (split_loop_exit_edge): Same.
20141 (ip_end_pos): Same.
20142 (ip_normal_pos): Same.
20143 (copy_phi_node_args): Same.
20144 (gimple_duplicate_loop_to_header_edge): Same.
20145 (can_unroll_loop_p): Same.
20146 (determine_exit_conditions): Same.
20147 (scale_dominated_blocks_in_loop): Same.
20148 (niter_for_unrolled_loop): Same.
20149 (tree_transform_and_unroll_loop): Same.
20150 (rewrite_all_phi_nodes_with_iv): Same.
20151 * tree-ssa-loop-manip.h: Same.
20152 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20153 (number_of_iterations_ne): Same.
20154 (assert_no_overflow_lt): Same.
20155 (assert_loop_rolls_lt): Same.
20156 (number_of_iterations_lt): Same.
20157 (adjust_cond_for_loop_until_wrap): Same.
20158 (tree_simplify_using_condition): Same.
20159 (simplify_using_initial_conditions): Same.
20160 (simplify_using_outer_evolutions): Same.
20161 (loop_only_exit_p): Same.
20162 (ssa_defined_by_minus_one_stmt_p): Same.
20163 (number_of_iterations_popcount): Same.
20164 (number_of_iterations_exit): Same.
20165 (find_loop_niter): Same.
20166 (finite_loop_p): Same.
20167 (chain_of_csts_start): Same.
20168 (get_val_for): Same.
20169 (loop_niter_by_eval): Same.
20170 (derive_constant_upper_bound_ops): Same.
20171 (do_warn_aggressive_loop_optimizations): Same.
20172 (record_estimate): Same.
20173 (get_cst_init_from_scev): Same.
20174 (record_nonwrapping_iv): Same.
20175 (idx_infer_loop_bounds): Same.
20176 (infer_loop_bounds_from_ref): Same.
20177 (infer_loop_bounds_from_array): Same.
20178 (infer_loop_bounds_from_pointer_arith): Same.
20179 (infer_loop_bounds_from_signedness): Same.
20180 (bound_index): Same.
20181 (discover_iteration_bound_by_body_walk): Same.
20182 (maybe_lower_iteration_bound): Same.
20183 (estimate_numbers_of_iterations): Same.
20184 (estimated_loop_iterations): Same.
20185 (estimated_loop_iterations_int): Same.
20186 (max_loop_iterations): Same.
20187 (max_loop_iterations_int): Same.
20188 (likely_max_loop_iterations): Same.
20189 (likely_max_loop_iterations_int): Same.
20190 (estimated_stmt_executions_int): Same.
20191 (max_stmt_executions): Same.
20192 (likely_max_stmt_executions): Same.
20193 (estimated_stmt_executions): Same.
20194 (stmt_dominates_stmt_p): Same.
20195 (nowrap_type_p): Same.
20196 (loop_exits_before_overflow): Same.
20197 (scev_var_range_cant_overflow): Same.
20198 (scev_probably_wraps_p): Same.
20199 (free_numbers_of_iterations_estimates): Same.
20200 * tree-ssa-loop-niter.h: Same.
20201 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20202 (idx_analyze_ref): Same.
20203 (analyze_ref): Same.
20204 (gather_memory_references_ref): Same.
20205 (mark_nontemporal_store): Same.
20206 (emit_mfence_after_loop): Same.
20207 (may_use_storent_in_loop_p): Same.
20208 (mark_nontemporal_stores): Same.
20209 (should_unroll_loop_p): Same.
20210 (volume_of_dist_vector): Same.
20211 (add_subscript_strides): Same.
20212 (self_reuse_distance): Same.
20213 (insn_to_prefetch_ratio_too_small_p): Same.
20214 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20215 (patch_loop_exit): Same.
20216 (find_or_create_guard_phi): Same.
20217 (easy_exit_values): Same.
20218 (connect_loop_phis): Same.
20219 (connect_loops): Same.
20220 (compute_new_first_bound): Same.
20221 (split_loop): Same.
20222 (tree_ssa_split_loops): Same.
20223 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20224 (is_maybe_undefined): Same.
20225 (tree_may_unswitch_on): Same.
20226 (simplify_using_entry_checks): Same.
20227 (tree_unswitch_single_loop): Same.
20228 (tree_unswitch_loop): Same.
20229 (tree_unswitch_outer_loop): Same.
20230 (empty_bb_without_guard_p): Same.
20231 (used_outside_loop_p): Same.
20232 (get_vop_from_header): Same.
20233 (hoist_guard): Same.
20234 * tree-ssa-loop.c (gate_oacc_kernels): Same.
20235 (get_lsm_tmp_name): Same.
20236 * tree-ssa-loop.h: Same.
20237 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20238 (build_and_add_sum): Same.
20239 (no_side_effect_bb): Same.
20240 (get_ops): Same.
20241 (linearize_expr): Same.
20242 (should_break_up_subtract): Same.
20243 (linearize_expr_tree): Same.
20244 * tree-ssa-scopedtables.c: Same.
20245 * tree-ssa-scopedtables.h: Same.
20246 * tree-ssa-structalias.c (condense_visit): Same.
20247 (label_visit): Same.
20248 (dump_pred_graph): Same.
20249 (perform_var_substitution): Same.
20250 (move_complex_constraints): Same.
20251 (remove_preds_and_fake_succs): Same.
20252 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20253 (determine_bb_domination_status): Same.
20254 (duplicate_thread_path): Same.
20255 (thread_through_all_blocks): Same.
20256 * tree-ssa-threadupdate.h: Same.
20257 * tree-streamer-in.c (streamer_read_string_cst): Same.
20258 (input_identifier): Same.
20259 (unpack_ts_type_common_value_fields): Same.
20260 (unpack_ts_block_value_fields): Same.
20261 (unpack_ts_translation_unit_decl_value_fields): Same.
20262 (unpack_ts_omp_clause_value_fields): Same.
20263 (streamer_read_tree_bitfields): Same.
20264 (streamer_alloc_tree): Same.
20265 (lto_input_ts_common_tree_pointers): Same.
20266 (lto_input_ts_vector_tree_pointers): Same.
20267 (lto_input_ts_poly_tree_pointers): Same.
20268 (lto_input_ts_complex_tree_pointers): Same.
20269 (lto_input_ts_decl_minimal_tree_pointers): Same.
20270 (lto_input_ts_decl_common_tree_pointers): Same.
20271 (lto_input_ts_decl_non_common_tree_pointers): Same.
20272 (lto_input_ts_decl_with_vis_tree_pointers): Same.
20273 (lto_input_ts_field_decl_tree_pointers): Same.
20274 (lto_input_ts_function_decl_tree_pointers): Same.
20275 (lto_input_ts_type_common_tree_pointers): Same.
20276 (lto_input_ts_type_non_common_tree_pointers): Same.
20277 (lto_input_ts_list_tree_pointers): Same.
20278 (lto_input_ts_vec_tree_pointers): Same.
20279 (lto_input_ts_exp_tree_pointers): Same.
20280 (lto_input_ts_block_tree_pointers): Same.
20281 (lto_input_ts_binfo_tree_pointers): Same.
20282 (lto_input_ts_constructor_tree_pointers): Same.
20283 (lto_input_ts_omp_clause_tree_pointers): Same.
20284 (streamer_read_tree_body): Same.
20285 * tree-streamer.h: Same.
20286 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
20287 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
20288 (vect_analyze_possibly_independent_ddr): Same.
20289 (vect_analyze_data_ref_dependence): Same.
20290 (vect_compute_data_ref_alignment): Same.
20291 (vect_enhance_data_refs_alignment): Same.
20292 (vect_analyze_data_ref_access): Same.
20293 (vect_check_gather_scatter): Same.
20294 (vect_find_stmt_data_reference): Same.
20295 (vect_create_addr_base_for_vector_ref): Same.
20296 (vect_setup_realignment): Same.
20297 (vect_supportable_dr_alignment): Same.
20298 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
20299 (adjust_phi_and_debug_stmts): Same.
20300 (vect_set_loop_mask): Same.
20301 (add_preheader_seq): Same.
20302 (vect_maybe_permute_loop_masks): Same.
20303 (vect_set_loop_masks_directly): Same.
20304 (vect_set_loop_condition_masked): Same.
20305 (vect_set_loop_condition_unmasked): Same.
20306 (slpeel_duplicate_current_defs_from_edges): Same.
20307 (slpeel_add_loop_guard): Same.
20308 (slpeel_can_duplicate_loop_p): Same.
20309 (create_lcssa_for_virtual_phi): Same.
20310 (iv_phi_p): Same.
20311 (vect_update_ivs_after_vectorizer): Same.
20312 (vect_gen_vector_loop_niters_mult_vf): Same.
20313 (slpeel_update_phi_nodes_for_loops): Same.
20314 (slpeel_update_phi_nodes_for_guard1): Same.
20315 (find_guard_arg): Same.
20316 (slpeel_update_phi_nodes_for_guard2): Same.
20317 (slpeel_update_phi_nodes_for_lcssa): Same.
20318 (vect_do_peeling): Same.
20319 (vect_create_cond_for_alias_checks): Same.
20320 (vect_loop_versioning): Same.
20321 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
20322 (vect_inner_phi_in_double_reduction_p): Same.
20323 (vect_analyze_scalar_cycles_1): Same.
20324 (vect_fixup_scalar_cycles_with_patterns): Same.
20325 (vect_get_loop_niters): Same.
20326 (bb_in_loop_p): Same.
20327 (vect_get_max_nscalars_per_iter): Same.
20328 (vect_verify_full_masking): Same.
20329 (vect_compute_single_scalar_iteration_cost): Same.
20330 (vect_analyze_loop_form_1): Same.
20331 (vect_analyze_loop_form): Same.
20332 (vect_active_double_reduction_p): Same.
20333 (vect_analyze_loop_operations): Same.
20334 (neutral_op_for_slp_reduction): Same.
20335 (vect_is_simple_reduction): Same.
20336 (vect_model_reduction_cost): Same.
20337 (get_initial_def_for_reduction): Same.
20338 (get_initial_defs_for_reduction): Same.
20339 (vect_create_epilog_for_reduction): Same.
20340 (vectorize_fold_left_reduction): Same.
20341 (vectorizable_reduction): Same.
20342 (vectorizable_induction): Same.
20343 (vectorizable_live_operation): Same.
20344 (loop_niters_no_overflow): Same.
20345 (vect_get_loop_mask): Same.
20346 (vect_transform_loop_stmt): Same.
20347 (vect_transform_loop): Same.
20348 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
20349 (vect_determine_precisions): Same.
20350 (vect_pattern_recog_1): Same.
20351 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
20352 * tree-vect-stmts.c (stmt_vectype): Same.
20353 (process_use): Same.
20354 (vect_init_vector_1): Same.
20355 (vect_truncate_gather_scatter_offset): Same.
20356 (get_group_load_store_type): Same.
20357 (vect_build_gather_load_calls): Same.
20358 (vect_get_strided_load_store_ops): Same.
20359 (vectorizable_simd_clone_call): Same.
20360 (vectorizable_store): Same.
20361 (permute_vec_elements): Same.
20362 (vectorizable_load): Same.
20363 (vect_transform_stmt): Same.
20364 (supportable_widening_operation): Same.
20365 * tree-vectorizer.c (vec_info::replace_stmt): Same.
20366 (vec_info::free_stmt_vec_info): Same.
20367 (vect_free_loop_info_assumptions): Same.
20368 (vect_loop_vectorized_call): Same.
20369 (set_uid_loop_bbs): Same.
20370 (vectorize_loops): Same.
20371 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
20372 * tree.c (add_tree_to_fld_list): Same.
20373 (fld_type_variant_equal_p): Same.
20374 (fld_decl_context): Same.
20375 (fld_incomplete_type_of): Same.
20376 (free_lang_data_in_binfo): Same.
20377 (need_assembler_name_p): Same.
20378 (find_decls_types_r): Same.
20379 (get_eh_types_for_runtime): Same.
20380 (find_decls_types_in_eh_region): Same.
20381 (find_decls_types_in_node): Same.
20382 (assign_assembler_name_if_needed): Same.
20383 * value-prof.c (stream_out_histogram_value): Same.
20384 * value-prof.h: Same.
20385 * var-tracking.c (use_narrower_mode): Same.
20386 (prepare_call_arguments): Same.
20387 (vt_expand_loc_callback): Same.
20388 (resolve_expansions_pending_recursion): Same.
20389 (vt_expand_loc): Same.
20390 * varasm.c (const_hash_1): Same.
20391 (compare_constant): Same.
20392 (tree_output_constant_def): Same.
20393 (simplify_subtraction): Same.
20394 (get_pool_constant): Same.
20395 (output_constant_pool_2): Same.
20396 (output_constant_pool_1): Same.
20397 (mark_constants_in_pattern): Same.
20398 (mark_constant_pool): Same.
20399 (get_section_anchor): Same.
20400 * vr-values.c (compare_range_with_value): Same.
20401 (vr_values::extract_range_from_phi_node): Same.
20402 * vr-values.h: Same.
20403 * web.c (unionfind_union): Same.
20404 * wide-int.h: Same.
20405
20406 2019-07-09 Martin Sebor <msebor@redhat.com>
20407
20408 PR c++/61339
20409 * align.h: Change class-key from class to struct and vice versa
20410 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
20411 * alloc-pool.h: Same.
20412 * asan.c (shadow_mem_size): Same.
20413 * auto-profile.c: Same.
20414 * basic-block.h: Same.
20415 * bitmap.h: Same.
20416 * cfgexpand.c (set_rtl): Same.
20417 (expand_one_stack_var_at): Same.
20418 * cfghooks.h: Same.
20419 * cfgloop.h: Same.
20420 * cgraph.h: Same.
20421 * config/i386/i386.h: Same.
20422 * df-problems.c (df_print_bb_index): Same.
20423 * df-scan.c: Same.
20424 * df.h (df_single_use): Same.
20425 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
20426 (layout::annotation_line_showed_range_p): Same.
20427 (get_printed_columns): Same.
20428 (correction::ensure_terminated): Same.
20429 (line_corrections::~line_corrections): Same.
20430 * dojump.h: Same.
20431 * dse.c: Same.
20432 * dump-context.h: Same.
20433 * dumpfile.h: Same.
20434 * dwarf2out.c: Same.
20435 * edit-context.c: Same.
20436 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
20437 * flags.h: Same.
20438 * function.c (assign_stack_local): Same.
20439 * function.h: Same.
20440 * gcc.c: Same.
20441 * gcov.c (block_info::block_info): Same.
20442 * genattrtab.c: Same.
20443 * genextract.c: Same.
20444 * genmatch.c (comparison_code_p): Same.
20445 (id_base::id_base): Same.
20446 (decision_tree::print): Same.
20447 * genoutput.c: Same.
20448 * genpreds.c (write_one_predicate_function): Same.
20449 * genrecog.c (validate_pattern): Same.
20450 (find_operand_positions): Same.
20451 (optimize_subroutine_group): Same.
20452 (merge_pattern_transition::merge_pattern_transition): Same.
20453 (merge_pattern_info::merge_pattern_info): Same.
20454 (merge_state_result::merge_state_result): Same.
20455 (merge_into_state): Same.
20456 * gensupport.c: Same.
20457 * gensupport.h: Same.
20458 * ggc-common.c (init_ggc_heuristics): Same.
20459 * ggc-tests.c (test_union): Same.
20460 * gimple-loop-interchange.cc (dump_induction): Same.
20461 * gimple-loop-versioning.cc: Same.
20462 * gimple-match.h (gimple_match_cond::any_else): Same.
20463 * gimple-ssa-backprop.c: Same.
20464 * gimple-ssa-sprintf.c: Same.
20465 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
20466 Same.
20467 (store_immediate_info::store_immediate_info): Same.
20468 (merged_store_group::apply_stores): Same.
20469 (get_location_for_stmts): Same.
20470 * gimple-ssa-strength-reduction.c: Same.
20471 * gimple-ssa-warn-alloca.c: Same.
20472 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
20473 * godump.c (go_type_decl): Same.
20474 * hash-map-tests.c (test_map_of_strings_to_int): Same.
20475 * hash-map.h: Same.
20476 * hash-set-tests.c (test_set_of_strings): Same.
20477 * hsa-brig.c: Same.
20478 * hsa-common.h: Same.
20479 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
20480 * input.c (assert_loceq): Same.
20481 * input.h: Same.
20482 * ipa-cp.c: Same.
20483 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
20484 * ipa-fnsummary.h: Same.
20485 * ipa-inline.h: Same.
20486 * ipa-prop.h: Same.
20487 * ipa-split.c (visit_bb): Same.
20488 * ira-int.h (minmax_set_iter_next): Same.
20489 * loop-invariant.c: Same.
20490 * loop-iv.c: Same.
20491 * lra-eliminations.c: Same.
20492 * lra-int.h: Same.
20493 * lra-lives.c (mark_regno_dead): Same.
20494 * lra-remat.c: Same.
20495 * lra-spills.c: Same.
20496 * lto-streamer.h: Same.
20497 * mem-stats.h: Same.
20498 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
20499 * omp-low.c (omp_clause_aligned_alignment): Same.
20500 * optabs-query.h (get_vcond_eq_icode): Same.
20501 * optabs.h: Same.
20502 * opts.c (wrap_help): Same.
20503 * poly-int.h: Same.
20504 * predict.c (predict_paths_leading_to_edge): Same.
20505 * pretty-print.h: Same.
20506 * profile-count.h: Same.
20507 * read-md.h: Same.
20508 * read-rtl-function.c: Same.
20509 * ree.c: Same.
20510 * reginfo.c: Same.
20511 * regrename.c: Same.
20512 * regrename.h: Same.
20513 * reload.h: Same.
20514 * rtl-iter.h: Same.
20515 * rtl.h (costs_add_n_insns): Same.
20516 * sanopt.c: Same.
20517 * sched-int.h: Same.
20518 * sel-sched-ir.h: Same.
20519 * selftest.h: Same.
20520 * sese.h (vec_find): Same.
20521 * stmt.c: Same.
20522 * target-globals.h: Same.
20523 * tree-affine.c (aff_combination_find_elt): Same.
20524 * tree-affine.h: Same.
20525 * tree-data-ref.h: Same.
20526 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
20527 * tree-predcom.c: Same.
20528 * tree-scalar-evolution.c (find_var_scev_info): Same.
20529 * tree-ssa-alias.h: Same.
20530 * tree-ssa-ccp.c: Same.
20531 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
20532 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
20533 (rewrite_mem_refs): Same.
20534 (execute_sm_if_changed): Same.
20535 (hoist_memory_references): Same.
20536 * tree-ssa-loop-ivopts.c (operator<=): Same.
20537 * tree-ssa-loop.h: Same.
20538 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
20539 * tree-ssa-structalias.c: Same.
20540 * tree-switch-conversion.h (cluster::cluster): Same.
20541 (simple_cluster::simple_cluster): Same.
20542 * tree-vect-patterns.c (type_conversion_p): Same.
20543 * tree-vectorizer.c (dump_stmt_cost): Same.
20544 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
20545 * tree.c (protected_set_expr_location): Same.
20546 * tree.h (desired_pro_or_demotion_p): Same.
20547 (fndecl_built_in_p): Same.
20548 * unique-ptr-tests.cc: Same.
20549 * var-tracking.c (delete_variable_part): Same.
20550 * varasm.c (assemble_real): Same.
20551 (tree_output_constant_def): Same.
20552 * vec.c: Same.
20553 * wide-int-bitmask.h: Same.
20554 * wide-int.h (decompose): Same.
20555
20556 2019-07-09 Richard Biener <rguenther@suse.de>
20557
20558 PR tree-optimization/91114
20559 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
20560 find a vector type isn't fatal.
20561
20562 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20563
20564 * config/aarch64/aarch64-simd.md
20565 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
20566 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
20567 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
20568 (*aarch64_crypto_aese_fused,
20569 *aarch64_crypto_aesd_fused): Update to new definition.
20570 * config/aarch64/aarch64.c
20571 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
20572
20573 2019-07-09 Richard Biener <rguenther@suse.de>
20574
20575 * gimple-match.h (gimple_match_op::resimplify): New.
20576 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
20577 gimple_resimplify4, gimple_resimplify5): Remove.
20578 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
20579 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
20580 Make static.
20581 (gimple_match_op::resimplify): New.
20582 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
20583 according to availability. Use gimple_match_op::resimplify.
20584
20585 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
20586
20587 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
20588
20589 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
20590
20591 * config/arm/crypto.md:
20592 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
20593 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
20594 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
20595 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
20596 * config/arm/arm.c
20597 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
20598 * config/arm/aarch-common-protos.h
20599 (aarch_crypto_can_dual_issue): Remove.
20600 * config/arm/aarch-common.c
20601 (aarch_crypto_can_dual_issue): Likewise.
20602 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
20603 * config/arm/cortex-a53.md: Likewise.
20604 * config/arm/cortex-a57.md: Likewise.
20605 * config/arm/iterators.md:
20606 (CRYPTO_BINARY): Redefine.
20607 (CRYPTO_UNARY): Removed.
20608 (CRYPTO_AES, CRYPTO_AESMC): New.
20609
20610 2019-07-09 Richard Biener <rguenther@suse.de>
20611
20612 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
20613 (vn_reference_lookup_3): If the main ref has no access path recorded
20614 but orig_ref has use it to do access-path based disambiguation.
20615 (vn_reference_lookup_pieces): Adjust.
20616 (vn_reference_lookup): Pass down original ref if we valueized.
20617
20618 2019-07-09 Martin Liska <mliska@suse.cz>
20619
20620 * doc/extend.texi: Document influence on loop
20621 optimizers.
20622
20623 2019-07-09 Martin Liska <mliska@suse.cz>
20624
20625 * lto-compress.c (lto_normalized_zstd_level): Do not use
20626 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
20627 of libzstd. One can use 0 as a default compression level.
20628
20629 2019-07-09 Martin Liska <mliska@suse.cz>
20630
20631 * doc/invoke.texi: Add link from -fprofile-dir option.
20632 Use better wording for 'gcno filename'.
20633
20634 2019-07-08 Martin Sebor <msebor@redhat.com>
20635
20636 PR middle-end/71924
20637 PR middle-end/90549
20638 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
20639 comment.
20640 (args_loc_t): New type.
20641 (args_loc_t, locmap_t): same.
20642 (diag_returned_locals): New function.
20643 (is_addr_local): Same.
20644 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
20645 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
20646 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
20647
20648 2019-07-08 Jakub Jelinek <jakub@redhat.com>
20649
20650 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
20651 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
20652 and casts in offset when different, both through gimple stmts
20653 and through trees. Rewritten using loops to minimize code duplication
20654 for each operand.
20655
20656 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
20657
20658 * emit-rtl.c (set_insn_locations): New function moved from...
20659 * function.c (set_insn_locations): ...here.
20660 * ira-emit.c (emit_moves): Propagate location of the first instruction
20661 to the inserted move instructions.
20662 * reg-stack.c (compensate_edge): Set the location if the sequence is
20663 inserted on the edge.
20664 * rtl.h (set_insn_locations): Declare.
20665
20666 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
20667
20668 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
20669 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
20670 .machine string.
20671
20672 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
20673
20674 PR rtl-optimization/88233
20675 * common.opt (fsplit-wide-types-early): New option.
20676 * common/config/rs6000/rs6000-common.c
20677 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
20678 OPT_LEVELS_ALL.
20679 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
20680 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
20681 flag_split_wide_types_early.
20682 (pass_data_lower_subreg3): New.
20683 (pass_lower_subreg3): New.
20684 (make_pass_lower_subreg3): New.
20685 * passes.def (pass_lower_subreg2): Move after the loop passes.
20686 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
20687 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
20688 the pass pipeline; its previous place is taken by ...
20689 (make_pass_lower_subreg3): ... this.
20690
20691 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
20692
20693 * config/s390/s390.c (s390_shift_truncation_mask): Define.
20694 (TARGET_SHIFT_TRUNCATION_MASK): Define.
20695
20696 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
20697
20698 * config/s390/constraints.md: Add new jsc constraint.
20699 * config/s390/predicates.md: New predicates.
20700 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
20701 * config/s390/s390.c (s390_valid_shift_count): New function.
20702 (print_shift_count_operand): Use s390_valid_shift_count.
20703 (print_operand): Likewise.
20704 * config/s390/s390.md: Use new predicate.
20705 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
20706 * config/s390/vector.md: Use new predicate.
20707
20708 2019-07-08 Andrew Waterman <andrew@sifive.com>
20709 Jim Wilson <jimw@sifive.com>
20710
20711 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
20712 bitsize instead of BITS_PER_WORD.
20713
20714 2019-07-08 Martin Liska <mliska@suse.cz>
20715
20716 * collect2.c (defined): Revert to before r254460.
20717 (scan_prog_file): Revert to before r254460.
20718
20719 2019-07-08 Richard Biener <rguenther@suse.de>
20720
20721 PR tree-optimization/83518
20722 * tree-ssa-sccvn.c: Include splay-tree.h.
20723 (struct pd_range, struct pd_data): New.
20724 (struct vn_walk_cb_data): Add data to track partial definitions.
20725 (vn_walk_cb_data::~vn_walk_cb_data): New.
20726 (vn_walk_cb_data::push_partial_def): New.
20727 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
20728 (vn_reference_lookup_2): When partial defs are registered give up.
20729 (vn_reference_lookup_3): Track partial defs for memset and
20730 constructor zeroing and for defs from constants.
20731
20732 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
20733
20734 * doc/install.texi (bootstrap-Og): Document.
20735
20736 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
20737
20738 * config/riscv/pic.md (*local_pic_load_s<mode>)
20739 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
20740 referenced by <mode>, giving...
20741 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
20742 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
20743 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
20744 use <X:MODE> for the mode attribute.
20745
20746 2019-07-07 Jeff Law <law@redhat.com>
20747
20748 PR tree-optimization/91090
20749 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
20750 in handling of ranges to simplify switch statements.
20751
20752 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
20753
20754 * config/darwin.c (darwin_override_options): Make a final check on PIC
20755 options.
20756
20757 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
20758
20759 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
20760 on for kernel code.
20761
20762 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
20763
20764 PR target/91068
20765 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
20766 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
20767 instead of matching them to "l" output operands.
20768
20769 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
20770
20771 * config/mips/mips.c (mips_split_move): Zero-initialize addr
20772 and check whether addr.reg is nonnull before using it.
20773
20774 2019-07-06 Jakub Jelinek <jakub@redhat.com>
20775
20776 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
20777 ctx->for_simd_scan_phase simd copy the outer var to the privatized
20778 variable(s). For conditional lastprivate look through outer
20779 GIMPLE_OMP_SCAN context.
20780 (lower_omp_1): For conditional lastprivate look through outer
20781 GIMPLE_OMP_SCAN context.
20782
20783 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
20784 member to combined_into_simd_safelen1.
20785 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
20786 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
20787 clauses if ctx->combined_into_simd_safelen1 put statements after the
20788 predicate conditionalized block rather than into it.
20789
20790 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20791
20792 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
20793 operand 1.
20794 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
20795 Make the choice of <mode> explicit, giving...
20796 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
20797
20798 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20799
20800 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
20801 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
20802 of .md attributes.
20803 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
20804 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
20805 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
20806 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
20807 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
20808 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
20809 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
20810 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
20811 (*avx512f_scatterdi<mode>): Likewise.
20812 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
20813
20814 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20815
20816 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
20817 specify the mode iterator referenced by <mode>, giving...
20818 (*push1_h8300hs_<QHI:mode>): ...this.
20819
20820 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20821
20822 * config/gcn/gcn-valu.md
20823 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
20824 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
20825 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
20826 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
20827 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
20828 but using the _exec comparison patterns.
20829 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
20830 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
20831 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
20832 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
20833 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
20834 but using the _exec comparison patterns.
20835
20836 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
20837
20838 * config/arm/sync.md
20839 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
20840 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
20841 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
20842 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
20843 <SIDI:cas_cmp_str>.
20844
20845 2019-07-06 Jakub Jelinek <jakub@redhat.com>
20846
20847 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
20848 (maybe_lookup_ctx): Add forward declaration.
20849 (omp_find_scan): Likewise. Walk into body of simd if composited
20850 with worksharing loop.
20851 (scan_omp_simd_scan): New function.
20852 (scan_omp_1_stmt): Call it.
20853 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
20854 ctx->for_simd_scan_phase.
20855 (lower_rec_input_clauses): Do much less work for inscan reductions
20856 in ctx->for_simd_scan_phase is_simd regions.
20857 (lower_omp_scan): Set is_simd also on simd constructs composited
20858 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
20859 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
20860 emit their body after in simd constructs composited with worksharing
20861 loop.
20862 (lower_omp_for_scan): Handle worksharing loop composited with simd.
20863
20864 * omp-low.c (omp_find_scan): Make static.
20865 (lower_omp_for_scan): Fix order of merge arguments in input phase of
20866 the second loop, var2 represents the first partial sum and so needs
20867 to go before rprivb[ivar].
20868
20869 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
20870
20871 * config/rs6000/rs6000-logue.c: Remove unused code.
20872
20873 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20874
20875 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
20876
20877 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
20878
20879 PR target/90712
20880 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
20881 check with a frame laid out check.
20882
20883 2019-07-05 Richard Biener <rguenther@suse.de>
20884
20885 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
20886 when comparing against a store with possibly the same value.
20887
20888 2019-07-05 Richard Biener <rguenther@suse.de>
20889
20890 PR tree-optimization/91091
20891 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
20892 (walk_non_aliased_vuses): Likewise.
20893 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
20894 (get_continuation_for_phi): New tbaa_p parameter and pass
20895 it down.
20896 (walk_non_aliased_vuses): Likewise.
20897 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
20898 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
20899 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
20900 Likewise.
20901 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
20902 (adjust_offsets_for_equal_base_address): New function.
20903 (vn_reference_lookup_3): Use it to catch more base equivalences.
20904 Handle and pass down tbaa_p flag.
20905 (vn_reference_lookup_pieces): Adjust.
20906 (vn_reference_lookup): Remove alias-set altering, instead pass
20907 down false as tbaa_p.
20908
20909 2019-07-05 Richard Biener <rguenther@suse.de>
20910
20911 PR tree-optimization/91091
20912 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
20913 accesses can happen with -fno-strict-aliasing.
20914
20915 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
20916
20917 * tree-ssa-alias.c (alias_stats): Add
20918 nonoverlapping_component_refs_since_match_p_must_overlap.
20919 (dump_alias_stats): Print it.
20920 (nonoverlapping_component_refs_since_match_p): Add early exit.
20921 (nonoverlapping_component_refs_p): Do not account early exit.
20922
20923 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20924
20925 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
20926 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
20927 (emit_eh_dispatch): Delete.
20928 (lower_catch): Emit the eh_dispatch manually and set the location of
20929 the first catch statement onto it.
20930 (lower_eh_filter): Emit the eh_dispatch manually and set location.
20931 (lower_eh_dispatch): Propagate location.
20932 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
20933 (eliminate_build): Likewise.
20934
20935 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20936
20937 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
20938 phi nodes if possible.
20939 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
20940 location info on the newly created statement.
20941 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
20942 newly created increment if needed.
20943
20944 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20945
20946 PR middle-end/78884
20947 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
20948 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
20949 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
20950 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
20951 ctx->add_safelen1 is set.
20952
20953 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
20954 GOMP_loop_start at the start of second worksharing loop in a scan.
20955 For nowait, don't emit GOMP_loop_end_nowait at the end of first
20956 worksharing loop in a scan even if there are conditional lastprivates,
20957 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
20958
20959 2019-07-04 Jan Hubicka <jh@suse.cz>
20960
20961 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
20962 Fix check for match in the ref walk.
20963
20964 2019-07-04 Martin Liska <mliska@suse.cz>
20965
20966 * tree-ssa-loop-niter.c
20967 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
20968 (estimate_numbers_of_iterations):
20969 Support __builtin_expect_with_probability for analysis
20970 of # of loop iterations.
20971
20972 2019-07-04 Alexandre Oliva <oliva@adacore.com>
20973
20974 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
20975 * except.c: Likewise.
20976 * expr.c (expand_expr_real_1): Reject it.
20977 * gimplify.c (gimplify_expr): Gimplify it, within
20978 TRY_FINALLY_EXPR.
20979 * tree-dump.c (dequeue_and_dump): Dump it.
20980 * tree-pretty-print.c (dump_generic_node): Likewise.
20981 * tree.c (block_may_fallthru): Handle it.
20982 * tree.def (EH_ELSE_EXPR): Introduce it.
20983 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
20984 with GIMPLE_EH_ELSE as try/finally/else.
20985
20986 2019-07-04 Richard Biener <rguenther@suse.de>
20987
20988 PR ipa/91062
20989 * tree-pass.h (execute_all_ipa_transforms): Add a flag
20990 parameter whether to disable GC collection.
20991 * passes.c (execute_one_ipa_transform_pass): Likewise, and
20992 honor it.
20993 (execute_all_ipa_transforms): Likewise and pass it down.
20994 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
20995 collection from applying IPA transforms.
20996 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
20997 from applying IPA transforms.
20998
20999 2019-07-04 Richard Biener <rguenther@suse.de>
21000
21001 PR tree-optimization/90911
21002 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21003 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21004 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21005 scalar_loop_scaling.
21006 (vect_transform_loop): Scale scalar loop profile if needed.
21007 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21008 the loop copy from if-conversion adjust edge probabilities
21009 and scale the vectorized loop body profile, queue the scalar
21010 profile for updating after peeling.
21011
21012 2019-07-04 Jan Hubicka <jh@suse.cz>
21013
21014 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21015 parameters; return early for must-alias.
21016 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21017 outer types match, try nonoverlapping_component_refs
21018 if must-alias is not obvious.
21019 (indirect_refs_may_alias_p): Likewise.
21020 (refs_may_alias_p_2): Likewise.
21021
21022 2019-07-04 Richard Biener <rguenther@suse.de>
21023
21024 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21025 argument.
21026 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21027 globals into...
21028 (struct vn_walk_cb_data): New callback data struct.
21029 (vn_reference_lookup_2): Adjust.
21030 (vn_reference_lookup_3): Likewise.
21031 (vn_reference_lookup_pieces): Likewise.
21032 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21033 (visit_reference_op_load): Adjust.
21034
21035 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21036
21037 PR tree-optimization/91063
21038 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21039 stmt from stmts sequence before calling vect_init_vector_1.
21040 Formatting fix.
21041
21042 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21043
21044 PR target/88833
21045 * fwprop.c (reg_single_def_p): New function.
21046 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21047 (forward_propagate_into): New parameter reg_prop_only
21048 with default value false.
21049 Propagate def's src into loop only if SET_SRC and SET_DEST
21050 of def_set have single definitions.
21051 Likewise if reg_prop_only is set to true.
21052 (fwprop): New param fwprop_addr_p.
21053 Integrate fwprop_addr into fwprop.
21054 (fwprop_addr): Remove.
21055 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21056 to true.
21057 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21058 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21059 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21060
21061 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21062
21063 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21064 in worksharing loop scans.
21065
21066 PR tree-optimization/91074
21067 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21068 temporary.
21069
21070 PR rtl-optimization/90756
21071 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21072 for VECTOR_TYPE_P.
21073
21074 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21075
21076 * config/aarch64/aarch64.md: Remove redundant constraints from
21077 define_expand but keep some patterns untouched if they are
21078 specially selected by TARGET_SECONDARY_RELOAD hook.
21079 * config/aarch64/aarch64-sve.md: Likewise.
21080 * config/aarch64/atomics.md: Remove redundant constraints from
21081 define_expand.
21082 * config/aarch64/aarch64-simd.md: Likewise.
21083
21084 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21085
21086 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21087 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21088 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21089 clauses.
21090 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21091 DARWIN_NOPIE_SPEC.
21092
21093 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21094
21095 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21096 (STARTFILE_SPEC): Split crt3 into a separate spec.
21097 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21098 (DARWIN_CRT2_SPEC): New.
21099 (DARWIN_CRT3_SPEC): New.
21100 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21101 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21102 (DARWIN_CRT3_SPEC): New.
21103
21104 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21105
21106 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21107 Change the RTL attribute "length" from "4" to "*" to allow the
21108 length attribute to be adjusted automatically for prefixed load,
21109 store, and add immediate instructions.
21110 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21111 Likewise.
21112 (extendsi<mode>2, EXTSI iterator): Likewise.
21113 (movsi_internal1): Likewise.
21114 (movsi_from_sf): Likewise.
21115 (movdi_from_sf_zero_ext): Likewise.
21116 (mov<mode>_internal): Likewise.
21117 (movcc_internal1, QHI iterator): Likewise.
21118 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21119 (movsf_from_si): Likewise.
21120 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21121 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21122 (mov<mode>, FMOVE128 iterator): Likewise.
21123 (movdi_internal64): Likewise.
21124 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21125 Likewise.
21126 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21127 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21128 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21129 (vsx_splat_v4sf): Likewise.
21130
21131 2019-07-03 Mark Wielaard <mark@klomp.org>
21132
21133 PR debug/90981
21134 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21135 DW_AT_addr_base if there is actually a .debug_addr section with
21136 addresses.
21137 (output_addr_table): Add DWARF5 table header generation here after
21138 checking there are actually any addresses from...
21139 (dwarf2out_finish): ...here.
21140
21141 2019-07-03 Richard Biener <rguenther@suse.de>
21142
21143 PR middle-end/91069
21144 * match.pd (vec_perm -> bit_insert): Fix element read from
21145 first vector.
21146
21147 2019-07-03 Martin Liska <mliska@suse.cz>
21148
21149 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21150 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21151 condition.
21152 * generic-match-head.c: Include dbgcnt.h.
21153 * gimple-match-head.c: Likewise.
21154
21155 2019-07-03 Martin Liska <mliska@suse.cz>
21156
21157 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21158 (GCOV_COUNTER_V_TOPN): New.
21159 (GCOV_COUNTER_V_INDIR): Use _topn.
21160 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21161 (GCOV_TOPN_VALUES): New.
21162 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21163 (GCOV_TOPN_VALUES_COUNTERS): New.
21164 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21165 * tree-profile.c:
21166 (gimple_init_gcov_profiler): Rename variables from one_value
21167 to topn_values.
21168 (gimple_gen_one_value_profiler): Remove.
21169 (gimple_gen_topn_values_profiler): New function.
21170 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21171 names instead of SINGLE_VALUE.
21172 (stream_out_histogram_value): Likewise.
21173 (stream_in_histogram_value): Likewise.
21174 (get_most_common_single_value): Likewise.
21175 (gimple_divmod_fixed_value_transform): Likewise.
21176 (gimple_stringops_transform): Likewise.
21177 (gimple_divmod_values_to_profile): Likewise.
21178 (gimple_stringops_values_to_profile): Likewise.
21179 (gimple_find_values_to_profile): Likewise.
21180 * value-prof.h (enum hist_type): Rename to TOPN.
21181 (gimple_gen_one_value_profiler): Remove.
21182 (gimple_gen_topn_values_profiler): New.
21183
21184 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21185
21186 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21187 if it has the DW_AT_data_member_location attribute.
21188
21189 2019-07-03 Richard Biener <rguenther@suse.de>
21190
21191 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21192 dumping.
21193
21194 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21195
21196 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21197 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21198 (tlsdesc_small_sve_<mode>): Likewise.
21199
21200 2019-07-03 Martin Liska <mliska@suse.cz>
21201
21202 * Makefile.in: Define ZSTD_LIB.
21203 * common.opt: Adjust compression level
21204 to support also zstd levels.
21205 * config.in: Regenerate.
21206 * configure: Likewise.
21207 * configure.ac: Add --with-zstd and --with-zstd-include options
21208 and detect ZSTD.
21209 * doc/install.texi: Mention zstd dependency.
21210 * gcc.c: Print supported LTO compression algorithms.
21211 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21212 (lto_compression_zstd): Likewise.
21213 (lto_uncompression_zstd): Likewise.
21214 (lto_end_compression): Dispatch in between zlib and zstd.
21215 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21216 (lto_uncompression_zlib): Make it static.
21217 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21218 * lto-section-in.c (lto_get_section_data): Pass info
21219 about used compression.
21220 * lto-streamer-out.c: By default use zstd when possible.
21221 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21222 (TV_IPA_LTO_COMPRESS): Likewise for compression.
21223
21224 2019-07-03 Martin Liska <mliska@suse.cz>
21225
21226 * lto-section-in.c (lto_get_section_data): Add "lto" section.
21227 * lto-section-out.c (lto_destroy_simple_output_block): Never
21228 compress LTO_section_lto section.
21229 * lto-streamer-out.c (produce_asm): Do not set major_version
21230 and minor_version.
21231 (lto_output_toplevel_asms): Likewise.
21232 (produce_lto_section): New function.
21233 (lto_output): Call produce_lto_section.
21234 (lto_write_mode_table): Do not set major_version and
21235 minor_version.
21236 (produce_asm_for_decls): Likewise.
21237 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21238 type.
21239 (struct lto_header): Remove.
21240 (struct lto_section): New struct.
21241 (struct lto_simple_header): Do not inherit from lto_header.
21242 (struct lto_file_decl_data): Add lto_section_header field.
21243
21244 2019-07-03 Martin Liska <mliska@suse.cz>
21245
21246 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21247 dead assignemts.
21248 * reg-stack.c (check_asm_stack_operands): Likewise.
21249 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21250 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21251 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21252 force_expand_binop.
21253
21254 2019-07-03 Martin Liska <mliska@suse.cz>
21255
21256 PR tree-optimization/90892
21257 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21258 in string constants.
21259
21260 2019-07-03 Martin Liska <mliska@suse.cz>
21261
21262 PR middle-end/90899
21263 * multiple_target.c (create_dispatcher_calls): Add to comdat
21264 group only if set for ifunc.
21265
21266 2019-07-03 Martin Liska <mliska@suse.cz>
21267
21268 PR target/88056
21269 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21270 Define local_object_name in outer scope in order to handle
21271 use-after-scope issue.
21272
21273 2019-07-03 Martin Liska <mliska@suse.cz>
21274
21275 * common.opt: Add fprofile-note.
21276 * coverage.c (coverage_init): Append the option
21277 to bbg_file_name.
21278 * doc/invoke.texi: Document -fprofile-note.
21279
21280 2019-07-03 Jakub Jelinek <jakub@redhat.com>
21281
21282 PR tree-optimization/91033
21283 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
21284 vect_analyze_data_refs): Add bool * arguments.
21285 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
21286 if failure is due to scatter/gather, set *fatal to false if non-NULL.
21287 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21288 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
21289 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
21290 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
21291 vect_analyze_data_refs caller.
21292
21293 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
21294 clause.
21295 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
21296 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
21297 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
21298 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
21299 OMP_CLAUSE__SCANTEMP_ entry.
21300 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
21301 * tree-pretty-print.c (dump_omp_clause): Likewise.
21302 * tree-nested.c (convert_nonlocal_omp_clauses,
21303 convert_local_omp_clauses): Likewise.
21304 * omp-general.h (struct omp_for_data): Add have_scantemp and
21305 have_nonctrl_scantemp members.
21306 * omp-general.c (omp_extract_for_data): Initialize them.
21307 * omp-low.c (struct omp_context): Add scan_exclusive member.
21308 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
21309 result again with GF_OMP_FOR_KIND_MASK. Initialize also
21310 ctx->scan_exclusive.
21311 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
21312 of !ctx->scan_inclusive.
21313 (lower_rec_input_clauses): Simplify gimplification of dtors using
21314 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
21315 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
21316 loops. Don't add barrier for reduction_omp_orig_ref if
21317 ctx->scan_??xclusive.
21318 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
21319 (lower_omp_scan): Use ctx->scan_exclusive instead
21320 of !ctx->scan_inclusive. Handle worksharing loops with inscan
21321 reductions. Use new_vard != new_var instead of repeated
21322 omp_is_reference calls.
21323 (omp_find_scan, lower_omp_for_scan): New functions.
21324 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
21325 inscan reductions.
21326 * omp-expand.c (expand_omp_scantemp_alloc): New function.
21327 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
21328 and fd->have_scantemp.
21329
21330 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
21331 on worksharing loop propagate it as shared clause to containing
21332 combined parallel.
21333
21334 * omp-expand.c (expand_omp_for_static_nochunk,
21335 expand_omp_for_static_chunk): For nowait worksharing loop with
21336 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
21337 at the end.
21338
21339 2019-07-02 qing zhao <qing.zhao@oracle.com>
21340
21341 PR preprocessor/90581
21342 * doc/cppopts.texi: Add document for -fmax-include-depth.
21343 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
21344
21345 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
21346
21347 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
21348 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
21349 (mmx_packssdw): Ditto.
21350 (mmx_punpckhbw): Ditto.
21351 (mmx_punpcklbw): Ditto.
21352 (mmx_punpckhwd): Ditto.
21353 (mmx_punpcklwd): Ditto.
21354 (mmx_punpckhdq): Ditto.
21355 (mmx_punpckldq): Ditto.
21356 (*vec_dupv4hi): Ditto.
21357 (*vec_dupv2si): Ditto.
21358 (mmx_pmovmskb): Ditto.
21359 * config/i386/sse.md (sse_cvtpi2ps): Use
21360 TARGET_SSE2 && SSE_REG_P in split condition.
21361 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
21362 TARGET_SSSE3 && SSE_REGNO_P in split condition.
21363 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
21364 (ssse3_pshufbv8qi3): Ditto.
21365 (ssse3_palignrdi): Ditto.
21366
21367 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
21368
21369 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
21370 with inlined save and restore.
21371
21372 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
21373
21374 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
21375 to be inserted on single successor edge of the entry block. Then call
21376 commit_edge_insertions instead of inserting the instructions manually.
21377 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
21378 RTL expansion and rebuild jump labels chain.
21379
21380 2019-07-02 Richard Biener <rguenther@suse.de>
21381
21382 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
21383 TI_CHREC_KNOWN.
21384 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21385 Define here.
21386 * tree.c (build_common_tree_nodes): Initialize them.
21387 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
21388 Make declarations comments.
21389 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
21390 chrec_known): Remove definitions.
21391 (initialize_scalar_evolutions_analyzer): Remove.
21392 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
21393 * tree-streamer.c (preload_common_nodes): Do not preload
21394 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
21395
21396 2019-07-02 Jan Hubicka <jh@suse.cz>
21397
21398 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
21399 sanity check.
21400
21401 2019-07-02 Jan Hubicka <jh@suse.cz>
21402
21403 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
21404 to ..
21405 (nonoverlapping_component_refs_since_match_p): ... this one;
21406 handle also non-decl bases; return -1 if search gave up.
21407 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
21408 nonoverlapping_component_refs_of_decl_p_no_alias to
21409 nonoverlapping_component_refs_since_match_p_may_alias,
21410 nonoverlapping_component_refs_since_match_p_no_alias.
21411 (dump_alias_stats): Update dumping.
21412 (aliasing_matching_component_refs_p): Break out from ...;
21413 dispatch to nonoverlapping_component_refs_for_decl_p
21414 and nonoverlapping_component_refs_since_match_p.
21415 (aliasing_component_refs_p): ... here; call
21416 nonoverlapping_component_refs_p in scenarios where we can not
21417 precisely determine base match.
21418 (decl_refs_may_alias_p): Use
21419 nonoverlapping_component_refs_since_match_p.
21420 (indirect_ref_may_alias_decl_p): Do not call
21421 nonoverlapping_component_refs_p.
21422 (indirect_refs_may_alias_p): Likewise.
21423
21424 2019-07-02 Jan Hubicka <jh@suse.cz>
21425
21426 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
21427 to clobber of return value.
21428
21429 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21430
21431 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
21432 for is_neon_type instructions that have not already been categorized.
21433
21434 2019-07-02 Richard Biener <rguenther@suse.de>
21435
21436 PR tree-optimization/58483
21437 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
21438 for MEM_REF base hashing.
21439 (equal_mem_array_ref_p): Likewise for base comparison.
21440
21441 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21442
21443 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
21444 parameterized name.
21445 (signbit<mode>2): Use that name. Simplify.
21446
21447 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
21448
21449 PR middle-end/66726
21450 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
21451 Tune heuristic from PR71016 to allow MIN / MAX.
21452
21453 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21454
21455 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
21456 parameterized name.
21457 (abs<mode>2): Use that name. Simplify.
21458
21459 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21460
21461 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
21462 parameterized name.
21463 (neg<mode>2): Use that name. Simplify.
21464
21465 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21466
21467 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
21468 name.
21469 (abs<mode>2): Use that name. Simplify.
21470
21471 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21472
21473 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
21474 name.
21475 (neg<mode>2): Use that name. Simplify.
21476
21477 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
21478
21479 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
21480 ("enabled" attribute): Handle sse_noavx isa attribute.
21481 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
21482 Use TARGET_SSE && SSE_REGNO_P in split condition.
21483 (*vec_dupv2sf): Ditto.
21484
21485 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21486
21487 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
21488 name.
21489 (floatsi<mode>2): Use that name. Simplify.
21490
21491 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21492
21493 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
21494 parameterized name.
21495 (extenddf<mode>2_vsx): Make this a parameterized name.
21496 (extenddf<mode>2): Use those names. Simplify.
21497
21498 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21499
21500 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
21501 name.
21502 (eh_return): Use that name. Simplify.
21503
21504 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21505
21506 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
21507 (doloop_end): Use that name. Simplify.
21508
21509 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21510
21511 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
21512 parameterized name.
21513 (indirect_jump): Use that name. Simplify.
21514
21515 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21516
21517 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
21518 parameterized name.
21519 (abs<mode>2): Use that name. Simplify.
21520
21521 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21522
21523 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
21524 parameterized name.
21525 (fix_trunc<mode>si2): Use that name. Simplify.
21526
21527 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21528
21529 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
21530 (allocate_stack): Use that name. Simplify.
21531
21532 2019-07-01 Martin Sebor <msebor@redhat.com>
21533
21534 PR middle-end/90923
21535 * hash-map.h (hash_map::put): On insertion invoke element ctor.
21536 (hash_map::get_or_insert): Same. Reformat comment.
21537 * hash-set.h (hash_set::add): On insertion invoke element ctor.
21538 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21539 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
21540 * hash-table.h (hash_table::operator=): Prevent copy assignment.
21541 (hash_table::hash_table (const hash_table&)): Use copy ctor
21542 instead of assignment to copy elements.
21543
21544 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
21545 John David Anglin <danglin@gcc.gnu.org>
21546
21547 PR target/90963
21548 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
21549 using saved frame pointer.
21550
21551 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
21552
21553 PR middle-end/64242
21554 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
21555 Add frame clobber and schedule blockage.
21556
21557 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
21558
21559 * doc/invoke.texi (Link Options): Further editorial changes to
21560 -flinker-output docs.
21561
21562 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
21563
21564 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
21565 Load both operands of a PLUS into registers separately.
21566
21567 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
21568
21569 * config/s390/vector.md: Fix shift count operand printing.
21570
21571 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21572
21573 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
21574
21575 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21576
21577 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
21578 Use recog_data to test for an output operand.
21579
21580 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21581
21582 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
21583 exclude any others that are disparaged or that are bound to need
21584 a reload or spill.
21585 (ira_get_dup_out_num): Expand comment.
21586
21587 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21588
21589 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
21590 constraint string for each operand/alternative combo. Only handle
21591 '%' at the start of constraint strings, and look for it outside
21592 the main loop.
21593
21594 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
21595
21596 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
21597 alternative_mask instead of HARD_REG_SET to represent a
21598 bitmask of alternatives.
21599 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21600 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
21601
21602 2019-07-01 Martin Liska <mliska@suse.cz>
21603
21604 * edit-context.c (test_applying_fixits_unreadable_file): Do not
21605 use () for a constructor call.
21606 (test_applying_fixits_line_out_of_range): Likewise.
21607 * ggc-page.c (alloc_page): Use (void *) for %p printf format
21608 argument.
21609 (free_page): Likewise.
21610
21611 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
21612
21613 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
21614 parameter names to match usage (no functional change).
21615 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
21616
21617 2019-07-01 Richard Biener <rguenther@suse.de>
21618
21619 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
21620 pass parameter.
21621 (pass_fre::execute): Honor it.
21622 * passes.def: Adjust pass_fre invocations to allow iterating,
21623 add non-iterating pass_fre before late threading/dom.
21624
21625 2019-07-01 Richard Biener <rguenther@suse.de>
21626
21627 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
21628 TARGET_MEM_REF handling to also handle address-taken ones.
21629
21630 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
21631
21632 * doc/sourcebuild.texi (Effective-Target Keywords, Other
21633 hardware attributes): Document avx512vp2intersect.
21634
21635 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21636
21637 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
21638 (abs<mode>2): New expander.
21639 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
21640 Use CODE_FOR_ssse3_absv8qi2.
21641 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
21642 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
21643
21644 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21645
21646 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
21647 to sse, sse_noavx and avx. Update all uses.
21648
21649 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
21650
21651 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
21652 (*mmx_<plusminus_insn><mode>3): Ditto.
21653 (*mmx_mulv4hi3"): Ditto.
21654 (*mmx_smulv4hi3_highpart): Ditto.
21655 (*mmx_umulv4hi3_highpart): Ditto.
21656 (*mmx_pmaddwd): Ditto.
21657 (*sse2_umulv1siv1di3): Ditto.
21658 (*mmx_<code>v4hi3): Ditto.
21659 (*mmx_<code>v8qi3): Ditto.
21660 (mmx_ashr<mode>3): Ditto.
21661 ("mmx_<shift_insn><mode>3): Ditto.
21662 (*mmx_eq<mode>3): Ditto.
21663 (mmx_gt<mode>3): Ditto.
21664 (mmx_andnot<mode>3): Ditto.
21665 (*mmx_<code><mode>3): Ditto.
21666 (*mmx_pinsrw): Ditto.
21667 (*mmx_pextrw): Ditto.
21668 (mmx_pshufw_1): Ditto.
21669 (*mmx_uavgv8qi3): Ditto.
21670 (*mmx_uavgv4hi3): Ditto.
21671 ("mmx_psadbw): Ditto.
21672 * config/i386/sse.md (sse_cvtps2pi): Ditto.
21673 (sse_cvttps2pi): Ditto.
21674 (ssse3_pmaddubsw): Ditto.
21675 (*ssse3_pmulhrswv4hi3): Ditto.
21676 (ssse3_psign<mode>3): Ditto.
21677
21678 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
21679
21680 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
21681 adjustment for bit-fields to all aggregate types.
21682
21683 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
21684
21685 * config/rs6000/predicates.md (pcrel_address): Use
21686 SYMBOL_REF_LOCAL_P to determine if a label is local.
21687 (pcrel_external_address): New predicate.
21688 (non_prefixed_mem_operand): Delete, predicate not used.
21689 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
21690 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
21691 addressing.
21692 (SYMBOL_REF_PCREL_P): Likewise.
21693
21694 PR target/91009
21695 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
21696 alternative.
21697 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
21698 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
21699 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
21700
21701 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
21702
21703 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
21704 override on extra_headers.
21705
21706 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
21707
21708 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
21709 * config/darwin-driver.c (darwin_default_min_version): Remove newline
21710 from warning.
21711 (darwin_driver_init): Likewise.
21712
21713 2019-06-28 Jan Beulich <jbeulich@suse.com>
21714
21715 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
21716 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
21717 Eliminate redundant alternative.
21718
21719 2019-06-28 Jan Beulich <jbeulich@suse.com>
21720
21721 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
21722 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
21723 Use vector_operand.
21724
21725 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
21726
21727 * config/arc/arc.c (arc_rtx_costs): All short instructions are
21728 having a lower cost regardless of the speed option.
21729
21730 2019-06-28 Jan Beulich <jbeulich@suse.com>
21731
21732 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
21733 vector_operand plus, on both alternatives, "Bm" constraint.
21734
21735 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
21736
21737 * config/arm/arm.md: Remove redundant constraints from
21738 define_expand but leave reload_inm and reload_outm patterns
21739 untouched since they need special constraints to work.
21740 * config/arm/arm-fixed.md: Remove redundant constraints from
21741 define_expand.
21742 * config/arm/iwmmxt.md: Likewise.
21743 * config/arm/neon.md: Likewise.
21744 * config/arm/sync.md: Likewise.
21745 * config/arm/thumb1.md: Likewise.
21746 * config/arm/vec-common.md: Likewise.
21747
21748 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
21749
21750 * doc/install.texi: Document --disable-tm-clone-registry.
21751
21752 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21753
21754 PR c++/91024
21755 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
21756 statements.
21757
21758 PR tree-optimization/91010
21759 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
21760 return true. Otherwise, don't call operand_equal_p if offset1 or
21761 offset2 is NULL and just return false.
21762
21763 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21764
21765 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
21766 user-specified float mode choice for kernel mode code.
21767
21768 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21769
21770 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
21771 spec.
21772
21773 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
21774
21775 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
21776 use longcall for 64b code.
21777
21778 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
21779
21780 * builtins.c (get_memory_rtx): Fix comment.
21781 * optabs.def (movmem_optab): Change to cpymem_optab.
21782 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
21783 (emit_block_move_hints): Change movmem to cpymem.
21784 * defaults.h: Change movmem to cpymem.
21785 * targhooks.c (get_move_ratio): Change movmem to cpymem.
21786 (default_use_by_pieces_infrastructure_p): Ditto.
21787 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
21788 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
21789 to cpymem.
21790 * config/aarch64/aarch64.h: Change movmem to cpymem.
21791 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
21792 * config/alpha/alpha.h: Change movmem to cpymem in comment.
21793 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
21794 movmem to cpymem.
21795 * config/arc/arc-protos.h: Change movmem to cpymem.
21796 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
21797 * config/arc/arc.h: Change movmem to cpymem in comment.
21798 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
21799 * config/arm/arm-protos.h: Change movmem to cpymem in names.
21800 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
21801 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
21802 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
21803 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
21804 * config/avr/avr-protos.h: Change movmem to cpymem.
21805 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
21806 avr_out_movmem): Change movmem to cpymem.
21807 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
21808 Change movmem to cpymem.
21809 * config/bfin/bfin-protos.h: Change movmem to cpymem.
21810 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
21811 Change movmem to cpymem.
21812 * config/bfin/bfin.h: Change movmem to cpymem in comment.
21813 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
21814 * config/c6x/c6x-protos.h: Change movmem to cpymem.
21815 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
21816 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
21817 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
21818 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
21819 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
21820 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
21821 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
21822 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
21823 expand_small_cpymem_or_setmem,
21824 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
21825 expand_set_or_cpymem_constant_prologue,
21826 ix86_expand_set_or_cpymem): Change movmem to cpymem.
21827 * config/i386/i386-protos.h: Change movmem to cpymem.
21828 * config/i386/i386.h: Change movmem to cpymem in comment.
21829 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
21830 (setmem<mode>): Change expansion function name.
21831 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
21832 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
21833 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
21834 * config/m32c/m32c-protos.h: Change movmem to cpymem.
21835 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
21836 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
21837 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
21838 to cpymem.
21839 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
21840 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
21841 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
21842 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
21843 Change movmem to cpymem.
21844 * config/mips/mips.h: Change movmem to cpymem.
21845 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
21846 * config/nds32/nds32-memory-manipulation.c
21847 (nds32_expand_movmemsi_loop_unknown_size,
21848 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
21849 nds32_expand_movmemsi_unroll,
21850 nds32_expand_movmemsi): Change movmem to cpymem.
21851 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
21852 * config/nds32/nds32-protos.h: Change movmem to cpymem.
21853 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
21854 (pa_adjust_insn_length): Change call to compute_movmem_length.
21855 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
21856 movmemdi, movmemdi_prereload,
21857 movmemdi_postreload): Change movmem to cpymem.
21858 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
21859 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
21860 * config/riscv/riscv.c: Change movmem to cpymem in comment.
21861 * config/riscv/riscv.h: Change movmem to cpymem.
21862 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
21863 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
21864 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
21865 movmem to cpymem.
21866 * config/s390/s390-protos.h: Change movmem to cpymem.
21867 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
21868 s390_expand_insv): Change movmem to cpymem.
21869 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
21870 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
21871 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
21872 * config/sparc/sparc.h: Change movmem to cpymem in comment.
21873 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
21874 for nonexistent function.
21875 * config/vax/vax.h: Change movmem to cpymem in comment.
21876 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
21877 * config/visium/visium.h: Change movmem to cpymem in comment.
21878 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
21879 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
21880 * doc/md.texi: Change movmem to cpymem and update description to match.
21881 * doc/rtl.texi: Change movmem to cpymem.
21882 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
21883 * doc/tm.texi: Regenerate.
21884
21885 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
21886
21887 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
21888 -fvariable-expansion-in-unroller by default.
21889 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
21890 default for Power.
21891
21892 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
21893
21894 Revert
21895 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21896 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
21897
21898 * config.gcc(rs6000-*-*): Define target_gtfiles.
21899
21900 2019-06-27 Jan Hubicka <jh@suse.cz>
21901
21902 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
21903 (add_type_duplicate): When odr hash is not allocated, to nothing.
21904 (odr_based_tbaa_p): New function.
21905 (set_type_canonical_for_odr_type): New function.
21906 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
21907 set_type_canonical_for_odr_type): New.
21908 * tree.c (gimple_canonical_types_compatible_p): ODR types with
21909 ODR based TBAA are not equivalent to non-ODR types.
21910
21911 2019-06-27 Martin Liska <mliska@suse.cz>
21912
21913 PR tree-optimization/90974
21914 PR rtl-optimization/90975
21915 PR rtl-optimization/90976
21916 PR target/91016
21917 PR tree-optimization/91017
21918 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
21919 unused tmp.
21920 * lra.c (lra_set_insn_recog_data): Remove a leftover from
21921 initial commit of IRA.
21922 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
21923 of op0 and op1.
21924 * tree-vect-loop.c (vect_create_epilog_for_reduction):
21925 Remove unused mode1.
21926 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
21927 to new_stmt_info.
21928
21929 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21930
21931 PR target/90991
21932 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
21933 instead of register_operand for operands[1], add m to its constraints
21934 if operands[2] uses "C" constraint. Ensure in condition that if
21935 operands[2] is not 0, then operands[1] is not a MEM. For last two
21936 alternatives, use unaligned loads instead of aligned if operands[1] is
21937 misaligned_operand.
21938
21939 2019-06-27 Martin Liska <mliska@suse.cz>
21940
21941 * asan.c (asan_emit_allocas_unpoison): Remove obviously
21942 dead assignments.
21943 * bt-load.c (move_btr_def): Likewise.
21944 * builtins.c (expand_builtin_apply_args_1): Likewise.
21945 (expand_builtin_apply): Likewise.
21946 * cfgexpand.c (expand_asm_stmt): Likewise.
21947 (construct_init_block): Likewise.
21948 * cfghooks.c (verify_flow_info): Likewise.
21949 * cfgloopmanip.c (remove_path): Likewise.
21950 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
21951 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
21952 * combine.c (simplify_if_then_else): Likewise.
21953 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
21954 (choose_basereg): Likewise.
21955 (ix86_expand_prologue): Likewise.
21956 (ix86_preferred_output_reload_class): Likewise.
21957 * cselib.c (cselib_record_sets): Likewise.
21958 * df-scan.c (df_scan_alloc): Likewise.
21959 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
21960 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
21961 * emit-rtl.c (try_split): Likewise.
21962 * graphite-scop-detection.c (assign_parameter_index_in_region):
21963 Likewise.
21964 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
21965 * ira-color.c (setup_profitable_hard_regs): Likewise.
21966 * ira.c (rtx_moveable_p): Likewise.
21967 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
21968 * read-rtl.c (read_subst_mapping): Likewise.
21969 * regrename.c (scan_rtx): Likewise.
21970 * reorg.c (fill_slots_from_thread): Likewise.
21971 * tree-inline.c (tree_function_versioning): Likewise.
21972 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
21973 * tree-ssa-sink.c (statement_sink_location): Likewise.
21974 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
21975 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
21976 (vect_create_epilog_for_reduction): Likewise.
21977 * tree.c (build_nonstandard_integer_type): Likewise.
21978
21979 2019-06-27 Richard Biener <rguenther@suse.de>
21980
21981 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
21982
21983 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
21984
21985 PR tree-optimization/89772
21986 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
21987 out-of-bound accesses checking.
21988
21989 2019-06-27 Martin Liska <mliska@suse.cz>
21990
21991 PR tree-optimization/91014
21992 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
21993 when LHS is NULL_TREE.
21994
21995 2019-06-27 Martin Liska <mliska@suse.cz>
21996
21997 * symbol-summary.h (traverse): Pass
21998 argument a to the call of callback.
21999 (gt_ggc_mx): Mark arguments as unused.
22000 (gt_pch_nx): Likewise.
22001
22002 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22003
22004 PR target/62147
22005 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22006 finiteness.
22007
22008 2019-06-26 Jeff Law <law@redhat.com>
22009
22010 PR tree-optimization/90883
22011 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22012 (delete_dead_or_redundant_assignment): Likewise.
22013
22014 PR tree-optimization/90883
22015 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22016 * tree-ssa-dse.c: Update various comments to distinguish between
22017 dead and redundant stores.
22018 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22019 (dse_optimize_redundant_stores): New function.
22020 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22021 Distinguish between dead and redundant calls in dump output. All
22022 callers updated.
22023 (delete_dead_or_redundant_assignment): Similarly for assignments.
22024 (dse_optimize_stmt): Handle _CHK variants. For statements which
22025 store 0 into multiple memory locations, try to prove a subsequent
22026 store is redundant.
22027
22028 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22029
22030 PR target/89021
22031 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22032 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22033
22034 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22035
22036 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22037 (branch_islands): New extern.
22038 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22039 * config/rs6000/rs6000.c: .. here.
22040
22041 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22042
22043 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22044 (powerpc*-*-*) ... to here.
22045
22046 2019-06-26 Jeff Law <law@redhat.com>
22047
22048 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22049 memcpy, memmove and memset builtins.
22050 (maybe_trim_memstar_call): Likewise.
22051
22052 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22053
22054 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22055
22056 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22057
22058 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22059
22060 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22061
22062 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22063 declaration.
22064 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22065 "static".
22066 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22067 declaration.
22068
22069 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22070
22071 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22072
22073 2019-06-26 Richard Biener <rguenther@suse.de>
22074
22075 PR ipa/90982
22076 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22077
22078 2019-06-26 Richard Biener <rguenther@suse.de>
22079
22080 * lto-streamer.h (lto_bitmap_alloc): Remove.
22081 (lto_bitmap_free): Likewise.
22082 * lto-streamer.c (lto_bitmap_alloc): Remove.
22083 (lto_bitmap_free): Likewise.
22084 (lto_obstack): Likewise.
22085 (lto_obstack_initialized): Likewise.
22086 * lto-streamer-out.c (lto_output): Use own obstack for local
22087 bitmap, free it consistently.
22088
22089 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22090
22091 PR target/90991
22092 * config/i386/sse.md
22093 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22094 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22095 insns if operands[2] is misaligned_operand.
22096
22097 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22098
22099 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22100 TARGET_POWERPC64.
22101 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22102 to GPR.
22103
22104 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22105
22106 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22107
22108 2019-06-26 Martin Liska <mliska@suse.cz>
22109
22110 PR tree-optimization/90973
22111 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22112 epilogue_cost_vec instead of prologue_cost_vec for
22113 a epilogue cost.
22114
22115 2019-06-26 Martin Liska <mliska@suse.cz>
22116
22117 * bb-reorder.c (connect_better_edge_p): Add missing else
22118 statement in the middle of if-else statements.
22119
22120 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22121 H.J. Lu <hongjiu.lu@intel.com>
22122 Olga Makhotina <olga.makhotina@intel.com>
22123
22124 * common/config/i386/i386-common.c
22125 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22126 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22127 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22128 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22129 (ix86_handle_option): Handle -mavx512vp2intersect.
22130 * config/i386/avx512vp2intersectintrin.h: New.
22131 * config/i386/avx512vp2intersectvlintrin.h: New.
22132 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22133 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22134 AVX512VP2INTERSECT.
22135 * config/i386/i386-builtin-types.def: Add new types.
22136 * config/i386/i386-builtin.def: Add new builtins.
22137 * config/i386/i386-builtins.c: (enum processor_features): Add
22138 F_AVX512VP2INTERSECT.
22139 (static const _isa_names_table isa_names_table): Ditto.
22140 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22141 __AVX512VP2INTERSECT__.
22142 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22143 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22144 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22145 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22146 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22147 * config/i386/i386-options.c (ix86_target_string): Add
22148 -mavx512vp2intersect.
22149 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22150 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22151 P2HImode and P2QImode.
22152 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22153 number for P2QImode and P2HImode.
22154 (ix86_regmode_natural_size): New function.
22155 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22156 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22157 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22158 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22159 * config/i386/i386.opt: Add -mavx512vp2intersect.
22160 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22161 avx512vp2intersectvlintrin.h.
22162 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22163 (define_mode_iterator VI48_AVX512VP2VL): New.
22164 (avx512vp2intersect_2intersect<mode>,
22165 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22166 * config.gcc: Add avx512vp2intersectvlintrin.h and
22167 avx512vp2intersectintrin.h to extra_headers.
22168 * doc/invoke.texi: Document -mavx512vp2intersect.
22169
22170 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22171
22172 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22173
22174 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22175
22176 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22177 savres_routine_syms, savres_routine_name, morestack_ref,
22178 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22179 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22180 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22181 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22182 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22183 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22184 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22185 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22186 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22187 get_stack_clash_protection_probe_interval,
22188 get_stack_clash_protection_guard_size,
22189 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22190 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22191 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22192 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22193 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22194 gen_frame_mem_offset, rs6000_savres_routine_name,
22195 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22196 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22197 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22198 rs6000_global_entry_point_prologue_needed_p,
22199 rs6000_get_separate_components, rs6000_components_for_bb,
22200 rs6000_disqualify_components, rs6000_emit_prologue_components,
22201 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22202 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22203 rs6000_output_savres_externs, rs6000_output_function_prologue,
22204 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22205 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22206 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22207 rs6000_output_function_epilogue, gen_add3_const,
22208 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22209 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22210 to rs6000-logue.c.
22211 (machine_function): Moved to rs6000.h.
22212 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22213 rs6000-internal.h.
22214 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22215 savres_routine_syms, savres_routine_name, morestack_ref,
22216 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22217 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22218 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22219 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22220 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22221 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22222 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22223 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22224 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22225 get_stack_clash_protection_probe_interval,
22226 get_stack_clash_protection_guard_size,
22227 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22228 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22229 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22230 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22231 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22232 gen_frame_mem_offset, rs6000_savres_routine_name,
22233 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22234 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22235 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22236 rs6000_global_entry_point_prologue_needed_p,
22237 rs6000_get_separate_components, rs6000_components_for_bb,
22238 rs6000_disqualify_components, rs6000_emit_prologue_components,
22239 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22240 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22241 rs6000_output_savres_externs, rs6000_output_function_prologue,
22242 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22243 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22244 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22245 rs6000_output_function_epilogue, gen_add3_const,
22246 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22247 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22248 to here from rs6000.c.
22249 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22250 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22251 quad_address_offset_p) Moved to here from rs6000.c.
22252 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22253 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22254 collector.
22255
22256 2019-06-25 Martin Liska <mliska@suse.cz>
22257
22258 * hash-table.c (hashtab_chk_error): Move here from ...
22259 * hash-table.h (hashtab_chk_error): ... here.
22260
22261 2019-06-25 Martin Liska <mliska@suse.cz>
22262
22263 PR tree-optimization/90978
22264 * df-scan.c (df_update_entry_block_defs): Remove dead else
22265 branch.
22266 (df_update_exit_block_uses): Likewise.
22267
22268 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
22269 Andrew Stubbs <ams@codesourcery.com>
22270
22271 * config.gcc (thread_file): Set to gcn for AMD GCN.
22272 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22273 (TARGET_EMUTLS_VAR_INIT): New hook.
22274
22275 2019-06-25 Martin Jambor <mjambor@suse.cz>
22276
22277 PR ipa/90939
22278 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
22279
22280 2019-06-25 Richard Biener <rguenther@suse.de>
22281
22282 PR tree-optimization/90930
22283 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
22284 into parallel form in the last pass instance.
22285
22286 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
22287
22288 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
22289 (arc_legitimize_pic_address): Simplify and cleanup the function.
22290 (SYMBOLIC_CONST): Remove.
22291 (prepare_pic_move): Likewise.
22292 (prepare_move_operands): Handle complex mov cases here.
22293 (arc_legitimize_address_0): Remove call to
22294 arc_legitimize_pic_address.
22295 (arc_legitimize_address): Remove call to
22296 arc_legitimize_tls_address.
22297 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
22298 (movhi_insn): Likewise.
22299
22300 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22301
22302 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
22303 PTRDIFF_TYPE.
22304 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
22305 format of "__intN" types for UINTMAX_TYPE.
22306 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
22307 format of "__intN" types for SIZETYPE.
22308 * tree.c (build_common_tree_nodes): Accept "__intN__"
22309 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
22310 * doc/invoke.texi: Document that __intN__ disables pedantic
22311 warnings.
22312
22313 2019-06-25 Jan Hubicka <jh@suse.cz>
22314
22315 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
22316 base2_alias_set is non-zero before doing TBAA based disambiguation.
22317
22318 2019-06-25 Martin Liska <mliska@suse.cz>
22319
22320 PR tree-optimization/90973
22321 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
22322 of prologue and epilogue.
22323
22324 2019-06-24 Jan Hubicka <jh@suse.cz>
22325
22326 * ipa-utils.h (type_with_linkage_p): Verify that type is
22327 CXX_ODR_P.
22328 (odr_type_p): Remove extra return.
22329 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
22330 hash STRING_FLAG only for arrays and integers.
22331 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
22332 Update analogously.
22333 * tree-streamer-out.c (pack_ts_type_common_value_fields):
22334 Likewise.
22335 * print-tree.c (print_node): Print cxx-odr-p
22336 and string-flag.
22337 * tree.c (need_assembler_name_p): Also check that type
22338 is CXX_ODR_TYPE_P
22339 (verify_type_variant): Update verification of SRING_FLAG;
22340 also check CXX_ODR_P.
22341 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
22342 (TYPE_STRING_FLAG): Use it.
22343 (TYPE_CXX_ODR_P): New macro.
22344 * dwarf2out.c (gen_array_type_die): First check that type
22345 is an array and then test string flag.
22346
22347 2019-06-24 Richard Biener <rguenther@suse.de>
22348
22349 PR tree-optimization/90972
22350 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
22351 in common code, dealing with STRING_CST properly.
22352
22353 2019-06-24 Richard Biener <rguenther@suse.de>
22354
22355 PR tree-optimization/90930
22356 PR tree-optimization/90316
22357 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
22358 decrement of limit.
22359
22360 2019-06-24 Martin Sebor <msebor@redhat.com>
22361
22362 * tree-pretty-print.h: Remove unnecessary punctuation characters
22363 from a diagnostic.
22364 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
22365
22366 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
22367
22368 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
22369 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
22370 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
22371
22372 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22373
22374 * config/rs6000/darwin.h: Handle GCC target pragma.
22375
22376 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
22377
22378 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
22379
22380 2019-06-22 Jeff Law <law@redhat.com>
22381
22382 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22383
22384 2019-06-22 Jan Hubicka <jh@suse.cz>
22385
22386 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
22387 give up on bitfields; continue searching for different refs
22388 appearing later.
22389
22390 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22391
22392 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22393 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
22394 containing the offset as possible simd lane access. Look through
22395 widening conversion. Move the
22396 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
22397
22398 2019-06-21 Richard Biener <rguenther@suse.de>
22399
22400 PR tree-optimization/90930
22401 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
22402 flag on new stmts to avoid re-processing them.
22403
22404 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
22405
22406 PR c++/90875 - added -Wswitch-outside-range option
22407 * doc/invoke.texi (Wswitch-outside-range): Document.
22408
22409 2019-06-21 Jeff Law <law@redhat.com>
22410
22411 PR tree-optimization/90949
22412 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
22413 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
22414
22415 2019-06-21 Richard Biener <rguenther@suse.de>
22416
22417 PR debug/90914
22418 * dwarf2out.c (prune_unused_types_walk): Always consider
22419 function-local extern declarations as used.
22420
22421 2019-06-21 Richard Biener <rguenther@suse.de>
22422
22423 PR tree-optimization/90913
22424 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
22425 the scalar variant of if-conversion versioning.
22426
22427 2019-06-21 Jakub Jelinek <jakub@redhat.com>
22428
22429 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
22430 create another "omp scan inscan exclusive" array if
22431 !ctx->scan_inclusive.
22432 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
22433 (lower_omp_scan): Likewise.
22434 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
22435 2-bit bitfield for simd_lane_access_p member.
22436 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
22437 aux == (void *)-4 as simd lane access.
22438 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
22439 comment with permutations to show the canonical permutation order.
22440 (vectorizable_scan_store): Handle exclusive scan.
22441 (vectorizable_store): Call vectorizable_scan_store even for
22442 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
22443
22444 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
22445 "omp simd array" arrays with one byte elements.
22446
22447 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
22448
22449 * config/alpha/alpha.md (@unaligned_store<mode>):
22450 Rename from unaligned_store<mode>.
22451 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
22452 * config/alpha/sync.md (@load_locked_<mode>): Rename
22453 from load_locked_<mode>.
22454 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
22455 (@atomic_compare_and_swap<mode>_1): Rename
22456 from atomic_compare_and_swap<mode>_1.
22457 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
22458 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
22459 Use gen_reload_in_aligned and gen_unaligned_store.
22460 (emit_load_locked): Remove.
22461 (emit_store_conditional): Ditto.
22462 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
22463 (alpha_split_compare_and_swap): Ditto.
22464 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
22465 (alpha_split_compare_and_swap_12): Use gen_load_locked
22466 and gen_store_conditional.
22467 (alpha_split_atomic_exchange): Ditto.
22468 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
22469 (alpha_split_atomic_exchange_12): Use gen_load_locked
22470 and gen_store_conditional.
22471
22472 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
22473
22474 * config/aarch64/aarch64-errata.h: New file.
22475 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
22476 (CA53_ERR_843419_SPEC): Delete.
22477 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
22478 * config/aarch64/aarch64-linux.h: Likewise.
22479 * config/aarch64/aarch64-netbsd.h: Likewise.
22480 * config/aarch64/aarch64-freebsd.h: Likewise.
22481
22482 2019-06-20 Marek Polacek <polacek@redhat.com>
22483
22484 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
22485
22486 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
22487
22488 * config/rs6000/rs6000.md (isa attribute): Add support for
22489 for a future processor.
22490
22491 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
22492
22493 PR target/54855
22494 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
22495 standard scalar operation pattern for V2DF.
22496 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
22497 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
22498 (*ieee_<ieee_maxmin><mode>3): Likewise.
22499 (vec_setv2df_0): Likewise.
22500
22501 2019-06-20 Jan Hubicka <jh@suse.cz>
22502
22503 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
22504 parameter; it has no use in gimple memory model.
22505 (indirect_ref_may_alias_decl_p): Update.
22506
22507 2019-06-20 Martin Liska <mliska@suse.cz>
22508
22509 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
22510 to 10.
22511
22512 2019-06-20 Jakub Jelinek <jakub@redhat.com>
22513
22514 * tree-vect-stmts.c (enum scan_store_kind): New type.
22515 (scan_store_can_perm_p): Change last argument from int * to
22516 vec<enum scan_store_kind> *, record precisely which permutations
22517 need whole vector left shift or that plus VEC_COND_EXPR.
22518 (vectorizable_scan_store): Adjust caller, use whole vector left shift
22519 and additional VEC_COND_EXPR only for those iterations that need it.
22520
22521 2019-06-20 Alexandre Oliva <oliva@adacore.com>
22522
22523 * config.gcc: Fix ARM --with-fpu checking and error message.
22524
22525 2019-06-19 Marek Polacek <polacek@redhat.com>
22526
22527 PR c++/60364 - noreturn after first decl not diagnosed.
22528 * attribs.c (get_attribute_namespace): No longer static.
22529 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
22530 attributes.
22531 (attr_noreturn_exclusions): Make it extern.
22532 * attribs.h (get_attribute_namespace): Declare.
22533 * tree-inline.c (function_attribute_inlinable_p): Use
22534 get_attribute_name.
22535
22536 2019-06-19 Martin Sebor <msebor@redhat.com>
22537
22538 PR tree-optimization/90626
22539 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
22540
22541 PR tree-optimization/90626
22542 * tree-ssa-strlen.c (strxcmp_unequal): New function.
22543 (handle_builtin_string_cmp): Call it.
22544
22545 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22546
22547 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
22548 and DARWIN_NOPIE_SPEC.
22549 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
22550 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
22551 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
22552 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
22553 (DARWIN_EXPORT_DYNAMIC): Delete.
22554 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
22555 and pie options processing to darwin.h.
22556 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
22557
22558 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
22559
22560 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
22561 in computing the number of options to be moved.
22562
22563 2019-06-19 Maya Rashish <coypu@sdf.org>
22564
22565 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
22566 (CLEAR_INSN_CACHE) Use it.
22567
22568 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
22569
22570 * config/i386/i386.md (cmpstrnsi): Remove dead code.
22571
22572 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
22573
22574 PR middle-end/84521
22575 * builtins.c (expand_builtin_setjmp_setup): Save
22576 hard_frame_pointer_rtx.
22577 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
22578 restore fp.
22579 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
22580 non-local goto.
22581 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
22582 elimination code.
22583 (remove_reg_equal_offset_note): Remove unused function.
22584 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
22585 code.
22586 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22587 (arc_builtin_setjmp_frame_value): Remove function.
22588 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22589 (avr_builtin_setjmp_frame_value): Remove function.
22590 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22591 (ix86_builtin_setjmp_frame_value): Remove function.
22592 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
22593 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22594 (sparc_builtin_setjmp_frame_value): Remove function.
22595 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
22596 (vax_builtin_setjmp_frame_value): Remove function.
22597 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
22598 pointer if has_nonlocal_label.
22599
22600 2019-06-19 Jakub Jelinek <jakub@redhat.com>
22601
22602 * doc/md.texi: Document vec_shl_<mode> pattern.
22603 * optabs.def (vec_shl_optab): New optab.
22604 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
22605 argument, if == vec_shl_optab, check for left whole vector shift
22606 pattern rather than right shift.
22607 (expand_vec_perm_const): Add vec_shl_optab support.
22608 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
22609 in the comment.
22610 * tree-vect-generic.c (lower_vec_perm): Support permutations which
22611 can be handled by vec_shl_optab.
22612 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
22613 (check_scan_store): Use it.
22614 (vectorizable_scan_store): If target can't do normal permutations,
22615 try to use whole vector left shifts and if needed a VEC_COND_EXPR
22616 after it.
22617 * config/i386/sse.md (vec_shl_<mode>): New expander.
22618
22619 * omp-low.c (lower_rec_input_clauses): Handle references properly
22620 in inscan clauses.
22621 (lower_omp_scan): Likewise.
22622
22623 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22624
22625 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
22626 mem_mode is BLKmode.
22627
22628 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
22629
22630 PR target/90922
22631 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
22632 pointer adjustment for the case of no callee-saved registers and
22633 stack frame bigger than 128 bytes.
22634
22635 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
22636
22637 PR middle-end/90862
22638 * omp-low.c (check_omp_nesting_restrictions): Handle
22639 GF_OMP_TARGET_KIND_OACC_DECLARE.
22640
22641 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
22642
22643 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
22644 (@add<mode>3_carry): Rename from add<mode>3_carry.
22645 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
22646 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
22647 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
22648 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
22649 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
22650 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
22651 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
22652 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
22653 (cmpstrnsi): Use gen_cmp_1.
22654 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
22655 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
22656 (@umonitor_<mode>): Rename from umonitor_<mode>.
22657 * config/i386/i386-expand.c (ix86_expand_copysign):
22658 Use gen_copysign3_const and gen_copysign3_var.
22659 (ix86_expand_xorsign): Use gen_xorsign3_1.
22660 (ix86_expand_branch): Use gen_sub3_carry_ccc,
22661 gen_sub3_carry_ccgz and gen_cmp1.
22662 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
22663 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
22664 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
22665 (ix86_split_lshr): Ditto.
22666 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
22667
22668 2019-06-18 Jason Merrill <jason@redhat.com>
22669
22670 * tree.c (build_constructor): Add MEM_STAT_DECL.
22671
22672 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22673
22674 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
22675 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
22676 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
22677 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
22678 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
22679 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
22680 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
22681 Use CC_NZC instead of CC.
22682 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
22683 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
22684 (aarch64_print_operand): Handle E_CC_NZCmode.
22685 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
22686 of gen_set_clobber_cc.
22687
22688 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22689
22690 * config/aarch64/aarch64-sve.md: Tabify file.
22691
22692 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22693
22694 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
22695 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
22696 * config/aarch64/aarch64-sve.md: Use it.
22697
22698 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22699
22700 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
22701 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
22702 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
22703 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
22704 (aarch64_expand_sve_vec_cmp_int): Use it.
22705 (aarch64_expand_sve_vec_cmp_float): Likewise.
22706 * config/aarch64/aarch64-sve.md: Likewise throughout.
22707
22708 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22709 Kugan Vivekanandarajah <kuganv@linaro.org>
22710
22711 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
22712 (*cond_<optab><mode>_z): Fold into...
22713 (*cond_<optab><mode>_any): ...here. Also handle cases in which
22714 operand 4 can be tied to operand 0 (either inherently or via RA).
22715
22716 2019-06-18 Richard Biener <rguenther@suse.de>
22717
22718 PR debug/90900
22719 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
22720 as if optimized away.
22721
22722 2019-06-18 Tom de Vries <tdevries@suse.de>
22723
22724 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
22725 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
22726 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
22727 Rename to ...
22728 (define_insn "@set_softstack_<mode>"): ... this.
22729 (define_insn "omp_simt_enter_<mode>"): Rename to ...
22730 (define_insn "@omp_simt_enter_<mode>"): ... this.
22731 (define_insn "omp_simt_exit_<mode>"): Rename to ...
22732 (define_insn "@omp_simt_exit_<mode>"): ... this.
22733
22734 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
22735
22736 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
22737 vf parameter. Restore the previous iv step of nscalars_step,
22738 but give it iv_type rather than compare_type. Tweak code order
22739 to match the comments.
22740 (vect_set_loop_condition_masked): Update accordingly.
22741 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
22742 for iv_precision. Tweak comment formatting.
22743
22744 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
22745
22746 * config/darwin.c: Strip trailing whitespace.
22747
22748 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
22749
22750 * config/darwin.c (darwin_emit_unwind_label): New default to false.
22751 (darwin_override_options): Set darwin_emit_unwind_label as needed.
22752
22753 2019-06-18 Martin Jambor <mjambor@suse.cz>
22754
22755 PR ipa/90889
22756 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
22757 caller does not have flag_ipa_cp set.
22758
22759 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22760
22761 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
22762 from "*fold_left_plus_<mode>", updated operands order.
22763 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
22764 * internal-fn.c (mask_fold_left_direct): New define.
22765 (expand_mask_fold_left_optab_fn): Likewise.
22766 (direct_mask_fold_left_optab_supported_p): Likewise.
22767 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
22768 * optabs.def (mask_fold_left_plus_optab): New optab.
22769 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
22770 masked internal_fn for a reduction ifn.
22771 (vectorize_fold_left_reduction): Add support for masking reductions.
22772
22773 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
22774
22775 PR middle-end/80791
22776 * target.def (predict_doloop_p): New hook.
22777 * targhooks.h (default_predict_doloop_p): New declaration.
22778 * targhooks.c (default_predict_doloop_p): New function.
22779 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
22780 * doc/tm.texi: Regenerate.
22781 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
22782 (TARGET_PREDICT_DOLOOP_P): New macro.
22783 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
22784
22785 2019-06-17 Jakub Jelinek <jakub@redhat.com>
22786
22787 * omp-low.c (struct omp_context): Add scan_inclusive field.
22788 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
22789 if inclusive scan.
22790 (struct omplow_simd_context): Add lastlane member.
22791 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
22792 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
22793 1 or 2 argument.
22794 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
22795 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
22796 (lower_omp_scan): New function.
22797 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
22798 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
22799 check 3rd argument if present rather than 2nd.
22800 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
22801 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
22802 2-bit bitfield.
22803 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22804 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
22805 than 2nd.
22806 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
22807 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
22808 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
22809 init.
22810 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
22811 IFN_GOMP_SIMD_LANE argument.
22812 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
22813 encoded ->aux value.
22814 * tree-vect-stmts.c: Include attribs.h.
22815 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
22816 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
22817 functions.
22818 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
22819 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
22820
22821 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
22822
22823 PR target/62055
22824 * config/i386/i386.md (*nabstf2_1): New insn pattern.
22825 (*nabs<mode>2_1): Ditto.
22826 (nabs sse-reg splitter): New splitter.
22827 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
22828
22829 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22830
22831 PR bootstrap/90873.
22832 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
22833 TMR index check.
22834
22835 2019-06-17 Tom de Vries <tdevries@suse.de>
22836
22837 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
22838 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
22839 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
22840 ...
22841 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
22842 match_operand 0.
22843 (define_insn "omp_simt_enter_insn"): Rename to ...
22844 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
22845 match_operand 0, 1 and 2, as well as the unspec_volatile result.
22846 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
22847 gen_omp_simt_enter_si.
22848 (define_expand "omp_simt_exit"): New.
22849 (define_insn "omp_simt_exit"): Rename to ...
22850 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
22851 match_operand 0.
22852
22853 2019-06-17 Matthew Green <mrg@eterna.com.au>
22854 Maya Rashish <coypu@sdf.org>
22855
22856 * config.gcc (aarch64*-*-netbsd*): New target.
22857 * config/aarch64/aarch64-netbsd.h: New file.
22858 * config/aarch64/t-aarch64-netbsd: Likewise.
22859
22860 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22861
22862 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
22863 the access path from base to first VIEW_CONVERT_EXPR or
22864 BIT_FIELD_REF.
22865
22866 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
22867
22868 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
22869 access path on BIT_FIELD_REFs.
22870
22871 2019-06-17 Martin Liska <mliska@suse.cz>
22872
22873 PR ipa/90874
22874 * ipa-utils.h (odr_type_p): Remove dead code.
22875
22876 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22877
22878 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
22879 alternative Solaris 11.4 format.
22880 * configure: Regenerate.
22881
22882 2019-06-17 Tom de Vries <tdevries@suse.de>
22883
22884 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
22885 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
22886 match_operand 0.
22887 (define_insn "call_value_insn"): Rename to ...
22888 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
22889 match_operand 0.
22890 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
22891 DI.
22892
22893 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
22894
22895 PR middle-end/64242
22896 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
22897 frame clobbers and schedule block.
22898 (builtin_longjmp): Likewise.
22899
22900 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22901
22902 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
22903 describe how to perform MSPABI compliant 64-bit shift.
22904 * config/msp430/msp430.md (ashldi3): New define_expand.
22905 (ashrdi3): New define_expand.
22906 (lshrdi3): New define_expand.
22907
22908 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22909
22910 * doc/sourcebuild.texi: Document new effective target keyword
22911 longlong64.
22912
22913 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22914
22915 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
22916 indirect_refs_may_alias_p): Revert accidental commits.
22917
22918 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
22919 at the end of structures.
22920
22921 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22922
22923 * config/darwin.c (machopic_indirect_call_target): Use renamed
22924 darwin_picsymbol_stubs to decide on output.
22925 (darwin_override_options): Handle darwin_picsymbol_stubs.
22926 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
22927 (LD64_VERSION): Revise default.
22928 * config/darwin.opt: (mpic-symbol-stubs): New option.
22929 (darwin_picsymbol_stubs): New variable.
22930 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
22931 rename to TARGET_MACHO_PICSYM_STUBS.
22932 * config/i386/i386.c (output_pic_addr_const): Likewise.
22933 * config/i386/i386.h Likewise.
22934 * config/rs6000/darwin.h: Likewise.
22935 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
22936 darwin_picsymbol_stubs.
22937
22938 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22939
22940 * config/darwin.opt (prebind, noprebind, seglinkedit,
22941 noseglinkedit): Add RejectNegative.
22942
22943 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22944
22945 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
22946 in my previous patch.
22947
22948 2019-06-16 Tom de Vries <tdevries@suse.de>
22949
22950 PR tree-optimization/89376
22951 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
22952
22953 2019-06-15 Maya Rashish <coypu@sdf.org>
22954
22955 * doc/invoke.texi (Spec Files): Update location of the
22956 Fortran spec file.
22957
22958 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
22959
22960 * doc/extend.texi (Common Function Attributes): Clarify
22961 no_sanitize. Fix grammar.
22962
22963 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
22964
22965 * tree-ssa-alias.c (alias_stats): Add
22966 nonoverlapping_component_refs_p_may_alias,
22967 nonoverlapping_component_refs_p_no_alias,
22968 nonoverlapping_component_refs_of_decl_p_may_alias,
22969 nonoverlapping_component_refs_of_decl_p_no_alias.
22970 (dump_alias_stats): Dump them.
22971 (nonoverlapping_component_refs_of_decl_p): Add stats.
22972 (nonoverlapping_component_refs_p): Add stats; do not stop on first
22973 ARRAY_REF.
22974
22975 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
22976
22977 * config/i386/i386.md (and<mode>3): Generate zero-extends for
22978 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
22979 only.
22980 (*anddi3_doubleword): Split before reload. Merge with
22981 anddi->zext pre-reload splitter.
22982 (*andndi3_doubleword): Split before reload.
22983 (*<code>di3_doubleword): Ditto.
22984 (*one_cmpldi2_doubleword): Ditto.
22985
22986 2019-06-15 Jakub Jelinek <jakub@redhat.com>
22987
22988 PR middle-end/90779
22989 * gimplify.c: Include omp-offload.h and context.h.
22990 (gimplify_bind_expr): Add "omp declare target" attributes
22991 to static block scope variables inside of target region or target
22992 functions.
22993
22994 2019-06-15 Tom de Vries <tdevries@suse.de>
22995
22996 PR tree-optimization/90009
22997 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
22998 Return NULL if bb contains IFN_UNIQUE.
22999
23000 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23001
23002 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23003 (un): New define_mode_attr.
23004 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23005 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23006 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23007 merge into ...
23008 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23009
23010 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23011
23012 * config/darwin.opt: Add RejectNegative where needed, reorder
23013 and add minimal functional descriptions.
23014
23015 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23016
23017 PR rtl-optimization/90765
23018 * calls.c (update_stack_alignment_for_call): New function.
23019 (expand_call): Call update_stack_alignment_for_call when
23020 outgoing parameter is passed in the stack.
23021 (emit_library_call_value_1): Likewise.
23022 * function.c (locate_and_pad_parm): Don't update
23023 stack_alignment_needed and preferred_stack_boundary.
23024
23025 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23026
23027 PR target/90877
23028 * config/i386/i386-features.c
23029 (dimode_scalar_chain::compute_convert_gain): Replace
23030 mmxsse_to_integer with sse_to_integer.
23031 * config/i386/i386.c (ix86_register_move_cost): Verify that
23032 moves between MMX and non-MMX units require secondary memory.
23033 Correct costs of moves between SSE and integer units.
23034 * config/i386/i386.h (processor_costs): Rename cost of moving
23035 SSE register to integer to sse_to_integer. Rename cost of
23036
23037 2019-06-14 Matt Thomas <matt@3am-software.com>
23038 Matthew Green <mrg@eterna.com.au>
23039 Nick Hudson <skrll@netbsd.org>
23040 Maya Rashish <coypu@sdf.org>
23041 Richard Earnshaw <rearnsha@arm.com>
23042
23043 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23044 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23045 * config/arm/netbsd-eabi.h: New file.
23046 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23047 redefining.
23048 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23049 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23050 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23051 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23052
23053 2019-06-14 Richard Biener <rguenther@suse.de>
23054
23055 * tree-loop-distribution.c (classify_partition): Return
23056 whether a reduction appeared in all partitions and do not
23057 stop builtin detection because of this.
23058 (distribute_loop): Sort a non-builtin partition last if
23059 there's a reduction in all partitions and make sure the
23060 partition prevailing as last is not a builtin.
23061
23062 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23063
23064 PR ipa/90401
23065 * ipa-prop.c (add_to_agg_contents_list): New function.
23066 (clobber_by_agg_contents_list_p): Likewise.
23067 (extract_mem_content): Likewise.
23068 (get_place_in_agg_contents_list): Delete.
23069 (determine_known_aggregate_parts): Renamed from
23070 determine_locally_known_aggregate_parts. New parameter
23071 aa_walk_budget_p.
23072
23073 2019-06-13 Martin Sebor <msebor@redhat.com>
23074
23075 PR tree-optimization/90662
23076 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23077 to the same type.
23078
23079 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23080
23081 PR bootstrap/90873
23082 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23083 dbase is not TARGET_MEM_REF.
23084
23085 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23086
23087 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23088 Update all uses.
23089 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23090 Do not generate DImode extends for 32bit targets.
23091 (and->zext post-reload splitter): Use gen_extend_insn
23092 instead of indirect functions.
23093 (anddi->zext pre-reload splitter): New.
23094 (*zext<mode>_doubleword_and): Remove.
23095 (*zext<mode>_doubleword): Ditto.
23096 (*zextsi_doubleword): Dittto.
23097
23098 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23099
23100 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23101 Use gen_sub3_insn instead of indirect function.
23102 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23103 indirect function.
23104 (ix86_adjust_counter): Ditto.
23105
23106 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23107 Lijia He <helijia@linux.ibm.com>
23108
23109 PR tree-optimization/77820
23110 * tree-ssa-threadedge.c
23111 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23112 function.
23113 (thread_across_edge): Add call to
23114 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23115
23116 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23117
23118 * config/darwin-driver.c (validate_macosx_version_min): New.
23119 (darwin_default_min_version): Cleanup and validate supplied version.
23120 (darwin_driver_init): Likewise and push cleaned version into opts.
23121
23122 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23123
23124 PR tree-optimization/90869
23125 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23126 converts in MEM_REF referencing decl rather than view converts
23127 from decl type to MEM_REF type.
23128
23129 2019-06-13 Richard Biener <rguenther@suse.de>
23130
23131 PR tree-optimization/90856
23132 * tree-sra.c (build_ref_for_model): Only use
23133 build_reconstructed_reference when address-spaces are the same.
23134
23135 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23136
23137 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23138 wrap ei variable name in the declaration in ()s.
23139 (nvptx_single): Actually use mode_label variable. Formatting fix.
23140
23141 2019-06-13 Richard Biener <rguenther@suse.de>
23142
23143 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23144 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23145 also return the condition stmt.
23146 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23147 loop we can version and version that, reusing the loop version
23148 created by if-conversion instead of versioning again.
23149
23150 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23151
23152 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23153 may_contain_p.
23154 * tree-vrp (value_range_base::may_contain_p): Call into
23155 value_inside_range.
23156 (value_inside_range): Make private inside value_range_base class.
23157 Take min/max from *this.
23158 (range_includes_p): Remove.
23159 * tree-vrp.h (value_range_base): Add value_inside_range.
23160 (range_includes_p): Remove.
23161 (range_includes_zero_p): Call may_contain_p.
23162 * vr-values.c (compare_range_with_value): Same.
23163
23164 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23165
23166 * doc/extend.texi (ARC Function Attributes): Update info.
23167
23168 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23169
23170 PR tree-optimization/89713
23171 * doc/invoke.texi (-ffinite-loops): Document new option.
23172 * common.opt (-ffinite-loops): New option.
23173 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23174 IFN_GOACC_LOOP calls as necessary.
23175 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23176 is finite.
23177 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23178 IFN_GOACC_LOOP call is not used.
23179 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23180
23181 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23182
23183 PR target/88838
23184 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23185 compare_type is not with Pmode size, we will create an IV with
23186 Pmode size with truncated use (i.e. converted to the correct type).
23187 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23188 (vect_iv_limit_for_full_masking): New. Factored out of
23189 vect_set_loop_condition_masked.
23190 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23191 (vect_iv_limit_for_full_masking): Declare.
23192
23193 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23194
23195 PR target/88834
23196 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23197 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23198 (get_alias_ptr_type_for_ptr_address): Likewise.
23199 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23200 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23201 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23202 allow_reg_index_p.
23203
23204 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23205
23206 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23207
23208 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23209
23210 * common/config/pru/pru-common.c: New file.
23211 * config.gcc: Add PRU target.
23212 * config/pru/alu-zext.md: New file.
23213 * config/pru/constraints.md: New file.
23214 * config/pru/predicates.md: New file.
23215 * config/pru/pru-opts.h: New file.
23216 * config/pru/pru-passes.c: New file.
23217 * config/pru/pru-pragma.c: New file.
23218 * config/pru/pru-protos.h: New file.
23219 * config/pru/pru.c: New file.
23220 * config/pru/pru.h: New file.
23221 * config/pru/pru.md: New file.
23222 * config/pru/pru.opt: New file.
23223 * config/pru/t-pru: New file.
23224 * doc/extend.texi: Document PRU pragmas.
23225 * doc/invoke.texi: Document PRU-specific options.
23226 * doc/md.texi: Document PRU asm constraints.
23227
23228 2019-06-12 Martin Sebor <msebor@redhat.com>
23229
23230 PR middle-end/90676
23231 * tree-pretty-print.c (dump_mem_ref): New function. Include
23232 MEM_REF type in output when different size than operand.
23233 (dump_generic_node): Move code to dump_mem_ref and call it.
23234
23235 2019-06-12 Martin Sebor <msebor@redhat.com>
23236
23237 PR tree-optimization/90662
23238 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23239 to arrays.
23240
23241 2019-06-12 Tom de Vries <tdevries@suse.de>
23242
23243 PR tree-optimization/90009
23244 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23245
23246 2019-06-12 Martin Liska <mliska@suse.cz>
23247
23248 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23249 the created map.
23250 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23251 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23252 Do not sanitize created maps.
23253
23254 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23255
23256 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23257 value_range::singleton_p.
23258 * tree-vrp.c (value_range_constant_singleton): Remove.
23259 * tree-vrp.h (value_range_constant_singleton): Remove.
23260 * vr-values.c (vr_values::singleton): Use
23261 value_range::singleton_p.
23262
23263 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23264
23265 PR target/90811
23266 * cfgexpand.c (align_local_variable): Add really_expand argument,
23267 don't SET_DECL_ALIGN if it is false.
23268 (add_stack_var): Add really_expand argument, pass it through to
23269 align_local_variable.
23270 (expand_one_stack_var_1): Pass true as really_expand to
23271 align_local_variable.
23272 (expand_one_ssa_partition): Pass true as really_expand to
23273 add_stack_var.
23274 (expand_one_var): Pass really_expand through to add_stack_var.
23275
23276 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23277
23278 * config/arm/iterators.md (VABAL): New int iterator.
23279 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
23280 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
23281 UNSPEC_VABAL_U values.
23282
23283 2019-06-12 Martin Liska <mliska@suse.cz>
23284
23285 * value-prof.c (stream_out_histogram_value): Only first value
23286 can't be negative.
23287
23288 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23289
23290 PR c/90760
23291 * symtab.c (symtab_node::set_section): Allow being called on aliases
23292 as long as they aren't analyzed yet.
23293
23294 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
23295
23296 * config/mips/mips.c (mips_final_postscan_insn): Modify call
23297 to `mips_set_text_contents_type' to indicate whether a
23298 non-debug insn follows.
23299
23300 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
23301
23302 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
23303 enabling -mpcrel by default.
23304 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
23305 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
23306 that the test against -mcpu=future is done first. Then test if
23307 -mprefixed-addr is on for -mpcrel.
23308 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
23309
23310 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23311
23312 PR target/90811
23313 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
23314 instead of and.u%d.
23315
23316 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23317
23318 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
23319
23320 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
23321
23322 PR c++/90449 - add -Winaccessible-base option.
23323 * doc/invoke.texi (Winaccessible-base): Document.
23324
23325 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
23326
23327 PR tree-optimization/62041
23328 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
23329
23330 2019-06-11 Jason Merrill <jason@redhat.com>
23331
23332 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
23333 * tree.c (get_tree_code_name): Likewise.
23334 * print-tree.c (print_node): Only briefly print a node with an
23335 invalid code.
23336
23337 2019-06-11 Jakub Jelinek <jakub@redhat.com>
23338
23339 PR bootstrap/90819
23340 * trans-mem.c (tm_memopt_compute_available): Add assertion
23341 that blocks is not empty. Formatting fix.
23342
23343 2019-06-11 Martin Liska <mliska@suse.cz>
23344
23345 PR c++/87847
23346 * hash-table.h: Extend create_gcc, add one parameter
23347 that is passed into hash_table::hash_table.
23348
23349 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
23350
23351 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
23352 New prototype.
23353 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
23354 Emit clobber also for non-sse operations.
23355 (ix86_split_fp_absneg_operator): New function.
23356 * config/i386/i386.md (SSEMODEF): New mode iterator.
23357 (ssevecmodef): New mode attribute.
23358 (<code>tf2): Use absneg code iterator.
23359 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
23360 Add three-operand AVX alternatives.
23361 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
23362 Use absneg code iterator and X87MODEF mode iterator.
23363 (absneg fp_reg non-sse splitter): Call absneg code iterator
23364 and X87MODEF mode iterator.
23365 (absneg general_reg non-sse splitter): Use absneg code iterator
23366 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
23367 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
23368 code iterator. Add three-operand AVX alternative.
23369 (absneg sse_reg splitter): Use absneg code iterator
23370 and SSEMODEF mode iterator. Handle AVX operands.
23371 (absneg fp_reg splitter): Use absneg code iterator
23372 and MODEF mode iterator.
23373 (absneg general_reg splitter): Merge splitters using MODEF mode
23374 iterator. Use absneg code iterator. Call
23375 ix86_split_fp_absneg_operator.
23376 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
23377 Do not enable for non-sse modes before reload.
23378 (CSGNMODE): Remove.
23379 (CSGNVMODE): Ditto.
23380 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
23381 ssevecmodef mode attribute instaed of CSGNVMODE.
23382 (copysign<mode>3_const): Ditto.
23383 (copysign<mode>3_var): Ditto.
23384 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
23385 Use absneg code iterator. Simplify code using std::swap.
23386 * config/i386/predicates.md (absneg_operator): Remove.
23387
23388 2019-06-10 Martin Sebor <msebor@redhat.com>
23389
23390 * gimple-fold.c (get_range_strlen): Update comment that didn't
23391 make it into r267503 or related commits.
23392
23393 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
23394
23395 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
23396 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
23397
23398 2019-06-10 Jakub Jelinek <jakub@redhat.com>
23399
23400 * tree.def (OMP_SCAN): New tree code.
23401 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
23402 OMP_CLAUSE_EXCLUSIVE.
23403 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
23404 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
23405 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
23406 OMP_CLAUSE_{IN,EX}CLUSIVE.
23407 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23408 * tree-nested.c (convert_nonlocal_reference_stmt,
23409 convert_local_reference_stmt, convert_gimple_call): Handle
23410 GIMPLE_OMP_SCAN.
23411 * tree-pretty-print.c (dump_omp_clause): Handle
23412 OMP_CLAUSE_{IN,EX}CLUSIVE.
23413 (dump_generic_node): Handle OMP_SCAN.
23414 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
23415 * gimple.h (gomp_scan): New type.
23416 (is_a_helper <gomp_scan *>::test,
23417 is_a_helper <const gomp_scan *>::test): New templates.
23418 (gimple_build_omp_scan): Declare.
23419 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
23420 gimple_omp_scan_set_clauses): New inline functions.
23421 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
23422 * gimple.c (gimple_build_omp_scan): New function.
23423 (gimple_copy): Handle GIMPLE_OMP_SCAN.
23424 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
23425 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
23426 GIMPLE_OMP_TASKGROUP.
23427 (dump_gimple_omp_scan): New function.
23428 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
23429 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
23430 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
23431 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
23432 (is_gimple_stmt): Handle OMP_SCAN.
23433 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
23434 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
23435 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
23436 mentioned in nested #pragma omp scan. Handle
23437 OMP_CLAUSE_{IN,EX}CLUSIVE.
23438 (gimplify_expr): Handle OMP_SCAN.
23439 * omp-low.c (check_omp_nesting_restrictions): For parent context,
23440 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
23441 simd constructs.
23442 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
23443 GIMPLE_OMP_SCAN.
23444
23445 2019-06-10 Martin Liska <mliska@suse.cz>
23446
23447 * ipa-cp.c (ignore_edge_p): New function.
23448 (build_toporder_info): Use it.
23449 * ipa-inline.c (ignore_edge_p): New function.
23450 (inline_small_functions): Use it.
23451 * ipa-pure-const.c (ignore_edge_for_nothrow):
23452 Verify opt_for_fn for caller and callee.
23453 (ignore_edge_for_pure_const): Likewise.
23454 * ipa-reference.c (ignore_edge_p): Extend to check
23455 for opt_for_fn.
23456 * ipa-utils.c (searchc): Refactor.
23457 * ipa-utils.h: Fix coding style.
23458
23459 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23460
23461 * config/arc/arc.c (arc_rtx_costs): Update costs.
23462
23463 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
23464
23465 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
23466 (arc_split_ior): Likewise.
23467 (arc_check_mov_const): Likewise.
23468 (arc_split_mov_const): Likewise.
23469 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
23470 (arc_rtx_costs): Replace check Crr with Cax constraint.
23471 (prepare_move_operands): Cleanup, remove unused code.
23472 (arc_split_ior): New function.
23473 (arc_check_ior_const): Likewise.
23474 (arc_split_mov_const): Likewise.
23475 (arc_check_mov_const): Likewise.
23476 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
23477 in define_insn_and_split pattern.
23478 (iorsi3): Likewise.
23479 (mulsi3_v2): Add new matching variant.
23480 (andsi3_i): Cleanup pattern.
23481 (rotrsi3_cnt1): Update pattern.
23482 (rotrsi3_cnt8): New pattern.
23483 (ashlsi2_cnt8): Likewise.
23484 (ashlsi2_cnt16): Likewise.
23485 * config/arc/constraints.md (C0p): Update constraint.
23486 (Crr): Remove it.
23487 (C0x): New pattern.
23488 (Cax): New pattern.
23489
23490 2019-06-10 Martin Liska <mliska@suse.cz>
23491
23492 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
23493 Update coding style.
23494 (sem_item_optimizer::dump_cong_classes):
23495 Print how many items are in a non-singular class. Improve
23496 coding style.
23497
23498 2019-06-10 Martin Liska <mliska@suse.cz>
23499
23500 * value-prof.c (dump_histogram_value): Change dump format.
23501 (gimple_mod_subtract_transform): Remove legacy comment.
23502
23503 2019-06-10 Martin Liska <mliska@suse.cz>
23504
23505 * value-prof.c (dump_histogram_value): Print histogram values
23506 only if present.
23507
23508 2019-06-10 Martin Liska <mliska@suse.cz>
23509
23510 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
23511 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
23512 * ipa-profile.c (ipa_profile_generate_summary):
23513 Use get_most_common_single_value.
23514 * tree-profile.c (gimple_init_gcov_profiler):
23515 Instrument with __gcov_one_value_profiler_v2
23516 and __gcov_indirect_call_profiler_v4.
23517 * value-prof.c (dump_histogram_value):
23518 Print all values for HIST_TYPE_SINGLE_VALUE.
23519 (stream_out_histogram_value): Update assert for
23520 N values.
23521 (stream_in_histogram_value): Set number of
23522 counters for HIST_TYPE_SINGLE_VALUE.
23523 (get_most_common_single_value): New.
23524 (gimple_divmod_fixed_value_transform):
23525 Use get_most_common_single_value.
23526 (gimple_ic_transform): Likewise.
23527 (gimple_stringops_transform): Likewise.
23528 (gimple_find_values_to_profile): Set number
23529 of counters for HIST_TYPE_SINGLE_VALUE.
23530 * value-prof.h (get_most_common_single_value): New.
23531
23532 2019-06-10 Martin Liska <mliska@suse.cz>
23533
23534 * hash-map.h: Pass default value to hash_table ctor.
23535 * hash-table.h: Add default value to call of a ctor.
23536
23537 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
23538
23539 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
23540 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
23541
23542 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
23543
23544 PR target/90751
23545 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
23546 Call pa_output_function_label.
23547 (TARGET_ASM_FUNCTION_PROLOGUE): define.
23548 * config/pa/pa-protos.h (pa_output_function_label): Declare.
23549 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
23550 to declaration.
23551 (pa_linux_output_function_prologue): Declare.
23552 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
23553 (pa_output_function_label): New.
23554 (pa_output_function_prologue): Revise to use pa_output_function_label.
23555 (pa_linux_output_function_prologue): New.
23556 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
23557
23558 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
23559
23560 * tree-vrp.h (value_range_base::intersect): New.
23561 (value_range::intersect_helper): Move from here...
23562 (value_range_base::intersect_helper): ...to here.
23563 * tree-vrp.c (value_range::intersect_helper): Rename to...
23564 (value_range_base::intersect_helper): ...this, and rewrite to
23565 return a value instead of modifying THIS in place.
23566 Also, move equivalence handling...
23567 (value_range::intersect): ...here, while calling intersect_helper.
23568 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
23569 calling intersect.
23570 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
23571 Same.
23572 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
23573
23574 2019-06-07 Jakub Jelinek <jakub@redhat.com>
23575
23576 * Makefile.in (genprogerr): Add condmd.
23577 (genprog): Remove it here.
23578
23579 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
23580
23581 * doc/invoke.texi (AMD GCN Options): Add gfx906.
23582
23583 2019-06-07 Richard Biener <rguenther@suse.de>
23584
23585 PR debug/90574
23586 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
23587 that appear after user labels.
23588
23589 2019-06-07 Martin Liska <mliska@suse.cz>
23590
23591 * cselib.c (cselib_init): Disable hash table
23592 sanitization.
23593 * hash-set.h: Pass new default argument to m_table.
23594 * hash-table.c: Add global variable with hash table
23595 sanitization limit.
23596 * hash-table.h (Allocator>::hash_table): Add new argument
23597 to ctor.
23598 (hashtab_chk_error): New.
23599 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
23600 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
23601 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
23602
23603 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23604
23605 * common.opt (flto-odr-type-merging): Ignore.
23606 * invoke.texi (-flto-odr-type-merging): Remove.
23607 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
23608 (can_be_vtable_hashed_p): Remove.
23609 (hash_odr_vtable): Remove.
23610 (odr_vtable_hasher::hash): Remove.
23611 (types_same_for_odr): Remove.
23612 (types_odr_comparable): Remove.
23613 (odr_vtable_hasher::equal): Remove.
23614 (odr_vtable_hash_type, odr_vtable_hash): Remove.
23615 (add_type_duplicate): Do not synchronize vtable and name hashtables.
23616 (get_odr_type): Do not use vtable hash.
23617 (dump_odr_type): Remove commented out code.
23618 (build_type_inheritance_graph): Do not allocate vtable hash.
23619 (rebuild_type_inheritance_graph): Do not delete vtable hash.
23620 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
23621 (odr_type_p): Likewise.
23622 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
23623 test.
23624
23625 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
23626
23627 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
23628 immediately after same_types_for_tbaa_p returns -1 and continue
23629 looking for possible exact match; if matching types are arrays
23630 watch for partial overlaps.
23631 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
23632 (indirect_refs_may_alias_p): Do type based disambiguation first;
23633 update comment.
23634
23635 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
23636
23637 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
23638
23639 2019-06-07 Martin Liska <mliska@suse.cz>
23640
23641 * doc/invoke.texi: Remove param.
23642 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
23643 Remove.
23644 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
23645 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
23646 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
23647 * profile.c (instrument_values): Remove
23648 HIST_TYPE_INDIR_CALL_TOPN.
23649 * tree-profile.c (init_ic_make_global_vars):
23650 Always build __gcov_indirect_call only.
23651 (gimple_init_gcov_profiler): Remove usage
23652 of PARAM_INDIR_CALL_TOPN_PROFILE.
23653 (gimple_gen_ic_profiler): Likewise.
23654 * value-prof.c (dump_histogram_value): Likewise.
23655 (stream_in_histogram_value): Likewise.
23656 (gimple_indirect_call_to_profile): Likewise.
23657 (gimple_find_values_to_profile): Likewise.
23658 * value-prof.h (enum hist_type): Likewise.
23659
23660 2019-06-07 Martin Liska <mliska@suse.cz>
23661
23662 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
23663 function.
23664
23665 2019-06-07 Martin Liska <mliska@suse.cz>
23666
23667 PR tree-optimization/78902
23668 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
23669 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
23670 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
23671 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
23672 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
23673 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
23674 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
23675 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
23676 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
23677 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
23678 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
23679 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
23680 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
23681 New.
23682 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
23683 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
23684 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
23685 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
23686 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
23687 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
23688 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
23689 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
23690 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
23691 warn_unused_result attribute.
23692 (BUILT_IN_STRDUP): Likewise.
23693 (BUILT_IN_STRNDUP): Likewise.
23694 (BUILT_IN_ALLOCA): Likewise.
23695 (BUILT_IN_CALLOC): Likewise.
23696 (BUILT_IN_MALLOC): Likewise.
23697 (BUILT_IN_REALLOC): Likewise.
23698
23699 2019-06-06 Jim Wilson <jimw@sifive.com>
23700
23701 PR target/89955
23702 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
23703 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
23704 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
23705
23706 2019-06-06 Martin Sebor <msebor@redhat.com>
23707
23708 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
23709 (handle_builtin_malloc): Remove trailing spaces.
23710 (handle_builtin_memset): Same.
23711 (handle_builtin_memcmp): Same.
23712 (compute_string_length): Same.
23713 (determine_min_objsize): Same.
23714 (handle_builtin_string_cmp): Same.
23715 (handle_char_store): Same. Break up excessively long line.
23716
23717 2019-06-06 Martin Jambor <mjambor@suse.cz>
23718
23719 * tree-sra.c (build_reconstructed_reference): Drop the alignment
23720 check.
23721
23722 2019-06-06 Martin Jambor <mjambor@suse.cz>
23723
23724 * tree-sra.c (struct access): New field grp_same_access_path.
23725 (dump_access): Dump it.
23726 (build_reconstructed_reference): New function.
23727 (build_ref_for_model): Use it if possible.
23728 (path_comparable_for_same_access): New function.
23729 (same_access_path_p): Likewise.
23730 (sort_and_splice_var_accesses): Set the new flag.
23731 (analyze_access_subtree): Likewise.
23732 (propagate_subaccesses_across_link): Propagate zero value of the new
23733 flag down the access tree.
23734
23735 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
23736
23737 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
23738 * config/gcn/gcn.opt (gpu_type): Add gfx906.
23739 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
23740 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
23741 Add gfx906.
23742
23743 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23744
23745 PR tree-optimization/90332
23746 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
23747 Handle VALS containing two vectors.
23748 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
23749 to...
23750 (@aarch64_combinez<mode>): ... This.
23751 (*aarch64_combinez_be<mode>): Rename to...
23752 (@aarch64_combinez_be<mode>): ... This.
23753 (vec_init<mode><Vhalf>): New define_expand.
23754 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
23755
23756 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23757
23758 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
23759 library functions only when not optimizing for size.
23760 (ashlsi3): Likewise.
23761 (ashrhi3): Likewise.
23762 (ashrsi3): Likewise.
23763 (lshrhi3): Likewise.
23764 (lshrsi3): Likewise.
23765
23766 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
23767
23768 PR rtl-optimization/88751
23769 * ira.c (ira): Use the number of the actually referenced registers
23770 when calculating the threshold.
23771
23772 2019-06-06 Jakub Jelinek <jakub@redhat.com>
23773
23774 * configure: Regenerate.
23775
23776 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23777
23778 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
23779 register if it is in memory, so the shift can be emulated with a rotate
23780 instruction.
23781 (ashrhi3): Likewise.
23782 (lshrhi3): Likewise.
23783
23784 2019-06-06 Martin Liska <mliska@suse.cz>
23785
23786 PR tree-optimization/87954
23787 * match.pd: Simplify mult where both arguments are 0 or 1.
23788
23789 2019-06-06 Richard Biener <rguenther@suse.de>
23790
23791 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
23792 put equivalences on UNDEFINED ranges.
23793 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
23794 Make sure to drop defs of stmts added during simplification
23795 to VARYING.
23796
23797 2019-06-06 Richard Biener <rguenther@suse.de>
23798
23799 * tree-ssa-structalias.c: Include tree-cfg.h.
23800 (make_heapvar): Do not make heap vars artificial.
23801 (find_func_aliases_for_builtin_call): Handle stack allocation
23802 functions.
23803 (find_func_aliases): Delay processing of simple enough returns
23804 in non-IPA mode.
23805 (set_uids_in_ptset): Adjust.
23806 (find_what_var_points_to): Likewise.
23807 (solve_constraints): Do not dump points-to sets here.
23808 (compute_points_to_sets): Post-process return statements,
23809 amending the escaped solution. Dump points-to sets afterwards.
23810 (ipa_pta_execute): Dump points-to sets.
23811
23812 2019-06-06 Martin Liska <mliska@suse.cz>
23813
23814 PR web/87933
23815 * doc/install.texi: Fix HTML headers and
23816 titles for 'Installing GCC' pages.
23817
23818 2019-06-06 Martin Liska <mliska@suse.cz>
23819
23820 * ipa-icf-gimple.h (dump_message_1): Remove.
23821 (dump_message): Likewise.
23822 (return_false_with_message_1): Print also file.
23823 (return_false_with_msg): Likewise.
23824 (return_with_result): Likewise.
23825 (return_with_debug): Likewise.
23826 * ipa-icf.c (sem_function::equals_private): Remove call
23827 to dump_message.
23828
23829 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23830
23831 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
23832 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
23833 memory operand for it.
23834 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
23835
23836 2019-06-05 Martin Sebor <msebor@redhat.com>
23837
23838 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
23839 Adjust quoting and hyphenation.
23840 * convert.c (convert_to_real_1): Same.
23841 * gcc.c (driver_wrong_lang_callback): Same.
23842 (driver::handle_unrecognized_options): Same.
23843 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
23844 * opts-common.c (cmdline_handle_error): Same.
23845 (read_cmdline_option): Same.
23846 * opts-global.c (complain_wrong_lang): Same.
23847 (print_ignored_options): Same.
23848 (handle_common_deferred_options): Same.
23849 * pretty-print.h: Same.
23850 * print-rtl.c (debug_bb_n_slim): Same.
23851 * sched-rgn.c (make_pass_sched_fusion): Same.
23852 * tree-cfg.c (verify_gimple_assign_unary): Same.
23853 (verify_gimple_label): Same.
23854 * tree-ssa-operands.c (verify_ssa_operands): Same.
23855 * varasm.c (do_assemble_alias): Same.
23856 (assemble_alias): Same.
23857
23858 2019-06-05 Richard Henderson <rth@twiddle.net>
23859
23860 * config/alpha/alpha.c (direct_return): Move down after
23861 struct machine_function definition; use saved frame_size;
23862 return bool.
23863 (struct machine_function): Add sa_mask, sa_size, frame_size.
23864 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
23865 (alpha_compute_frame_layout): ... new function.
23866 (TARGET_COMPUTE_FRAME_LAYOUT): New.
23867 (alpha_initial_elimination_offset): Use saved sa_size.
23868 (alpha_vms_initial_elimination_offset): Likewise.
23869 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
23870 (alpha_expand_prologue): Use saved frame data. Merge integer
23871 and fp register save loops.
23872 (alpha_expand_epilogue): Likewise.
23873 (alpha_start_function): Use saved frame data.
23874 * config/alpha/alpha-protos.h (direct_return): Update.
23875 (alpha_sa_size): Remove.
23876
23877 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
23878
23879 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
23880 multiplication by a power-of-two value.
23881 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
23882 and turn the modulo operation into a masking operation.
23883
23884 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23885
23886 PR debug/90733
23887 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
23888 with VOIDmode inner operands.
23889
23890 2019-06-05 Richard Biener <rguenther@suse.de>
23891
23892 PR middle-end/90726
23893 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23894 turn an expression graph into a tree.
23895
23896 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23897
23898 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
23899 member.
23900 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
23901 treat it like explicit monotonic schedule modifier.
23902 (expand_omp_for): Initialize has_lastprivate_conditional.
23903 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
23904 schedule modifier.
23905
23906 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
23907 references, lookup in in hash map MEM_REF operand instead of the
23908 MEM_REF itself.
23909 (lower_omp_1): When looking for lastprivate conditional assignments,
23910 handle MEM_REFs with REFERENCE_TYPE operands.
23911
23912 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
23913 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
23914 and references a VLA. Handle references to non-VLAs if is_simd
23915 all privatization clauses like reductions.
23916 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
23917 If omp_is_reference, use always omp simd arrays and set
23918 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
23919 fails, emit reference initialization.
23920
23921 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23922
23923 PR target/89803
23924 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
23925 _mm_mask_fpclass_sd_mask): New intrinsics.
23926 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
23927 * config/i386/i386-builtin.def
23928 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
23929 New builtins.
23930 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
23931 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
23932 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
23933 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
23934 case QI_FTYPE_V2SF_INT): Ditto.
23935 * config/i386/sse.md
23936 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
23937 Extended to insnstructions with mask operands.
23938
23939 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23940
23941 * config/rs6000/constraints.md (define_register_constraint "wp"):
23942 Delete.
23943 (define_register_constraint "wq"): Delete.
23944 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23945 (rs6000_init_hard_regno_mode_ok): Adjust.
23946 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23947 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
23948 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
23949 (define_mode_attr VSa): Delete.
23950 (define_mode_attr VSisa): New.
23951 (rest of file): Adjust.
23952 * doc/md.texi (Machine Constraints): Adjust.
23953
23954 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23955
23956 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
23957 (define_attr "enabled"): Handle those new isa values.
23958
23959 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23960
23961 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
23962 (define_mode_attr VSr5): Delete.
23963 (define_mode_attr VStype_sqrt): Delete.
23964 (define_mode_iterator VSX_SPDP): Delete.
23965 (define_mode_attr VS_spdp_res): Delete.
23966 (define_mode_attr VS_spdp_insn): Delete.
23967 (define_mode_attr VS_spdp_type): Delete.
23968 (*vsx_sqrt<mode>2): Adjust.
23969 (vsx_<VS_spdp_insn>): Delete, split to...
23970 (vsx_xscvdpsp): ... this. New. And...
23971 (vsx_xvcvspdp): ... this. New. And...
23972 (vsx_xvcvdpsp): ... this. New.
23973
23974 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23975
23976 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
23977 and V2DF.
23978 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
23979 (rest of file): Adjust.
23980
23981 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23982
23983 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
23984 (vsx_extract_<mode>_var): Ditto.
23985
23986 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23987
23988 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
23989 with just "wa".
23990
23991 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23992
23993 * config/rs6000/constraints.md (define_register_constraint "ww"):
23994 Delete.
23995 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23996 (rs6000_init_hard_regno_mode_ok): Adjust.
23997 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23998 RS6000_CONSTRAINT_ww.
23999 * config/rs6000/rs6000.md: Adjust.
24000 * config/rs6000/vsx.md: Adjust.
24001 * doc/md.texi (Machine Constraints): Adjust.
24002
24003 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24004
24005 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24006 (define_mode_attr sd): New.
24007 (define_mode_attr s): New.
24008 (define_mode_attr Ftrad): Delete.
24009 (define_mode_attr Fvsx): Delete.
24010 (define_mode_attr Fs): Delete.
24011 (rest of file): Use the new mode attributes.
24012 * config.rs6000/vsx.md: Use the new mode attributes.
24013
24014 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24015
24016 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24017 with just "wa".
24018
24019 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24020
24021 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24022 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24023 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24024
24025 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24026
24027 PR target/78263
24028 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24029 C++ with strict ANSI requirements.
24030
24031 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24032
24033 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24034 computations when step is 1.
24035
24036 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24037
24038 * config/rs6000/constraints.md (define_register_constraint "wf"):
24039 Delete.
24040 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24041 (rs6000_init_hard_regno_mode_ok): Adjust.
24042 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24043 RS6000_CONSTRAINT_wf.
24044 * config/rs6000/rs6000.md: Adjust.
24045 * config/rs6000/vsx.md: Adjust.
24046 * doc/md.texi (Machine Constraints): Adjust.
24047
24048 2019-06-04 Andrew Pinski <apinski@marvell.com>
24049
24050 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24051 Fix ILP32 value.
24052
24053 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24054
24055 * config/rs6000/constraints.md (define_register_constraint "wd"):
24056 Delete.
24057 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24058 (rs6000_init_hard_regno_mode_ok): Adjust.
24059 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24060 RS6000_CONSTRAINT_wd.
24061 * config/rs6000/rs6000.md: Adjust.
24062 * config/rs6000/vsx.md: Adjust.
24063 * doc/md.texi (Machine Constraints): Adjust.
24064
24065 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24066
24067 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24068 (rest of file): Adjust.
24069
24070 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24071
24072 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24073 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24074 (vsx_splat_<mode>_reg): Adjust.
24075
24076 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24077
24078 * config/rs6000/constraints.md (define_register_constraint "ws"):
24079 Delete.
24080 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24081 (rs6000_init_hard_regno_mode_ok): Adjust.
24082 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24083 RS6000_CONSTRAINT_ws.
24084 * config/rs6000/rs6000.md: Adjust.
24085 * config/rs6000/vsx.md: Adjust.
24086 * doc/md.texi (Machine Constraints): Adjust.
24087
24088 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24089
24090 * config/rs6000/constraints.md (define_register_constraint "wv"):
24091 Delete.
24092 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24093 (rs6000_init_hard_regno_mode_ok): Adjust.
24094 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24095 RS6000_CONSTRAINT_wv.
24096 * config/rs6000/rs6000.md: Adjust.
24097 * config/rs6000/vsx.md: Adjust.
24098 * doc/md.texi (Machine Constraints): Adjust.
24099
24100 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24101
24102 * config/rs6000/constraints.md (define_register_constraint "wi"):
24103 Delete.
24104 (define_register_constraint "wt"): Delete.
24105 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24106 (rs6000_init_hard_regno_mode_ok): Adjust.
24107 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24108 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24109 * config/rs6000/rs6000.md: Adjust.
24110 * config/rs6000/vsx.md: Adjust.
24111 * doc/md.texi (Machine Constraints): Adjust.
24112
24113 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24114
24115 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24116 const.
24117 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24118 default_elf_asm_output_external.
24119
24120 2019-06-04 Martin Liska <mliska@suse.cz>
24121
24122 * ipa-icf.c (INCLUDE_LIST): Remove.
24123 (sem_item_optimizer::execute): Remove call to init_wpa.
24124 * ipa-icf.h (init_wpa): Remove.
24125
24126 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24127
24128 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24129 conditional on combined for simd.
24130 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24131 member.
24132 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24133 constructs, don't remove lastprivate_conditional_map, but instead set
24134 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24135 to parent construct temporaries.
24136 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24137 like !ctx->lastprivate_conditional_map.
24138 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24139 use up->outer context instead of up.
24140 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24141 gimple_omp_for_combined_p.
24142 (expand_omp_for_static_nochunk): Likewise.
24143 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24144 probably moved over into expand_omp_for_generic rather than being copied
24145 there.
24146
24147 2019-06-04 Martin Liska <mliska@suse.cz>
24148
24149 * value-prof.c (dump_histogram_value): Fix typo.
24150 (gimple_mod_subtract_transform): Likewise.
24151
24152 2019-06-04 Richard Biener <rguenther@suse.de>
24153
24154 PR middle-end/90726
24155 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24156 (tree_contains_chrecs): Likewise.
24157 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24158 exponential behaivor from ...
24159 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24160 ... here.
24161 (expression_expensive_p): Avoid exponential behavior and compute
24162 expanded size, rejecting any expansion.
24163 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24164 (idx_contains_abnormal_ssa_name_p): Likewise.
24165 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24166 (contains_abnormal_ssa_name_p): Simplify and use
24167 walk_tree_without_duplicates.
24168
24169 2019-06-04 Richard Biener <rguenther@suse.de>
24170
24171 PR tree-optimization/90738
24172 Revert
24173 2019-06-03 Richard Biener <rguenther@suse.de>
24174
24175 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24176 full reference tree and record in ref->ref.
24177 (vn_reference_lookup_3): Pass in original ref to
24178 ao_ref_init_from_vn_reference.
24179 (vn_reference_lookup): Likewise.
24180 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24181 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24182 Handle non-decl bases in the original reference.
24183
24184 2019-06-04 Martin Liska <mliska@suse.cz>
24185
24186 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24187 number of references.
24188 (sem_item_optimizer::do_congruence_step):
24189 (sem_item_optimizer::worklist_push): Dump how references
24190 a class has.
24191 (sem_item_optimizer::worklist_pop): Use heap.
24192 (sem_item_optimizer::process_cong_reduction): Likewise.
24193 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24194
24195 2019-06-04 Martin Liska <mliska@suse.cz>
24196
24197 * ipa-icf.h (struct sem_usage_pair_hash): New.
24198 (sem_usage_pair_hash::hash): Likewise.
24199 (sem_usage_pair_hash::equal): Likewise.
24200 (struct sem_usage_hash): Likewise.
24201 * ipa-icf.c (sem_item::sem_item): Initialize
24202 referenced_by_count.
24203 (sem_item::add_reference): Register a reference
24204 in ref_map and not in target->usages.
24205 (sem_item::setup): Remove initialization of
24206 dead vectors.
24207 (sem_item::~sem_item): Remove usage of dead vectors.
24208 (sem_item::dump): Remove dump of references.
24209 (sem_item_optimizer::sem_item_optimizer): Initialize
24210 m_references.
24211 (sem_item_optimizer::read_section): Remove useless
24212 dump.
24213 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24214 (sem_item_optimizer::build_graph): Pass m_references
24215 to ::add_reference.
24216 (sem_item_optimizer::verify_classes): Remove usage of dead
24217 vectors.
24218 (sem_item_optimizer::traverse_congruence_split): Return true
24219 when a class is split.
24220 (sem_item_optimizer::do_congruence_step_for_index): Use
24221 hash_map for look up of (sem_item *, index). That brings
24222 significant speed up.
24223 (sem_item_optimizer::do_congruence_step): Return true
24224 when a split is done.
24225 (congruence_class::is_class_used): Use referenced_by_count.
24226
24227 2019-06-04 Alan Modra <amodra@gmail.com>
24228
24229 PR target/90689
24230 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24231 error.
24232
24233 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24234
24235 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24236 * config/rs6000/rs6000.c (direct_move_p): Adjust.
24237 (rs6000_secondary_reload_simple_move): Adjust.
24238 (rs6000_opt_masks): Neuter the "mfpgpr" option.
24239 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24240 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24241 comment.
24242 (power6x): Adjust.
24243 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24244 (floatunssi<mode>2_lfiwzx): Adjust.
24245 (fix_trunc<mode>si2_stfiwx): Adjust.
24246 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24247 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24248 (mfpgpr): Mark as deprecated.
24249 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24250 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24251 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24252
24253 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24254
24255 * config/rs6000/constraints.md (define_register_constraint "wg"):
24256 Delete.
24257 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24258 RS6000_CONSTRAINT_wg.
24259 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24260 (rs6000_init_hard_regno_mode_ok): Adjust.
24261 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24262 Delete "wg" alternatives.
24263 * doc/md.texi (Machine Constraints): Adjust.
24264
24265 2019-06-03 Alan Modra <amodra@gmail.com>
24266
24267 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
24268 (get_uncond_jump_length): Assert length less than INT_MAX and
24269 non-negative.
24270
24271 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24272
24273 PR middle-end/64242
24274 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24275 block.
24276 (expand_builtin_nonlocal_goto): Likewise.
24277
24278 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
24279
24280 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
24281 (aarch64_asm_output_external): Declare.
24282 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
24283 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
24284 (aarch64_asm_output_alias): New.
24285 (aarch64_asm_output_external): New.
24286 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
24287 (ASM_OUTPUT_EXTERNAL): Define.
24288
24289 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
24290 * tree-vrp.h (value_range_base::nonzero_p): New.
24291 (value_range_base::set_nonnull): Rename to...
24292 (value_range_base::set_nonzero): ...this.
24293 (value_range_base::set_null): Rename to...
24294 (value_range_base::set_zero): ...this.
24295 (value_range::set_nonnull): Remove.
24296 (value_range::set_null): Remove.
24297 * tree-vrp.c (range_is_null): Remove.
24298 (range_is_nonnull): Remove.
24299 (extract_range_from_binary_expr): Use value_range_base::*zero_p
24300 instead of range_is_*null.
24301 (extract_range_from_unary_expr): Same.
24302 (value_range_base::set_nonnull): Rename to...
24303 (value_range_base::set_nonzero): ...this.
24304 (value_range::set_nonnull): Remove.
24305 (value_range_base::set_null): Rename to...
24306 (value_range_base::set_zero): ...this.
24307 (value_range::set_null): Remove.
24308 (extract_range_from_binary_expr): Rename set_*null uses to
24309 set_*zero.
24310 (extract_range_from_unary_expr): Same.
24311 (union_helper): Same.
24312 * vr-values.c (get_value_range): Use set_*zero instead of
24313 set_*null.
24314 (vr_values::extract_range_from_binary_expr): Same.
24315 (vr_values::extract_range_basic): Same.
24316
24317 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24318
24319 PR driver/90684
24320 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
24321
24322 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24323
24324 * config/aarch64/iterators.md (MAX_OPP): New code attr.
24325 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
24326 Rename to...
24327 (aarch64_<su>abd<mode>_3): ... This.
24328 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
24329
24330 2019-06-03 Richard Biener <rguenther@suse.de>
24331
24332 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24333 full reference tree and record in ref->ref.
24334 (vn_reference_lookup_3): Pass in original ref to
24335 ao_ref_init_from_vn_reference.
24336 (vn_reference_lookup): Likewise.
24337 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24338 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24339 Handle non-decl bases in the original reference.
24340
24341 2019-06-03 Martin Liska <mliska@suse.cz>
24342
24343 * doc/generic.texi: Remove Java Trees.
24344
24345 2019-06-03 Martin Liska <mliska@suse.cz>
24346
24347 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
24348 returns 0 when operands are equal.
24349
24350 2019-06-03 Richard Biener <rguenther@suse.de>
24351
24352 PR tree-optimization/90716
24353 * tree-loop-distribution.c (destroy_loop): Process blocks in
24354 correct order.
24355
24356 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24357
24358 PR target/88837
24359 * vector-builder.h (vector_builder::count_dups): New method.
24360 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
24361 Declare prototype.
24362 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
24363 (vec_init<mode><Vel>): New pattern.
24364 * config/aarch64/aarch64.c (emit_insr): New function.
24365 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
24366 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
24367 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
24368 (aarch64_sve_expand_vector_init): Define two overloaded functions.
24369
24370 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24371
24372 PR tree-optimization/90681
24373 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
24374 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
24375 special case for SLP, but fail on non-groupped loads.
24376
24377 2019-06-03 Martin Liska <mliska@suse.cz>
24378
24379 * cfg.c (debug): Use TDF_DETAILS for debug and
24380 print edge info only once.
24381
24382 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
24383
24384 PR fortran/90539
24385 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
24386
24387 2019-06-01 Martin Sebor <msebor@redhat.com>
24388
24389 PR middle-end/90694
24390 * tree-pretty-print.c (dump_generic_node): Add parentheses.
24391
24392 2019-05-31 Jan Hubicka <jh@suse.cz>
24393
24394 * alias.c: Include ipa-utils.h.
24395 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
24396 * ipa-devirt.c (prevailing_odr_type): New.
24397 * ipa-utils.h (previaling_odr_type): Declare.
24398
24399 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
24400 Hongtao Liu <hongtao.liu@intel.com>
24401
24402 PR target/89355
24403 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
24404 NOTE_INSN_DELETED_LABEL check.
24405
24406 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
24407 Robert Suchanek <robert.suchanek@mips.com>
24408
24409 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
24410 and 3rd operands of the fmadd/fmsub/maddv builtin.
24411
24412 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24413
24414 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
24415 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24416 on OMP_SIMD if not nested inside of worksharing loop that also has
24417 lastprivate conditional clause for the same decl.
24418 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
24419 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
24420 on simd.
24421 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
24422 on simd construct.
24423 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
24424 on simd construct.
24425 (lower_lastprivate_clauses): Likewise.
24426 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
24427 calling lower_rec_input_clauses.
24428 (lower_omp_for): Likewise.
24429 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
24430 clause on simd construct.
24431 * omp-expand.c (expand_omp_simd): Initialize cond_var if
24432 OMP_CLAUSE__CONDTEMP_ clause is present.
24433
24434 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
24435 ivar and lvar.
24436
24437 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
24438
24439 PR c/43673
24440 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
24441 TEX_D32, TEX_D64 or TEX_D128.
24442
24443 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24444
24445 * match.pd (~(vec?cst1:cst2)): New transformation.
24446
24447 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
24448
24449 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
24450 ((size_t)(A /[ex] B) CMP C): New transformation.
24451
24452 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
24453
24454 * doc/md.texi: Document define_insn_and_rewrite.
24455 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
24456 * gensupport.c (queue_elem): Update comment.
24457 (replace_operands_with_dups): New function.
24458 (gen_rewrite_sequence): Likewise.
24459 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
24460 * read-rtl.c (apply_subst_iterator): Likewise.
24461 (add_condition_to_rtx, named_rtx_p): Likewise.
24462 (rtx_reader::read_rtx_operand): Likewise.
24463 * config/aarch64/aarch64-sve.md
24464 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
24465 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
24466 define_insn_and_rewrite.
24467 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
24468 Remove separate define_split.
24469
24470 2019-05-31 Jan Hubicka <jh@suse.cz>
24471
24472 * tree-ssa-alias.c (type_has_components_p): New function.
24473 (aliasing_component_refs_p): Use it.
24474
24475 2019-05-31 Martin Liska <mliska@suse.cz>
24476
24477 * gdbhooks.py: Add const_tree to TreePrinter.
24478
24479 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
24480
24481 PR debug/86964
24482 * common.opt (feliminate-unused-debug-symbols): Enable by default.
24483 * doc/invoke.texi (Debugging Options): Document new default of
24484 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
24485
24486 2019-05-31 Jakub Jelinek <jakub@redhat.com>
24487
24488 PR tree-optimization/90671
24489 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
24490 template_block used to be empty on the first call, don't use
24491 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
24492 seq with bb_seq and set it with set_bb_seq.
24493
24494 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
24495
24496 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
24497
24498 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24499 Michael Meissner <meissner@linux.ibm.com>
24500
24501 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
24502 (prefixed_mem_operand): Likewise.
24503 (non_prefixed_mem_operand): Likewise.
24504 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
24505 prototype.
24506 * config/rs6000/rs6000.c (print_operand_address): Handle
24507 PC-relative addresses.
24508 (mode_supports_prefixed_address_p): New function.
24509 (rs6000_prefixed_address): New function.
24510 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
24511 (SYMBOL_REF_PCREL_P): Likewise.
24512
24513 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24514
24515 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
24516 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
24517 (gimplify_omp_for): If worksharing loop with lastprivate conditional
24518 is nested inside of parallel region, add _condtemp_ clause to both.
24519 * tree-nested.c (convert_nonlocal_omp_clauses,
24520 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
24521 assertion failure.
24522 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
24523 member.
24524 * omp-general.c (omp_extract_for_data): Compute it.
24525 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
24526 (lower_rec_input_clauses): Likewise.
24527 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
24528 clause is already present, just add one further one after it.
24529 (lower_lastprivate_clauses): Handle cond_ptr with array type.
24530 (lower_send_shared_vars): Clear _condtemp_ vars.
24531 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
24532 or section or taskgroup.
24533 * omp-expand.c (determine_parallel_type): Disallow combining only if
24534 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
24535 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
24536 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24537 expand_omp_for_static_chunk, expand_omp_for): Use
24538 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
24539 determine if a special set of API routines are needed and if condtemp
24540 needs to be initialized, while always initialize cond_var if
24541 fd->lastprivate_conditional is non-zero.
24542
24543 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24544 Michael Meissner <meissner@linux.ibm.com>
24545
24546 * config/rs6000/constraints.md (eI): New constraint.
24547 * config/rs6000/predicates.md (cint34_operand): New predicate.
24548 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
24549 (SIGNED_34BIT_OFFSET_P): Likewise.
24550 * doc/md.texi (eI): Document constraint.
24551
24552 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
24553
24554 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
24555
24556 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
24557 Michael Meissner <meissner@linux.ibm.com>
24558
24559 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
24560 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
24561 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
24562 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
24563 (OTHER_FUTURE_MASKS): Likewise.
24564 (POWERPC_MASKS): Likewise.
24565 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
24566 specified without -mprefixed-addr or -mcpu=future. Error if
24567 -mprefixed-addr is specified without -mcpu=future.
24568 (rs6000_opt_masks): Add entry for prefixed-addr.
24569 * rs6000.opt (mprefixed-addr): New option.
24570
24571 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
24572
24573 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
24574 cfun->is_thunk check.
24575
24576 2019-05-30 Jakub Jelinek <jakub@redhat.com>
24577
24578 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
24579 to length.
24580
24581 2019-05-30 Martin Liska <mliska@suse.cz>
24582
24583 * gdbinit.in: Fix 'ptc' command. Add trt
24584 that prints TREE_TYPE($).
24585
24586 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
24587 Alan Modra <amodra@gmail.com>
24588
24589 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
24590 calls here...
24591 (rs6000_indirect_call_template_1): ...and here.
24592 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
24593 plt16_ha, plt16_lo, mtctr indirect calls. Use
24594 rs6000_pltseq_enum.
24595 (rs6000_decl_ok_for_sibcall): New function.
24596 (rs6000_function_ok_for_sibcall): Refactor.
24597 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
24598 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
24599 when pcrel. Reorganize.
24600 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
24601 * rs6000.h (rs6000_pltseq_enum): New enum.
24602 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
24603 (*pltseq_tocsave): Use rs6000_pltseq_enum.
24604 (*pltseq_plt16_ha): Likewise.
24605 (*pltseq_plt16_lo): Likewise.
24606 (*pltseq_mtctr): Likewise.
24607 (*pltseq_plt_pcrel): New insn.
24608 (*call_local_aix): Handle @notoc calls.
24609 (*call_value_local_aix): Likewise.
24610 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
24611 (*call_value_nonlocal_aix): Likewise.
24612 (*call_indirect_pcrel): New insn.
24613 (*call_value_indirect_pcrel): Likewise.
24614
24615 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
24616
24617 * config/i386/sse.md (*save_multiple<mode>): Rename from
24618 save_multiple<mode>.
24619 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
24620 (*restore_multiple_and_return<mode>): Rename from
24621 restore_multiple_and_return<mode>.
24622 (*restore_multiple_leave_return<mode>): Rename from
24623 restore_multiple_leave_return<mode>.
24624
24625 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
24626
24627 * config.gcc (rx-*-linux*): New target.
24628 * config/rx/elf.opt: New file.
24629 * config/rx/linux.h: Likewise.
24630 * config/rx/t-linux: Likewise.
24631 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
24632 make it zero.
24633 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
24634 (ASM_APP_OFF): Likewise.
24635 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
24636 moved elsewhere.
24637
24638 2019-05-29 Jan Hubicka <jh@suse.cz>
24639
24640 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
24641 variants are pointer equivalent.
24642
24643 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24644
24645 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
24646 * config/aarch64/aarch64-sve2.md: New file.
24647 (<u>avg<mode>3_floor): New pattern.
24648 (<u>avg<mode>3_ceil): Likewise.
24649 (*<sur>h<addsub><mode>): Likewise.
24650 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
24651 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
24652
24653 2019-05-29 Jakub Jelinek <jakub@redhat.com>
24654
24655 PR bootstrap/90543
24656 * optc-save-gen.awk: In cl_optimization_print, use correct condition
24657 for var_opt_string printing. In cl_optimization_print_diff, print
24658 (null) instead of invoking undefined behavior if one of the
24659 var_opt_string pointers is NULL and use && instead of first || in the
24660 guarding condition. For var_target_other options, handle const char *
24661 target variables similarly to const char * optimize node variables.
24662
24663 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
24664
24665 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
24666 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
24667 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
24668 Add autib1716 and pacib1716 initialisation.
24669 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
24670 for autib1716 and pacib1716.
24671 * config/aarch64/aarch64-protos.h (aarch64_key_type,
24672 aarch64_post_cfi_startproc): Define.
24673 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
24674 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
24675 aarch64_handle_pac_ret_protection): Set default sign key to A.
24676 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
24677 aarch64_expand_prologue): Add check for b-key.
24678 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
24679 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
24680 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
24681 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
24682 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
24683 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
24684 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24685 * config/aarch64/aarch64.md (do_return): Add check for b-key.
24686 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
24687 pauth_hint_num_a with pauth_hint_num.
24688 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
24689 pauth_hint_num_a with pauth_hint_num.
24690 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
24691 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
24692 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24693 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
24694 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
24695 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
24696 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
24697 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
24698 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
24699 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
24700 UNSPEC_AUTIA1716 respectively.
24701 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
24702 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
24703 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
24704 * doc/invoke.texi (-mbranch-protection): Add b-key type.
24705 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
24706 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
24707
24708 2019-05-29 Jakub Jelinek <jakub@redhat.com>
24709
24710 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
24711 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
24712 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
24713 explicit clause on combined parallel into implicit shared clause.
24714 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
24715 and firstprivate if the decl has one too from combined parallel to
24716 the worksharing construct.
24717
24718 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
24719 Michael Meissner <meissner@linux.ibm.com>
24720
24721 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
24722
24723 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
24724
24725 * rtl.h (LABEL_REF_P): New #define.
24726
24727 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
24728
24729 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
24730
24731 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24732
24733 * internal-fn.c: Marked mask_load_direct as vectorizable.
24734 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
24735 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
24736 combined even if masks different with allow_slp_p param.
24737 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
24738 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
24739 dissolve SLP-only vectorizable groups when SLP has been discarded.
24740 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
24741 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
24742 masks.
24743 (vect_build_slp_tree_1): Fixed comment typo.
24744 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
24745 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
24746 loads for SLP only.
24747 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
24748 vectorizable.
24749 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
24750
24751 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24752
24753 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
24754 Remove obsolete use_thunk reference.
24755 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
24756 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
24757 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
24758 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
24759 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
24760 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
24761 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
24762 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
24763 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
24764
24765 2019-05-28 Nathan Sidwell <nathan@acm.org>
24766
24767 * tree.h (IDENTIFIER_ANON_P): New.
24768 (anon_aggrname_format, anon_aggname_p): Don't declare.
24769 (make_anon_name): Declare.
24770 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
24771 (hash_tree): Likewise.
24772 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
24773 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
24774 (anon_cnt, make_anon_name): New.
24775
24776 2019-05-28 Martin Liska <mliska@suse.cz>
24777
24778 PR other/90315
24779 * opts-global.c (decode_options): Print help for all
24780 help_option_arguments.
24781 * opts.c (print_help): Add new argument.
24782 (common_handle_option): Remember all values into
24783 help_option_arguments.
24784 * opts.h (print_help): Add new argument.
24785
24786 2019-05-28 Martin Liska <mliska@suse.cz>
24787
24788 PR ipa/90555
24789 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
24790 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
24791 (func_checker::compare_bb): Call compare_loops.
24792
24793 2019-05-27 Jakub Jelinek <jakub@redhat.com>
24794
24795 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
24796 on sections construct.
24797 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
24798 construct.
24799 (lower_omp_sections): Handle lastprivate conditional.
24800 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
24801 lastprivate_conditional_map.
24802 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
24803
24804 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
24805 critical, taskgroup and section regions when looking for a region
24806 with non-NULL lastprivate_conditional_map.
24807
24808 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
24809
24810 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
24811 (*ix86_gen_sub3): Ditto.
24812 (*ix86_gen_sub3_carry): Ditto.
24813 (*ix86_gen_one_cmpl2): Ditto.
24814 (*ix86_gen_andsp): Ditto.
24815 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
24816 (gen_and2_insn): New static function.
24817 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
24818 Use gen_add3_insn instead of ix86_gen_add3.
24819 (ix86_expand_split_stack_prologue): Use gen_add2_insn
24820 instead of ix86_gen_add3.
24821 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
24822 Use gen_sub3_insn instead of ix86_gen_sub3.
24823 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
24824 instead of ix86_gen_add3.
24825 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
24826 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
24827 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
24828 * config/i386/i386-options.c (ix86_option_override_internal):
24829 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
24830 ix86_gen_one_cmpl2 and ix86_gen_andsp.
24831
24832 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
24833
24834 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
24835 and DW_OP_GNU_const_index opcodes.
24836
24837 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
24838
24839 * config/i386/i386.h (STACK_SIZE_MODE): Define.
24840
24841 2019-05-27 Richard Biener <rguenther@suse.de>
24842
24843 PR tree-optimization/90637
24844 * tree-ssa-sink.c (statement_sink_location): Honor the
24845 computed sink location for single-uses.
24846
24847 2019-05-27 Richard Biener <rguenther@suse.de>
24848
24849 PR middle-end/90610
24850 * match.pd (vec_perm): Avoid clobbering op0 when not generating
24851 a bit-insert.
24852
24853 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24854
24855 * config/i386/i386.md (@sub<mode>3_carry): Rename
24856 from sub<mode>3_carry.
24857 (@leave_<mode>): New expander.
24858 (*leave): Rename from leave.
24859 (*leave_rex64): Rename from leave_rex64.
24860 (@monitorx_<mode>): Rename from monitorx_<mode>.
24861 (@clzero_<mode>): Rename from clzero_<mode>.
24862 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
24863 from sse3_monitor_<mode>.
24864 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
24865 (*ix86_gen_leave): Ditto.
24866 (*ix86_gen_monitor): Ditto.
24867 (*ix86_gen_monitorx): Ditto.
24868 (*ix86_gen_clzero): Ditto.
24869 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
24870 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
24871 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
24872 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
24873 Use gen_sse3_monitor instead of ix86_gen_monitor.
24874 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
24875 instead of ix86_gen_monitorx.
24876 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
24877 instead of ix86_gen_clzero.
24878 * config/i386/i386-options.c (ix86_option_override_internal):
24879 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
24880 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
24881
24882 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24883
24884 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
24885 Rename from tls_global_dynamic_64_<mode>.
24886 (@tls_local_dynamic_base_64_<mode>): Rename from
24887 tls_local_dynamic_base_64_<mode>.
24888 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
24889 Remove indirect function.
24890 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
24891 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
24892 instead of ix86_gen_tls_global_dynamic_64.
24893 Use gen_tls_local_dynamic_base_64 instead of
24894 ix86_gen_tls_local_dynamic_base_64.
24895 * config/i386/i386-options.c (ix86_option_override_internal):
24896 Do not initialize ix86_gen_tls_global_dynamic_64 and
24897 ix86_gen_tls_local_dynamic_base_64.
24898
24899 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24900
24901 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
24902 Rename from pro_epilogue_adjust_stack_<mode>_add.
24903 (@pro_epilogue_adjust_stack_sub_<mode>)
24904 Rename from pro_epilogue_adjust_stack_<mode>_sub.
24905 (@allocate_stack_worker_probe_<mode>):
24906 Rename from allocate_stack_worker_probe_<mode>.
24907 (allocate_stack): Use gen_allocate_stack_worker_probe.
24908 (probe_stack): Use gen_probe_stack_1.
24909 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
24910 (@adjust_stack_and_probe_<mode>): Rename from
24911 adjust_stack_and_probe<mode>.
24912 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
24913 (stack_protect_set): Use gen_stack_protect_set_1.
24914 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
24915 (stack_protect_test): Use gen_stack_protect_test_1.
24916 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
24917 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
24918 Remove indirect function.
24919 (*ix86_gen_adjust_stack_and_probe): Ditto.
24920 (*ix86_gen_probe_stack_range): Ditto.
24921 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
24922 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
24923 (ix86_adjust_stack_and_probe_stack_clash): Use
24924 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
24925 (ix86_adjust_stack_and_probe): Ditto.
24926 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
24927 of ix86_gen_probe_stack_range.
24928 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
24929 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
24930 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
24931 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
24932 CODE_FOR_stack_protect_test_{si,di}.
24933 * config/i386/i386-options.c (ix86_option_override_internal):
24934 Do not initialize ix86_gen_allocate_stack_worker,
24935 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
24936
24937 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
24938
24939 * doc/invoke.texi (Link Options): Many editorial changes around
24940 -flinker-output.
24941
24942 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24943
24944 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
24945 pre-Solaris 11 referene and most Studio compiler details.
24946
24947 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
24948
24949 PR target/90530
24950 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
24951 DImode to SImode in floating-point registers on 64-bit target.
24952 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
24953 register_operand in xmpyu patterns.
24954
24955 2019-05-24 Jakub Jelinek <jakub@redhat.com>
24956
24957 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
24958 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
24959 OMP_CLAUSE__REDUCTEMP_.
24960 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
24961 OMP_CLAUSE__CONDTEMP_.
24962 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
24963 * tree-pretty-print.c (dump_omp_clause): Likewise.
24964 * tree-nested.c (convert_nonlocal_omp_clauses,
24965 convert_local_omp_clauses): Likewise.
24966 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
24967 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
24968 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
24969 on OMP_FOR.
24970 (gimplify_omp_for): Warn and disable conditional modifier from
24971 lastprivate on loop iterators.
24972 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
24973 member.
24974 * omp-general.c (omp_extract_for_data): Initialize it.
24975 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
24976 member.
24977 (delete_omp_context): Delete it.
24978 (lower_lastprivate_conditional_clauses): New function.
24979 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
24980 handle lastprivate conditional clauses.
24981 (lower_reduction_clauses): Add CLIST argument, emit it into
24982 the critical section if any.
24983 (lower_omp_sections): Adjust lower_lastprivate_clauses and
24984 lower_reduction_clauses callers.
24985 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
24986 to lower_lastprivate_clauses.
24987 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
24988 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
24989 clist into a critical section if not emitted there already by
24990 lower_reduction_clauses.
24991 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
24992 callers.
24993 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
24994 conditional variables.
24995 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
24996 clause is present.
24997 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24998 expand_omp_for_static_chunk): Handle lastprivate conditional.
24999 (expand_omp_for): Handle fd.lastprivate_conditional like
25000 fd.have_reductemp.
25001
25002 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25003
25004 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25005 kernel does not exit cleanly.
25006 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25007
25008 2019-05-24 Jason Merrill <jason@redhat.com>
25009
25010 Revert:
25011 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25012
25013 2019-05-24 Richard Biener <rguenther@suse.de>
25014
25015 PR testsuite/90607
25016 * tree-loop-distribution.c (struct partition): Add location
25017 member.
25018 (partition_alloc): Initialize all fields.
25019 (generate_memset_builtin): Use the location recorded in the
25020 partition for the generated call.
25021 (generate_memcpy_builtin): Likewise.
25022 (classify_partition): Record the location of a single store
25023 as location for the partition.
25024
25025 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25026
25027 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25028 for lo-part.
25029
25030 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25031
25032 PR target/90588
25033 * common/config/aarch64/aarch64-common.c
25034 (aarch64_rewrite_selected_cpu): Change local temporary variable
25035 type from unsigned long to uint64_t.
25036 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25037 aarch64_get_extension_string_for_isa_flags): Change declaration to
25038 match new definition by replacing unsigned long with uint64_t.
25039
25040 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25041
25042 PR target/90568
25043 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25044 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25045 Handle stack_protect_test_<mode> codegen similarly to corresponding
25046 sub instruction.
25047
25048 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25049
25050 * config/i386/darwin.h: Reject -mfentry*.
25051 * doc/sourcebuild.texi: Document mfentry target support.
25052
25053 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25054
25055 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25056 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25057 false for PC-relative functions.
25058 (rs6000_output_function_prologue): Change called function name to
25059 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25060 name,1" for PC-relative functions.
25061 (rs6000_elf_declare_function_name): Change called function name to
25062 rs6000_global_entry_point_prologue_needed_p.
25063
25064 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25065
25066 PR target/90552
25067 * config/i386/i386.c (gen_rtx_cost):
25068 Use ix86_tune_cost instead of ix86_cost.
25069
25070 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25071 Michael Meissner <meissner@linux.ibm.com>
25072 Segher Boessenkool <segher@kernel.crashing.org>
25073
25074 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25075 OPTION_MASK_PCREL.
25076 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25077 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25078 (rs6000_fndecl_pcrel_p): Likewise.
25079 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25080 error if -mpcrel is requested without -mcpu=future.
25081 (rs6000_opt_masks): Add entry for pcrel.
25082 (rs6000_fndecl_pcrel_p): New function.
25083 (rs6000_pcrel_p): Likewise.
25084 * config/rs6000/rs6000.opt (mpcrel): New option.
25085 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25086
25087 2019-05-23 Jan Hubicka <jh@suse.cz>
25088 Martin Liska <mliska@suse.cz>
25089
25090 PR tree-optimization/90576
25091 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25092 poly_int_tree_p.
25093 (aliasing_component_refs_p): Fix three way size compare conditional;
25094 give up earlier in case we can not decide on equivalence.
25095
25096 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25097 Michael Meissner <meissner@linux.ibm.com>
25098 Segher Boessenkool <segher@kernel.crashing.org>
25099
25100 * config.gcc: Add future cpu.
25101 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25102 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25103 #define.
25104 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25105 (RS6000_CPU): New instantiation for future cpu.
25106 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25107 PROCESSOR_FUTURE.
25108 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25109 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25110 * config/rs6000/rs6000-tables.opt: Regenerate.
25111 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25112 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25113 (rs6000_machine_from_flags): Handle future cpu.
25114 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25115 PROCESSOR_POWER9 for now.
25116 (rs6000_adjust_cost): Likewise.
25117 (rs6000_issue_rate): Likewise.
25118 (rs6000_register_move_cost): Likewise.
25119 (rs6000_opt_masks): Add entry for future.
25120 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25121 (MASK_FUTURE): New #define.
25122 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25123 * config/rs6000/rs6000.opt (mfuture): New target option.
25124 * doc/invoke.texi (mcpu): Add future cpu.
25125
25126 2019-05-23 Martin Liska <mliska@suse.cz>
25127
25128 PR c++/90587
25129 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25130 operation points to a temporary (pointed via tree_to_wide_ref)
25131 that is out of scope after the &.
25132
25133 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25134
25135 PR c++/90592
25136 * doc/extend.texi (Function Names): Add missing word.
25137
25138 2019-05-23 Richard Biener <rguenther@suse.de>
25139
25140 PR tree-optimization/88440
25141 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25142 at -O[2s]+.
25143 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25144 generated call.
25145 (generate_memcpy_builtin): Likewise.
25146 (distribute_loop): Pass in whether to only distribute patterns.
25147 (prepare_perfect_loop_nest): Also allow size optimization.
25148 (pass_loop_distribution::execute): When optimizing a loop
25149 nest for size allow pattern replacement.
25150
25151 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25152
25153 PR target/90568
25154 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25155 of xor.
25156
25157 2019-05-23 Martin Liska <mliska@suse.cz>
25158
25159 PR sanitizer/90570
25160 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25161 expression similarly to gimplify_decl_expr.
25162
25163 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25164
25165 * cse.c (cse_dump_path): s/dump_file/f.
25166
25167 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25168
25169 PR c++/90462
25170 * diagnostic-format-json.cc: Include "selftest.h".
25171 (json_from_expanded_location): Only add "file" key for non-NULL
25172 file strings.
25173 (json_from_location_range): Don't add "start" and "finish"
25174 children if they are UNKNOWN_LOCATION.
25175 (selftest::test_unknown_location): New selftest.
25176 (selftest::test_bad_endpoints): New selftest.
25177 (selftest::diagnostic_format_json_cc_tests): New function.
25178 * json.cc (json::object::get): New function.
25179 (selftest::test_object_get): New selftest.
25180 (selftest::json_cc_tests): Call it.
25181 * json.h (json::object::get): New decl.
25182 * selftest-run-tests.c (selftest::run_tests): Call
25183 selftest::diagnostic_format_json_cc_tests.
25184 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25185 decl.
25186
25187 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25188 Andrew Stubbs <amd@codesourcery.com>
25189
25190 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25191 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25192 (kernel): Rename to...
25193 (main_kernel): ... this.
25194 (load_image): Load _init_array and _fini_array kernels.
25195 (run): Add argument for kernel to run.
25196 (main): Run init_array_kernel before main_kernel, and
25197 fini_array_kernel after.
25198 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25199 amdgpu_hsa_kernel attribute on functions.
25200 (gcn_disable_constructors): Delete.
25201 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25202 * config/gcn/crt0.c (size_t): Define.
25203 (_init_array, _fini_array): New.
25204 (__preinit_array_start, __preinit_array_end,
25205 __init_array_start, __init_array_end,
25206 __fini_array_start, __fini_array_end): Declare weak references.
25207
25208 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25209
25210 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25211
25212 2019-05-22 Jason Merrill <jason@redhat.com>
25213
25214 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25215
25216 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
25217
25218 PR target/88483
25219 * config/i386/i386-options.c (ix86_init_machine_status): Set
25220 stack_frame_required to true.
25221 * config/i386/i386.c (ix86_get_frame_size): New function.
25222 (ix86_frame_pointer_required): Replace get_frame_size with
25223 ix86_get_frame_size.
25224 (ix86_compute_frame_layout): Likewise.
25225 (ix86_find_max_used_stack_alignment): Changed to void. Set
25226 stack_frame_required.
25227 (ix86_finalize_stack_frame_flags): Always call
25228 ix86_find_max_used_stack_alignment. Replace get_frame_size with
25229 ix86_get_frame_size.
25230 * config/i386/i386.h (machine_function): Add stack_frame_required.
25231
25232 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
25233
25234 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25235
25236 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
25237
25238 * common/config/aarch64/aarch64-common.c
25239 (struct aarch64_option_extension, struct processor_name_to_arch,
25240 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25241 aarch64_contains_opt,
25242 aarch64_get_extension_string_for_isa_flags): Change type of
25243 variables storing flags to uint64_t.
25244 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25245 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25246 * config/aarch64/aarch64.c (struct processor,
25247 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25248 aarch64_validate_march, aarch64_override_options,
25249 aarch64_option_print, aarch64_handle_attr_isa_flags,
25250 aarch64_declare_function_name, aarch64_start_file): Make flag
25251 variables uint64_t.
25252 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25253 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25254 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25255 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25256 * config/aarch64/driver-aarch64.c
25257 (struct aarch64_arch_extension, struct aarch64_core_data,
25258 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25259 flag variables uint64_t.
25260 * doc/invoke.texi: Add documentation for new arguments.
25261
25262 2019-05-22 Richard Biener <rguenther@suse.de>
25263
25264 * alias.c (ao_ref_from_mem): Move stack-slot sharing
25265 rewrite ...
25266 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25267
25268 2019-05-22 Martin Liska <mliska@suse.cz>
25269
25270 PR lto/90500
25271 * doc/extend.texi: Document the change.
25272
25273 2019-05-22 Richard Biener <rguenther@suse.de>
25274
25275 PR tree-optimization/90450
25276 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25277 (mem_ref_hasher::equal): Check it.
25278 (mem_ref_alloc): Initialize it.
25279 (gather_mem_refs_stmt): Set it.
25280
25281 2019-05-22 Richard Biener <rguenther@suse.de>
25282
25283 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
25284 Add ABS_EXPR.
25285 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
25286 as ABSU_EXPR.
25287
25288 2019-05-22 Alan Modra <amodra@gmail.com>
25289
25290 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
25291 (ASM_CPU_SPEC): Conditionally add -many.
25292 * config/rs6000/rs6000.c (rs6000_machine): New static var.
25293 (rs6000_machine_from_flags, emit_asm_machine): New functions..
25294 (rs6000_file_start): ..extracted from here, and modified to
25295 test all ISA bits.
25296 (rs6000_output_function_prologue): Emit .machine as necessary.
25297
25298 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
25299
25300 PR middle-end/90553
25301 * ira-lives.c (process_bb_node_lives): Consider defs
25302 for a call insn to be die before the call, not after.
25303
25304 * function.c (assign_parm_setup_block): Raise alignment of
25305 stacked parameter only for STRICT_ALIGNMENT targets.
25306
25307 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25308
25309 * config/rs6000/constraints.md (define_register_constraint "wz"):
25310 Delete.
25311 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25312 RS6000_CONSTRAINT_wz.
25313 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25314 (rs6000_init_hard_regno_mode_ok): Adjust.
25315 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
25316 * doc/md.texi (Machine Constraints): Adjust.
25317
25318 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25319
25320 * config/rs6000/constraints.md (define_register_constraint "wl"):
25321 Delete.
25322 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25323 RS6000_CONSTRAINT_wl.
25324 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25325 (rs6000_init_hard_regno_mode_ok): Adjust.
25326 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
25327 * doc/md.texi (Machine Constraints): Adjust.
25328
25329 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25330
25331 * config/rs6000/constraints.md (define_register_constraint "wm"):
25332 Delete.
25333 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25334 RS6000_CONSTRAINT_wm.
25335 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25336 (rs6000_init_hard_regno_mode_ok): Adjust.
25337 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
25338 * doc/md.texi (Machine Constraints): Adjust.
25339
25340 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25341
25342 * config/rs6000/constraints.md (define_register_constraint "wk"):
25343 Delete.
25344 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25345 RS6000_CONSTRAINT_wk.
25346 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25347 (rs6000_init_hard_regno_mode_ok): Adjust.
25348 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
25349 * doc/md.texi (Machine Constraints): Adjust.
25350
25351 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25352
25353 * config/rs6000/constraints.md (define_register_constraint "wj"):
25354 Delete.
25355 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25356 RS6000_CONSTRAINT_wj.
25357 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25358 (rs6000_init_hard_regno_mode_ok): Adjust.
25359 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
25360 (VS_64dm): Delete.
25361 * config/rs6000/vsx.md: Ditto.
25362 * doc/md.texi (Machine Constraints): Adjust.
25363
25364 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25365
25366 * config/rs6000/constraints.md (define_register_constraint "wh"):
25367 Delete.
25368 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25369 RS6000_CONSTRAINT_wh.
25370 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25371 (rs6000_init_hard_regno_mode_ok): Adjust.
25372 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
25373 * doc/md.texi (Machine Constraints): Adjust.
25374
25375 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25376
25377 PR target/90547
25378 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
25379 Avoid calling gen_lowpart with CONST operand.
25380
25381 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
25382
25383 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
25384 field template_last_to_copy.
25385 (ssa_create_duplicates): Set it, and use it. Attempt to
25386 preserve more debug stmts.
25387
25388 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25389
25390 * config/i386/sse.md (VF1_AVX2): New mode iterator.
25391 (signbit<mode>2): New expander
25392
25393 2019-05-21 James Clarke <jrtc27@jrtc27.com>
25394
25395 PR bootstrap/87338
25396 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
25397 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
25398
25399 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
25400
25401 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
25402 %ebx and %ecx bafore calling cpuid with leaf 1 or
25403 non-constant leaf argument.
25404
25405 2019-05-21 Alan Modra <amodra@gmail.com>
25406
25407 PR target/90545
25408 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
25409 power9 direct move cost.
25410
25411 2019-05-21 Richard Biener <rguenther@suse.de>
25412
25413 PR middle-end/90510
25414 * fold-const.c (fold_read_from_vector): New function.
25415 * fold-const.h (fold_read_from_vector): Declare.
25416 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
25417 single-element insert permutations. Canonicalize selector
25418 further and fix issue with last commit.
25419
25420 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25421
25422 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
25423 parameter with default value false to declaration.
25424 (split_edges_for_insertion): New inline function. Wrapper for
25425 split_critical_edges with for_edge_insertion_p = true.
25426 * tree-cfg.c (split_critical_edges): Don't split non-critical
25427 edges if for_edge_insertion_p is false. Fix whitespace.
25428 * tree-ssa-pre.c (pass_pre::execute): Call
25429 split_edges_for_insertion instead of split_critical_edges.
25430 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
25431 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
25432 (pass_data_sink_code): Update function name in the comment.
25433
25434 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
25435
25436 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
25437 around is_value_included_in that knows how to handle BIT_AND_EXPR.
25438 (is_pred_expr_subset_of): Use the new function. Handle more cases where
25439 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
25440 positives.
25441
25442 2019-05-21 Martin Liska <mliska@suse.cz>
25443
25444 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
25445 an extra newline.
25446 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
25447 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
25448 vec_lvsr.
25449 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25450 Quote a C type.
25451 (rs6000_function_arg): Likewise.
25452 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
25453 (rs6000_expand_ternop_builtin): Use interval syntax.
25454 (get_element_number): Likewise.
25455 (altivec_expand_builtin): Likewise.
25456 (rs6000_get_function_versions_dispatcher): Quote target_clones.
25457
25458 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25459
25460 PR c++/59813
25461 PR target/90418
25462 * function.h (struct function): Add calls_eh_return member.
25463 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
25464 gimplifying __builtin_eh_return call.
25465 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
25466 to cfun.
25467 (expand_call_inline): Or in src_cfun->calls_eh_return into
25468 dst_cfun->calls_eh_return.
25469 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
25470 cfun->calls_eh_return.
25471 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
25472 * lto-streamer-out.c (output_struct_function_base): Write
25473 calls_eh_return.
25474
25475 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
25476
25477 PR rtl-optimization/43147
25478 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
25479 IX86_BUILTIN_SHUFPD.
25480
25481 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25482
25483 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
25484 (refs_may_alias_p_1): ... here; update stats.
25485 (refs_may_alias_p): Do not update stats here.
25486
25487 2019-05-20 Richard Biener <rguenther@suse.de>
25488
25489 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
25490 doesn't produce pointers.
25491 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
25492 the first operand points to.
25493
25494 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
25495
25496 * tree-ssa-alias.c (compare_sizes): New function.
25497 (sompare_type_sizes): New function
25498 (aliasing_component_refs_p): Use it.
25499 (indirect_ref_may_alias_decl_p): Likewise.
25500
25501 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25502
25503 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
25504
25505 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25506
25507 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
25508 (LIBLSAN_EARLY_SPEC): Likewise.
25509 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
25510
25511 2019-05-20 Martin Liska <mliska@suse.cz>
25512
25513 * config/i386/i386.c (ix86_libc_has_fast_function):
25514 Add ATTRIBUTE_UNUSED for the argument.
25515
25516 2019-05-20 Richard Biener <rguenther@suse.de>
25517
25518 * gimple-match-head.c: Include vec-perm-indices.h.
25519 * generic-match-head.c: Likewise.
25520 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
25521 is included.
25522 * fold-const.c (fold_vec_perm): Export.
25523 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
25524 (match.pd): ...here.
25525
25526 2019-05-20 Jakub Jelinek <jakub@redhat.com>
25527
25528 * cfgloop.h (struct loop): Add simdlen member.
25529 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
25530 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
25531 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
25532 as new argument to autovectorize_vector_sizes target hook. If
25533 loop->simdlen, pick up vector size where the vectorization factor
25534 is equal to loop->simd, and if there is none, fall back to the first
25535 successful one.
25536 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
25537 caller.
25538 * omp-low.c (omp_clause_aligned_alignment): Likewise.
25539 * omp-general.c (omp_max_vf): Likewise.
25540 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
25541 * tree-vect-slp.c (vect_slp_bb): Likewise.
25542 * target.def (autovectorize_vector_sizes): Add ALL argument and
25543 document it.
25544 * doc/tm.texi: Adjust documentation.
25545 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
25546 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
25547 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
25548 bool argument.
25549 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
25550 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
25551 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
25552 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
25553 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
25554 preferred vector size is not 512-bit or 256-bit, just put those
25555 unpreferred ones last.
25556
25557 2019-05-20 Martin Liska <mliska@suse.cz>
25558
25559 * targhooks.c (default_libc_has_fast_function): New function.
25560 * targhooks.h (default_libc_has_fast_function): Likewise.
25561
25562 2019-05-20 Martin Liska <mliska@suse.cz>
25563
25564 PR middle-end/90263
25565 * builtins.c (expand_builtin_memory_copy_args): When having a
25566 target with fast mempcpy implementation do now use memcpy.
25567 * config/i386/i386.c (ix86_libc_has_fast_function): New.
25568 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
25569 * doc/tm.texi: Likewise.
25570 * doc/tm.texi.in: Likewise.
25571 * target.def:
25572 * expr.c (emit_block_move_hints): Add 2 new arguments.
25573 * expr.h (emit_block_move_hints): Bail out when libcall
25574 to memcpy would be used.
25575
25576 2019-05-20 Martin Liska <mliska@suse.cz>
25577
25578 * profile-count.c: Add vertical spacing in order
25579 to separate functions.
25580 * profile-count.h: Likewise.
25581
25582 2019-05-20 Martin Liska <mliska@suse.cz>
25583
25584 * profile-count.h: Do not use full qualified
25585 names if possible.
25586 * profile-count.c (profile_count::to_frequency): Likewise.
25587
25588 2019-05-20 Martin Liska <mliska@suse.cz>
25589
25590 * profile-count.h (enum profile_quality): Use capital letters
25591 for enum value names. Use the adjusted names.
25592 * profile-count.c: Use the adjusted names.
25593
25594 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25595
25596 * config/rs6000/constraints.md (define_register_constraint "wH"):
25597 Delete.
25598 (define_register_constraint "wI"): Delete.
25599 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25600 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
25601 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25602 (rs6000_init_hard_regno_mode_ok): Adjust.
25603 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
25604 resp. "d", or with "wa" as appropriate, all with "p8v".
25605 * config/rs6000/vsx.md: Ditto.
25606 * doc/md.texi (Machine Constraints): Adjust.
25607
25608 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25609
25610 * config/rs6000/constraints.md (define_register_constraint "wy"):
25611 Delete.
25612 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25613 RS6000_CONSTRAINT_wy.
25614 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25615 (rs6000_init_hard_regno_mode_ok): Adjust.
25616 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
25617 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
25618 (define_mode_attr Fisa): New.
25619 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
25620 * doc/md.texi (Machine Constraints): Adjust.
25621
25622 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25623
25624 * config/rs6000/constraints.md (define_register_constraint "wu"):
25625 Delete.
25626 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25627 RS6000_CONSTRAINT_wu.
25628 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25629 (rs6000_init_hard_regno_mode_ok): Adjust.
25630 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
25631 both with "p8v".
25632 (define_mode_attr Fa): Delete.
25633 * config/rs6000/vsx.md: Ditto.
25634 * doc/md.texi (Machine Constraints): Adjust.
25635
25636 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25637
25638 * config/rs6000/constraints.md (define_register_constraint "wJ"):
25639 Delete.
25640 (define_register_constraint "wK"): Delete.
25641 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25642 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
25643 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25644 (rs6000_init_hard_regno_mode_ok): Adjust.
25645 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
25646 Replace "wK" constraint by "wH" with "p9v".
25647 * config/rs6000/vsx.md: Ditto.
25648 * doc/md.texi (Machine Constraints): Adjust.
25649
25650 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25651
25652 * config/rs6000/constraints.md (define_register_constraint "wb"):
25653 Delete.
25654 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25655 RS6000_CONSTRAINT_wb.
25656 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25657 (rs6000_init_hard_regno_mode_ok): Adjust.
25658 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
25659 * config/rs6000/vsx.md: Ditto.
25660 * doc/md.texi (Machine Constraints): Adjust.
25661
25662 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
25663
25664 * config/rs6000/constraints.md (define_register_constraint "wo"):
25665 Delete.
25666 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25667 RS6000_CONSTRAINT_wo.
25668 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25669 (rs6000_init_hard_regno_mode_ok): Adjust.
25670 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
25671 * config/rs6000/altivec.md: Ditto.
25672 * doc/md.texi (Machine Constraints): Adjust.
25673
25674 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
25675
25676 * config/darwin-c.c (darwin_register_objc_includes): Do not
25677 prepend the sysroot when building gnu-runtime header search
25678 paths.
25679
25680 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
25681
25682 * config/darwin.c (darwin_file_end): Use switch_to_section ()
25683 instead of direct output of the asm.
25684
25685 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
25686
25687 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
25688 argument to be type bool (was int before).
25689 (rs6000_emit_epilogue): Simplify some code. Declare some variables
25690 at first use. Use type bool for some variables. Fix a theoretical
25691 eh_return bug for svr4.
25692
25693 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
25694
25695 * config/rs6000/rs6000.md (isa): New attribute.
25696 (enabled): New attribute.
25697
25698 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
25699
25700 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
25701 assemble_start_function and assemble_end_function.
25702
25703 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
25704
25705 PR middle-end/89433
25706 * omp-general.c (oacc_verify_routine_clauses): Change formal
25707 parameters. Add checking if already marked with an OpenACC
25708 'routine' directive. Adjust all users.
25709
25710 PR middle-end/89433
25711 * omp-general.c (oacc_build_routine_dims): Move some of its
25712 processing into...
25713 (oacc_verify_routine_clauses): ... this new function.
25714 * omp-general.h (oacc_verify_routine_clauses): New prototype.
25715
25716 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
25717
25718 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
25719 formating of picbase labels to match other ports.
25720
25721 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
25722
25723 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
25724 in the generated code.
25725
25726 2019-05-16 Martin Sebor <msebor@redhat.com>
25727
25728 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
25729 identifiers, keywords, operators, and types in diagnostics. Correct
25730 quoting, spelling, and sentence capitalization issues.
25731 (expand_builtin_atomic_is_lock_free): Same.
25732 (fold_builtin_next_arg): Same.
25733 * cfgexpand.c (expand_one_var): Same.
25734 (tree_conflicts_with_clobbers_p): Same.
25735 (expand_asm_stmt): Same.
25736 (verify_loop_structure): Same.
25737 * cgraphunit.c (process_function_and_variable_attributes): Same.
25738 * collect-utils.c (collect_execute): Same.
25739 * collect2.c (maybe_run_lto_and_relink): Same.
25740 (is_lto_object_file): Same.
25741 (scan_prog_file): Same.
25742 * convert.c (convert_to_real_1): Same.
25743 * dwarf2out.c (dwarf2out_begin_prologue): Same.
25744 * except.c (verify_eh_tree): Same.
25745 * gcc.c (execute): Same.
25746 (eval_spec_function): Same.
25747 (run_attempt): Same.
25748 (driver::set_up_specs): Same.
25749 (compare_debug_auxbase_opt_spec_function): Same.
25750 * gcov-tool.c (unlink_gcda_file): Same.
25751 (do_merge): Same.
25752 (do_rewrite): Same.
25753 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
25754 * gimplify.c (gimplify_asm_expr): Same.
25755 (gimplify_adjust_omp_clauses): Same.
25756 * hsa-gen.c (gen_hsa_addr_insns): Same.
25757 (gen_hsa_insns_for_load): Same.
25758 (gen_hsa_cmp_insn_from_gimple): Same.
25759 (gen_hsa_insns_for_operation_assignment): Same.
25760 (gen_get_level): Same.
25761 (gen_hsa_alloca): Same.
25762 (omp_simple_builtin::generate): Same.
25763 (gen_hsa_atomic_for_builtin): Same.
25764 (gen_hsa_insns_for_call): Same.
25765 * input.c (dump_location_info): Same.
25766 * ipa-devirt.c (compare_virtual_tables): Same.
25767 * ira.c (ira_setup_eliminable_regset): Same.
25768 * lra-assigns.c (lra_assign): Same.
25769 * lra-constraints.c (lra_constraints): Same.
25770 * lto-streamer-in.c (lto_input_mode_table): Same.
25771 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
25772 (merge_and_complain): Same.
25773 (compile_offload_image): Same.
25774 (compile_images_for_offload_targets): Same.
25775 (debug_objcopy): Same.
25776 (run_gcc): Same.
25777 (main): Same.
25778 * opts.c (print_specific_help): Same.
25779 (parse_no_sanitize_attribute): Same.
25780 (print_help): Same.
25781 (handle_param): Same.
25782 * plugin.c (add_new_plugin): Same.
25783 (parse_plugin_arg_opt): Same.
25784 (try_init_one_plugin): Same.
25785 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
25786 operators, and types in diagnostics. Correct quoting and spelling
25787 issues.
25788 * read-rtl-function.c (parse_edge_flag_token): Same.
25789 (function_reader::parse_enum_value): Same.
25790 * reg-stack.c (check_asm_stack_operands): Same.
25791 * regcprop.c (validate_value_data): Same.
25792 * sched-rgn.c (make_pass_sched_fusion): Same.
25793 * stmt.c (check_unique_operand_names): Same.
25794 * targhooks.c (default_target_option_pragma_parse): Same.
25795 * tlink.c (recompile_files): Same.
25796 * toplev.c (process_options): Same.
25797 (do_compile): Same.
25798 * trans-mem.c (diagnose_tm_1): Same.
25799 (ipa_tm_scan_irr_block): Same.
25800 (ipa_tm_diagnose_transaction): Same.
25801 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
25802 format a tree code name in a diagnostic.
25803 (verify_types_in_gimple_min_lval): Same.
25804 (verify_types_in_gimple_reference): Same.
25805 (verify_gimple_call): Same.
25806 (verify_gimple_assign_unary): Same.
25807 (verify_gimple_assign_binary): Same.
25808 (verify_gimple_assign_ternary): Same.
25809 (verify_gimple_assign_single): Same.
25810 (verify_gimple_switch): Same.
25811 (verify_gimple_label): Same.
25812 (verify_gimple_phi): Same.
25813 (verify_gimple_in_seq): Same.
25814 (verify_eh_throw_stmt_node): Same.
25815 (collect_subblocks): Same.
25816 (gimple_verify_flow_info): Same.
25817 (do_warn_unused_result): Same.
25818 * tree-inline.c (expand_call_inline): Same.
25819 * tree-into-ssa.c (update_ssa): Same.
25820 * tree.c (tree_int_cst_elt_check_failed): Same.
25821 (tree_vec_elt_check_failed): Same.
25822 (omp_clause_operand_check_failed): Same.
25823 (verify_type_variant): Same.
25824 (verify_type): Same.
25825 * value-prof.c (verify_histograms): Same.
25826 * varasm.c (assemble_start_function): Same.
25827
25828 2019-05-16 Martin Sebor <msebor@redhat.com>
25829
25830 * config/i386/i386-expand.c (get_element_number): Quote keywords
25831 and other internal names in diagnostics. Adjust other diagnostic
25832 formatting issues noted by -Wformat-diag.
25833 * config/i386/i386-features.c
25834 (ix86_mangle_function_version_assembler_name): Same.
25835 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
25836 * config/i386/i386.c (ix86_function_type_abi): Same.
25837 (ix86_function_ms_hook_prologue): Same.
25838 (classify_argument): Same.
25839 (ix86_expand_prologue): Same.
25840 (ix86_md_asm_adjust): Same.
25841 (ix86_memmodel_check): Same.
25842
25843 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
25844
25845 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
25846 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
25847 and fpxx modes.
25848
25849 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
25850
25851 PR target/90497
25852 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
25853 intrinsics without SSE/SSE2/SSSE3.
25854 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
25855 check.
25856 (*mmx_uavgv8qi3): Likewise.
25857
25858 2019-05-17 Richard Biener <rguenther@suse.de>
25859
25860 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
25861 VEC_PERM_EXPR as __VEC_PERM with -gimple.
25862
25863 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
25864
25865 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
25866 vec_sldw insn pattern.
25867
25868 2019-05-17 Richard Biener <rguenther@suse.de>
25869
25870 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
25871
25872 2019-05-17 Martin Liska <mliska@suse.cz>
25873
25874 PR driver/90496
25875 * toplev.c (output_stack_usage): With LTO and sanitizer it
25876 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
25877 has no file location.
25878
25879 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25880
25881 PR c++/90484
25882 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
25883 sz0 is equal to sz1, instead return false in that case.
25884
25885 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
25886 has non-constant expression, force sctx.lane and use two
25887 argument IFN_GOMP_SIMD_LANE instead of single argument.
25888 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
25889 two argument IFN_GOMP_SIMD_LANE without lhs.
25890 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
25891 member.
25892 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
25893 Define.
25894 (LOOP_REQUIRES_VERSIONING): Or in
25895 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
25896 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
25897 simd_if_cond.
25898 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
25899 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
25900 from simd if clause if needed.
25901
25902 2019-05-16 Richard Biener <rguenther@suse.de>
25903
25904 * tree-affine.c (expr_to_aff_combination): New function split
25905 out from...
25906 (tree_to_aff_combination): ... here.
25907 (aff_combination_expand): Avoid building a GENERIC tree.
25908
25909 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
25910
25911 * cgraphunit.c (cgraph_node::expand_thunk): Remove
25912 assemble_start_function and assemble_end_function calls.
25913 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
25914 assemble_start_function and assemble_end_function.
25915 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
25916 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
25917 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
25918 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
25919 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
25920 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
25921 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
25922 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
25923 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25924 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25925 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
25926 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
25927 Likewise.
25928 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
25929 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
25930 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
25931 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
25932 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25933 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25934 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
25935 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
25936 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25937 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25938 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25939 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25940 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
25941 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
25942 Likewise.
25943 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25944 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25945 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
25946
25947 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
25948
25949 * tree-ssa-alias.c (alias_stats): Add
25950 aliasing_component_refs_p_may_alias and
25951 aliasing_component_refs_p_no_alias.
25952 (dump_alias_stats): Print aliasing_component_refs_p stats.
25953 (aliasing_component_refs_p): Update stats.
25954
25955 2019-05-16 Martin Liska <mliska@suse.cz>
25956
25957 PR lto/90500
25958 * multiple_target.c (expand_target_clones): Do not allow
25959 target_clones being used with a symbol that is an alias.
25960
25961 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
25962
25963 PR tree-optimization/90394
25964 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
25965 positives rather than ICE for cases where (code2 == NE_EXPR
25966 && code1 == BIT_AND_EXPR).
25967
25968 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25969
25970 PR fortran/90329
25971 * tree-core.h (struct tree_decl_common): Document
25972 decl_nonshareable_flag for PARM_DECLs.
25973 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
25974 * calls.c (expand_call): Don't try tail call if caller
25975 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
25976 passed on the stack and callee needs to pass any arguments on the
25977 stack.
25978 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
25979 else if instead of series of mutually exclusive ifs. Handle
25980 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
25981 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
25982
25983 * lto-streamer.h (LTO_major_version): Bump to 9.
25984
25985 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
25986
25987 PR tree-optimization/90106
25988 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
25989 new parameter as new internal function call, also move it to new
25990 basic block.
25991 (use_internal_fn): Pass internal function call to
25992 shrink_wrap_one_built_in_call_with_conds.
25993
25994 2019-05-15 Jakub Jelinek <jakub@redhat.com>
25995
25996 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
25997 max_vf to 1.
25998 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
25999 safelen_int and set loop->dont_vectorize.
26000
26001 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26002
26003 PR target/89021
26004 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26005 SSE/SSE2/SSSE3.
26006 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26007 Likewise.
26008 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26009 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26010 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26011 is defined.
26012
26013 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26014
26015 PR target/89021
26016 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26017 define_insn_and_split to support SSE emulation.
26018 (*vec_extractv2sf_0): Likewise.
26019 (*vec_extractv2sf_1): Likewise.
26020 (*vec_extractv2si_0): Likewise.
26021 (*vec_extractv2si_1): Likewise.
26022 (*vec_extractv2si_zext_mem): Likewise.
26023 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26024 (vec_extractv2sf_1 splitter): Likewise.
26025 (vec_extractv2sfsf): Likewise.
26026 (vec_setv2si): Likewise.
26027 (vec_extractv2si_1 splitter): Likewise.
26028 (vec_extractv2sisi): Likewise.
26029 (vec_setv4hi): Likewise.
26030 (vec_extractv4hihi): Likewise.
26031 (vec_setv8qi): Likewise.
26032 (vec_extractv8qiqi): Likewise.
26033 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26034 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26035 (vec_extractv2sisi): Likewise.
26036 (vec_extractv4hihi): Likewise.
26037 (vec_extractv8qiqi): Likewise.
26038 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26039 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26040 (vec_initv2sisi): Likewise.
26041 (vec_initv4hihi): Likewise.
26042 (vec_initv8qiqi): Likewise.
26043 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26044 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26045 (vec_setv4hi): Likewise.
26046 (vec_setv8qi): Likewise.
26047
26048 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26049
26050 PR target/89021
26051 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26052 TARGET_MMX_WITH_SSE.
26053 (MMXMODE:*mov<mode>_internal): Likewise.
26054 (MMXMODE:movmisalign<mode>): Likewise.
26055
26056 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26057
26058 PR target/89021
26059 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26060 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26061 (sse2_cvtpd2pi): Ditto.
26062 (sse2_cvttpd2pi): Ditto.
26063 (*vec_concatv2sf_sse4_1): Ditto.
26064 (*vec_concatv2sf_sse): Ditto.
26065 (*vec_concatv2si_sse4_1): Ditto.
26066 (*vec_concatv2si): Ditto.
26067 (*vec_concatv4si_0): Ditto.
26068 (*vec_concatv2di_0): Ditto.
26069
26070 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26071
26072 PR target/89021
26073 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26074
26075 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26076
26077 PR target/89021
26078 * config/i386/sse.md (ssse3_palignrdi): Changed to
26079 define_insn_and_split to support SSE emulation.
26080
26081 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26082
26083 PR target/89021
26084 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26085
26086 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26087
26088 PR target/89021
26089 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26090 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26091 SSE emulation.
26092
26093 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26094
26095 PR target/89021
26096 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26097 or TARGET_MMX_WITH_SSE.
26098 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26099
26100 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26101
26102 PR target/89021
26103 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26104
26105 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26106
26107 PR target/89021
26108 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26109 Changed to define_insn_and_split to support SSE emulation.
26110
26111 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26112
26113 PR target/89021
26114 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26115 Changed to define_insn_and_split to support SSE emulation.
26116
26117 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26118
26119 PR target/89021
26120 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26121 (*mmx_<emms>): This.
26122 (mmx_<emms>): New expander.
26123
26124 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26125
26126 PR target/89021
26127 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26128 support.
26129 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26130
26131 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26132
26133 PR target/89021
26134 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26135
26136 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26137
26138 PR target/89021
26139 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26140
26141 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26142
26143 PR target/89021
26144 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26145 TARGET_MMX_WITH_SSE.
26146 (*mmx_uavgv4hi3): Add SSE emulation.
26147
26148 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26149
26150 PR target/89021
26151 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26152 and TARGET_MMX_WITH_SSE.
26153 (*mmx_uavgv8qi3): Add SSE emulation.
26154
26155 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26156
26157 PR target/89021
26158 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26159 maskmovdqu for __MMX_WITH_SSE__.
26160
26161 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26162
26163 PR target/89021
26164 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26165 TARGET_MMX and TARGET_MMX_WITH_SSE.
26166 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26167
26168 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26169
26170 PR target/89021
26171 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26172 define_insn_and_split to support SSE emulation.
26173
26174 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26175
26176 PR target/89021
26177 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26178 and TARGET_MMX_WITH_SSE.
26179 (mmx_<code>v8qi3): Likewise.
26180 (smaxmin:<code>v4hi3): New.
26181 (umaxmin:<code>v8qi3): Likewise.
26182 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26183 (umaxmin:*mmx_<code>v8qi3): Likewise.
26184
26185 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26186
26187 PR target/89021
26188 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26189 TARGET_MMX_WITH_SSE.
26190 (*mmx_pinsrw): Add SSE emulation.
26191
26192 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26193
26194 PR target/89021
26195 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26196
26197 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26198
26199 PR target/89021
26200 * config/i386/sse.md (sse_cvtpi2ps): Changed to
26201 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26202 SSE emulation.
26203
26204 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26205
26206 PR target/89021
26207 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26208 (sse_cvttps2pi): Likewise.
26209
26210 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26211
26212 PR target/89021
26213 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26214 TARGET_MMX_WITH_SSE.
26215 (mmx_pshufw_1): Add SSE emulation.
26216 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26217 TARGET_MMX_WITH_SSE to support SSE emulation.
26218
26219 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26220
26221 PR target/89021
26222 * config/i386/constraints.md (Yw): New constraint.
26223 * config/i386/mmx.md (*vec_dupv2si): Changed to
26224 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26225 support SSE emulation.
26226
26227 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26228
26229 PR target/89021
26230 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26231 TARGET_MMX_WITH_SSE.
26232 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26233 support.
26234 (mmx_gt<mode>3): Likewise.
26235
26236 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26237
26238 PR target/89021
26239 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26240 TARGET_MMX_WITH_SSE. Add SSE support.
26241
26242 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26243
26244 PR target/89021
26245 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26246 TARGET_MMX_WITH_SSE.
26247 (any_logic:<code><mode>3): New.
26248 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26249 Add SSE support.
26250
26251 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26252
26253 PR target/89021
26254 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26255 TARGET_MMX_WITH_SSE. Add SSE emulation.
26256 (mmx_<shift_insn><mode>3): Likewise.
26257 (ashr<mode>3): New.
26258 (<shift_insn><mode>3): Likewise.
26259
26260 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26261
26262 PR target/89021
26263 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26264 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
26265
26266 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26267
26268 PR target/89021
26269 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26270 TARGET_MMX_WITH_SSE.
26271 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26272 SSE support.
26273
26274 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26275
26276 PR target/89021
26277 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26278 TARGET_MMX_WITH_SSE.
26279 (mulv4hi3): New.
26280 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26281 support.
26282
26283 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26284
26285 PR target/89021
26286 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
26287 (plusminus:mmx_<plusminus_insn><mode>3): Check
26288 TARGET_MMX_WITH_SSE.
26289 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
26290 (<plusminus_insn><mode>3): New.
26291 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
26292 (*mmx_<plusminus_insn><mode>3): Likewise.
26293
26294 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26295
26296 PR target/89021
26297 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
26298 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
26299 prototype.
26300 * config/i386/mmx.m (mmx_punpckhbw): Changed to
26301 define_insn_and_split to support SSE emulation.
26302 (mmx_punpcklbw): Likewise.
26303 (mmx_punpckhwd): Likewise.
26304 (mmx_punpcklwd): Likewise.
26305 (mmx_punpckhdq): Likewise.
26306 (mmx_punpckldq): Likewise.
26307
26308 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26309 Uros Bizjak <ubizjak@gmail.com>
26310
26311 PR target/89021
26312 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
26313 New function.
26314 (ix86_split_mmx_pack): Likewise.
26315 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
26316 New prototype.
26317 (ix86_split_mmx_pack): Likewise.
26318 * config/i386/i386.md (mmx_isa): New.
26319 (enabled): Also check mmx_isa.
26320 * config/i386/mmx.md (any_s_truncate): New code iterator.
26321 (s_trunsuffix): New code attr.
26322 (mmx_packsswb): Removed.
26323 (mmx_packssdw): Likewise.
26324 (mmx_packuswb): Likewise.
26325 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
26326 MMX packsswb/packuswb with SSE2.
26327 (mmx_packssdw): Likewise.
26328 * config/i386/predicates.md (register_mmxmem_operand): New.
26329
26330 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26331
26332 PR target/89021
26333 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26334 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
26335 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
26336 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
26337 (ix86_vector_mode_supported_p): Likewise.
26338 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
26339
26340 2019-05-15 Martin Liska <mliska@suse.cz>
26341
26342 PR middle-end/90478
26343 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26344 Check for overflow.
26345
26346 2019-05-15 Richard Biener <rguenther@suse.de>
26347
26348 * tree-into-ssa.c (pass_build_ssa::execute): Run
26349 update_address_taken before going into SSA.
26350
26351 2019-05-15 Richard Biener <rguenther@suse.de>
26352
26353 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
26354 as __BIT_FIELD_REF with type with -gimple.
26355
26356 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
26357
26358 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
26359 semantically equivalent branches (left over after prior refactorings).
26360
26361 2019-05-15 Richard Biener <rguenther@suse.de>
26362
26363 PR tree-optimization/88828
26364 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
26365 bogus check.
26366
26367 2019-05-14 Richard Biener <rguenther@suse.de>
26368
26369 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
26370 as __VIEW_CONVERT with -gimple.
26371
26372 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26373
26374 PR target/82920
26375 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
26376 Darwin.
26377
26378 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26379
26380 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
26381 define_split to become a define_insn_and_split.
26382
26383 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
26384
26385 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
26386 arguments.
26387 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
26388 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
26389 (sibcall_epilogue): Adjust.
26390 (epilogue): Adjust.
26391
26392 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26393
26394 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
26395 to unsupported ones.
26396 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
26397 * config.host: Likewise.
26398 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
26399 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
26400 __svr4__]: Remove "brand" fallback.
26401 [!KSTAT_DATA_STRING]: Remove.
26402 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
26403 to *-*-solaris2*.
26404 (comdat_group): Likewise.
26405 (set_have_as_tls): Likewise.
26406 (gcc_cv_target_dl_iterate_phdr): Likewise.
26407 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
26408 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
26409 * configure: Regenerate.
26410 * doc/install.texi: Simplify Solaris target triplets.
26411 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
26412 (Specific, *-*-solaris2*): Document Solaris 10 removal.
26413 Remove Solaris 10 references.
26414 Remove obsolete Solaris bug reference.
26415 (Specific, sparc-sun-solaris2.10): Remove.
26416
26417 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
26418
26419 * config/i386/i386.md (any_div): New code iterator.
26420 (paired_mod): New code attribute.
26421 (sgnprefix): Handle DIV and UDIV RTXes.
26422 (u): Ditto.
26423 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
26424 and udivmod<mode>4 patterns using any_div code iterator.
26425 (divmod splitters): Macroize splitters using any_div code iterator.
26426 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
26427 (*udivmodsi4_pow2_zext_2): Ditto.
26428 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
26429 and *udivmod<mode>4_noext patterns using any_div code iterator.
26430 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
26431 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
26432 patterns using any_div code iterator.
26433 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
26434 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
26435 patterns using any_div code iterator.
26436 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
26437 udivmodhiqi3 patterns using any_extend code iterator.
26438
26439 2019-05-14 Richard Biener <rguenther@suse.de>
26440 H.J. Lu <hongjiu.lu@intel.com>
26441
26442 PR tree-optimization/88828
26443 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
26444 permuting in a single non-constant element not extracted
26445 from a vector.
26446
26447 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
26448
26449 * internal-fn.def (SIGNBIT): New.
26450 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
26451 defined.
26452 (signbitv4sf2): Likewise.
26453
26454 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
26455
26456 PR target/90357
26457 * config/mips/mips.c (mips_split_move): Skip forward SRC into
26458 next insn when the SRC reg is dead.
26459
26460 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
26461
26462 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
26463 (alloc_cand_and_find_basis): Ditto.
26464 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
26465 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
26466 (create_add_imm_cand, slsr_process_cast): Ditto.
26467 (slsr_process_copy, replace_mult_candidate): Ditto.
26468 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
26469 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
26470 (pass_strength_reduction::execute): Init the first NULL element.
26471
26472 2019-05-13 Nathan Sidwell <nathan@acm.org>
26473
26474 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
26475 (run_attempt): Reformat line break.
26476
26477 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
26478
26479 PR target/90418
26480 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
26481 data registers in sibcall epilogues.
26482 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26483
26484 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
26485
26486 PR target/89221
26487 * configure.ac (--enable-frame-pointer):
26488 Disable by default for cygwin and mingw.
26489 * configure: Regenerate.
26490
26491 2019-05-13 Nathan Sidwell <nathan@acm.org>
26492
26493 * dwarf2out.c (breakout_comdat_types): Move comment to correct
26494 piece of code.
26495 (const_ok_for_output_1): Balance parens around #if/#else/#endif
26496 (gen_member_die): Move abstract origin check earlier. Only VARs
26497 can be static_inline_p. Simplify splicing control flow.
26498
26499 2019-05-13 Richard Biener <rguenther@suse.de>
26500
26501 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
26502 VIEW_CONVERT_EXPR.
26503 (vect_build_slp_tree_1): Likewise.
26504
26505 2019-05-13 Richard Biener <rguenther@suse.de>
26506
26507 PR tree-optimization/90402
26508 * tree-if-conv.c (tree_if_conversion): Value number only
26509 the loop body by making the latch an exit of the region
26510 as well.
26511 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
26512 processing PHIs.
26513 (do_rpo_vn): Deal with multiple edges into the entry block
26514 that are not backedges inside the region by skipping PHIs
26515 of the entry block.
26516
26517 2019-05-13 Richard Biener <rguenther@suse.de>
26518
26519 PR tree-optimization/90316
26520 * tree-ssa-pre.c (insert_aux): Fold into ...
26521 (insert): ... this function. Use a RPO walk to reduce the
26522 number of required iterations.
26523
26524 2019-05-13 Martin Liska <mliska@suse.cz>
26525
26526 PR tree-optimization/90416
26527 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
26528 string instead of passing the second part as va_arg argument.
26529
26530 2019-05-13 Martin Liska <mliska@suse.cz>
26531
26532 PR gcov-profile/90380
26533 * gcov.c (handle_cycle): Do not support zero cycle count,
26534 it should not be possible.
26535 (path_contains_zero_cycle_arc): New function.
26536 (circuit): Ignore zero cycle arc counts.
26537
26538 2019-05-13 Martin Liska <mliska@suse.cz>
26539
26540 PR gcov-profile/90380
26541 * gcov.c (enum loop_type): Remove the enum and
26542 the operator.
26543 (handle_cycle): Assert that we should not reach
26544 a negative count.
26545 (circuit): Use loop_found instead of a tri-state loop_type.
26546 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
26547 happen.
26548
26549 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26550
26551 PR target/82920
26552 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
26553 (ix86_output_indirect_branch_via_reg): Use output mechanism
26554 accounting for __USER_LABEL_PREFIX__.
26555 (ix86_output_indirect_branch_via_push): Likewise.
26556 (ix86_output_function_return): Likewise.
26557 (ix86_output_indirect_function_return): Likewise.
26558
26559 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
26560
26561 * doc/md.texi: Document use of code attributes in rtx patterns.
26562 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
26563 * read-rtl.c (find_code): Split out search loops into...
26564 (maybe_find_code): ...this new function.
26565 (check_code_iterator): Make the error message more informative.
26566 (check_code_attribute): New function.
26567 (rtx_reader::rtx_alloc_for_name): Likewise.
26568 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
26569 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
26570 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
26571 <max_opp> directly as an rtx code instead of via a match_operator.
26572 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
26573 (<su>abd<mode>_3): Update accordingly.
26574
26575 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
26576
26577 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
26578 is given, print the state of the EH "save world" computation for
26579 Darwin.
26580
26581 2019-05-11 Jakub Jelinek <jakub@redhat.com>
26582
26583 PR c++/59813
26584 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
26585 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
26586
26587 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
26588
26589 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
26590 Use pinsrd for TARGET_SSE4_1.
26591 * config/i386/sse.md (movdi_to_sse): Ditto.
26592
26593 2019-05-10 Richard Biener <rguenther@suse.de>
26594
26595 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
26596 (do_rpo_vn): Initialize next_value_id.
26597
26598 2019-05-10 Martin Liska <mliska@suse.cz>
26599
26600 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26601 Fix plural form.
26602
26603 2019-05-10 Jakub Jelinek <jakub@redhat.com>
26604
26605 PR tree-optimization/90385
26606 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
26607 arguments of the exit phis.
26608
26609 PR c++/90383
26610 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
26611 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
26612 id->do_not_fold.
26613 (copy_tree_body_r): Likewise.
26614 (copy_fn): Set id.do_not_fold to true.
26615
26616 2019-05-10 Martin Liska <mliska@suse.cz>
26617
26618 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
26619 Reapply changes from r269790.
26620
26621 2019-05-10 Martin Liska <mliska@suse.cz>
26622
26623 PR middle-end/90340
26624 * doc/invoke.texi: New params.
26625 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
26626 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
26627 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
26628 Use it.
26629 * tree-switch-conversion.h (struct jump_table_cluster):
26630 Likewise.
26631
26632 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
26633
26634 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
26635
26636 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
26637
26638 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
26639
26640 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
26641
26642 PR rtl-optimization/88879
26643 * sel-sched.c (sel_target_adjust_priority): Remove assert.
26644
26645 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
26646
26647 PR target/90405
26648 * config/arm/arm.c (callee_saved_reg_p): Move before
26649 thumb_find_work_register.
26650 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
26651 thumb_find_work_register. Only call df_get_live_out once.
26652 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
26653 (thumb_find_work_register): Use
26654 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
26655 algorithms to locate a spare call clobbered reg.
26656
26657 2019-05-09 Martin Liska <mliska@suse.cz>
26658
26659 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
26660 and MAX_EXPR in GIMPLE FE format.
26661
26662 2019-05-09 Martin Liska <mliska@suse.cz>
26663
26664 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
26665 * gimple-pretty-print.c (dump_gimple_bb_header):
26666 Dump BB count.
26667 (pp_cfg_jump): Dump edge probability.
26668 * profile-count.c (profile_quality_as_string): Simplify
26669 with a static array.
26670 (parse_profile_quality): New function.
26671 (profile_count::dump): Simplify with a static array.
26672 (profile_count::from_gcov_type): Add new argument.
26673 * profile-count.h (parse_profile_quality): Likewise.
26674 * predict.h (set_hot_bb_threshold): New.
26675 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
26676 New param.
26677 * predict.c (get_hot_bb_threshold): Set from the new param.
26678 (set_hot_bb_threshold): New.
26679
26680 2019-05-09 Richard Biener <rguenther@suse.de>
26681
26682 PR tree-optimization/90395
26683 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
26684 rewrite vector stores that throw internally.
26685
26686 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
26687
26688 * cif-code.def (CHKP): Remove.
26689
26690 PR target/89221
26691 * configure.ac (--enable-frame-pointer): Disable by default for
26692 GNU systems.
26693 * configure: Regenerate.
26694
26695 2019-05-09 Alan Modra <amodra@gmail.com>
26696
26697 PR target/89271
26698 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
26699 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
26700 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
26701 cost for general <-> vsx when direct moves are available.
26702 Cost union classes at minimal cost for any reg in the class.
26703 Correct calculation for moves between vsx, float, and altivec.
26704 Don't return a low cost for moves between special regs. Don't
26705 use hard coded register numbers.
26706 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
26707 (rs6000_ira_change_pseudo_allocno_class): New function.
26708 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
26709 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
26710 alternatives.
26711 (movsi_internal1): Don't disparage vector alternatives.
26712 (mov<mode>_internal): Likewise, excepting alternative that
26713 will be split.
26714 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
26715 we <- b alternative.
26716
26717 2019-05-08 Jakub Jelinek <jakub@redhat.com>
26718
26719 PR c++/59813
26720 PR tree-optimization/89060
26721 * tree-ssa-live.h (live_vars_map): New typedef.
26722 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
26723 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
26724 (struct compute_live_vars_data): New type.
26725 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
26726 live_vars_at_stmt, destroy_live_vars): New functions.
26727 * tree-tailcall.c: Include tree-ssa-live.h.
26728 (live_vars, live_vars_vec): New global variables.
26729 (find_tail_calls): Perform variable life analysis before punting.
26730 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
26731 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
26732 member.
26733 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
26734 Perform variable life analysis to select variables that really need
26735 clobbers added.
26736 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
26737 instead set id->eh_landing_pad_dest and assert it is the same.
26738 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
26739
26740 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
26741 Richard Earnshaw <rearnsha@arm.com>
26742
26743 PR target/88167
26744 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
26745 function.
26746 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
26747 (thumb1_compute_save_core_reg_mask): Don't force a spare work
26748 register if both the epilogue and prologue can use call-clobbered
26749 regs.
26750 (thumb1_unexpanded_epilogue): Use
26751 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
26752 picking temporaries for restoring high regs to match that of the
26753 prologue where possible.
26754 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
26755 the list of work registers. Detect if the return address is still live
26756 at the end of the prologue and avoid using it for a work register if so.
26757 If the return address is not live, add LR to the list of pushable regs
26758 after the first pass.
26759
26760 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
26761
26762 PR tree-optimization/90078
26763 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
26764 (INFTY): Increase the value for infinite cost.
26765 (struct comp_cost): Promote type of members to int64_t.
26766 (infinite_cost): Don't set complexity in initialization.
26767 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
26768 overflows to infinite_cost.
26769 (adjust_setup_cost): Promote type of parameter and cost computation
26770 to int64_t.
26771 (struct ainc_cost_data, struct iv_ca): Promote type of member to
26772 int64_t.
26773 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
26774 cost computation to int64_t.
26775 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
26776 int64_t's format specifier in dump.
26777
26778 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
26779
26780 PR tree-optimization/90240
26781 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
26782 with respect to scaling factor pre-computed for each basic block.
26783 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
26784 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
26785 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
26786 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
26787 live range for array of loop's basic blocks. Cleanup aux field of
26788 loop's basic blocks.
26789
26790 2019-05-08 Jakub Jelinek <jakub@redhat.com>
26791
26792 PR tree-optimization/90356
26793 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
26794
26795 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
26796
26797 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
26798 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
26799 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
26800 (ix86_handle_option): Handle -mavx512bf16.
26801 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
26802 to extra_headers.
26803 * config/i386/avx512bf16vlintrin.h: New.
26804 * config/i386/avx512bf16intrin.h: New.
26805 * config/i386/cpuid.h (bit_AVX512BF16): New.
26806 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
26807 * config/i386/i386-builtin-types.def: Add new types.
26808 * config/i386/i386-builtin.def: Add new builtins.
26809 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26810 __AVX512BF16__.
26811 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
26812 (ix86_option_override_internal): Handle BF16.
26813 (ix86_valid_target_attribute_inner_p): Ditto.
26814 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
26815 * config/i386/i386-builtin.c (enum processor_features): Add
26816 F_AVX512BF16.
26817 (static const _isa_names_table isa_names_table): Ditto.
26818 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
26819 (PTA_AVX512BF16): Ditto.
26820 * config/i386/i386.opt: Add -mavx512bf16.
26821 * config/i386/immintrin.h: Include avx512bf16intrin.h
26822 and avx512bf16vlintrin.h.
26823 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
26824 avx512f_cvtneps2bf16_<mode><mask_name>,
26825 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
26826 * config/i386/subst.md (mask_half): Add new subst.
26827 * doc/invoke.texi: Document -mavx512bf16.
26828
26829 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26830
26831 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
26832 Delete declaration.
26833 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
26834 (rs6000_debug_legitimize_reload_address): Delete.
26835 (rs6000_legitimize_reload_address_ptr): Delete.
26836 (rs6000_option_override_internal): Adjust.
26837 (mem_operand_gpr): Adjust comment.
26838 (legitimate_lo_sum_address_p): Ditto.
26839 (rs6000_legitimize_reload_address): Delete.
26840 (rs6000_debug_legitimize_reload_address): Delete.
26841 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
26842
26843 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
26844
26845 PR target/89765
26846 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26847 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
26848 to compute vector element selector for both constant and variable
26849 operands.
26850
26851 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
26852
26853 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
26854 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
26855 ashrdi3_cvt using SWI48 mode iterator.
26856
26857 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26858
26859 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
26860 (aarch64_<su>abd<mode>_3): Likewise.
26861 (*aarch64_<su>abd<mode>_3): New define_insn.
26862 (<sur>sad<vsi2qi>): New define_expand.
26863 * config/aarch64/iterators.md: Added MAX_OPP attribute.
26864 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
26865 (build_vect_cond_expr): Likewise.
26866
26867 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
26868
26869 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
26870 clobbers outside of accessible_reg_set.
26871 * config/i386/i386.c (ix86_conditional_register_usage):
26872 Disable register sets by clearing corresponding bits in
26873 accessible_reg_set. Do not set corresponding bits in fixed_regs,
26874 call_used_regs and don't clear corresponding reg_names array members.
26875
26876 2019-05-07 Richard Biener <rguenther@suse.de>
26877
26878 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
26879 not specified still compute a comp_vectype for invariant
26880 compares.
26881
26882 2019-05-07 Richard Biener <rguenther@suse.de>
26883
26884 PR tree-optimization/90316
26885 * tree-ssa-pre.c (translate_vuse_through_block): When
26886 same_valid is NULL do not bother to search for a virtual
26887 PHI continuation.
26888 (phi_translate_1): When operands changed we cannot keep
26889 the same value-number so do not bother to ask whether
26890 that's possible from translate_vuse_through_block.
26891
26892 2019-05-07 Martin Liska <mliska@suse.cz>
26893
26894 * bitmap.c (bitmap_register): Come up with
26895 alloc_descriptor_max_uid and assign it for
26896 a new bitmap.
26897 (register_overhead): Use get_descriptor as
26898 a descriptor.
26899 (release_overhead): New.
26900 (bitmap_elem_to_freelist): Call it.
26901 (bitmap_elt_clear_from): Likewise.
26902 (bitmap_obstack_free): Likewise.
26903 (bitmap_move): Sensitively release memory.
26904 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
26905 (bitmap_initialize): Initialize alloc_descriptor to zero.
26906 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
26907
26908 2019-05-07 Richard Biener <rguenther@suse.de>
26909
26910 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
26911 we build a SLP node. Remove max_size and limiting.
26912 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
26913
26914 2019-05-07 Richard Biener <rguenther@suse.de>
26915
26916 PR tree-optimization/90316
26917 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
26918 limit by reference.
26919 (walk_non_aliased_vuses): Take walking limit argument.
26920 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
26921 walking if it is reached instead of just counting.
26922 (get_continuation_for_phi): Likewise.
26923 (walk_non_aliased_vuses): Likewise, instead of leaving counter
26924 limiting to the callback.
26925 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
26926 (vn_reference_lookup_3): Likewise.
26927 (vn_reference_lookup_pieces): Likewise.
26928 (vn_reference_lookup): Likewise.
26929 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
26930 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
26931 (avail_exprs_stack::lookup_avail_expr): Likewise.
26932
26933 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
26934
26935 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
26936 for comparaible types in the second direction even if first one
26937 hits incomparable type.
26938
26939 2019-05-07 Richard Biener <rguenther@suse.de>
26940
26941 PR lto/90369
26942 * lto-wrapper.c (debug_objcopy): Use the original filename
26943 including archive offset for the filename used for -save-temps.
26944
26945 2019-05-07 Li Jia He <helijia@linux.ibm.com>
26946
26947 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
26948 detection.
26949
26950 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
26951 Hongtao Liu <hongtao.liu@intel.com>
26952
26953 PR target/89750
26954 PR target/86444
26955 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
26956 Modified, original implementation isn't correct.
26957
26958 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26959
26960 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
26961 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
26962 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
26963 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
26964 (FRAME_POINTER_REGNUM): Change numbering.
26965 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
26966 (alt_reg_names): Adjust.
26967 (rs6000_conditional_register_usage): Don't mark hard register 64 as
26968 fixed.
26969 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26970 (DWARF_FRAME_REGISTERS): Delete.
26971 (DWARF2_FRAME_REG_OUT): Fix whitespace.
26972 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26973 Adjust.
26974 (REG_ALLOC_ORDER): Adjust.
26975 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
26976 (REG_CLASS_CONTENTS): Adjust.
26977 (RETURN_ADDR_RTX): Change comment.
26978 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
26979 instead of 67.
26980 (REGISTER_NAMES): Adjust.
26981 (ADDITIONAL_REGISTER_NAMES): Adjust.
26982 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
26983
26984 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26985
26986 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
26987 Delete.
26988 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26989 (DWARF_FRAME_REGISTERS): Adjust.
26990 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26991 Adjust.
26992 (REG_ALLOC_ORDER): Adjust.
26993 (enum reg_class): Delete SPR_REGS.
26994 (REG_CLASS_NAMES): Delete SPR_REGS.
26995 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
26996 (REGISTER_NAMES): Adjust.
26997 (ADDITIONAL_REGISTER_NAMES): Adjust.
26998 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
26999 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27000 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27001 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27002 (htm_spr_regno): Delete.
27003 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27004 argument.
27005 (rs6000_dbx_register_number): Adjust.
27006
27007 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27008
27009 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27010
27011 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27012
27013 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27014 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27015
27016 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27017
27018 PR tree-optimization/88709
27019 PR tree-optimization/90271
27020 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27021 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27022 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27023 variable.
27024 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27025 of the store merging group is larger than
27026 PARAM_STORE_MERGING_MAX_SIZE parameter.
27027 (split_group): Add bzero_first argument. If set, always emit first
27028 the first store which must be = {} of the whole area and then for the
27029 rest of the stores consider all zero bytes as paddings.
27030 (imm_store_chain_info::output_merged_store): Check if first store
27031 is = {} of the whole area and if yes, determine which setting of
27032 bzero_first for split_group gives smaller number of stores. Adjust
27033 split_group callers.
27034 (lhs_valid_for_store_merging_p): Allow decls.
27035 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27036 no elts.
27037 (pass_store_merging::process_store): Likewise.
27038
27039 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27040
27041 PR target/89424
27042 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27043 handling of V1TImode.
27044
27045 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27046
27047 PR target/89221
27048 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27049 and enable_frame_pointer ...
27050 * configure.ac: ... here. Update help strings for
27051 --enable-frame-pointer.
27052 * configure: Regenerate.
27053 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27054 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27055 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27056 (USE_X86_64_FRAME_POINTER): Ditto.
27057
27058 2019-05-06 Martin Liska <mliska@suse.cz>
27059
27060 * config.gcc: Append to target_gtfiles and fix indentation.
27061
27062 2019-05-06 Richard Biener <rguenther@suse.de>
27063
27064 PR tree-optimization/90358
27065 * tree-vect-stmts.c (get_group_load_store_type): Properly
27066 detect unused upper half of load.
27067 (vectorizable_load): Likewise.
27068
27069 2019-05-06 Richard Biener <rguenther@suse.de>
27070
27071 PR tree-optimization/88828
27072 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27073 (simplify_vector_constructor): ...here. Handle constants in
27074 the constructor.
27075
27076 2019-05-06 Richard Biener <rguenther@suse.de>
27077
27078 PR tree-optimization/90328
27079 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27080 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27081 is valid in the loop nest before using it.
27082 (initialize_data_dependence_relation): Adjust.
27083 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27084 loop as loop-nest to dr_may_alias_p.
27085
27086 2019-05-06 Richard Biener <rguenther@suse.de>
27087
27088 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27089
27090 2019-05-06 Richard Biener <rguenther@suse.de>
27091
27092 PR tree-optimization/90316
27093 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27094 compute target on demand.
27095 (get_continuation_for_phi): Remove code walking stmts to
27096 get to a target virtual operand which could end up being
27097 quadratic.
27098
27099 2019-05-06 Martin Liska <mliska@suse.cz>
27100
27101 PR sanitizer/90312
27102 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27103 when -mabi is selected to a non-default version.
27104
27105 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27106 Martin Liska <mliska@suse.cz>
27107
27108 * Makefile.in: Add lto-dump.texi.
27109 * cgraph.h: Add new functions get_visibility_string and
27110 get_symtab_type_string.
27111 * doc/gcc.texi: Include lto-dump section.
27112 * doc/lto-dump.texi: New file.
27113 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27114 (parse_dump_option): Factor out this function.
27115 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27116 (parse_dump_option): Export the function.
27117 * symtab.c (symtab_node::get_visibility_string): New function.
27118 (symtab_node::get_symtab_type_string): Likewise.
27119
27120 2019-05-06 Martin Liska <mliska@suse.cz>
27121
27122 * config/i386/i386-builtins.c: New file.
27123 * config/i386/i386-builtins.h: New file.
27124 * config/i386/i386-expand.c: New file.
27125 * config/i386/i386-expand.h: New file.
27126 * config/i386/i386-features.c: New file.
27127 * config/i386/i386-features.h: New file.
27128 * config/i386/i386-options.c: New file.
27129 * config/i386/i386-options.h: New file.
27130 * config.gcc: Add new files into extra_objs and
27131 target_gtfiles.
27132 * config/i386/i386.c: Split content of the file
27133 into newly introduced files.
27134 * config/i386/i386.h: Declare common variables
27135 and macros.
27136 * config/i386/t-i386: Define dependencies for new files.
27137
27138 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27139
27140 PR target/89400
27141 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27142 Restrict 'all' variant to 32-bit configurations.
27143 (unaligned_loadhiu): Likewise.
27144 (unaligned_storehi): Likewise.
27145 (unaligned_storesi): Likewise.
27146 (unaligned_loadhis): Disable when compiling for thumb1.
27147
27148 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27149
27150 PR tree-optimization/90269
27151 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27152 Ignore clobbers.
27153
27154 2019-05-03 Martin Liska <mliska@suse.cz>
27155
27156 * hash-map.h: Add is_empty function.
27157 * hash-set.h: Likewise.
27158 * hash-table.h: Likewise.
27159 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27160 elements () == 0 (and similar usages).
27161 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27162 * gimplify.c (gimplify_bind_expr): Likewise.
27163 (gimplify_switch_expr): Likewise.
27164 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27165 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27166 * postreload-gcse.c (dump_hash_table): Likewise.
27167 (gcse_after_reload_main): Likewise.
27168 * predict.c (combine_predictions_for_bb): Likewise.
27169 * tree-parloops.c (reduction_phi): Likewise.
27170 (separate_decls_in_region): Likewise.
27171 (transform_to_exit_first_loop): Likewise.
27172 (gen_parallel_loop): Likewise.
27173 (gather_scalar_reductions): Likewise.
27174 (try_create_reduction_list): Likewise.
27175 * var-tracking.c (dump_vars): Likewise.
27176 (emit_notes_for_changes): Likewise.
27177 (vt_emit_notes): Likewise.
27178
27179 2019-05-03 Richard Biener <rguenther@suse.de>
27180
27181 PR tree-optimization/90316
27182 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27183 before running VN.
27184
27185 2019-05-03 Richard Biener <rguenther@suse.de>
27186
27187 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27188 peeling for gaps by loading only lower halves of vectors
27189 if possible.
27190 (vectorizable_load): Likewise.
27191
27192 2019-05-03 Richard Biener <rguenther@suse.de>
27193
27194 PR middle-end/89518
27195 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27196
27197 2019-05-03 Richard Biener <rguenther@suse.de>
27198
27199 PR middle-end/87314
27200 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27201 Handle STRING_CST vs DECL or STRING_CST.
27202
27203 2019-05-03 Richard Biener <rguenther@suse.de>
27204
27205 PR tree-optimization/88963
27206 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27207 vector loads feeding only BIT_FIELD_REFs to component
27208 loads. Rewrite stores fed by CONSTRUCTORs to component
27209 stores.
27210
27211 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27212
27213 * opts.h (finish_options): Remove lang_mask argument.
27214 (print_help, help_option_argument): Declare.
27215 * opts.c (print_help): Remove forward declaration, no longer static.
27216 (finish_options): Remove lang_mask argument, don't call print_help
27217 here.
27218 * opts-global.c (decode_options): Adjust finish_option caller, call
27219 print_help here.
27220
27221 PR tree-optimization/90303
27222 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27223 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27224
27225 2019-05-03 Richard Biener <rguenther@suse.de>
27226
27227 PR tree-optimization/89698
27228 * gimple-fold.c (canonicalize_constructor_val): Early out
27229 for constants, handle unfolded INTEGER_CSTs as they appear in
27230 C++ virtual table ctors.
27231
27232 2019-05-03 Richard Biener <rguenther@suse.de>
27233
27234 * passes.c (execute_function_todo): Remove dead code.
27235
27236 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27237
27238 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27239 the internal register number, for any "real" register.
27240
27241 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27242
27243 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27244 correct numbers for TFHAR, TFIAR, TEXASR.
27245
27246 2019-05-02 Richard Biener <rguenther@suse.de>
27247
27248 PR tree-optimization/89653
27249 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27250 update-address-taken before the pass.
27251 * passes.def (pass_tree_loop_init): Put comment before it.
27252
27253 2019-05-02 Richard Biener <rguenther@suse.de>
27254
27255 PR tree-optimization/89509
27256 * tree-ssa-structalias.c (compute_dependence_clique): Look
27257 at the first subvar when determining whether it is restrict.
27258
27259 2019-05-02 Richard Biener <rguenther@suse.de>
27260
27261 PR tree-optimization/90273
27262 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27263 useless debug stmts.
27264
27265 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27266
27267 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
27268 ACLE branch.
27269 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27270 SVE ACLE branch.
27271 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27272 VEC_COND_EXPR be inserted to emulate a conditional internal function.
27273 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27274 (vectorizable_reduction): Use the functions above to vectorize in a
27275 fully masked loop codes that don't have a conditional internal
27276 function.
27277
27278 2019-05-02 Martin Liska <mliska@suse.cz>
27279
27280 * cgraphclones.c: Call valid_attribute_p with 1 for
27281 target_clone.
27282 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
27283 it's for target attribute.
27284 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
27285 Add new boolean argument.
27286 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
27287 Likewise.
27288 (ix86_valid_target_attribute_tree): Pass target_clone_attr
27289 to ix86_valid_target_attribute_inner_p.
27290 (ix86_valid_target_attribute_p): Pass flags argument to
27291 ix86_valid_target_attribute_inner_p.
27292 (get_builtin_code_for_version): Use 0 as it's target attribute.
27293
27294 2019-05-02 Martin Liska <mliska@suse.cz>
27295
27296 * gcc.c (process_command): Add dummy file only
27297 if n_infiles == 0.
27298 * opts-global.c (decode_options): Pass lang_mask.
27299 * opts.c (print_help): New function.
27300 (finish_options): Print --help if help_option_argument
27301 is set.
27302 (common_handle_option): Factor out content of OPT__help_
27303 into print_help.
27304 * opts.h (finish_options): Add new argument.
27305
27306 2019-05-02 Martin Liska <mliska@suse.cz>
27307
27308 PR target/88809
27309 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
27310 With -minline-all-stringops use inline expansion using 4B loop.
27311 * doc/invoke.texi: Document the change of
27312 -minline-all-stringops.
27313
27314 2019-05-01 Jeff Law <law@redhat.com>
27315
27316 PR tree-optimization/88797
27317 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
27318 PHI feeds a conditional on the RHS of an assignment.
27319
27320 2019-04-30 Andrew Waterman <andrew@sifive.com>
27321 Jim Wilson <jimw@sifive.com>
27322
27323 * config/riscv/constraints.md (L): New.
27324 * config/riscv/predicates.md (lui_operand): New.
27325 (sfb_alu_operand): New.
27326 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
27327 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
27328 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
27329 * config/riscv/risc.md (type): Add sfb_alu.
27330 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
27331 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
27332 (branch_zero<mode>): Delete.
27333 (mov<mode>cc): New.
27334 (mov<GPR:mode><X:mode>cc): Likewise.
27335 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
27336
27337 2019-04-30 Nathan Sidwell <nathan@acm.org>
27338
27339 * tree.h (MARK_TS_EXP): New.
27340
27341 2019-04-30 Martin Liska <mliska@suse.cz>
27342
27343 * opts.c (enable_warning_as_error): Provide hints
27344 for unknown options.
27345
27346 2019-04-30 Martin Liska <mliska@suse.cz>
27347
27348 PR debug/90288
27349 * doc/invoke.texi: Add missing dash for gas-locview-support
27350 and gno-as-locview-support.
27351
27352 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27353
27354 PR target/89093
27355 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
27356 whitespace at the start of target attribute string.
27357
27358 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27359
27360 PR target/86538
27361 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
27362 Define __ARM_FEATURE_ATOMICS.
27363
27364 2019-04-30 Martin Liska <mliska@suse.cz>
27365
27366 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
27367 into built_in_function enum. Remove code for endp == 2 and
27368 use BUILT_IN_* constants.
27369 (gimple_fold_builtin): Call the function with fcode.
27370
27371 2019-04-30 Martin Liska <mliska@suse.cz>
27372
27373 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
27374 DECL_FUNCTION_CODE into ix86_builtins enum before
27375 the switch statement.
27376
27377 2019-04-30 Jakub Jelinek <jakub@redhat.com>
27378
27379 PR tree-optimization/89475
27380 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
27381 calls.
27382
27383 2019-04-30 Martin Liska <mliska@suse.cz>
27384
27385 PR translation/90274
27386 * opts.c (print_filtered_help): Wrap string in _(...).
27387
27388 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
27389
27390 PR tree-optimization/90240
27391 Revert:
27392 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27393
27394 PR tree-optimization/90078
27395 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27396 checks for infinite_cost overflow.
27397
27398 2019-04-29 Jeff Law <law@redhat.com>
27399
27400 * passes.def: Move -Wrestrict pass after copy propagation.
27401
27402 2019-04-29 Maya Rashish <coypu@sdf.org>
27403
27404 * config.gcc (default_gnu_indirect_function): Default to yes
27405 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
27406 sparc*-*-netbsd*, x86_64-*-netbsd*.
27407
27408 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
27409
27410 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
27411 where cond2 is NE_EXPR.
27412 (is_value_included_in): Update comment.
27413
27414 2019-04-29 Richard Biener <rguenther@suse.de>
27415
27416 PR tree-optimization/90278
27417 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
27418 EH on comparison simplification.
27419
27420 2019-04-29 Jason Merrill <jason@redhat.com>
27421
27422 PR c++/82081 - tail call optimization breaks noexcept
27423 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
27424 nothrow function to a might-throw function into a tail call.
27425
27426 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
27427
27428 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
27429 (DDR_INNER_LOOP): Likewise.
27430 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
27431 (initialize_data_dependence_relation): Likewise.
27432 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
27433
27434 2019-04-29 Jakub Jelinek <jakub@redhat.com>
27435
27436 PR rtl-optimization/90257
27437 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
27438 return value.
27439
27440 Revert the revert:
27441 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27442
27443 PR target/90178
27444 Revert:
27445 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27446
27447 Revert the revert:
27448 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27449
27450 Revert:
27451 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27452
27453 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27454
27455 2019-04-29 Richard Biener <rguenther@suse.de>
27456
27457 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
27458 rhs issue a reset.
27459
27460 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
27461
27462 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
27463 varasm.h, and netbsd-protos.h.
27464
27465 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
27466
27467 PR target/89261
27468 * config/i386/i386-protos.h (ix86_data_alignment): Change
27469 the second argument type to unsigned int.
27470 * config/i386/i386.c (ix86_data_alignment): Change "align"
27471 argument type to unsigned int.
27472
27473 2019-04-27 Martin Liska <mliska@suse.cz>
27474
27475 PR middle-end/90258
27476 * opt-suggestions.c (option_proposer::build_option_suggestions):
27477 When get_valid_option_values returns empty values, add the
27478 misspelling candidate.
27479
27480 2019-04-26 Jim Wilson <jimw@sifive.com>
27481
27482 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
27483 parameter.
27484 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
27485 Pass orig_mode to riscv_build_integer.
27486 (riscv_split_integer): Pass mode to riscv_move_integer.
27487 (riscv_legitimize_const_move): Likewise.
27488 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
27489 promoted_mode. Replace force_reg call with code to load constant into
27490 promoted reg and then subreg it for the store.
27491 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
27492 riscv_move_integer.
27493
27494 2018-04-26 Eugene Sharygin <eush@ispras.ru>
27495
27496 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
27497 corrupt codes.
27498
27499 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
27500
27501 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
27502 commentary about the encoding of precision.
27503
27504 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
27505
27506 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
27507 * config/i386/t-freebsd64: New file.
27508 * config.gcc: Add the t-freebsd64 for multilib support.
27509
27510 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
27511
27512 * doc/extend.texi (vector_size): Add missing comma after @xref.
27513
27514 2019-04-25 Jakub Jelinek <jakub@redhat.com>
27515
27516 * BASE-VER: Set to 10.0.0.
27517
27518 2019-04-25 Richard Biener <rguenther@suse.de>
27519
27520 PR middle-end/89765
27521 * gimplify.c (gimplify_expr): Avoid turning a lvalue
27522 VIEW_CONVERT_EXPR into one operating on an rvalue.
27523
27524 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
27525
27526 PR target/89929
27527 * config/i386/i386.c (feature_priority): Moved to file scope.
27528 (processor_features): Likewise.
27529 (processor_model): Likewise.
27530 (_arch_names_table): Likewise.
27531 (arch_names_table): Likewise.
27532 (_feature_list): Removed.
27533 (feature_list): Likewise.
27534 (_isa_names_table): Moved to file scope. Add priority.
27535 (isa_names_table): Likewise.
27536 (get_builtin_code_for_version): Replace feature_list with
27537 isa_names_table. Update error message for P_ZERO priority.
27538
27539 2019-04-25 Richard Biener <rguenther@suse.de>
27540
27541 * tree-pass.h (make_pass_phi_only_cprop): Remove.
27542 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
27543
27544 2019-04-24 Jeff Law <law@redhat.com>
27545
27546 PR tree-optimization/90037
27547 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
27548 * passes.def: Replace all instance of phi-only cprop with the
27549 lattice propagator. Move propagation pass from after erroneous
27550 path isolation to before erroneous path isolation.
27551 * tree-ssa-phionlycprop.c: Remove.
27552
27553 2019-04-24 Richard Biener <rguenther@suse.de>
27554
27555 PR middle-end/90213
27556 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
27557 by size and BITS_PER_UNIT on poly-wide-ints.
27558
27559 2019-04-25 Richard Biener <rguenther@suse.de>
27560
27561 PR middle-end/90194
27562 * match.pd: Add pattern to simplify view-conversion of an
27563 empty constructor.
27564
27565 2019-04-24 Clement Chigot <clement.chigot@atos.net>
27566
27567 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
27568 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
27569 for Go on 32 bit AIX.
27570 * config/rs6000/aix72.h: Likewise.
27571
27572 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27573
27574 PR target/90193
27575 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
27576 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
27577
27578 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
27579
27580 PR target/89952
27581 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
27582 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
27583 for restored hard frame pointer.
27584 (s390_sched_dependencies_evaluation): Implement new target hook.
27585 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
27586
27587 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
27588
27589 * config/arc/arc-options.def: Fix typos and spelling mistakes.
27590 * config/arc/arc.c (arc_init): Cleanup warning message.
27591 (arc_override_options): Likewise.
27592
27593 2019-04-24 Jakub Jelinek <jakub@redhat.com>
27594
27595 PR target/90187
27596 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
27597 a register if both if_true and if_false are MEMs.
27598
27599 PR tree-optimization/90208
27600 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
27601 after labels of new_bb, not before them.
27602
27603 PR tree-optimization/90211
27604 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
27605 which are not SSA_NAMEs.
27606
27607 2018-04-23 Sudakshina Das <sudi.das@arm.com>
27608
27609 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
27610 AArch64.
27611 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
27612
27613 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
27614
27615 PR rtl-optimization/87979
27616 * modulo-sched.c (sms_schedule): Start ii value "mii" should
27617 not equal zero.
27618
27619 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
27620
27621 PR rtl-optimization/84032
27622 * modulo-sched.c (ps_insn_find_column): Change condition so that
27623 branch will always be the last insn in a row inside partial
27624 schedule.
27625
27626 2019-04-23 Richard Biener <rguenther@suse.de>
27627
27628 PR debug/90131
27629 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
27630 dest_single_pred_p argument.
27631 (remove_forwarder_block): Adjust.
27632 (remove_forwarder_block_with_phi): Likewise.
27633
27634 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27635 Bernd Edlinger <bernd.edlinger@hotmail.de>
27636 Jakub Jelinek <jakub@redhat.com>
27637
27638 PR target/89093
27639 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
27640 if used with general-regs-only.
27641 (arm_conditional_register_usage): Don't add non-general regs if
27642 general-regs-only.
27643 (arm_valid_target_attribute_rec): Handle general-regs-only.
27644 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
27645 general-regs-only.
27646 (TARGET_HARD_FLOAT_SUB): Define.
27647 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
27648 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
27649 (TARGET_REALLY_IWMMXT2): Likewise.
27650 * config/arm/arm.opt: Add -mgeneral-regs-only.
27651 * doc/extend.texi: Document ARM general-regs-only target.
27652 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
27653
27654 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27655
27656 PR tree-optimization/90078
27657 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
27658 checks for infinite_cost overflow.
27659
27660 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
27661
27662 PR tree-optimization/90021
27663 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
27664 and check univariate against it.
27665 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
27666 * tree-data-ref.c (add_other_self_distances): Pass new argument.
27667
27668 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
27669
27670 PR target/90178
27671 Revert:
27672 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
27673
27674 Revert the revert:
27675 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
27676
27677 Revert:
27678 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
27679
27680 * lra-spills.c (lra_final_code_change): Remove useless move insns.
27681
27682 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
27683
27684 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
27685 names using operand format, rather than hard-wired.
27686 (speculation_barrier): Likewise.
27687
27688 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
27689
27690 PR tree-optimization/88055
27691 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
27692 (gen_one_condition): Use it if !HONOR_NANS.
27693
27694 2019-04-19 Jakub Jelinek <jakub@redhat.com>
27695
27696 PR middle-end/90139
27697 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
27698 assign_temp instead of gen_reg_rtx.
27699
27700 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
27701
27702 PR translation/90118
27703 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27704 Add missing space before %<.
27705
27706 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
27707
27708 PR rtl-optimization/87871
27709 * ira-lives.c (make_object_dead): Don't add conflicts to
27710 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
27711
27712 2019-04-18 Martin Sebor <msebor@redhat.com>
27713
27714 PR middle-end/89797
27715 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
27716 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
27717 assuming type size fits in SHWI.
27718
27719 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
27720
27721 PR ipa/85051
27722 * ipa-inline.c (flatten_function): New parameter UPDATE.
27723 (ipa_inline, early_inliner): Use it.
27724
27725 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
27726
27727 * fold-const.c (int_const_binop): Return early on failure.
27728
27729 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
27730
27731 PR middle-end/85164
27732 * combine.c (force_int_to_mode): Cast the argument rather than
27733 the result of known_alignment.
27734 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
27735
27736 2019-04-18 Richard Biener <rguenther@suse.de>
27737
27738 PR debug/90131
27739 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
27740 out from ...
27741 (remove_forwarder_block): ... here.
27742 (remove_forwarder_block_with_phi): Also move debug stmts here.
27743
27744 2019-04-18 Jakub Jelinek <jakub@redhat.com>
27745
27746 PR translation/79183
27747 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
27748 inform where appropriate.
27749
27750 2019-04-18 Richard Biener <rguenther@suse.de>
27751
27752 * tree.c (get_qualified_type): Put found type variants at the
27753 head of the variant list.
27754
27755 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27756
27757 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
27758
27759 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
27760
27761 PR target/90125
27762 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
27763 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
27764 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
27765 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
27766 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
27767
27768 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
27769
27770 * ira-conflicts.c (print_allocno_conflicts): Always print something,
27771 even for allocno's with no conflicts.
27772 (print_conflicts): Print an extra newline.
27773
27774 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27775
27776 * auto-inc-dec.c (attempt_change): Set the alignment of the
27777 temporary memory to that of the original.
27778
27779 2019-04-17 Joao Moreira <jmoreira@suse.de>
27780
27781 * targhooks.c (default_print_patchable_function_entry): Emit
27782 __patchable_function_entries section with writable flags to allow
27783 relocation resolution.
27784
27785 2019-04-17 Jonny Grant <jg@jguk.org>
27786
27787 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
27788
27789 2019-04-17 Jakub Jelinek <jakub@redhat.com>
27790
27791 PR middle-end/90095
27792 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
27793 on lowpart SUBREGs.
27794
27795 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
27796
27797 * config/arc/arc.c (arc_init): Format diagnostic string.
27798 (arc_override_options): Likewise.
27799 (check_if_valid_regno_const): Likewise.
27800 (arc_reorg): Likewise.
27801
27802 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27803
27804 PR target/17108
27805 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
27806 name.
27807 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
27808 name.
27809 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
27810 (*movdi_update1): Use Pmode.
27811 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
27812 (movdi_<mode>_update_stack): Rename to ...
27813 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
27814 use Pmode.
27815 (*movsi_update1): Use Pmode.
27816 (*movsi_update2): Use Pmode.
27817 (movsi_update): Rename to ...
27818 (movsi_<mode>_update): ... this. Use Pmode.
27819 (movsi_update_stack): Fix condition.
27820 (*movhi_update1): Use Pmode. Fix argument to
27821 avoiding_indexed_address_p.
27822 (*movhi_update2): Ditto.
27823 (*movhi_update3): Ditto.
27824 (*movhi_update4): Ditto.
27825 (*movqi_update1): Ditto.
27826 (*movqi_update2): Ditto.
27827 (*movqi_update3): Ditto.
27828 (*movsf_update1, *movdf_update1): Merge, rename to...
27829 (*mov<mode>_update1): This. Use Pmode. Fix argument to
27830 avoiding_indexed_address_p. Add "size" attribute.
27831 (*movsf_update2, *movdf_update2): Merge, rename to...
27832 (*mov<mode>_update2): This. Ditto.
27833 (*movsf_update3): Use Pmode. Fix argument to
27834 avoiding_indexed_address_p.
27835 (*movsf_update4): Ditto.
27836 (allocate_stack): Simplify condition. Adjust pattern names.
27837
27838 2019-04-17 Jakub Jelinek <jakub@redhat.com>
27839
27840 PR target/89093
27841 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
27842 whitespace at the start of target attribute string.
27843
27844 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
27845
27846 PR target/84369
27847 * config/rs6000/power9.md: Add store forwarding bypass.
27848
27849 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
27850
27851 PR debug/89528
27852 * valtrack.c (dead_debug_insert_temp): Reset debug references
27853 to the return value of a call being removed.
27854
27855 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27856
27857 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
27858 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
27859 implement target hook.
27860 (arc_memory_move_cost): New function.
27861 (TARGET_REGISTER_MOVE_COST): Define.
27862 (TARGET_MEMORY_MOVE_COST): Likewise.
27863 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
27864 (MEMORY_MOVE_COST): Likewise.
27865
27866 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27867
27868 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
27869 (sibcall_value_insn): Likewise.
27870 * config/arc/constraints.md (Rs5): Remove.
27871
27872 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27873
27874 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
27875 for last two fake registers.
27876 (arc_conditional_register_usage): Make sure fake frame and arg
27877 pointer regs are in general regs class.
27878 (FRAME_POINTER_MASK): Remove.
27879 (RETURN_ADDR_MASK): Remove.
27880 (arc_must_save_register): Use hard frame regnum.
27881 (frame_restore_reg): Use hard_frame_pointer_rtx.
27882 (arc_save_callee_saves): Likewise.
27883 (arc_restore_callee_saves): Likewise.
27884 (arc_save_callee_enter): Likewise.
27885 (arc_restore_callee_leave): Likewise.
27886 (arc_save_callee_milli): Likewise.
27887 (arc_eh_return_address_location): Likewise.
27888 (arc_check_multi): Use hard frame regnum.
27889 (arc_can_eliminate): Likewise.
27890 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
27891 for register allocator.
27892 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
27893 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
27894 (FRAME_POINTER_REGNUM): Change it to a fake register.
27895 (HARD_FRAME_POINTER_REGNUM): Defined.
27896 (ARG_POINTER_REGNUM): Change it to a new fake register.
27897 (ELIMINABLE_REGS): Update.
27898 (REGISTER_NAMES): Update names.
27899 * config/arc/arc.md (LP_START): Remove.
27900 (LP_END): Likewise.
27901 (shift_si3_loop): Update pattern.
27902
27903 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27904
27905 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
27906 to avoid delay slot scheduling.
27907 (arc_must_save_register): Don't save SP.
27908 * config/arc/arc.md (stack_tie): Remove.
27909 (UNSPEC_ARC_STKTIE): Likewise.
27910
27911 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
27912 Shiva Chen <shiva0217@gmail.com>
27913
27914 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
27915 code gen with large shift amount.
27916
27917 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
27918
27919 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
27920 subreg.
27921
27922 2019-04-16 Jakub Jelinek <jakub@redhat.com>
27923
27924 PR target/90096
27925 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
27926 print -m64/-mx32/-m32 if it is true.
27927 (ix86_debug_options, ix86_function_specific_print): Pass true as
27928 ADD_ABI_P to ix86_target_string.
27929 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
27930 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
27931 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
27932
27933 PR rtl-optimization/90082
27934 * dce.c (can_delete_call): New function.
27935 (deletable_insn_p, mark_insn): Use it.
27936
27937 PR tree-optimization/90090
27938 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
27939 throw internally.
27940 (is_division_by_square): Likewise. Formatting fix.
27941
27942 2019-04-16 Richard Biener <rguenther@suse.de>
27943
27944 PR tree-optimization/56049
27945 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
27946 equality check if alias-set zero will prevail.
27947
27948 2019-04-15 Jeff Law <law@redhat.com>
27949
27950 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
27951 size and alignment as unsigned.
27952
27953 2019-04-15 Richard Biener <rguenther@suse.de>
27954
27955 PR debug/90074
27956 * tree-loop-distribution.c (destroy_loop): Preserve correct
27957 debug info.
27958
27959 2019-04-15 Richard Biener <rguenther@suse.de>
27960
27961 PR tree-optimization/90071
27962 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
27963 abnormal operands from def stmts.
27964
27965 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
27966
27967 PR rtl-optimization/89794
27968 * combine.c (count_auto_inc): New function.
27969 (try_combine): Count how many auto_inc expressions there were in the
27970 original instructions. Ensure we have the same number in the new
27971 instructions. Remove the code that tried to ensure auto_inc side
27972 effects on i1 and i0 are not lost.
27973
27974 2019-04-15 Richard Biener <rguenther@suse.de>
27975
27976 PR ipa/88936
27977 * tree.h (auto_var_p): Declare.
27978 * tree.c (auto_var_p): New function, split out from ...
27979 (auto_var_in_fn_p): ... here.
27980 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
27981 member.
27982 (new_var_info): Initialize it.
27983 (set_uids_in_ptset): Also set the shadow variable uid if required.
27984 (ipa_pta_execute): Postprocess points-to solutions assigning
27985 shadow variable uids for locals that may reach their containing
27986 function recursively.
27987 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
27988 assert but instead check whether the points-to solution is
27989 a singleton.
27990
27991 2019-04-15 Martin Jambor <mjambor@suse.cz>
27992
27993 PR ipa/pr89693
27994 * cgraph.c (clone_of_p): Loop over clone chain for each step in
27995 the thunk chain.
27996
27997 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
27998
27999 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28000
28001 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28002 Kito Cheng <kito.cheng@gmail.com>
28003 Shiva Chen <shiva0217@gmail.com>
28004
28005 * config/nds32/nds32-md-auxiliary.c
28006 (nds32_legitimize_pic_address): Use new PIC pattern.
28007 (nds32_legitimize_tls_address): Use new TLS pattern.
28008 (nds32_output_symrel): New.
28009 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28010 (nds32_alloc_relax_group_id): Ditto.
28011 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28012 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28013 relax_group_id.
28014 (nds32_group_tls_insn): Ditto.
28015 (nds32_group_float_insns): Ditto.
28016 * config/nds32/nds32.md (tls_le): New.
28017 (sym_got): Ditto.
28018
28019 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28020
28021 * configure: Add nds32 target for dwarf2 debug_line checking.
28022 * configure.ac: Regenerated.
28023
28024 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28025
28026 PR lto/89358
28027 * ipa-devirt.c (skip_in_fields_list_p): New.
28028 (odr_types_equivalent_p): Use it.
28029
28030 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28031
28032 PR target/89093
28033 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28034 instead of strncmp when checking for thumb and arm. Formatting fixes.
28035
28036 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28037
28038 * doc/install.texi: Document --with-target-system-zlib.
28039
28040 2019-04-12 Martin Sebor <msebor@redhat.com>
28041
28042 PR c/88383
28043 PR c/89288
28044 PR c/89798
28045 PR c/89797
28046 * targhooks.c (default_vector_alignment): Avoid assuming
28047 argument fits in SHWI.
28048 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28049 a shift expression.
28050 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28051
28052 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28053
28054 PR rtl-optimization/89965
28055 * dce.c: Include rtl-iter.h.
28056 (struct check_argument_load_data): New type.
28057 (check_argument_load): New function.
28058 (find_call_stack_args): Check for loads from stack slots still tracked
28059 in sp_bytes and punt if any is found.
28060
28061 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28062
28063 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28064
28065 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28066 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28067
28068 2019-04-12 Martin Liska <mliska@suse.cz>
28069
28070 PR middle-end/89970
28071 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28072 in error message.
28073 (separate_attrs): Handle multiple 'default's.
28074 (expand_target_clones): Rework error handling code.
28075
28076 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28077
28078 PR target/87532
28079 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28080 mode of vector rather than mode of destination for move instruction.
28081 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28082 Use QI inner mode with V16QI vector mode.
28083
28084 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28085
28086 PR target/52726
28087 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28088 "invalid %%t operand" in output_operand_lossage message.
28089
28090 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28091
28092 * config/s390/predicates.md (permute_pattern_operand): New
28093 predicate.
28094 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28095 operand for the permute pattern.
28096 ("*vec_perm<mode>"): New insn definition.
28097 ("bswap<mode>"): Generate the permute pattern operand in the
28098 expander and perform the operand reloads for pre arch13 level
28099 already.
28100 ("*bswap<mode>_emu"): Rename to ...
28101 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28102 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28103 Add the USE operand for the permute pattern.
28104 ("*vec_set_bswap_vec<mode>"): Likewise.
28105
28106 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28107
28108 PR c/89946
28109 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28110 and gcc_unreachable if it fails, just call tree_to_uhwi which
28111 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28112 Start warning message with a lower-case letter. Formatting fixes.
28113
28114 PR rtl-optimization/90026
28115 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28116 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28117 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28118 in cfglayout mode, use emit_barrier_after_bb.
28119
28120 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28121
28122 PR rtl-optimization/87763
28123 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28124 New Instruction.
28125
28126 2019-04-11 Tom de Vries <tdevries@suse.de>
28127
28128 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28129 max macro using statement expression.
28130
28131 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28132
28133 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28134 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28135 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28136 read_only_private_data_section using xcoff_private_rodata_section_name.
28137 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28138
28139 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28140
28141 PR target/90016
28142 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28143
28144 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28145
28146 PR rtl-optimization/89965
28147 * dce.c (sp_based_mem_offset): New function.
28148 (find_call_stack_args): Use sp_based_mem_offset.
28149
28150 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28151
28152 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28153
28154 2019-04-11 Richard Biener <rguenther@suse.de>
28155
28156 PR tree-optimization/90020
28157 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28158 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28159 * tree-ssa-pre.c (compute_avail): Use it to not put
28160 possibly trapping references after a call that might not
28161 return into EXP_GEN.
28162 * gcse.c (compute_hash_table_work): Do not elide
28163 marking a block containing a call if the call might not
28164 return.
28165
28166 2019-04-11 Richard Biener <rguenther@suse.de>
28167
28168 PR tree-optimization/90018
28169 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28170 Test both SLP and interleaving variants.
28171
28172 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28173
28174 * config/s390/8561.md: New file.
28175 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28176 Add arch13 cpu model.
28177 * config/s390/s390-opts.h (enum processor_type): Likewise.
28178 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28179 (s390_get_unit_mask): Likewise.
28180 (s390_is_fpd): Likewise.
28181 (s390_is_fxd): Likewise.
28182 * config/s390/s390.h (s390_tune_attr): Likewise.
28183 * config/s390/s390.md: Include arch13 pipeline description.
28184 * config/s390/s390.opt: Add arch13.
28185
28186 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28187
28188 PR rtl-optimization/87763
28189 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28190 New prototype.
28191 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28192 New function.
28193 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28194 New instruction.
28195 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28196 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28197 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28198 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28199
28200 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28201
28202 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28203 "Although" in -fipa-icf documentation.
28204
28205 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28206 of using multiple -g options.
28207
28208 2019-04-10 Martin Liska <mliska@suse.cz>
28209
28210 PR gcov-profile/89959
28211 * doc/gcov.texi: Make documentation of -x option
28212 more precise.
28213
28214 2019-04-10 Richard Biener <rguenther@suse.de>
28215
28216 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28217 member.
28218 (DR_GROUP_SAME_DR_STMT): Remove.
28219 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28220 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28221 replace with assert.
28222 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28223 (vect_record_grouped_load_vectors): Remove unreachable code.
28224
28225 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
28226
28227 PR target/90016
28228 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28229 obsolete reference to N.
28230
28231 2019-04-10 Jakub Jelinek <jakub@redhat.com>
28232
28233 PR middle-end/90025
28234 * expr.c (store_expr): Set properly size on the MEM passed to
28235 clear_storage.
28236
28237 PR c++/90010
28238 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28239 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28240 translation is needed, and when translation is needed, only append
28241 ... if the string length is hostsz or more bytes long. Avoid using
28242 strncpy or strcat.
28243
28244 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28245
28246 PR target/90024
28247 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28248 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28249 into three.
28250 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28251 differences directly.
28252 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28253
28254 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28255
28256 PR translation/90011
28257 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28258 from diagnostics.
28259 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28260 diagnostics.
28261 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28262 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28263 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28264 trailing space from -gsplit-dwarf diagnostics.
28265
28266 PR tree-optimization/89998
28267 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
28268 instead of integer_type_node if possible, don't add ranges if return
28269 type is not compatible with int.
28270 * gimple-fold.c (gimple_fold_builtin_sprintf,
28271 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28272 integer_type_node.
28273
28274 2019-04-09 Martin Liska <mliska@suse.cz>
28275
28276 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28277 * doc/install.texi: Document the new config.
28278
28279 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
28280
28281 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
28282 use gimple_expr_type for load and store calls. Skip over the
28283 condition argument in a conditional internal function.
28284 Protect use of TREE_INT_CST_LOW.
28285
28286 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28287
28288 PR target/90015
28289 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
28290 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
28291 trailing period from it too.
28292
28293 2019-04-08 wu yuan <wuyuan5@huawei.com>
28294
28295 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
28296 * config/aarch64/aarch64.md: Add "tsv110.md".
28297 * config/aarch64/tsv110.md: New file.
28298
28299 2019-04-08 Richard Biener <rguenther@suse.de>
28300
28301 PR tree-optimization/90006
28302 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
28303 calls like lrint.
28304
28305 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
28306
28307 PR target/83033
28308 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
28309 construction.
28310 (fma_root_node): Likewise.
28311 (func_fma_steering): Likewise.
28312
28313 2019-04-08 Jakub Jelinek <jakub@redhat.com>
28314
28315 PR rtl-optimization/89865
28316 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
28317
28318 PR rtl-optimization/89865
28319 * config/i386/i386.md
28320 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
28321 numbers not to clash with the additional operands[4].
28322 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
28323 with extra register copy in the middle.
28324
28325 2019-04-08 Martin Liska <mliska@suse.cz>
28326
28327 PR gcov-profile/89961
28328 * doc/gcov.texi: Document data_file.
28329 * gcov.c (generate_results): Add data_info into JSON output.
28330
28331 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
28332
28333 PR tree-optimization/89725
28334 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
28335 loop's chrec as invariant symbol.
28336 * tree-chrec.h (chrec_contains_symbols): New parameter.
28337 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
28338 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
28339 function of loops not in DDR's loop_nest.
28340 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
28341
28342 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
28343
28344 PR target/89623
28345 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
28346 Mask.
28347
28348 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
28349
28350 PR target/89945
28351 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
28352 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
28353
28354 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
28355
28356 * sched-deps.c (sched_macro_fuse_insns): Check return value of
28357 targetm.fixed_condition_code_regs.
28358
28359 2019-04-05 Richard Biener <rguenther@suse.de>
28360
28361 PR debug/89892
28362 PR debug/89905
28363 * tree-cfgcleanup.c (remove_forwarder_block): Always move
28364 debug bind stmts but reset them if they are not valid at the
28365 destination.
28366
28367 2019-04-05 Martin Liska <mliska@suse.cz>
28368
28369 PR translation/89936
28370 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
28371 order to wrap keywords or arguments.
28372 * collect2.c (main): Likewise.
28373 (scan_prog_file): Likewise.
28374 (scan_libraries): Likewise.
28375 * common/config/riscv/riscv-common.c
28376 (riscv_subset_list::parsing_subset_version): Likewise.
28377 (riscv_subset_list::parse_std_ext): Likewise.
28378 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28379 Likewise.
28380 * config/arm/arm.c (arm_option_override): Likewise.
28381 * config/cris/cris.c (cris_print_operand): Likewise.
28382 * config/darwin-c.c (darwin_pragma_options): Likewise.
28383 (darwin_pragma_unused): Likewise.
28384 (darwin_pragma_ms_struct): Likewise.
28385 * config/ft32/ft32.c (ft32_print_operand): Likewise.
28386 * config/i386/i386.c (print_reg): Likewise.
28387 (ix86_print_operand): Likewise.
28388 * config/i386/xm-djgpp.h: Likewise.
28389 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
28390 * config/m32c/m32c.c (m32c_option_override): Likewise.
28391 * config/msp430/msp430.c (msp430_option_override): Likewise.
28392 * config/nds32/nds32.c (nds32_option_override): Likewise.
28393 * config/nvptx/mkoffload.c (main): Likewise.
28394 * config/rx/rx.c (rx_print_operand): Likewise.
28395 (valid_psw_flag): Likewise.
28396 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
28397 (vms_pragma_nomember_alignment): Likewise.
28398 (vms_pragma_extern_model): Likewise.
28399 * lto-wrapper.c (compile_offload_image): Likewise.
28400 * omp-offload.c (oacc_parse_default_dims): Likewise.
28401 * symtab.c (symtab_node::verify_base): Likewise.
28402 * tlink.c (recompile_files): Likewise.
28403 (start_tweaking): Likewise.
28404 * tree-profile.c (parse_profile_filter): Likewise.
28405
28406 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
28407
28408 PR tree-optimization/89956
28409 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
28410 multiple negates of the same value.
28411
28412 2019-04-04 Martin Sebor <msebor@redhat.com>
28413
28414 PR middle-end/89957
28415 PR middle-end/89911
28416 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
28417 have the same precision since the function crashes otherwise.
28418 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
28419 has non-zero arguments.
28420
28421 2019-04-04 Martin Sebor <msebor@redhat.com>
28422
28423 PR middle-end/89934
28424 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
28425 out if the number of arguments is less than expected.
28426
28427 2019-04-04 Jeff Law <law@redhat.com>
28428
28429 PR rtl-optimization/89399
28430 * ree.c (combine_set_extension): Use single_set rather than
28431 digging into PATTERN for items on the candidate list.
28432 (combine_reaching_defs): Likewise.
28433
28434 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
28435
28436 PR rtl-optimization/46590
28437 * loop-invariant.c (find_defs): Move df_remove_problem and
28438 df_process_deferred_rescans to move_invariants.
28439 Move df_live_add_problem and df_live_set_all_dirty calls
28440 to move_invariants.
28441 (move_invariants): Likewise.
28442 (move_loop_invariants): Likewise, making the df_live calls
28443 conditional on -O. Remove the problem again if we added it
28444 locally.
28445
28446 2019-04-03 qing zhao <qing.zhao@oracle.com>
28447
28448 PR tree-optimization/89730
28449 * ipa-inline.c (can_inline_edge_p): Delete the checking for
28450 -flive-patching=inline-only-static.
28451 (can_inline_edge_by_limits_p): Add the checking for
28452 -flive-patching=inline-only-static and grant always_inline
28453 even when -flive-patching=inline-only-static is specified.
28454
28455 2019-04-03 Jeff Law <law@redhat.com>
28456
28457 PR rtl-optimization/81025
28458 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
28459
28460 2019-04-03 Richard Biener <rguenther@suse.de>
28461
28462 PR tree-optimization/84101
28463 * tree-vect-stmts.c: Include explow.h for hard_function_value,
28464 regs.h for hard_regno_nregs.
28465 (cfun_returns): New helper.
28466 (vect_model_store_cost): When vectorizing a store to a decl
28467 we return and the function ABI returns in a multi-reg location
28468 account for the possible spilling that will happen.
28469
28470 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
28471
28472 * config/s390/s390.c (s390_legitimate_address_p): Reject long
28473 displacement addresses for vector mode operands.
28474
28475 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
28476
28477 * config/arc/arc.c (GMASK_LEN): Define.
28478 (arc_restore_callee_saves): Restore first blink when
28479 !optimize_size.
28480
28481 2019-04-03 Sudakshina Das <sudi.das@arm.com>
28482
28483 * doc/extend.texi: Add deprecated comment on sign-return-address
28484 function attribute and add mbranch-protection.
28485 * doc/invoke.texi: Add bti to the options for mbranch-protection.
28486
28487 2019-04-03 Richard Biener <rguenther@suse.de>
28488
28489 PR lto/89896
28490 * lto-wrapper.c (run_gcc): Avoid implicit rules making
28491 the all target phony.
28492
28493 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
28494
28495 PR target/89902
28496 PR target/89903
28497 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
28498 Return false for variable DImode shifts.
28499 (dimode_scalar_chain::compute_convert_gain): Do not handle
28500 register count operand in variable DImode shifts.
28501 (dimode_scalar_chain::make_vector_copies): Remove support to copy
28502 count argument of a variable shift instruction to a vector register.
28503 (dimode_scalar_chain::convert_reg): Remove support to convert
28504 count argument of a variable shift instruction.
28505
28506 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28507
28508 PR rtl-optimization/84206
28509 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
28510 iterating over loop headers.
28511
28512 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
28513
28514 PR rtl-optimization/85876
28515 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
28516 beyond the original fence.
28517
28518 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
28519
28520 * config.gcc: Mark spu* targets as deprecated/obsolete.
28521
28522 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28523
28524 * config/s390/s390-builtin-types.def: New builtin function type
28525 definitions. Remove unused types.
28526 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
28527 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
28528 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
28529 overloaded builtins.
28530 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
28531 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
28532 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
28533 (vec_double, vec_signed, vec_unsigned): Define to use the new
28534 overloaded builtins.
28535 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
28536 Remove expanders.
28537
28538 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28539
28540 * config/s390/s390-builtin-types.def: New builtin function type
28541 definitions.
28542 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
28543 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
28544 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
28545 (s390_vstrszh, s390_vstrszf): New low-level builtins.
28546 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
28547 constant definitions.
28548 * config/s390/vecintrin.h (vec_search_string_cc)
28549 (vec_search_string_until_zero_cc): New builtin name definitions.
28550 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
28551 expanders.
28552 ("vec_vstrs<mode>"): New insn definition.
28553
28554 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28555
28556 * config/s390/s390-builtin-types.def: Add new builtin function
28557 types.
28558 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
28559 New overloaded builtins.
28560 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
28561 s390_vsrd.
28562 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
28563 (UNSPEC_VEC_SLDBYTE): ... this.
28564 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
28565 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
28566 definitions.
28567 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
28568 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
28569 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
28570
28571 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28572
28573 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
28574 New insn definition.
28575 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
28576 * config/s390/vector.md (V_HW_HSD): ... here.
28577
28578 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28579
28580 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
28581 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
28582 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
28583 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
28584 New insn definitions.
28585
28586 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28587
28588 * config/s390/s390-builtin-types.def: Add new builtin function type.
28589 * config/s390/s390-builtins.def: Add overloaded builtin
28590 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
28591 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
28592 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
28593 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
28594 ("eltswap<mode>"): New expander.
28595 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
28596 insn definitions.
28597
28598 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28599
28600 * config/s390/s390-builtin-types.def: Add new builtin function types.
28601 * config/s390/s390-builtins.def: Add overloaded builtin
28602 s390_vec_revb. Add low-level builtins for vlbr and vstbr
28603 instructions.
28604 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
28605 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
28606 ("bswap<mode>"): New expander.
28607 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
28608
28609 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28610
28611 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
28612 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
28613 vector builtin version number in __VEC__.
28614
28615 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28616
28617 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
28618 iterators.
28619 (SFSI): New mode attribute.
28620 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
28621 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
28622 rename to ...
28623 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
28624 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
28625 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
28626 ("floatsi<mode>2"): Add wcefb instruction.
28627
28628 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28629
28630 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
28631 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
28632 mode iterators.
28633 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
28634 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
28635 support 32 bit fp-int conversions. Rename to ...
28636 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
28637 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
28638 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
28639 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
28640 ... to these.
28641
28642 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28643
28644 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
28645 if-then-else constructs if we can use the select instruction.
28646 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
28647
28648 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28649
28650 * config/s390/s390.md ("*popcountdi_arch13_cc")
28651 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
28652 definition.
28653 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
28654 Append _z196 to make it ...
28655 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
28656 ("popcounthi2_z196"): ... this.
28657 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
28658 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
28659
28660 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28661
28662 * config/s390/s390.c (s390_canonicalize_comparison): Convert
28663 certain compares for arch13 in order to make use of the condition
28664 code result produced by the new instructions.
28665 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
28666 nxrk, and nxgrk instruction patterns.
28667 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
28668 (inv_no): Add new code iterator together with some attributes.
28669 ("*andc_split_<mode>"): Disable splitter for arch13.
28670 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
28671 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
28672 ("*<ANDOR:bitops_name>c<GPR:mode>")
28673 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
28674 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
28675 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
28676 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
28677
28678 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
28679
28680 * common/config/s390/s390-common.c (processor_flags_table): New
28681 entry for arch13.
28682 * config.gcc: Support arch13 with the --with-arch= configure flag.
28683 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28684 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
28685 * config/s390/s390.c (s390_get_sched_attrmask)
28686 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
28687 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
28688 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
28689 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
28690 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
28691 definitions.
28692 * config/s390/s390.opt: Support arch13 as processor type in
28693 command line options.
28694
28695 2019-04-02 Martin Liska <mliska@suse.cz>
28696
28697 PR translation/89912
28698 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
28699 Fix param description of graphite-max-arrays-per-scop.
28700
28701 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
28702
28703 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
28704 (ASAN_CC1_SPEC): Use it in 64-bit mode.
28705 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
28706
28707 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28708
28709 PR rtl-optimization/85412
28710 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
28711 sel_sched_region_1, not after.
28712
28713 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28714
28715 PR rtl-optimization/86928
28716 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
28717 compute_live if necessary.
28718 (sel_redirect_edge_and_branch): Likewise.
28719
28720 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
28721
28722 PR rtl-optimization/89865
28723 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
28724 register if it is a part of small class.
28725
28726 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
28727
28728 PR rtl-optimization/87273
28729 * sel-sched-ir.c (merge_fences): Remove assert.
28730
28731 2019-04-01 Richard Biener <rguenther@suse.de>
28732
28733 PR tree-optimization/46590
28734 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
28735 (dom_walker::m_reachability): Add in place of...
28736 (dom_walker::m_skip_unreachable_blocks): ...this.
28737 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
28738 Move complex initialization ...
28739 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
28740 lazily and initialize edge flags on each invocation.
28741 (dom_walker::bb_reachable): Use m_reachability.
28742
28743 2019-04-01 Martin Liska <mliska@suse.cz>
28744
28745 PR driver/89861
28746 * opt-suggestions.c (option_proposer::build_option_suggestions):
28747 Add variant without any argument in order to provide better
28748 hints.
28749
28750 2019-04-01 Richard Biener <rguenther@suse.de>
28751
28752 PR c/71598
28753 * gimple.c: Include langhooks.h.
28754 (gimple_get_alias_set): Treat enumeral types as the underlying
28755 integer type.
28756
28757 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
28758 Eric Botcazou <ebotcazou@adacore.com>
28759
28760 PR rtl-optimization/89862
28761 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
28762 that operates on the full registers for WORD_REGISTER_OPERATIONS
28763 architectures.
28764
28765 2019-03-29 Jim Wilson <jimw@sifive.com>
28766
28767 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
28768 Clear MASK_RVC and then set if C subset supported.
28769
28770 2019-03-29 Jakub Jelinek <jakub@redhat.com>
28771
28772 PR c/89872
28773 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
28774 non-addressable complit into its initializer if it is volatile.
28775
28776 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
28777
28778 * opts-common.c (integral_argument): Set errno properly in one case.
28779
28780 2019-03-29 Martin Liska <mliska@suse.cz>
28781
28782 * doc/invoke.texi: Remove -Wchkp from documentation.
28783
28784 2019-03-29 Martin Liska <mliska@suse.cz>
28785
28786 * dbgcnt.c (print_limit_reach): New function.
28787 (dbg_cnt): Use it.
28788
28789 2019-03-29 Martin Liska <mliska@suse.cz>
28790
28791 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
28792 (dbg_cnt_process_opt): Parse first tokens aas
28793 dbg_cnt_process_single_pair is also using strtok.
28794
28795 2019-03-29 Jakub Jelinek <jakub@redhat.com>
28796
28797 PR rtl-optimization/87485
28798 * function.c (expand_function_end): Move stack_protect_epilogue
28799 before loading of return value into hard register(s).
28800
28801 2019-03-28 Jakub Jelinek <jakub@redhat.com>
28802
28803 PR middle-end/89621
28804 * tree-inline.h (struct copy_body_data): Add
28805 dont_remap_vla_if_no_change flag.
28806 * tree-inline.c (remap_type_3, remap_type_2): New functions.
28807 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
28808 and remap_type_2 returns false.
28809 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
28810 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
28811 only from where it is copied to nested contexts.
28812
28813 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
28814
28815 PR target/89865
28816 * config/i386/i386.md (RMW operation with LEA peephole):
28817 Use LEAMODE mode attribute instead of SWI mode iterator for
28818 LEA pattern.
28819
28820 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
28821
28822 PR target/89848
28823 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
28824 Also process XEXP (src, 0) of a shift insn.
28825
28826 2019-03-28 David Malcolm <dmalcolm@redhat.com>
28827
28828 PR middle-end/89725
28829 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
28830 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
28831
28832 2019-03-28 Jakub Jelinek <jakub@redhat.com>
28833
28834 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
28835 test.
28836 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
28837 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
28838 immediately after first one with df_analyze in between, but rather
28839 process all bbs, queueing ones that need second pass in a worklist,
28840 df_analyze, process queued debug insn changes and if second pass is
28841 needed, process bbs from worklist, df_analyze, process queued debug
28842 insns again.
28843
28844 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
28845 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
28846 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
28847
28848 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
28849
28850 PR c/79022
28851 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
28852 definition.
28853
28854 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
28855
28856 PR target/85667
28857 * config/i386/i386.c (ix86_function_value_1): Call the newly added
28858 function for 32-bit MS_ABI.
28859 (function_value_ms_32): New function.
28860
28861 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
28862
28863 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
28864 (movdi): Call gen_movdi_symbol_save_scc.
28865 (gen_movdi_symbol_save_scc): New insn and split.
28866
28867 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
28868
28869 PR rtl-optimization/89313
28870 * function.c (matching_constraint_num): New static function.
28871 (match_asm_constraints_1): Use it. Fixup white space and comment.
28872 Don't replace inputs with non-matching constraints which conflict
28873 with early clobber outputs.
28874
28875 2019-03-27 Jeff Law <law@redhat.com>
28876
28877 PR rtl-optimization/87761
28878 PR rtl-optimization/89826
28879 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
28880 slightly later.
28881 (pass_cprop_hardreg::execute): Call df_analyze after adding the
28882 note problem to get REG_DEAD/REG_UNUSED notes updated.
28883
28884 2019-03-27 Richard Biener <rguenther@suse.de>
28885
28886 PR tree-optimization/89463
28887 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
28888 queue edges to remove.
28889 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
28890 dead stmts. Delay edge removal until PHIs are removed to
28891 make debug-stmt creation not confused by seemingly degenerate
28892 PHIs.
28893
28894 2019-03-27 Alan Modra <amodra@gmail.com>
28895
28896 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
28897 throughout file.
28898 * config/rs6000/darwin.h: Likewise.
28899 * config/rs6000/rs6000.c: Likewise.
28900
28901 2019-03-27 Alan Modra <amodra@gmail.com>
28902
28903 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
28904 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
28905
28906 2019-03-26 Andrew Waterman <andrew@sifive.com>
28907 Jim Wilson <jimw@sifive.com>
28908
28909 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
28910 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
28911 (generic_idivdi, generic_fmul_single, generic_fmul_double)
28912 (generic_fdiv, generic_fsqrt): Add check for generic tune.
28913 (generic_alu): Add auipc to type list.
28914 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
28915 (riscv_microarchitecture): Declare.
28916 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
28917 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
28918 field.
28919 (riscv_microarchitecture): New.
28920 (sifive_7_tune_info): New.
28921 (riscv_cpu_info_table): Add microarchitecture value for rocket and
28922 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
28923 entries.
28924 (riscv_store_data_bypass_p): New.
28925 (riscv_option_override): Set riscv_microarchitecture from
28926 cpu->microarchitecture.
28927 * config/riscv/riscv.md: Include sifive-7.md.
28928 (type): Add auipc.
28929 (tune): New.
28930 (auipc<mode>): Change type to auipc.
28931 (restore_stack_nonlocal): New.
28932 * config/riscv/sifive-7.md: New.
28933 * doc/invoke.texi (RISC-V Options): Update mtune docs.
28934
28935 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
28936
28937 PR target/89827
28938 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
28939 Also process XEXP (src, 0) of a shift insn.
28940
28941 2019-03-26 Richard Biener <rguenther@suse.de>
28942
28943 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
28944 (copy_debug_stmt): Likewise.
28945 (expand_call_inline): Likewise.
28946 (copy_bb): Avoid redundant lookup & set of gimple_block.
28947 * gimple-low.c (lower_gimple_return): Likewise.
28948 (lower_builtin_setjmp): Likewise.
28949
28950 2019-03-26 Jakub Jelinek <jakub@redhat.com>
28951
28952 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
28953 is constant 0, turn into static const data member initialized to false.
28954 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
28955 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
28956
28957 2019-03-26 Jason Merrill <jason@redhat.com>
28958 Jakub Jelinek <jakub@redhat.com>
28959
28960 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
28961 method.
28962 (mem_alloc_description::release_object_overhead): Fix comment typos.
28963 * hash-table.h (hash_table::~hash_table): Call
28964 release_instance_overhead only if m_entries is non-NULL, otherwise
28965 call unregister_descriptor.
28966
28967 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
28968
28969 PR tree-optimization/81740
28970 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28971 In case of outer loop vectorization, check for backward dependence
28972 at the inner loop if outer loop dependence is reversed.
28973
28974 2019-03-26 Alan Modra <amodra@gmail.com>
28975
28976 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
28977 rs6000_vector_mem init. Correct wI and wJ comment.
28978
28979 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
28980
28981 PR rtl-optimization/88347
28982 PR rtl-optimization/88423
28983 * sched-deps.c (sched_analyze_insn): Take into account that for
28984 tablejumps the barrier appears after a label and a jump_table_data.
28985
28986 2019-03-25 Martin Sebor <msebor@redhat.com>
28987
28988 PR c/89812
28989 * c-common.c (check_user_alignment): Rename local. Correct maximum
28990 alignment in diagnostic. Avoid assuming argument fits in SHWI,
28991 convert it to UHWI when it fits.
28992
28993 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
28994
28995 PR debug/86964
28996 * dwarf2out.c (premark_used_variables): New function.
28997 (prune_unused_types_walk): Do not mark not premarked external
28998 variables.
28999 (prune_unused_types): Call premark_used_variables.
29000
29001 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29002
29003 PR rtl-optimization/89676
29004 * lra-constraints.c (curr_insn_transform): Do match reload for
29005 early clobbers when the match was successful only for different
29006 registers.
29007
29008 2019-03-25 Martin Sebor <msebor@redhat.com>
29009
29010 * doc/extend.texi (Common Type Attributes): Document vector_size.
29011 (Common Variable Attributes): Mention size constraint. Correct
29012 quoting and typos.
29013 (Vector Extensions): Use @dfn when defining bas type. Clarify
29014 base type and size constraints.
29015
29016 2019-03-25 Richard Biener <rguenther@suse.de>
29017
29018 PR tree-optimization/89789
29019 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29020 changes from non-undefined back to undefined.
29021
29022 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29023
29024 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29025 heap string and a gc string, but since this variable is unknown to
29026 ggc the gc string might get reused and corrupted. Fixed by always
29027 using a heap string.
29028
29029 2019-03-25 Richard Biener <rguenther@suse.de>
29030
29031 PR tree-optimization/89779
29032 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29033 to remove IV defs, delay actual removal.
29034 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29035 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29036 very end, properly also reset loop control IV information.
29037
29038 2019-03-25 Richard Biener <rguenther@suse.de>
29039
29040 PR tree-optimization/89802
29041 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29042 move EH data to folded stmt.
29043
29044 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29045
29046 * config/s390/s390-builtin-types.def: Remove few unused types and
29047 fix sort order for others.
29048
29049 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29050
29051 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29052 expected and found types with -mdebug during builtin matching.
29053
29054 2019-03-25 Richard Biener <rguenther@suse.de>
29055
29056 PR middle-end/89790
29057 * fold-const.c (operand_equal_p): Revert last change with
29058 updated comment.
29059
29060 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29061
29062 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29063 notes for the result of the __tls_get_addr calls.
29064 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29065
29066 2019-03-24 Jeff Law <law@redhat.com>
29067
29068 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29069
29070 PR rtl-optimization/87761
29071 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29072 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29073 as needed.
29074 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29075 rescans. Reprocess blocks as needed, calling df_analyze before
29076 reprocessing. Always call df_analyze before fixing up debug bind
29077 insns.
29078
29079 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29080
29081 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29082 big endian.
29083
29084 2019-03-22 Andrew Pinski <apinski@marvell.com>
29085
29086 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29087 attrribute for uxtw.
29088
29089 2019-03-26 Jeff Law <law@redhat.com>
29090
29091 PR rtl-optimization/87761
29092 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29093 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29094 (mips_split_move): Accept new INSN argument. Try to forward SRC
29095 into the next instruction.
29096 (mips_split_move_insn): Pass INSN through to mips_split_move.
29097
29098 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29099
29100 PR rtl-optimization/89676
29101 * lra-constraints.c (curr_insn_transform): Do match reload for
29102 early clobbers even if the match was successful.
29103
29104 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29105
29106 PR c++/87481
29107 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29108
29109 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29110
29111 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29112
29113 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29114
29115 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29116 <avx512>_fmsub_<mode>_mask3<round_name>,
29117 <avx512>_fnmadd_<mode>_mask3<round_name>,
29118 <avx512>_fnmsub_<mode>_mask3<round_name>,
29119 avx512f_vmfmadd_<mode>_mask3<round_name>,
29120 avx512f_vmfmsub_<mode>_mask3<round_name>,
29121 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29122 instead of register_operand and %v instead of v for match_operand 1.
29123 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29124 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29125 <round_nimm_predicate> instead of register_operand and %v instead of v
29126 for match_operand 1.
29127
29128 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29129 <avx512>_fmadd_<mode>_mask3<round_name>,
29130 <avx512>_fmsub_<mode>_mask<round_name>,
29131 <avx512>_fmsub_<mode>_mask3<round_name>,
29132 <avx512>_fnmadd_<mode>_mask<round_name>,
29133 <avx512>_fnmadd_<mode>_mask3<round_name>,
29134 <avx512>_fnmsub_<mode>_mask<round_name>,
29135 <avx512>_fnmsub_<mode>_mask3<round_name>,
29136 <avx512>_fmaddsub_<mode>_mask<round_name>,
29137 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29138 <avx512>_fmsubadd_<mode>_mask<round_name>,
29139 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29140 <round_nimm_predicate> instead of nonimmediate_operand.
29141 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29142 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29143 Use register_operand instead of <round_nimm_predicate> for the
29144 operand that needs to match output.
29145 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29146 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29147 Likewise. Formatting fixes.
29148
29149 PR target/89784
29150 * config/i386/i386.c (enum ix86_builtins): Remove
29151 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29152 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29153 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29154 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29155 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29156 __builtin_ia32_vfmsubss3_mask3): New builtins.
29157 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29158 avx512f_vmfmadd_<mode>_mask3<round_name>,
29159 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29160 *avx512f_vmfmsub_<mode>_mask<round_name>,
29161 avx512f_vmfmsub_<mode>_mask3<round_name>,
29162 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29163 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29164 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29165 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29166 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29167 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29168 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29169 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29170 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29171 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29172 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29173 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29174 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29175 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29176 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29177 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29178 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29179 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29180 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29181 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29182 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29183 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29184 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29185 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29186 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29187 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29188 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29189 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29190
29191 2019-03-21 Martin Sebor <msebor@redhat.com>
29192
29193 PR tree-optimization/89350
29194 * builtins.c (compute_objsize): Also ignore offsets whose upper
29195 bound is negative.
29196 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29197 (builtin_memref::builtin_memref): Initialize new member.
29198 Allow EXPR to be null.
29199 (builtin_memref::extend_offset_range): Replace local with a member.
29200 Avoid assuming pointer offsets are unsigned.
29201 (builtin_memref::set_base_and_offset): Determine base object
29202 before computing offset range.
29203 (builtin_access::builtin_access): Handle memset.
29204 (builtin_access::generic_overlap): Replace local with a member.
29205 (builtin_access::strcat_overlap): Same.
29206 (builtin_access::overlap): Same.
29207 (maybe_diag_overlap): Same.
29208 (maybe_diag_access_bounds): Same.
29209 (wrestrict_dom_walker::check_call): Handle memset.
29210 (check_bounds_or_overlap): Same.
29211
29212 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29213 Jakub Jelinek <jakub@redhat.com>
29214
29215 PR lto/89692
29216 * tree.c (fld_type_variant, fld_incomplete_type_of,
29217 fld_process_array_type): Call fld->pset.add and don't call
29218 add_tree_to_fld_list if it returns true.
29219 (free_lang_data_in_type): Similarly with self-recursive call. Purge
29220 non-marked types from TYPE_NEXT_VARIANT list.
29221 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29222
29223 2019-03-21 Jakub Jelinek <jakub@redhat.com>
29224
29225 * hash-table.h (hash_table): Add Lazy template parameter defaulted
29226 to false, if true, don't alloc_entries during construction, but defer
29227 it to the first method that needs m_entries allocated.
29228 (hash_table::hash_table, hash_table::~hash_table,
29229 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29230 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29231 hash_table::clear_slot, hash_table::traverse_noresize,
29232 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29233 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29234 false.
29235 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29236 NO_INSERT instead of find_with_hash.
29237 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29238 hash_set::m_table): Add Lazy to template params of hash_table.
29239 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29240 * attribs.c (test_attribute_exclusions): Likewise.
29241 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29242 hash_set. Add tests for hash_set with Lazy = true.
29243
29244 2019-03-21 Richard Biener <rguenther@suse.de>
29245
29246 PR tree-optimization/89779
29247 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29248 checks with respect to released SSA names now having error_mark_node
29249 type.
29250 * fold-const.c (operand_equal_p): Likewise.
29251
29252 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29253
29254 PR target/89775
29255 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29256 available to ...
29257 (s390_optimize_register_info): Use global_not_special_regno_p to
29258 check for global regs.
29259
29260 2019-03-20 Jakub Jelinek <jakub@redhat.com>
29261
29262 PR target/89752
29263 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29264 update this_alternative nor this_alternative_set.
29265
29266 2019-03-19 Jim Wilson <jimw@sifive.com>
29267
29268 PR target/89411
29269 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
29270 align, size, offset. Use them to handle a BLKmode reference. Update
29271 comment.
29272 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29273
29274 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29275
29276 PR rtl-optimization/89768
29277 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29278 instead of GEN_INT.
29279 (unroll_loop_runtime_iterations): Likewise.
29280
29281 2019-03-19 Martin Sebor <msebor@redhat.com>
29282
29283 PR tree-optimization/89644
29284 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
29285 rather than endptr as an indicator of nul-termination.
29286
29287 PR tree-optimization/89644
29288 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
29289 arrays in determining sequence sizes in strncpy and stpncpy.
29290
29291 2019-03-19 Martin Liska <mliska@suse.cz>
29292
29293 PR middle-end/89737
29294 * predict.c (combine_predictions_for_bb): Empty likely_edges and
29295 unlikely_edges if there's an edge that belongs to both these sets.
29296
29297 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
29298
29299 PR target/89746
29300 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
29301 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
29302 go via a stack temporary.
29303
29304 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29305
29306 PR target/89378
29307 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
29308 instead of gen_rtx_SUBREG.
29309 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
29310
29311 2019-03-19 Richard Biener <rguenther@suse.de>
29312
29313 PR debug/88389
29314 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
29315
29316 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
29317
29318 PR lto/87809
29319 PR lto/89335
29320 * tree.c (free_lang_data_in_decl): Do not free context of C++
29321 destrutors.
29322
29323 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29324
29325 PR target/89506
29326 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
29327 subs for the first alternative except when operands[3] is 1.
29328
29329 PR target/89752
29330 * gimplify.c (gimplify_asm_expr): For output argument with
29331 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
29332 diagnose error.
29333
29334 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
29335
29336 PR rtl-optimization/89753
29337 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29338 explicit unrolling factor even more robust.
29339
29340 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29341
29342 PR target/89726
29343 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
29344 compensation use x2 += 1 instead of x2 -= -1 and when honoring
29345 signed zeros, do another copysign after the compensation.
29346
29347 2019-03-18 Martin Sebor <msebor@redhat.com>
29348
29349 PR tree-optimization/89720
29350 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
29351 more conservatively, the same as anti-range.
29352
29353 2019-03-18 Richard Biener <rguenther@suse.de>
29354
29355 PR middle-end/88945
29356 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
29357 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
29358 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
29359 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
29360
29361 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
29362
29363 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
29364 Extend queue to 1024 entries.
29365 Add "consumed" field.
29366 (gomp_print_output): Remove print_index parameter.
29367 Add final parameter.
29368 Change limit to unsigned.
29369 Use consumed field to implement circular buffer.
29370 Detect interrupted print in final pass.
29371 Flush output at the end.
29372 (run): Update gomp_print_output usage.
29373 (main): Initialize kernargs->output_data.consumed.
29374
29375 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
29376
29377 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
29378 calculation of the minimum number of scalar iterations for
29379 fully-predicated loops.
29380
29381 2019-03-18 Martin Jambor <mjambor@suse.cz>
29382
29383 PR tree-optimization/89546
29384 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
29385 any propagation to its children took place.
29386
29387 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
29388
29389 PR target/89627
29390 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
29391 parameter, and make use of it.
29392 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
29393
29394 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29395
29396 * config/arc/arc.opt (mcode-density-frame): Get the inital value
29397 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
29398 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29399 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
29400 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
29401 match what the ops is doing.
29402 (push_multi_fp_blink): Likewise.
29403 * config/arc/arc.c (arc_override_options): Enable enter/leave when
29404 compiling for size and elf target.
29405 (arc_save_callee_enter): Adjust note to match what enter/leave
29406 operation does.
29407
29408 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29409
29410 * config/arc/arc.md (tst_movb): Fix constraint.
29411
29412 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29413
29414 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
29415
29416 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
29417
29418 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
29419 * config/arc/arc.c (arc_conditional_register_usage): Remove all
29420 reg_alloc_order references.
29421 (size_alloc_order): Define.
29422 (arc_adjust_reg_alloc_order): New function.
29423 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
29424 order.
29425 (ADJUST_REG_ALLOC_ORDER): Define.
29426 (HONOR_REG_ALLOC_ORDER): Likewise.
29427
29428 2019-03-18 Richard Biener <rguenther@suse.de>
29429
29430 PR target/87561
29431 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
29432 loads and stores a bit more.
29433
29434 2019-03-18 Richard Biener <rguenther@suse.de>
29435
29436 PR target/87561
29437 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
29438 load pessimization to stores as well.
29439
29440 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
29441
29442 PR middle-end/86979
29443 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
29444 successor, use NULL as its av set.
29445
29446 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29447
29448 PR rtl-optimization/89721
29449 * lra-constraints (invariant_p): Return false if side_effects_p holds.
29450
29451 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
29452
29453 PR target/87532
29454 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29455 When handling vec_extract, use modular arithmetic to allow
29456 constant selectors greater than vector length.
29457 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
29458 V1TImode vectors to have constant selector values greater than 0.
29459 Use modular arithmetic to compute vector index.
29460 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
29461 index for in-memory vectors. Correct code generation for
29462 in-register vectors.
29463 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
29464 compute index.
29465
29466 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
29467
29468 PR c++/88534
29469 PR c++/88537
29470 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
29471 VAR_DECL args.
29472
29473 2019-03-15 Jakub Jelinek <jakub@redhat.com>
29474
29475 PR c++/89709
29476 * tree.c (inchash::add_expr): Strip any location wrappers.
29477 * fold-const.c (operand_equal_p): Move stripping of location wrapper
29478 after hash verification.
29479
29480 PR debug/89704
29481 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
29482 SIGN_EXTEND and ZERO_EXTEND.
29483
29484 2019-03-14 Jason Merrill <jason@redhat.com>
29485 Jakub Jelinek <jakub@redhat.com>
29486
29487 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
29488 than if is_empty (*slot).
29489 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
29490 existing elt and for elt removal.
29491 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
29492 of already removed elt.
29493
29494 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
29495
29496 PR target/89650
29497 * config/i386/i386.c (remove_partial_avx_dependency): Handle
29498 REG_EH_REGION note.
29499
29500 2019-03-14 Martin Liska <mliska@suse.cz>
29501
29502 PR other/89712
29503 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
29504
29505 2019-03-14 Richard Biener <rguenther@suse.de>
29506
29507 PR target/89711
29508 * config/i386/i386.c (make_resolver_func): Properly set
29509 DECL_CONTEXT on the RESULT_DECL.
29510 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
29511
29512 2019-03-14 Richard Biener <rguenther@suse.de>
29513
29514 * gimple-pretty-print.c: Include cfgloop.h.
29515 (dump_gimple_phi): Adjust.
29516 (dump_gimple_bb_header): Dump loop header for GIMPLE.
29517 (pp_cfg_jump): Adjust.
29518 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
29519 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
29520 (lower_phi_internal_fn): Remove.
29521 (verify_gimple_call): Remove IFN_PHI special-casing.
29522 (dump_function_to_file): Dump IL state.
29523 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
29524 done to deal with PHI nodes being present in non-SSA state.
29525
29526 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29527
29528 PR ipa/89684
29529 * multiple_target.c (create_dispatcher_calls): Change
29530 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
29531 In the node->iterate_referring loop, push *ref rather than ref, call
29532 ref->remove_reference () and always pass 0 to iterate_referring.
29533
29534 PR rtl-optimization/89679
29535 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
29536 would contain a paradoxical SUBREG.
29537
29538 2019-03-14 Richard Biener <rguenther@suse.de>
29539
29540 PR tree-optimization/89710
29541 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
29542 safe_dyn_cast.
29543
29544 2019-03-14 Martin Liska <mliska@suse.cz>
29545
29546 * coverage.c (coverage_begin_function): Stream also
29547 end_column.
29548 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
29549 documentation about function declaration location.
29550 * gcov-dump.c (tag_function): Print whole range
29551 of function declaration.
29552 * gcov.c (struct function_info): Add end_column field.
29553 (function_info::function_info): Initialize it.
29554 (output_json_intermediate_file): Output {start,end}_column
29555 fields.
29556 (read_graph_file): Read end_column.
29557
29558 2019-03-14 Richard Biener <rguenther@suse.de>
29559
29560 PR middle-end/89698
29561 * fold-const.c (operand_equal_p): For INDIRECT_REF check
29562 that the access types are similar.
29563
29564 2019-03-14 Jakub Jelinek <jakub@redhat.com>
29565
29566 PR tree-optimization/89703
29567 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
29568 aren't compatible also with builtin_decl_explicit. Check pure
29569 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
29570 and BUILT_IN_STPNCPY{,_CHK}.
29571
29572 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
29573
29574 PR target/89523
29575 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
29576 addr32 prefix to VSIB address for X32.
29577 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
29578 "%M2" to opcode.
29579 (*avx512pf_gatherpf<mode>df_mask): Likewise.
29580 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
29581 (*avx512pf_scatterpf<mode>df_mask): Likewise.
29582 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
29583 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
29584 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
29585 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
29586 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
29587 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
29588 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
29589 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
29590 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
29591 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
29592 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
29593 (*avx512f_scatterdi<mode>): Likewise.
29594
29595 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
29596
29597 PR target/85860
29598 * lra-constraints.c (inherit_in_ebb): Update
29599 potential_reload_hard_regs along with live_hard_regs.
29600
29601 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29602
29603 PR debug/89498
29604 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
29605 DWARF_OFFSET_SIZE.
29606 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
29607
29608 2019-03-13 Martin Sebor <msebor@redhat.com>
29609
29610 PR tree-optimization/89662
29611 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
29612 has a size.
29613
29614 2019-03-13 Richard Biener <rguenther@suse.de>
29615
29616 PR middle-end/89677
29617 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
29618 throw FP expressions at tree-affine.
29619
29620 2019-03-14 Richard Biener <rguenther@suse.de>
29621
29622 * tree-pretty-print.c (dump_generic_node): For -gimple properly
29623 dump negative integer constants using _Literal (type) -num.
29624
29625 2019-03-13 Jakub Jelinek <jakub@redhat.com>
29626
29627 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
29628 nonlocal_value member.
29629
29630 PR middle-end/88588
29631 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
29632 (ipa_simd_modify_function_body): Handle PHIs.
29633
29634 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29635
29636 * config/s390/s390.c (s390_option_override_internal): Use more
29637 aggressive inlining parameters.
29638
29639 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29640
29641 * config/s390/3906.md: New file.
29642 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
29643 (LONGRUNNING_THRESHOLD): Remove.
29644 (MAX_SCHED_MIX_SCORE): Decrease.
29645 (MAX_SCHED_MIX_DISTANCE): Decrease.
29646 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
29647 (struct s390_sched_state): New struct to hold scheduling state.
29648 (S390_SCHED_STATE_NORMAL): Remove.
29649 (S390_SCHED_STATE_CRACKED): Remove.
29650 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
29651 (s390_get_sched_attrmask): Use new attribute.
29652 (s390_get_unit_mask): Use new units.
29653 (s390_is_fpd): New function.
29654 (s390_is_fxd): New function.
29655 (s390_is_longrunning): New function.
29656 (s390_sched_score): Use new functions.
29657 (s390_sched_reorder): Likewise.
29658 (s390_sched_variable_issue): Rework and use new functions.
29659 (s390_sched_init): Use new functions.
29660 * config/s390/s390.h (s390_tune_attr): Add z14.
29661 * config/s390/s390.md: Add z14.
29662
29663 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
29664
29665 * config/s390/2964.md: Update pipeline description.
29666 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
29667 (LONGRUNNING_THRESHOLD): Remove.
29668 (LATENCY_FACTOR): Remove.
29669 (s390_get_unit_mask): Add unit.
29670 (s390_sched_score): Use fxd/fpd.
29671 (s390_sched_variable_issue): Use fxd/fpd.
29672
29673 2019-03-12 Martin Liska <mliska@suse.cz>
29674
29675 * config/i386/i386.c: Reword an error message.
29676
29677 2019-03-12 Martin Jambor <mjambor@suse.cz>
29678
29679 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
29680 terminate with newline.
29681
29682 2019-03-12 Jakub Jelinek <jakub@redhat.com>
29683
29684 PR target/52726
29685 * config/s390/s390.md (tabort): Use %wd instead of
29686 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
29687 letters and periods.
29688 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
29689 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
29690 's with %< and %>.
29691
29692 PR middle-end/89663
29693 * builtins.c (expand_builtin_int_roundingfn,
29694 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
29695 gcc_unreachable if validate_arglist fails.
29696
29697 2019-03-12 Richard Biener <rguenther@suse.de>
29698
29699 PR tree-optimization/89664
29700 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
29701 free the occurance tree after the early out.
29702
29703 2019-03-11 Jakub Jelinek <jakub@redhat.com>
29704
29705 PR middle-end/89655
29706 PR bootstrap/89656
29707 * vr-values.c (vr_values::update_value_range): If
29708 old_vr->varying_p (), don't update it, make new_vr also VARYING
29709 and return false.
29710
29711 2019-03-11 Martin Liska <mliska@suse.cz>
29712
29713 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29714 Fix double string quoting.
29715
29716 2019-03-11 Martin Liska <mliska@suse.cz>
29717
29718 * collect-utils.c (collect_wait): Wrap apostrophes
29719 in gcc internal format with %'.
29720 * collect2.c (main): Likewise.
29721 (scan_prog_file): Likewise.
29722 (scan_libraries): Likewise.
29723 * config/i386/i386.c (ix86_expand_call): Likewise.
29724 (ix86_handle_interrupt_attribute): Likewise.
29725 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
29726 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
29727 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
29728 * lto-wrapper.c (find_crtoffloadtable): Likewise.
29729 * symtab.c (symtab_node::verify_base): Likewise.
29730 * tree-cfg.c (verify_gimple_label): Likewise.
29731 * tree.c (verify_type_variant): Likewise.
29732
29733 2019-03-11 Martin Liska <mliska@suse.cz>
29734
29735 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
29736 in a string format message and fix GNU coding style.
29737 (expand_builtin_set_thread_pointer): Likewise.
29738 * common/config/aarch64/aarch64-common.c
29739 (aarch64_rewrite_selected_cpu): Likewise.
29740 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
29741 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
29742 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
29743 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
29744 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
29745 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
29746 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
29747 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
29748 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
29749 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
29750 Likewise.
29751 * common/config/riscv/riscv-common.c
29752 (riscv_subset_list::parsing_subset_version): Likewise.
29753 (riscv_subset_list::parse_std_ext): Likewise.
29754 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
29755 (riscv_subset_list::parse): Likewise.
29756 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
29757 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
29758 (aarch64_override_options_internal): Likewise.
29759 (aarch64_validate_mcpu): Likewise.
29760 (aarch64_validate_march): Likewise.
29761 (aarch64_validate_mtune): Likewise.
29762 (aarch64_override_options): Likewise.
29763 * config/alpha/alpha.c (alpha_option_override): Likewise.
29764 * config/arc/arc.c (arc_init): Likewise.
29765 (parse_mrgf_banked_regs_option): Likewise.
29766 (arc_override_options): Likewise.
29767 (arc_expand_builtin_aligned): Likewise.
29768 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
29769 (arm_expand_builtin): Likewise.
29770 * config/arm/arm.c (arm_option_check_internal): Likewise.
29771 (arm_configure_build_target): Likewise.
29772 (arm_option_override): Likewise.
29773 (arm_options_perform_arch_sanity_checks): Likewise.
29774 (arm_handle_cmse_nonsecure_entry): Likewise.
29775 (arm_handle_cmse_nonsecure_call): Likewise.
29776 (arm_tls_referenced_p): Likewise.
29777 (thumb1_expand_prologue): Likewise.
29778 * config/avr/avr.c (avr_option_override): Likewise.
29779 * config/bfin/bfin.c (bfin_option_override): Likewise.
29780 * config/c6x/c6x.c (c6x_option_override): Likewise.
29781 * config/cr16/cr16.c (cr16_override_options): Likewise.
29782 * config/cris/cris.c (cris_option_override): Likewise.
29783 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
29784 * config/darwin-c.c (macosx_version_as_macro): Likewise.
29785 * config/darwin.c (darwin_override_options): Likewise.
29786 * config/frv/frv.c (frv_expand_builtin): Likewise.
29787 * config/h8300/h8300.c (h8300_option_override): Likewise.
29788 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
29789 (ix86_option_override_internal): Likewise.
29790 (warn_once_call_ms2sysv_xlogues): Likewise.
29791 (ix86_expand_prologue): Likewise.
29792 (split_stack_prologue_scratch_regno): Likewise.
29793 (ix86_warn_parameter_passing_abi): Likewise.
29794 * config/ia64/ia64.c (fix_range): Likewise.
29795 * config/m68k/m68k.c (m68k_option_override): Likewise.
29796 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
29797 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
29798 (mips_set_compression_mode): Likewise.
29799 * config/mmix/mmix.c (mmix_option_override): Likewise.
29800 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
29801 * config/msp430/msp430.c (msp430_option_override): Likewise.
29802 * config/nds32/nds32.c (nds32_option_override): Likewise.
29803 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
29804 (nios2_option_override): Likewise.
29805 (nios2_expand_custom_builtin): Likewise.
29806 * config/nvptx/mkoffload.c (main): Likewise.
29807 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
29808 * config/pa/pa.c (fix_range): Likewise.
29809 (pa_option_override): Likewise.
29810 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
29811 (riscv_option_override): Likewise.
29812 * config/rl78/rl78.c (rl78_option_override): Likewise.
29813 * config/rs6000/aix61.h: Likewise.
29814 * config/rs6000/aix71.h: Likewise.
29815 * config/rs6000/aix72.h: Likewise.
29816 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
29817 * config/rs6000/freebsd64.h: Likewise.
29818 * config/rs6000/linux64.h: Likewise.
29819 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
29820 (rs6000_expand_zeroop_builtin): Likewise.
29821 (rs6000_expand_mtfsb_builtin): Likewise.
29822 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
29823 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
29824 (rs6000_invalid_builtin): Likewise.
29825 (rs6000_expand_split_stack_prologue): Likewise.
29826 * config/rs6000/rtems.h: Likewise.
29827 * config/rx/rx.c (valid_psw_flag): Likewise.
29828 (rx_expand_builtin): Likewise.
29829 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
29830 * config/s390/s390.c (s390_expand_builtin): Likewise.
29831 (s390_function_profiler): Likewise.
29832 (s390_option_override_internal): Likewise.
29833 (s390_option_override): Likewise.
29834 * config/sh/sh.c (sh_option_override): Likewise.
29835 (sh_builtin_saveregs): Likewise.
29836 (sh_fix_range): Likewise.
29837 * config/sh/vxworks.h: Likewise.
29838 * config/sparc/sparc.c (sparc_option_override): Likewise.
29839 * config/spu/spu.c (spu_option_override): Likewise.
29840 (fix_range): Likewise.
29841 * config/visium/visium.c (visium_option_override): Likewise.
29842 (visium_handle_interrupt_attr): Likewise.
29843 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
29844 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
29845 (dbg_cnt_process_opt): Likewise.
29846 * dwarf2out.c (output_dwarf_version): Likewise.
29847 * except.c (expand_eh_return): Likewise.
29848 * gcc.c (defined): Likewise.
29849 (driver_handle_option): Likewise.
29850 (process_command): Likewise.
29851 (compare_files): Likewise.
29852 (driver::prepare_infiles): Likewise.
29853 (driver::do_spec_on_infiles): Likewise.
29854 (driver::maybe_run_linker): Likewise.
29855 * omp-offload.c (oacc_parse_default_dims): Likewise.
29856 * opts-global.c (handle_common_deferred_options): Likewise.
29857 * opts.c (parse_sanitizer_options): Likewise.
29858 (common_handle_option): Likewise.
29859 (enable_warning_as_error): Likewise.
29860 * passes.c (enable_disable_pass): Likewise.
29861 * plugin.c (parse_plugin_arg_opt): Likewise.
29862 (default_plugin_dir_name): Likewise.
29863 * targhooks.c (default_expand_builtin_saveregs): Likewise.
29864 (default_pch_valid_p): Likewise.
29865 * toplev.c (init_asm_output): Likewise.
29866 (process_options): Likewise.
29867 (toplev::run_self_tests): Likewise.
29868 * tree-cfg.c (verify_gimple_call): Likewise.
29869 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
29870 (tree_inlinable_function_p): Likewise.
29871 * var-tracking.c (vt_find_locations): Likewise.
29872
29873 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
29874
29875 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
29876 only on the else branch.
29877
29878 2019-03-11 Martin Liska <mliska@suse.cz>
29879
29880 * gcov.c (output_intermediate_json_line): Print function
29881 name of each line.
29882 (output_json_intermediate_file): Add new argument.
29883 * doc/gcov.texi: Document the change.
29884
29885 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
29886
29887 PR rtl-optimization/89588
29888 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29889 explicit unrolling factor more robust.
29890
29891 2019-03-11 Richard Biener <rguenther@suse.de>
29892
29893 PR tree-optimization/89649
29894 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
29895 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
29896 on the prolog and epilog loops.
29897 (vect_loop_versioning): Return copy of loop.
29898 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
29899 on the non-vectorized version of the loop.
29900
29901 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
29902
29903 PR target/68924
29904 * config/i386/sse.md (*vec_extractv2di_0_sse):
29905 Add (=r,x) alternative and corresponding splitter.
29906
29907 2019-03-10 Martin Jambor <mjambor@suse.cz>
29908
29909 PR tree-optimization/85762
29910 PR tree-optimization/87008
29911 PR tree-optimization/85459
29912 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
29913 it points to if there is a type changing MEM_REF. Adjust all callers.
29914 (build_accesses_from_assign): Disable total scalarization if
29915 contains_vce_or_bfcref_p returns true through the new parameter, for
29916 both rhs and lhs.
29917
29918 2019-03-09 Jakub Jelinek <jakub@redhat.com>
29919
29920 PR c/88568
29921 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
29922 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
29923
29924 PR target/79645
29925 * common.opt (fdiagnostics-show-labels,
29926 fdiagnostics-show-line-numbers, fdiagnostics-format=,
29927 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
29928 gas-locview-support, ginline-points, ginternal-reset-location-views):
29929 Terminate description text with a dot.
29930 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
29931 * config/mcore/mcore.opt (m210, m340): Likewise.
29932 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
29933 mnops=): Start description text with a capital letter.
29934 * config/arc/arc.opt (msize-level=): Likewise.
29935 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
29936 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
29937 mnewlib): Likewise.
29938 * config/ft32/ft32.opt (msim): Likewise.
29939 (mft32b, mcompress): Likewise. Terminate description text with a dot.
29940 (mnodiv, mnopm): Terminate description text with a dot.
29941 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
29942 a colon.
29943 * config/i386/i386.opt (prefer_vector_width, instrument_return):
29944 Likewise.
29945 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
29946 text.
29947
29948 PR rtl-optimization/89634
29949 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
29950 are modified in BB_END (e->src) instruction.
29951
29952 2019-03-08 David Malcolm <dmalcolm@redhat.com>
29953
29954 PR target/79926
29955 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
29956 messages more amenable to translation, and improve wording.
29957
29958 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
29959
29960 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
29961 ud- and du-chains between phases.
29962
29963 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
29964
29965 PR debug/89631
29966 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
29967 instead of POLY_INT_CST.
29968
29969 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
29970
29971 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
29972 requirement.
29973
29974 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
29975
29976 PR target/68924
29977 PR target/78782
29978 PR target/87558
29979 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
29980 (_mm_storeu_si64): Ditto.
29981
29982 2019-03-08 Martin Liska <mliska@suse.cz>
29983
29984 PR target/86952
29985 * config/i386/i386.c (ix86_option_override_internal): Disable
29986 jump tables when retpolines are used.
29987
29988 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
29989
29990 PR go/63560
29991 * ipa-split.c (execute_split_functions): Do not split
29992 'noinline' or 'section' function.
29993
29994 2019-03-08 Jakub Jelinek <jakub@redhat.com>
29995
29996 PR target/79846
29997 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
29998 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
29999 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30000
30001 PR ipa/80000
30002 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30003 from diagnostics. Formatting fixes.
30004
30005 PR target/85665
30006 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30007 warn_odr diagnostics.
30008
30009 PR other/80058
30010 * lra-constraints.c (process_alt_operands): Avoid one space before
30011 " at the end of line and another after " on another line in a string
30012 literal.
30013 * attribs.c (handle_dll_attribute): Likewise.
30014 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30015
30016 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30017 warning_at or inform messages in G_() if there is no ?:.
30018
30019 PR tree-optimization/89550
30020 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30021 returned true. Formatting fixes.
30022 (expand_builtin_strnlen): Formatting fixes.
30023 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30024 if warning_at returned true.
30025 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30026
30027 2019-03-08 Richard Biener <rguenther@suse.de>
30028
30029 PR middle-end/89578
30030 * cfgloop.h (struct loop): Add owned_clique field.
30031 * cfgloopmanip.c (copy_loop_info): Copy it.
30032 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30033 cliques.
30034 * tree-inline.c (copy_loops): Remap owned_clique.
30035 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30036 * lto-streamer-out.c (output_cfg): Likewise.
30037
30038 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30039
30040 PR target/80190
30041 * config/darwin.c: Include intl.h.
30042 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30043 composing the message out of two separate parts.
30044
30045 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30046
30047 PR target/80003
30048 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30049 doesn't start with a capital letter and doesn't end with a dot.
30050 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30051 with a capital letter.
30052 (ix86_mangle_function_version_assembler_name): Likewise.
30053 (ix86_generate_version_dispatcher_body): Likewise.
30054 (fold_builtin_cpu): Likewise.
30055 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30056 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30057 translators, wrap full type name in %qs.
30058
30059 PR translation/79999
30060 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30061 depend clause with source (or sink) modifier.
30062 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30063
30064 PR target/89602
30065 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30066 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30067 (avx512f_load<mode>_mask): New define_expand.
30068 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30069 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30070 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30071 __builtin_ia32_movess_mask): New builtins.
30072 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30073 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30074 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30075 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30076
30077 2019-03-07 Martin Jambor <mjambor@suse.cz>
30078
30079 PR lto/87525
30080 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30081 for extern inline functions.
30082
30083 2019-03-07 Martin Jambor <mjambor@suse.cz>
30084
30085 PR ipa/88235
30086 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30087 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30088 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30089 have multiple callees. At the end check if declarations match as
30090 opposed to cgraph_nodes.
30091
30092 2019-03-07 Martin Liska <mliska@suse.cz>
30093
30094 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30095 which is equivalent to searching for this in clones chain.
30096 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30097 names with a neighbour and special case first node in a chain.
30098
30099 2019-01-25 Jason Merrill <jason@redhat.com>
30100
30101 PR c++/80916 - spurious "static but not defined" warning.
30102 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30103 for an internal symbol with DECL_EXTERNAL.
30104
30105 2019-04-07 Richard Biener <rguenther@suse.de>
30106
30107 PR middle-end/89618
30108 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30109 * tree-inline.c (copy_loops): Simplify.
30110
30111 2019-03-07 Martin Liska <mliska@suse.cz>
30112
30113 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30114
30115 2019-03-07 Richard Biener <rguenther@suse.de>
30116
30117 PR tree-optimization/89595
30118 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30119 stmt iterator as reference, take boolean output parameter to
30120 indicate whether the stmt was removed and thus the iterator
30121 already advanced.
30122 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30123 stmts created by folding.
30124
30125 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30126
30127 PR c++/89585
30128 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30129 at toplevel.
30130
30131 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30132
30133 PR rtl-optimization/88845
30134 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30135 LRA.
30136 * lra.c (remove_scratches_1): New function.
30137 (remove_scratches): Use it.
30138 (lra_emit_move): Likewise.
30139
30140 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30141
30142 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30143 unaligned_access variable.
30144 * config/arc/arc.c (arc_override_options): Set unaligned access
30145 default on for HS CPUs.
30146 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30147
30148 2019-03-06 Martin Liska <mliska@suse.cz>
30149
30150 PR gcov-profile/89577
30151 * doc/gcov.texi: Prefer to use --coverage.
30152 * doc/sourcebuild.texi: Likewise.
30153
30154 2019-03-02 Jason Merrill <jason@redhat.com>
30155
30156 PR c++/86485 - -Wmaybe-unused with empty class ?:
30157 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30158
30159 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30160
30161 PR target/89587
30162 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30163 if_multiarch.
30164
30165 PR middle-end/89590
30166 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30167 exactly one argument.
30168
30169 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30170 Richard Sandiford <richard.sandiford@arm.com>
30171
30172 PR tree-optimization/89570
30173 * match.pd (vec_cond into cond_op simplification): Don't use
30174 get_conditional_internal_fn, use as_internal_fn (cond_op).
30175
30176 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30177
30178 PR target/89222
30179 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30180 to decide when to split off a non-zero offset from a symbol.
30181 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30182 in function symbols.
30183
30184 2019-03-05 Richard Biener <rguenther@suse.de>
30185
30186 PR tree-optimization/89594
30187 * tree-if-conv.c (pass_if_conversion::execute): Handle
30188 case where .LOOP_VECTORIZED_FUNCTION was removed.
30189
30190 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30191
30192 PR bootstrap/89560
30193 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30194 instead alloca it only when needed with the needed size.
30195
30196 PR tree-optimization/89570
30197 * match.pd (vec_cond into cond_op simplification): Guard with
30198 vectorized_internal_fn_supported_p test and #if GIMPLE.
30199
30200 PR tree-optimization/89566
30201 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30202 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30203 Punt if get_user_idx_format succeeds, but idx_format argument is
30204 not provided or doesn't have pointer type, or if idx_args is above
30205 number of provided arguments.
30206
30207 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30208
30209 PR tree-optimization/89437
30210 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30211
30212 2019-03-04 Richard Biener <rguenther@suse.de>
30213
30214 PR middle-end/89572
30215 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30216 safe_dyn_cast.
30217
30218 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
30219
30220 PR tree-optimization/89487
30221 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30222 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30223 (distribute_loop): Don't do runtime alias check if there is non-
30224 addressable data reference.
30225 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30226 is a register variable.
30227
30228 2019-03-02 Jakub Jelinek <jakub@redhat.com>
30229
30230 PR target/89506
30231 * config/arm/arm.md (cmpsi2_addneg): Use
30232 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30233 If operands[2] is 0 or INT_MIN, force use of subs.
30234 (*compare_scc splitter): Use gen_int_mode.
30235 (*negscc): Likewise.
30236 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30237
30238 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
30239 Monk Chiang <sh.chiang04@gmail.com>
30240
30241 * common/config/riscv/riscv-common.c: Include sstream.
30242 (riscv_subset_list::to_string): New.
30243 (riscv_arch_str): Likewise.
30244 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30245 * config.in: Regen.
30246 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30247 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30248 (riscv_emit_attribute): New.
30249 (riscv_file_start): Emit attribute if needed.
30250 (riscv_option_override): Init riscv_emit_attribute_p.
30251 * config/riscv/riscv.opt (mriscv-attribute): New option.
30252 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30253 * configure: Regen.
30254 * doc/install.texi: Document --with-riscv-attribute.
30255 * doc/invoke.texi: Document -mriscv-attribute.
30256
30257 * common/config/riscv/riscv-common.c:
30258 Include config/riscv/riscv-protos.h.
30259 (INCLUDE_STRING): Defined.
30260 (RISCV_DONT_CARE_VERSION): Defined.
30261 (riscv_subset_t): Declare.
30262 (riscv_subset_t::riscv_subset_t): New.
30263 (riscv_subset_list): Declare.
30264 (riscv_subset_list::riscv_subset_list): New.
30265 (riscv_subset_list::~riscv_subset_list): Likewise.
30266 (riscv_subset_list::parsing_subset_version): Likewise.
30267 (riscv_subset_list::parse_std_ext): Likewise.
30268 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30269 (riscv_subset_list::add): Likewise.
30270 (riscv_subset_list::lookup): Likewise.
30271 (riscv_subset_list::xlen): Likewise.
30272 (riscv_subset_list::parse): Likewise.
30273 (riscv_supported_std_ext): Likewise.
30274 (current_subset_list): Likewise.
30275 (riscv_parse_arch_string): Using riscv_subset_list::parse to
30276 parse.
30277
30278 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
30279
30280 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30281 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
30282 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
30283
30284 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
30285
30286 PR rtl-optimization/85899
30287 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
30288 fallthru edges leading to the exit block.
30289
30290 2019-03-01 Tamar Christina <tamar.christina@arm.com>
30291
30292 PR target/89517
30293 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
30294 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
30295
30296 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
30297
30298 PR tree-optimization/89535
30299 * tree-vect-stmts.c (vectorizable_call): Record the vector types
30300 for each operand. Calculate the fallback choice for mask operands
30301 and pass it to vect_get_vec_def_for_operand.
30302
30303 2019-03-01 Richard Biener <rguenther@suse.de>
30304
30305 PR middle-end/89541
30306 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
30307 get virtual operands.
30308 (get_expr_operands): Handle CONST_DECL like other decls.
30309
30310 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30311
30312 PR middle-end/89503
30313 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
30314 on DECL_P and EXPR_P.
30315
30316 2019-03-01 Richard Biener <rguenther@suse.de>
30317
30318 PR middle-end/89497
30319 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
30320 argument, defaulted to zero.
30321 * passes.c (execute_function_todo): Pass down SSA update flags
30322 to cleanup_tree_cfg.
30323 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
30324 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
30325 form if requested.
30326 (cleanup_tree_cfg): Get and pass down SSA update flags.
30327
30328 2019-03-01 Jakub Jelinek <jakub@redhat.com>
30329
30330 PR bootstrap/89539
30331 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
30332 early_lto_debug argument.
30333
30334 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
30335
30336 PR tree-optimization/89536
30337 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
30338 only whether bit #0 of the value is 0 instead of the entire value.
30339
30340 2019-02-28 Marek Polacek <polacek@redhat.com>
30341
30342 PR c++/87068 - missing diagnostic with fallthrough statement.
30343 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
30344 at the end of a seq, save its location to walk_stmt_info.
30345 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
30346 a switch.
30347
30348 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
30349
30350 PR lto/88585
30351 * tree.c (find_atomic_core_type): Move ahead in file.
30352 (check_base_type): Correctly compare alignments of atomic types.
30353
30354 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
30355
30356 PR target/89455
30357 * config/i386/i386.c (get_builtin_code_for_version): Identify
30358 Westmere from PCLMUL, instead of AES.
30359
30360 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30361
30362 PR target/89434
30363 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
30364 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
30365 -UINTVAL (...).
30366
30367 2019-02-28 Tamar Christina <tamar.christina@arm.com>
30368
30369 PR target/88530
30370 * config/aarch64/aarch64-option-extensions.def: Document it.
30371 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
30372 if empty hwcaps.
30373
30374 2019-02-28 Jakub Jelinek <jakub@redhat.com>
30375
30376 PR c/89520
30377 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
30378 builtins if they don't have a single scalar floating point argument.
30379 Formatting fixes.
30380
30381 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
30382
30383 PR rtl-optimization/89490
30384 * varasm.c (get_block_for_section): Bail out for mergeable sections.
30385 (default_use_anchors_for_symbol_p, output_object_block): Assert the
30386 block section is not mergeable.
30387
30388 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30389
30390 PR target/70341
30391 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
30392 old define_insn to ...
30393 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
30394 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
30395 Rename old define_insn to ...
30396 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
30397 (thumb2_casesi_internal_pic): New define_expand. Rename old
30398 define_insn to ...
30399 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
30400 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
30401 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
30402
30403 2019-02-27 Richard Biener <rguenther@suse.de>
30404
30405 PR debug/88878
30406 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
30407
30408 2019-02-27 Richard Biener <rguenther@suse.de>
30409
30410 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
30411 building.
30412
30413 2019-02-27 Richard Biener <rguenther@suse.de>
30414
30415 PR debug/88878
30416 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
30417 parameter, prefix section name with .gnu.debuglto_ if true.
30418 (dwarf2out_finish): Pass false to output_comdat_type_unit.
30419 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
30420
30421 2019-02-27 Richard Biener <rguenther@suse.de>
30422
30423 PR debug/89514
30424 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
30425 rather than on use_debug_types, doing what output_die does.
30426 (value_format): Likewise.
30427
30428 2019-02-27 Martin Jambor <mjambor@suse.cz>
30429 Martin Sebor <msebor@redhat.com>
30430
30431 * doc/invoke.texi (Warning Options): Reword description of
30432 -Wno-absolute-value.
30433
30434 2019-02-27 Jakub Jelinek <jakub@redhat.com>
30435
30436 PR tree-optimization/89280
30437 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
30438 builtin_setjmp_setup_bb): New functions.
30439 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
30440 When visiting __builtin_setjmp_setup block, queue in special
30441 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
30442 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
30443 from visited after the loop if they don't have any visited successor
30444 blocks.
30445
30446 2018-02-26 Steve Ellcey <sellcey@marvell.com>
30447
30448 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
30449 New function.
30450 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
30451
30452 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30453
30454 PR c++/89507
30455 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
30456 with types other than sizetype/ssizetype.
30457
30458 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30459
30460 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
30461 (enum sparc_processor_type): ...this.
30462 (enum sparc_code_model_type): New enumeration type.
30463 (enum sparc_memory_model_type): Tweak comments.
30464 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
30465 (mtune): Likewise.
30466 (mcmodel): Use sparc_code_model enumeration and variable.
30467 (sparc_code_model): New enumeration.
30468 (mdebug): Add Undocumented marker.
30469 * config/sparc/sparc.h (enum cmodel): Delete.
30470 (sparc_cmodel): Likewise.
30471 (TARGET_CM_MEDLOW): Adjust to above renaming.
30472 (TARGET_CM_MEDMID): Likewise.
30473 (TARGET_CM_MEDANY): Likewise.
30474 (TARGET_CM_EMBMEDANY): Likewise.
30475 * config/sparc/sparc.c (sparc_cmodel): Delete.
30476 (sparc_option_override): Remove string/value mapping support for the
30477 code model. Move code and memory model support to after the handling
30478 of target flags. Do private machine setup last.
30479 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
30480 (sparc_legitimize_reload_address): Likewise.
30481 (sparc_output_mi_thunk): Likewise.
30482 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
30483
30484 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30485
30486 PR tree-optimization/89500
30487 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
30488 (handle_builtin_strlen): Remove noncst_bound variable. Always
30489 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
30490 cst if the first cst bytes starting at x are known to be non-zero,
30491 even if the string is not zero terminated. Don't try to modify
30492 *si for strnlen. Update strlen_to_stridx only for strlen or if
30493 we can prove strnlen returns the same value as strlen would.
30494
30495 2019-02-26 Martin Liska <mliska@suse.cz>
30496
30497 * alloc-pool.h (struct pool_usage): Remove extra
30498 print_dash_line.
30499 * bitmap.h (struct bitmap_usage): Likewise.
30500 * ggc-common.c (struct ggc_usage): Likewise.
30501 * mem-stats.h (struct mem_usage): Likewise.
30502 (mem_alloc_description::dump): Print dash lines
30503 here and repeat header at the end of a table report.
30504 It's then more readable.
30505 * tree-phinodes.c (phinodes_print_statistics): Make
30506 horizontal alignment.
30507 * tree-ssanames.c (ssanames_print_statistics): Likewise.
30508 * vec.c (struct vec_usage): Remove extra print_dash_line.
30509 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
30510
30511 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
30512
30513 * doc/extend.texi (__builtin_object_size):
30514 Use @pxref instead of @xref inside parenthesis.
30515 (__builtin_has_attribute): Add missing comma after @xref.
30516 (__builtin_object_size): Ditto.
30517 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
30518
30519 2019-02-26 Jeff Law <law@redhat.com>
30520
30521 PR rtl-optimization/87761
30522 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
30523 detect obviously dead insns and delete them.
30524
30525 2019-02-26 Richard Biener <rguenther@suse.de>
30526
30527 PR tree-optimization/89505
30528 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
30529 to handle restrict pointed-to vars with multiple subvars
30530 correctly.
30531
30532 2019-02-26 Richard Biener <rguenther@suse.de>
30533
30534 PR tree-optimization/89489
30535 * tree-parloops.c (create_loop_fn): Copy over last_clique.
30536
30537 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
30538
30539 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
30540 and move around comment.
30541 <BIT_AND_EXPR>: Likewise.
30542 <BIT_NOT_EXPR>: Add specific handling for boolean types.
30543
30544 2019-02-26 Jakub Jelinek <jakub@redhat.com>
30545
30546 PR target/89474
30547 * config/i386/i386.c (remove_partial_avx_dependency): Call
30548 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
30549 after changing possibly many instructions to use that pseudo. Fix up
30550 insertion of v4sf_const0 setter at the start of bb.
30551
30552 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30553
30554 PR c/80409
30555 * doc/extend.texi (Variadic Pointer Args): New section.
30556
30557 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
30558 Martin Sebor <msebor@gmail.com>
30559
30560 * common.opt (Wattribute-alias): Likewise.
30561 * doc/invoke.texi (Option Summary): List general form of
30562 -Wattribute-alias=. List positive form of -Wmissing-attributes.
30563 (-Wmissing-attributes): Invert entry, rewrite and correct default.
30564 Add cross-references.
30565 (-Wattribute-alias): Rewrite and correct default. Mention
30566 considered attributes (same as for -Wmissing-attributes).
30567
30568 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
30569
30570 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
30571 (_mm_cvtpd_ps): Likewise.
30572 (_mm_cvttpd_epi32): Likewise.
30573
30574 PR target/89338
30575 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
30576 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
30577
30578 PR target/89339
30579 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
30580
30581 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30582
30583 PR target/88530
30584 * common/config/aarch64/aarch64-common.c
30585 (struct aarch64_option_extension): Add is_synthetic.
30586 (all_extensions): Use it.
30587 (TARGET_OPTION_INIT_STRUCT): Define hook.
30588 (struct gcc_targetm_common): Moved to end.
30589 (all_extensions_by_on): New.
30590 (opt_ext_cmp, typedef opt_ext): New.
30591 (aarch64_option_init_struct): New.
30592 (aarch64_contains_opt): New.
30593 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
30594 * config/aarch64/aarch64-option-extensions.def
30595 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
30596 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
30597 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
30598 Set is_synthetic to false.
30599 (crypto): Set is_synthetic to true.
30600 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
30601 SYNTHETIC.
30602
30603 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30604
30605 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30606 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
30607 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30608 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
30609 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
30610 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
30611 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
30612 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
30613 Rename ...
30614 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
30615 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
30616 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
30617 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
30618 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
30619 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
30620 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
30621 vfmlsl_laneq_high_f16): ... To this.
30622 * config/arm/neon.md: Update comments.
30623
30624 2019-02-25 Tamar Christina <tamar.christina@arm.com>
30625
30626 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
30627 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
30628 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
30629 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
30630 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
30631 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
30632 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
30633 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
30634 Rename ...
30635 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
30636 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
30637 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
30638 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
30639 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
30640 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
30641 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
30642 vfmlslq_laneq_high_f16): ... To this.
30643
30644 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
30645
30646 PR rtl-optimization/86096
30647 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
30648 comparing mw_order values.
30649
30650 2019-02-25 Jakub Jelinek <jakub@redhat.com>
30651
30652 PR target/89434
30653 * config/arm/arm.md (*subsi3_carryin_const): Use
30654 arm_neg_immediate_operand predicate instead of
30655 arm_not_immediate_operand, "L" constraint instead of "K" and
30656 print it using %n2 instead of %B2.
30657 (*subsi3_carryin_const0): New define_insn.
30658 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
30659 instead of arm_not_operand and "I" constraint instead of "K" and
30660 print it using %n3 instead of %B2. Instead of using match_dup 2 add
30661 another match_operand and in the condition check that it is negation
30662 of operands[2].
30663 (*subsi3_carryin_compare_const0): New define_ins.
30664 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
30665 *subsi3_carryin_const.
30666 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
30667 split into *subsi3_carryin_compare_const0 if the highpart is zero.
30668
30669 PR target/89438
30670 * config/arm.vfp.md (*negdf2_vfp): Use
30671 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
30672 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
30673
30674 2019-02-24 Jakub Jelinek <jakub@redhat.com>
30675
30676 PR rtl-optimization/89445
30677 * simplify-rtx.c (simplify_ternary_operation): Don't use
30678 simplify_merge_mask on operands that may trap.
30679 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
30680 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
30681 second operand is CONST_VECTOR, check if any element could be zero.
30682 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
30683 their operands can trap.
30684
30685 2019-02-23 Martin Sebor <msebor@redhat.com>
30686
30687 * gimple-ssa-sprintf.c (target_strtol): Rename...
30688 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
30689 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
30690 check for range error.
30691
30692 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
30693
30694 PR driver/69471
30695 * opts-common.c (prune_options): Also prune joined switches
30696 with Negative and RejectNegative.
30697 * config/i386/i386.opt (march=): Add Negative(march=).
30698 (mtune=): Add Negative(mtune=).
30699 * doc/options.texi: Document Negative used together with Joined
30700 and RejectNegative.
30701
30702 2019-02-22 Martin Sebor <msebor@redhat.com>
30703
30704 * doc/extend.texi (Other Builtins): Add
30705 __builtin_is_constant_evaluated.
30706
30707 2019-02-22 Richard Biener <rguenther@suse.de>
30708
30709 PR tree-optimization/87609
30710 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
30711
30712 2019-02-22 Jeff Law <law@redhat.com>
30713
30714 PR rtl-optimization/87761
30715 * config/mips/mips.md: Add new combiner pattern to recognize
30716 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
30717
30718 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
30719
30720 PR target/89324
30721 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
30722 destination register in peepholes generating patterns for ADDS/SUBS.
30723 (add<mode>3_compare0,
30724 *addsi3_compare0_uxtw, add<mode>3_compareC,
30725 add<mode>3_compareV_imm, add<mode>3_compareV,
30726 *adds_<optab><ALLX:mode>_<GPI:mode>,
30727 *subs_<optab><ALLX:mode>_<GPI:mode>,
30728 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
30729 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
30730 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
30731 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
30732 sub<mode>3_compare1): Allow stack pointer for source register.
30733 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
30734
30735 2019-02-22 Martin Sebor <msebor@redhat.com>
30736
30737 PR tree-optimization/88993
30738 PR tree-optimization/88853
30739 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
30740 New helper.
30741 (sprintf_dom_walker::call_info::is_string_func): New helper.
30742 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
30743 for formatted string functions.
30744 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
30745
30746 2019-02-22 Martin Sebor <msebor@redhat.com>
30747
30748 PR c/89425
30749 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
30750 unreachable subexpressions.
30751
30752 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
30753 Hongtao Liu <hongtao.liu@intel.com>
30754 Sunil K Pandey <sunil.k.pandey@intel.com>
30755
30756 PR target/87007
30757 * config/i386/i386-passes.def: Add
30758 pass_remove_partial_avx_dependency.
30759 * config/i386/i386-protos.h
30760 (make_pass_remove_partial_avx_dependency): New.
30761 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
30762 New function.
30763 (pass_data_remove_partial_avx_dependency): New.
30764 (pass_remove_partial_avx_dependency): Likewise.
30765 (make_pass_remove_partial_avx_dependency): Likewise.
30766 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
30767 (*extendsfdf2): Add avx_partial_xmm_update.
30768 (truncdfsf2): Likewise.
30769 (*float<SWI48:mode><MODEF:mode>2): Likewise.
30770 (SF/DF conversion splitters): Disabled for TARGET_AVX.
30771
30772 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
30773
30774 PR middle-end/85598
30775 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
30776 analysis for pass.
30777
30778 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
30779
30780 PR target/89444
30781 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
30782 (PTA_SKYLAKE): Add PTA_AES.
30783 (PTA_GOLDMONT): Likewise.
30784
30785 2019-02-22 Sudakshina Das <sudi.das@arm.com>
30786
30787 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
30788 instruction if enabled.
30789 (aarch64_override_options): Remove reference to return address key.
30790
30791 2019-02-22 Richard Biener <rguenther@suse.de>
30792
30793 PR tree-optimization/89440
30794 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
30795 not necessary assert.
30796
30797 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
30798
30799 PR fortran/72741
30800 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
30801 (oacc_replace_fn_attrib_attr): ... this new function.
30802 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
30803 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
30804
30805 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30806
30807 * config/arm/arm-cpus.in (ares): Rename to...
30808 (neoverse-n1): ... This. Add ares as alias.
30809 * config/arm/arm-tables.opt: Regenerate.
30810 * config/arm/arm-tune.md: Likewise.
30811 * doc/invoke.txt (ARM Options): Document neoverse-n1.
30812
30813 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30814
30815 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
30816 * config/aarch64/aarch64-tune.md: Regenerate.
30817 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
30818
30819 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30820
30821 * config/aarch64/aarch64.c (ares_tunings): Rename to...
30822 (neoversen1_tunings): ... This.
30823 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
30824 (neoverse-n1): New CPU.
30825 * config/aarch64/aarch64-tune.md: Regenerate.
30826 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
30827
30828 2019-02-22 Richard Biener <rguenther@suse.de>
30829
30830 PR middle-end/87609
30831 * cfghooks.h (dependence_hash): New typedef.
30832 (struct copy_bb_data): New type.
30833 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
30834 (duplicate_block): Likewise.
30835 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
30836 (copy_bbs): Create and pass down copy_bb_data.
30837 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
30838 (rtl_duplicate_bb): Likewise.
30839 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
30840 remap dependence info.
30841
30842 2019-02-22 Richard Biener <rguenther@suse.de>
30843
30844 PR tree-optimization/87609
30845 * tree-core.h (tree_base): Document special clique values.
30846 * tree-inline.c (remap_dependence_clique): Do not use the
30847 special clique value of one.
30848 (maybe_set_dependence_info): Use clique one.
30849 (clear_dependence_clique): New callback.
30850 (compute_dependence_clique): Clear clique one from all refs
30851 before assigning it (again).
30852
30853 2019-02-21 Martin Sebor <msebor@redhat.com>
30854
30855 * doc/extend.texi (__clear_cache): Correct signature.
30856
30857 2019-02-21 Ian Lance Taylor <iant@golang.org>
30858
30859 PR go/89170
30860 * varasm.c (decode_addr_const): Call lookup_constant_def rather
30861 than output_constant_def.
30862 (add_constant_to_table): New static function.
30863 (output_constant_def): Call add_constant_to_table.
30864 (tree_output_constant_def): Likewise.
30865
30866 2019-02-21 Jakub Jelinek <jakub@redhat.com>
30867
30868 PR c++/89285
30869 * builtins.c (fold_builtin_arith_overflow): If first two args are
30870 INTEGER_CSTs, set intres and ovfres to constants rather than calls
30871 to ifn.
30872
30873 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
30874
30875 PR target/87412
30876 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
30877 error for -mindirect-branch/-mfunction-return with incompatible
30878 -fcf-protection.
30879
30880 2019-02-21 Jakub Jelinek <jakub@redhat.com>
30881
30882 PR bootstrap/88714
30883 * constraints.md (q): Remove.
30884 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
30885 instead of q.
30886
30887 2019-02-21 Martin Jambor <mjambor@suse.cz>
30888
30889 PR hsa/89302
30890 * omp-general.c (omp_extract_for_data): Removed a duplicate call
30891 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
30892 (omp_adjust_for_condition): ...here. Added necessary parameters.
30893 * omp-general.h (omp_adjust_for_condition): Updated declaration.
30894 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
30895 proper values to new parameters of omp_adjust_for_condition.
30896
30897 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30898
30899 PR middle-end/89412
30900 * expr.c (expand_assignment): If result is a MEM, use change_address
30901 instead of simplify_gen_subreg.
30902
30903 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30904 David Malcolm <dmalcolm@redhat.com>
30905
30906 PR middle-end/89091
30907 * fold-const.c (decode_field_reference): Return NULL_TREE if
30908 lang_hooks.types.type_for_size returns NULL. Check it before
30909 overwriting *exp_. Use return NULL_TREE instead of return 0.
30910
30911 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30912
30913 PR middle-end/88074
30914 PR middle-end/89415
30915 * toplev.c (do_compile): Double the emin/emax exponents to workaround
30916 buggy mpc_norm.
30917
30918 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
30919
30920 PR target/89397
30921 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
30922 TARGET_SSE in addition to TARGET_SSE_MATH.
30923
30924 (ix86_excess_precision): Ditto.
30925 (ix86_float_exceptions_rounding_supported_p): Ditto.
30926 (use_rsqrt_p): Ditto.
30927 * config/i386/sse.md (rsqrt<mode>2): Ditto.
30928
30929 2019-02-20 David Malcolm <dmalcolm@redhat.com>
30930
30931 PR c/89410
30932 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
30933 linenum_arith_t when determining if two adjacent line spans are
30934 close enough to merge.
30935 (diagnostic_show_locus): Use linenum_arith_t when iterating over
30936 lines within each line_span.
30937
30938 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
30939
30940 PR target/86487
30941 * lra-constraints.c(uses_hard_regs_p): Fix handling of
30942 paradoxical SUBREGS.
30943
30944 2019-02-20 Li Jia He <helijia@linux.ibm.com>
30945
30946 PR target/88100
30947 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
30948 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
30949 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
30950 range checking it.
30951
30952 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
30953
30954 * config/gcn/gcn.c (print_operand): Fix typo.
30955
30956 2019-02-19 Richard Biener <rguenther@suse.de>
30957
30958 PR middle-end/88074
30959 * toplev.c (do_compile): Initialize mpfr's exponent range
30960 based on available float modes.
30961
30962 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
30963
30964 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
30965 as long as the epilogue isn't completed.
30966
30967 2019-02-18 Martin Sebor <msebor@redhat.com>
30968
30969 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
30970 __has_cpp_attribute, and __has_include.
30971
30972 2019-02-18 Martin Sebor <msebor@redhat.com>
30973
30974 * doc/invoke.texi (-Wreturn-type): Correct and expand.
30975
30976 2019-02-18 Martin Sebor <msebor@redhat.com>
30977
30978 PR middle-end/89294
30979 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
30980 expression.
30981 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
30982
30983 2019-02-18 Richard Biener <rguenther@suse.de>
30984
30985 PR tree-optimization/89296
30986 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
30987 of no-warning flag to cases that might emit the bogus warning.
30988
30989 2019-02-18 Jakub Jelinek <jakub@redhat.com>
30990
30991 PR bootstrap/88714
30992 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
30993 "q" constraint.
30994 * config/arm/vfp.md (*movdi_vfp): Likewise.
30995 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
30996 "q" constraint for operands[0].
30997
30998 PR target/89369
30999 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31000 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31001 pattern in a temporary buffer.
31002 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31003 than 64-operands[2].
31004
31005 PR target/89361
31006 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31007 s390_indirect_branch_settings): Define unconditionally.
31008 (s390_set_current_function): Likewise, but guard the whole body except
31009 the s390_indirect_branch_settings call with
31010 #if S390_USE_TARGET_ATTRIBUTE.
31011 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31012
31013 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31014 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31015 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31016 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31017 HOST_WIDE_INT_1U instead of 1ULL.
31018 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31019 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31020 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31021 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31022 instead of 1UL.
31023 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31024 instead of 1ul.
31025
31026 2019-02-18 Martin Jambor <mjambor@suse.cz>
31027
31028 PR tree-optimization/89209
31029 * tree-sra.c (create_access_replacement): New optional parameter
31030 reg_tree. Use it as a type if non-NULL and access type is not of
31031 a register type.
31032 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31033 to create_access_replacement.
31034 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31035 Check lacc is non-NULL before attempting to re-create it on the RHS.
31036
31037 2019-02-18 Martin Liska <mliska@suse.cz>
31038
31039 PR ipa/89306
31040 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31041 by default.
31042 (symbol_table::free_edge): Recycle m_summary_id.
31043 * cgraph.h (get_summary_id): New.
31044 (symbol_table::release_symbol): Set m_summary_id to -1
31045 by default.
31046 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31047 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31048 function_summary to fast_function_summary.
31049 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31050 * ipa-pure-const.c (class funct_state_summary_t):
31051 Switch from function_summary to fast_function_summary.
31052 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31053 (class ipa_ref_opt_summary_t): Switch from function_summary
31054 to fast_function_summary.
31055 * symbol-summary.h (class function_summary_base): New class
31056 that is created from base of former function_summary.
31057 (function_summary_base::unregister_hooks): New.
31058 (class function_summary): Inherit from function_summary_base.
31059 (class call_summary_base): New class
31060 that is created from base of former call_summary.
31061 (class call_summary): Inherit from call_summary_base.
31062 (struct is_same): New.
31063 (class fast_function_summary): New summary class.
31064 (class fast_call_summary): New summary class.
31065 * vec.h (vec_safe_grow_cleared): New function.
31066
31067 2019-02-18 Martin Liska <mliska@suse.cz>
31068
31069 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31070 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31071 * doc/tm.texi: Document new target hook.
31072 * doc/tm.texi.in: Likewise.
31073 * target.def: Add new target macro.
31074 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31075 suffixes.
31076
31077 2019-02-17 Alan Modra <amodra@gmail.com>
31078
31079 PR target/89271
31080 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31081 output reg on add insn.
31082 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31083
31084 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31085
31086 PR target/89372
31087 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31088 (PMULHRSW): Likewise.
31089 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31090 TARGET_AVX2.
31091 (ssse3_pmulhrswv4hi3): New expander.
31092
31093 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31094
31095 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31096 MMX. Add isa attribute.
31097
31098 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31099
31100 PR rtl-optimization/66152
31101 * builtins.h (c_readstr): Declare.
31102 * builtins.c (c_readstr): Remove forward declaration. Add
31103 null_terminated_p argument, if false, read all bytes from the
31104 string instead of stopping after '\0'.
31105 * expr.c (string_cst_read_str): New function.
31106 (store_expr): Use string_cst_read_str instead of
31107 builtin_strncpy_read_str. Try to store by pieces the whole
31108 exp_len first, and only if that fails, split it up into
31109 store by pieces followed by clear_storage. Formatting fix.
31110
31111 * config/i386/i386.md (*movqi_internal): Remove static from
31112 buf variable. Use output_asm_insn (buf, operands); return "";
31113 instead of return buf;.
31114 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31115 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31116 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31117
31118 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31119
31120 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31121 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31122 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31123 (CC1_SPEC): Likewise.
31124 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31125
31126 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31127
31128 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31129 the base address on 64-bit strict-alignment platforms.
31130
31131 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31132
31133 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31134
31135 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31136
31137 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31138
31139 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31140
31141 PR rtl-optimization/88308
31142 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31143 on copied instruction.
31144
31145 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31146
31147 * final.c (insn_current_reference_address): Replace test on JUMP_P
31148 with test on jump_to_label_p.
31149 * config/visium/visium-passes.def: New file.
31150 * config/visium/t-visium (PASSES_EXTRA): Define.
31151 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31152 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31153 (TRAMPOLINE_ALIGNMENT): Define.
31154 * config/visium/visium.c (visium_option_override): Do not register
31155 the machine-specific reorg pass here.
31156 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31157 for the GR6.
31158 (output_branch): Adjust threshold for long branch instruction.
31159 * config/visium/visium.md (cpu): Move around.
31160 (length): Adjust for the GR6.
31161
31162 2019-02-15 Richard Biener <rguenther@suse.de>
31163 Jakub Jelinek <jakub@redhat.com>
31164
31165 PR tree-optimization/89278
31166 * tree-loop-distribution.c: Include tree-eh.h.
31167 (generate_memset_builtin, generate_memcpy_builtin): Call
31168 rewrite_to_non_trapping_overflow on builtin->size before passing it
31169 to force_gimple_operand_gsi.
31170
31171 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31172
31173 PR other/89342
31174 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31175 optimize_debug.
31176 * opth-gen.awk: Likewise.
31177
31178 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31179
31180 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31181 Enable MMX, SSE and SSE2 by default.
31182 * config/i386/i386.c (ix86_option_override_internal): Do not
31183 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31184
31185 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31186
31187 PR rtl-optimization/89354
31188 * combine.c (make_extraction): Punt if extraction_mode is narrower
31189 than len bits.
31190
31191 2019-02-14 Maya Rashish <coypu@sdf.org>
31192
31193 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31194 * config/netbsd-d.c: New file.
31195 * config/t-netbsd: Add netbsd-d.o
31196
31197 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31198
31199 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31200 affects_type_identity to true for aarch64_vector_pcs.
31201 (aarch64_comp_type_attributes): New function.
31202 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31203
31204 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31205
31206 PR target/88850
31207 * config/arm/iterators.md (ANY64): Add V4HF.
31208
31209 2019-02-14 Martin Liska <mliska@suse.cz>
31210
31211 PR rtl-optimization/89242
31212 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31213 process a transformation.
31214
31215 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31216
31217 PR tree-optimization/89314
31218 * fold-const.c (fold_binary_loc): Cast strlen argument to
31219 const char * before dereferencing it. Formatting fixes.
31220
31221 PR middle-end/89284
31222 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31223
31224 2019-02-13 Ian Lance Taylor <iant@golang.org>
31225
31226 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31227 and set current index for other optimizations.
31228
31229 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
31230
31231 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31232 nonimmediate_operand as operand 2 predicate.
31233 (vec_set<VF2_512_256:mode>_0): Ditto.
31234 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31235 (*vec_concatv2si): Remove alternative 2.
31236 (*vec_concatv4si_0): Use vm constraint for alternative 0.
31237 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31238 (vec_concatv2di): Split alternatives 4,5,6 to ...
31239 (*vec_concatv2di_0) ... new pattern.
31240
31241 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31242
31243 PR target/89190
31244 * config/arm/arm.c (ldm_stm_operation_p) Set
31245 addr_reg_in_reglist correctly for first register.
31246 (load_multiple_sequence): Remove dead base check.
31247 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31248
31249 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31250
31251 PR target/88847
31252 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31253 Expose as @aarch64_pred_mov.
31254 * config/aarch64/aarch64.c (aarch64_classify_address):
31255 Use expand_insn which legitimizes operands.
31256
31257 2019-02-13 Martin Liska <mliska@suse.cz>
31258
31259 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31260 * calls.c (struct arg_data): Remove special_slot, pointer_arg
31261 and pointer_offset fields.
31262 (initialize_argument_information): Remove usage of dead
31263 fields.
31264 * cgraph.h (struct cgraph_thunk_info): Remove
31265 add_pointer_bounds_args.
31266 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31267 fields.
31268 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
31269 fields.
31270 * config/i386/i386.c (ix86_function_arg_advance): Remove
31271 unrelated comment.
31272 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31273 (def_builtin): Remove usage of dead fields.
31274 (ix86_add_new_builtins): Likewise.
31275 * ipa-fnsummary.c (compute_fn_summary): Likewise.
31276 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31277 (sem_function::init): Likewise.
31278 (sem_variable::merge): Likewise.
31279 * ipa-visibility.c (function_and_variable_visibility): Likewise.
31280 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
31281 * lto-cgraph.c (lto_output_node): Likewise.
31282 (lto_output_varpool_node): Likewise.
31283 (input_node): Likewise.
31284 (input_varpool_node): Likewise.
31285 * lto-streamer-out.c (lto_output): Likewise.
31286 * tree-inline.c (expand_call_inline): Remove usage of
31287 assign_stmts.
31288 * tree-inline.h (struct copy_body_data): Likewise.
31289 * varpool.c (varpool_node::dump): Likewise.
31290
31291 2019-02-13 Jakub Jelinek <jakub@redhat.com>
31292
31293 PR middle-end/89303
31294 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
31295 into pt->vars_contains_escaped_heap instead of setting
31296 pt->vars_contains_escaped_heap to it.
31297
31298 PR middle-end/89281
31299 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
31300 INTVAL (size), compare it to GET_MODE_MASK instead of
31301 1 << GET_MODE_BITSIZE.
31302
31303 PR target/89290
31304 * config/i386/predicates.md (x86_64_immediate_operand): Allow
31305 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
31306 -mcmodel=large.
31307
31308 2019-02-13 Martin Liska <mliska@suse.cz>
31309
31310 PR lto/88858
31311 * cfgrtl.c (remove_barriers_from_footer): New function.
31312 (try_redirect_by_replacing_jump): Use it.
31313 (cfg_layout_redirect_edge_and_branch): Likewise.
31314
31315 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31316
31317 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
31318 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
31319 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
31320 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
31321 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
31322 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
31323 New BU_CRYPTO_2.
31324 * config/rs6000/rs6000.c (builtin_function_type)
31325 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
31326 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
31327 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
31328 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
31329 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
31330
31331 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
31332
31333 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
31334 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
31335
31336 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
31337
31338 PR target/89229
31339 * config/i386/i386.md (*movoi_internal_avx): Revert revision
31340 268678 and revision 268657.
31341 (*movti_internal): Likewise.
31342
31343 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
31344
31345 PR target/89233
31346 * config/s390/s390.c (s390_decompose_address): Update comment.
31347 (s390_check_qrst_address): Reject invalid address forms after
31348 LRA.
31349
31350 2019-02-12 Martin Liska <mliska@suse.cz>
31351
31352 PR lto/88876
31353 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
31354 we need default values of funct_state for a function that
31355 is not optimized.
31356
31357 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
31358
31359 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
31360 the object to pick the size of stores on strict-alignment platforms.
31361
31362 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
31363 (*movdi_insn_sp32): Likewise.
31364 (*movdi_insn_sp64): Likewise.
31365
31366 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
31367
31368 PR lto/88677
31369 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
31370 types that needs constructiong.
31371 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
31372
31373 2019-02-12 Richard Biener <rguenther@suse.de>
31374
31375 PR tree-optimization/89253
31376 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
31377 duplicate the loop.
31378
31379 2019-02-11 David Malcolm <dmalcolm@redhat.com>
31380
31381 PR lto/88147
31382 * input.c (selftest::test_line_offset_overflow): New selftest.
31383 (selftest::input_c_tests): Call it.
31384
31385 2019-02-11 Martin Sebor <msebor@redhat.com>
31386
31387 PR tree-optimization/88771
31388 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
31389 when -Wstringop-overflow is set.
31390 (builtin_memref::builtin_memref): Adjust excessive upper bound
31391 only when lower bound is not excessive.
31392 (maybe_diag_overlap): Detect and diagnose excessive bounds via
31393 -Wstringop-ovefflow.
31394 (maybe_diag_offset_bounds): Rename...
31395 (maybe_diag_access_bounds): ...to this.
31396 (check_bounds_or_overlap): Adjust for name change above.
31397
31398 2019-02-11 Martin Sebor <msebor@redhat.com>
31399
31400 PR c++/87996
31401 * builtins.c (max_object_size): Move from here...
31402 * builtins.h (max_object_size): ...and here...
31403 * tree.c (max_object_size): ...to here...
31404 * tree.h (max_object_size): ...and here.
31405
31406 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
31407
31408 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
31409 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
31410 for correct semantics.
31411
31412 2019-02-11 Alan Modra <amodra@gmail.com>
31413
31414 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
31415 -mlongcall and -mpltseq.
31416 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
31417 (RS/6000 and PowerPC Options <-mpltseq>): Document.
31418 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
31419 * config/rs6000/sysv4.opt (mpltseq): New option.
31420 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
31421 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
31422 support is lacking. Don't allow -mpltseq with -mbss-plt.
31423 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
31424 -mpltseq given for ELFv1.
31425 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
31426 Only use UNSPEC_PLTSEQ for inline PLT calls.
31427 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
31428 use UNSPEC_PLTSEQ for inline PLT calls.
31429 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
31430 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
31431 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
31432 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31433 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31434 (pltseq_mtctr_<mode>): Likewise.
31435
31436 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31437
31438 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
31439 Solaris ld.
31440 * configure: Regenerate.
31441
31442 2019-02-11 Jakub Jelinek <jakub@redhat.com>
31443
31444 PR bootstrap/88714
31445 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
31446 instead of r.
31447
31448 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31449
31450 * function.c (assign_parm_setup_block): Use the stored
31451 size, not the passed size, when allocating stack-space,
31452 also for a parameter with alignment larger than
31453 MAX_SUPPORTED_STACK_ALIGNMENT.
31454
31455 2019-02-11 Martin Liska <mliska@suse.cz>
31456
31457 PR ipa/89009
31458 * ipa-cp.c (build_toporder_info): Remove usage of a param.
31459 * ipa-inline.c (inline_small_functions): Likewise.
31460 * ipa-pure-const.c (propagate_pure_const): Likewise.
31461 (propagate_nothrow): Likewise.
31462 * ipa-reference.c (propagate): Likewise.
31463 * ipa-utils.c (struct searchc_env): Remove unused field.
31464 (searchc): Always search across AVAIL_INTERPOSABLE.
31465 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
31466 the only called IPA pure const can properly not propagate
31467 across interposable boundary.
31468 * ipa-utils.h (ipa_reduced_postorder): Remove param.
31469
31470 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
31471
31472 * config/nds32/nds32.md (call_internal, call_value_internal,
31473 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
31474
31475 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
31476
31477 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
31478 typo.
31479
31480 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
31481
31482 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
31483 in comments
31484
31485 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31486
31487 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
31488
31489 2019-02-10 Jakub Jelinek <jakub@redhat.com>
31490
31491 PR tree-optimization/89268
31492 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
31493 if preds is non-NULL.
31494
31495 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31496
31497 PR lto/89272
31498 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
31499 polymorphic types.
31500
31501 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31502
31503 * config/nds32/nds32.md (trap): New pattern.
31504
31505 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
31506
31507 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
31508 dwarf span.
31509
31510 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
31511
31512 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
31513 to split POST_INC.
31514
31515 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31516
31517 * ipa-visibility.c (localize_node): Also do not localize
31518 LDPR_PREVAILING_DEF_IRONLY_EXP.
31519
31520 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31521
31522 PR lto/87957
31523 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
31524 instead of type_with_linkage.
31525
31526 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
31527
31528 PR ipa/88755
31529 * params.def (uninlined-function-insns, uninlined-function-time,
31530 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
31531 bound so we don't get overflows.
31532
31533 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
31534
31535 * config/rs6000/rs6000-string.c (expand_compare_loop,
31536 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
31537 memcmp/strncmp.
31538
31539 2019-02-09 Jakub Jelinek <jakub@redhat.com>
31540
31541 PR middle-end/89246
31542 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31543 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
31544 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
31545
31546 2019-02-09 Alan Modra <amodra@gmail.com>
31547
31548 PR target/88343
31549 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
31550 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
31551 setup.
31552
31553 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
31554
31555 PR middle-end/88560
31556 * lra-constraints.c (process_alt_operands): Don't increase reject
31557 for memory when offset memory is required.
31558
31559 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
31560
31561 * config/s390/vector.md: Implement vector copysign.
31562
31563 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31564
31565 * expr.c (expand_constructor): Correct indentations.
31566
31567 2019-02-08 Richard Biener <rguenther@suse.de>
31568
31569 PR tree-optimization/89247
31570 * tree-if-conv.c: Include tree-cfgcleanup.h.
31571 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
31572 (tree_if_conversion): Pass through predicate vector.
31573 (pass_if_conversion::execute): Do CFG cleanup and SSA update
31574 inline, see if any if-converted loops we refrece in
31575 LOOP_VECTORIZED calls vanished and fixup.
31576 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
31577
31578 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
31579
31580 * config/s390/constraints.md (jdd): New constraint.
31581
31582 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
31583
31584 PR target/89229
31585 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
31586 upper 16 vector registers without TARGET_AVX512VL.
31587 (*movti_internal): Likewise.
31588
31589 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31590
31591 PR rtl-optimization/89234
31592 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
31593 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
31594 (copy_reg_eh_region_note_backward): Likewise.
31595
31596 2019-02-08 Richard Biener <rguenther@suse.de>
31597
31598 PR middle-end/89223
31599 * tree-data-ref.c (initialize_matrix_A): Fail if constant
31600 doesn't fit in HWI.
31601 (analyze_subscript_affine_affine): Handle failure from
31602 initialize_matrix_A.
31603
31604 2019-02-08 Jakub Jelinek <jakub@redhat.com>
31605
31606 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
31607 cfun everywhere.
31608
31609 2019-02-07 David Malcolm <dmalcolm@redhat.com>
31610
31611 PR tree-optimization/86637
31612 PR tree-optimization/89235
31613 * tree-vect-loop.c (optimize_mask_stores): Add an
31614 auto_purge_vect_location sentinel to ensure that vect_location is
31615 purged on exit.
31616 * tree-vectorizer.c
31617 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
31618 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
31619 to ensure that vect_location is purged on exit.
31620 (pass_slp_vectorize::execute): Likewise, replacing the manual
31621 reset.
31622 * tree-vectorizer.h (class auto_purge_vect_location): New class.
31623
31624 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31625
31626 * config/aarch64/iterators.md (max_opp): New code_attr.
31627 (USMAX): New code iterator.
31628 * config/aarch64/predicates.md (aarch64_smin): New predicate.
31629 (aarch64_smax): Likewise.
31630 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
31631 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
31632 MINUS (MAX MIN).
31633
31634 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
31635
31636 PR target/89229
31637 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
31638 for TARGET_AVX512VL.
31639 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
31640
31641 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
31642
31643 * config/s390/s390-builtin-types.def: Add new types.
31644 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
31645 (s390_vec_xlw4): Make the memory operand into a const pointer.
31646 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
31647 float.
31648 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
31649 a new vector type with the alignment of the scalar memory operand.
31650
31651 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
31652 Jakub Jelinek <jakub@redhat.com>
31653
31654 PR bootstrap/88714
31655 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
31656 arm_count_ldrdstrd_insns): New declarations.
31657 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
31658 MINUS.
31659 (valid_operands_ldrd_strd): New function.
31660 (arm_count_ldrdstrd_insns): New function.
31661 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
31662 sets instead of single DImode set and define new insns to match this.
31663
31664 2019-02-07 Tamar Christina <tamar.christina@arm.com>
31665
31666 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
31667 Make it a C initializer.
31668
31669 2019-02-07 Tamar Christina <tamar.christina@arm.com>
31670
31671 PR/target 88850
31672 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
31673
31674 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31675
31676 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
31677 Use neon_dot<q> for type.
31678 (neon_<sup>dot_lane<vsi2qi>): Likewise.
31679
31680 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31681
31682 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
31683 Use neon_dot<q> for type.
31684 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
31685 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
31686
31687 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
31688
31689 PR rtl-optimization/89225
31690 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
31691 sizes check.
31692
31693 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
31694
31695 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
31696 after restoring registers saved to allocate the frame on Windows.
31697
31698 2019-02-06 Richard Biener <rguenther@suse.de>
31699
31700 PR tree-optimization/89182
31701 * graphite.h (cached_scalar_evolution_in_region): Declare.
31702 * graphite.c (struct seir_cache_key): New.
31703 (struct sese_scev_hash): Likewise.
31704 (seir_cache): New global.
31705 (cached_scalar_evolution_in_region): New function.
31706 (graphite_transform_loops): Allocate and release seir_cache.
31707 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
31708 cached_scalar_evolution_in_region.
31709 * graphite-scop-detection.c (scop_detection::can_represent_loop):
31710 Simplify.
31711 (scop_detection::graphite_can_represent_expr: Use
31712 cached_scalar_evolution_in_region.
31713 (scop_detection::stmt_simple_for_scop_p): Likewise.
31714 (find_params_in_bb): Likewise.
31715 (gather_bbs::before_dom_children): Likewise.
31716 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
31717 (add_loop_constraints): Likewise.
31718
31719 2019-02-06 Jakub Jelinek <jakub@redhat.com>
31720
31721 PR middle-end/89210
31722 * fold-const-call.c (fold_const_vec_convert): Pass true as last
31723 operand to new_unary_operation only if both element types are integral
31724 and it isn't a widening conversion. Return NULL_TREE if
31725 new_unary_operation failed.
31726
31727 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
31728
31729 PR target/88856
31730 * config/s390/s390.md: Remove load and test FP splitter.
31731
31732 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
31733
31734 PR target/89112
31735 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
31736 expand_compare_loop, expand_block_compare_gpr,
31737 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
31738 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
31739 #include "profile-count.h" and "predict.h" for types and functions
31740 needed to work with REG_BR_PROB notes.
31741
31742 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
31743
31744 PR target/89112
31745 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
31746 for the long branch case.
31747
31748 2019-02-05 Jakub Jelinek <jakub@redhat.com>
31749
31750 PR target/89188
31751 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
31752 can throw, non-call exceptions are enabled and we can't delete
31753 dead exceptions or alter cfg. Set must_clean if
31754 delete_insn_and_edges returns true, don't set it blindly for calls.
31755 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
31756
31757 PR rtl-optimization/89195
31758 * combine.c (make_extraction): For MEMs, don't extract bytes outside
31759 of the original MEM.
31760
31761 2019-02-05 Martin Liska <mliska@suse.cz>
31762
31763 PR gcov-profile/89000
31764 * gcov.c (function_summary): Remove argument.
31765 (file_summary): New function.
31766 (print_usage): Replace tabs with spaces.
31767 (generate_results): Use new function file_summary.
31768
31769 2019-02-05 Jakub Jelinek <jakub@redhat.com>
31770
31771 PR target/89186
31772 * optabs.c (prepare_cmp_insn): Pass x and y to
31773 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
31774
31775 2019-02-05 Richard Biener <rguenther@suse.de>
31776
31777 PR middle-end/89150
31778 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
31779 (struct bitmap_element): Drop chain_prev so we properly recurse on
31780 the prev member, supporting tree views.
31781 (struct bitmap_head): GTY skip the obstack member.
31782
31783 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
31784
31785 PR c/88698
31786 * doc/extend.texi (Vector Extensions): Add an example of using vector
31787 types together with x86 intrinsics.
31788
31789 2019-02-04 Alan Modra <amodra@gmail.com>
31790
31791 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
31792 str[] size to 160, and comment.
31793
31794 2019-02-04 Alan Modra <amodra@gmail.com>
31795
31796 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
31797 (rs6000_pltseq_template): Guard output of TLS markers with
31798 TARGET_TLS_MARKERS.
31799 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
31800 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
31801 to use inline PLT sequences.
31802 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
31803 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
31804 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
31805
31806 2019-02-04 Martin Liska <mliska@suse.cz>
31807
31808 PR ipa/88985
31809 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
31810 out when ipa_fn_summaries does not contain entry for callee.
31811
31812 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
31813
31814 * config/sparc/sparc.h: Remove superfluous blank lines.
31815 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
31816 (got_register_rtx): ...this.
31817 (sparc_got): Adjust to above renaming.
31818 (sparc_tls_got): Likewise.
31819 (sparc_delegitimize_address): Likewise.
31820 (sparc_output_mi_thunk): Likewise.
31821 (sparc_init_pic_reg): Likewise.
31822 (save_local_or_in_reg_p): Fix test on the GOT register.
31823 (USE_HIDDEN_LINKONCE): Move around.
31824 (get_pc_thunk_name): Likewise.
31825 (gen_load_pcrel_sym): Likewise.
31826 (load_got_register): Likewise.
31827
31828 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
31829
31830 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
31831 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
31832
31833 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
31834
31835 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
31836 into consideration.
31837
31838 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
31839
31840 * config.gcc (with_nds32_lib, glibc):
31841 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
31842 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
31843 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
31844
31845 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
31846
31847 PR target/89071
31848 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
31849 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
31850 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
31851 (*rcpsf2_sse): Ditto.
31852 (*rsqrtsf2_sse): Ditto.
31853 (sse4_1_round<mode<2): Ditto.
31854
31855 2019-02-03 Richard Biener <rguenther@suse.de>
31856
31857 PR debug/87295
31858 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
31859 orig.
31860
31861 2019-02-02 Jakub Jelinek <jakub@redhat.com>
31862
31863 PR middle-end/87887
31864 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
31865 Punt with warning on aggregate return or argument types. Ignore
31866 type/mode checking for uniform arguments.
31867
31868 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
31869
31870 * combine.c (try_combine): Do not print "Can't combine" messages unless
31871 printing failed combination attempts.
31872
31873 2019-02-01 Martin Jambor <mjambor@suse.cz>
31874
31875 PR hsa/87863
31876 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
31877 segment and global segment variables before making them static.
31878
31879 2019-02-01 Martin Jambor <mjambor@suse.cz>
31880
31881 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
31882 missed optimization dump with dump_enabled_p.
31883
31884 2019-02-01 Richard Biener <rguenther@suse.de>
31885
31886 PR middle-end/88597
31887 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
31888 the instantiate cache.
31889 (instantiate_scev_binary): Elide second operand procesing
31890 if equal to the first.
31891 * tree-chrec.c (chrec_contains_symbols): Add visited set.
31892 (chrec_contains_undetermined): Likewise.
31893 (tree_contains_chrecs): Likewise.
31894
31895 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
31896
31897 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
31898
31899 2019-02-01 Jakub Jelinek <jakub@redhat.com>
31900
31901 PR tree-optimization/89143
31902 * wide-int-range.h (wide_int_range_absu): Declare.
31903 * wide-int-range.cc (wide_int_range_absu): New function.
31904 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
31905
31906 PR tree-optimization/88107
31907 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
31908 instead of assertion that eh_region_outermost is non-NULL, if it
31909 is NULL, set *ALL to true and return NULL.
31910 (move_sese_region_to_fn): Adjust caller, if all is set, call
31911 duplicate_eh_regions with NULL region.
31912
31913 2019-02-01 Richard Biener <rguenth@suse.de>
31914
31915 PR rtl-optimization/88593
31916 * mode-switching.c (optimize_mode_switching): Free dominators before
31917 calling cleanup_cfg.
31918
31919 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
31920
31921 PR tree-optimization/88932
31922 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
31923
31924 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31925
31926 PR middle-end/89137
31927 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
31928 bogus clang warning.
31929
31930 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
31931
31932 PR target/89071
31933 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
31934 alternative to avoid partial SSE register stall for TARGET_AVX.
31935 (truncdfsf2): Ditto.
31936 (sse4_1_round<mode>2): Ditto.
31937
31938 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
31939
31940 PR tree-optimization/89008
31941 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
31942 process anything of the form X * 0.
31943
31944 2019-01-31 Richard Biener <rguenther@suse.de>
31945
31946 PR tree-optimization/89135
31947 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
31948 with abnormal preds.
31949
31950 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31951
31952 PR sanitizer/89124
31953 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
31954 always_inline callees into no_sanitize_address callers.
31955
31956 2019-01-31 Richard Biener <rguenther@suse.de>
31957
31958 PR rtl-optimization/89115
31959 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
31960
31961 2019-01-30 Martin Sebor <msebor@redhat.com>
31962
31963 PR other/89106
31964 * doc/extend.texi (cast to a union): Correct and expand.
31965
31966 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
31967
31968 PR rtl-optimization/87246
31969 * lra-constraints.c (simplify_operand_subreg): Reload memory
31970 in subreg if the address became invalid.
31971
31972 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
31973
31974 PR target/87064
31975 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
31976 Disable for little-endian.
31977
31978 2019-01-30 Richard Biener <rguenther@suse.de>
31979
31980 PR rtl-optimization/89115
31981 * opts.c (default_options_optimization): Reduce
31982 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
31983 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
31984 to the default.
31985
31986 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
31987
31988 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
31989 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
31990 type of vector element when vec_extract is implemented by direct
31991 move.
31992
31993 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
31994
31995 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
31996
31997 2019-01-30 Richard Biener <rguenther@suse.de>
31998
31999 PR tree-optimization/89111
32000 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32001 canonicalization to appropriately sized access types.
32002
32003 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32004
32005 PR c++/89105
32006 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32007 for arguments to functions that are TU-local and shouldn't be
32008 referenced by assembly.
32009
32010 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32011
32012 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32013 after '='.
32014
32015 2019-01-29 Martin Sebor <msebor@redhat.com>
32016
32017 PR c/88956
32018 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32019
32020 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32021
32022 PR c++/66676
32023 PR ipa/89104
32024 * omp-simd-clone.c (simd_clone_clauses_extract)
32025 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32026 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32027
32028 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32029
32030 * config.gcc: Force .init_array for ARC.
32031
32032 2019-01-29 Richard Biener <rguenther@suse.de>
32033
32034 PR debug/87295
32035 * dwarf2out.c (collect_skeleton_dies): New helper.
32036 (copy_decls_for_unworthy_types): Call it.
32037 (build_abbrev_table): Assert we do not try to replace
32038 DW_AT_signature refs with local refs.
32039
32040 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32041
32042 PR middle-end/89002
32043 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32044 for lastprivate/linear IV, push gimplify context around gimplify_assign
32045 and, if it needed any temporaries, pop it into a gimple bind around the
32046 sequence.
32047
32048 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32049
32050 * common.opt (-Wattribute-alias): Remove "no-" from name.
32051 Make -Wattribute-alias command line option and
32052 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32053
32054 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32055
32056 PR target/89073
32057 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32058 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32059 x86 ISA options.
32060 (bmi2): Add missing @opindex.
32061 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32062 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32063 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32064 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32065 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32066 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32067 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32068 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32069 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32070 xsavec, xsaveopt and xsaves options.
32071
32072 2019-01-28 Richard Biener <rguenther@suse.de>
32073
32074 PR debug/89076
32075 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32076 support removal.
32077
32078 2019-01-28 Richard Biener <rguenther@suse.de>
32079
32080 PR tree-optimization/88739
32081 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32082 BIT_FIELD_REFs only are applied to mode-precision operands
32083 when they are integral.
32084 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32085 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32086 BIT_FIELD_REFs of non-mode-precision integral operands.
32087
32088 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32089
32090 PR target/87214
32091 * config/i386/sse.md
32092 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32093 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32094 first constants in pairs are multiples of 2. Formatting fixes.
32095 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32096 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32097 first constants in each quadruple are multiples of 4. Formatting fixes.
32098
32099 2019-01-26 Martin Jambor <mjambor@suse.cz>
32100
32101 PR ipa/88933
32102 * tree-inline.c: Include tree-cfgcleanup.h.
32103 (delete_unreachable_blocks_update_callgraph): Move...
32104 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32105 ...here, make externally visible, make second argument bool, adjust
32106 all callers.
32107 * tree-cfgcleanup.c: Include cgraph.h.
32108 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32109 Declare.
32110 * ipa-prop.c: Include tree-cfgcleanup.h.
32111 (ipcp_transform_function): Call
32112 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32113
32114 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32115
32116 PR rtl-optimization/88846
32117 * ira.c (process_set_for_memref_referenced_p): New.
32118 (memref_referenced_p): Add new param. Use
32119 process_set_for_memref_referenced_p. Add new switch cases.
32120 (memref_used_between_p): Pass new arg to memref_referenced_p.
32121
32122 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32123
32124 PR target/88469
32125 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32126 argument ABI_BREAK. Set to true if the calculated alignment has
32127 changed in gcc-9. Check bit-fields for their base type alignment.
32128 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32129 (aarch64_function_arg_boundary): Likewise.
32130 (aarch64_gimplify_va_arg_expr): Likewise.
32131
32132 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32133
32134 PR middle-end/89037
32135 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32136 instead of accessing TREE_INT_CST_ELT directly.
32137
32138 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32139
32140 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32141 fenv_exceptions description.
32142
32143 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32144
32145 PR rtl-optimization/87763
32146 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32147 Allow SUBREG when matching CC_NZmode compare.
32148
32149 2019-01-25 Richard Biener <rguenther@suse.de>
32150
32151 PR tree-optimization/89049
32152 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32153 Look at the pattern stmt to determine if the stmt is vectorized.
32154
32155 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32156
32157 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32158 (pred_mov<mode>): Handle all-register forms using both a new
32159 alternative and a split.
32160
32161 2019-01-25 Richard Biener <rguenther@suse.de>
32162
32163 PR tree-optimization/86865
32164 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32165 Reject non-do-while loops.
32166
32167 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32168
32169 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32170 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32171 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32172 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32173 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32174 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32175 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32176 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32177 vlogical_operand, gpc_reg_operand, int_reg_operand,
32178 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32179 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32180 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32181 (save_world_operation, restore_world_operation, lmw_operation,
32182 stmw_operation): Use MEM_P and REG_P.
32183 (tie_operand): Use MEM_P.
32184 (vrsave_operation, crsave_operation): Use REG_P.
32185 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32186 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32187 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32188 (call_operand): Use HARD_REGISTER_P.
32189 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32190 Use CONST_INT_P.
32191 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32192 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32193 quad_aligned_load_p, replace_swapped_aligned_store,
32194 recombine_lvx_pattern, replace_swapped_aligned_load,
32195 recombine_stvx_pattern): Use MEM_P.
32196 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32197 Use MEM_P and SYMBOL_REF_P.
32198 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32199 (insn_is_swappable_p): Use REG_P and MEM_P.
32200 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32201 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32202 Use CONST_INT_P.
32203 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32204 Use CONST_DOUBLE_P.
32205 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32206 CONST_WIDE_INT_P.
32207 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32208 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32209 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32210 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32211 reg_or_subregno:
32212 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32213 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32214 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32215 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32216 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32217 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32218 rs6000_split_logical_di): Use CONST_INT_P.
32219 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32220 REG_P and SYMBOL_REF_P.
32221 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32222 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32223 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32224 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32225 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32226 (small_data_operand, print_operand_address): Use CONST_INT_P and
32227 SYMBOL_REF_P.
32228 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32229 (rs6000_init_hard_regno_mode_ok, direct_move_p):
32230 Use HARD_REGISTER_NUM_P.
32231 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32232 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32233 SUBREG_P and SYMBOL_REF_P.
32234 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32235 and HARD_REGISTER_NUM_P.
32236 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32237 reg_or_subregno.
32238 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32239 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32240 MEM_P and REG_P.
32241 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32242 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32243 find_addr_reg): Use REG_P.
32244 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32245 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32246 (offsettable_ok_by_alignment, constant_pool_expr_p,
32247 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32248 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32249 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32250 rs6000_assemble_integer, create_TOC_reference,
32251 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32252 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32253 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32254 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32255 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32256 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32257 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32258 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32259 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32260 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32261 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32262 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32263 and cbranch<mode>4): Use CONST_INT_P.
32264 (multiple define_splits): Use REG_P and SUBREG_P.
32265 (define_expands call, call_value): Use MEM_P.
32266 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
32267 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
32268 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
32269 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32270 and HARD_REGISTER_NUM_P.
32271 (multiple define_splits): Use HARD_REGISTER_NUM_P.
32272
32273 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
32274
32275 PR rtl-optimization/88948
32276 * rtl.h (prepare_copy_insn): New prototype.
32277 * gcse.c (prepare_copy_insn): New function, split out from
32278 process_insert_insn.
32279 (process_insert_insn): Use prepare_copy_insn.
32280 * store-motion.c (replace_store_insn): Use prepare_copy_insn
32281 instead of gen_move_insn.
32282
32283 2019-01-24 Jakub Jelinek <jakub@redhat.com>
32284
32285 PR debug/89006
32286 * config/i386/i386.c (ix86_pic_register_p): Return true for
32287 UNSPEC_SET_GOT too.
32288
32289 PR tree-optimization/88964
32290 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
32291 punt if HONOR_SNANS (chrec).
32292
32293 PR middle-end/89015
32294 * tree-nested.c (convert_nonlocal_reference_stmt,
32295 convert_local_reference_stmt, convert_tramp_reference_stmt,
32296 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
32297 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
32298 or GIMPLE_OMP_TASK.
32299
32300 PR tree-optimization/89027
32301 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
32302 for "omp simd array" variables.
32303
32304 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
32305
32306 PR target/88469
32307 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
32308 force the alignment of m_val.
32309
32310 2019-01-24 Richard Biener <rguenther@suse.de>
32311
32312 PR lto/87187
32313 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
32314 When in "legacy" debug mode make sure to reset self-origins.
32315
32316 2019-01-24 Martin Liska <mliska@suse.cz>
32317
32318 PR gcov-profile/88994
32319 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
32320 result will be always smaller or equal to the original.
32321 * gcov.c (mangle_name): Fix else branch where we should
32322 also copy to PTR and shift the pointer.
32323
32324 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32325
32326 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
32327 * vr-values.c (find_case_label_ranges): Fix a comment typo.
32328
32329 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
32330
32331 * common/config/i386/i386-common.c
32332 (OPTION_MASK_ISA_ENQCMD_SET,
32333 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
32334 (ix86_handle_option): Handle -menqcmd.
32335 * config.gcc (enqcmdintrin.h): New header file.
32336 * config/i386/cpuid.h (bit_ENQCMD): New bit.
32337 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
32338 -menqcmd.
32339 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
32340 function type.
32341 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
32342 __builtin_ia32_enqcmds): New builtins.
32343 * config/i386/i386-c.c (__ENQCMD__): New macro.
32344 * config/i386/i386-option.c (ix86_target_string): Add
32345 -menqcmd.
32346 (ix86_valid_target_attribute_inner_p): Likewise.
32347 * config/i386/i386-expand.c
32348 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
32349 IX86_BUILTIN_ENQCMDS.
32350 * config/i386/i386.h (TARGET_ENQCMD): New.
32351 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
32352 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
32353 (movdir64b_<mode>): Parameterize to enable share expansion code
32354 with ENQCMD in function ix86_expand_builtin.
32355 * config/i386/i386.opt: Add -menqcmd.
32356 * config/i386/immintrin.h: Include enqcmdintrin.h.
32357 * config/i386/enqcmdintrin.h: New intrinsic file.
32358 * doc/invoke.texi: Add -menqcmd.
32359
32360 2019-01-23 Bin Cheng <bin.cheng@arm.com>
32361 Steve Ellcey <sellcey@marvell.com>
32362
32363 PR target/85711
32364 * recog.c (address_operand): Return false on wrong mode for address.
32365 (constrain_operands): Check for mode with 'p' constraint.
32366
32367 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
32368
32369 PR target/88998
32370 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
32371 Disparage MMX alternative.
32372 (sse2_cvtpd2pi): Ditto.
32373 (sse2_cvttpd2pi): Ditto.
32374
32375 2019-01-23 David Malcolm <dmalcolm@redhat.com>
32376
32377 PR driver/89014
32378 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
32379 use-after-free of the result of
32380 aarch64_get_extension_string_for_isa_flags.
32381
32382 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32383
32384 PR c/44715
32385 * doc/extend.texi: Document break and continue behavior in
32386 statement expressions.
32387
32388 2019-01-23 Richard Biener <rguenther@suse.de>
32389
32390 PR tree-optimization/89008
32391 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
32392 not leave another stray operand.
32393
32394 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32395
32396 * BASE-VER: Bump to 9.0.1.
32397
32398 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
32399
32400 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
32401 thunk that returns by reference, use the type of the return object
32402 of the thunk instead of that of the alias to build the dereference.
32403
32404 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
32405
32406 * config/arc/atomic.md: Add operand to DMB instruction.
32407
32408 2019-01-23 Jakub Jelinek <jakub@redhat.com>
32409
32410 PR tree-optimization/88964
32411 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
32412 build_zero_cst instead of build_int_cst. Return false for loop
32413 invariants which honor signed zeros.
32414
32415 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
32416
32417 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
32418
32419 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32420
32421 PR target/88965
32422 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
32423 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
32424 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
32425
32426 PR middle-end/88968
32427 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
32428 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
32429
32430 PR target/87064
32431 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
32432 Disable for little endian.
32433
32434 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32435
32436 PR target/88469
32437 * config/arm/arm.c (arm_needs_double_word_align): Check
32438 DECL_BIT_FIELD_TYPE.
32439
32440 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
32441 H.J. Lu <hongjiu.lu@intel.com>
32442
32443 PR target/88909
32444 * config/i386/i386-builtin.def: Add mask2 to all builtin
32445 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
32446 SPECIAL_ARGS.
32447 * config/i386/i386.c (BDESC): Add mask2 to the definition.
32448 (BDESC_FIRST): Likewise.
32449 (define_builtin): Add an argument for mask2. Updated to handle
32450 both ix86_isa_flags and ix86_isa_flags2.
32451 (define_builtin_const): Likewise.
32452 (define_builtin_pure): Likewise.
32453 (define_builtin2): Deleted.
32454 (define_builtin_const2): Likewise.
32455 (builtin_description): Add a member, mask2.
32456 (bdesc_*): Add mask2 to builtin initializations.
32457 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
32458 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
32459 support.
32460 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
32461
32462 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
32463
32464 PR target/88954
32465 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
32466 noplt attribute.
32467
32468 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
32469
32470 PR target/88469
32471 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
32472 alignment is dominated by a bitfield with 64-bit aligned base type.
32473 (arm_function_arg): Emit a warning if the alignment has changed since
32474 earlier GCC releases.
32475 (arm_function_arg_boundary): Likewise.
32476 (arm_setup_incoming_varargs): Likewise.
32477
32478 2019-01-22 Richard Biener <rguenther@suse.de>
32479
32480 PR tree-optimization/88862
32481 * graphite-scop-detection.c
32482 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
32483
32484 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
32485
32486 * doc/extend.tex (AMD GCN Function Attributes): New section.
32487 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
32488 * doc/invoke.texi (AMD GCN Options): New section.
32489 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
32490
32491 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
32492
32493 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
32494 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
32495
32496 2019-01-22 Jakub Jelinek <jakub@redhat.com>
32497
32498 PR tree-optimization/88044
32499 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
32500 is false in the first iteration, but !every_iteration, return false
32501 instead of true with niter->niter zero.
32502
32503 PR rtl-optimization/88904
32504 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
32505 any nonequal registers before processing BB_END (b).
32506
32507 PR target/88905
32508 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
32509 GET_MODE (op0).
32510 (expand_binop_directly, expand_doubleword_clz,
32511 expand_doubleword_popcount, expand_ctz, expand_ffs,
32512 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
32513
32514 PR rtl-optimization/49429
32515 PR target/49454
32516 PR rtl-optimization/86334
32517 PR target/88906
32518 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
32519 addressable from here...
32520 (emit_block_op_via_libcall): ... to here.
32521
32522 2019-01-22 Richard Biener <rguenther@suse.de>
32523
32524 * tree-vect-loop.c (vect_analyze_loop_operations): Use
32525 auto_vec for cost vector to fix memleak.
32526 (vectorize_fold_left_reduction): Properly gather SLP defs.
32527 (vectorizable_comparison): Do not swap operands to properly
32528 gather SLP defs.
32529
32530 2019-01-22 Alan Modra <amodra@gmail.com>
32531
32532 PR target/88614
32533 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
32534 stays a reg. Allow a const_int.
32535 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
32536 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
32537 (IS_NOMARK_TLSGETADDR): Define.
32538 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
32539 (rs6000_output_tlsargs): New function.
32540 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
32541 __tls_get_addr call takes an arg.
32542 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
32543 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
32544 delete split..
32545 (call_value_nonlocal_sysv): ..or here, delete split.
32546 (tls_gdld_nomark): Delete.
32547 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
32548 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
32549 (call_value_nonlocal_sysv): Likewise.
32550 (call_value_nonlocal_sysv_secure): Likewise.
32551 (call_value_nonlocal_aix): Likewise.
32552 (call_value_indirect_aix): Likewise.
32553 (call_value_indirect_elfv2): Likewise.
32554 (call_value_local32, call_value_local64): Disable for no-mark tls.
32555 (call_value_local_aix): Likewise.
32556
32557 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
32558
32559 PR target/88938
32560 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
32561 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
32562
32563 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
32564
32565 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
32566 string contents as hash_map keys.
32567
32568 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32569
32570 PR c/88928
32571 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
32572 for rvalue context. Handle rvalues correctly. Use min_align_of_type
32573 instead of TYPE_ALIGN.
32574 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
32575 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
32576 pointer from TYPE_STUB_DECL.
32577
32578 2019-01-21 Richard Biener <rguenther@suse.de>
32579
32580 PR tree-optimization/88934
32581 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
32582 at the possibly non-constant operand.
32583 (vect_get_constant_vectors): Adjust.
32584
32585 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
32586
32587 PR target/71659
32588 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
32589 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
32590 instead of _X86INTRIN_H_INCLUDED.
32591 * onfig/i386/clwbintrin.h: Likewise.
32592 * config/i386/pkuintrin.h: Likewise.
32593 * config/i386/prfchwintrin.h: Likewise.
32594 * config/i386/rdseedintrin.h: Likewise.
32595 * config/i386/wbnoinvdintrin.h: Likewise.
32596 * config/i386/xsavecintrin.h: Likewise.
32597 * config/i386/xsavesintrin.h: Likewise.
32598 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
32599 * config/i386/xsaveintrin.h: Likewise.
32600 * config/i386/xsaveoptintrin.h: Likewise.
32601 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
32602 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
32603 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
32604 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
32605 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
32606 * config/i386/immintrin.h: Here.
32607
32608 2019-01-20 Martin Jambor <mjambor@suse.cz>
32609
32610 PR ipa/87615
32611 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
32612 with aa_walk_budget.
32613 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
32614 aa_walk_budget_p parameter.
32615 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
32616 walk. Updated all callers.
32617 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
32618 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
32619 unmodified_parm.
32620 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
32621 parameter info. Extract info from fbi. Pass fbi to recursive calls
32622 and to unmodified_parm.
32623 (phi_result_unknown_predicate): New parameter fbi, removed parameter
32624 info, updated call to will_be_nonconstant_expr_predicate.
32625 (param_change_prob): New parameter fbi, limit AA walking.
32626 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
32627 calls to various above functions.
32628 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
32629 parameter. Use it to limit AA walking.
32630 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
32631 fbi, limit AA walk.
32632 (detect_type_change): New parameter fbi, pass it on to
32633 detect_type_change_from_memory_writes.
32634 (detect_type_change_ssa): Likewise.
32635 (aa_overwalked): Removed.
32636 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
32637 accordingly, adjust to the neew AA limiting scheme.
32638 (parm_ref_data_preserved_p): Likewise.
32639 (ipa_compute_jump_functions_for_edge): Adjust call to
32640 get_dynamic_type.
32641 (ipa_analyze_call_uses): Likewise.
32642 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
32643 (ipa_analyze_node): Initialize aa_walk_budget.
32644 (ipcp_transform_function): Likewise.
32645 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
32646 to get_dynamic_type.
32647
32648 2019-01-19 Jakub Jelinek <jakub@redhat.com>
32649
32650 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
32651 outside of #if CHECKING_P code.
32652
32653 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
32654
32655 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
32656 New function, split out from...
32657 (loop_versioning::analyze_stride): ...here.
32658 (loop_versioning::find_per_loop_multiplication): Use gassign.
32659 (loop_versioning::analyze_term_using_scevs): Return a success code.
32660 (loop_versioning::analyze_arbitrary_term): New function.
32661 (loop_versioning::analyze_address_fragment): Use
32662 analyze_arbitrary_term if all else fails.
32663
32664 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
32665
32666 PR target/88892
32667 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
32668 operands.
32669
32670 2019-01-18 Richard Biener <rguenther@suse.de>
32671
32672 PR tree-optimization/88903
32673 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
32674 scalar stmts a SLP shift amount is composed of when detecting
32675 shifts by scalars.
32676
32677 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
32678
32679 PR target/88799
32680 * config/arm/arm-cpus.in (mp): New feature.
32681 (sec): New feature.
32682 (fgroup ARMv7ve): Add mp and sec features.
32683 (arch armv7-a): Add options to allow mp and sec extensions.
32684 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
32685 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
32686 extenstions to the base architecture.
32687 (cpu cortex-a8): Add sec extension to the base architecture.
32688 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
32689 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
32690 variants down to the base v7-a varaint.
32691 * config/arm/t-multilib (v7_a_arch_variants): New variable.
32692 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
32693 of permitted extensions for -march=armv7-a and for
32694 -mcpu=generic-armv7-a.
32695
32696 2019-01-18 Martin Liska <mliska@suse.cz>
32697
32698 * params.def: Fix comment.
32699 * tree-profile.c (gimple_init_gcov_profiler): Bump function
32700 name.
32701 (gimple_gen_ic_func_profiler): Likewise.
32702
32703 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32704
32705 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
32706 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
32707 and put in error checks for stack protector guard options.
32708 (aarch64_stack_protect_guard): New.
32709 (TARGET_STACK_PROTECT_GUARD): Define.
32710 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
32711 (reg_stack_protect_address<mode>): New.
32712 (stack_protect_set): Adjust for SSP_GLOBAL.
32713 (stack_protect_test): Likewise.
32714 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
32715 (-mstack-protector-guard): Likewise.
32716 (-mstack-protector-guard-offset): Likewise.
32717
32718 2019-01-18 Jakub Jelinek <jakub@redhat.com>
32719
32720 PR tree-optimization/86214
32721 * tree-inline.h (struct copy_body_data): Add
32722 add_clobbers_to_eh_landing_pads member.
32723 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
32724 (copy_edges_for_bb): Call it if EH edge destination is <
32725 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
32726 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
32727 if flag_stack_reuse != SR_NONE and clear it afterwards.
32728
32729 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
32730
32731 PR target/85596
32732 * doc/install.texi (with-multilib-list): Document for aarch64.
32733
32734 2019-01-18 Jakub Jelinek <jakub@redhat.com>
32735
32736 PR target/88734
32737 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
32738 (("..."))) with ("...").
32739
32740 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
32741
32742 * doc/extend.texi (Built-in Functions for Memory Model Aware
32743 Atomic Operations): Document atomic fetch and nand.
32744
32745 2019-01-18 Martin Liska <mliska@suse.cz>
32746 Richard Biener <rguenther@suse.de>
32747
32748 PR middle-end/88587
32749 * cgraph.h (create_version_clone_with_body): Add new argument
32750 with attributes.
32751 * cgraphclones.c (cgraph_node::create_version_clone): Add
32752 DECL_ATTRIBUTES to a newly created decl. And call
32753 valid_attribute_p so that proper cl_target_optimization_node
32754 is set for the newly created declaration.
32755 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
32756 for declaration.
32757 (expand_target_clones): Do not call valid_attribute_p, it must
32758 be already done.
32759 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
32760 vector types.
32761
32762 2019-01-17 Jakub Jelinek <jakub@redhat.com>
32763
32764 PR target/88734
32765 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
32766 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
32767 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
32768
32769 2019-01-17 Martin Sebor <msebor@redhat.com>
32770
32771 PR middle-end/88273
32772 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
32773 Handle anti-ranges the same as no range at all.
32774
32775 2018-01-17 Steve Ellcey <sellcey@cavium.com>
32776
32777 * config/aarch64/aarch64.c (cgraph.h): New include.
32778 (intl.h): New include.
32779 (supported_simd_type): New function.
32780 (currently_supported_simd_type): Ditto.
32781 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
32782 (aarch64_simd_clone_adjust): Ditto.
32783 (aarch64_simd_clone_usable): Ditto.
32784 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
32785 (TARGET_SIMD_CLONE_ADJUST): Ditto.
32786 (TARGET_SIMD_CLONE_USABLE): Ditto.
32787 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
32788 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
32789 call.
32790
32791 2019-01-17 Martin Sebor <msebor@redhat.com>
32792
32793 PR tree-optimization/88800
32794 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
32795 NO_WARNING bit here. Avoid folding out-of-bounds calls.
32796 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
32797 redundant argument. Add new argument and issue diagnostics under
32798 its control. Detect out-of-bounds access even with warnings
32799 disabled.
32800 (check_bounds_or_overlap): Change return type. Add argument.
32801 (wrestrict_dom_walker::check_call): Adjust.
32802 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
32803 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
32804 check_bounds_or_overlap's return value.
32805 (handle_builtin_stxncpy): Same.
32806 (handle_builtin_strcat): Same.
32807
32808 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32809 Kwok Cheung Yeung <kcy@codesourcery.com>
32810 Julian Brown <julian@codesourcery.com>
32811 Tom de Vries <tom@codesourcery.com>
32812
32813 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
32814
32815 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32816
32817 * doc/sourcebuild.texi: Document dg-require-effective-target
32818 llvm_binutils and offload_gcn.
32819
32820 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32821 Kwok Cheung Yeung <kcy@codesourcery.com>
32822 Julian Brown <julian@codesourcery.com>
32823 Tom de Vries <tom@codesourcery.com>
32824
32825 * doc/sourcebuild.texi: Document dg-required-effective-target
32826 exceptions.
32827
32828 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32829 Kwok Cheung Yeung <kcy@codesourcery.com>
32830 Julian Brown <julian@codesourcery.com>
32831 Tom de Vries <tom@codesourcery.com>
32832 Jan Hubicka <hubicka@ucw.cz>
32833 Martin Jambor <mjambor@suse.cz>
32834
32835 * config.gcc: Add amdgcn*-*-amdhsa configuration.
32836 * configure.ac: Check for dlopen.
32837 * configure: Regenerate.
32838
32839 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32840 Kwok Cheung Yeung <kcy@codesourcery.com>
32841 Julian Brown <julian@codesourcery.com>
32842 Tom de Vries <tom@codesourcery.com>
32843 Jan Hubicka <hubicka@ucw.cz>
32844 Martin Jambor <mjambor@suse.cz>
32845
32846 * common/config/gcn/gcn-common.c: New file.
32847 * config/gcn/driver-gcn.c: New file.
32848 * config/gcn/gcn-builtins.def: New file.
32849 * config/gcn/gcn-hsa.h: New file.
32850 * config/gcn/gcn-modes.def: New file.
32851 * config/gcn/gcn-opts.h: New file.
32852 * config/gcn/gcn-passes.def: New file.
32853 * config/gcn/gcn-protos.h: New file.
32854 * config/gcn/gcn-run.c: New file.
32855 * config/gcn/gcn-tree.c: New file.
32856 * config/gcn/gcn.c: New file.
32857 * config/gcn/gcn.h: New file.
32858 * config/gcn/gcn.opt: New file.
32859 * config/gcn/t-gcn-hsa: New file.
32860
32861 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
32862 Kwok Cheung Yeung <kcy@codesourcery.com>
32863 Julian Brown <julian@codesourcery.com>
32864 Tom de Vries <tom@codesourcery.com>
32865 Jan Hubicka <hubicka@ucw.cz>
32866 Martin Jambor <mjambor@suse.cz>
32867
32868 * config/gcn/constraints.md: New file.
32869 * config/gcn/gcn-valu.md: New file.
32870 * config/gcn/gcn.md: New file.
32871 * config/gcn/predicates.md: New file.
32872
32873 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
32874
32875 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
32876 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
32877 (stmt_uses_0_or_null_in_undefined_way): Likewise.
32878 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
32879
32880 2019-01-17 Tamar Christina <tamar.christina@arm.com>
32881
32882 PR target/88851
32883 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
32884 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
32885 it and document registers.
32886
32887 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32888
32889 * config/aarch64/aarch64.c (ares_tunings): Define.
32890 * config/aarch64/aarch64-cores.def (ares): Use the above.
32891
32892 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32893
32894 PR target/88794
32895 Revert:
32896 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
32897
32898 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
32899 (_mm512_fixupimm_round_pd): Update parameters and builtin.
32900 (_mm512_maskz_fixupimm_round_pd): Ditto.
32901 (_mm512_fixupimm_round_ps): Ditto.
32902 (_mm512_maskz_fixupimm_round_ps): Ditto.
32903 (_mm_fixupimm_round_sd): Ditto.
32904 (_mm_maskz_fixupimm_round_sd): Ditto.
32905 (_mm_fixupimm_round_ss): Ditto.
32906 (_mm_maskz_fixupimm_round_ss): Ditto.
32907 (_mm512_fixupimm_pd): Ditto.
32908 (_mm512_maskz_fixupimm_pd): Ditto.
32909 (_mm512_fixupimm_ps): Ditto.
32910 (_mm512_maskz_fixupimm_ps): Ditto.
32911 (_mm_fixupimm_sd): Ditto.
32912 (_mm_maskz_fixupimm_sd): Ditto.
32913 (_mm_fixupimm_ss): Ditto.
32914 (_mm_maskz_fixupimm_ss): Ditto.
32915 (_mm512_mask_fixupimm_round_pd): Update builtin.
32916 (_mm512_mask_fixupimm_round_ps): Ditto.
32917 (_mm_mask_fixupimm_round_sd): Ditto.
32918 (_mm_mask_fixupimm_round_ss): Ditto.
32919 (_mm512_mask_fixupimm_pd): Ditto.
32920 (_mm512_mask_fixupimm_ps): Ditto.
32921 (_mm_mask_fixupimm_sd): Ditto.
32922 (_mm_mask_fixupimm_ss): Ditto.
32923 * config/i386/avx512vlintrin.h:
32924 (_mm256_fixupimm_pd): Update parameters and builtin.
32925 (_mm256_maskz_fixupimm_pd): Ditto.
32926 (_mm256_fixupimm_ps): Ditto.
32927 (_mm256_maskz_fixupimm_ps): Ditto.
32928 (_mm_fixupimm_pd): Ditto.
32929 (_mm_maskz_fixupimm_pd): Ditto.
32930 (_mm_fixupimm_ps): Ditto.
32931 (_mm_maskz_fixupimm_ps): Ditto.
32932 (_mm256_mask_fixupimm_pd): Update builtin.
32933 (_mm256_mask_fixupimm_ps): Ditto.
32934 (_mm_mask_fixupimm_pd): Ditto.
32935 (_mm_mask_fixupimm_ps): Ditto.
32936 * config/i386/i386-builtin-types.def: Add new types and remove
32937 useless ones.
32938 * config/i386/i386-builtin.def: Update builtin definitions.
32939 * config/i386/i386.c: Handle new builtin types and remove useless ones.
32940 * config/i386/sse.md: Update VFIXUPIMM* patterns.
32941 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32942 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32943 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
32944 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32945 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32946 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
32947 * config/i386/subst.md:
32948 (round_saeonly_sd_mask_operand4): Add new subst_attr.
32949 (round_saeonly_sd_mask_op4): Ditto.
32950 (round_saeonly_expand_operand5): Ditto.
32951 (round_saeonly_expand): Update.
32952
32953 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32954
32955 PR target/88794
32956 Revert:
32957 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
32958
32959 * config/i386/sse.md: Combine VFIXUPIMM* patterns
32960 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32961 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32962 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
32963 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32964 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32965 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
32966
32967 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32968
32969 PR target/88794
32970 Revert:
32971 2018-12-15 Jakub Jelinek <jakub@redhat.com>
32972
32973 PR target/88489
32974 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
32975 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
32976 instead of UNSPEC_FIXUPIMM.
32977
32978 2019-01-17 Richard Biener <rguenther@suse.de>
32979
32980 PR lto/86736
32981 * dwarf2out.c (want_pubnames): Never generate pubnames sections
32982 and friends for the LTO part of debug info.
32983
32984 2019-01-17 Jakub Jelinek <jakub@redhat.com>
32985
32986 PR tree-optimization/86214
32987 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
32988 if x == y.
32989
32990 PR rtl-optimization/88870
32991 * dce.c (deletable_insn_p): Never delete const/pure calls that can
32992 throw if we can't alter the cfg or delete dead exceptions.
32993 (mark_insn): Don't call find_call_stack_args for such calls.
32994
32995 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
32996
32997 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
32998 prototypes for vec_st.
32999 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33000 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33001 mainly on signed/unsigned long long and double.
33002
33003 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33004
33005 PR target/88861
33006 * combine.c (delete_noop_moves): Convert to "bool" return,
33007 returning true if any edges are eliminated.
33008 (combine_instructions): Also return true if delete_noop_moves
33009 returns true.
33010
33011 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33012
33013 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33014 correct max nunits for endian swap.
33015 (aarch64_expand_fcmla_builtin): Correct subreg code.
33016 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33017 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33018 lane endianness.
33019
33020 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33021
33022 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33023 Handle split indirect COMPLEX_TYPE arguments.
33024
33025 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33026
33027 PR target/86891
33028 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33029 bit is set by add and compare.
33030 (CC_ADC): New CC_MODE.
33031 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33032 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33033 comparison. Add detection for CC_ADCmode.
33034 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33035 CC_ADCmode.
33036 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33037 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33038 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33039 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33040 to eliminate the need for zero-extending the operands.
33041 (add<mode>3_compareC_imm): Delete. Merge into ...
33042 (add<mode>3_compareC): ... this. Restructure the comparison to
33043 eliminate the need for zero-extending the operands.
33044 (add<mode>3_carryin): Use LTU for the overflow detection.
33045 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33046 Reexpress comparison for overflow.
33047 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33048 (add<mode>3_carryinC): Likewise.
33049 (add<mode>3_carryinV): Use LTU for carry between partials.
33050 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33051 handling of CC_Cmode and add CC_ADCmode.
33052 (aarch64_borrow_operation): Likewise.
33053
33054 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33055
33056 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33057 Remove patternmode.
33058 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33059 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33060 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33061 Remove endianness conversion.
33062
33063 2019-01-16 Martin Liska <mliska@suse.cz>
33064
33065 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33066 for GCC driver.
33067 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33068 a new argument.
33069 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33070 (path_prefix_reset): Move up in the source file.
33071 (find_fortran_preinclude_file): Make complex search for the
33072 fortran header files.
33073
33074 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33075
33076 * godump.c (go_output_typedef): When outputting a typedef, refer
33077 to the underlying type by its name and not its structure.
33078
33079 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33080
33081 PR c++/88795
33082 * tree.c (build_function_type): Assert that arg_types is not
33083 error_mark_node.
33084
33085 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33086
33087 PR inline-asm/52813
33088 * doc/extend.texi: Document that listing the stack pointer in the
33089 clobber list of an asm is a deprecated feature.
33090 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33091 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33092 warning instead of an error for clobbers of the stack pointer.
33093 Add a note explaining why.
33094
33095 2019-01-15 Richard Biener <rguenther@suse.de>
33096
33097 PR debug/88046
33098 * dwarf2out.c (gen_member_die): Do not generate inheritance
33099 DIEs late.
33100
33101 2019-01-15 Richard Biener <rguenther@suse.de>
33102
33103 PR tree-optimization/88855
33104 * tree-if-conv.c (combine_blocks): Collect
33105 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33106
33107 2019-01-15 Tom de Vries <tdevries@suse.de>
33108
33109 PR target/80547
33110 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33111 lhs == NULL_TREE for gang-level reduction.
33112
33113 2019-01-15 Richard Biener <rguenther@suse.de>
33114 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33115
33116 PR ipa/88788
33117 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33118 return true if SSA_NAME is already marked in visited bitmap.
33119 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33120
33121 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33122
33123 PR tree-optimization/88775
33124 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33125 equal == 0 equality pointer comparisons some more if compared in
33126 integral types and either one points to an automatic var and the
33127 other to a global, or we can prove at least one points to the middle
33128 or both point to start or both point to end.
33129
33130 2019-01-14 Andi Kleen <ak@linux.intel.com>
33131
33132 * Makefile.in: Lower autofdo sampling rate by 10x.
33133 * Makefile.tpl: Dito.
33134
33135 2019-01-14 Tom Honermann <tom@honermann.net>
33136
33137 * defaults.h: Define CHAR8_TYPE.
33138
33139 2019-01-14 Martin Sebor <msebor@redhat.com>
33140
33141 PR target/88638
33142 * doc/extend.texi (Darwin Format Checks): Clarify.
33143
33144 2019-01-14 Richard Biener <rguenther@suse.de>
33145
33146 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33147 whether we are in (simplify ...) or (match ...) context.
33148
33149 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33150
33151 PR rtl-optimization/88796
33152 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33153 * cfgexpand.c (stack_protect_prologue): Initialize
33154 crtl->stack_protect_guard_decl.
33155 * function.c (stack_protect_epilogue): Use it instead of calling
33156 targetm.stack_protect_guard again.
33157 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33158 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33159 crtl->stack_protect_guard_decl.
33160 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33161 on the returned MEM_EXPR.
33162
33163 2019-01-12 Tom de Vries <tdevries@suse.de>
33164
33165 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33166 vector length using -fopenacc-dim.
33167
33168 2019-01-12 Tom de Vries <tdevries@suse.de>
33169
33170 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33171 lengths into account.
33172
33173 2019-01-12 Svante Signell <svante.signell@gmail.com>
33174
33175 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33176 (TARGET_CAN_SPLIT_STACK): Define.
33177 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33178
33179 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33180
33181 * params.def (inline-unit-growth): Set to 40.
33182
33183 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33184
33185 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33186
33187 2019-01-12 Tom de Vries <tdevries@suse.de>
33188
33189 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33190 region calling vector-partitionable routine, set default_vector_length
33191 to WARP_SIZE.
33192
33193 2019-01-12 Tom de Vries <tdevries@suse.de>
33194
33195 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33196 variable default_vector_length.
33197
33198 2019-01-12 Tom de Vries <tdevries@suse.de>
33199
33200 PR middle-end/88703
33201 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33202 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33203 dimensions limits.
33204
33205 2019-01-12 Tom de Vries <tdevries@suse.de>
33206
33207 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33208 (nvptx_goacc_validate_dims): Add used parameter.
33209 * doc/tm.texi: Regenerate.
33210 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33211 argument to call to targetm.goacc.validate_dims.
33212 (default_goacc_validate_dims): Add used
33213 parameter.
33214 * target.def (validate_dims): Add used parameter in DEFHOOK.
33215 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33216
33217 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33218
33219 PR middle-end/85956
33220 PR lto/88733
33221 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33222 field.
33223 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
33224 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33225 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33226 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33227
33228 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
33229
33230 PR rtl-optimization/87305
33231 * lra-assigns.c
33232 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33233 for little endian pseudos used as paradoxical subreg.
33234
33235 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33236
33237 PR tree-optimization/88693
33238 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33239 for STRING_CSTs that don't contain any NUL characters in the first
33240 TREE_STRING_LENGTH bytes.
33241
33242 2019-01-11 Alan Modra <amodra@gmail.com>
33243
33244 PR 88777
33245 PR 88614
33246 * genattrtab.c (min_fn): Don't translate values.
33247 (min_attr_value): Return INT_MAX when the value can't be calculated.
33248 Return minimum among any values that can be calculated.
33249 (max_attr_value): Adjust.
33250
33251 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33252
33253 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33254
33255 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33256
33257 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33258 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33259 (aarch64_return_call_with_max_clobbers): New function.
33260 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33261 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33262 argument.
33263 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33264 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33265 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33266 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33267 * cselib.c (cselib_process_insn): Add argument to
33268 targetm.hard_regno_call_part_clobbered call.
33269 * ira-conflicts.c (ira_build_conflicts): Ditto.
33270 * ira-costs.c (ira_tune_allocno_costs): Ditto.
33271 * lra-constraints.c (inherit_reload_reg): Ditto.
33272 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33273 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33274 argument. Call targetm.return_call_with_max_clobbers.
33275 Add argument to targetm.hard_regno_call_part_clobbered call.
33276 (calls_have_same_clobbers_p): New function.
33277 (process_bb_lives): Add call_insn and last_call_insn variables.
33278 Pass call_insn to check_pseudos_live_through_calls.
33279 Modify if stmt to check targetm.return_call_with_max_clobbers.
33280 Update setting of flush variable.
33281 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
33282 to false.
33283 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
33284 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
33285 targetm.hard_regno_call_part_clobbered call.
33286 * reginfo.c (choose_hard_reg_mode): Ditto.
33287 * regrename.c (check_new_reg_p): Ditto.
33288 * reload.c (find_equiv_reg): Ditto.
33289 * reload1.c (emit_reload_insns): Ditto.
33290 * sched-deps.c (deps_analyze_insn): Ditto.
33291 * sel-sched.c (init_regs_for_mode): Ditto.
33292 (mark_unavailable_hard_regs): Ditto.
33293 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
33294 * target.def (hard_regno_call_part_clobbered): Add insn argument.
33295 (return_call_with_max_clobbers): New target function.
33296 * doc/tm.texi: Regenerate.
33297 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
33298 * hooks.c (hook_bool_uint_mode_false): Change to
33299 hook_bool_insn_uint_mode_false.
33300 * hooks.h (hook_bool_uint_mode_false): Ditto.
33301
33302 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33303
33304 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33305 (aarch64_remove_extra_call_preserved_regs): New function.
33306 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
33307 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
33308 * doc/tm.texi: Regenerate.
33309 * final.c (get_call_reg_set_usage): Call new hook.
33310 * target.def (remove_extra_call_preserved_regs): New hook.
33311 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
33312 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
33313
33314 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33315
33316 PR bootstrap/88714
33317 * passes.c (finish_optimization_passes): Call print_combine_total_stats
33318 inside of pass_combine_1 dump rather than pass_profile_1.
33319
33320 2019-01-11 Tom de Vries <tdevries@suse.de>
33321
33322 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
33323 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
33324 (PTX_NUM_PER_WORKER_BARRIERS): Define.
33325 (nvptx_apply_dim_limits): Prevent vector_length 64 and
33326 num_workers 16.
33327
33328 2019-01-11 Tom de Vries <tdevries@suse.de>
33329
33330 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
33331
33332 2019-01-11 Jan Beulich <jbeulich@suse.com>
33333
33334 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
33335 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
33336 sse2_cvtsi2sd): Add {l}.
33337 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
33338 syntax.
33339
33340 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33341
33342 PR target/88785
33343 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
33344 define_expand.
33345 (*float<floatunssuffix>v2div2sf2): New define_insn.
33346 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
33347 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
33348 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
33349 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
33350 match_operands with "const0_operand" "C".
33351
33352 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33353
33354 * config/aarch64/aarch64-builtins.c
33355 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
33356 (aarch64_init_simd_builtins): ...Here
33357
33358 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
33359
33360 PR rtl-optimization/87305
33361 * lra-assigns.c
33362 (setup_live_pseudos_and_spill_after_risky_transforms): Check
33363 allocation for big endian pseudos used as paradoxical subregs and
33364 spill them if it is wrong.
33365 * lra-constraints.c (lra_constraints): Add a comment.
33366
33367 2019-01-10 Richard Biener <rguenther@suse.de>
33368
33369 PR tree-optimization/88792
33370 * tree-ssa-pre.c (get_representative_for): Do not return a
33371 value-number here.
33372
33373 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33374
33375 PR middle-end/84877
33376 PR bootstrap/88450
33377 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
33378 (assign_parm_setup_block): Do the argument slot realignment here
33379 instead.
33380
33381 2019-01-10 Stefan Agner <stefan@agner.ch>
33382
33383 PR target/88648
33384 * config/arm/arm.c (arm_option_override_internal): Force
33385 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
33386
33387 2019-01-10 Jakub Jelinek <jakub@redhat.com>
33388
33389 PR c/88568
33390 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
33391 DECL_EXTERNAL.
33392
33393 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33394
33395 * config/arm/arm-builtins.c
33396 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
33397 (MAC_LANE_PAIR_QUALIFIERS): New.
33398 (arm_expand_builtin_args): Use it.
33399 (arm_expand_builtin_1): Likewise.
33400 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
33401 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
33402 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
33403 * config/arm/arm_neon.h:
33404 (vcadd_rot90_f16): New.
33405 (vcaddq_rot90_f16): New.
33406 (vcadd_rot270_f16): New.
33407 (vcaddq_rot270_f16): New.
33408 (vcmla_f16): New.
33409 (vcmlaq_f16): New.
33410 (vcmla_lane_f16): New.
33411 (vcmla_laneq_f16): New.
33412 (vcmlaq_lane_f16): New.
33413 (vcmlaq_laneq_f16): New.
33414 (vcmla_rot90_f16): New.
33415 (vcmlaq_rot90_f16): New.
33416 (vcmla_rot90_lane_f16): New.
33417 (vcmla_rot90_laneq_f16): New.
33418 (vcmlaq_rot90_lane_f16): New.
33419 (vcmlaq_rot90_laneq_f16): New.
33420 (vcmla_rot180_f16): New.
33421 (vcmlaq_rot180_f16): New.
33422 (vcmla_rot180_lane_f16): New.
33423 (vcmla_rot180_laneq_f16): New.
33424 (vcmlaq_rot180_lane_f16): New.
33425 (vcmlaq_rot180_laneq_f16): New.
33426 (vcmla_rot270_f16): New.
33427 (vcmlaq_rot270_f16): New.
33428 (vcmla_rot270_lane_f16): New.
33429 (vcmla_rot270_laneq_f16): New.
33430 (vcmlaq_rot270_lane_f16): New.
33431 (vcmlaq_rot270_laneq_f16): New.
33432 (vcadd_rot90_f32): New.
33433 (vcaddq_rot90_f32): New.
33434 (vcadd_rot270_f32): New.
33435 (vcaddq_rot270_f32): New.
33436 (vcmla_f32): New.
33437 (vcmlaq_f32): New.
33438 (vcmla_lane_f32): New.
33439 (vcmla_laneq_f32): New.
33440 (vcmlaq_lane_f32): New.
33441 (vcmlaq_laneq_f32): New.
33442 (vcmla_rot90_f32): New.
33443 (vcmlaq_rot90_f32): New.
33444 (vcmla_rot90_lane_f32): New.
33445 (vcmla_rot90_laneq_f32): New.
33446 (vcmlaq_rot90_lane_f32): New.
33447 (vcmlaq_rot90_laneq_f32): New.
33448 (vcmla_rot180_f32): New.
33449 (vcmlaq_rot180_f32): New.
33450 (vcmla_rot180_lane_f32): New.
33451 (vcmla_rot180_laneq_f32): New.
33452 (vcmlaq_rot180_lane_f32): New.
33453 (vcmlaq_rot180_laneq_f32): New.
33454 (vcmla_rot270_f32): New.
33455 (vcmlaq_rot270_f32): New.
33456 (vcmla_rot270_lane_f32): New.
33457 (vcmla_rot270_laneq_f32): New.
33458 (vcmlaq_rot270_lane_f32): New.
33459 (vcmlaq_rot270_laneq_f32): New.
33460 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
33461 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
33462 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
33463 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
33464 vcmlaq_lane270): New.
33465 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33466 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
33467 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
33468 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
33469 (arm_option_reconfigure_globals): Use them.
33470 * config/arm/iterators.md (VDF, VQ_HSF): New.
33471 (VCADD, VCMLA): New.
33472 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
33473 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
33474 New.
33475 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
33476 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
33477
33478 2019-01-10 Tamar Christina <tamar.christina@arm.com>
33479
33480 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
33481 Add qualifier_lane_pair_index.
33482 (emit-rtl.h): Include.
33483 (TYPES_QUADOP_LANE_PAIR): New.
33484 (aarch64_simd_expand_args): Use it.
33485 (aarch64_simd_expand_builtin): Likewise.
33486 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
33487 New.
33488 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
33489 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
33490 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
33491 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
33492 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
33493 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
33494 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
33495 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
33496 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
33497 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
33498 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
33499 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
33500 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
33501 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
33502 Add __ARM_FEATURE_COMPLEX.
33503 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
33504 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
33505 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
33506 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
33507 fcmlaq_lane270): New.
33508 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33509 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
33510 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
33511 * config/aarch64/arm_neon.h:
33512 (vcadd_rot90_f16): New.
33513 (vcaddq_rot90_f16): New.
33514 (vcadd_rot270_f16): New.
33515 (vcaddq_rot270_f16): New.
33516 (vcmla_f16): New.
33517 (vcmlaq_f16): New.
33518 (vcmla_lane_f16): New.
33519 (vcmla_laneq_f16): New.
33520 (vcmlaq_lane_f16): New.
33521 (vcmlaq_rot90_lane_f16): New.
33522 (vcmla_rot90_laneq_f16): New.
33523 (vcmla_rot90_lane_f16): New.
33524 (vcmlaq_rot90_f16): New.
33525 (vcmla_rot90_f16): New.
33526 (vcmlaq_laneq_f16): New.
33527 (vcmla_rot180_laneq_f16): New.
33528 (vcmla_rot180_lane_f16): New.
33529 (vcmlaq_rot180_f16): New.
33530 (vcmla_rot180_f16): New.
33531 (vcmlaq_rot90_laneq_f16): New.
33532 (vcmlaq_rot270_laneq_f16): New.
33533 (vcmlaq_rot270_lane_f16): New.
33534 (vcmla_rot270_laneq_f16): New.
33535 (vcmlaq_rot270_f16): New.
33536 (vcmla_rot270_f16): New.
33537 (vcmlaq_rot180_laneq_f16): New.
33538 (vcmlaq_rot180_lane_f16): New.
33539 (vcmla_rot270_lane_f16): New.
33540 (vcadd_rot90_f32): New.
33541 (vcaddq_rot90_f32): New.
33542 (vcaddq_rot90_f64): New.
33543 (vcadd_rot270_f32): New.
33544 (vcaddq_rot270_f32): New.
33545 (vcaddq_rot270_f64): New.
33546 (vcmla_f32): New.
33547 (vcmlaq_f32): New.
33548 (vcmlaq_f64): New.
33549 (vcmla_lane_f32): New.
33550 (vcmla_laneq_f32): New.
33551 (vcmlaq_lane_f32): New.
33552 (vcmlaq_laneq_f32): New.
33553 (vcmla_rot90_f32): New.
33554 (vcmlaq_rot90_f32): New.
33555 (vcmlaq_rot90_f64): New.
33556 (vcmla_rot90_lane_f32): New.
33557 (vcmla_rot90_laneq_f32): New.
33558 (vcmlaq_rot90_lane_f32): New.
33559 (vcmlaq_rot90_laneq_f32): New.
33560 (vcmla_rot180_f32): New.
33561 (vcmlaq_rot180_f32): New.
33562 (vcmlaq_rot180_f64): New.
33563 (vcmla_rot180_lane_f32): New.
33564 (vcmla_rot180_laneq_f32): New.
33565 (vcmlaq_rot180_lane_f32): New.
33566 (vcmlaq_rot180_laneq_f32): New.
33567 (vcmla_rot270_f32): New.
33568 (vcmlaq_rot270_f32): New.
33569 (vcmlaq_rot270_f64): New.
33570 (vcmla_rot270_lane_f32): New.
33571 (vcmla_rot270_laneq_f32): New.
33572 (vcmlaq_rot270_lane_f32): New.
33573 (vcmlaq_rot270_laneq_f32): New.
33574 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
33575 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
33576 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
33577 (FCADD, FCMLA): New.
33578 (rot): New.
33579 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
33580
33581 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33582
33583 PR other/16615
33584
33585 * config/pa/pa.c: Change "can not" to "cannot".
33586 * gimple-ssa-evrp-analyze.c: Likewise.
33587 * ipa-icf.c: Likewise.
33588 * ipa-polymorphic-call.c: Likewise.
33589 * ipa-pure-const.c: Likewise.
33590 * lra-constraints.c: Likewise.
33591 * lra-remat.c: Likewise.
33592 * reload1.c: Likewise.
33593 * reorg.c: Likewise.
33594 * tree-ssa-uninit.c: Likewise.
33595
33596 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
33597
33598 PR other/16615
33599
33600 * Makefile.in: Mechanically replace "can not" with "cannot".
33601 * alias.c: Likewise.
33602 * builtins.c: Likewise.
33603 * calls.c: Likewise.
33604 * cgraph.c: Likewise.
33605 * cgraph.h: Likewise.
33606 * cgraphclones.c: Likewise.
33607 * cgraphunit.c: Likewise.
33608 * combine-stack-adj.c: Likewise.
33609 * combine.c: Likewise.
33610 * common/config/i386/i386-common.c: Likewise.
33611 * config/aarch64/aarch64.c: Likewise.
33612 * config/alpha/sync.md: Likewise.
33613 * config/arc/arc.c: Likewise.
33614 * config/arc/predicates.md: Likewise.
33615 * config/arm/arm-c.c: Likewise.
33616 * config/arm/arm.c: Likewise.
33617 * config/arm/arm.h: Likewise.
33618 * config/arm/arm.md: Likewise.
33619 * config/arm/cortex-r4f.md: Likewise.
33620 * config/csky/csky.c: Likewise.
33621 * config/csky/csky.h: Likewise.
33622 * config/darwin-f.c: Likewise.
33623 * config/epiphany/epiphany.md: Likewise.
33624 * config/i386/i386.c: Likewise.
33625 * config/i386/sol2.h: Likewise.
33626 * config/m68k/m68k.c: Likewise.
33627 * config/mcore/mcore.h: Likewise.
33628 * config/microblaze/microblaze.md: Likewise.
33629 * config/mips/20kc.md: Likewise.
33630 * config/mips/sb1.md: Likewise.
33631 * config/nds32/nds32.c: Likewise.
33632 * config/nds32/predicates.md: Likewise.
33633 * config/pa/pa.c: Likewise.
33634 * config/rs6000/e300c2c3.md: Likewise.
33635 * config/rs6000/rs6000.c: Likewise.
33636 * config/s390/s390.h: Likewise.
33637 * config/sh/sh.c: Likewise.
33638 * config/sh/sh.md: Likewise.
33639 * config/spu/vmx2spu.h: Likewise.
33640 * cprop.c: Likewise.
33641 * dbxout.c: Likewise.
33642 * df-scan.c: Likewise.
33643 * doc/cfg.texi: Likewise.
33644 * doc/extend.texi: Likewise.
33645 * doc/fragments.texi: Likewise.
33646 * doc/gty.texi: Likewise.
33647 * doc/invoke.texi: Likewise.
33648 * doc/lto.texi: Likewise.
33649 * doc/md.texi: Likewise.
33650 * doc/objc.texi: Likewise.
33651 * doc/rtl.texi: Likewise.
33652 * doc/tm.texi: Likewise.
33653 * dse.c: Likewise.
33654 * emit-rtl.c: Likewise.
33655 * emit-rtl.h: Likewise.
33656 * except.c: Likewise.
33657 * expmed.c: Likewise.
33658 * expr.c: Likewise.
33659 * fold-const.c: Likewise.
33660 * genautomata.c: Likewise.
33661 * gimple-fold.c: Likewise.
33662 * hard-reg-set.h: Likewise.
33663 * ifcvt.c: Likewise.
33664 * ipa-comdats.c: Likewise.
33665 * ipa-cp.c: Likewise.
33666 * ipa-devirt.c: Likewise.
33667 * ipa-fnsummary.c: Likewise.
33668 * ipa-icf.c: Likewise.
33669 * ipa-inline-transform.c: Likewise.
33670 * ipa-inline.c: Likewise.
33671 * ipa-polymorphic-call.c: Likewise.
33672 * ipa-profile.c: Likewise.
33673 * ipa-prop.c: Likewise.
33674 * ipa-pure-const.c: Likewise.
33675 * ipa-reference.c: Likewise.
33676 * ipa-split.c: Likewise.
33677 * ipa-visibility.c: Likewise.
33678 * ipa.c: Likewise.
33679 * ira-build.c: Likewise.
33680 * ira-color.c: Likewise.
33681 * ira-conflicts.c: Likewise.
33682 * ira-costs.c: Likewise.
33683 * ira-int.h: Likewise.
33684 * ira-lives.c: Likewise.
33685 * ira.c: Likewise.
33686 * ira.h: Likewise.
33687 * loop-invariant.c: Likewise.
33688 * loop-unroll.c: Likewise.
33689 * lower-subreg.c: Likewise.
33690 * lra-assigns.c: Likewise.
33691 * lra-constraints.c: Likewise.
33692 * lra-eliminations.c: Likewise.
33693 * lra-lives.c: Likewise.
33694 * lra-remat.c: Likewise.
33695 * lra-spills.c: Likewise.
33696 * lra.c: Likewise.
33697 * lto-cgraph.c: Likewise.
33698 * lto-streamer-out.c: Likewise.
33699 * postreload-gcse.c: Likewise.
33700 * predict.c: Likewise.
33701 * profile-count.h: Likewise.
33702 * profile.c: Likewise.
33703 * recog.c: Likewise.
33704 * ree.c: Likewise.
33705 * reload.c: Likewise.
33706 * reload1.c: Likewise.
33707 * reorg.c: Likewise.
33708 * resource.c: Likewise.
33709 * rtl.def: Likewise.
33710 * rtl.h: Likewise.
33711 * rtlanal.c: Likewise.
33712 * sched-deps.c: Likewise.
33713 * sched-ebb.c: Likewise.
33714 * sched-rgn.c: Likewise.
33715 * sel-sched-ir.c: Likewise.
33716 * sel-sched.c: Likewise.
33717 * shrink-wrap.c: Likewise.
33718 * simplify-rtx.c: Likewise.
33719 * symtab.c: Likewise.
33720 * target.def: Likewise.
33721 * toplev.c: Likewise.
33722 * tree-call-cdce.c: Likewise.
33723 * tree-cfg.c: Likewise.
33724 * tree-complex.c: Likewise.
33725 * tree-core.h: Likewise.
33726 * tree-eh.c: Likewise.
33727 * tree-inline.c: Likewise.
33728 * tree-loop-distribution.c: Likewise.
33729 * tree-nrv.c: Likewise.
33730 * tree-profile.c: Likewise.
33731 * tree-sra.c: Likewise.
33732 * tree-ssa-alias.c: Likewise.
33733 * tree-ssa-dce.c: Likewise.
33734 * tree-ssa-dom.c: Likewise.
33735 * tree-ssa-forwprop.c: Likewise.
33736 * tree-ssa-loop-im.c: Likewise.
33737 * tree-ssa-loop-ivcanon.c: Likewise.
33738 * tree-ssa-loop-ivopts.c: Likewise.
33739 * tree-ssa-loop-niter.c: Likewise.
33740 * tree-ssa-phionlycprop.c: Likewise.
33741 * tree-ssa-phiopt.c: Likewise.
33742 * tree-ssa-propagate.c: Likewise.
33743 * tree-ssa-threadedge.c: Likewise.
33744 * tree-ssa-threadupdate.c: Likewise.
33745 * tree-ssa-uninit.c: Likewise.
33746 * tree-ssanames.c: Likewise.
33747 * tree-streamer-out.c: Likewise.
33748 * tree.c: Likewise.
33749 * tree.h: Likewise.
33750 * vr-values.c: Likewise.
33751
33752 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
33753
33754 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
33755 (ix86_split_xorsign): Ditto.
33756 * config/i386/i386.c (ix86_expand_xorsign): New function.
33757 (ix86_split_xorsign): Ditto.
33758 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
33759 (xorsign<mode>3): New expander.
33760 (xorsign<mode>3_1): New insn_and_split pattern.
33761 * config/i386/sse.md (xorsign<mode>3): New expander.
33762
33763 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33764
33765 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
33766 (*tablejump_sp64): Likewise.
33767 (*tablejump<P:mode>): ...this.
33768 (*call_address_sp32): Merge into...
33769 (*call_address_sp64): Likewise.
33770 (*call_address<P:mode>): ...this.
33771 (*call_symbolic_sp32): Merge into...
33772 (*call_symbolic_sp64): Likewise.
33773 (*call_symbolic<P:mode>): ...this.
33774 (call_value): Remove constraint and add predicate.
33775 (*call_value_address_sp32): Merge into...
33776 (*call_value_address_sp64): Likewise.
33777 (*call_value_address<P:mode>): ...this.
33778 (*call_value_symbolic_sp32): Merge into...
33779 (*call_value_symbolic_sp64): Likewise.
33780 (*call_value_symbolic<P:mode>): ...this.
33781 (*sibcall_symbolic_sp32): Merge into...
33782 (*sibcall_symbolic_sp64): Likewise.
33783 (*sibcall_symbolic<P:mode>): ...this.
33784 (sibcall_value): Remove constraint and add predicate.
33785 (*sibcall_value_symbolic_sp32): Merge into...
33786 (*sibcall_value_symbolic_sp64): Likewise.
33787 (*sibcall_value_symbolic<P:mode>): ...this.
33788 (window_save): Minor tweak.
33789 (*branch_sp32): Merge into...
33790 (*branch_sp64): Likewise.
33791 (*branch<P:mode>): ...this.
33792
33793 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33794 James Clarke <jrtc27@jrtc27.com>
33795
33796 PR target/84010
33797 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
33798 consistently in TLS address generation and adjust code to the renaming
33799 of patterns. Mark calls to __tls_get_addr as const.
33800 * config/sparc/sparc.md (tgd_hi22): Turn into...
33801 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
33802 (tgd_lo10): Turn into...
33803 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
33804 (tgd_add32): Merge into...
33805 (tgd_add64): Likewise.
33806 (tgd_add<P:mode>): ...this and use Pmode throughout.
33807 (tldm_hi22): Turn into...
33808 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
33809 (tldm_lo10): Turn into...
33810 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
33811 (tldm_add32): Merge into...
33812 (tldm_add64): Likewise.
33813 (tldm_add<P:mode>): ...this and use Pmode throughout.
33814 (tldm_call32): Merge into...
33815 (tldm_call64): Likewise.
33816 (tldm_call<P:mode>): ...this and use Pmode throughout.
33817 (tldo_hix22): Turn into...
33818 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
33819 (tldo_lox10): Turn into...
33820 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
33821 (tldo_add32): Merge into...
33822 (tldo_add64): Likewise.
33823 (tldo_add<P:mode>): ...this and use Pmode throughout.
33824 (tie_hi22): Turn into...
33825 (tie_hi22<P:mode>): ...this and use Pmode throughout.
33826 (tie_lo10): Turn into...
33827 (tie_lo10<P:mode>): ...this and use Pmode throughout.
33828 (tie_ld64): Use DImode throughout.
33829 (tie_add32): Merge into...
33830 (tie_add64): Likewise.
33831 (tie_add<P:mode>): ...this and use Pmode throughout.
33832 (tle_hix22_sp32): Merge into...
33833 (tle_hix22_sp64): Likewise.
33834 (tle_hix22<P:mode>): ...this and use Pmode throughout.
33835 (tle_lox22_sp32): Merge into...
33836 (tle_lox22_sp64): Likewise.
33837 (tle_lox22<P:mode>): ...this and use Pmode throughout.
33838 (*tldo_ldub_sp32): Merge into...
33839 (*tldo_ldub_sp64): Likewise.
33840 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
33841 (*tldo_ldub1_sp32): Merge into...
33842 (*tldo_ldub1_sp64): Likewise.
33843 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
33844 (*tldo_ldub2_sp32): Merge into...
33845 (*tldo_ldub2_sp64): Likewise.
33846 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
33847 (*tldo_ldsb1_sp32): Merge into...
33848 (*tldo_ldsb1_sp64): Likewise.
33849 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
33850 (*tldo_ldsb2_sp32): Merge into...
33851 (*tldo_ldsb2_sp64): Likewise.
33852 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
33853 (*tldo_ldub3_sp64): Use DImode throughout.
33854 (*tldo_ldsb3_sp64): Likewise.
33855 (*tldo_lduh_sp32): Merge into...
33856 (*tldo_lduh_sp64): Likewise.
33857 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
33858 (*tldo_lduh1_sp32): Merge into...
33859 (*tldo_lduh1_sp64): Likewise.
33860 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
33861 (*tldo_ldsh1_sp32): Merge into...
33862 (*tldo_ldsh1_sp64): Likewise.
33863 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
33864 (*tldo_lduh2_sp64): Use DImode throughout.
33865 (*tldo_ldsh2_sp64): Likewise.
33866 (*tldo_lduw_sp32): Merge into...
33867 (*tldo_lduw_sp64): Likewise.
33868 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
33869 (*tldo_lduw1_sp64): Use DImode throughout.
33870 (*tldo_ldsw1_sp64): Likewise.
33871 (*tldo_ldx_sp64): Likewise.
33872 (*tldo_stb_sp32): Merge into...
33873 (*tldo_stb_sp64): Likewise.
33874 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
33875 (*tldo_sth_sp32): Merge into...
33876 (*tldo_sth_sp64): Likewise.
33877 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
33878 (*tldo_stw_sp32): Merge into...
33879 (*tldo_stw_sp64): Likewise.
33880 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
33881 (*tldo_stx_sp64): Use DImode throughout.
33882
33883 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33884
33885 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
33886 check configure option to set BTI and Return Address Signing.
33887 * configure.ac: Add --enable-standard-branch-protection and
33888 --disable-standard-branch-protection.
33889 * configure: Regenerated.
33890 * doc/install.texi: Document the same.
33891
33892 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33893 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33894
33895 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
33896 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
33897 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
33898 if bti is enabled.
33899 * config/aarch64/aarch64-bti-insert.c: New file.
33900 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
33901 pass.
33902 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
33903 new bti pass.
33904 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
33905 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
33906 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
33907 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
33908
33909 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33910
33911 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
33912 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
33913 Disable bti for -mbranch-protection=none.
33914 (aarch64_handle_standard_branch_protection): Enable bti for
33915 -mbranch-protection=standard.
33916 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
33917 -mbranch-protection.
33918 (aarch64_bti_enabled): Check if bti is enabled.
33919 * config/aarch64/aarch64.opt: Declare target variable.
33920 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
33921
33922 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33923
33924 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
33925 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
33926 (aarch64_expand_epilogue): Likewise.
33927 (aarch64_output_mi_thunk): Likewise.
33928 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
33929 TAILCALL_ADDR_REGS to x16 and x17.
33930 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
33931
33932 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33933
33934 * config/aarch64/aarch64-option-extensions.def: Define
33935 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
33936 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
33937 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
33938 (AARCH64_FL_PREDRES): New.
33939 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
33940 AARCH64_FL_PREDRES by default.
33941 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
33942
33943 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33944
33945 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
33946 ARMv8.5-A.
33947 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
33948 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
33949 * doc/invoke.texi: Document ARMv8.5-A.
33950
33951 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
33952
33953 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
33954 (xorsign<mode>3): Likewise.
33955
33956 2019-01-09 Jelinek <jakub@redhat.com>
33957
33958 PR middle-end/88758
33959 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
33960 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
33961
33962 PR rtl-optimization/88331
33963 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
33964 not currently_expanding_to_rtl.
33965
33966 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33967
33968 * doc/invoke.texi (-Os): Remove trailing spaces.
33969 (-finline-functions): Remove reference to -O2.
33970
33971 2019-01-08 Jakub Jelinek <jakub@redhat.com>
33972
33973 PR rtl-optimization/79593
33974 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
33975
33976 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
33977 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
33978
33979 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
33980
33981 PR bootstrap/88721
33982 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
33983 to -1 on entry.
33984
33985 PR debug/88723
33986 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
33987 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
33988
33989 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
33990
33991 PR target/88717
33992 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
33993 ix86_avx_u128_mode_entry.
33994
33995 2019-01-08 Martin Liska <mliska@suse.cz>
33996
33997 PR tree-optimization/88753
33998 * tree-switch-conversion.c (switch_conversion::build_one_array):
33999 Come up with local variable constructor. Convert first to
34000 type of constructor values.
34001
34002 2019-01-08 Richard Biener <rguenther@suse.de>
34003
34004 PR tree-optimization/86554
34005 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34006 rpo_avail): Move earlier.
34007 (visit_nary_op): When value-numbering to expressions
34008 with different overflow behavior make sure there's an
34009 available expression on the path.
34010
34011 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34012
34013 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34014 aarch64_parse_branch_protection,
34015 struct aarch64_branch_protect_type,
34016 aarch64_handle_no_branch_protection,
34017 aarch64_handle_standard_branch_protection,
34018 aarch64_validate_mbranch_protection,
34019 aarch64_handle_pac_ret_protection,
34020 aarch64_handle_attr_branch_protection,
34021 accepted_branch_protection_string,
34022 aarch64_pac_ret_subtypes,
34023 aarch64_branch_protect_types,
34024 aarch64_handle_pac_ret_leaf): Define.
34025 (aarch64_override_options_after_change_1, aarch64_override_options):
34026 Add check for accepted_branch_protection_string.
34027 (aarch64_option_save): Save accepted_branch_protection_string.
34028 (aarch64_option_restore): Save accepted_branch_protection_string.
34029 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34030 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34031 msign-return-address.
34032 * doc/invoke.texi: Add mbranch-protection.
34033
34034 2019-01-08 Alan Modra <amodra@gmail.com>
34035
34036 PR target/88614
34037 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34038 Delete "unknownp" parameter. Adjust callers. Handle
34039 CONST_INT, PLUS, MINUS, and MULT.
34040 (attr_value_aligned): Renamed from or_attr_value.
34041 (min_attr_value): Return INT_MIN for unhandled rtl case..
34042 (min_fn): ..and translate to INT_MAX here.
34043 (write_length_unit_log): Modify to cope without "unknown".
34044 (write_attr_value): Handle IF_THEN_ELSE.
34045
34046 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34047
34048 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34049 optimization for masked stores.
34050
34051 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34052
34053 PR middle-end/88567
34054 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34055 output vector directly to duplicate_and_interleave instead of
34056 going through a temporary. Postpone insertion of ctor_seq to
34057 the end of the loop.
34058
34059 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34060
34061 PR target/86891
34062 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34063 unsigned_p. Handle signed and unsigned overflow correction as
34064 required.
34065 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34066 prototype.
34067 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34068 for operand 2.
34069 (add<mode>3_compareV_imm): Make this callable for expanding.
34070 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34071 aarch64_plus_operand for operand 2.
34072 (subv<GPI:mode>_insn): New insn pattern.
34073 (subv<GPI:mode>_imm): Likewise.
34074 (negv<GPI:mode>3): New expand pattern.
34075 (negv<GPI:mode>_insn): New insn pattern.
34076 (negv<GPI:mode>_cmp_only): Likewise.
34077 (cmpv<GPI:mode>_insn): Likewise.
34078 (subvti4): Use register_operand for operand 1. Update call to
34079 aarch64_expand_subvti.
34080 (usubvti4): Likewise.
34081 (negvti3): New expand pattern.
34082 (negdi_carryout): New insn pattern.
34083 (negvdi_carryinV): New insn pattern.
34084 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34085 version the named version.
34086 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34087 operands.
34088 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34089 patterns.
34090 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34091 patterns.
34092 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34093 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34094 (sub<mode>3_carryinCV): Delete.
34095 (sub<GPI:mode>3_carryinV): New expand pattern.
34096 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34097
34098 2019-01-07 Richard Biener <rguenther@suse.de>
34099
34100 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34101 of tree_operand_hash.
34102
34103 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34104
34105 PR tree-optimization/88598
34106 * tree.h (single_nonzero_element): Declare.
34107 * tree.c (single_nonzero_element): New function.
34108 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34109 if I is the only nonzero element of CST.
34110
34111 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34112
34113 PR tree-optimization/88598
34114 * tree.h (initializer_each_zero_or_onep): Declare.
34115 * tree.c (initializer_each_zero_or_onep): New function.
34116 (signed_or_unsigned_type_for): Handle float types too.
34117 (unsigned_type_for, signed_type_for): Update comments accordingly.
34118 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34119 x & { 0 or -1, 0 or -1, ... }.
34120
34121 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34122
34123 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34124 with x86_64-pc-linux-gnu.
34125
34126 2019-01-07 Tom de Vries <tdevries@suse.de>
34127
34128 PR target/85486
34129 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34130 function.
34131 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34132 routines.
34133
34134 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34135
34136 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34137 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34138 TARGET_AVX512F as condition.
34139
34140 PR debug/88723
34141 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34142 const_not_ok_for_debug_p target hook.
34143 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34144 on UNSPEC and subexpressions thereof if all subexpressions of the
34145 UNSPEC are CONSTANT_P.
34146
34147 PR tree-optimization/88676
34148 * tree-ssa-phiopt.c (two_value_replacement): New function.
34149 (tree_ssa_phiopt_worker): Call it.
34150
34151 PR sanitizer/88619
34152 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34153 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34154
34155 PR c++/85052
34156 * tree-vect-generic.c: Include insn-config.h and recog.h.
34157 (expand_vector_piecewise): Add defaulted ret_type argument,
34158 if non-NULL, use that in preference to type for the result type.
34159 (expand_vector_parallel): Formatting fix.
34160 (do_vec_conversion, do_vec_narrowing_conversion,
34161 expand_vector_conversion): New functions.
34162 (expand_vector_operations_1): Call expand_vector_conversion
34163 for VEC_CONVERT ifn calls.
34164 * internal-fn.def (VEC_CONVERT): New internal function.
34165 * internal-fn.c (expand_VEC_CONVERT): New function.
34166 * fold-const-call.c (fold_const_vec_convert): New function.
34167 (fold_const_call): Use it for CFN_VEC_CONVERT.
34168 * doc/extend.texi (__builtin_convertvector): Document.
34169
34170 2019-01-07 Tom de Vries <tdevries@suse.de>
34171
34172 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34173 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34174 vector_red_partition, vector_red_sym): New global variables.
34175 (nvptx_option_override): Initialize vector_red_sym.
34176 (nvptx_declare_function_name): Restore red_partition register.
34177 (nvptx_file_end): Emit code to declare the vector reduction variables.
34178 (nvptx_output_red_partition): New function.
34179 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34180 large vector reductions.
34181 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34182 (nvptx_init_builtins): Add VECTOR_ADDR.
34183 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34184 Handle nvptx_expand_shared_addr.
34185 (nvptx_get_shared_red_addr): Add vector argument and handle large
34186 vectors.
34187 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34188 large vectors.
34189 (nvptx_goacc_reduction_init): Likewise.
34190 (nvptx_goacc_reduction_fini): Likewise.
34191 (nvptx_goacc_reduction_teardown): Likewise.
34192 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34193 init,fini,teardown}.
34194 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34195 (nvptx_set_current_function): Init vector_red_partition.
34196 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34197 (nvptx_red_partition): New insn.
34198 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34199
34200 2019-01-07 Tom de Vries <tdevries@suse.de>
34201
34202 PR target/85381
34203 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34204 empty loops.
34205
34206 2019-01-07 Tom de Vries <tdevries@suse.de>
34207
34208 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34209 (nvptx_option_override): Init oacc_bcast_partition.
34210 (nvptx_init_oacc_workers): New function.
34211 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34212 (nvptx_needs_shared_bcast): New function.
34213 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34214 to propagate state.
34215 (nvptx_shared_propagate): Initialize vector bcast partition and
34216 synchronization state.
34217 (nvptx_single): Generalize to enable vectors to use shared-memory
34218 to propagate state.
34219 (nvptx_process_pars): Likewise.
34220 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34221 * config/nvptx/nvptx.h (struct machine_function): Add
34222 bcast_partition and sync_bar members.
34223
34224 2019-01-07 Tom de Vries <tdevries@suse.de>
34225
34226 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34227 (nvptx_apply_dim_limits): New function.
34228 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34229 PTX_WARP_SIZE.
34230
34231 2019-01-07 Tom de Vries <tdevries@suse.de>
34232
34233 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34234 as late as possible.
34235
34236 2019-01-07 Tom de Vries <tdevries@suse.de>
34237
34238 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34239 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34240 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34241 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34242 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34243
34244 2019-01-07 Tom de Vries <tdevries@suse.de>
34245
34246 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34247
34248 2019-01-07 Tom de Vries <tdevries@suse.de>
34249
34250 * omp-offload.c (oacc_get_min_dim): New function.
34251 * omp-offload.h (oacc_get_min_dim): Declare.
34252
34253 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34254
34255 PR target/88521
34256 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34257 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34258
34259 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34260
34261 PR tree-opt/86020
34262 Revert:
34263 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
34264
34265 * ipa-inline.c (edge_badness): Use inlined_time instead of
34266 inline_summaries->get.
34267
34268 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34269
34270 * opts.c (enable_fdo_optimizations): Enable
34271 version-loops-for-strides, loop-interchange, unrol-and-jam
34272 and tree-loop-distribution.
34273 * invoke.texi: Document newly enabled options.
34274
34275 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34276
34277 * doc/invoke.texi (max-inline-insns-small): New parameters.
34278 * ipa-inline.c (want_early_inline_function_p): simplify.
34279 (want_inline_small_function_p): Fix pasto from previous patch;
34280 use max-inline-insns-small bound.
34281 * params.def (max-inline-insns-small): New param.
34282 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
34283 variables correctly.
34284
34285 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34286
34287 * doc/invoke.texi: Document max-inline-insns-size,
34288 uninlined-function-insns, uninlined-function-time,
34289 uninlined-thunk-insns and uninlined-thunk-time.
34290 * params.def: Add max-inline-insns-size,
34291 uninlined-function-insns, uninlined-function-time,
34292 uninlined-thunk-insns and uninlined-thunk-time.
34293 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
34294 new parameters.
34295 * ipa-inline.c (can_inline_edge_by_limits_p,
34296 want_inline_small_function_p): Use new parameters.
34297
34298 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34299
34300 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
34301
34302 2019-01-05 Jakub Jelinek <jakub@redhat.com>
34303
34304 PR middle-end/82564
34305 PR target/88620
34306 * expr.c (expand_assignment): For calls returning VLA structures
34307 if to_rtx is not a MEM, force it into a stack temporary.
34308
34309 PR debug/88635
34310 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
34311 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
34312 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
34313 subexpressions of both operands.
34314 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
34315 subrtxes are CONSTANT_P.
34316 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
34317 2018-11-09 changes.
34318
34319 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
34320
34321 * params.def (hot-bb-count-ws-permille): Set to 990.
34322
34323 2019-01-04 Martin Sebor <msebor@redhat.com>
34324
34325 PR c/88546
34326 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
34327 leaf.
34328
34329 2019-01-04 Martin Sebor <msebor@redhat.com>
34330
34331 PR c/88363
34332 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
34333
34334 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34335
34336 * gdbinit.in: Turn off pagination for the skip commands, restore
34337 it to previous state afterwards.
34338
34339 2019-01-04 Jakub Jelinek <jakub@redhat.com>
34340
34341 PR target/88594
34342 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
34343 of GET_MODE (opN) as modes of the libcall arguments.
34344
34345 2019-01-04 Jan Beulich <jbeulich@suse.com>
34346
34347 * config/i386/sse.md
34348 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
34349 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
34350 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34351 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
34352 avx512f_vmcmp<mode>3<round_saeonly_name>,
34353 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
34354 avx512f_maskcmp<mode>3,
34355 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34356 <avx512>_cvt<ssemodesuffix>2mask<mode>,
34357 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34358 *<avx512>_cvtmask2<ssemodesuffix><mode>,
34359 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34360 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
34361 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34362 <avx512>_gt<mode>3<mask_scalar_merge_name>,
34363 <avx512>_testm<mode>3<mask_scalar_merge_name>,
34364 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
34365 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
34366 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
34367 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
34368 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
34369 avx512cd_maskb_vec_dup<mode>,
34370 avx512cd_maskw_vec_dup<mode>,
34371 avx512dq_fpclass<mode><mask_scalar_merge_name>,
34372 avx512dq_vmfpclass<mode>,
34373 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
34374 instead of =Yk.
34375
34376 2019-01-03 Martin Sebor <msebor@redhat.com>
34377
34378 PR tree-optimization/88659
34379 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
34380
34381 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
34382
34383 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
34384 unaligned vsx and avoid lxvd2x/stxvd2x.
34385 (gen_lvx_v4si_move): New function.
34386
34387 2019-01-03 Tom de Vries <tdevries@suse.de>
34388
34389 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
34390 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
34391 function.
34392 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
34393
34394 2019-01-03 Tom de Vries <tdevries@suse.de>
34395
34396 * config/nvptx/nvptx.c (struct offload_attrs): New.
34397 (populate_offload_attrs): New function. Factor mask extraction out of
34398 nvptx_reorg. Add extraction of dimensions.
34399 (nvptx_reorg): Use populate_offload_attrs.
34400
34401 2019-01-03 Tom de Vries <tdevries@suse.de>
34402
34403 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
34404 cases for oacc_min_dims_p and routine_p. Add asserts for
34405 oacc_default_dims_p and offload_region_p.
34406
34407 2019-01-03 Tom de Vries <tdevries@suse.de>
34408
34409 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
34410 factored out of ...
34411 (nvptx_goacc_validate_dims): ... here.
34412
34413 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34414
34415 PR tree-optimization/85574
34416 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
34417 structure.
34418 (struct ssa_equip_hash_traits): Declare.
34419 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
34420
34421 2019-01-03 Jakub Jelinek <jakub@redhat.com>
34422
34423 PR debug/88644
34424 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
34425 change it to qualified_type.
34426
34427 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
34428
34429 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
34430 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
34431
34432 2019-01-02 Martin Sebor <msebor@redhat.com>
34433 Jeff Law <law@redhat.com>
34434
34435 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
34436 (get_range_strlen_tree): Update appropriately.
34437 (get_range_strlen)
34438 * gimple-fold.h (get_range_strlen): Drop unused last argument.
34439
34440 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
34441 rather than set_range_info.
34442 * tree-ssa-strlen.c (set_strlen_range): Extracted from
34443 maybe_set_strlen_range. Handle potentially boundary crossing
34444 cases more conservatively.
34445 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
34446 Call set_strlen_range.
34447 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
34448
34449 PR middle-end/88663
34450 * gimple-fold.c (get_range_strlen): Update prototype to no longer
34451 need the flexp argument.
34452 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
34453 from calls to get_range_strlen. Update comments. Just update
34454 VAL for an unterminated const char array and let the reset of the
34455 code handle it normally. No longer try to set *flexp. Adjust
34456 return value.
34457 (get_range_strlen): Update for the new get_range_strlen API.
34458 (get_maxval_strlen): Similarly.
34459 (gimple_fold_builtin_strlen): Handle update meaning of return value
34460 from get_range_strlen.
34461 * gimple-ssa-sprintf.c (get_string_length): Update for the new
34462 get_range_strlen API.
34463
34464 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
34465
34466 PR lto/88130
34467 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
34468 false at WPA time when body was removed.
34469
34470 2019-01-02 Martin Liska <mliska@suse.cz>
34471
34472 PR tree-optimization/88650
34473 * predict.c (set_even_probabilities): Calculate probability
34474 remainer only when really used.
34475
34476 2019-01-02 Richard Biener <rguenther@suse.de>
34477
34478 PR middle-end/88651
34479 * tree-data-ref.c (analyze_subscript_affine_affine): Use
34480 widest_ints when mangling max_stmt_execution results.
34481
34482 2019-01-02 Richard Biener <rguenther@suse.de>
34483
34484 PR tree-optimization/88621
34485 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
34486 bitfields when canoncalizing.
34487
34488 2019-01-02 Richard Biener <rguenther@suse.de>
34489
34490 PR target/87545
34491 * config/i386/x86-tune-costs.h (intel_cost): Adjust
34492 cost of cheap SSE instruction.
34493
34494 2019-01-02 Richard Biener <rguenther@suse.de>
34495
34496 PR ipa/85574
34497 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
34498 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
34499 function.
34500 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
34501 set after UIDs before splitting them.
34502
34503 2019-01-01 Martin Sebor <msebor@redhat.com>
34504 Jeff Law <law@redhat.com>
34505
34506 * gimple-fold.c (get_range_strlen_tree): Record if the computed
34507 length is optimistic. If it is, then arrange to compute the
34508 conservative length as well.
34509
34510 * gimple-fold.h (get_range_strlen): Update prototype.
34511 * builtins.c (check_access): Update call to get_range_strlen to use
34512 c_strlen_data pointer. Change various variable accesses to instead
34513 pull data from the c_strlen_data structure.
34514 (check_strncat_sizes, expand_builtin_strncat): Likewise.
34515 * calls.c (maybe_warn_nonstring_arg): Likewise.
34516 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
34517 minimum length if maximum lengh is unknown.
34518 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
34519 that used c_strlen, it's no longer needed. Restructure slightly.
34520 (format_string): Set unlikely range appropriately.
34521 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
34522 formatting issues.
34523 (get_range_strlen): Accept c_strlen_data pointer for external
34524 call sites as well. Pass through to call to internal get_range_strlen.
34525 Adjust minlen, maxlen and maxbound as needed.
34526 (get_maxval_strlen): Update comments.
34527 (gimple_fold_builtin_strlen): Update call to get_range_strlen
34528 to use c_strlen_data pointer. Change variable accesses to instead
34529 use c_strlen_data data members.
34530
34531 * gimple-fold.c (get_range_strlen): Update prototype.
34532 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
34533 local variables. Use pdata to return information to caller.
34534 Update calls to get_range_strlen. Update pdata->maxbound.
34535 (get_range_strlen -- static version): Similarly.
34536 (get_range_strlen -- extern version): Update for internal
34537 get_range_strlen API change. Convert to external data format.
34538 (get_maxval_strlen): Similarly.
34539
34540 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
34541
34542 * coverage.c (get_coverage_counts): Use current_function_decl.
34543 * profile.c (read_thunk_profile): New function.
34544 (branch_prob): Add THUNK parameter.
34545 * tree-profile.c (tree_profiling): Handle thunks.
34546 * value-prof.c (init_node_map): Handle thunks.
34547 * value-prof.h (branch_prob): Upate prototype.
34548 (read_thunk_profile): Declare.
34549
34550 2019-01-01 Jakub Jelinek <jakub@redhat.com>
34551
34552 Update copyright years.
34553
34554 * gcc.c (process_command): Update copyright notice dates.
34555 * gcov-dump.c (print_version): Ditto.
34556 * gcov.c (print_version): Ditto.
34557 * gcov-tool.c (print_version): Ditto.
34558 * gengtype.c (create_file): Ditto.
34559 * doc/cpp.texi: Bump @copying's copyright year.
34560 * doc/cppinternals.texi: Ditto.
34561 * doc/gcc.texi: Ditto.
34562 * doc/gccint.texi: Ditto.
34563 * doc/gcov.texi: Ditto.
34564 * doc/install.texi: Ditto.
34565 * doc/invoke.texi: Ditto.
34566 \f
34567 Copyright (C) 2019 Free Software Foundation, Inc.
34568
34569 Copying and distribution of this file, with or without modification,
34570 are permitted in any medium without royalty provided the copyright
34571 notice and this notice are preserved.